@webquark/core 1.1.0 → 1.1.1-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/components/q-syntax-view.d.ts +1 -0
- package/dist/browser/components/q-syntax-view.js +1 -0
- package/dist/browser/webquark.css +1 -1
- package/dist/playground/assets/reel-motion.webm +0 -0
- package/dist/playground/build/{p-846dc838.entry.js → p-014c2f4a.entry.js} +1 -1
- package/dist/playground/build/{p-0182e114.entry.js → p-0389577c.entry.js} +1 -1
- package/dist/playground/build/p-041e17c1.entry.js +1 -0
- package/dist/playground/build/p-0479c571.entry.js +1 -0
- package/dist/playground/build/{p-17b9713f.entry.js → p-0ebca9be.entry.js} +1 -1
- package/dist/playground/build/{p-0a2c52de.entry.js → p-1bf375f7.entry.js} +2 -2
- package/dist/playground/build/{p-e2721e77.entry.js → p-20dc3ab5.entry.js} +1 -1
- package/dist/playground/build/p-28d3348f.entry.js +1 -0
- package/dist/playground/build/p-35c177d3.entry.js +1 -0
- package/dist/playground/build/{p-f4d23ffe.entry.js → p-3a60086d.entry.js} +1 -1
- package/dist/playground/build/{p-e723a7ae.entry.js → p-3ab798aa.entry.js} +1 -1
- package/dist/playground/build/{p-15bad9ef.entry.js → p-3b580baf.entry.js} +1 -1
- package/dist/playground/build/{p-4609c362.entry.js → p-3b65f787.entry.js} +1 -1
- package/dist/playground/build/{p-9f99de41.css → p-45f6e9ec.css} +1 -1
- package/dist/playground/build/p-4bf610f8.entry.js +1 -0
- package/dist/playground/build/{p-f51e1098.entry.js → p-4d30227e.entry.js} +1 -1
- package/dist/playground/build/p-4de536ae.entry.js +1 -0
- package/dist/playground/build/{p-3daafc56.entry.js → p-4e4d70c9.entry.js} +1 -1
- package/dist/playground/build/p-4efeb7c9.entry.js +1 -0
- package/dist/playground/build/{p-a314bc21.entry.js → p-51b3d71b.entry.js} +1 -1
- package/dist/playground/build/p-778b6bbb.entry.js +1 -0
- package/dist/playground/build/{p-a66550da.entry.js → p-7da78b2f.entry.js} +1 -1
- package/dist/playground/build/{p-fe14f038.entry.js → p-7f8f986b.entry.js} +1 -1
- package/dist/playground/build/{p-e0943d41.entry.js → p-8253c742.entry.js} +1 -1
- package/dist/playground/build/{p-a2334abe.entry.js → p-9a1ddeb7.entry.js} +1 -1
- package/dist/playground/build/{p-CArIPzJU.js → p-B610wOGe.js} +1 -1
- package/dist/playground/build/p-BxxU73QQ.js +1 -0
- package/dist/playground/build/p-CIMzZPQO.js +3 -0
- package/dist/playground/build/p-CfR85WgM.js +13 -0
- package/dist/playground/build/{p-DDUED8LT.js → p-D8p28N9s.js} +1 -1
- package/dist/playground/build/{p-BDsIecIx.js → p-DbzjRzhu.js} +1 -1
- package/dist/playground/build/{p-BOdNg0jc.js → p-DeOEN0si.js} +1 -1
- package/dist/playground/build/p-a2b1de23.entry.js +1 -0
- package/dist/playground/build/{p-dbcf7592.entry.js → p-a55edc17.entry.js} +1 -1
- package/dist/playground/build/p-a8808020.entry.js +1 -0
- package/dist/playground/build/{p-9a76cd71.entry.js → p-b1084b3c.entry.js} +1 -1
- package/dist/playground/build/{p-a2ff1b64.entry.js → p-b6c4dff4.entry.js} +1 -1
- package/dist/playground/build/{p-b21ad707.entry.js → p-b962e950.entry.js} +1 -1
- package/dist/playground/build/{p-5b584d3c.entry.js → p-bc369cd6.entry.js} +1 -1
- package/dist/playground/build/p-c119a8ea.entry.js +1 -0
- package/dist/playground/build/{p-85131314.entry.js → p-c6b77e9a.entry.js} +1 -1
- package/dist/playground/build/{p-84b350a3.entry.js → p-ca1c03b4.entry.js} +1 -1
- package/dist/playground/build/{p-b8fdef4f.entry.js → p-ce436162.entry.js} +1 -1
- package/dist/playground/build/{p-86c05afd.entry.js → p-d0a47a7c.entry.js} +1 -1
- package/dist/playground/build/{p-222405b8.entry.js → p-e1fbc8fc.entry.js} +1 -1
- package/dist/playground/build/{p-44bbe12f.entry.js → p-e32833ce.entry.js} +1 -1
- package/dist/playground/build/{p-d86bd51d.entry.js → p-e369a4aa.entry.js} +1 -1
- package/dist/playground/build/p-e4430c61.entry.js +1 -0
- package/dist/playground/build/{p-aa342e81.entry.js → p-e9c0052b.entry.js} +1 -1
- package/dist/playground/build/{p-852e88ae.entry.js → p-f5c4ca18.entry.js} +1 -1
- package/dist/playground/build/{p-d4788321.entry.js → p-f6683126.entry.js} +1 -1
- package/dist/playground/build/{p-Dnz3WmdX.js → p-ojSDiptZ.js} +1 -1
- package/dist/playground/build/webquark.css +1 -1
- package/dist/playground/build/webquark.esm.js +1 -1
- package/dist/playground/css/base.css +17 -44
- package/dist/playground/formatters/prettier/LICENSE +7 -0
- package/dist/playground/formatters/prettier/THIRD-PARTY-NOTICES.md +7941 -0
- package/dist/playground/formatters/prettier/html-fragment.mjs +1 -0
- package/dist/playground/formatters/prettier/html-fragment.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/angular.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/angular.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/css.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/css.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/flow.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/flow.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/graphql.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/graphql.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/handlebars.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/handlebars.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/html.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/html.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/javascript.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/javascript.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/json-stringify.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/json-stringify.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/json.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/json.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/json5.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/json5.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/jsonc.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/jsonc.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/jsx.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/jsx.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/less.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/less.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/lwc.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/lwc.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/markdown.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/markdown.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/mdx.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/mdx.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/mjml.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/mjml.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/postcss.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/postcss.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/scss.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/scss.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/tsx.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/tsx.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/typescript.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/typescript.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/vue.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/vue.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/languages/yaml.mjs +1 -0
- package/dist/playground/formatters/prettier/languages/yaml.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/manifest.json +87 -0
- package/dist/playground/formatters/prettier/plugins/acorn.mjs +17 -0
- package/dist/playground/formatters/prettier/plugins/acorn.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/plugins/angular.mjs +7 -0
- package/dist/playground/formatters/prettier/plugins/angular.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/plugins/babel.mjs +16 -0
- package/dist/playground/formatters/prettier/plugins/babel.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/plugins/estree.mjs +44 -0
- package/dist/playground/formatters/prettier/plugins/estree.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/plugins/flow.mjs +7 -0
- package/dist/playground/formatters/prettier/plugins/flow.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/plugins/glimmer.mjs +37 -0
- package/dist/playground/formatters/prettier/plugins/glimmer.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/plugins/graphql.mjs +17 -0
- package/dist/playground/formatters/prettier/plugins/graphql.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/plugins/html.mjs +25 -0
- package/dist/playground/formatters/prettier/plugins/html.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/plugins/markdown.mjs +70 -0
- package/dist/playground/formatters/prettier/plugins/markdown.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/plugins/meriyah.mjs +9 -0
- package/dist/playground/formatters/prettier/plugins/meriyah.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/plugins/postcss.mjs +62 -0
- package/dist/playground/formatters/prettier/plugins/postcss.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/plugins/typescript.mjs +22 -0
- package/dist/playground/formatters/prettier/plugins/typescript.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/plugins/yaml.mjs +150 -0
- package/dist/playground/formatters/prettier/plugins/yaml.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/runtime.d.mts +2 -0
- package/dist/playground/formatters/prettier/runtime.mjs +1 -0
- package/dist/playground/formatters/prettier/runtime.mjs.gz +0 -0
- package/dist/playground/formatters/prettier/standalone.mjs +29 -0
- package/dist/playground/formatters/prettier/standalone.mjs.gz +0 -0
- package/dist/playground/index.html +1 -1
- package/dist/playground/playground/components.manifest.json +54 -44
- package/dist/playground/playground/consumer.html +27 -0
- package/dist/playground/playground/specs/q-accordion.sandbox.json +38 -0
- package/dist/playground/playground/specs/q-alert.sandbox.json +95 -0
- package/dist/playground/playground/specs/q-avatar.sandbox.json +39 -6
- package/dist/playground/playground/specs/q-banner.sandbox.json +66 -0
- package/dist/playground/playground/specs/q-button.sandbox.json +115 -15
- package/dist/playground/playground/specs/q-card.sandbox.json +50 -9
- package/dist/playground/playground/specs/q-carousel.sandbox.json +109 -6
- package/dist/playground/playground/specs/q-chip.sandbox.json +29 -2
- package/dist/playground/playground/specs/q-control-group.sandbox.json +11 -1
- package/dist/playground/playground/specs/q-conversation-bubble.sandbox.json +13 -2
- package/dist/playground/playground/specs/q-data-table.sandbox.json +137 -12
- package/dist/playground/playground/specs/q-dialog.sandbox.json +62 -5
- package/dist/playground/playground/specs/q-divider.sandbox.json +1 -1
- package/dist/playground/playground/specs/q-dropdown.sandbox.json +176 -20
- package/dist/playground/playground/specs/q-form.sandbox.json +66 -1
- package/dist/playground/playground/specs/q-grid.sandbox.json +37 -1
- package/dist/playground/playground/specs/q-icon.sandbox.json +62 -23
- package/dist/playground/playground/specs/q-image-comparison.sandbox.json +41 -5
- package/dist/playground/playground/specs/q-inline.sandbox.json +41 -0
- package/dist/playground/playground/specs/q-input.sandbox.json +71 -5
- package/dist/playground/playground/specs/q-link.sandbox.json +213 -17
- package/dist/playground/playground/specs/q-map.sandbox.json +434 -28
- package/dist/playground/playground/specs/q-media.sandbox.json +85 -0
- package/dist/playground/playground/specs/q-navbar.sandbox.json +378 -29
- package/dist/playground/playground/specs/q-pagination.sandbox.json +89 -0
- package/dist/playground/playground/specs/q-panel.sandbox.json +63 -2
- package/dist/playground/playground/specs/q-progress.sandbox.json +37 -11
- package/dist/playground/playground/specs/q-quantity-selector.sandbox.json +15 -3
- package/dist/playground/playground/specs/q-radio-group.sandbox.json +94 -14
- package/dist/playground/playground/specs/q-reel.sandbox.json +22 -5
- package/dist/playground/playground/specs/q-scrollable.sandbox.json +16 -0
- package/dist/playground/playground/specs/q-section.sandbox.json +69 -0
- package/dist/playground/playground/specs/q-sidepanel.sandbox.json +271 -12
- package/dist/playground/playground/specs/q-slider.sandbox.json +104 -1
- package/dist/playground/playground/specs/q-stack.sandbox.json +13 -2
- package/dist/playground/playground/specs/q-step-diagram-item.sandbox.json +101 -0
- package/dist/playground/playground/specs/q-step-diagram.sandbox.json +29 -1
- package/dist/playground/playground/specs/q-syntax-box.sandbox.json +85 -8
- package/dist/playground/playground/specs/q-syntax-view.sandbox.json +45 -0
- package/dist/playground/playground/specs/q-tabs.sandbox.json +164 -0
- package/dist/playground/playground/specs/q-textarea.sandbox.json +45 -1
- package/dist/playground/playground/specs/q-thumbnail.sandbox.json +67 -0
- package/dist/playground/playground/specs/q-toast.sandbox.json +19 -8
- package/dist/playground/playground/specs/q-toggle.sandbox.json +22 -2
- package/dist/playground/playground/specs/q-toolbar.sandbox.json +55 -0
- package/dist/playground/playground/specs/q-tooltip.sandbox.json +18 -2
- package/dist/playground/playground.js +3737 -1764
- package/dist/playground/presets.html +58 -37
- package/dist/playground/views/tooling/tooling.html +5 -5
- package/package.json +3 -3
- package/dist/playground/build/p-048103e0.entry.js +0 -1
- package/dist/playground/build/p-0baf478a.entry.js +0 -1
- package/dist/playground/build/p-2eaa3a9f.entry.js +0 -1
- package/dist/playground/build/p-65fe9cac.entry.js +0 -1
- package/dist/playground/build/p-8c5b2706.entry.js +0 -1
- package/dist/playground/build/p-923527f0.entry.js +0 -1
- package/dist/playground/build/p-Bj2RJb2E.js +0 -1
- package/dist/playground/build/p-DoGM9gsC.js +0 -3
- package/dist/playground/build/p-a0d97367.entry.js +0 -1
- package/dist/playground/build/p-a16bd8d5.entry.js +0 -13
- package/dist/playground/build/p-a3e1096d.entry.js +0 -1
- package/dist/playground/build/p-b1c771fb.entry.js +0 -1
- package/dist/playground/build/p-b45ca926.entry.js +0 -1
- package/dist/playground/build/p-ca1c516e.js +0 -1
- package/dist/playground/build/p-eb800d1e.entry.js +0 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var Ir=Object.defineProperty;var Or=(e)=>{throw TypeError(e)};var os=(e,t,r)=>(t in e)?Ir(e,t,{enumerable:true,configurable:true,writable:true,value:r}):e[t]=r;var Rr=(e,t)=>{for(var r in t)Ir(e,r,{get:t[r],enumerable:true})};var Ut=(e,t,r)=>os(e,typeof t!="symbol"?t+"":t,r),ls=(e,t,r)=>t.has(e)||Or("Cannot "+r);var Fe=(e,t,r)=>(ls(e,t,"read from private field"),r?r.call(e):t.get(e)),Mr=(e,t,r)=>t.has(e)?Or("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r);var as={};Rr(as,{languages:()=>Yi,options:()=>Xi,parsers:()=>Dr,printers:()=>il});var Ee=(e,t)=>(r,n,...i)=>r|1&&n==null?undefined:(t.call(n)??n[e]).apply(n,i);var cs=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},us=Ee("replaceAll",function(){if(typeof this=="string")return cs}),w=us;function ps(e){return this[e<0?this.length+e:e]}var hs=Ee("at",function(){if(Array.isArray(this)||typeof this=="string")return ps}),M=hs;var ms=()=>{},He=ms;var Ve="string",Ue="array",lt="cursor",be="indent",we="align",ct="trim",ke="group",Te="fill",ye="if-break",xe="indent-if-break",ut="line-suffix",pt="line-suffix-boundary",$="line",ht="label",Ae="break-parent",mt=new Set([lt,be,we,ct,ke,Te,ye,xe,ut,pt,$,ht,Ae]);function Le(e,t,r){if(!e.has(t)){let n=r(t);e.set(t,n)}return e.get(t)}function fs(e){if(typeof e=="string")return Ve;if(Array.isArray(e))return Ue;if(!e)return;let{type:t}=e;if(mt.has(t))return t}var ft=fs;var ds=(e)=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function gs(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
|
|
2
|
+
Expected it to be 'string' or 'object'.`;if(ft(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=ds([...mt].map((i)=>`'${i}'`));return`Unexpected doc.type '${e.type}'.
|
|
3
|
+
Expected it to be ${n}.`}var Wt=class extends Error{name="InvalidDocError";constructor(t){super(gs(t)),this.doc=t}},Br=Wt;function Gt(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(s){return Le(r,s,i)}function i(s){switch(ft(s)){case Ue:return t(s.map(n));case Te:return t({...s,parts:s.parts.map(n)});case ye:return t({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case ke:{let{expandedStates:a,contents:o}=s;return a?(a=a.map(n),o=a[0]):o=n(o),t({...s,contents:o,expandedStates:a})}case we:case be:case xe:case ht:case ut:return t({...s,contents:n(s.contents)});case Ve:case lt:case ct:case pt:case $:case Ae:return t(s);default:throw new Br(s)}}}function A(e,t=qr){return Gt(e,(r)=>typeof r=="string"?P(t,r.split(`
|
|
4
|
+
`)):r)}var I=He,dt=He,Fr=He,Hr=He;function N(e){return I(e),{type:be,contents:e}}function _s(e,t){return Hr(e),I(t),{type:we,contents:t,n:e}}function Vr(e){return _s(Number.NEGATIVE_INFINITY,e)}var B={type:Ae};function gt(e){return Fr(e),{type:Te,parts:e}}function C(e,t={}){return I(e),dt(t.expandedStates,true),{type:ke,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function j(e,t="",r={}){return I(e),t!==""&&I(t),{type:ye,breakContents:e,flatContents:t,groupId:r.groupId}}function Ur(e,t){return I(e),{type:xe,contents:e,groupId:t.groupId,negate:t.negate}}function P(e,t){I(e),dt(t);let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}var _={type:$},T={type:$,soft:true},Ss={type:$,hard:true},E=[Ss,B],vs={type:$,hard:true,literal:true},qr=[vs,B];function zt(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var $t=class{#e;constructor(t){this.#e=new Set(t)}getLeadingWhitespaceCount(t){let r=this.#e,n=0;for(let i=0;i<t.length&&r.has(t.charAt(i));i++)n++;return n}getTrailingWhitespaceCount(t){let r=this.#e,n=0;for(let i=t.length-1;i>=0&&r.has(t.charAt(i));i--)n++;return n}getLeadingWhitespace(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(0,r)}getTrailingWhitespace(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(t.length-r)}hasLeadingWhitespace(t){return this.#e.has(t.charAt(0))}hasTrailingWhitespace(t){return this.#e.has(M(0,t,-1))}trimStart(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(r)}trimEnd(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-r)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,r=false){let n=`[${zt([...this.#e].join(""))}]+`,i=new RegExp(r?`(${n})`:n);return t.split(i)}hasWhitespaceCharacter(t){let r=this.#e;return Array.prototype.some.call(t,(n)=>r.has(n))}hasNonWhitespaceCharacter(t){let r=this.#e;return Array.prototype.some.call(t,(n)=>!r.has(n))}isWhitespaceOnly(t){let r=this.#e;return Array.prototype.every.call(t,(n)=>r.has(n))}#t(t){let r=Number.POSITIVE_INFINITY;for(let n of t.split(`
|
|
5
|
+
`)){if(n.length===0)continue;let i=this.getLeadingWhitespaceCount(n);if(i===0)return 0;n.length!==i&&i<r&&(r=i)}return r===Number.POSITIVE_INFINITY?0:r}dedentString(t){let r=this.#t(t);return r===0?t:t.split(`
|
|
6
|
+
`).map((n)=>n.slice(r)).join(`
|
|
7
|
+
`)}},Wr=$t;var Cs=["\t",`
|
|
8
|
+
`,"\f","\r"," "],Es=new Wr(Cs),y=Es;var jt=class extends Error{name="UnexpectedNodeError";constructor(t,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`),this.node=t}},Gr=jt;function Y(e,t=true){return[N([T,e]),t?T:""]}function V(e,t){let r=e.type==="NGRoot"?e.node.type==="NGMicrosyntax"&&e.node.body.length===1&&e.node.body[0].type==="NGMicrosyntaxExpression"?e.node.body[0].expression:e.node:e.type==="JsExpressionRoot"?e.node:e;return r&&(r.type==="ObjectExpression"||r.type==="ArrayExpression"||(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression"||t.parser==="__ng_binding"||t.parser==="__ng_directive")&&(r.type==="TemplateLiteral"||r.type==="StringLiteral"))}async function x(e,t,r,n){r={__isInHtmlAttribute:true,__embeddedInHtml:true,...r};let i=true;n&&(r.__onHtmlBindingRoot=(a,o)=>{i=n(a,o)});let s=await t(e,r,t);return i?C(s):Y(s)}function bs(e,t,r,n){let{node:i}=r,s=n.originalText.slice(i.sourceSpan.start.offset,i.sourceSpan.end.offset);return/^\s*$/.test(s)?"":x(s,e,{parser:"__ng_directive",__isInHtmlAttribute:false},V)}var zr=bs;var ws=Object.hasOwn??Function.prototype.call.bind(Object.prototype.hasOwnProperty),O=ws;var ks=Array.prototype.toReversed??function(){return[...this].reverse()},Ts=Ee("toReversed",function(){if(Array.isArray(this))return ks}),$r=Ts;function ys(){let e=globalThis,t=e.process?.platform;if(typeof t=="string")return t.startsWith("win");let r=e.Deno?.build?.os;return typeof r=="string"?r==="windows":e.navigator?.platform?.startsWith("Win")??false}var xs=ys();function jr(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function As(e){return e=jr(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function Ls(e){e=jr(e);let t=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return e.hostname!==""&&(t=`\\\\${e.hostname}${t}`),t}function Yt(e){return xs?Ls(e):As(e)}var Yr=(e)=>String(e).split(/[/\\]/).pop(),Kr=(e)=>String(e).startsWith("file:");function Ns(e){return Array.isArray(e)&&e.length>0}var J=Ns;function Xr(e,t){if(!t)return;let r=Yr(t).toLowerCase();return e.find(({filenames:n})=>n?.some((i)=>i.toLowerCase()===r))??e.find(({extensions:n})=>n?.some((i)=>r.endsWith(i)))}function Ps(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r?.includes(t))??e.find(({extensions:r})=>r?.includes(`.${t}`))}var Ds=undefined;function Qr(e,t){if(t){if(Kr(t))try{t=Yt(t)}catch{return}if(typeof t=="string")return e.find(({isSupported:r})=>r?.({filepath:t}))}}function Is(e,t){let r=$r(0,e.plugins).flatMap((i)=>i.languages??[]);return(Ps(r,t.language)??Xr(r,t.physicalFile)??Xr(r,t.file)??Qr(r,t.physicalFile)??Qr(r,t.file)??Ds?.(r,t.physicalFile))?.parsers[0]}var _t=Is;var St=Symbol.for("PRETTIER_IS_FRONT_MATTER");function Os(e){return!!e?.[St]}var ae=Os;function Rs(e){return w(0,e,/[^\n]/g," ")}var vt=Rs;var We=3;function Ms(e){let t=e.slice(0,We);if(t!=="---"&&t!=="+++")return;let r=e.indexOf(`
|
|
9
|
+
`,We);if(r===-1)return;let n=e.slice(We,r).trim(),i=e.indexOf(`
|
|
10
|
+
${t}`,r),s=n;if(s||(s=t==="+++"?"toml":"yaml"),i===-1&&t==="---"&&s==="yaml"&&(i=e.indexOf(`
|
|
11
|
+
...`,r)),i===-1)return;let a=i+1+We,o=e.charAt(a+1);if(!/\s?/.test(o))return;let l=e.slice(0,a),c;return{language:s,explicitLanguage:n||null,value:e.slice(r+1,i),startDelimiter:t,endDelimiter:l.slice(-We),raw:l,start:{line:1,column:0,index:0},end:{index:l.length,get line(){return c??(c=l.split(`
|
|
12
|
+
`)),c.length},get column(){return c??(c=l.split(`
|
|
13
|
+
`)),M(0,c,-1).length}},[St]:true}}function Bs(e){let t=Ms(e);return t?{frontMatter:t,get content(){let{raw:r}=t;return vt(r)+e.slice(r.length)}}:{content:e}}var Kt=Bs;var Jr="inline",Xt={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",details:"block",summary:"block",marquee:"inline-block",option:"block",optgroup:"block",select:"inline-block",source:"block",track:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block"},Zr="normal",Qt={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function qs(e){return e.kind==="element"&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}var oe=qs;var Fs=(e)=>e?.kind==="element"&&O(e.attrMap,"ngNonBindable"),Hs=new WeakMap,en=(e)=>!!e&&Le(Hs,e,(t)=>Fs(t)||en(t.parent)),tn=(e,t)=>t.parser==="angular"&&en(e);var Vs=(e)=>w(0,e,/^[\t\f\r ]*\n/g,""),Ct=(e)=>Vs(y.trimEnd(e)),rn=(e)=>{let t=e,r=y.getLeadingWhitespace(t);r&&(t=t.slice(r.length));let n=y.getTrailingWhitespace(t);return n&&(t=t.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:t}};function Et(e,t){return!!(e.kind==="ieConditionalComment"&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||e.kind==="ieConditionalComment"&&!e.complete||K(e)&&e.children.some((r)=>r.kind!=="text"&&r.kind!=="interpolation")||kt(e,t)&&!q(e,t)&&e.kind!=="interpolation")}function le(e){return e.kind==="attribute"||!e.parent||!e.prev?false:Us(e.prev)}function Us(e){return e.kind==="comment"&&e.value.trim()==="prettier-ignore"}function D(e){return e.kind==="text"||e.kind==="comment"||e.kind==="cdata"}function q(e,t){return e.kind==="element"&&(e.fullName==="script"||e.fullName==="style"||e.fullName==="svg:style"||e.fullName==="svg:script"||e.fullName==="mj-style"&&t.parser==="mjml"||oe(e)&&(e.name==="script"||e.name==="style"))}function nn(e,t){return!(!e.children||q(e,t)||tn(e,t))}function sn(e,t){return q(e,t)||e.kind==="interpolation"||Jt(e)}function Jt(e){return gn(e).startsWith("pre")}function an(e,t){let r=n();if(r&&!e.prev&&e.parent?.tagDefinition?.ignoreFirstLf)return e.kind==="interpolation";return r;function n(){return ae(e)||e.kind==="angularControlFlowBlock"?false:(e.kind==="text"||e.kind==="interpolation")&&e.prev&&(e.prev.kind==="text"||e.prev.kind==="interpolation")?true:!e.parent||e.parent.cssDisplay==="none"?false:K(e.parent)?true:!(!e.prev&&(e.parent.kind==="root"||K(e)&&e.parent||q(e.parent,t)||$e(e.parent,t)||!Ys(e.parent.cssDisplay))||e.prev&&!Qs(e.prev.cssDisplay))}}function on(e,t){return ae(e)||e.kind==="angularControlFlowBlock"?false:(e.kind==="text"||e.kind==="interpolation")&&e.next&&(e.next.kind==="text"||e.next.kind==="interpolation")?true:!e.parent||e.parent.cssDisplay==="none"?false:K(e.parent)?true:!(!e.next&&(e.parent.kind==="root"||K(e)&&e.parent||q(e.parent,t)||$e(e.parent,t)||!Ks(e.parent.cssDisplay))||e.next&&!Xs(e.next.cssDisplay))}function ln(e,t){return Js(e.cssDisplay)&&!q(e,t)}function Ge(e){return ae(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line}function cn(e){return Zt(e)||e.kind==="element"&&e.children.length>0&&(["body","script","style"].includes(e.name)||e.children.some((t)=>Gs(t)))||e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.kind!=="text"&&pn(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||hn(e.lastChild))}function Zt(e){return e.kind==="element"&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&e.cssDisplay!=="table-cell")}function bt(e){return mn(e)||e.prev&&Ws(e.prev)||un(e)}function Ws(e){return mn(e)||e.kind==="element"&&e.fullName==="br"||un(e)}function un(e){return pn(e)&&hn(e)}function pn(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.line<e.sourceSpan.start.line:e.parent.kind==="root"||e.parent.startSourceSpan.end.line<e.sourceSpan.start.line)}function hn(e){return e.hasTrailingSpaces&&(e.next?e.next.sourceSpan.start.line>e.sourceSpan.end.line:e.parent.kind==="root"||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function mn(e){switch(e.kind){case"ieConditionalComment":case"comment":case"directive":return true;case"element":return["script","select"].includes(e.name)}return false}function wt(e){return e.lastChild?wt(e.lastChild):e}function Gs(e){return e.children?.some((t)=>t.kind!=="text")}function fn(e){if(e)switch(e){case"module":case"text/javascript":case"text/babel":case"text/jsx":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(e.endsWith("json")||e.endsWith("importmap")||e==="speculationrules")return"json"}}function zs(e,t){let{name:r,attrMap:n}=e;if(r!=="script"||O(n,"src"))return;let{type:i,lang:s}=e.attrMap;return!s&&!i?"babel":_t(t,{language:s})??fn(i)}function $s(e,t){if(!kt(e,t))return;let{attrMap:r}=e;if(O(r,"src"))return;let{type:n,lang:i}=r;return _t(t,{language:i})??fn(n)}function js(e,t){if(e.name==="style"){let{lang:r}=e.attrMap;return r?_t(t,{language:r}):"css"}if(e.name==="mj-style"&&t.parser==="mjml")return"css"}function er(e,t){return zs(e,t)??js(e,t)??$s(e,t)}function ze(e){return e==="block"||e==="list-item"||e.startsWith("table")}function Ys(e){return!ze(e)&&e!=="inline-block"}function Ks(e){return!ze(e)&&e!=="inline-block"}function Xs(e){return!ze(e)}function Qs(e){return!ze(e)}function Js(e){return!ze(e)&&e!=="inline-block"}function K(e){return gn(e).startsWith("pre")}function Zs(e,t){let r=e;for(;r;){if(t(r))return true;r=r.parent}return false}function dn(e,t){if(ce(e,t))return"block";if(e.prev?.kind==="comment"){let n=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(n)return n[1]}let r=false;if(e.kind==="element"&&e.namespace==="svg")if(Zs(e,(n)=>n.fullName==="svg:foreignObject"))r=true;else return e.name==="svg"?"inline-block":"block";switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:if(e.kind==="element"&&(!e.namespace||r||oe(e))&&O(Xt,e.name))return Xt[e.name]}return Jr}function gn(e){return e.kind==="element"&&(!e.namespace||oe(e))&&O(Qt,e.name)?Qt[e.name]:Zr}function tr(e){return w(0,w(0,e,"'","'"),""",'"')}function k(e){return tr(e.value)}var ea=new Set(["template","style","script"]);function $e(e,t){return ce(e,t)&&!ea.has(e.fullName)}function ce(e,t){return t.parser==="vue"&&e.kind==="element"&&e.parent.kind==="root"&&e.fullName.toLowerCase()!=="html"}function kt(e,t){return ce(e,t)&&($e(e,t)||e.attrMap.lang&&e.attrMap.lang!=="html")}function _n(e){let t=e.fullName;return t.charAt(0)==="#"||t==="slot-scope"||t==="v-slot"||t.startsWith("v-slot:")}function Sn(e,t){let r=e.parent;if(!ce(r,t))return false;let n=r.fullName,i=e.fullName;return n==="script"&&i==="setup"||n==="style"&&i==="vars"}function Tt(e,t){return ce(e,t)&&e.name==="script"}function ta(e){let{valueSpan:t,value:r}=e;return t.end.offset-t.start.offset===r.length+2}function yt(e,t){if(ta(e))return false;let{value:r}=e;return/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(r)||t.parser==="lwc"&&r.startsWith("{")&&r.endsWith("}")}var vn=/\{\{(.+?)\}\}/s,Cn=({node:{value:e}})=>vn.test(e);async function En(e,t,r){let n=k(r.node),i=[];for(let[s,a]of n.split(vn).entries())if(s%2===0)i.push(A(a));else try{i.push(C(["{{",N([_,await x(a,e,{parser:"__ng_interpolation",__isInHtmlInterpolation:true})]),_,"}}"]))}catch{i.push("{{",A(a),"}}")}return i}var rr=(e)=>(t,r,n)=>x(k(n.node),t,{parser:e},V),ra=[{test(e){let t=e.node.fullName;return t.startsWith("(")&&t.endsWith(")")||t.startsWith("on-")},print:rr("__ng_action")},{test(e){let t=e.node.fullName;return t.startsWith("[")&&t.endsWith("]")||/^bind(?:on)?-/.test(t)||/^ng-(?:if|show|hide|class|style|model-options)$/.test(t)},print:rr("__ng_binding")},{test:(e)=>e.node.fullName.startsWith("*"),print:rr("__ng_directive")},{test:(e)=>/^i18n(?:-.+)?$/.test(e.node.fullName),print:na},{test:Cn,print:En}].map(({test:e,print:t})=>({test:(r,n)=>n.parser==="angular"&&e(r),print:t}));function na(e,t,{node:r}){let n=k(r),i=gt(P(_,y.split(n.trim())));return Y(i,!n.includes("@@"))}var bn=ra;var wn=({node:e},t)=>!t.parentParser&&e.fullName==="class"&&!e.value.includes("{{"),kn=(e,t,r)=>w(0,k(r.node).trim(),/\s+/g," ");var nr=["onabort","onafterprint","onauxclick","onbeforeinput","onbeforematch","onbeforeprint","onbeforetoggle","onbeforeunload","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncommand","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpagereveal","onpageshow","onpageswap","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onrejectionhandled","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"];var sa=new Set(nr),Tn=({node:e},t)=>sa.has(e.fullName)&&!t.parentParser&&!e.value.includes("{{"),yn=(e,t,r)=>x(k(r.node),e,{parser:"babel",__isHtmlInlineEventHandler:true},()=>false);function aa(e){let t=[];for(let r of e.split(";")){if(r=y.trim(r),!r)continue;let[n,...i]=y.split(r);t.push({name:n,value:i})}return t}var xn=aa;var An=({node:e},t)=>e.fullName==="allow"&&!t.parentParser&&e.parent.fullName==="iframe"&&!e.value.includes("{{");function Ln(e,t,r){let{node:n}=r,i=xn(k(n));return i.length===0?[""]:Y(i.map(({name:s,value:a},o)=>[[s,...a].join(" "),o===i.length-1?j(";"):[";",_]]))}function Nn(e){return e==="\t"||e===`
|
|
14
|
+
`||e==="\f"||e==="\r"||e===" "}var oa=/^[ \t\n\r\u000c]+/,la=/^[, \t\n\r\u000c]+/,ca=/^[^ \t\n\r\u000c]+/,ua=/[,]+$/,Pn=/^\d+$/,pa=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function ha(e){let t=e.length,r,n,i,s,a,o=0,l;function c(h){let f,g=h.exec(e.substring(o));if(g)return[f]=g,o+=f.length,f}let u=[];for(;;){if(c(la),o>=t){if(u.length===0)throw new Error("Must contain one or more image candidate strings.");return u}l=o,r=c(ca),n=[],r.slice(-1)===","?(r=r.replace(ua,""),S()):d()}function d(){for(c(oa),i="",s="in descriptor";;){if(a=e.charAt(o),s==="in descriptor")if(Nn(a))i&&(n.push(i),i="",s="after descriptor");else if(a===","){o+=1,i&&n.push(i),S();return}else if(a==="(")i+=a,s="in parens";else if(a===""){i&&n.push(i),S();return}else i+=a;else if(s==="in parens")if(a===")")i+=a,s="in descriptor";else if(a===""){n.push(i),S();return}else i+=a;else if(s==="after descriptor"&&!Nn(a))if(a===""){S();return}else s="in descriptor",o-=1;o+=1}}function S(){let h=false,f,g,v,z,se={},Q,ot,Ce,qe,Vt;for(z=0;z<n.length;z++)Q=n[z],ot=Q[Q.length-1],Ce=Q.substring(0,Q.length-1),qe=parseInt(Ce,10),Vt=parseFloat(Ce),Pn.test(Ce)&&ot==="w"?((f||g)&&(h=true),qe===0?h=true:f=qe):pa.test(Ce)&&ot==="x"?((f||g||v)&&(h=true),Vt<0?h=true:g=Vt):Pn.test(Ce)&&ot==="h"?((v||g)&&(h=true),qe===0?h=true:v=qe):h=true;if(!h)se.source={value:r,startOffset:l},f&&(se.width={value:f}),g&&(se.density={value:g}),v&&(se.height={value:v}),u.push(se);else throw new Error(`Invalid srcset descriptor found in "${e}" at "${Q}".`)}}var Dn=ha;var In=(e)=>e.node.fullName==="srcset"&&(e.parent.fullName==="img"||e.parent.fullName==="source"),On={width:"w",height:"h",density:"x"},ma=Object.keys(On);function Rn(e,t,r){let n=k(r.node),i=Dn(n),s=ma.filter((h)=>i.some((f)=>O(f,h)));if(s.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[a]=s,o=On[a],l=i.map((h)=>h.source.value),c=Math.max(...l.map((h)=>h.length)),u=i.map((h)=>h[a]?String(h[a].value):""),d=u.map((h)=>{let f=h.indexOf(".");return f===-1?h.length:f}),S=Math.max(...d);return Y(P([",",_],l.map((h,f)=>{let g=[h],v=u[f];if(v){let z=c-h.length+1,se=S-d[f],Q=" ".repeat(z+se);g.push(j(Q," "),v+o)}return g})))}var Mn=({node:e},t)=>e.fullName==="style"&&!t.parentParser&&!e.value.includes("{{"),Bn=async(e,t,r)=>Y(await e(k(r.node),{parser:"css",__isHTMLStyleAttribute:true}));var fa=new WeakMap;function da(e,t){return Le(fa,e.root,(r)=>r.children.some((n)=>Tt(n,t)&&["ts","typescript"].includes(n.attrMap.lang)))}var U=da;function qn(e,t,r){let n=k(r.node);return x(`type T<${n}> = any`,e,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:true},V)}function Fn(e,t,r,n){let i=k(r.node),s=U(r,n)?"babel-ts":"babel";return x(`function _(${i}) {}`,e,{parser:s,__isVueBindings:true})}async function Hn(e,t,r,n){let i=k(r.node),{left:s,operator:a,right:o}=ga(i),l=U(r,n);return[C(await x(`function _(${s}) {}`,e,{parser:l?"babel-ts":"babel",__isVueForBindingLeft:true}))," ",a," ",await x(o,e,{parser:l?"__ts_expression":"__js_expression"})]}function ga(e){let t=/(.*?)\s+(in|of)\s+(.*)/s,r=e.match(t);if(!r)return;let n={for:r[3].trim()};if(!n.for)return;let i=/,([^,\]}]*)(?:,([^,\]}]*))?$/,s=/^\(|\)$/g,a=w(0,r[1].trim(),s,""),o=a.match(i);o?(n.alias=a.replace(i,""),n.iterator1=o[1].trim(),o[2]&&(n.iterator2=o[2].trim())):n.alias=a;let l=[n.alias,n.iterator1,n.iterator2];if(!l.some((c,u)=>!c&&(u===0||l.slice(u+1).some(Boolean))))return{left:l.filter(Boolean).join(","),operator:r[2],right:n.for}}var _a=[{test:(e)=>e.node.fullName==="v-for",print:Hn},{test:(e,t)=>e.node.fullName==="generic"&&Tt(e.parent,t),print:qn},{test:({node:e},t)=>_n(e)||Sn(e,t),print:Fn},{test(e){let t=e.node.fullName;return t.startsWith("@")||t.startsWith("v-on:")},print:Sa},{test(e){let t=e.node.fullName;return t.startsWith(":")||t.startsWith(".")||t.startsWith("v-bind:")},print:va},{test:(e)=>e.node.fullName.startsWith("v-"),print:Vn}].map(({test:e,print:t})=>({test:(r,n)=>n.parser==="vue"&&e(r,n),print:t}));async function Sa(e,t,r,n){try{return await Vn(e,t,r,n)}catch(a){if(a.cause?.code!=="BABEL_PARSER_SYNTAX_ERROR")throw a}let i=k(r.node),s=U(r,n)?"__vue_ts_event_binding":"__vue_event_binding";return x(i,e,{parser:s},V)}function va(e,t,r,n){let i=k(r.node),s=U(r,n)?"__vue_ts_expression":"__vue_expression";return x(i,e,{parser:s},V)}function Vn(e,t,r,n){let i=k(r.node),s=U(r,n)?"__ts_expression":"__js_expression";return x(i,e,{parser:s},V)}var Un=_a;var Ca=[{test:In,print:Rn},{test:Mn,print:Bn},{test:Tn,print:yn},{test:wn,print:kn},{test:An,print:Ln},...Un,...bn].map(({test:e,print:t})=>({test:e,print:ba(t)}));function Ea(e,t){let{node:r}=e,{value:n}=r;if(n)return yt(r,t)?[r.rawName,"=",n]:Ca.find(({test:i})=>i(e,t))?.print}function ba(e){return async(t,r,n,i)=>{let s=await e(t,r,n,i);if(s)return s=Gt(s,(a)=>typeof a=="string"?w(0,a,'"',"""):a),[n.node.rawName,'="',C(s),'"']}}var Wn=Ea;var W=(e)=>e.sourceSpan.start.offset,Z=(e)=>e.sourceSpan.end.offset;function je(e,t){return[e.isSelfClosing?"":wa(e,t),ue(e,t)]}function wa(e,t){return e.lastChild&&X(e.lastChild)?"":[ka(e,t),xt(e,t)]}function ue(e,t){return(e.next?R(e.next):he(e.parent))?"":[pe(e,t),F(e,t)]}function ka(e,t){return he(e)?pe(e.lastChild,t):""}function F(e,t){return X(e)?xt(e.parent,t):Ye(e)?At(e.next,t):""}function xt(e,t){if(zn(e,t))return"";switch(e.kind){case"ieConditionalComment":return"<!";case"element":if(e.hasHtmComponentClosingTag)return"<//";default:return`</${e.rawName}`}}function pe(e,t){if(zn(e,t))return"";switch(e.kind){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]-->";case"ieConditionalStartComment":return"]><!-->";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function zn(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(le(e)||Et(e.parent,t))}function R(e){return e.prev&&e.prev.kind!=="docType"&&e.kind!=="angularControlFlowBlock"&&!D(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function he(e){return e.lastChild?.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!D(wt(e.lastChild))&&!K(e)}function X(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&D(wt(e))}function Ye(e){return e.next&&!D(e.next)&&D(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function Ta(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return t?t[1]?t[1].split(/\s+/):true:false}function Ke(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function ya(e,t,r){let{node:n}=e,{attrs:i=[],startTagComments:s=[]}=n;if(i.length===0&&s.length===0)return n.isSelfClosing?" ":"";let a=n.prev?.kind==="comment"&&Ta(n.prev.value),o=typeof a=="boolean"?()=>a:Array.isArray(a)?(g)=>a.includes(g.rawName):()=>false,l=["attrs","startTagComments"].filter((g)=>J(n[g])),c=l.flatMap((g)=>e.map(({node:v})=>({loc:W(v),printed:v.kind==="attribute"&&o(v)?A(t.originalText.slice(W(v),Z(v))):r()}),g));l.length>1&&c.sort((g,v)=>g.loc-v.loc);let u=n.kind==="element"&&n.fullName==="script"&&i.length===1&&i[0].fullName==="src"&&n.children.length===0&&s.length===0,d=s.some((g)=>g.type==="single"),h=d||t.singleAttributePerLine&&i.length>1&&!ce(n,t)?E:_,f=[N([u?" ":d?E:_,P(h,c.map(({printed:g})=>g))])];return n.firstChild&&Ke(n.firstChild)||n.isSelfClosing&&he(n.parent)||u?f.push(n.isSelfClosing?" ":""):f.push(t.bracketSameLine?n.isSelfClosing?" ":"":n.isSelfClosing?_:T),f}function xa(e){return e.firstChild&&Ke(e.firstChild)?"":Lt(e)}function Xe(e,t,r){let{node:n}=e;return[me(n,t),ya(e,t,r),n.isSelfClosing?"":xa(n)]}function me(e,t){return e.prev&&Ye(e.prev)?"":[H(e,t),At(e,t)]}function H(e,t){return Ke(e)?Lt(e.parent):R(e)?pe(e.prev,t):""}var Gn="<!doctype";function At(e,t){switch(e.kind){case"ieConditionalComment":case"ieConditionalStartComment":return`<!--[if ${e.condition}`;case"ieConditionalEndComment":return"<!--<!";case"interpolation":return"{{";case"docType":{if(e.value==="html"){let{filepath:i}=t;if(i&&/\.html?$/.test(i))return Gn}let r=W(e);return t.originalText.slice(r,r+Gn.length)}case"angularIcuExpression":return"{";case"element":if(e.condition)return`<!--[if ${e.condition}]><!--><${e.rawName}`;default:return`<${e.rawName}`}}function Lt(e){switch(e.kind){case"ieConditionalComment":return"]>";case"element":if(e.condition)return"><!--<![endif]-->";default:return">"}}function Aa(e,t){if(!e.endSourceSpan)return"";let r=e.startSourceSpan.end.offset;e.firstChild&&Ke(e.firstChild)&&(r-=Lt(e).length);let n=e.endSourceSpan.start.offset;return e.lastChild&&X(e.lastChild)?n+=xt(e,t).length:he(e)&&(n-=pe(e.lastChild,t).length),t.originalText.slice(r,n)}var Nt=Aa;var La=new Set(["if","else if","for","switch","case"]);function Na(e,t){let{node:r}=e;switch(r.kind){case"element":if(q(r,t)||r.kind==="interpolation")return;if(!r.isSelfClosing&&kt(r,t)){let n=er(r,t);return n?async(i,s)=>{let a=Nt(r,t),o=/^\s*$/.test(a),l="";return o||(l=await i(Ct(a),{parser:n,__embeddedInHtml:true}),o=l===""),[H(r,t),C(Xe(e,t,s)),o?"":E,l,o?"":E,je(r,t),F(r,t)]}:undefined}break;case"text":if(q(r.parent,t)){let n=er(r.parent,t);if(n)return async(i)=>{let s=n==="markdown"?y.dedentString(r.value.replace(/^[^\S\n]*\n/,"")):r.value,a={parser:n,__embeddedInHtml:true};if(t.parser==="html"&&n==="babel"){let o="script",{attrMap:l}=r.parent;l&&(l.type==="module"||(l.type==="text/babel"||l.type==="text/jsx")&&l["data-type"]==="module")&&(o="module"),a.__babelSourceType=o}return[B,H(r,t),await i(s,a),F(r,t)]}}else if(r.parent.kind==="interpolation")return async(n)=>{let i={__isInHtmlInterpolation:true,__embeddedInHtml:true};return t.parser==="angular"?i.parser="__ng_interpolation":t.parser==="vue"?i.parser=U(e,t)?"__vue_ts_expression":"__vue_expression":i.parser="__js_expression",[N([_,await n(r.value,i)]),r.parent.next&&R(r.parent.next)?" ":_]};break;case"attribute":return Wn(e,t);case"angularControlFlowBlockParameters":return La.has(e.parent.name)?zr:undefined;case"angularLetDeclarationInitializer":return(n)=>x(r.value,n,{parser:"__ng_binding",__isInHtmlAttribute:false})}}var $n=Na;var Qe=null;function Je(e){if(Qe!==null&&typeof Qe.property){let t=Qe;return Qe=Je.prototype=null,t}return Qe=Je.prototype=e??Object.create(null),new Je}var Pa=10;for(let e=0;e<=Pa;e++)Je();function ir(e){return Je(e)}function Da(e,t="type"){ir(e);function r(n){let i=n[t],s=e[i];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:n});return s}return r}var jn=Da;var Ze=[["children"]],Yn={root:Ze[0],element:["attrs","startTagComments","children"],ieConditionalComment:Ze[0],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:Ze[0],text:Ze[0],docType:[],comment:[],attribute:[],startTagComment:[],cdata:[],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:Ze[0],angularControlFlowBlockParameter:[],angularLetDeclaration:["init"],angularLetDeclarationInitializer:[],angularIcuExpression:["cases"],angularIcuCase:["expression"]};var Ia=jn(Yn,"kind"),Kn=Ia;var Oa=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),Ra=new Set(["if","else if","for","switch","case"]);function sr(e,t,r){if(e.kind==="text"||e.kind==="comment")return null;if(e.kind==="yaml"&&delete t.value,e.kind==="attribute"){let{fullName:n,value:i}=e;n==="style"||n==="class"||n==="srcset"&&(r.fullName==="img"||r.fullName==="source")||n==="allow"&&r.fullName==="iframe"||n.startsWith("on")||n.startsWith("@")||n.startsWith(":")||n.startsWith(".")||n.startsWith("#")||n.startsWith("v-")||n==="vars"&&r.fullName==="style"||(n==="setup"||n==="generic")&&r.fullName==="script"||n==="slot-scope"||n.startsWith("(")||n.startsWith("[")||n.startsWith("*")||n.startsWith("bind")||n.startsWith("i18n")||n.startsWith("on-")||n.startsWith("ng-")||i?.includes("{{")?delete t.value:i&&(t.value=w(0,i,/'|"|'/g,'"'))}if(e.kind==="docType"&&(t.value=w(0,e.value.toLowerCase(),/\s+/g," ")),e.kind==="angularControlFlowBlock"&&e.parameters?.children)for(let n of t.parameters.children)Ra.has(e.name)?delete n.expression:n.expression=n.expression.trim();e.kind==="angularIcuExpression"&&(t.switchValue=e.switchValue.trim()),e.kind==="angularLetDeclarationInitializer"&&delete t.value,e.kind==="element"&&e.isVoid&&!e.isSelfClosing&&(t.isSelfClosing=true)}sr.ignoredProperties=Oa;var Xn="format";var Qn=/^\s*<!--\s*@(?:noformat|noprettier)\s*-->/,Jn=/^\s*<!--\s*@(?:format|prettier)\s*-->/;var Zn=(e)=>Jn.test(e),ei=(e)=>Qn.test(e),ti=(e)=>`<!-- @${Xn} -->
|
|
15
|
+
|
|
16
|
+
${e}`;var ri=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])],["boundary",new Set(["error"])]]);function ni(e){let t=Z(e);return e.kind==="element"&&!e.endSourceSpan&&J(e.children)?Math.max(t,ni(M(0,e.children,-1))):t}function et(e,t,r){let n=e.node;if(le(n)){let i=ni(n);return[H(n,t),A(y.trimEnd(t.originalText.slice(W(n)+(n.prev&&Ye(n.prev)?At(n).length:0),i-(n.next&&R(n.next)?pe(n,t).length:0)))),F(n,t)]}return r()}function Pt(e,t){return D(e)&&D(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?bt(t)?E:_:"":bt(t)?E:T:R(t)&&e.kind==="element"&&e.children.length===1&&e.firstChild.kind==="interpolation"&&e.hasLeadingSpaces||Ye(e)&&(le(t)||t.firstChild||t.isSelfClosing||t.kind==="element"&&t.attrs.length>0)||e.kind==="element"&&e.isSelfClosing&&R(t)?"":t.kind==="comment"&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces?T:!t.isLeadingSpaceSensitive||bt(t)||R(t)&&e.lastChild&&X(e.lastChild)&&e.lastChild.lastChild&&X(e.lastChild.lastChild)?E:t.hasLeadingSpaces?_:T}function Ne(e,t,r){let{node:n}=e;if(Zt(n))return[B,...e.map(()=>{let s=e.node,a=s.prev?Pt(s.prev,s):"";return[a?[a,Ge(s.prev)?E:""]:"",et(e,t,r)]},"children")];let i=n.children.map(()=>Symbol(""));return e.map(({node:s,index:a})=>{if(D(s)){if(s.prev&&D(s.prev)){let h=Pt(s.prev,s);if(h)return Ge(s.prev)?[E,E,et(e,t,r)]:[h,et(e,t,r)]}return et(e,t,r)}let o=[],l=[],c=[],u=[],d=s.prev?Pt(s.prev,s):"",S=s.next?Pt(s,s.next):"";return d&&(Ge(s.prev)?o.push(E,E):d===E?o.push(E):D(s.prev)?l.push(d):l.push(j("",T,{groupId:i[a-1]}))),S&&(Ge(s)?D(s.next)&&u.push(E,E):S===E?D(s.next)&&u.push(E):c.push(S)),[...o,C([...l,C([et(e,t,r),...c],{id:i[a]})]),...u]},"children")}function ii(e,t,r){let{node:n}=e,i=[];Fa(e)&&i.push("} "),i.push("@",n.name);let s=Ba(n);if(n.parameters&&(s||i.push(" "),i.push("(",C(r("parameters")),")")),s)return i.push(";"),i;if(!qa(n)){i.push(" {");let a=si(n);n.children.length>0?(n.firstChild.hasLeadingSpaces=true,n.lastChild.hasTrailingSpaces=true,i.push(N([E,Ne(e,t,r)])),a&&i.push(E,"}")):a&&i.push("}")}return C(i,{shouldBreak:true})}function si(e){return!(e.next?.kind==="angularControlFlowBlock"&&ri.get(e.name)?.has(e.next.name))}var Ma=(e)=>e?.kind==="angularControlFlowBlock"&&(e.name==="case"||e.name==="default"),Ba=(e)=>e?.kind==="angularControlFlowBlock"&&e.name==="default never";function qa(e){return Ma(e)&&e.endSourceSpan&&e.endSourceSpan.start.offset===e.endSourceSpan.end.offset}function Fa(e){let{previous:t}=e;return t?.kind==="angularControlFlowBlock"&&!le(t)&&!si(t)}function ai(e,t,r){return[N([T,P([";",_],e.map(r,"children"))]),T]}function oi(e,t,r){let{node:n}=e;return[me(n,t),C([n.switchValue.trim(),", ",n.type,n.cases.length>0?[",",N([_,P(_,e.map(r,"cases"))])]:"",T]),ue(n,t)]}function li(e,t,r){let{node:n}=e;return[n.value," {",C([N([T,e.map(({node:i,isLast:s})=>{let a=[r()];return i.kind==="text"&&(i.hasLeadingSpaces&&a.unshift(_),i.hasTrailingSpaces&&!s&&a.push(_)),a},"expression")]),T]),"}"]}var ci=Object.freeze({character:"'",codePoint:39}),ui=Object.freeze({character:'"',codePoint:34}),Ha=Object.freeze({preferred:ci,alternate:ui}),Va=Object.freeze({preferred:ui,alternate:ci});function pi(e,t){let{preferred:r,alternate:n}=t===true||t==="'"?Ha:Va,{length:i}=e,s=0,a=0;for(let o=0;o<i;o++){let l=e.charCodeAt(o);l===r.codePoint?s++:l===n.codePoint&&a++}return(s>a?n:r).character}function Ua(e,t){let{node:r}=e,{value:n}=r;if(yt(r,t))return n;n=tr(n);let i=pi(n,'"');return n=i==='"'?w(0,n,'"',"""):w(0,n,"'","'"),[i,A(n),i]}function hi(e,t){let{node:r}=e,n=[r.rawName];return r.value!==null&&n.push("=",Ua(e,t)),n}function mi(e,t,r){let{node:n}=e;if(Et(n,t))return[C(Xe(e,t,r)),A(Nt(n,t)),...je(n,t)];let i=n.children.length===1&&(n.firstChild.kind==="interpolation"||n.firstChild.kind==="angularIcuExpression")&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,s=Symbol("element-attr-group-id"),a=(u)=>C([C(Xe(e,t,r),{id:s}),u,je(n,t)]);if(n.children.length===0)return a(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?_:"");let o=(u)=>i?Ur(u,{groupId:s}):(q(n,t)||$e(n,t))&&n.parent.kind==="root"&&t.parser==="vue"&&!t.vueIndentScriptAndStyle?u:N(u),l=()=>i?j(T,"",{groupId:s}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?_:n.firstChild.kind==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?Vr(T):T,c=()=>(n.next?R(n.next):he(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":K(n)&&X(n.lastChild)?"":i?j(T,"",{groupId:s}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?_:(n.lastChild.kind==="comment"||n.lastChild.kind==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${t.tabWidth*(e.ancestors.length-1)}}$`).test(n.lastChild.value)?"":T;return a([cn(n)?B:"",o([l(),Ne(e,t,r)]),c()])}function fi(e){let{node:{value:t,type:r}}=e;return r==="single"?`//${t.trimEnd()}`:["/*",A(t),"*/"]}function Wa(e){let{value:t}=e;return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?A(t):A(y.dedentString(Ct(t)),E):P(_,y.split(t))}function di(e,t){let{node:r}=e;if(r.parent.kind==="interpolation"){let{value:a}=r,o=/\n[^\S\n]*$/,l=o.test(a);l&&(a=a.replace(o,""));let c=[A(a)];return l&&(r.parent.next&&R(r.parent.next)?c.push(B):c.push(E)),c}let n=Wa(r),i=H(r,t),s=F(r,t);return i&&(n[0]=[i,n[0]]),s&&n.push([n.pop(),s]),gt(n)}var ar=function(e){return e[e.RAW_TEXT=0]="RAW_TEXT",e[e.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",e[e.PARSABLE_DATA=2]="PARSABLE_DATA",e}({});function ee(e,t=true){if(e[0]!=":")return[null,e];let r=e.indexOf(":",1);if(r===-1){if(t)throw new Error(`Unsupported format "${e}" expecting ":namespace:name"`);return[null,e]}return[e.slice(1,r),e.slice(r+1)]}function or(e){return ee(e)[1]==="ng-container"}function lr(e){return ee(e)[1]==="ng-content"}function Pe(e){return e===null?null:ee(e)[0]}function fe(e,t){return e?`:${e}:${t}`:t}var tt,Ga="math";var cr=()=>Object.create(null);function za(){return tt||(tt=cr(),te(1,undefined,[["iframe",["srcdoc"]],["*",["innerHTML","outerHTML"]]]),te(2,undefined,[["*",["style"]]]),te(4,undefined,[["*",["formAction"]],["area",["href"]],["a",["href","xlink:href"]],["form",["action"]],["img",["src"]],["video",["src"]]]),te(4,Ga,[["*",["href","xlink:href"]]]),te(5,undefined,[["base",["href"]],["embed",["src"]],["frame",["src"]],["iframe",["src"]],["link",["href"]],["object",["codebase","data"]]]),te(4,"svg",[["a",["href","xlink:href"]]]),te(6,"svg",[["animate",["attributeName","values","to","from"]],["set",["to","attributeName"]],["animateMotion",["attributeName"]],["animateTransform",["attributeName"]]]),te(6,undefined,[["unknown",["attributeName","values","to","from","sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority","credentialless"]],["iframe",["sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority","credentialless"]]]),tt)}function te(e,t,r){let n=t??"";for(let[s,a]of r){let o=s.toLowerCase();for(let l of a){var i;let c=l.toLowerCase(),u=(i=tt)[c]??(i[c]=cr()),d=u[n]??(u[n]=cr());d[o]=e}}}function gi(e,t,r){let n=za()[t.toLowerCase()];if(!n)return 0;let i=e.toLowerCase(),s;if(r){let a=n[r];a&&(s=a[i]??a["*"])}if(s===undefined){let a=n[""];a&&(s=a[i]??a["*"])}if(s===undefined&&(!r||r==="")){let a=n.svg;a&&(s=a[i])}return s??0}var ur={name:"custom-elements"},pr={name:"no-errors-schema"};var $a=/-+([a-z0-9])/g;function _i(e){return e.replace($a,(...t)=>t[1].toUpperCase())}var Si=class{};var ja="boolean",Ya="number",Ka="string",Xa="object";function Dt(e){let t=e.toLowerCase(),[r,n]=ee(t,false);return r==="svg"||r==="math"?`:${r}:${n}`:n}var Qa=["[Element]|textContent,%ariaActiveDescendantElement,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColIndexText,%ariaColSpan,%ariaControlsElements,%ariaCurrent,%ariaDescribedByElements,%ariaDescription,%ariaDetailsElements,%ariaDisabled,%ariaErrorMessageElements,%ariaExpanded,%ariaFlowToElements,%ariaHasPopup,%ariaHidden,%ariaInvalid,%ariaKeyShortcuts,%ariaLabel,%ariaLabelledByElements,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaOwnsElements,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowIndexText,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,search,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","geolocation^[HTMLElement]|accuracymode,!autolocate,*location,*promptaction,*promptdismiss,*validationstatuschange,!watch","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,!credentialless,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","selectedcontent^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","search^[HTMLELement]|","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],vi=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex","aria-activedescendant":"ariaActiveDescendantElement","aria-atomic":"ariaAtomic","aria-autocomplete":"ariaAutoComplete","aria-busy":"ariaBusy","aria-checked":"ariaChecked","aria-colcount":"ariaColCount","aria-colindex":"ariaColIndex","aria-colindextext":"ariaColIndexText","aria-colspan":"ariaColSpan","aria-controls":"ariaControlsElements","aria-current":"ariaCurrent","aria-describedby":"ariaDescribedByElements","aria-description":"ariaDescription","aria-details":"ariaDetailsElements","aria-disabled":"ariaDisabled","aria-errormessage":"ariaErrorMessageElements","aria-expanded":"ariaExpanded","aria-flowto":"ariaFlowToElements","aria-haspopup":"ariaHasPopup","aria-hidden":"ariaHidden","aria-invalid":"ariaInvalid","aria-keyshortcuts":"ariaKeyShortcuts","aria-label":"ariaLabel","aria-labelledby":"ariaLabelledByElements","aria-level":"ariaLevel","aria-live":"ariaLive","aria-modal":"ariaModal","aria-multiline":"ariaMultiLine","aria-multiselectable":"ariaMultiSelectable","aria-orientation":"ariaOrientation","aria-owns":"ariaOwnsElements","aria-placeholder":"ariaPlaceholder","aria-posinset":"ariaPosInSet","aria-pressed":"ariaPressed","aria-readonly":"ariaReadOnly","aria-required":"ariaRequired","aria-roledescription":"ariaRoleDescription","aria-rowcount":"ariaRowCount","aria-rowindex":"ariaRowIndex","aria-rowindextext":"ariaRowIndexText","aria-rowspan":"ariaRowSpan","aria-selected":"ariaSelected","aria-setsize":"ariaSetSize","aria-sort":"ariaSort","aria-valuemax":"ariaValueMax","aria-valuemin":"ariaValueMin","aria-valuenow":"ariaValueNow","aria-valuetext":"ariaValueText"})),Ja=Array.from(vi).reduce((e,[t,r])=>(e.set(t,r),e),new Map),Ci=class extends Si{_schema=new Map;_eventSchema=new Map;constructor(){super(),Qa.forEach((e)=>{let t=new Map,r=new Set,[n,i]=e.split("|"),s=i.split(","),[a,o]=n.split("^");a.split(",").forEach((c)=>{this._schema.set(c.toLowerCase(),t),this._eventSchema.set(c.toLowerCase(),r)});let l=o&&this._schema.get(o.toLowerCase());if(l){for(let[c,u]of l)t.set(c,u);for(let c of this._eventSchema.get(o.toLowerCase()))r.add(c)}s.forEach((c)=>{if(c.length>0)switch(c[0]){case"*":r.add(c.substring(1));break;case"!":t.set(c.substring(1),ja);break;case"#":t.set(c.substring(1),Ya);break;case"%":t.set(c.substring(1),Xa);break;default:t.set(c,Ka)}})})}hasProperty(e,t,r){if(r.some((i)=>i.name===pr.name))return true;let n=Dt(e);if(n.includes("-")){if(or(n)||lr(n))return false;if(r.some((i)=>i.name===ur.name))return true}return(this._schema.get(n)||this._schema.get("unknown")).has(t)}hasElement(e,t){if(t.some((n)=>n.name===pr.name))return true;let r=Dt(e);return r.includes("-")&&(or(r)||lr(r)||t.some((n)=>n.name===ur.name))?true:this._schema.has(r)}securityContext(e,t,r){r&&(t=this.getMappedPropName(t));let[n,i]=ee(e,false);return gi(i,t,n)}getMappedPropName(e){return vi.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:true,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...
|
|
17
|
+
If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:false}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:true,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:false}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let t=Dt(e),r=this._schema.get(t)||this._schema.get("unknown");return Array.from(r.keys()).map((n)=>Ja.get(n)??n)}allKnownEventsOfElement(e){let t=Dt(e);return Array.from(this._eventSchema.get(t)??[])}normalizeAnimationStyleProperty(e){return _i(e)}normalizeAnimationStyleValue(e,t,r){let n="",i=r.toString().trim(),s=null;if(Za(e)&&r!==0&&r!=="0")if(typeof r=="number")n="px";else{let a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&(s=`Please provide a CSS unit value for ${t}:${r}`)}return{error:s,value:i+n}}};function Za(e){switch(e){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return true;default:return false}}var m=class{closedByChildren={};contentType;closedByParent=false;implicitNamespacePrefix;isVoid;ignoreFirstLf;canSelfClose;preventNamespaceInheritance;constructor({closedByChildren:e,implicitNamespacePrefix:t,contentType:r=2,closedByParent:n=false,isVoid:i=false,ignoreFirstLf:s=false,preventNamespaceInheritance:a=false,canSelfClose:o=false}={}){e&&e.length>0&&e.forEach((l)=>this.closedByChildren[l]=true),this.isVoid=i,this.closedByParent=n||i,this.implicitNamespacePrefix=t||null,this.contentType=r,this.ignoreFirstLf=s,this.preventNamespaceInheritance=a,this.canSelfClose=o??i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType=="object"?(e===undefined?undefined:this.contentType[e])??this.contentType.default:this.contentType}},Ei,rt;function De(e){return rt||(Ei=new m({canSelfClose:true}),rt=Object.assign(Object.create(null),{base:new m({isVoid:true}),meta:new m({isVoid:true}),area:new m({isVoid:true}),embed:new m({isVoid:true}),link:new m({isVoid:true}),img:new m({isVoid:true}),input:new m({isVoid:true}),param:new m({isVoid:true}),hr:new m({isVoid:true}),br:new m({isVoid:true}),source:new m({isVoid:true}),track:new m({isVoid:true}),wbr:new m({isVoid:true}),p:new m({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:true}),thead:new m({closedByChildren:["tbody","tfoot"]}),tbody:new m({closedByChildren:["tbody","tfoot"],closedByParent:true}),tfoot:new m({closedByChildren:["tbody"],closedByParent:true}),tr:new m({closedByChildren:["tr"],closedByParent:true}),td:new m({closedByChildren:["td","th"],closedByParent:true}),th:new m({closedByChildren:["td","th"],closedByParent:true}),col:new m({isVoid:true}),svg:new m({implicitNamespacePrefix:"svg"}),foreignObject:new m({implicitNamespacePrefix:"svg",preventNamespaceInheritance:true}),math:new m({implicitNamespacePrefix:"math"}),li:new m({closedByChildren:["li"],closedByParent:true}),dt:new m({closedByChildren:["dt","dd"]}),dd:new m({closedByChildren:["dt","dd"],closedByParent:true}),rb:new m({closedByChildren:["rb","rt","rtc","rp"],closedByParent:true}),rt:new m({closedByChildren:["rb","rt","rtc","rp"],closedByParent:true}),rtc:new m({closedByChildren:["rb","rtc","rp"],closedByParent:true}),rp:new m({closedByChildren:["rb","rt","rtc","rp"],closedByParent:true}),optgroup:new m({closedByChildren:["optgroup"],closedByParent:true}),option:new m({closedByChildren:["option","optgroup"],closedByParent:true}),pre:new m({ignoreFirstLf:true}),listing:new m({ignoreFirstLf:true}),style:new m({contentType:0}),script:new m({contentType:0}),title:new m({contentType:{default:1,svg:2}}),textarea:new m({contentType:1,ignoreFirstLf:true})}),new Ci().allKnownElementNames().forEach((t)=>{!rt[t]&&Pe(t)===null&&(rt[t]=new m({canSelfClose:false}))})),rt[e]??Ei}var Ie=class bi{file;offset;line;col;constructor(t,r,n,i){this.file=t,this.offset=r,this.line=n,this.col=i}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(t){let r=this.file.content,n=r.length,i=this.offset,s=this.line,a=this.col;for(;i>0&&t<0;)if(i--,t++,r.charCodeAt(i)==10){s--;let o=r.substring(0,i-1).lastIndexOf(`
|
|
18
|
+
`);a=o>0?i-o:i}else a--;for(;i<n&&t>0;){let o=r.charCodeAt(i);i++,t--,o==10?(s++,a=0):a++}return new bi(this.file,i,s,a)}getContext(t,r){let n=this.file.content,i=this.offset;if(i!=null){i>n.length-1&&(i=n.length-1);let s=i,a=0,o=0;for(;a<t&&i>0&&(i--,a++,!(n[i]==`
|
|
19
|
+
`&&++o==r)););for(a=0,o=0;a<t&&s<n.length-1&&(s++,a++,!(n[s]==`
|
|
20
|
+
`&&++o==r)););return{before:n.substring(i,this.offset),after:n.substring(this.offset,s+1)}}return null}},nt=class{content;url;constructor(e,t){this.content=e,this.url=t}},p=class{start;end;fullStart;details;constructor(e,t,r=e,n=null){this.start=e,this.end=t,this.fullStart=r,this.details=n}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},eo=function(e){return e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR",e}({}),re=class extends Error{span;msg;level;relatedError;constructor(e,t,r=1,n){super(t),this.span=e,this.msg=t,this.level=r,this.relatedError=n,Object.setPrototypeOf(this,new.target.prototype)}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${eo[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}};var de=class{sourceSpan;i18n;constructor(e,t){this.sourceSpan=e,this.i18n=t}},wi=class extends de{value;tokens;constructor(e,t,r,n){super(t,n),this.value=e,this.tokens=r}visit(e,t){return e.visitText(this,t)}kind="text"},ki=class extends de{value;tokens;constructor(e,t,r,n){super(t,n),this.value=e,this.tokens=r}visit(e,t){return e.visitCdata(this,t)}kind="cdata"},Ti=class extends de{switchValue;type;cases;switchValueSourceSpan;constructor(e,t,r,n,i,s){super(n,s),this.switchValue=e,this.type=t,this.cases=r,this.switchValueSourceSpan=i}visit(e,t){return e.visitExpansion(this,t)}kind="expansion"},yi=class{value;expression;sourceSpan;valueSourceSpan;expSourceSpan;constructor(e,t,r,n,i){this.value=e,this.expression=t,this.sourceSpan=r,this.valueSourceSpan=n,this.expSourceSpan=i}visit(e,t){return e.visitExpansionCase(this,t)}kind="expansionCase"},xi=class extends de{name;value;keySpan;valueSpan;valueTokens;constructor(e,t,r,n,i,s,a){super(r,a),this.name=e,this.value=t,this.keySpan=n,this.valueSpan=i,this.valueTokens=s}visit(e,t){return e.visitAttribute(this,t)}kind="attribute";get nameSpan(){return this.keySpan}},Ai=class{value;type;sourceSpan;constructor(e,t,r){this.value=e,this.type=t,this.sourceSpan=r}visit(e,t){return e.visitStartTagComment?e.visitStartTagComment(this,t):undefined}kind="startTagComment"},ne=class extends de{name;attrs;directives;children;isSelfClosing;startSourceSpan;endSourceSpan;nameSpan;isVoid;comments;constructor(e,t,r,n,i,s,a,o=null,l=null,c,u,d=[]){super(s,u),this.name=e,this.attrs=t,this.directives=r,this.children=n,this.isSelfClosing=i,this.startSourceSpan=a,this.endSourceSpan=o,this.nameSpan=l,this.isVoid=c,this.comments=d}visit(e,t){return e.visitElement(this,t)}kind="element"},Li=class{value;sourceSpan;constructor(e,t){this.value=e,this.sourceSpan=t}visit(e,t){return e.visitComment(this,t)}kind="comment"},Ni=class{value;sourceSpan;constructor(e,t){this.value=e,this.sourceSpan=t}visit(e,t){return e.visitDocType(this,t)}kind="docType"},ge=class extends de{name;parameters;children;nameSpan;startSourceSpan;endSourceSpan;constructor(e,t,r,n,i,s,a=null,o){super(n,o),this.name=e,this.parameters=t,this.children=r,this.nameSpan=i,this.startSourceSpan=s,this.endSourceSpan=a}visit(e,t){return e.visitBlock(this,t)}kind="block"},G=class extends de{componentName;tagName;fullName;attrs;directives;children;isSelfClosing;startSourceSpan;endSourceSpan;comments;constructor(e,t,r,n,i,s,a,o,l,c=null,u,d=[]){super(o,u),this.componentName=e,this.tagName=t,this.fullName=r,this.attrs=n,this.directives=i,this.children=s,this.isSelfClosing=a,this.startSourceSpan=l,this.endSourceSpan=c,this.comments=d}visit(e,t){return e.visitComponent(this,t)}kind="component"},Pi=class{name;attrs;sourceSpan;startSourceSpan;endSourceSpan;constructor(e,t,r,n,i=null){this.name=e,this.attrs=t,this.sourceSpan=r,this.startSourceSpan=n,this.endSourceSpan=i}visit(e,t){return e.visitDirective(this,t)}kind="directive"},hr=class{expression;sourceSpan;constructor(e,t){this.expression=e,this.sourceSpan=t}visit(e,t){return e.visitBlockParameter(this,t)}kind="blockParameter";startSourceSpan=null;endSourceSpan=null},mr=class{name;value;sourceSpan;nameSpan;valueSpan;constructor(e,t,r,n,i){this.name=e,this.value=t,this.sourceSpan=r,this.nameSpan=n,this.valueSpan=i}visit(e,t){return e.visitLetDeclaration(this,t)}kind="letDeclaration";startSourceSpan=null;endSourceSpan=null};function It(e,t,r=null){let n=[],i=e.visit?(s)=>e.visit(s,r)||s.visit(e,r):(s)=>s.visit(e,r);return t.forEach((s)=>{let a=i(s);a&&n.push(a)}),n}var fr=class{constructor(){}visitElement(e,t){this.visitChildren(t,(r)=>{r(e.attrs),r(e.directives),r(e.comments),r(e.children)})}visitAttribute(e,t){}visitStartTagComment(e,t){}visitText(e,t){}visitCdata(e,t){}visitComment(e,t){}visitDocType(e,t){}visitExpansion(e,t){return this.visitChildren(t,(r)=>{r(e.cases)})}visitExpansionCase(e,t){}visitBlock(e,t){this.visitChildren(t,(r)=>{r(e.parameters),r(e.children)})}visitBlockParameter(e,t){}visitLetDeclaration(e,t){}visitComponent(e,t){this.visitChildren(t,(r)=>{r(e.attrs),r(e.comments),r(e.children)})}visitDirective(e,t){this.visitChildren(t,(r)=>{r(e.attrs)})}visitChildren(e,t){let r=[],n=this;function i(s){s&&r.push(It(n,s,e))}return t(i),Array.prototype.concat.apply([],r)}};var dr=function(e){return e[e.TAG_OPEN_START=0]="TAG_OPEN_START",e[e.TAG_OPEN_END=1]="TAG_OPEN_END",e[e.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",e[e.TAG_CLOSE=3]="TAG_CLOSE",e[e.INCOMPLETE_TAG_OPEN=4]="INCOMPLETE_TAG_OPEN",e[e.TEXT=5]="TEXT",e[e.ESCAPABLE_RAW_TEXT=6]="ESCAPABLE_RAW_TEXT",e[e.RAW_TEXT=7]="RAW_TEXT",e[e.INTERPOLATION=8]="INTERPOLATION",e[e.ENCODED_ENTITY=9]="ENCODED_ENTITY",e[e.COMMENT_START=10]="COMMENT_START",e[e.COMMENT_END=11]="COMMENT_END",e[e.IN_ELEMENT_COMMENT=12]="IN_ELEMENT_COMMENT",e[e.CDATA_START=13]="CDATA_START",e[e.CDATA_END=14]="CDATA_END",e[e.ATTR_NAME=15]="ATTR_NAME",e[e.ATTR_QUOTE=16]="ATTR_QUOTE",e[e.ATTR_VALUE_TEXT=17]="ATTR_VALUE_TEXT",e[e.ATTR_VALUE_INTERPOLATION=18]="ATTR_VALUE_INTERPOLATION",e[e.DOC_TYPE_START=19]="DOC_TYPE_START",e[e.DOC_TYPE_END=20]="DOC_TYPE_END",e[e.EXPANSION_FORM_START=21]="EXPANSION_FORM_START",e[e.EXPANSION_CASE_VALUE=22]="EXPANSION_CASE_VALUE",e[e.EXPANSION_CASE_EXP_START=23]="EXPANSION_CASE_EXP_START",e[e.EXPANSION_CASE_EXP_END=24]="EXPANSION_CASE_EXP_END",e[e.EXPANSION_FORM_END=25]="EXPANSION_FORM_END",e[e.BLOCK_OPEN_START=26]="BLOCK_OPEN_START",e[e.BLOCK_OPEN_END=27]="BLOCK_OPEN_END",e[e.BLOCK_CLOSE=28]="BLOCK_CLOSE",e[e.BLOCK_PARAMETER=29]="BLOCK_PARAMETER",e[e.INCOMPLETE_BLOCK_OPEN=30]="INCOMPLETE_BLOCK_OPEN",e[e.LET_START=31]="LET_START",e[e.LET_VALUE=32]="LET_VALUE",e[e.LET_END=33]="LET_END",e[e.INCOMPLETE_LET=34]="INCOMPLETE_LET",e[e.COMPONENT_OPEN_START=35]="COMPONENT_OPEN_START",e[e.COMPONENT_OPEN_END=36]="COMPONENT_OPEN_END",e[e.COMPONENT_OPEN_END_VOID=37]="COMPONENT_OPEN_END_VOID",e[e.COMPONENT_CLOSE=38]="COMPONENT_CLOSE",e[e.INCOMPLETE_COMPONENT_OPEN=39]="INCOMPLETE_COMPONENT_OPEN",e[e.DIRECTIVE_NAME=40]="DIRECTIVE_NAME",e[e.DIRECTIVE_OPEN=41]="DIRECTIVE_OPEN",e[e.DIRECTIVE_CLOSE=42]="DIRECTIVE_CLOSE",e[e.PROCESSING_INSTRUCTION=43]="PROCESSING_INSTRUCTION",e[e.EOF=44]="EOF",e}({});function it(e){return e>=9&&e<=32||e==160}function Oe(e){return 48<=e&&e<=57}function Re(e){return e>=97&&e<=122||e>=65&&e<=90}function Di(e){return e>=97&&e<=102||e>=65&&e<=70||Oe(e)}function Me(e){return e===10||e===13}function gr(e){return 48<=e&&e<=55}function Ot(e){return e===39||e===34||e===96}var _e={AElig:"Æ",AMP:"&",amp:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"\uD835\uDD04",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"\uD835\uDD38",ApplyFunction:"",af:"",Aring:"Å",angst:"Å",Ascr:"\uD835\uDC9C",Assign:"≔",colone:"≔",coloneq:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",setminus:"∖",setmn:"∖",smallsetminus:"∖",ssetmn:"∖",Barv:"⫧",Barwed:"⌆",doublebarwedge:"⌆",Bcy:"Б",Because:"∵",becaus:"∵",because:"∵",Bernoullis:"ℬ",Bscr:"ℬ",bernou:"ℬ",Beta:"Β",Bfr:"\uD835\uDD05",Bopf:"\uD835\uDD39",Breve:"˘",breve:"˘",Bumpeq:"≎",HumpDownHump:"≎",bump:"≎",CHcy:"Ч",COPY:"©",copy:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",DD:"ⅅ",Cayleys:"ℭ",Cfr:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",cedil:"¸",CenterDot:"·",centerdot:"·",middot:"·",Chi:"Χ",CircleDot:"⊙",odot:"⊙",CircleMinus:"⊖",ominus:"⊖",CirclePlus:"⊕",oplus:"⊕",CircleTimes:"⊗",otimes:"⊗",ClockwiseContourIntegral:"∲",cwconint:"∲",CloseCurlyDoubleQuote:"”",rdquo:"”",rdquor:"”",CloseCurlyQuote:"’",rsquo:"’",rsquor:"’",Colon:"∷",Proportion:"∷",Colone:"⩴",Congruent:"≡",equiv:"≡",Conint:"∯",DoubleContourIntegral:"∯",ContourIntegral:"∮",conint:"∮",oint:"∮",Copf:"ℂ",complexes:"ℂ",Coproduct:"∐",coprod:"∐",CounterClockwiseContourIntegral:"∳",awconint:"∳",Cross:"⨯",Cscr:"\uD835\uDC9E",Cup:"⋓",CupCap:"≍",asympeq:"≍",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",ddagger:"‡",Darr:"↡",Dashv:"⫤",DoubleLeftTee:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",nabla:"∇",Delta:"Δ",Dfr:"\uD835\uDD07",DiacriticalAcute:"´",acute:"´",DiacriticalDot:"˙",dot:"˙",DiacriticalDoubleAcute:"˝",dblac:"˝",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"˜",tilde:"˜",Diamond:"⋄",diam:"⋄",diamond:"⋄",DifferentialD:"ⅆ",dd:"ⅆ",Dopf:"\uD835\uDD3B",Dot:"¨",DoubleDot:"¨",die:"¨",uml:"¨",DotDot:"⃜",DotEqual:"≐",doteq:"≐",esdot:"≐",DoubleDownArrow:"⇓",Downarrow:"⇓",dArr:"⇓",DoubleLeftArrow:"⇐",Leftarrow:"⇐",lArr:"⇐",DoubleLeftRightArrow:"⇔",Leftrightarrow:"⇔",hArr:"⇔",iff:"⇔",DoubleLongLeftArrow:"⟸",Longleftarrow:"⟸",xlArr:"⟸",DoubleLongLeftRightArrow:"⟺",Longleftrightarrow:"⟺",xhArr:"⟺",DoubleLongRightArrow:"⟹",Longrightarrow:"⟹",xrArr:"⟹",DoubleRightArrow:"⇒",Implies:"⇒",Rightarrow:"⇒",rArr:"⇒",DoubleRightTee:"⊨",vDash:"⊨",DoubleUpArrow:"⇑",Uparrow:"⇑",uArr:"⇑",DoubleUpDownArrow:"⇕",Updownarrow:"⇕",vArr:"⇕",DoubleVerticalBar:"∥",par:"∥",parallel:"∥",shortparallel:"∥",spar:"∥",DownArrow:"↓",ShortDownArrow:"↓",darr:"↓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",duarr:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",leftharpoondown:"↽",lhard:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",rhard:"⇁",rightharpoondown:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",top:"⊤",DownTeeArrow:"↧",mapstodown:"↧",Dscr:"\uD835\uDC9F",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"\uD835\uDD08",Egrave:"È",Element:"∈",in:"∈",isin:"∈",isinv:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"\uD835\uDD3C",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",eqsim:"≂",esim:"≂",Equilibrium:"⇌",rightleftharpoons:"⇌",rlhar:"⇌",Escr:"ℰ",expectation:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",exist:"∃",ExponentialE:"ⅇ",ee:"ⅇ",exponentiale:"ⅇ",Fcy:"Ф",Ffr:"\uD835\uDD09",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",blacksquare:"▪",squarf:"▪",squf:"▪",Fopf:"\uD835\uDD3D",ForAll:"∀",forall:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",gt:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"\uD835\uDD0A",Gg:"⋙",ggg:"⋙",Gopf:"\uD835\uDD3E",GreaterEqual:"≥",ge:"≥",geq:"≥",GreaterEqualLess:"⋛",gel:"⋛",gtreqless:"⋛",GreaterFullEqual:"≧",gE:"≧",geqq:"≧",GreaterGreater:"⪢",GreaterLess:"≷",gl:"≷",gtrless:"≷",GreaterSlantEqual:"⩾",geqslant:"⩾",ges:"⩾",GreaterTilde:"≳",gsim:"≳",gtrsim:"≳",Gscr:"\uD835\uDCA2",Gt:"≫",NestedGreaterGreater:"≫",gg:"≫",HARDcy:"Ъ",Hacek:"ˇ",caron:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",Poincareplane:"ℌ",HilbertSpace:"ℋ",Hscr:"ℋ",hamilt:"ℋ",Hopf:"ℍ",quaternions:"ℍ",HorizontalLine:"─",boxh:"─",Hstrok:"Ħ",HumpEqual:"≏",bumpe:"≏",bumpeq:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Im:"ℑ",image:"ℑ",imagpart:"ℑ",Igrave:"Ì",Imacr:"Ī",ImaginaryI:"ⅈ",ii:"ⅈ",Int:"∬",Integral:"∫",int:"∫",Intersection:"⋂",bigcap:"⋂",xcap:"⋂",InvisibleComma:"",ic:"",InvisibleTimes:"",it:"",Iogon:"Į",Iopf:"\uD835\uDD40",Iota:"Ι",Iscr:"ℐ",imagline:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"\uD835\uDD0D",Jopf:"\uD835\uDD41",Jscr:"\uD835\uDCA5",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"\uD835\uDD0E",Kopf:"\uD835\uDD42",Kscr:"\uD835\uDCA6",LJcy:"Љ",LT:"<",lt:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Lscr:"ℒ",lagran:"ℒ",Larr:"↞",twoheadleftarrow:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",lang:"⟨",langle:"⟨",LeftArrow:"←",ShortLeftArrow:"←",larr:"←",leftarrow:"←",slarr:"←",LeftArrowBar:"⇤",larrb:"⇤",LeftArrowRightArrow:"⇆",leftrightarrows:"⇆",lrarr:"⇆",LeftCeiling:"⌈",lceil:"⌈",LeftDoubleBracket:"⟦",lobrk:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",dharl:"⇃",downharpoonleft:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",lfloor:"⌊",LeftRightArrow:"↔",harr:"↔",leftrightarrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",dashv:"⊣",LeftTeeArrow:"↤",mapstoleft:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",vartriangleleft:"⊲",vltri:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",ltrie:"⊴",trianglelefteq:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",uharl:"↿",upharpoonleft:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",leftharpoonup:"↼",lharu:"↼",LeftVectorBar:"⥒",LessEqualGreater:"⋚",leg:"⋚",lesseqgtr:"⋚",LessFullEqual:"≦",lE:"≦",leqq:"≦",LessGreater:"≶",lessgtr:"≶",lg:"≶",LessLess:"⪡",LessSlantEqual:"⩽",leqslant:"⩽",les:"⩽",LessTilde:"≲",lesssim:"≲",lsim:"≲",Lfr:"\uD835\uDD0F",Ll:"⋘",Lleftarrow:"⇚",lAarr:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",longleftarrow:"⟵",xlarr:"⟵",LongLeftRightArrow:"⟷",longleftrightarrow:"⟷",xharr:"⟷",LongRightArrow:"⟶",longrightarrow:"⟶",xrarr:"⟶",Lopf:"\uD835\uDD43",LowerLeftArrow:"↙",swarr:"↙",swarrow:"↙",LowerRightArrow:"↘",searr:"↘",searrow:"↘",Lsh:"↰",lsh:"↰",Lstrok:"Ł",Lt:"≪",NestedLessLess:"≪",ll:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mscr:"ℳ",phmmat:"ℳ",Mfr:"\uD835\uDD10",MinusPlus:"∓",mnplus:"∓",mp:"∓",Mopf:"\uD835\uDD44",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",ZeroWidthSpace:"",NewLine:`
|
|
21
|
+
`,Nfr:"\uD835\uDD11",NoBreak:"",NonBreakingSpace:" ",nbsp:" ",Nopf:"ℕ",naturals:"ℕ",Not:"⫬",NotCongruent:"≢",nequiv:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",npar:"∦",nparallel:"∦",nshortparallel:"∦",nspar:"∦",NotElement:"∉",notin:"∉",notinva:"∉",NotEqual:"≠",ne:"≠",NotEqualTilde:"≂̸",nesim:"≂̸",NotExists:"∄",nexist:"∄",nexists:"∄",NotGreater:"≯",ngt:"≯",ngtr:"≯",NotGreaterEqual:"≱",nge:"≱",ngeq:"≱",NotGreaterFullEqual:"≧̸",ngE:"≧̸",ngeqq:"≧̸",NotGreaterGreater:"≫̸",nGtv:"≫̸",NotGreaterLess:"≹",ntgl:"≹",NotGreaterSlantEqual:"⩾̸",ngeqslant:"⩾̸",nges:"⩾̸",NotGreaterTilde:"≵",ngsim:"≵",NotHumpDownHump:"≎̸",nbump:"≎̸",NotHumpEqual:"≏̸",nbumpe:"≏̸",NotLeftTriangle:"⋪",nltri:"⋪",ntriangleleft:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",nltrie:"⋬",ntrianglelefteq:"⋬",NotLess:"≮",nless:"≮",nlt:"≮",NotLessEqual:"≰",nle:"≰",nleq:"≰",NotLessGreater:"≸",ntlg:"≸",NotLessLess:"≪̸",nLtv:"≪̸",NotLessSlantEqual:"⩽̸",nleqslant:"⩽̸",nles:"⩽̸",NotLessTilde:"≴",nlsim:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",npr:"⊀",nprec:"⊀",NotPrecedesEqual:"⪯̸",npre:"⪯̸",npreceq:"⪯̸",NotPrecedesSlantEqual:"⋠",nprcue:"⋠",NotReverseElement:"∌",notni:"∌",notniva:"∌",NotRightTriangle:"⋫",nrtri:"⋫",ntriangleright:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",nrtrie:"⋭",ntrianglerighteq:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",nsqsube:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",nsqsupe:"⋣",NotSubset:"⊂⃒",nsubset:"⊂⃒",vnsub:"⊂⃒",NotSubsetEqual:"⊈",nsube:"⊈",nsubseteq:"⊈",NotSucceeds:"⊁",nsc:"⊁",nsucc:"⊁",NotSucceedsEqual:"⪰̸",nsce:"⪰̸",nsucceq:"⪰̸",NotSucceedsSlantEqual:"⋡",nsccue:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",nsupset:"⊃⃒",vnsup:"⊃⃒",NotSupersetEqual:"⊉",nsupe:"⊉",nsupseteq:"⊉",NotTilde:"≁",nsim:"≁",NotTildeEqual:"≄",nsime:"≄",nsimeq:"≄",NotTildeFullEqual:"≇",ncong:"≇",NotTildeTilde:"≉",nap:"≉",napprox:"≉",NotVerticalBar:"∤",nmid:"∤",nshortmid:"∤",nsmid:"∤",Nscr:"\uD835\uDCA9",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"\uD835\uDD12",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",ohm:"Ω",Omicron:"Ο",Oopf:"\uD835\uDD46",OpenCurlyDoubleQuote:"“",ldquo:"“",OpenCurlyQuote:"‘",lsquo:"‘",Or:"⩔",Oscr:"\uD835\uDCAA",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",oline:"‾",OverBrace:"⏞",OverBracket:"⎴",tbrk:"⎴",OverParenthesis:"⏜",PartialD:"∂",part:"∂",Pcy:"П",Pfr:"\uD835\uDD13",Phi:"Φ",Pi:"Π",PlusMinus:"±",plusmn:"±",pm:"±",Popf:"ℙ",primes:"ℙ",Pr:"⪻",Precedes:"≺",pr:"≺",prec:"≺",PrecedesEqual:"⪯",pre:"⪯",preceq:"⪯",PrecedesSlantEqual:"≼",prcue:"≼",preccurlyeq:"≼",PrecedesTilde:"≾",precsim:"≾",prsim:"≾",Prime:"″",Product:"∏",prod:"∏",Proportional:"∝",prop:"∝",propto:"∝",varpropto:"∝",vprop:"∝",Pscr:"\uD835\uDCAB",Psi:"Ψ",QUOT:'"',quot:'"',Qfr:"\uD835\uDD14",Qopf:"ℚ",rationals:"ℚ",Qscr:"\uD835\uDCAC",RBarr:"⤐",drbkarow:"⤐",REG:"®",circledR:"®",reg:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",twoheadrightarrow:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",Rfr:"ℜ",real:"ℜ",realpart:"ℜ",ReverseElement:"∋",SuchThat:"∋",ni:"∋",niv:"∋",ReverseEquilibrium:"⇋",leftrightharpoons:"⇋",lrhar:"⇋",ReverseUpEquilibrium:"⥯",duhar:"⥯",Rho:"Ρ",RightAngleBracket:"⟩",rang:"⟩",rangle:"⟩",RightArrow:"→",ShortRightArrow:"→",rarr:"→",rightarrow:"→",srarr:"→",RightArrowBar:"⇥",rarrb:"⇥",RightArrowLeftArrow:"⇄",rightleftarrows:"⇄",rlarr:"⇄",RightCeiling:"⌉",rceil:"⌉",RightDoubleBracket:"⟧",robrk:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",dharr:"⇂",downharpoonright:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rfloor:"⌋",RightTee:"⊢",vdash:"⊢",RightTeeArrow:"↦",map:"↦",mapsto:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",vartriangleright:"⊳",vrtri:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",rtrie:"⊵",trianglerighteq:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",uharr:"↾",upharpoonright:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",rharu:"⇀",rightharpoonup:"⇀",RightVectorBar:"⥓",Ropf:"ℝ",reals:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",rAarr:"⇛",Rscr:"ℛ",realine:"ℛ",Rsh:"↱",rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"\uD835\uDD16",ShortUpArrow:"↑",UpArrow:"↑",uarr:"↑",uparrow:"↑",Sigma:"Σ",SmallCircle:"∘",compfn:"∘",Sopf:"\uD835\uDD4A",Sqrt:"√",radic:"√",Square:"□",squ:"□",square:"□",SquareIntersection:"⊓",sqcap:"⊓",SquareSubset:"⊏",sqsub:"⊏",sqsubset:"⊏",SquareSubsetEqual:"⊑",sqsube:"⊑",sqsubseteq:"⊑",SquareSuperset:"⊐",sqsup:"⊐",sqsupset:"⊐",SquareSupersetEqual:"⊒",sqsupe:"⊒",sqsupseteq:"⊒",SquareUnion:"⊔",sqcup:"⊔",Sscr:"\uD835\uDCAE",Star:"⋆",sstarf:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",sube:"⊆",subseteq:"⊆",Succeeds:"≻",sc:"≻",succ:"≻",SucceedsEqual:"⪰",sce:"⪰",succeq:"⪰",SucceedsSlantEqual:"≽",sccue:"≽",succcurlyeq:"≽",SucceedsTilde:"≿",scsim:"≿",succsim:"≿",Sum:"∑",sum:"∑",Sup:"⋑",Supset:"⋑",Superset:"⊃",sup:"⊃",supset:"⊃",SupersetEqual:"⊇",supe:"⊇",supseteq:"⊇",THORN:"Þ",TRADE:"™",trade:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"\uD835\uDD17",Therefore:"∴",there4:"∴",therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",thinsp:" ",Tilde:"∼",sim:"∼",thicksim:"∼",thksim:"∼",TildeEqual:"≃",sime:"≃",simeq:"≃",TildeFullEqual:"≅",cong:"≅",TildeTilde:"≈",ap:"≈",approx:"≈",asymp:"≈",thickapprox:"≈",thkap:"≈",Topf:"\uD835\uDD4B",TripleDot:"⃛",tdot:"⃛",Tscr:"\uD835\uDCAF",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"\uD835\uDD18",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",lowbar:"_",UnderBrace:"⏟",UnderBracket:"⎵",bbrk:"⎵",UnderParenthesis:"⏝",Union:"⋃",bigcup:"⋃",xcup:"⋃",UnionPlus:"⊎",uplus:"⊎",Uogon:"Ų",Uopf:"\uD835\uDD4C",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",udarr:"⇅",UpDownArrow:"↕",updownarrow:"↕",varr:"↕",UpEquilibrium:"⥮",udhar:"⥮",UpTee:"⊥",bot:"⊥",bottom:"⊥",perp:"⊥",UpTeeArrow:"↥",mapstoup:"↥",UpperLeftArrow:"↖",nwarr:"↖",nwarrow:"↖",UpperRightArrow:"↗",nearr:"↗",nearrow:"↗",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"\uD835\uDCB0",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",bigvee:"⋁",xvee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",mid:"∣",shortmid:"∣",smid:"∣",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"❘",VerticalTilde:"≀",wr:"≀",wreath:"≀",VeryThinSpace:" ",hairsp:" ",Vfr:"\uD835\uDD19",Vopf:"\uD835\uDD4D",Vscr:"\uD835\uDCB1",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",bigwedge:"⋀",xwedge:"⋀",Wfr:"\uD835\uDD1A",Wopf:"\uD835\uDD4E",Wscr:"\uD835\uDCB2",Xfr:"\uD835\uDD1B",Xi:"Ξ",Xopf:"\uD835\uDD4F",Xscr:"\uD835\uDCB3",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"\uD835\uDD1C",Yopf:"\uD835\uDD50",Yscr:"\uD835\uDCB4",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",Zeta:"Ζ",Zfr:"ℨ",zeetrf:"ℨ",Zopf:"ℤ",integers:"ℤ",Zscr:"\uD835\uDCB5",aacute:"á",abreve:"ă",ac:"∾",mstpos:"∾",acE:"∾̳",acd:"∿",acirc:"â",acy:"а",aelig:"æ",afr:"\uD835\uDD1E",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",and:"∧",wedge:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",angle:"∠",ange:"⦤",angmsd:"∡",measuredangle:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angzarr:"⍼",aogon:"ą",aopf:"\uD835\uDD52",apE:"⩰",apacir:"⩯",ape:"≊",approxeq:"≊",apid:"≋",apos:"'",aring:"å",ascr:"\uD835\uDCB6",ast:"*",midast:"*",atilde:"ã",auml:"ä",awint:"⨑",bNot:"⫭",backcong:"≌",bcong:"≌",backepsilon:"϶",bepsi:"϶",backprime:"‵",bprime:"‵",backsim:"∽",bsim:"∽",backsimeq:"⋍",bsime:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrktbrk:"⎶",bcy:"б",bdquo:"„",ldquor:"„",bemptyv:"⦰",beta:"β",beth:"ℶ",between:"≬",twixt:"≬",bfr:"\uD835\uDD1F",bigcirc:"◯",xcirc:"◯",bigodot:"⨀",xodot:"⨀",bigoplus:"⨁",xoplus:"⨁",bigotimes:"⨂",xotime:"⨂",bigsqcup:"⨆",xsqcup:"⨆",bigstar:"★",starf:"★",bigtriangledown:"▽",xdtri:"▽",bigtriangleup:"△",xutri:"△",biguplus:"⨄",xuplus:"⨄",bkarow:"⤍",rbarr:"⤍",blacklozenge:"⧫",lozf:"⧫",blacktriangle:"▴",utrif:"▴",blacktriangledown:"▾",dtrif:"▾",blacktriangleleft:"◂",ltrif:"◂",blacktriangleright:"▸",rtrif:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"\uD835\uDD53",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",minusb:"⊟",boxplus:"⊞",plusb:"⊞",boxtimes:"⊠",timesb:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",brvbar:"¦",bscr:"\uD835\uDCB7",bsemi:"⁏",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bumpE:"⪮",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cemptyv:"⦲",cent:"¢",cfr:"\uD835\uDD20",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",cire:"≗",circlearrowleft:"↺",olarr:"↺",circlearrowright:"↻",orarr:"↻",circledS:"Ⓢ",oS:"Ⓢ",circledast:"⊛",oast:"⊛",circledcirc:"⊚",ocir:"⊚",circleddash:"⊝",odash:"⊝",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",comma:",",commat:"@",comp:"∁",complement:"∁",congdot:"⩭",copf:"\uD835\uDD54",copysr:"℗",crarr:"↵",cross:"✗",cscr:"\uD835\uDCB8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",curlyeqprec:"⋞",cuesc:"⋟",curlyeqsucc:"⋟",cularr:"↶",curvearrowleft:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curvearrowright:"↷",curarrm:"⤼",curlyvee:"⋎",cuvee:"⋎",curlywedge:"⋏",cuwed:"⋏",curren:"¤",cwint:"∱",cylcty:"⌭",dHar:"⥥",dagger:"†",daleth:"ℸ",dash:"‐",hyphen:"‐",dbkarow:"⤏",rBarr:"⤏",dcaron:"ď",dcy:"д",ddarr:"⇊",downdownarrows:"⇊",ddotseq:"⩷",eDDot:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"\uD835\uDD21",diamondsuit:"♦",diams:"♦",digamma:"ϝ",gammad:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",llcorner:"⌞",dlcrop:"⌍",dollar:"$",dopf:"\uD835\uDD55",doteqdot:"≑",eDot:"≑",dotminus:"∸",minusd:"∸",dotplus:"∔",plusdo:"∔",dotsquare:"⊡",sdotb:"⊡",drcorn:"⌟",lrcorner:"⌟",drcrop:"⌌",dscr:"\uD835\uDCB9",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",triangledown:"▿",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",eqcirc:"≖",ecirc:"ê",ecolon:"≕",eqcolon:"≕",ecy:"э",edot:"ė",efDot:"≒",fallingdotseq:"≒",efr:"\uD835\uDD22",eg:"⪚",egrave:"è",egs:"⪖",eqslantgtr:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",eqslantless:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",varnothing:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"\uD835\uDD56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",straightepsilon:"ϵ",varepsilon:"ϵ",equals:"=",equest:"≟",questeq:"≟",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",risingdotseq:"≓",erarr:"⥱",escr:"ℯ",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"\uD835\uDD23",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"\uD835\uDD57",fork:"⋔",pitchfork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",half:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",sfrown:"⌢",fscr:"\uD835\uDCBB",gEl:"⪌",gtreqqless:"⪌",gacute:"ǵ",gamma:"γ",gap:"⪆",gtrapprox:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"\uD835\uDD24",gimel:"ℷ",gjcy:"ѓ",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gneqq:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gnsim:"⋧",gopf:"\uD835\uDD58",gscr:"ℊ",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtrdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrarr:"⥸",gvertneqq:"≩︀",gvnE:"≩︀",hardcy:"ъ",harrcir:"⥈",harrw:"↭",leftrightsquigarrow:"↭",hbar:"ℏ",hslash:"ℏ",planck:"ℏ",plankv:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",mldr:"…",hercon:"⊹",hfr:"\uD835\uDD25",hksearow:"⤥",searhk:"⤥",hkswarow:"⤦",swarhk:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",larrhk:"↩",hookrightarrow:"↪",rarrhk:"↪",hopf:"\uD835\uDD59",horbar:"―",hscr:"\uD835\uDCBD",hstrok:"ħ",hybull:"⁃",iacute:"í",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",ifr:"\uD835\uDD26",igrave:"ì",iiiint:"⨌",qint:"⨌",iiint:"∭",tint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",imath:"ı",inodot:"ı",imof:"⊷",imped:"Ƶ",incare:"℅",infin:"∞",infintie:"⧝",intcal:"⊺",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iprod:"⨼",iocy:"ё",iogon:"į",iopf:"\uD835\uDD5A",iota:"ι",iquest:"¿",iscr:"\uD835\uDCBE",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"\uD835\uDD27",jmath:"ȷ",jopf:"\uD835\uDD5B",jscr:"\uD835\uDCBF",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",varkappa:"ϰ",kcedil:"ķ",kcy:"к",kfr:"\uD835\uDD28",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"\uD835\uDD5C",kscr:"\uD835\uDCC0",lAtail:"⤛",lBarr:"⤎",lEg:"⪋",lesseqqgtr:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lambda:"λ",langd:"⦑",lap:"⪅",lessapprox:"⪅",laquo:"«",larrbfs:"⤟",larrfs:"⤝",larrlp:"↫",looparrowleft:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",leftarrowtail:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lcy:"л",ldca:"⤶",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leq:"≤",leftleftarrows:"⇇",llarr:"⇇",leftthreetimes:"⋋",lthree:"⋋",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessdot:"⋖",ltdot:"⋖",lfisht:"⥼",lfr:"\uD835\uDD29",lgE:"⪑",lharul:"⥪",lhblk:"▄",ljcy:"љ",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lneqq:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lnsim:"⋦",loang:"⟬",loarr:"⇽",longmapsto:"⟼",xmap:"⟼",looparrowright:"↬",rarrlp:"↬",lopar:"⦅",lopf:"\uD835\uDD5D",loplus:"⨭",lotimes:"⨴",lowast:"∗",loz:"◊",lozenge:"◊",lpar:"(",lparlt:"⦓",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"\uD835\uDCC1",lsime:"⪍",lsimg:"⪏",lsquor:"‚",sbquo:"‚",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",triangleleft:"◃",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",strns:"¯",male:"♂",malt:"✠",maltese:"✠",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",mfr:"\uD835\uDD2A",mho:"℧",micro:"µ",midcir:"⫰",minus:"−",minusdu:"⨪",mlcp:"⫛",models:"⊧",mopf:"\uD835\uDD5E",mscr:"\uD835\uDCC2",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nLeftarrow:"⇍",nlArr:"⇍",nLeftrightarrow:"⇎",nhArr:"⇎",nLl:"⋘̸",nLt:"≪⃒",nRightarrow:"⇏",nrArr:"⇏",nVDash:"⊯",nVdash:"⊮",nacute:"ń",nang:"∠⃒",napE:"⩰̸",napid:"≋̸",napos:"ʼn",natur:"♮",natural:"♮",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",neArr:"⇗",nearhk:"⤤",nedot:"≐̸",nesear:"⤨",toea:"⤨",nfr:"\uD835\uDD2B",nharr:"↮",nleftrightarrow:"↮",nhpar:"⫲",nis:"⋼",nisd:"⋺",njcy:"њ",nlE:"≦̸",nleqq:"≦̸",nlarr:"↚",nleftarrow:"↚",nldr:"‥",nopf:"\uD835\uDD5F",not:"¬",notinE:"⋹̸",notindot:"⋵̸",notinvb:"⋷",notinvc:"⋶",notnivb:"⋾",notnivc:"⋽",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",nrarr:"↛",nrightarrow:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nscr:"\uD835\uDCC3",nsub:"⊄",nsubE:"⫅̸",nsubseteqq:"⫅̸",nsup:"⊅",nsupE:"⫆̸",nsupseteqq:"⫆̸",ntilde:"ñ",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwnear:"⤧",oacute:"ó",ocirc:"ô",ocy:"о",odblac:"ő",odiv:"⨸",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"\uD835\uDD2C",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",olcir:"⦾",olcross:"⦻",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",oopf:"\uD835\uDD60",opar:"⦷",operp:"⦹",or:"∨",vee:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",oscr:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oslash:"ø",osol:"⊘",otilde:"õ",otimesas:"⨶",ouml:"ö",ovbar:"⌽",para:"¶",parsim:"⫳",parsl:"⫽",pcy:"п",percnt:"%",period:".",permil:"‰",pertenk:"‱",pfr:"\uD835\uDD2D",phi:"φ",phiv:"ϕ",straightphi:"ϕ",varphi:"ϕ",phone:"☎",pi:"π",piv:"ϖ",varpi:"ϖ",planckh:"ℎ",plus:"+",plusacir:"⨣",pluscir:"⨢",plusdu:"⨥",pluse:"⩲",plussim:"⨦",plustwo:"⨧",pointint:"⨕",popf:"\uD835\uDD61",pound:"£",prE:"⪳",prap:"⪷",precapprox:"⪷",precnapprox:"⪹",prnap:"⪹",precneqq:"⪵",prnE:"⪵",precnsim:"⋨",prnsim:"⋨",prime:"′",profalar:"⌮",profline:"⌒",profsurf:"⌓",prurel:"⊰",pscr:"\uD835\uDCC5",psi:"ψ",puncsp:" ",qfr:"\uD835\uDD2E",qopf:"\uD835\uDD62",qprime:"⁗",qscr:"\uD835\uDCC6",quatint:"⨖",quest:"?",rAtail:"⤜",rHar:"⥤",race:"∽̱",racute:"ŕ",raemptyv:"⦳",rangd:"⦒",range:"⦥",raquo:"»",rarrap:"⥵",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rightarrowtail:"↣",rarrw:"↝",rightsquigarrow:"↝",ratail:"⤚",ratio:"∶",rbbrk:"❳",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdsh:"↳",rect:"▭",rfisht:"⥽",rfr:"\uD835\uDD2F",rharul:"⥬",rho:"ρ",rhov:"ϱ",varrho:"ϱ",rightrightarrows:"⇉",rrarr:"⇉",rightthreetimes:"⋌",rthree:"⋌",ring:"˚",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",ropar:"⦆",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rsaquo:"›",rscr:"\uD835\uDCC7",rtimes:"⋊",rtri:"▹",triangleright:"▹",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",scE:"⪴",scap:"⪸",succapprox:"⪸",scaron:"š",scedil:"ş",scirc:"ŝ",scnE:"⪶",succneqq:"⪶",scnap:"⪺",succnapprox:"⪺",scnsim:"⋩",succnsim:"⋩",scpolint:"⨓",scy:"с",sdot:"⋅",sdote:"⩦",seArr:"⇘",sect:"§",semi:";",seswar:"⤩",tosa:"⤩",sext:"✶",sfr:"\uD835\uDD30",sharp:"♯",shchcy:"щ",shcy:"ш",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",varsigma:"ς",simdot:"⩪",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",smashp:"⨳",smeparsl:"⧤",smile:"⌣",ssmile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"\uD835\uDD64",spades:"♠",spadesuit:"♠",sqcaps:"⊓︀",sqcups:"⊔︀",sscr:"\uD835\uDCC8",star:"☆",sub:"⊂",subset:"⊂",subE:"⫅",subseteqq:"⫅",subdot:"⪽",subedot:"⫃",submult:"⫁",subnE:"⫋",subsetneqq:"⫋",subne:"⊊",subsetneq:"⊊",subplus:"⪿",subrarr:"⥹",subsim:"⫇",subsub:"⫕",subsup:"⫓",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supseteqq:"⫆",supdot:"⪾",supdsub:"⫘",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supsetneqq:"⫌",supne:"⊋",supsetneq:"⊋",supplus:"⫀",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tcaron:"ť",tcedil:"ţ",tcy:"т",telrec:"⌕",tfr:"\uD835\uDD31",theta:"θ",thetasym:"ϑ",thetav:"ϑ",vartheta:"ϑ",thorn:"þ",times:"×",timesbar:"⨱",timesd:"⨰",topbot:"⌶",topcir:"⫱",topf:"\uD835\uDD65",topfork:"⫚",tprime:"‴",triangle:"▵",utri:"▵",triangleq:"≜",trie:"≜",tridot:"◬",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"\uD835\uDCC9",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",uHar:"⥣",uacute:"ú",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udblac:"ű",ufisht:"⥾",ufr:"\uD835\uDD32",ugrave:"ù",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uogon:"ų",uopf:"\uD835\uDD66",upsi:"υ",upsilon:"υ",upuparrows:"⇈",uuarr:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"\uD835\uDCCA",utdot:"⋰",utilde:"ũ",uuml:"ü",uwangle:"⦧",vBar:"⫨",vBarv:"⫩",vangrt:"⦜",varsubsetneq:"⊊︀",vsubne:"⊊︀",varsubsetneqq:"⫋︀",vsubnE:"⫋︀",varsupsetneq:"⊋︀",vsupne:"⊋︀",varsupsetneqq:"⫌︀",vsupnE:"⫌︀",vcy:"в",veebar:"⊻",veeeq:"≚",vellip:"⋮",vfr:"\uD835\uDD33",vopf:"\uD835\uDD67",vscr:"\uD835\uDCCB",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedgeq:"≙",weierp:"℘",wp:"℘",wfr:"\uD835\uDD34",wopf:"\uD835\uDD68",wscr:"\uD835\uDCCC",xfr:"\uD835\uDD35",xi:"ξ",xnis:"⋻",xopf:"\uD835\uDD69",xscr:"\uD835\uDCCD",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"\uD835\uDD36",yicy:"ї",yopf:"\uD835\uDD6A",yscr:"\uD835\uDCCE",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeta:"ζ",zfr:"\uD835\uDD37",zhcy:"ж",zigrarr:"⇝",zopf:"\uD835\uDD6B",zscr:"\uD835\uDCCF",zwj:"",zwnj:""};_e.ngsp="";var to=class{tokens;errors;nonNormalizedIcuExpressions;constructor(e,t,r){this.tokens=e,this.errors=t,this.nonNormalizedIcuExpressions=r}};function qi(e,t,r,n={}){let i=new oo(new nt(e,t),r,n);return i.tokenize(),new to(fo(i.tokens),i.errors,i.nonNormalizedIcuExpressions)}var ro=/\r\n?/g;function Se(e){return`Unexpected character "${e===0?"EOF":String.fromCharCode(e)}"`}function Ii(e){return`Unknown entity "${e}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function no(e,t){return`Unable to parse entity "${t}" - ${e} character reference entities must end with ";"`}var io=["@if","@else","@for","@switch","@case","@default","@empty","@defer","@placeholder","@loading","@boundary","@error","@content"],st={start:"{{",end:"}}"},so=/^default[^\S\r\n]+never/,ao=/^else[^\S\r\n]+if/,oo=class{_getTagContentType;_cursor;_tokenizeIcu;_leadingTriviaCodePoints;_canSelfClose;_allowHtmComponentClosingTags;_allowStartTagComments;_currentTokenStart=null;_currentTokenType=null;_expansionCaseStack=[];_openDirectiveCount=0;_inInterpolation=false;_preserveLineEndings;_i18nNormalizeLineEndingsInICUs;_fullNameStack=[];_tokenizeBlocks;_tokenizeLet;_selectorlessEnabled;tokens=[];errors=[];nonNormalizedIcuExpressions=[];constructor(e,t,r){this._getTagContentType=t,this._tokenizeIcu=r.tokenizeExpansionForms||false,this._leadingTriviaCodePoints=r.leadingTriviaChars&&r.leadingTriviaChars.map((i)=>i.codePointAt(0)||0),this._canSelfClose=r.canSelfClose||false,this._allowHtmComponentClosingTags=r.allowHtmComponentClosingTags||false,this._allowStartTagComments=r.allowStartTagComments??true;let n=r.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=r.escapedString?new go(e,n):new Fi(e,n),this._preserveLineEndings=r.preserveLineEndings||false,this._i18nNormalizeLineEndingsInICUs=r.i18nNormalizeLineEndingsInICUs||false,this._tokenizeBlocks=r.tokenizeBlocks??true,this._tokenizeLet=r.tokenizeLet??true,this._selectorlessEnabled=r.selectorlessEnabled??false;try{this._cursor.init()}catch(i){this.handleError(i)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(ro,`
|
|
22
|
+
`)}tokenize(){for(;this._cursor.peek()!==0;){let e=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else{let t=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=t,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeLet&&this._cursor.peek()===64&&!this._inInterpolation&&this._isLetStart()?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._isBlockStart()?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(t){this.handleError(t)}}this._beginToken(44),this._endToken([])}_getBlockName(){let e=false,t=this._cursor.clone();this._attemptCharCodeUntilFn((n)=>it(n)?!e:mo(n)?(e=true,false):true);let r=this._cursor.getChars(t).trim();return ao.test(r)?r="else if":so.test(r)&&(r="default never"),r}_consumeBlockStart(e){this._requireCharCode(64),this._beginToken(26,e);let t=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(b),this._attemptCharCode(41))this._attemptCharCodeUntilFn(b);else{t.type=30;return}if(t.parts[0]==="default never"&&this._attemptCharCode(59)){this._beginToken(27),this._endToken([]),this._beginToken(28),this._endToken([]);return}this._attemptCharCode(123)?(this._beginToken(27),this._endToken([])):this._isBlockStart()&&(t.parts[0]==="case"||t.parts[0]==="default")?(this._beginToken(27),this._endToken([]),this._beginToken(28),this._endToken([])):t.type=30}_consumeBlockEnd(e){this._beginToken(28,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(Ri);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(29);let e=this._cursor.clone(),t=null,r=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||t!==null;){let n=this._cursor.peek();if(n===92)this._cursor.advance();else if(n===t)t=null;else if(t===null&&Ot(n))t=n;else if(n===40&&t===null)r++;else if(n===41&&t===null){if(r===0)break;r>0&&r--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(Ri)}}_consumeLetDeclaration(e){if(this._requireStr("@let"),this._beginToken(31,e),it(this._cursor.peek()))this._attemptCharCodeUntilFn(b);else{let r=this._endToken([this._cursor.getChars(e)]);r.type=34;return}let t=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(b),!this._attemptCharCode(61)){t.type=34;return}this._attemptCharCodeUntilFn((r)=>b(r)&&!Me(r)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(33),this._cursor.advance(),this._endToken([])):(t.type=34,t.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),t=false;return this._attemptCharCodeUntilFn((r)=>Re(r)||r===36||r===95||t&&Oe(r)?(t=true,false):true),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();this._beginToken(32,e),this._attemptUntilIgnoreQuotes((t)=>t===59),this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),true;if(po(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),true;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),true;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),true}return false}_beginToken(e,t=this._cursor.clone()){this._currentTokenStart=t,this._currentTokenType=e}_endToken(e,t){if(this._currentTokenStart===null)throw new re(this._cursor.getSpan(t),"Programming error - attempted to end a token when there was no start to the token");if(this._currentTokenType===null)throw new re(this._cursor.getSpan(this._currentTokenStart),"Programming error - attempted to end a token which has no token type");let r={type:this._currentTokenType,parts:e,sourceSpan:(t??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(r),this._currentTokenStart=null,this._currentTokenType=null,r}_createError(e,t){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let r=new re(t,e);return this._currentTokenStart=null,this._currentTokenType=null,r}handleError(e){if(e instanceof vr&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof re)this.errors.push(e);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),true):false}_attemptCharCodeCaseInsensitive(e){return ho(this._cursor.peek(),e)?(this._cursor.advance(),true):false}_requireCharCode(e){let t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(Se(this._cursor.peek()),this._cursor.getSpan(t))}_attemptStr(e){let t=e.length;if(this._cursor.charsLeft()<t)return false;let r=this._cursor.clone();for(let n=0;n<t;n++)if(!this._attemptCharCode(e.charCodeAt(n)))return this._cursor=r,false;return true}_attemptStrCaseInsensitive(e){for(let t=0;t<e.length;t++)if(!this._attemptCharCodeCaseInsensitive(e.charCodeAt(t)))return false;return true}_requireStr(e){let t=this._cursor.clone();if(!this._attemptStr(e))throw this._createError(Se(this._cursor.peek()),this._cursor.getSpan(t))}_requireStrCaseInsensitive(e){let t=this._cursor.clone();if(!this._attemptStrCaseInsensitive(e))throw this._createError(Se(this._cursor.peek()),this._cursor.getSpan(t))}_attemptCharCodeUntilFn(e){for(;!e(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(e,t){let r=this._cursor.clone();if(this._attemptCharCodeUntilFn(e),this._cursor.diff(r)<t)throw this._createError(Se(this._cursor.peek()),this._cursor.getSpan(r))}_attemptUntilChar(e){for(;this._cursor.peek()!==e;)this._cursor.advance()}_attemptUntilIgnoreQuotes(e){for(;this._cursor.peek()!==0;){let t=this._cursor.peek();if(e(t))break;Ot(t)&&(this._cursor.advance(),this._attemptCharCodeUntilFn((r)=>r===92?(this._cursor.advance(),false):r===t)),this._cursor.advance()}}_readChar(){let e=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),e}_peekStr(e){let t=e.length;if(this._cursor.charsLeft()<t)return false;let r=this._cursor.clone();for(let n=0;n<t;n++){if(r.peek()!==e.charCodeAt(n))return false;r.advance()}return true}_isBlockStart(){return this._cursor.peek()===64&&io.some((e)=>this._peekStr(e))}_isLetStart(){return this._cursor.peek()===64&&this._peekStr("@let")}_consumeEntity(e){this._beginToken(9);let t=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(35)){let r=this._attemptCharCode(120)||this._attemptCharCode(88),n=this._cursor.clone();if(this._attemptCharCodeUntilFn(co),this._cursor.peek()!=59){this._cursor.advance();let s=r?"hexadecimal":"decimal";throw this._createError(no(s,this._cursor.getChars(t)),this._cursor.getSpan())}let i=this._cursor.getChars(n);this._cursor.advance();try{let s=parseInt(i,r?16:10);this._endToken([String.fromCodePoint(s),this._cursor.getChars(t)])}catch{throw this._createError(Ii(this._cursor.getChars(t)),this._cursor.getSpan())}}else{let r=this._cursor.clone();if(this._attemptCharCodeUntilFn(uo),this._cursor.peek()!=59)this._beginToken(e,t),this._cursor=r,this._endToken(["&"]);else{let n=this._cursor.getChars(r);this._cursor.advance();let i=O(_e,n)&&_e[n];if(!i)throw this._createError(Ii(n),this._cursor.getSpan(t));this._endToken([i,`&${n};`])}}}_consumeRawText(e,t){this._beginToken(e?6:7);let r=[];for(;;){let n=this._cursor.clone(),i=t();if(this._cursor=n,i)break;e&&this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(r.join(""))]),r.length=0,this._consumeEntity(6),this._beginToken(6)):r.push(this._readChar())}this._endToken([this._processCarriageReturns(r.join(""))])}_consumeComment(e){this._beginToken(10,e),this._endToken([]),this._consumeRawText(false,()=>this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(e){this._beginToken(10,e),this._endToken([]),this._consumeRawText(false,()=>this._cursor.peek()===62),this._beginToken(11),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(13,e),this._endToken([]),this._consumeRawText(false,()=>this._attemptStr("]]>")),this._beginToken(14),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(19,e),this._endToken([]),this._consumeRawText(false,()=>this._cursor.peek()===62),this._beginToken(20),this._cursor.advance(),this._endToken([])}_consumeProcessingInstruction(e){this._beginToken(43,e);let t=this._cursor.clone();this._attemptUntilIgnoreQuotes((i)=>i===63||i===62);let r=this._cursor.peek(),n=this._cursor.getChars(t);this._cursor.advance(),r===63&&this._requireCharCode(62),this._endToken([n])}_consumePrefixAndName(e){let t=this._cursor.clone(),r="";for(;this._cursor.peek()!==58&&!lo(this._cursor.peek());)this._cursor.advance();let n;this._cursor.peek()===58?(r=this._cursor.getChars(t),this._cursor.advance(),n=this._cursor.clone()):n=t,this._requireCharCodeUntilFn(e,r===""?0:1);let i=this._cursor.getChars(n);return[r,i]}_consumeSingleLineComment(e){let t=this._cursor.clone();this._attemptCharCodeUntilFn((i)=>Me(i)||i===0);let r=this._cursor.clone(),n=r.getChars(t);this._beginToken(12,e),this._endToken([n,"single"],r),this._attemptCharCodeUntilFn(b)}_consumeMultiLineComment(e){let t=this._cursor.clone();this._attemptCharCodeUntilFn((s)=>{if(s===0)return true;if(s===42){let a=this._cursor.clone();return a.advance(),a.peek()===47}return false});let r=this._cursor.clone(),n=r.getChars(t),i=r;this._attemptStr("*/")&&(i=this._cursor.clone(),this._attemptCharCodeUntilFn(b)),this._beginToken(12,e),this._endToken([n,"multi"],i)}_consumeTagOpen(e){let t,r,n,i,s=[];try{if(this._selectorlessEnabled&&Rt(this._cursor.peek()))i=this._consumeComponentOpenStart(e),[n,r,t]=i.parts,r&&(n+=`:${r}`),t&&(n+=`:${t}`),this._attemptCharCodeUntilFn(b);else{if(!Re(this._cursor.peek()))throw this._createError(Se(this._cursor.peek()),this._cursor.getSpan(e));i=this._consumeTagOpenStart(e),r=i.parts[0],t=n=i.parts[1],this._attemptCharCodeUntilFn(b)}for(;;){if(this._allowStartTagComments){let o=this._cursor.clone();if(this._attemptStr("//")){this._consumeSingleLineComment(o);continue}if(this._attemptStr("/*")){this._consumeMultiLineComment(o);continue}}if(Bi(this._cursor.peek()))break;if(this._selectorlessEnabled&&this._cursor.peek()===64){let o=this._cursor.clone(),l=o.clone();l.advance(),Rt(l.peek())&&this._consumeDirective(o,l)}else{let o=this._consumeAttribute();s.push(o)}}i.type===35?this._consumeComponentOpenEnd():this._consumeTagOpenEnd()}catch(o){if(o instanceof re){i?i.type=i.type===35?39:4:(this._beginToken(5,e),this._endToken(["<"]));return}throw o}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===2)return;let a=this._getTagContentType(t,r,this._fullNameStack.length>0,s);this._handleFullNameStackForTagOpen(r,t),a===0?this._consumeRawTextWithTagClose(r,i,n,false):a===1&&this._consumeRawTextWithTagClose(r,i,n,true)}_consumeRawTextWithTagClose(e,t,r,n){this._consumeRawText(n,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(b),!this._attemptStrCaseInsensitive(e&&t.type!==35?`${e}:${r}`:r))?false:(this._attemptCharCodeUntilFn(b),this._attemptCharCode(62))),this._beginToken(t.type===35?38:3),this._requireCharCodeUntilFn((i)=>i===62,3),this._cursor.advance(),this._endToken(t.parts),this._handleFullNameStackForTagClose(e,r)}_consumeTagOpenStart(e){this._beginToken(0,e);let t=this._consumePrefixAndName(ve);return this._endToken(t)}_consumeComponentOpenStart(e){this._beginToken(35,e);let t=this._consumeComponentName();return this._endToken(t)}_consumeComponentName(){let e=this._cursor.clone();for(;Mi(this._cursor.peek());)this._cursor.advance();let t=this._cursor.getChars(e),r="",n="";return this._cursor.peek()===58&&(this._cursor.advance(),[r,n]=this._consumePrefixAndName(ve)),[t,r,n]}_consumeAttribute(){let[e,t]=this._consumeAttributeName(),r;return this._attemptCharCodeUntilFn(b),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(b),r=this._consumeAttributeValue()),this._attemptCharCodeUntilFn(b),{prefix:e,name:t,value:r}}_consumeAttributeName(){let e=this._cursor.peek();if(e===39||e===34)throw this._createError(Se(e),this._cursor.getSpan());this._beginToken(15);let t;if(this._openDirectiveCount>0){let n=0;t=(i)=>{if(this._openDirectiveCount>0){if(i===40)n++;else if(i===41){if(n===0)return true;n--}}return ve(i)}}else if(e===91){let n=0;t=(i)=>(i===91?n++:i===93&&n--,n<=0?ve(i):Me(i))}else t=ve;let r=this._consumePrefixAndName(t);return this._endToken(r),r}_consumeAttributeValue(){let e;if(this._cursor.peek()===39||this._cursor.peek()===34){let t=this._cursor.peek();this._consumeQuote(t);let r=()=>this._cursor.peek()===t;e=this._consumeWithInterpolation(17,18,r,r),this._consumeQuote(t)}else{let t=()=>ve(this._cursor.peek());e=this._consumeWithInterpolation(17,18,t,t)}return e}_consumeQuote(e){this._beginToken(16),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?2:1;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeComponentOpenEnd(){let e=this._attemptCharCode(47)?37:36;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){if(this._selectorlessEnabled){let t=e.clone();for(;t.peek()!==62&&!Rt(t.peek());)t.advance();if(Rt(t.peek())){this._beginToken(38,e);let r=this._consumeComponentName();this._attemptCharCodeUntilFn(b),this._requireCharCode(62),this._endToken(r);return}}if(this._beginToken(3,e),this._attemptCharCodeUntilFn(b),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(b),this._requireCharCode(62),this._endToken([]);else{let[t,r]=this._consumePrefixAndName(ve);this._attemptCharCodeUntilFn(b),this._requireCharCode(62),this._endToken([t,r]),this._handleFullNameStackForTagClose(t,r)}}_consumeExpansionFormStart(){this._beginToken(21),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(21),this._beginToken(7);let e=this._readUntil(44),t=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([t]);else{let n=this._endToken([e]);t!==e&&this.nonNormalizedIcuExpressions.push(n)}this._requireCharCode(44),this._attemptCharCodeUntilFn(b),this._beginToken(7);let r=this._readUntil(44);this._endToken([r]),this._requireCharCode(44),this._attemptCharCodeUntilFn(b)}_consumeExpansionCaseStart(){this._beginToken(22);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(b),this._beginToken(23),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(b),this._expansionCaseStack.push(23)}_consumeExpansionCaseEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(b),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(25),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,t,r,n){this._beginToken(e);let i=[];for(;!r();){let a=this._cursor.clone();this._attemptStr(st.start)?(this._endToken([this._processCarriageReturns(i.join(""))],a),i.length=0,this._consumeInterpolation(t,a,n),this._beginToken(e)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(i.join(""))]),i.length=0,this._consumeEntity(e),this._beginToken(e)):i.push(this._readChar())}this._inInterpolation=false;let s=this._processCarriageReturns(i.join(""));return this._endToken([s]),s}_consumeInterpolation(e,t,r){let n=[];this._beginToken(e,t),n.push(st.start);let i=this._cursor.clone(),s=null,a=false;for(;this._cursor.peek()!==0&&(r===null||!r());){let o=this._cursor.clone();if(this._isTagStart()){this._cursor=o,n.push(this._getProcessedChars(i,o)),this._endToken(n);return}if(s===null)if(this._attemptStr(st.end)){n.push(this._getProcessedChars(i,o)),n.push(st.end),this._endToken(n);return}else this._attemptStr("//")&&(a=true);let l=this._cursor.peek();this._cursor.advance(),l===92?this._cursor.advance():l===s?s=null:!a&&s===null&&Ot(l)&&(s=l)}n.push(this._getProcessedChars(i,this._cursor)),this._endToken(n)}_consumeDirective(e,t){for(this._requireCharCode(64),this._cursor.advance();Mi(this._cursor.peek());)this._cursor.advance();this._beginToken(40,e);let r=this._cursor.getChars(t);if(this._endToken([r]),this._attemptCharCodeUntilFn(b),this._cursor.peek()===40){for(this._openDirectiveCount++,this._beginToken(41),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(b);!Bi(this._cursor.peek())&&this._cursor.peek()!==41;)this._consumeAttribute();if(this._attemptCharCodeUntilFn(b),this._openDirectiveCount--,this._cursor.peek()!==41){if(this._cursor.peek()===62||this._cursor.peek()===47)return;throw this._createError(Se(this._cursor.peek()),this._cursor.getSpan(e))}this._beginToken(42),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(b)}}_getProcessedChars(e,t){return this._processCarriageReturns(t.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._isLetStart()||this._cursor.peek()===125))}_isTagStart(){if(this._cursor.peek()===60){let e=this._cursor.clone();e.advance();let t=e.peek();if(97<=t&&t<=122||65<=t&&t<=90||t===47||t===33||t===63)return true}return false}_readUntil(e){let t=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(t)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===23}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===21}isExpansionFormStart(){if(this._cursor.peek()!==123)return false;let e=this._cursor.clone(),t=this._attemptStr(st.start);return this._cursor=e,!t}_handleFullNameStackForTagOpen(e,t){let r=fe(e,t);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===r)&&this._fullNameStack.push(r)}_handleFullNameStackForTagClose(e,t){let r=fe(e,t);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===r&&this._fullNameStack.pop()}};function b(e){return!it(e)||e===0}function ve(e){return it(e)||e===62||e===60||e===47||e===39||e===34||e===61||e===0}function lo(e){return(e<97||122<e)&&(e<65||90<e)&&(e<48||e>57)}function co(e){return e===59||e===0||!Di(e)}function uo(e){return e===59||e===0||!(Re(e)||Oe(e))}function po(e){return e!==125}function ho(e,t){return Oi(e)===Oi(t)}function Oi(e){return e>=97&&e<=122?e-97+65:e}function mo(e){return Re(e)||Oe(e)||e===95}function Ri(e){return e!==59&&b(e)}function Rt(e){return e===95||e>=65&&e<=90}function Mi(e){return Re(e)||Oe(e)||e===95}function Bi(e){return e===47||e===62||e===60||e===0}function fo(e){let t=[],r;for(let n=0;n<e.length;n++){let i=e[n];r&&r.type===5&&i.type===5||r&&r.type===17&&i.type===17?(r.parts[0]+=i.parts[0],r.sourceSpan.end=i.sourceSpan.end):(r=i,t.push(r))}return t}var Fi=class _r{state;file;input;end;constructor(t,r){if(t instanceof _r){this.file=t.file,this.input=t.input,this.end=t.end;let n=t.state;this.state={peek:n.peek,offset:n.offset,line:n.line,column:n.column}}else{if(!r)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=t,this.input=t.content,this.end=r.endPos,this.state={peek:-1,offset:r.startPos,line:r.startLine,column:r.startCol}}}clone(){return new _r(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(t){return this.state.offset-t.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(t,r){t=t||this;let n=t;if(r)for(;this.diff(t)>0&&r.indexOf(t.peek())!==-1;)n===t&&(t=t.clone()),t.advance();let i=this.locationFromCursor(t),s=this.locationFromCursor(this),a=n!==t?this.locationFromCursor(n):i;return new p(i,s,a)}getChars(t){return this.input.substring(t.state.offset,this.state.offset)}charAt(t){return this.input.charCodeAt(t)}advanceState(t){if(t.offset>=this.end)throw this.state=t,new vr('Unexpected character "EOF"',this);let r=this.charAt(t.offset);r===10?(t.line++,t.column=0):Me(r)||t.column++,t.offset++,this.updatePeek(t)}updatePeek(t){t.peek=t.offset>=this.end?0:this.charAt(t.offset)}locationFromCursor(t){return new Ie(t.file,t.state.offset,t.state.line,t.state.column)}},go=class Sr extends Fi{internalState;constructor(t,r){t instanceof Sr?(super(t),this.internalState={...t.internalState}):(super(t,r),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new Sr(this)}getChars(t){let r=t.clone(),n="";for(;r.internalState.offset<this.internalState.offset;)n+=String.fromCodePoint(r.peek()),r.advance();return n}processEscapeSequence(){let t=()=>this.internalState.peek;if(t()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),t()===110)this.state.peek=10;else if(t()===114)this.state.peek=13;else if(t()===118)this.state.peek=11;else if(t()===116)this.state.peek=9;else if(t()===98)this.state.peek=8;else if(t()===102)this.state.peek=12;else if(t()===117)if(this.advanceState(this.internalState),t()===123){this.advanceState(this.internalState);let r=this.clone(),n=0;for(;t()!==125;)this.advanceState(this.internalState),n++;this.state.peek=this.decodeHexDigits(r,n)}else{let r=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,4)}else if(t()===120){this.advanceState(this.internalState);let r=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,2)}else if(gr(t())){let r="",n=0,i=this.clone();for(;gr(t())&&n<3;)i=this.clone(),r+=String.fromCodePoint(t()),this.advanceState(this.internalState),n++;this.state.peek=parseInt(r,8),this.internalState=i.internalState}else Me(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(t,r){let n=this.input.slice(t.internalState.offset,t.internalState.offset+r),i=parseInt(n,16);if(isNaN(i))throw t.state=t.internalState,new vr("Invalid hexadecimal escape sequence",t);return i}},vr=class extends Error{msg;cursor;constructor(e,t){super(e),this.msg=e,this.cursor=t,Object.setPrototypeOf(this,new.target.prototype)}};var L=class Ui extends re{elementName;static create(t,r,n){return new Ui(t,r,n)}constructor(t,r,n){super(r,n),this.elementName=t}},_o=class{rootNodes;errors;constructor(e,t){this.rootNodes=e,this.errors=t}},Wi=class{getTagDefinition;constructor(e){this.getTagDefinition=e}parse(e,t,r,n=false,i){let s=(h)=>(f,...g)=>h(f.toLowerCase(),...g),a=n?this.getTagDefinition:s(this.getTagDefinition),o=(h)=>a(h).getContentType(),l=n?i:s(i),c=qi(e,t,i?(h,f,g,v)=>{let z=l(h,f,g,v);return z!==undefined?z:o(h)}:o,r),u=r&&r.canSelfClose||false,d=r&&r.allowHtmComponentClosingTags||false,S=new So(c.tokens,a,u,d,n);return S.build(),new _o(S.rootNodes,[...c.errors,...S.errors])}},So=class Gi{tokens;tagDefinitionResolver;canSelfClose;allowHtmComponentClosingTags;isTagNameCaseSensitive;_index=-1;_peek;_containerStack=[];rootNodes=[];errors=[];constructor(t,r,n,i,s){this.tokens=t,this.tagDefinitionResolver=r,this.canSelfClose=n,this.allowHtmComponentClosingTags=i,this.isTagNameCaseSensitive=s,this._advance()}build(){for(;this._peek.type!==44;)this._peek.type===0||this._peek.type===4?this._consumeElementStartTag(this._advance()):this._peek.type===3?(this._closeVoidElement(),this._consumeElementEndTag(this._advance())):this._peek.type===13?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===21?this._consumeExpansion(this._advance()):this._peek.type===26?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===28?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===30?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===31?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===19?this._consumeDocType(this._advance()):this._peek.type===34?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._peek.type===35||this._peek.type===39?this._consumeComponentStartTag(this._advance()):this._peek.type===38?this._consumeComponentEndTag(this._advance()):this._advance();for(let t of this._containerStack)t instanceof ge&&this.errors.push(L.create(t.name,t.sourceSpan,`Unclosed block "${t.name}"`))}_advance(){let t=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],t}_advanceIf(t){return this._peek.type===t?this._advance():null}_consumeCdata(t){let r=this._advance(),n=this._getText(r),i=this._advanceIf(14);this._addToParent(new ki(n,new p(t.sourceSpan.start,(i||r).sourceSpan.end),[r]))}_consumeComment(t){let r=this._advanceIf(7),n=this._advanceIf(11),i=r!=null?r.parts[0].trim():null,s=n==null?t.sourceSpan:new p(t.sourceSpan.start,n.sourceSpan.end,t.sourceSpan.fullStart);this._addToParent(new Li(i,s))}_consumeDocType(t){let r=this._advanceIf(7),n=this._advanceIf(20),i=r!=null?r.parts[0].trim():null,s=new p(t.sourceSpan.start,(n||r||t).sourceSpan.end);this._addToParent(new Ni(i,s))}_consumeExpansion(t){let r=this._advance(),n=this._advance(),i=[];for(;this._peek.type===22;){let a=this._parseExpansionCase();if(!a)return;i.push(a)}if(this._peek.type!==25){this.errors.push(L.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let s=new p(t.sourceSpan.start,this._peek.sourceSpan.end,t.sourceSpan.fullStart);this._addToParent(new Ti(r.parts[0],n.parts[0],i,s,r.sourceSpan)),this._advance()}_parseExpansionCase(){let t=this._advance();if(this._peek.type!==23)return this.errors.push(L.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;let r=this._advance(),n=this._collectExpansionExpTokens(r);if(!n)return null;let i=this._advance();n.push({type:44,parts:[],sourceSpan:i.sourceSpan});let s=new Gi(n,this.tagDefinitionResolver,this.canSelfClose,this.allowHtmComponentClosingTags,this.isTagNameCaseSensitive);if(s.build(),s.errors.length>0)return this.errors=this.errors.concat(s.errors),null;let a=new p(t.sourceSpan.start,i.sourceSpan.end,t.sourceSpan.fullStart),o=new p(r.sourceSpan.start,i.sourceSpan.end,r.sourceSpan.fullStart);return new yi(t.parts[0],s.rootNodes,a,t.sourceSpan,o)}_collectExpansionExpTokens(t){let r=[],n=[23];for(;;){if((this._peek.type===21||this._peek.type===23)&&n.push(this._peek.type),this._peek.type===24)if(Hi(n,23)){if(n.pop(),n.length===0)return r}else return this.errors.push(L.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===25)if(Hi(n,21))n.pop();else return this.errors.push(L.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===44)return this.errors.push(L.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.push(this._advance())}}_getText(t){let r=t.parts[0];if(r.length>0&&r[0]==`
|
|
23
|
+
`){var n;let i=this._getClosestElementLikeParent();i!=null&&i.children.length==0&&(!((n=this._getTagDefinition(i))===null||n===undefined)&&n.ignoreFirstLf)&&(r=r.substring(1))}return r}_consumeText(t){let r=[t],n=t.sourceSpan,i=t.parts[0];if(i.length>0&&i[0]===`
|
|
24
|
+
`){var s;let a=this._getContainer();a!=null&&a.children.length===0&&(!((s=this._getTagDefinition(a))===null||s===undefined)&&s.ignoreFirstLf)&&(i=i.substring(1),r[0]={type:t.type,sourceSpan:t.sourceSpan,parts:[i]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)t=this._advance(),r.push(t),t.type===8?i+=t.parts.join("").replace(/&([^;]+);/g,Vi):t.type===9?i+=t.parts[0]:i+=t.parts.join("");if(i.length>0){let a=t.sourceSpan;this._addToParent(new wi(i,new p(n.start,a.end,n.fullStart,n.details),r))}}_closeVoidElement(){var t;let r=this._getContainer();r!==null&&(!((t=this._getTagDefinition(r))===null||t===undefined)&&t.isVoid)&&this._containerStack.pop()}_consumeElementStartTag(t){var r;let n=[],i=[],s=[];this._consumeAttributesAndDirectives(n,i,s);let a=this._getElementFullName(t,this._getClosestElementLikeParent()),o=this._getTagDefinition(a),l=false;if(this._peek.type===2){this._advance(),l=true;let v=this._getTagDefinition(a);this.canSelfClose||v?.canSelfClose||Pe(a)!==null||v?.isVoid||this.errors.push(L.create(a,t.sourceSpan,`Only void, custom and foreign elements can be self closed "${t.parts[1]}"`))}else this._peek.type===1&&(this._advance(),l=false);let c=this._peek.sourceSpan.fullStart,u=new p(t.sourceSpan.start,c,t.sourceSpan.fullStart),d=new p(t.sourceSpan.start,c,t.sourceSpan.fullStart),S=new p(t.sourceSpan.start.moveBy(1),t.sourceSpan.end),h=new ne(a,n,i,[],l,u,d,undefined,S,o?.isVoid??false,undefined,s),f=this._getContainer(),g=f!==null&&!!(!((r=this._getTagDefinition(f))===null||r===undefined)&&r.isClosedByChild(h.name));this._pushContainer(h,g),l?this._popContainer(a,ne,u):t.type===4&&(this._popContainer(a,ne,null),this.errors.push(L.create(a,u,`Opening tag "${a}" not terminated.`)))}_consumeComponentStartTag(t){var r;let n=t.parts[0],i=[],s=[],a=[];this._consumeAttributesAndDirectives(i,s,a);let o=this._getClosestElementLikeParent(),l=this._getComponentTagName(t,o),c=this._getComponentFullName(t,o),u=this._peek.type===37;this._advance();let d=this._peek.sourceSpan.fullStart,S=new p(t.sourceSpan.start,d,t.sourceSpan.fullStart),h=new p(t.sourceSpan.start,d,t.sourceSpan.fullStart),f=new G(n,l,c,i,s,[],u,S,h,undefined,undefined,a),g=this._getContainer(),v=g!==null&&f.tagName!==null&&!!(!((r=this._getTagDefinition(g))===null||r===undefined)&&r.isClosedByChild(f.tagName));this._pushContainer(f,v),u?this._popContainer(c,G,S):t.type===39&&(this._popContainer(c,G,null),this.errors.push(L.create(c,S,`Opening tag "${c}" not terminated.`)))}_consumeAttributesAndDirectives(t,r,n){for(;this._peek.type===15||this._peek.type===40||this._peek.type===12;)if(this._peek.type===40)r.push(this._consumeDirective(this._peek));else if(this._peek.type===15)t.push(this._consumeAttr(this._advance()));else{let i=this._advance();n.push(new Ai(i.parts[0],i.parts[1],i.sourceSpan))}}_consumeComponentEndTag(t){let r=this._getComponentFullName(t,this._getClosestElementLikeParent());if(!this._popContainer(r,G,t.sourceSpan)){let n=this._containerStack[this._containerStack.length-1],i;n instanceof G&&n.componentName===t.parts[0]?i=`, did you mean "${n.fullName}"?`:i=". It may happen when the tag has already been closed by another tag.";let s=`Unexpected closing tag "${r}"${i}`;this.errors.push(L.create(r,t.sourceSpan,s))}}_getTagDefinition(t){return typeof t=="string"?this.tagDefinitionResolver(t):t instanceof ne?this.tagDefinitionResolver(t.name):t instanceof G&&t.tagName!==null?this.tagDefinitionResolver(t.tagName):null}_pushContainer(t,r){r&&this._containerStack.pop(),this._addToParent(t),this._containerStack.push(t)}_consumeElementEndTag(t){var r;let n=this.allowHtmComponentClosingTags&&t.parts.length===0?null:this._getElementFullName(t,this._getClosestElementLikeParent());if(n&&(!((r=this._getTagDefinition(n))===null||r===undefined)&&r.isVoid))this.errors.push(L.create(n,t.sourceSpan,`Void elements do not have end tags "${t.parts[1]}"`));else if(!this._popContainer(n,ne,t.sourceSpan)){let i=`Unexpected closing tag "${n}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(L.create(n,t.sourceSpan,i))}}_popContainer(t,r,n){let i=false;for(let a=this._containerStack.length-1;a>=0;a--){var s;let o=this._containerStack[a],l=o instanceof G?o.fullName:o.name;if(Pe(l)?l===t:(l===t||t===null)&&o instanceof r)return o.endSourceSpan=n,o.sourceSpan.end=n!==null?n.end:o.sourceSpan.end,this._containerStack.splice(a,this._containerStack.length-a),!i;(o instanceof ge||!(!((s=this._getTagDefinition(o))===null||s===undefined)&&s.closedByParent))&&(i=true)}return false}_consumeAttr(t){let r=fe(t.parts[0],t.parts[1]),n=t.sourceSpan.end,i;this._peek.type===16&&(i=this._advance());let s="",a=[],o,l;if(this._peek.type===17)for(o=this._peek.sourceSpan,l=this._peek.sourceSpan.end;this._peek.type===17||this._peek.type===18||this._peek.type===9;){let u=this._advance();a.push(u),u.type===18?s+=u.parts.join("").replace(/&([^;]+);/g,Vi):u.type===9?s+=u.parts[0]:s+=u.parts.join(""),l=n=u.sourceSpan.end}this._peek.type===16&&(l=n=this._advance().sourceSpan.end);let c=o&&l&&new p(i?.sourceSpan.start??o.start,l,i?.sourceSpan.fullStart??o.fullStart);return new xi(r,s,new p(t.sourceSpan.start,n,t.sourceSpan.fullStart),t.sourceSpan,c,a.length>0?a:undefined,undefined)}_consumeDirective(t){let r=[],n=t.sourceSpan.end,i=null;if(this._advance(),this._peek.type===41){for(n=this._peek.sourceSpan.end,this._advance();this._peek.type===15;)r.push(this._consumeAttr(this._advance()));this._peek.type===42?(i=this._peek.sourceSpan,this._advance()):this.errors.push(L.create(null,t.sourceSpan,"Unterminated directive definition"))}let s=new p(t.sourceSpan.start,n,t.sourceSpan.fullStart),a=new p(s.start,i===null?t.sourceSpan.end:i.end,s.fullStart);return new Pi(t.parts[0],r,a,s,i)}_consumeBlockOpen(t){let r=[];for(;this._peek.type===29;){let o=this._advance();r.push(new hr(o.parts[0],o.sourceSpan))}this._peek.type===27&&this._advance();let n=this._peek.sourceSpan.fullStart,i=new p(t.sourceSpan.start,n,t.sourceSpan.fullStart),s=new p(t.sourceSpan.start,n,t.sourceSpan.fullStart),a=new ge(t.parts[0],r,[],i,t.sourceSpan,s);this._pushContainer(a,false)}_consumeBlockClose(t){let r=this._containerStack.length,n=this._containerStack[r-1];if(!this._popContainer(null,ge,t.sourceSpan)){if(this._containerStack.length<r){let i=n instanceof G?n.fullName:n.name;this.errors.push(L.create(null,t.sourceSpan,`Unexpected closing block. The block may have been closed earlier. Did you forget to close the <${i}> element? If you meant to write the \`}\` character, you should use the "}" HTML entity instead.`));return}this.errors.push(L.create(null,t.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the `}` character, you should use the "}" HTML entity instead.'))}}_consumeIncompleteBlock(t){let r=[];for(;this._peek.type===29;){let o=this._advance();r.push(new hr(o.parts[0],o.sourceSpan))}let n=this._peek.sourceSpan.fullStart,i=new p(t.sourceSpan.start,n,t.sourceSpan.fullStart),s=new p(t.sourceSpan.start,n,t.sourceSpan.fullStart),a=new ge(t.parts[0],r,[],i,t.sourceSpan,s);this._pushContainer(a,false),this._popContainer(null,ge,null),this.errors.push(L.create(t.parts[0],i,`Incomplete block "${t.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(t){let r=t.parts[0],n,i;if(this._peek.type!==32){this.errors.push(L.create(t.parts[0],t.sourceSpan,`Invalid @let declaration "${r}". Declaration must have a value.`));return}else n=this._advance();if(this._peek.type!==33){this.errors.push(L.create(t.parts[0],t.sourceSpan,`Unterminated @let declaration "${r}". Declaration must be terminated with a semicolon.`));return}else i=this._advance();let s=i.sourceSpan.end,a=new p(t.sourceSpan.start,s,t.sourceSpan.fullStart),o=t.sourceSpan.toString().lastIndexOf(r),l=t.sourceSpan.start.moveBy(o),c=new p(l,t.sourceSpan.end),u=new mr(r,n.parts[0],a,c,n.sourceSpan);this._addToParent(u)}_consumeIncompleteLet(t){let r=t.parts[0]??"",n=r?` "${r}"`:"";if(r.length>0){let i=t.sourceSpan.toString().lastIndexOf(r),s=t.sourceSpan.start.moveBy(i),a=new p(s,t.sourceSpan.end),o=new p(t.sourceSpan.start,t.sourceSpan.start.moveBy(0)),l=new mr(r,"",t.sourceSpan,a,o);this._addToParent(l)}this.errors.push(L.create(t.parts[0],t.sourceSpan,`Incomplete @let declaration${n}. @let declarations must be written as \`@let <name> = <value>;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestElementLikeParent(){for(let t=this._containerStack.length-1;t>-1;t--){let r=this._containerStack[t];if(r instanceof ne||r instanceof G)return r}return null}_addToParent(t){let r=this._getContainer();r===null?this.rootNodes.push(t):r.children.push(t)}_getElementFullName(t,r){let n=this._getPrefix(t,r);return fe(n,t.parts[1])}_getComponentFullName(t,r){let n=t.parts[0],i=this._getComponentTagName(t,r);return i===null?n:i.startsWith(":")?n+i:`${n}:${i}`}_getComponentTagName(t,r){let n=this._getPrefix(t,r),i=t.parts[2];return!n&&!i?null:!n&&i?i:fe(n,i||"ng-component")}_getPrefix(t,r){var n;let i,s;if(t.type===35||t.type===39||t.type===38?(i=t.parts[1],s=t.parts[2]):(i=t.parts[0],s=t.parts[1]),i=i||((n=this._getTagDefinition(s))===null||n===undefined?undefined:n.implicitNamespacePrefix)||"",!i&&r){let a=r instanceof ne?r.name:r.tagName;if(a!==null){let o=ee(a)[1],l=this._getTagDefinition(o);l!==null&&!l.preventNamespaceInheritance&&(i=Pe(a))}}return i}};function Hi(e,t){return e.length>0&&e[e.length-1]===t}function Vi(e,t){return _e[t]!==undefined?_e[t]||e:/^#x[a-f0-9]+$/i.test(t)?String.fromCodePoint(parseInt(t.slice(2),16)):/^#\d+$/.test(t)?String.fromCodePoint(parseInt(t.slice(1),10)):e}var zi=class extends Wi{constructor(){super(De)}parse(e,t,r,n=false,i){return super.parse(e,t,r,n,i)}};var Cr;function Mt(e,t={}){let{canSelfClose:r=false,allowHtmComponentClosingTags:n=false,allowStartTagComments:i=false,isTagNameCaseSensitive:s=false,getTagContentType:a,tokenizeAngularBlocks:o=false,tokenizeAngularLetDeclaration:l=false,enableAngularSelectorlessSyntax:c=false}=t;return Cr??(Cr=new zi),Cr.parse(e,"angular-html-parser",{tokenizeExpansionForms:o,canSelfClose:r,allowHtmComponentClosingTags:n,allowStartTagComments:i,tokenizeBlocks:o,tokenizeLet:l,selectorlessEnabled:c},s,a)}var vo=[wo,Eo,bo,ko,yo,Ao,Po,Lo,No,Do,To];function Co(e,t){for(let r of vo)r(e,t);return e}function Eo(e){e.walk((t)=>{if(t.kind==="element"&&t.tagDefinition.ignoreFirstLf&&t.children.length>0&&t.children[0].kind==="text"&&t.children[0].value[0]===`
|
|
25
|
+
`){let r=t.children[0];r.value.length===1?t.removeChild(r):(r.value=r.value.slice(1),r.sourceSpan=new p(r.sourceSpan.start.moveBy(1),r.sourceSpan.end))}})}function bo(e){let t=(r)=>r.kind==="element"&&r.prev?.kind==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&r.firstChild?.kind==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset;e.walk((r)=>{if(r.children)for(let n=0;n<r.children.length;n++){let i=r.children[n];if(!t(i))continue;let{prev:s,firstChild:a}=i;r.removeChild(s),n--;let o=new p(s.sourceSpan.start,a.sourceSpan.end),l=new p(o.start,i.sourceSpan.end);i.condition=s.condition,i.sourceSpan=l,i.startSourceSpan=o,i.removeChild(a)}})}function wo(e,t){t.parser!=="angular"||!t.originalText.includes("ngNonBindable")||e.walk((r)=>{r.kind==="element"&&O(r.attrMap,"ngNonBindable")&&br(r,t)})}function br(e,t){let{children:r}=e;if(r)for(let n=0;n<r.length;n++){let i=r[n];if(i.kind==="angularControlFlowBlock"){br(i,t);let s=[],{start:a}=i.sourceSpan;for(let o of i.children){if(a.offset<o.sourceSpan.start.offset){let l=new p(a,o.sourceSpan.start);s.push(Er(l,t))}s.push(o),a=o.sourceSpan.end}if(a.offset<i.sourceSpan.end.offset){let o=new p(a,i.sourceSpan.end);s.push(Er(o,t))}for(let o of s)e.insertChildBefore(i,o);e.removeChild(i),n+=s.length-1;continue}if(i.kind==="angularLetDeclaration"){e.replaceChild(i,Er(i.sourceSpan,t));continue}br(i,t)}}function Er(e,t){return{kind:"text",value:t.originalText.slice(e.start.offset,e.end.offset),sourceSpan:e}}function ko(e){e.walk((t)=>{if(t.children)for(let r=0;r<t.children.length;r++){let n=t.children[r],i=n.prev;n.kind!=="text"||i?.kind!=="text"||(i.value+=n.value,i.sourceSpan=new p(i.sourceSpan.start,n.sourceSpan.end),t.removeChild(n),r--)}})}function To(e){let t=(r)=>r.kind==="element"&&r.attrs.length===0&&!J(r.startTagComments)&&r.children.length===1&&r.firstChild.kind==="text"&&!y.hasWhitespaceCharacter(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&r.prev?.kind==="text"&&r.next?.kind==="text";e.walk((r)=>{if(r.children)for(let n=0;n<r.children.length;n++){let i=r.children[n];if(!t(i))continue;let{prev:s,next:a}=i;s.value+=`<${i.rawName}>`+i.firstChild.value+`</${i.rawName}>`+a.value,s.sourceSpan=new p(s.sourceSpan.start,a.sourceSpan.end),s.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,s.hasTrailingSpaces=a.hasTrailingSpaces,r.removeChild(i),n--,r.removeChild(a)}})}function yo(e,t){t.parser!=="html"&&e.walk((r)=>{if(nn(r,t))for(let n of r.children){if(n.kind!=="text")continue;let i=n.sourceSpan.start,s,a=xo(n);for(let o=0;o<a.length;o++,i=s){let l=a[o];if(o%2===0){s=i.moveBy(l.length),l.length>0&&r.insertChildBefore(n,{kind:"text",value:l,sourceSpan:new p(i,s)});continue}s=i.moveBy(l.length+4),r.insertChildBefore(n,{kind:"interpolation",sourceSpan:new p(i,s),children:l.length===0?[]:[{kind:"text",value:l,sourceSpan:new p(i.moveBy(2),s.moveBy(-2))}]})}r.removeChild(n)}})}function xo(e){let t=e.tokens?.filter((s)=>s.type===dr.INTERPOLATION&&s.parts.length===3);if(!t?.some((s)=>s.parts[1].includes("}}")))return e.value.split(/\{\{(.+?)\}\}/s);let r=[],{content:n}=e.sourceSpan.start.file,i=e.sourceSpan.start.offset;for(let{parts:s,sourceSpan:a}of t)r.push(n.slice(i,a.start.offset),n.slice(a.start.offset+s[0].length,a.end.offset-s[2].length)),i=a.end.offset;return r.push(n.slice(i,e.sourceSpan.end.offset)),r}function Ao(e,t){e.walk((r)=>{let n=r.$children;if(!n)return;if(n.length===0||n.length===1&&n[0].kind==="text"&&y.trim(n[0].value).length===0){r.hasDanglingSpaces=n.length>0,r.$children=[];return}let i=sn(r,t),s=Jt(r);if(!i)for(let a=0;a<n.length;a++){let o=n[a];if(o.kind!=="text")continue;let{leadingWhitespace:l,text:c,trailingWhitespace:u}=rn(o.value),{prev:d,next:S}=o;c?(o.value=c,o.sourceSpan=new p(o.sourceSpan.start.moveBy(l.length),o.sourceSpan.end.moveBy(-u.length)),l&&(d&&(d.hasTrailingSpaces=true),o.hasLeadingSpaces=true),u&&(o.hasTrailingSpaces=true,S&&(S.hasLeadingSpaces=true))):(r.removeChild(o),a--,(l||u)&&(d&&(d.hasTrailingSpaces=true),S&&(S.hasLeadingSpaces=true)))}r.isWhitespaceSensitive=i,r.isIndentationSensitive=s})}function Lo(e){e.walk((t)=>{t.isSelfClosing=!t.children||t.kind==="element"&&(t.tagDefinition.isVoid||t.endSourceSpan&&t.startSourceSpan.start===t.endSourceSpan.start&&t.startSourceSpan.end===t.endSourceSpan.end)})}function No(e,t){e.walk((r)=>{r.kind==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))})}function Po(e,t){e.walk((r)=>{r.cssDisplay=dn(r,t)})}function Do(e,t){e.walk((r)=>{let{children:n}=r;if(n){if(n.length===0){r.isDanglingSpaceSensitive=ln(r,t);return}for(let i of n)i.isLeadingSpaceSensitive=an(i,t),i.isTrailingSpaceSensitive=on(i,t);for(let i=0;i<n.length;i++){let s=n[i];s.isLeadingSpaceSensitive=(i===0||s.prev.isTrailingSpaceSensitive)&&s.isLeadingSpaceSensitive,s.isTrailingSpaceSensitive=(i===n.length-1||s.next.isLeadingSpaceSensitive)&&s.isTrailingSpaceSensitive}}})}var $i=Co;function Io(e,t,r){let{node:n}=e;switch(n.kind){case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(n),[C(Ne(e,t,r)),E];case"element":case"ieConditionalComment":return mi(e,t,r);case"angularControlFlowBlock":return ii(e,t,r);case"angularControlFlowBlockParameters":return ai(e,t,r);case"angularControlFlowBlockParameter":return y.trim(n.expression);case"angularLetDeclaration":return C(["@let ",C([n.id," =",C(N([_,r("init")]))]),";"]);case"angularLetDeclarationInitializer":return n.value;case"angularIcuExpression":return oi(e,t,r);case"angularIcuCase":return li(e,t,r);case"ieConditionalStartComment":case"ieConditionalEndComment":return[me(n),ue(n)];case"interpolation":return[me(n,t),...e.map(r,"children"),ue(n,t)];case"text":return di(e,t);case"docType":return[C([me(n,t)," ",w(0,n.value.replace(/^html\b/i,"html"),/\s+/g," ")]),ue(n,t)];case"comment":return[H(n,t),A(t.originalText.slice(W(n),Z(n))),F(n,t)];case"cdata":return[H(n,t),"<![CDATA[",A(n.value),"]]>",F(n,t)];case"attribute":return hi(e,t);case"startTagComment":return fi(e);default:throw new Gr(n,"HTML")}}var Oo={features:{experimental_frontMatterSupport:{massageAstNode:true,embed:true,print:true}},preprocess:$i,print:Io,insertPragma:ti,massageAstNode:sr,embed:$n,getVisitorKeys:Kn},ji=Oo;var Yi=[{name:"Angular",type:"markup",aceMode:"html",extensions:[".component.html"],tmScope:"text.html.basic",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["angular"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"HTML",type:"markup",aceMode:"html",extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml"],tmScope:"text.html.basic",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["html"],vscodeLanguageIds:["html"],linguistLanguageId:146},{name:"Lightning Web Components",type:"markup",aceMode:"html",extensions:[],tmScope:"text.html.basic",aliases:["LWC","lwc"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"MJML",type:"markup",aceMode:"html",extensions:[".mjml"],tmScope:"text.mjml.basic",aliases:["MJML","mjml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["mjml"],filenames:[],vscodeLanguageIds:["mjml"],linguistLanguageId:146},{name:"Vue",type:"markup",aceMode:"vue",extensions:[".vue"],tmScope:"text.html.vue",codemirrorMode:"vue",codemirrorMimeType:"text/x-vue",parsers:["vue"],vscodeLanguageIds:["vue"],linguistLanguageId:391}];var wr={bracketSpacing:{category:"Common",type:"boolean",default:true,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:false,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:false,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:false,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Ki="HTML",Ro={bracketSameLine:wr.bracketSameLine,htmlWhitespaceSensitivity:{category:Ki,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:wr.singleAttributePerLine,vueIndentScriptAndStyle:{category:Ki,type:"boolean",default:false,description:"Indent script and style tags in Vue files."}},Xi=Ro;var Dr={};Rr(Dr,{angular:()=>tl,html:()=>Jo,lwc:()=>nl,mjml:()=>el,vue:()=>rl});function Mo(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var Qi=Mo;var Bo={canSelfClose:true,normalizeTagName:false,normalizeAttributeName:false,allowHtmComponentClosingTags:false,allowStartTagComments:false,isTagNameCaseSensitive:false,shouldParseFrontMatter:true};function Bt(e){return{...Bo,...e}}function kr(e){let{canSelfClose:t,allowHtmComponentClosingTags:r,allowStartTagComments:n,isTagNameCaseSensitive:i,shouldParseAsRawText:s,tokenizeAngularBlocks:a,tokenizeAngularLetDeclaration:o}=e;return{canSelfClose:t,allowHtmComponentClosingTags:r,allowStartTagComments:n,isTagNameCaseSensitive:i,getTagContentType:s?(...l)=>s(...l)?ar.RAW_TEXT:undefined:undefined,tokenizeAngularBlocks:a,tokenizeAngularLetDeclaration:o}}var Ji=new Map([["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loading","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","bottommargin","leftmargin","link","rightmargin","text","topmargin","vlink"])],["br",new Set(["clear"])],["button",new Set(["command","commandfor","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","bgcolor","char","charoff","span","valign","width"])],["colgroup",new Set(["align","bgcolor","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["name","open"])],["dialog",new Set(["closedby","open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","rel","target"])],["frame",new Set(["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"])],["frameset",new Set(["cols","rows"])],["h1",new Set(["align"])],["h2",new Set(["align"])],["h3",new Set(["align"])],["h4",new Set(["align"])],["h5",new Set(["align"])],["h6",new Set(["align"])],["head",new Set(["profile"])],["hr",new Set(["align","color","noshade","size","width"])],["html",new Set(["manifest","version","xmlns"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","controls","crossorigin","decoding","elementtiming","fetchpriority","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"])],["input",new Set(["accept","align","alpha","alt","autocomplete","checked","colorspace","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["action","prompt"])],["label",new Set(["for","form"])],["legend",new Set(["align"])],["li",new Set(["type","value"])],["link",new Set(["as","blocking","charset","color","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"])],["map",new Set(["name"])],["menu",new Set(["compact"])],["meta",new Set(["charset","content","http-equiv","media","name","scheme"])],["meter",new Set(["high","low","max","min","optimum","value"])],["object",new Set(["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"])],["ol",new Set(["compact","reversed","start","type"])],["optgroup",new Set(["disabled","label"])],["option",new Set(["disabled","label","selected","value"])],["output",new Set(["for","form","name"])],["p",new Set(["align"])],["param",new Set(["name","type","value","valuetype"])],["pre",new Set(["width","wrap"])],["progress",new Set(["max","value"])],["q",new Set(["cite"])],["script",new Set(["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","language","nomodule","referrerpolicy","src","type"])],["select",new Set(["autocomplete","disabled","form","multiple","name","required","size"])],["slot",new Set(["name"])],["source",new Set(["height","media","sizes","src","srcset","type","width"])],["style",new Set(["blocking","media","type"])],["table",new Set(["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"])],["tbody",new Set(["align","bgcolor","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["template",new Set(["for","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootmode","shadowrootserializable","shadowrootslotassignment"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","bgcolor","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","bgcolor","char","charoff","valign"])],["time",new Set(["datetime"])],["tr",new Set(["align","bgcolor","char","charoff","valign"])],["track",new Set(["default","kind","label","src","srclang"])],["ul",new Set(["compact","type"])],["video",new Set(["autoplay","controls","crossorigin","height","loading","loop","muted","playsinline","poster","preload","src","width"])]]),Zi=new Set(["accesskey","autocapitalize","autocorrect","autofocus","class","contenteditable","dir","draggable","enterkeyhint","exportparts","headingoffset","headingreset","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","part","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions"]);var Tr=new Set(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fencedframe","fieldset","figcaption","figure","font","footer","form","frame","frameset","geolocation","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","selectedcontent","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]);var qt={attrs:true,children:true,cases:true,expression:true},es=new Set(["parent"]),ie,yr,xr,Be=class Be{constructor(t={}){Mr(this,ie);Ut(this,"kind");Ut(this,"parent");for(let r of new Set([...es,...Object.keys(t)]))this.setProperty(r,t[r]);if(ae(t))for(let r of Object.getOwnPropertySymbols(t))this.setProperty(r,t[r])}setProperty(t,r){if(this[t]!==r){if(t in qt&&(r=r.map((n)=>this.createChild(n))),!es.has(t)){this[t]=r;return}Object.defineProperty(this,t,{value:r,enumerable:false,configurable:true})}}map(t){let r;for(let n in qt){let i=this[n];if(i){let s=qo(i,(a)=>a.map(t));r!==i&&(r??(r=new Be({parent:this.parent})),r.setProperty(n,s))}}if(r)for(let n in this)n in qt||(r[n]=this[n]);return t(r||this)}walk(t){for(let r in qt){let n=this[r];if(n)for(let i=0;i<n.length;i++)n[i].walk(t)}t(this)}createChild(t){let r=t instanceof Be?t.clone():new Be(t);return r.setProperty("parent",this),r}insertChildBefore(t,r){let n=this.$children;n.splice(n.indexOf(t),0,this.createChild(r))}removeChild(t){let r=this.$children;r.splice(r.indexOf(t),1)}replaceChild(t,r){let n=this.$children;n[n.indexOf(t)]=this.createChild(r)}clone(){return new Be(this)}get $children(){return this[Fe(this,ie,yr)]}set $children(t){this[Fe(this,ie,yr)]=t}get firstChild(){return this.$children?.[0]}get lastChild(){return M(1,this.$children,-1)}get prev(){let t=Fe(this,ie,xr);return t[t.indexOf(this)-1]}get next(){let t=Fe(this,ie,xr);return t[t.indexOf(this)+1]}get rawName(){return this.hasExplicitNamespace?this.fullName:this.name}get fullName(){return this.namespace?this.namespace+":"+this.name:this.name}get attrMap(){return Object.fromEntries(this.attrs.map((t)=>[t.fullName,t.value]))}};ie=new WeakSet,yr=function(){return this.kind==="angularIcuCase"?"expression":this.kind==="angularIcuExpression"?"cases":"children"},xr=function(){return this.parent?.$children??[]};var Ft=Be;function qo(e,t){let r=e.map(t);return r.some((n,i)=>n!==e[i])?r:e}var Fo=[{regex:/^(?<openingTagSuffix>\[if(?<condition>[^\]]*)\]>)(?<data>.*?)<!\s*\[endif\]$/s,parse:Ho},{regex:/^\[if(?<condition>[^\]]*)\]><!$/,parse:Vo},{regex:/^<!\s*\[endif\]$/,parse:Uo}];function ts(e,t){if(e.value)for(let{regex:r,parse:n}of Fo){let i=e.value.match(r);if(i)return n(e,i,t)}return null}function Ho(e,t,r){let{openingTagSuffix:n,condition:i,data:s}=t.groups,a=4+n.length,o=e.sourceSpan.start.moveBy(a),l=o.moveBy(s.length),[c,u]=(()=>{try{return[true,r(s,o).children]}catch{return[false,[{kind:"text",value:s,sourceSpan:new p(o,l)}]]}})();return{kind:"ieConditionalComment",complete:c,children:u,condition:w(0,i.trim(),/\s+/g," "),sourceSpan:e.sourceSpan,startSourceSpan:new p(e.sourceSpan.start,o),endSourceSpan:new p(l,e.sourceSpan.end)}}function Vo(e,t){let{condition:r}=t.groups;return{kind:"ieConditionalStartComment",condition:w(0,r.trim(),/\s+/g," "),sourceSpan:e.sourceSpan}}function Uo(e){return{kind:"ieConditionalEndComment",sourceSpan:e.sourceSpan}}var Ar=class extends fr{visitExpansionCase(t,r){r.parseOptions.name==="angular"&&this.visitChildren(r,(n)=>{n(t.expression)})}visit(t,{parseOptions:r}){$o(t),jo(t,r),Ko(t,r),Yo(t)}};function is(e,t,r,n){let i=r.name==="angular";It(new Ar,e.children,{parseOptions:r}),t&&e.children.unshift(t);let s=new Ft(e);return s.walk((a)=>{if(a.kind==="comment"){let o=ts(a,n);o&&a.parent.replaceChild(a,o)}else i&&a.kind==="element"&&a.comments&&(a.startTagComments=a.comments,delete a.comments);i&&(Wo(a),Go(a),zo(a))}),s}function Wo(e){if(e.kind==="block"){if(e.name=w(0,e.name.toLowerCase(),/\s+/g," ").trim(),e.kind="angularControlFlowBlock",!J(e.parameters)){delete e.parameters;return}for(let t of e.parameters)t.kind="angularControlFlowBlockParameter";e.parameters={kind:"angularControlFlowBlockParameters",children:e.parameters,sourceSpan:new p(e.parameters[0].sourceSpan.start,M(0,e.parameters,-1).sourceSpan.end)}}}function Go(e){e.kind==="letDeclaration"&&(e.kind="angularLetDeclaration",e.id=e.name,e.init={kind:"angularLetDeclarationInitializer",sourceSpan:new p(e.valueSpan.start,e.valueSpan.end),value:e.value},delete e.name,delete e.value)}function zo(e){e.kind==="expansion"&&(e.kind="angularIcuExpression"),e.kind==="expansionCase"&&(e.kind="angularIcuCase")}function rs(e,t){let r=e.toLowerCase();return t(r)?r:e}function ns(e){let t=e.name.startsWith(":")?e.name.slice(1).split(":",1)[0]:null,r=e.nameSpan.toString(),n=t!==null&&r.startsWith(`${t}:`),i=n?r.slice(t.length+1):r;e.name=i,e.namespace=t,e.hasExplicitNamespace=n}function $o(e){switch(e.kind){case"element":ns(e);for(let t of e.attrs)ns(t),t.valueSpan?(t.value=t.valueSpan.toString(),/["']/.test(t.value[0])&&(t.value=t.value.slice(1,-1))):t.value=null;break;case"comment":e.value=e.sourceSpan.toString().slice(4,-3);break;case"text":e.value=e.sourceSpan.toString();break}}function jo(e,t){if(e.kind==="element"){let r=De(t.isTagNameCaseSensitive?e.name:e.name.toLowerCase());!e.namespace||e.namespace===r.implicitNamespacePrefix||oe(e)?e.tagDefinition=r:e.tagDefinition=De("")}}function Yo(e){e.sourceSpan&&e.endSourceSpan&&(e.sourceSpan=new p(e.sourceSpan.start,e.endSourceSpan.end))}function Ko(e,t){if(e.kind==="element"&&(t.normalizeTagName&&(!e.namespace||e.namespace===e.tagDefinition.implicitNamespacePrefix||oe(e))&&(e.name=rs(e.name,(r)=>Tr.has(r))),t.normalizeAttributeName))for(let r of e.attrs)r.namespace||(r.name=rs(r.name,(n)=>Tr.has(e.name)&&(Zi.has(n)||Ji.get(e.name)?.has(n))))}function Nr(e,t){let{rootNodes:r,errors:n}=Mt(e,kr(t));return n.length>0&&Lr(n[0]),{parseOptions:t,rootNodes:r}}function ss(e,t){let r=kr(t),{rootNodes:n,errors:i}=Mt(e,r);if(n.some((c)=>c.kind==="docType"&&c.value==="html"||c.kind==="element"&&c.name.toLowerCase()==="html"))return Nr(e,Ht);let a,o=()=>a??(a=Mt(e,{...r,getTagContentType:undefined})),l=(c)=>{let{offset:u}=c.startSourceSpan.start;return o().rootNodes.find((d)=>d.kind==="element"&&d.startSourceSpan.start.offset===u)??c};for(let[c,u]of n.entries())if(u.kind==="element"){if(u.isVoid)i=o().errors,n[c]=l(u);else if(Xo(u)){let{endSourceSpan:d,startSourceSpan:S}=u,h=o().errors.find((f)=>f.span.start.offset>S.start.offset&&f.span.start.offset<d.end.offset);h&&Lr(h),n[c]=l(u)}}return i.length>0&&Lr(i[0]),{parseOptions:t,rootNodes:n}}function Xo(e){if(e.kind!=="element"||e.name!=="template")return false;let t=e.attrs.find((r)=>r.name==="lang")?.value;return!t||t==="html"}function Lr(e){let{msg:t,span:{start:r,end:n}}=e;throw Qi(t,{loc:{start:{line:r.line+1,column:r.col+1},end:{line:n.line+1,column:n.col+1}},cause:e})}function Qo(e,t,r,n,i,s){let{offset:a}=n,o=vt(t.slice(0,a))+r,l=Pr(o,e,{...i,shouldParseFrontMatter:false},s);l.sourceSpan=new p(n,M(0,l.children,-1).sourceSpan.end);let c=l.children[0];return c.length===a?l.children.shift():(c.sourceSpan=new p(c.sourceSpan.start.moveBy(a),c.sourceSpan.end),c.value=c.value.slice(a)),l}function Pr(e,t,r,n={}){let{frontMatter:i,content:s}=r.shouldParseFrontMatter?Kt(e):{content:e},a=new nt(e,n.filepath),o=new Ie(a,0,0,0),l=o.moveBy(e.length),{parseOptions:c,rootNodes:u}=t(s,r),d={kind:"root",sourceSpan:new p(o,l),children:u},S;if(i){let[f,g]=[i.start,i.end].map((v)=>new Ie(a,v.index,v.line-1,v.column));S={...i,kind:"frontMatter",sourceSpan:new p(f,g)}}return is(d,S,c,(f,g)=>Qo(t,e,f,g,c,n))}var Ht=Bt({name:"html",normalizeTagName:true,normalizeAttributeName:true,allowHtmComponentClosingTags:true});function at(e){let t=Bt(e),r=t.name==="vue"?ss:Nr;return{parse:(n,i)=>Pr(n,r,t,i),hasPragma:Zn,hasIgnorePragma:ei,astFormat:"html",locStart:W,locEnd:Z}}var Jo=at(Ht),Zo=new Set(["mj-style","mj-raw"]),el=at({...Ht,name:"mjml",shouldParseAsRawText:(e)=>Zo.has(e)}),tl=at({name:"angular",tokenizeAngularBlocks:true,tokenizeAngularLetDeclaration:true,allowStartTagComments:true}),rl=at({name:"vue",isTagNameCaseSensitive:true,shouldParseAsRawText(e,t,r,n){return e.toLowerCase()!=="html"&&!r&&(e!=="template"||n.some(({name:i,value:s})=>i==="lang"&&s!=="html"&&s!==""&&s!==undefined))}}),nl=at({name:"lwc",canSelfClose:false});var il={html:ji};export{as as default,Yi as languages,Xi as options,Dr as parsers,il as printers};
|
|
Binary file
|