import{g as Xo}from"./_commonjsHelpers-CE1G-McA.js";function Go(ue,Qe){for(var B=0;B<Qe.length;B++){const I=Qe[B];if(typeof I!="string"&&!Array.isArray(I)){for(const L in I)if(L!=="default"&&!(L in ue)){const le=Object.getOwnPropertyDescriptor(I,L);le&&Object.defineProperty(ue,L,le.get?le:{enumerable:!0,get:()=>I[L]})}}}return Object.freeze(Object.defineProperty(ue,Symbol.toStringTag,{value:"Module"}))}var Ot={exports:{}},ln;function Ko(){return ln||(ln=1,(function(ue,Qe){(function(B){function I(){var L=B();return L.default||L}ue.exports=I()})(function(){var B=Object.defineProperty,I=Object.getOwnPropertyDescriptor,L=Object.getOwnPropertyNames,le=Object.prototype.hasOwnProperty,It=e=>{throw TypeError(e)},mn=(e,t,r)=>t in e?B(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rt=(e,t)=>{for(var r in t)B(e,r,{get:t[r],enumerable:!0})},gn=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of L(t))!le.call(e,a)&&a!==r&&B(e,a,{get:()=>t[a],enumerable:!(n=I(t,a))||n.enumerable});return e},fn=e=>gn(B({},"__esModule",{value:!0}),e),Mt=(e,t,r)=>mn(e,typeof t!="symbol"?t+"":t,r),_n=(e,t,r)=>t.has(e)||It("Cannot "+r),Fe=(e,t,r)=>(_n(e,t,"read from private field"),r?r.call(e):t.get(e)),Cn=(e,t,r)=>t.has(e)?It("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),qt={};Rt(qt,{languages:()=>ho,options:()=>go,parsers:()=>en,printers:()=>jo});var Ze=(e,t)=>(r,n,...a)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,a),vn=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},En=Ze("replaceAll",function(){if(typeof this=="string")return vn}),b=En;function Sn(e){return this[e<0?this.length+e:e]}var An=Ze("at",function(){if(Array.isArray(this)||typeof this=="string")return Sn}),Y=An,Tn=()=>{},kn=Tn,Ht="string",Vt="array",Ut="cursor",et="indent",tt="align",Wt="trim",rt="group",nt="fill",at="if-break",it="indent-if-break",zt="line-suffix",$t="line-suffix-boundary",J="line",jt="label",st="break-parent",Xt=new Set([Ut,et,tt,Wt,rt,nt,at,it,zt,$t,J,jt,st]);function bn(e){if(typeof e=="string")return Ht;if(Array.isArray(e))return Vt;if(!e)return;let{type:t}=e;if(Xt.has(t))return t}var Gt=bn,wn=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function yn(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', 
Expected it to be 'string' or 'object'.`;if(Gt(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=wn([...Xt].map(a=>`'${a}'`));return`Unexpected doc.type '${e.type}'.
Expected it to be ${n}.`}var Dn=class extends Error{name="InvalidDocError";constructor(e){super(yn(e)),this.doc=e}},xn=Dn;function Kt(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(i){if(r.has(i))return r.get(i);let s=a(i);return r.set(i,s),s}function a(i){switch(Gt(i)){case Vt:return t(i.map(n));case nt:return t({...i,parts:i.parts.map(n)});case at:return t({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case rt:{let{expandedStates:s,contents:o}=i;return s?(s=s.map(n),o=s[0]):o=n(o),t({...i,contents:o,expandedStates:s})}case tt:case et:case it:case jt:case zt:return t({...i,contents:n(i.contents)});case Ht:case Ut:case Wt:case $t:case J:case st:return t(i);default:throw new xn(i)}}}function O(e,t=In){return Kt(e,r=>typeof r=="string"?Q(t,r.split(`
`)):r)}var Nn=kn;function F(e){return{type:et,contents:e}}function Bn(e,t){return{type:tt,contents:t,n:e}}function Ln(e){return Bn(Number.NEGATIVE_INFINITY,e)}var ce={type:st};function Yt(e){return{type:nt,parts:e}}function A(e,t={}){return Nn(t.expandedStates),{type:rt,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function pe(e,t="",r={}){return{type:at,breakContents:e,flatContents:t,groupId:r.groupId}}function On(e,t){return{type:it,contents:e,groupId:t.groupId,negate:t.negate}}function Q(e,t){let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}var S={type:J},k={type:J,soft:!0},Fn={type:J,hard:!0},E=[Fn,ce],Pn={type:J,hard:!0,literal:!0},In=[Pn,ce],Jt=Object.freeze({character:"'",codePoint:39}),Qt=Object.freeze({character:'"',codePoint:34}),Rn=Object.freeze({preferred:Jt,alternate:Qt}),Mn=Object.freeze({preferred:Qt,alternate:Jt});function qn(e,t){let{preferred:r,alternate:n}=t===!0||t==="'"?Rn:Mn,{length:a}=e,i=0,s=0;for(let o=0;o<a;o++){let l=e.charCodeAt(o);l===r.codePoint?i++:l===n.codePoint&&s++}return(i>s?n:r).character}var Hn=qn;function Vn(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Un=class{#e;constructor(e){this.#e=new Set(e)}getLeadingWhitespaceCount(e){let t=this.#e,r=0;for(let n=0;n<e.length&&t.has(e.charAt(n));n++)r++;return r}getTrailingWhitespaceCount(e){let t=this.#e,r=0;for(let n=e.length-1;n>=0&&t.has(e.charAt(n));n--)r++;return r}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return this.#e.has(e.charAt(0))}hasTrailingWhitespace(e){return this.#e.has(Y(0,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=!1){let r=`[${Vn([...this.#e].join(""))}]+`,n=new RegExp(t?`(${r})`:r,"u");return e.split(n)}hasWhitespaceCharacter(e){let t=this.#e;return Array.prototype.some.call(e,r=>t.has(r))}hasNonWhitespaceCharacter(e){let t=this.#e;return Array.prototype.some.call(e,r=>!t.has(r))}isWhitespaceOnly(e){let t=this.#e;return Array.prototype.every.call(e,r=>t.has(r))}#t(e){let t=Number.POSITIVE_INFINITY;for(let r of e.split(`
`)){if(r.length===0)continue;let n=this.getLeadingWhitespaceCount(r);if(n===0)return 0;r.length!==n&&n<t&&(t=n)}return t===Number.POSITIVE_INFINITY?0:t}dedentString(e){let t=this.#t(e);return t===0?e:e.split(`
`).map(r=>r.slice(t)).join(`
`)}},Wn=Un,zn=["	",`
`,"\f","\r"," "],$n=new Wn(zn),D=$n,jn=class extends Error{name="UnexpectedNodeError";constructor(e,t,r="type"){super(`Unexpected ${t} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},Xn=jn,Gn=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),Kn=new Set(["if","else if","for","switch","case"]);function Zt(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:a}=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-")||a?.includes("{{")?delete t.value:a&&(t.value=b(0,a,/'|&quot;|&apos;/gu,'"'))}if(e.kind==="docType"&&(t.value=b(0,e.value.toLowerCase(),/\s+/gu," ")),e.kind==="angularControlFlowBlock"&&e.parameters?.children)for(let n of t.parameters.children)Kn.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=!0)}Zt.ignoredProperties=Gn;var Yn=Zt;function he(e,t=!0){return[F([k,e]),t?k:""]}function Z(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:!0,__embeddedInHtml:!0,...r};let a=!0;n&&(r.__onHtmlBindingRoot=(s,o)=>{a=n(s,o)});let i=await t(e,r,t);return a?A(i):he(i)}function Jn(e,t,r,n){let{node:a}=r,i=n.originalText.slice(a.sourceSpan.start.offset,a.sourceSpan.end.offset);return/^\s*$/u.test(i)?"":x(i,e,{parser:"__ng_directive",__isInHtmlAttribute:!1},Z)}var Qn=Jn,Zn=Array.prototype.toReversed??function(){return[...this].reverse()},ea=Ze("toReversed",function(){if(Array.isArray(this))return Zn}),ta=ea;function ra(){let e=globalThis,t=e.Deno?.build?.os;return typeof t=="string"?t==="windows":e.navigator?.platform?.startsWith("Win")??e.process?.platform?.startsWith("win")??!1}var na=ra();function er(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 aa(e){return e=er(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function ia(e){e=er(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 sa(e){return na?ia(e):aa(e)}var oa=e=>String(e).split(/[/\\]/u).pop(),ua=e=>String(e).startsWith("file:");function la(e){return Array.isArray(e)&&e.length>0}var ot=la;function tr(e,t){if(!t)return;let r=oa(t).toLowerCase();return e.find(({filenames:n})=>n?.some(a=>a.toLowerCase()===r))??e.find(({extensions:n})=>n?.some(a=>r.endsWith(a)))}function ca(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 pa=void 0;function rr(e,t){if(t){if(ua(t))try{t=sa(t)}catch{return}if(typeof t=="string")return e.find(({isSupported:r})=>r?.({filepath:t}))}}function ha(e,t){let r=ta(0,e.plugins).flatMap(n=>n.languages??[]);return(ca(r,t.language)??tr(r,t.physicalFile)??tr(r,t.file)??rr(r,t.physicalFile)??rr(r,t.file)??pa?.(r,t.physicalFile))?.parsers[0]}var ut=ha,nr=Symbol.for("PRETTIER_IS_FRONT_MATTER");function da(e){return!!e?.[nr]}var Pe=da,de=3;function ma(e){let t=e.slice(0,de);if(t!=="---"&&t!=="+++")return;let r=e.indexOf(`
`,de);if(r===-1)return;let n=e.slice(de,r).trim(),a=e.indexOf(`
${t}`,r),i=n;if(i||(i=t==="+++"?"toml":"yaml"),a===-1&&t==="---"&&i==="yaml"&&(a=e.indexOf(`
...`,r)),a===-1)return;let s=a+1+de,o=e.charAt(s+1);if(!/\s?/u.test(o))return;let l=e.slice(0,s),c;return{language:i,explicitLanguage:n||null,value:e.slice(r+1,a),startDelimiter:t,endDelimiter:l.slice(-de),raw:l,start:{line:1,column:0,index:0},end:{index:l.length,get line(){return c??(c=l.split(`
`)),c.length},get column(){return c??(c=l.split(`
`)),Y(0,c,-1).length}},[nr]:!0}}function ga(e){let t=ma(e);return t?{frontMatter:t,get content(){let{raw:r}=t;return b(0,r,/[^\n]/gu," ")+e.slice(r.length)}}:{content:e}}var fa=ga,_a="inline",ar={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",select:"inline-block",source:"block",track:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",option:"block",optgroup:"block"},Ca="normal",ir={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function va(e){return e.kind==="element"&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}var me=va,Ea=e=>b(0,e,/^[\t\f\r ]*\n/gu,""),sr=e=>Ea(D.trimEnd(e)),Sa=e=>{let t=e,r=D.getLeadingWhitespace(t);r&&(t=t.slice(r.length));let n=D.getTrailingWhitespace(t);return n&&(t=t.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:t}};function or(e,t){return!!(e.kind==="ieConditionalComment"&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||e.kind==="ieConditionalComment"&&!e.complete||ee(e)&&e.children.some(r=>r.kind!=="text"&&r.kind!=="interpolation")||pt(e,t)&&!R(e,t)&&e.kind!=="interpolation")}function Ie(e){return e.kind==="attribute"||!e.parent||!e.prev?!1:Aa(e.prev)}function Aa(e){return e.kind==="comment"&&e.value.trim()==="prettier-ignore"}function N(e){return e.kind==="text"||e.kind==="comment"}function R(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"||me(e)&&(e.name==="script"||e.name==="style"))}function Ta(e,t){return e.children&&!R(e,t)}function ka(e,t){return R(e,t)||e.kind==="interpolation"||ur(e)}function ur(e){return fr(e).startsWith("pre")}function ba(e,t){let r=n();if(r&&!e.prev&&e.parent?.tagDefinition?.ignoreFirstLf)return e.kind==="interpolation";return r;function n(){return Pe(e)||e.kind==="angularControlFlowBlock"?!1:(e.kind==="text"||e.kind==="interpolation")&&e.prev&&(e.prev.kind==="text"||e.prev.kind==="interpolation")?!0:!e.parent||e.parent.cssDisplay==="none"?!1:ee(e.parent)?!0:!(!e.prev&&(e.parent.kind==="root"||ee(e)&&e.parent||R(e.parent,t)||Me(e.parent,t)||!Fa(e.parent.cssDisplay))||e.prev&&!Ra(e.prev.cssDisplay))}}function wa(e,t){return Pe(e)||e.kind==="angularControlFlowBlock"?!1:(e.kind==="text"||e.kind==="interpolation")&&e.next&&(e.next.kind==="text"||e.next.kind==="interpolation")?!0:!e.parent||e.parent.cssDisplay==="none"?!1:ee(e.parent)?!0:!(!e.next&&(e.parent.kind==="root"||ee(e)&&e.parent||R(e.parent,t)||Me(e.parent,t)||!Pa(e.parent.cssDisplay))||e.next&&!Ia(e.next.cssDisplay))}function ya(e,t){return Ma(e.cssDisplay)&&!R(e,t)}function Re(e){return Pe(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line}function Da(e){return lr(e)||e.kind==="element"&&e.children.length>0&&(["body","script","style"].includes(e.name)||e.children.some(t=>Na(t)))||e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.kind!=="text"&&pr(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||hr(e.lastChild))}function lr(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 lt(e){return dr(e)||e.prev&&xa(e.prev)||cr(e)}function xa(e){return dr(e)||e.kind==="element"&&e.fullName==="br"||cr(e)}function cr(e){return pr(e)&&hr(e)}function pr(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 hr(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 dr(e){switch(e.kind){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function ct(e){return e.lastChild?ct(e.lastChild):e}function Na(e){return e.children?.some(t=>t.kind!=="text")}function mr(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 Ba(e,t){let{name:r,attrMap:n}=e;if(r!=="script"||Object.prototype.hasOwnProperty.call(n,"src"))return;let{type:a,lang:i}=e.attrMap;return!i&&!a?"babel":ut(t,{language:i})??mr(a)}function La(e,t){if(!pt(e,t))return;let{attrMap:r}=e;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:a}=r;return ut(t,{language:a})??mr(n)}function Oa(e,t){if(e.name==="style"){let{lang:r}=e.attrMap;return r?ut(t,{language:r}):"css"}if(e.name==="mj-style"&&t.parser==="mjml")return"css"}function gr(e,t){return Ba(e,t)??Oa(e,t)??La(e,t)}function ge(e){return e==="block"||e==="list-item"||e.startsWith("table")}function Fa(e){return!ge(e)&&e!=="inline-block"}function Pa(e){return!ge(e)&&e!=="inline-block"}function Ia(e){return!ge(e)}function Ra(e){return!ge(e)}function Ma(e){return!ge(e)&&e!=="inline-block"}function ee(e){return fr(e).startsWith("pre")}function qa(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.parent}return!1}function Ha(e,t){if(te(e,t))return"block";if(e.prev?.kind==="comment"){let n=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);if(n)return n[1]}let r=!1;if(e.kind==="element"&&e.namespace==="svg")if(qa(e,n=>n.fullName==="svg:foreignObject"))r=!0;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||me(e))&&Object.prototype.hasOwnProperty.call(ar,e.name))return ar[e.name]}return _a}function fr(e){return e.kind==="element"&&(!e.namespace||me(e))&&Object.prototype.hasOwnProperty.call(ir,e.name)?ir[e.name]:Ca}function _r(e){return b(0,b(0,e,"&apos;","'"),"&quot;",'"')}function w(e){return _r(e.value)}var Va=new Set(["template","style","script"]);function Me(e,t){return te(e,t)&&!Va.has(e.fullName)}function te(e,t){return t.parser==="vue"&&e.kind==="element"&&e.parent.kind==="root"&&e.fullName.toLowerCase()!=="html"}function pt(e,t){return te(e,t)&&(Me(e,t)||e.attrMap.lang&&e.attrMap.lang!=="html")}function Ua(e){let t=e.fullName;return t.charAt(0)==="#"||t==="slot-scope"||t==="v-slot"||t.startsWith("v-slot:")}function Wa(e,t){let r=e.parent;if(!te(r,t))return!1;let n=r.fullName,a=e.fullName;return n==="script"&&a==="setup"||n==="style"&&a==="vars"}function Cr(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?O(t):O(D.dedentString(sr(t)),E):Q(S,D.split(t))}function vr(e,t){return te(e,t)&&e.name==="script"}function za(e){let{valueSpan:t,value:r}=e;return t.end.offset-t.start.offset===r.length+2}function Er(e,t){if(za(e))return!1;let{value:r}=e;return/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(r)||t.parser==="lwc"&&r.startsWith("{")&&r.endsWith("}")}var Sr=/\{\{(.+?)\}\}/su,$a=({node:{value:e}})=>Sr.test(e);async function ja(e,t,r){let n=w(r.node),a=[];for(let[i,s]of n.split(Sr).entries())if(i%2===0)a.push(O(s));else try{a.push(A(["{{",F([S,await x(s,e,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),S,"}}"]))}catch{a.push("{{",O(s),"}}")}return a}var ht=e=>(t,r,n)=>x(w(n.node),t,{parser:e},Z),Xa=[{test(e){let t=e.node.fullName;return t.startsWith("(")&&t.endsWith(")")||t.startsWith("on-")},print:ht("__ng_action")},{test(e){let t=e.node.fullName;return t.startsWith("[")&&t.endsWith("]")||/^bind(?:on)?-/u.test(t)||/^ng-(?:if|show|hide|class|style)$/u.test(t)},print:ht("__ng_binding")},{test:e=>e.node.fullName.startsWith("*"),print:ht("__ng_directive")},{test:e=>/^i18n(?:-.+)?$/u.test(e.node.fullName),print:Ga},{test:$a,print:ja}].map(({test:e,print:t})=>({test:(r,n)=>n.parser==="angular"&&e(r),print:t}));function Ga(e,t,{node:r}){let n=w(r);return he(Yt(Cr(r,n.trim())),!n.includes("@@"))}var Ka=Xa,Ya=({node:e},t)=>!t.parentParser&&e.fullName==="class"&&!e.value.includes("{{"),Ja=(e,t,r)=>w(r.node).trim().split(/\s+/u).join(" "),Qa=["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"],Za=new Set(Qa),ei=({node:e},t)=>Za.has(e.fullName)&&!t.parentParser&&!e.value.includes("{{"),ti=(e,t,r)=>x(w(r.node),e,{parser:"babel",__isHtmlInlineEventHandler:!0},()=>!1);function ri(e){let t=[];for(let r of e.split(";")){if(r=D.trim(r),!r)continue;let[n,...a]=D.split(r);t.push({name:n,value:a})}return t}var ni=ri,ai=({node:e},t)=>e.fullName==="allow"&&!t.parentParser&&e.parent.fullName==="iframe"&&!e.value.includes("{{");function ii(e,t,r){let{node:n}=r,a=ni(w(n));return a.length===0?[""]:he(a.map(({name:i,value:s},o)=>[[i,...s].join(" "),o===a.length-1?pe(";"):[";",S]]))}function Ar(e){return e==="	"||e===`
`||e==="\f"||e==="\r"||e===" "}var si=/^[ \t\n\r\u000c]+/,oi=/^[, \t\n\r\u000c]+/,ui=/^[^ \t\n\r\u000c]+/,li=/[,]+$/,Tr=/^\d+$/,ci=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function pi(e){let t=e.length,r,n,a,i,s,o=0,l;function c(h){let f,v=h.exec(e.substring(o));if(v)return[f]=v,o+=f.length,f}let p=[];for(;;){if(c(oi),o>=t){if(p.length===0)throw new Error("Must contain one or more image candidate strings.");return p}l=o,r=c(ui),n=[],r.slice(-1)===","?(r=r.replace(li,""),g()):C()}function C(){for(c(si),a="",i="in descriptor";;){if(s=e.charAt(o),i==="in descriptor")if(Ar(s))a&&(n.push(a),a="",i="after descriptor");else if(s===","){o+=1,a&&n.push(a),g();return}else if(s==="(")a+=s,i="in parens";else if(s===""){a&&n.push(a),g();return}else a+=s;else if(i==="in parens")if(s===")")a+=s,i="in descriptor";else if(s===""){n.push(a),g();return}else a+=s;else if(i==="after descriptor"&&!Ar(s))if(s===""){g();return}else i="in descriptor",o-=1;o+=1}}function g(){let h=!1,f,v,P,q,K={},V,Je,oe,Le,Lt;for(q=0;q<n.length;q++)V=n[q],Je=V[V.length-1],oe=V.substring(0,V.length-1),Le=parseInt(oe,10),Lt=parseFloat(oe),Tr.test(oe)&&Je==="w"?((f||v)&&(h=!0),Le===0?h=!0:f=Le):ci.test(oe)&&Je==="x"?((f||v||P)&&(h=!0),Lt<0?h=!0:v=Lt):Tr.test(oe)&&Je==="h"?((P||v)&&(h=!0),Le===0?h=!0:P=Le):h=!0;if(!h)K.source={value:r,startOffset:l},f&&(K.width={value:f}),v&&(K.density={value:v}),P&&(K.height={value:P}),p.push(K);else throw new Error(`Invalid srcset descriptor found in "${e}" at "${V}".`)}}var hi=pi,di=e=>e.node.fullName==="srcset"&&(e.parent.fullName==="img"||e.parent.fullName==="source"),kr={width:"w",height:"h",density:"x"},mi=Object.keys(kr);function gi(e,t,r){let n=w(r.node),a=hi(n),i=mi.filter(h=>a.some(f=>Object.prototype.hasOwnProperty.call(f,h)));if(i.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[s]=i,o=kr[s],l=a.map(h=>h.source.value),c=Math.max(...l.map(h=>h.length)),p=a.map(h=>h[s]?String(h[s].value):""),C=p.map(h=>{let f=h.indexOf(".");return f===-1?h.length:f}),g=Math.max(...C);return he(Q([",",S],l.map((h,f)=>{let v=[h],P=p[f];if(P){let q=c-h.length+1,K=g-C[f],V=" ".repeat(q+K);v.push(pe(V," "),P+o)}return v})))}var fi=({node:e},t)=>e.fullName==="style"&&!t.parentParser&&!e.value.includes("{{"),_i=async(e,t,r)=>he(await e(w(r.node),{parser:"css",__isHTMLStyleAttribute:!0})),dt=new WeakMap;function Ci(e,t){let{root:r}=e;return dt.has(r)||dt.set(r,r.children.some(n=>vr(n,t)&&["ts","typescript"].includes(n.attrMap.lang))),dt.get(r)}var re=Ci;function vi(e,t,r){let n=w(r.node);return x(`type T<${n}> = any`,e,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},Z)}function Ei(e,t,r,n){let a=w(r.node),i=re(r,n)?"babel-ts":"babel";return x(`function _(${a}) {}`,e,{parser:i,__isVueBindings:!0})}async function Si(e,t,r,n){let a=w(r.node),{left:i,operator:s,right:o}=Ai(a),l=re(r,n);return[A(await x(`function _(${i}) {}`,e,{parser:l?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",s," ",await x(o,e,{parser:l?"__ts_expression":"__js_expression"})]}function Ai(e){let t=/(.*?)\s+(in|of)\s+(.*)/su,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,n=/^\(|\)$/gu,a=e.match(t);if(!a)return;let i={for:a[3].trim()};if(!i.for)return;let s=b(0,a[1].trim(),n,""),o=s.match(r);o?(i.alias=s.replace(r,""),i.iterator1=o[1].trim(),o[2]&&(i.iterator2=o[2].trim())):i.alias=s;let l=[i.alias,i.iterator1,i.iterator2];if(!l.some((c,p)=>!c&&(p===0||l.slice(p+1).some(Boolean))))return{left:l.filter(Boolean).join(","),operator:a[2],right:i.for}}var Ti=[{test:e=>e.node.fullName==="v-for",print:Si},{test:(e,t)=>e.node.fullName==="generic"&&vr(e.parent,t),print:vi},{test:({node:e},t)=>Ua(e)||Wa(e,t),print:Ei},{test(e){let t=e.node.fullName;return t.startsWith("@")||t.startsWith("v-on:")},print:ki},{test(e){let t=e.node.fullName;return t.startsWith(":")||t.startsWith(".")||t.startsWith("v-bind:")},print:bi},{test:e=>e.node.fullName.startsWith("v-"),print:br}].map(({test:e,print:t})=>({test:(r,n)=>n.parser==="vue"&&e(r,n),print:t}));async function ki(e,t,r,n){try{return await br(e,t,r,n)}catch(s){if(s.cause?.code!=="BABEL_PARSER_SYNTAX_ERROR")throw s}let a=w(r.node),i=re(r,n)?"__vue_ts_event_binding":"__vue_event_binding";return x(a,e,{parser:i},Z)}function bi(e,t,r,n){let a=w(r.node),i=re(r,n)?"__vue_ts_expression":"__vue_expression";return x(a,e,{parser:i},Z)}function br(e,t,r,n){let a=w(r.node),i=re(r,n)?"__ts_expression":"__js_expression";return x(a,e,{parser:i},Z)}var wi=Ti,yi=[{test:di,print:gi},{test:fi,print:_i},{test:ei,print:ti},{test:Ya,print:Ja},{test:ai,print:ii},...wi,...Ka].map(({test:e,print:t})=>({test:e,print:xi(t)}));function Di(e,t){let{node:r}=e,{value:n}=r;if(n)return Er(r,t)?[r.rawName,"=",n]:yi.find(({test:a})=>a(e,t))?.print}function xi(e){return async(t,r,n,a)=>{let i=await e(t,r,n,a);if(i)return i=Kt(i,s=>typeof s=="string"?b(0,s,'"',"&quot;"):s),[n.node.rawName,'="',A(i),'"']}}var Ni=Di,fe=e=>e.sourceSpan.start.offset,qe=e=>e.sourceSpan.end.offset;function mt(e,t){return[e.isSelfClosing?"":Bi(e,t),_e(e,t)]}function Bi(e,t){return e.lastChild&&Ee(e.lastChild)?"":[Li(e,t),gt(e,t)]}function _e(e,t){return(e.next?W(e.next):ve(e.parent))?"":[Ce(e,t),U(e,t)]}function Li(e,t){return ve(e)?Ce(e.lastChild,t):""}function U(e,t){return Ee(e)?gt(e.parent,t):He(e)?_t(e.next,t):""}function gt(e,t){if(wr(e,t))return"";switch(e.kind){case"ieConditionalComment":return"<!";case"element":if(e.hasHtmComponentClosingTag)return"<//";default:return`</${e.rawName}`}}function Ce(e,t){if(wr(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 wr(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(Ie(e)||or(e.parent,t))}function W(e){return e.prev&&e.prev.kind!=="docType"&&e.kind!=="angularControlFlowBlock"&&!N(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function ve(e){return e.lastChild?.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!N(ct(e.lastChild))&&!ee(e)}function Ee(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&N(ct(e))}function He(e){return e.next&&!N(e.next)&&N(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function Oi(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return t?t[1]?t[1].split(/\s+/u):!0:!1}function Ve(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function Fi(e,t,r){let{node:n}=e;if(!ot(n.attrs))return n.isSelfClosing?" ":"";let a=n.prev?.kind==="comment"&&Oi(n.prev.value),i=typeof a=="boolean"?()=>a:Array.isArray(a)?p=>a.includes(p.rawName):()=>!1,s=e.map(({node:p})=>i(p)?O(t.originalText.slice(fe(p),qe(p))):r(),"attrs"),o=n.kind==="element"&&n.fullName==="script"&&n.attrs.length===1&&n.attrs[0].fullName==="src"&&n.children.length===0,l=t.singleAttributePerLine&&n.attrs.length>1&&!te(n,t)?E:S,c=[F([o?" ":S,Q(l,s)])];return n.firstChild&&Ve(n.firstChild)||n.isSelfClosing&&ve(n.parent)||o?c.push(n.isSelfClosing?" ":""):c.push(t.bracketSameLine?n.isSelfClosing?" ":"":n.isSelfClosing?S:k),c}function Pi(e){return e.firstChild&&Ve(e.firstChild)?"":Ct(e)}function ft(e,t,r){let{node:n}=e;return[Se(n,t),Fi(e,t,r),n.isSelfClosing?"":Pi(n)]}function Se(e,t){return e.prev&&He(e.prev)?"":[z(e,t),_t(e,t)]}function z(e,t){return Ve(e)?Ct(e.parent):W(e)?Ce(e.prev,t):""}var yr="<!doctype";function _t(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:n}=t;if(n&&/\.html?$/u.test(n))return yr}let r=fe(e);return t.originalText.slice(r,r+yr.length)}case"angularIcuExpression":return"{";case"element":if(e.condition)return`<!--[if ${e.condition}]><!--><${e.rawName}`;default:return`<${e.rawName}`}}function Ct(e){switch(e.kind){case"ieConditionalComment":return"]>";case"element":if(e.condition)return"><!--<![endif]-->";default:return">"}}function Ii(e,t){if(!e.endSourceSpan)return"";let r=e.startSourceSpan.end.offset;e.firstChild&&Ve(e.firstChild)&&(r-=Ct(e).length);let n=e.endSourceSpan.start.offset;return e.lastChild&&Ee(e.lastChild)?n+=gt(e,t).length:ve(e)&&(n-=Ce(e.lastChild,t).length),t.originalText.slice(r,n)}var Dr=Ii,Ri=new Set(["if","else if","for","switch","case"]);function Mi(e,t){let{node:r}=e;switch(r.kind){case"element":if(R(r,t)||r.kind==="interpolation")return;if(!r.isSelfClosing&&pt(r,t)){let n=gr(r,t);return n?async(a,i)=>{let s=Dr(r,t),o=/^\s*$/u.test(s),l="";return o||(l=await a(sr(s),{parser:n,__embeddedInHtml:!0}),o=l===""),[z(r,t),A(ft(e,t,i)),o?"":E,l,o?"":E,mt(r,t),U(r,t)]}:void 0}break;case"text":if(R(r.parent,t)){let n=gr(r.parent,t);if(n)return async a=>{let i=n==="markdown"?D.dedentString(r.value.replace(/^[^\S\n]*\n/u,"")):r.value,s={parser:n,__embeddedInHtml:!0};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"),s.__babelSourceType=o}return[ce,z(r,t),await a(i,s),U(r,t)]}}else if(r.parent.kind==="interpolation")return async n=>{let a={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return t.parser==="angular"?a.parser="__ng_interpolation":t.parser==="vue"?a.parser=re(e,t)?"__vue_ts_expression":"__vue_expression":a.parser="__js_expression",[F([S,await n(r.value,a)]),r.parent.next&&W(r.parent.next)?" ":S]};break;case"attribute":return Ni(e,t);case"angularControlFlowBlockParameters":return Ri.has(e.parent.name)?Qn:void 0;case"angularLetDeclarationInitializer":return n=>x(r.value,n,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var qi=Mi,Ae=null;function Te(e){if(Ae!==null&&typeof Ae.property){let t=Ae;return Ae=Te.prototype=null,t}return Ae=Te.prototype=e??Object.create(null),new Te}var Hi=10;for(let e=0;e<=Hi;e++)Te();function Vi(e){return Te(e)}function Ui(e,t="type"){Vi(e);function r(n){let a=n[t],i=e[a];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${a}'.`),{node:n});return i}return r}var Wi=Ui,y=[["children"],[]],zi={root:y[0],element:["attrs","children"],ieConditionalComment:y[0],ieConditionalStartComment:y[1],ieConditionalEndComment:y[1],interpolation:y[0],text:y[0],docType:y[1],comment:y[1],attribute:y[1],cdata:y[1],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:y[0],angularControlFlowBlockParameter:y[1],angularLetDeclaration:["init"],angularLetDeclarationInitializer:y[1],angularIcuExpression:["cases"],angularIcuCase:["expression"]},$i=Wi(zi,"kind"),ji=$i,Xi="format",Gi=/^\s*<!--\s*@(?:noformat|noprettier)\s*-->/u,Ki=/^\s*<!--\s*@(?:format|prettier)\s*-->/u,Yi=e=>Ki.test(e),Ji=e=>Gi.test(e),Qi=e=>`<!-- @${Xi} -->

${e}`,Zi=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"])]]);function xr(e){let t=qe(e);return e.kind==="element"&&!e.endSourceSpan&&ot(e.children)?Math.max(t,xr(Y(0,e.children,-1))):t}function ke(e,t,r){let n=e.node;if(Ie(n)){let a=xr(n);return[z(n,t),O(D.trimEnd(t.originalText.slice(fe(n)+(n.prev&&He(n.prev)?_t(n).length:0),a-(n.next&&W(n.next)?Ce(n,t).length:0)))),U(n,t)]}return r()}function Ue(e,t){return N(e)&&N(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?lt(t)?E:S:"":lt(t)?E:k:He(e)&&(Ie(t)||t.firstChild||t.isSelfClosing||t.kind==="element"&&t.attrs.length>0)||e.kind==="element"&&e.isSelfClosing&&W(t)?"":!t.isLeadingSpaceSensitive||lt(t)||W(t)&&e.lastChild&&Ee(e.lastChild)&&e.lastChild.lastChild&&Ee(e.lastChild.lastChild)?E:t.hasLeadingSpaces?S:k}function vt(e,t,r){let{node:n}=e;if(lr(n))return[ce,...e.map(()=>{let i=e.node,s=i.prev?Ue(i.prev,i):"";return[s?[s,Re(i.prev)?E:""]:"",ke(e,t,r)]},"children")];let a=n.children.map(()=>Symbol(""));return e.map(({node:i,index:s})=>{if(N(i)){if(i.prev&&N(i.prev)){let h=Ue(i.prev,i);if(h)return Re(i.prev)?[E,E,ke(e,t,r)]:[h,ke(e,t,r)]}return ke(e,t,r)}let o=[],l=[],c=[],p=[],C=i.prev?Ue(i.prev,i):"",g=i.next?Ue(i,i.next):"";return C&&(Re(i.prev)?o.push(E,E):C===E?o.push(E):N(i.prev)?l.push(C):l.push(pe("",k,{groupId:a[s-1]}))),g&&(Re(i)?N(i.next)&&p.push(E,E):g===E?N(i.next)&&p.push(E):c.push(g)),[...o,A([...l,A([ke(e,t,r),...c],{id:a[s]})]),...p]},"children")}function es(e,t,r){let{node:n}=e,a=[];if(ns(e)&&a.push("} "),a.push("@",n.name),n.parameters&&a.push(" (",A(r("parameters")),")"),!rs(n)){a.push(" {");let i=Nr(n);n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,a.push(F([E,vt(e,t,r)])),i&&a.push(E,"}")):i&&a.push("}")}return A(a,{shouldBreak:!0})}function Nr(e){return!(e.next?.kind==="angularControlFlowBlock"&&Zi.get(e.name)?.has(e.next.name))}var ts=e=>e?.kind==="angularControlFlowBlock"&&(e.name==="case"||e.name==="default");function rs(e){return ts(e)&&e.endSourceSpan&&e.endSourceSpan.start.offset===e.endSourceSpan.end.offset}function ns(e){let{previous:t}=e;return t?.kind==="angularControlFlowBlock"&&!Ie(t)&&!Nr(t)}function as(e,t,r){return[F([k,Q([";",S],e.map(r,"children"))]),k]}function is(e,t,r){let{node:n}=e;return[Se(n,t),A([n.switchValue.trim(),", ",n.type,n.cases.length>0?[",",F([S,Q(S,e.map(r,"cases"))])]:"",k]),_e(n,t)]}function ss(e,t,r){let{node:n}=e;return[n.value," {",A([F([k,e.map(({node:a,isLast:i})=>{let s=[r()];return a.kind==="text"&&(a.hasLeadingSpaces&&s.unshift(S),a.hasTrailingSpaces&&!i&&s.push(S)),s},"expression")]),k]),"}"]}function os(e,t,r){let{node:n}=e;if(or(n,t))return[z(n,t),A(ft(e,t,r)),O(Dr(n,t)),...mt(n,t),U(n,t)];let a=n.children.length===1&&(n.firstChild.kind==="interpolation"||n.firstChild.kind==="angularIcuExpression")&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,i=Symbol("element-attr-group-id"),s=p=>A([A(ft(e,t,r),{id:i}),p,mt(n,t)]),o=p=>a?On(p,{groupId:i}):(R(n,t)||Me(n,t))&&n.parent.kind==="root"&&t.parser==="vue"&&!t.vueIndentScriptAndStyle?p:F(p),l=()=>a?pe(k,"",{groupId:i}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?S:n.firstChild.kind==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?Ln(k):k,c=()=>(n.next?W(n.next):ve(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":a?pe(k,"",{groupId:i}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?S:(n.lastChild.kind==="comment"||n.lastChild.kind==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${t.tabWidth*(e.ancestors.length-1)}}$`,"u").test(n.lastChild.value)?"":k;return n.children.length===0?s(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?S:""):s([Da(n)?ce:"",o([l(),vt(e,t,r)]),c()])}var M=(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 We(e,t=!0){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 Br(e){return We(e)[1]==="ng-container"}function Lr(e){return We(e)[1]==="ng-content"}function ze(e){return e===null?null:We(e)[0]}function be(e,t){return e?`:${e}:${t}`:t}var Or={name:"custom-elements"},Fr={name:"no-errors-schema"},ne=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",e})({}),us=/-+([a-z0-9])/g;function ls(e){return e.replace(us,(...t)=>t[1].toUpperCase())}var $e;function Pr(){return $e||($e={},we(ne.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),we(ne.STYLE,["*|style"]),we(ne.URL,["*|formAction","area|href","a|href","a|xlink:href","form|action","annotation|href","annotation|xlink:href","annotation-xml|href","annotation-xml|xlink:href","maction|href","maction|xlink:href","malignmark|href","malignmark|xlink:href","math|href","math|xlink:href","mroot|href","mroot|xlink:href","msqrt|href","msqrt|xlink:href","merror|href","merror|xlink:href","mfrac|href","mfrac|xlink:href","mglyph|href","mglyph|xlink:href","msub|href","msub|xlink:href","msup|href","msup|xlink:href","msubsup|href","msubsup|xlink:href","mmultiscripts|href","mmultiscripts|xlink:href","mprescripts|href","mprescripts|xlink:href","mi|href","mi|xlink:href","mn|href","mn|xlink:href","mo|href","mo|xlink:href","mpadded|href","mpadded|xlink:href","mphantom|href","mphantom|xlink:href","mrow|href","mrow|xlink:href","ms|href","ms|xlink:href","mspace|href","mspace|xlink:href","mstyle|href","mstyle|xlink:href","mtable|href","mtable|xlink:href","mtd|href","mtd|xlink:href","mtr|href","mtr|xlink:href","mtext|href","mtext|xlink:href","mover|href","mover|xlink:href","munder|href","munder|xlink:href","munderover|href","munderover|xlink:href","semantics|href","semantics|xlink:href","none|href","none|xlink:href","img|src","video|src"]),we(ne.RESOURCE_URL,["base|href","embed|src","frame|src","iframe|src","link|href","object|codebase","object|data","script|src","script|href","script|xlink:href"]),we(ne.ATTRIBUTE_NO_BINDING,["animate|attributeName","set|attributeName","animateMotion|attributeName","animateTransform|attributeName","unknown|attributeName","iframe|sandbox","iframe|allow","iframe|allowFullscreen","iframe|referrerPolicy","iframe|csp","iframe|fetchPriority","unknown|sandbox","unknown|allow","unknown|allowFullscreen","unknown|referrerPolicy","unknown|csp","unknown|fetchPriority"])),$e}function we(e,t){for(let r of t)$e[r.toLowerCase()]=e}var cs=class{},ps="boolean",hs="number",ds="string",ms="object",gs=["[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","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,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:|"],Ir=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"})),fs=Array.from(Ir).reduce((e,[t,r])=>(e.set(t,r),e),new Map),_s=class extends cs{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,gs.forEach(e=>{let t=new Map,r=new Set,[n,a]=e.split("|"),i=a.split(","),[s,o]=n.split("^");s.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,p]of l)t.set(c,p);for(let c of this._eventSchema.get(o.toLowerCase()))r.add(c)}i.forEach(c=>{if(c.length>0)switch(c[0]){case"*":r.add(c.substring(1));break;case"!":t.set(c.substring(1),ps);break;case"#":t.set(c.substring(1),hs);break;case"%":t.set(c.substring(1),ms);break;default:t.set(c,ds)}})})}hasProperty(e,t,r){if(r.some(n=>n.name===Fr.name))return!0;if(e.indexOf("-")>-1){if(Br(e)||Lr(e))return!1;if(r.some(n=>n.name===Or.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(t)}hasElement(e,t){return t.some(r=>r.name===Fr.name)||e.indexOf("-")>-1&&(Br(e)||Lr(e)||t.some(r=>r.name===Or.name))?!0:this._schema.has(e.toLowerCase())}securityContext(e,t,r){r&&(t=this.getMappedPropName(t)),e=e.toLowerCase(),t=t.toLowerCase();let n=Pr()[e+"|"+t];return n||(n=Pr()["*|"+t],n||ne.NONE)}getMappedPropName(e){return Ir.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...
If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let t=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(t.keys()).map(r=>fs.get(r)??r)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return ls(e)}normalizeAnimationStyleValue(e,t,r){let n="",a=r.toString().trim(),i=null;if(Cs(e)&&r!==0&&r!=="0")if(typeof r=="number")n="px";else{let s=r.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&s[1].length==0&&(i=`Please provide a CSS unit value for ${t}:${r}`)}return{error:i,value:a+n}}};function Cs(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!0;default:return!1}}var m=class{constructor({closedByChildren:e,implicitNamespacePrefix:t,contentType:r=M.PARSABLE_DATA,closedByParent:n=!1,isVoid:a=!1,ignoreFirstLf:i=!1,preventNamespaceInheritance:s=!1,canSelfClose:o=!1}={}){this.closedByChildren={},this.closedByParent=!1,e&&e.length>0&&e.forEach(l=>this.closedByChildren[l]=!0),this.isVoid=a,this.closedByParent=n||a,this.implicitNamespacePrefix=t||null,this.contentType=r,this.ignoreFirstLf=i,this.preventNamespaceInheritance=s,this.canSelfClose=o??a}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType=="object"?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},Rr,ye;function Et(e){return ye||(Rr=new m({canSelfClose:!0}),ye=Object.assign(Object.create(null),{base:new m({isVoid:!0}),meta:new m({isVoid:!0}),area:new m({isVoid:!0}),embed:new m({isVoid:!0}),link:new m({isVoid:!0}),img:new m({isVoid:!0}),input:new m({isVoid:!0}),param:new m({isVoid:!0}),hr:new m({isVoid:!0}),br:new m({isVoid:!0}),source:new m({isVoid:!0}),track:new m({isVoid:!0}),wbr:new m({isVoid:!0}),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:!0}),thead:new m({closedByChildren:["tbody","tfoot"]}),tbody:new m({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new m({closedByChildren:["tbody"],closedByParent:!0}),tr:new m({closedByChildren:["tr"],closedByParent:!0}),td:new m({closedByChildren:["td","th"],closedByParent:!0}),th:new m({closedByChildren:["td","th"],closedByParent:!0}),col:new m({isVoid:!0}),svg:new m({implicitNamespacePrefix:"svg"}),foreignObject:new m({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new m({implicitNamespacePrefix:"math"}),li:new m({closedByChildren:["li"],closedByParent:!0}),dt:new m({closedByChildren:["dt","dd"]}),dd:new m({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new m({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new m({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new m({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new m({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new m({closedByChildren:["optgroup"],closedByParent:!0}),option:new m({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new m({ignoreFirstLf:!0}),listing:new m({ignoreFirstLf:!0}),style:new m({contentType:M.RAW_TEXT}),script:new m({contentType:M.RAW_TEXT}),title:new m({contentType:{default:M.ESCAPABLE_RAW_TEXT,svg:M.PARSABLE_DATA}}),textarea:new m({contentType:M.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new _s().allKnownElementNames().forEach(t=>{!ye[t]&&ze(t)===null&&(ye[t]=new m({canSelfClose:!1}))})),ye[e]??Rr}function je(e){return e>=9&&e<=32||e==160}function Xe(e){return 48<=e&&e<=57}function De(e){return e>=97&&e<=122||e>=65&&e<=90}function vs(e){return e>=97&&e<=102||e>=65&&e<=70||Xe(e)}function Ge(e){return e===10||e===13}function Mr(e){return 48<=e&&e<=55}function St(e){return e===39||e===34||e===96}var At=class cn{constructor(t,r,n,a){this.file=t,this.offset=r,this.line=n,this.col=a}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,a=this.offset,i=this.line,s=this.col;for(;a>0&&t<0;)if(a--,t++,r.charCodeAt(a)==10){i--;let o=r.substring(0,a-1).lastIndexOf(`
`);s=o>0?a-o:a}else s--;for(;a<n&&t>0;){let o=r.charCodeAt(a);a++,t--,o==10?(i++,s=0):s++}return new cn(this.file,a,i,s)}getContext(t,r){let n=this.file.content,a=this.offset;if(a!=null){a>n.length-1&&(a=n.length-1);let i=a,s=0,o=0;for(;s<t&&a>0&&(a--,s++,!(n[a]==`
`&&++o==r)););for(s=0,o=0;s<t&&i<n.length-1&&(i++,s++,!(n[i]==`
`&&++o==r)););return{before:n.substring(a,this.offset),after:n.substring(this.offset,i+1)}}return null}},qr=class{constructor(e,t){this.content=e,this.url=t}},d=class{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)}},Hr=(function(e){return e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR",e})({}),ae=class extends Error{constructor(e,t,r=Hr.ERROR,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}[${Hr[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}},$=class{constructor(e,t){this.sourceSpan=e,this.i18n=t}},Es=class extends ${constructor(e,t,r,n){super(t,n),this.value=e,this.tokens=r,this.kind="text"}visit(e,t){return e.visitText(this,t)}},Ss=class extends ${constructor(e,t,r,n){super(t,n),this.value=e,this.tokens=r,this.kind="cdata"}visit(e,t){return e.visitCdata(this,t)}},As=class extends ${constructor(e,t,r,n,a,i){super(n,i),this.switchValue=e,this.type=t,this.cases=r,this.switchValueSourceSpan=a,this.kind="expansion"}visit(e,t){return e.visitExpansion(this,t)}},Ts=class{constructor(e,t,r,n,a){this.value=e,this.expression=t,this.sourceSpan=r,this.valueSourceSpan=n,this.expSourceSpan=a,this.kind="expansionCase"}visit(e,t){return e.visitExpansionCase(this,t)}},ks=class extends ${constructor(e,t,r,n,a,i,s){super(r,s),this.name=e,this.value=t,this.keySpan=n,this.valueSpan=a,this.valueTokens=i,this.kind="attribute"}visit(e,t){return e.visitAttribute(this,t)}get nameSpan(){return this.keySpan}},j=class extends ${constructor(e,t,r,n,a,i,s,o=null,l=null,c,p){super(i,p),this.name=e,this.attrs=t,this.directives=r,this.children=n,this.isSelfClosing=a,this.startSourceSpan=s,this.endSourceSpan=o,this.nameSpan=l,this.isVoid=c,this.kind="element"}visit(e,t){return e.visitElement(this,t)}},bs=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.kind="comment"}visit(e,t){return e.visitComment(this,t)}},ws=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.kind="docType"}visit(e,t){return e.visitDocType(this,t)}},ie=class extends ${constructor(e,t,r,n,a,i,s=null,o){super(n,o),this.name=e,this.parameters=t,this.children=r,this.nameSpan=a,this.startSourceSpan=i,this.endSourceSpan=s,this.kind="block"}visit(e,t){return e.visitBlock(this,t)}},H=class extends ${constructor(e,t,r,n,a,i,s,o,l,c=null,p){super(o,p),this.componentName=e,this.tagName=t,this.fullName=r,this.attrs=n,this.directives=a,this.children=i,this.isSelfClosing=s,this.startSourceSpan=l,this.endSourceSpan=c,this.kind="component"}visit(e,t){return e.visitComponent(this,t)}},ys=class{constructor(e,t,r,n,a=null){this.name=e,this.attrs=t,this.sourceSpan=r,this.startSourceSpan=n,this.endSourceSpan=a,this.kind="directive"}visit(e,t){return e.visitDirective(this,t)}},Vr=class{constructor(e,t){this.expression=e,this.sourceSpan=t,this.kind="blockParameter",this.startSourceSpan=null,this.endSourceSpan=null}visit(e,t){return e.visitBlockParameter(this,t)}},Ur=class{constructor(e,t,r,n,a){this.name=e,this.value=t,this.sourceSpan=r,this.nameSpan=n,this.valueSpan=a,this.kind="letDeclaration",this.startSourceSpan=null,this.endSourceSpan=null}visit(e,t){return e.visitLetDeclaration(this,t)}};function Wr(e,t,r=null){let n=[],a=e.visit?i=>e.visit(i,r)||i.visit(e,r):i=>i.visit(e,r);return t.forEach(i=>{let s=a(i);s&&n.push(s)}),n}var Ds=class{constructor(){}visitElement(e,t){this.visitChildren(t,r=>{r(e.attrs),r(e.directives),r(e.children)})}visitAttribute(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.children)})}visitDirective(e,t){this.visitChildren(t,r=>{r(e.attrs)})}visitChildren(e,t){let r=[],n=this;function a(i){i&&r.push(Wr(n,i,e))}return t(a),Array.prototype.concat.apply([],r)}},xe={AElig:"Æ",AMP:"&",amp:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",af:"⁡",Aring:"Å",angst:"Å",Ascr:"𝒜",Assign:"≔",colone:"≔",coloneq:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",setminus:"∖",setmn:"∖",smallsetminus:"∖",ssetmn:"∖",Barv:"⫧",Barwed:"⌆",doublebarwedge:"⌆",Bcy:"Б",Because:"∵",becaus:"∵",because:"∵",Bernoullis:"ℬ",Bscr:"ℬ",bernou:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",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:"𝒞",Cup:"⋓",CupCap:"≍",asympeq:"≍",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",ddagger:"‡",Darr:"↡",Dashv:"⫤",DoubleLeftTee:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",nabla:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",acute:"´",DiacriticalDot:"˙",dot:"˙",DiacriticalDoubleAcute:"˝",dblac:"˝",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"˜",tilde:"˜",Diamond:"⋄",diam:"⋄",diamond:"⋄",DifferentialD:"ⅆ",dd:"ⅆ",Dopf:"𝔻",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:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",in:"∈",isin:"∈",isinv:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",eqsim:"≂",esim:"≂",Equilibrium:"⇌",rightleftharpoons:"⇌",rlhar:"⇌",Escr:"ℰ",expectation:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",exist:"∃",ExponentialE:"ⅇ",ee:"ⅇ",exponentiale:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",blacksquare:"▪",squarf:"▪",squf:"▪",Fopf:"𝔽",ForAll:"∀",forall:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",gt:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",ggg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",ge:"≥",geq:"≥",GreaterEqualLess:"⋛",gel:"⋛",gtreqless:"⋛",GreaterFullEqual:"≧",gE:"≧",geqq:"≧",GreaterGreater:"⪢",GreaterLess:"≷",gl:"≷",gtrless:"≷",GreaterSlantEqual:"⩾",geqslant:"⩾",ges:"⩾",GreaterTilde:"≳",gsim:"≳",gtrsim:"≳",Gscr:"𝒢",Gt:"≫",NestedGreaterGreater:"≫",gg:"≫",HARDcy:"Ъ",Hacek:"ˇ",caron:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",Poincareplane:"ℌ",HilbertSpace:"ℋ",Hscr:"ℋ",hamilt:"ℋ",Hopf:"ℍ",quaternions:"ℍ",HorizontalLine:"─",boxh:"─",Hstrok:"Ħ",HumpEqual:"≏",bumpe:"≏",bumpeq:"≏",IEcy:"Е",IJlig:"Ĳ",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:"𝕀",Iota:"Ι",Iscr:"ℐ",imagline:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",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:"𝔏",Ll:"⋘",Lleftarrow:"⇚",lAarr:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",longleftarrow:"⟵",xlarr:"⟵",LongLeftRightArrow:"⟷",longleftrightarrow:"⟷",xharr:"⟷",LongRightArrow:"⟶",longrightarrow:"⟶",xrarr:"⟶",Lopf:"𝕃",LowerLeftArrow:"↙",swarr:"↙",swarrow:"↙",LowerRightArrow:"↘",searr:"↘",searrow:"↘",Lsh:"↰",lsh:"↰",Lstrok:"Ł",Lt:"≪",NestedLessLess:"≪",ll:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mscr:"ℳ",phmmat:"ℳ",Mfr:"𝔐",MinusPlus:"∓",mnplus:"∓",mp:"∓",Mopf:"𝕄",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",ZeroWidthSpace:"​",NewLine:`
`,Nfr:"𝔑",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:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",ohm:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",ldquo:"“",OpenCurlyQuote:"‘",lsquo:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",oline:"‾",OverBrace:"⏞",OverBracket:"⎴",tbrk:"⎴",OverParenthesis:"⏜",PartialD:"∂",part:"∂",Pcy:"П",Pfr:"𝔓",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:"𝒫",Psi:"Ψ",QUOT:'"',quot:'"',Qfr:"𝔔",Qopf:"ℚ",rationals:"ℚ",Qscr:"𝒬",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:"𝔖",ShortUpArrow:"↑",UpArrow:"↑",uarr:"↑",uparrow:"↑",Sigma:"Σ",SmallCircle:"∘",compfn:"∘",Sopf:"𝕊",Sqrt:"√",radic:"√",Square:"□",squ:"□",square:"□",SquareIntersection:"⊓",sqcap:"⊓",SquareSubset:"⊏",sqsub:"⊏",sqsubset:"⊏",SquareSubsetEqual:"⊑",sqsube:"⊑",sqsubseteq:"⊑",SquareSuperset:"⊐",sqsup:"⊐",sqsupset:"⊐",SquareSupersetEqual:"⊒",sqsupe:"⊒",sqsupseteq:"⊒",SquareUnion:"⊔",sqcup:"⊔",Sscr:"𝒮",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:"	",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",there4:"∴",therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",Tilde:"∼",sim:"∼",thicksim:"∼",thksim:"∼",TildeEqual:"≃",sime:"≃",simeq:"≃",TildeFullEqual:"≅",cong:"≅",TildeTilde:"≈",ap:"≈",approx:"≈",asymp:"≈",thickapprox:"≈",thkap:"≈",Topf:"𝕋",TripleDot:"⃛",tdot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",lowbar:"_",UnderBrace:"⏟",UnderBracket:"⎵",bbrk:"⎵",UnderParenthesis:"⏝",Union:"⋃",bigcup:"⋃",xcup:"⋃",UnionPlus:"⊎",uplus:"⊎",Uogon:"Ų",Uopf:"𝕌",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:"𝒰",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:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",bigwedge:"⋀",xwedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",Zeta:"Ζ",Zfr:"ℨ",zeetrf:"ℨ",Zopf:"ℤ",integers:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",mstpos:"∾",acE:"∾̳",acd:"∿",acirc:"â",acy:"а",aelig:"æ",afr:"𝔞",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:"𝕒",apE:"⩰",apacir:"⩯",ape:"≊",approxeq:"≊",apid:"≋",apos:"'",aring:"å",ascr:"𝒶",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:"𝔟",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:"𝕓",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:"𝒷",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:"𝔠",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:"𝕔",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",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:"𝔡",diamondsuit:"♦",diams:"♦",digamma:"ϝ",gammad:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",llcorner:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",doteqdot:"≑",eDot:"≑",dotminus:"∸",minusd:"∸",dotplus:"∔",plusdo:"∔",dotsquare:"⊡",sdotb:"⊡",drcorn:"⌟",lrcorner:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",triangledown:"▿",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",eqcirc:"≖",ecirc:"ê",ecolon:"≕",eqcolon:"≕",ecy:"э",edot:"ė",efDot:"≒",fallingdotseq:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",eqslantgtr:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",eqslantless:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",varnothing:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",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:"ﬃ",fflig:"ﬀ",ffllig:"ﬄ",ffr:"𝔣",filig:"ﬁ",fjlig:"fj",flat:"♭",fllig:"ﬂ",fltns:"▱",fnof:"ƒ",fopf:"𝕗",fork:"⋔",pitchfork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",half:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",sfrown:"⌢",fscr:"𝒻",gEl:"⪌",gtreqqless:"⪌",gacute:"ǵ",gamma:"γ",gap:"⪆",gtrapprox:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gimel:"ℷ",gjcy:"ѓ",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gneqq:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gnsim:"⋧",gopf:"𝕘",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:"𝔥",hksearow:"⤥",searhk:"⤥",hkswarow:"⤦",swarhk:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",larrhk:"↩",hookrightarrow:"↪",rarrhk:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hstrok:"ħ",hybull:"⁃",iacute:"í",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",ifr:"𝔦",igrave:"ì",iiiint:"⨌",qint:"⨌",iiint:"∭",tint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ĳ",imacr:"ī",imath:"ı",inodot:"ı",imof:"⊷",imped:"Ƶ",incare:"℅",infin:"∞",infintie:"⧝",intcal:"⊺",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iquest:"¿",iscr:"𝒾",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",varkappa:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",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:"𝔩",lgE:"⪑",lharul:"⥪",lhblk:"▄",ljcy:"љ",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lneqq:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lnsim:"⋦",loang:"⟬",loarr:"⇽",longmapsto:"⟼",xmap:"⟼",looparrowright:"↬",rarrlp:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",loz:"◊",lozenge:"◊",lpar:"(",lparlt:"⦓",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",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:"𝔪",mho:"℧",micro:"µ",midcir:"⫰",minus:"−",minusdu:"⨪",mlcp:"⫛",models:"⊧",mopf:"𝕞",mscr:"𝓂",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nLeftarrow:"⇍",nlArr:"⇍",nLeftrightarrow:"⇎",nhArr:"⇎",nLl:"⋘̸",nLt:"≪⃒",nRightarrow:"⇏",nrArr:"⇏",nVDash:"⊯",nVdash:"⊮",nacute:"ń",nang:"∠⃒",napE:"⩰̸",napid:"≋̸",napos:"ŉ",natur:"♮",natural:"♮",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",neArr:"⇗",nearhk:"⤤",nedot:"≐̸",nesear:"⤨",toea:"⤨",nfr:"𝔫",nharr:"↮",nleftrightarrow:"↮",nhpar:"⫲",nis:"⋼",nisd:"⋺",njcy:"њ",nlE:"≦̸",nleqq:"≦̸",nlarr:"↚",nleftarrow:"↚",nldr:"‥",nopf:"𝕟",not:"¬",notinE:"⋹̸",notindot:"⋵̸",notinvb:"⋷",notinvc:"⋶",notnivb:"⋾",notnivc:"⋽",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",nrarr:"↛",nrightarrow:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nscr:"𝓃",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:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",olcir:"⦾",olcross:"⦻",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",oopf:"𝕠",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:"𝔭",phi:"φ",phiv:"ϕ",straightphi:"ϕ",varphi:"ϕ",phone:"☎",pi:"π",piv:"ϖ",varpi:"ϖ",planckh:"ℎ",plus:"+",plusacir:"⨣",pluscir:"⨢",plusdu:"⨥",pluse:"⩲",plussim:"⨦",plustwo:"⨧",pointint:"⨕",popf:"𝕡",pound:"£",prE:"⪳",prap:"⪷",precapprox:"⪷",precnapprox:"⪹",prnap:"⪹",precneqq:"⪵",prnE:"⪵",precnsim:"⋨",prnsim:"⋨",prime:"′",profalar:"⌮",profline:"⌒",profsurf:"⌓",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",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:"𝔯",rharul:"⥬",rho:"ρ",rhov:"ϱ",varrho:"ϱ",rightrightarrows:"⇉",rrarr:"⇉",rightthreetimes:"⋌",rthree:"⋌",ring:"˚",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rsaquo:"›",rscr:"𝓇",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:"𝔰",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:"𝕤",spades:"♠",spadesuit:"♠",sqcaps:"⊓︀",sqcups:"⊔︀",sscr:"𝓈",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:"𝔱",theta:"θ",thetasym:"ϑ",thetav:"ϑ",vartheta:"ϑ",thorn:"þ",times:"×",timesbar:"⨱",timesd:"⨰",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tprime:"‴",triangle:"▵",utri:"▵",triangleq:"≜",trie:"≜",tridot:"◬",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",uHar:"⥣",uacute:"ú",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udblac:"ű",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uogon:"ų",uopf:"𝕦",upsi:"υ",upsilon:"υ",upuparrows:"⇈",uuarr:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",uuml:"ü",uwangle:"⦧",vBar:"⫨",vBarv:"⫩",vangrt:"⦜",varsubsetneq:"⊊︀",vsubne:"⊊︀",varsubsetneqq:"⫋︀",vsubnE:"⫋︀",varsupsetneq:"⊋︀",vsupne:"⊋︀",varsupsetneqq:"⫌︀",vsupnE:"⫌︀",vcy:"в",veebar:"⊻",veeeq:"≚",vellip:"⋮",vfr:"𝔳",vopf:"𝕧",vscr:"𝓋",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedgeq:"≙",weierp:"℘",wp:"℘",wfr:"𝔴",wopf:"𝕨",wscr:"𝓌",xfr:"𝔵",xi:"ξ",xnis:"⋻",xopf:"𝕩",xscr:"𝓍",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},xs="";xe.ngsp=xs;var u=(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.CDATA_START=12]="CDATA_START",e[e.CDATA_END=13]="CDATA_END",e[e.ATTR_NAME=14]="ATTR_NAME",e[e.ATTR_QUOTE=15]="ATTR_QUOTE",e[e.ATTR_VALUE_TEXT=16]="ATTR_VALUE_TEXT",e[e.ATTR_VALUE_INTERPOLATION=17]="ATTR_VALUE_INTERPOLATION",e[e.DOC_TYPE_START=18]="DOC_TYPE_START",e[e.DOC_TYPE_END=19]="DOC_TYPE_END",e[e.EXPANSION_FORM_START=20]="EXPANSION_FORM_START",e[e.EXPANSION_CASE_VALUE=21]="EXPANSION_CASE_VALUE",e[e.EXPANSION_CASE_EXP_START=22]="EXPANSION_CASE_EXP_START",e[e.EXPANSION_CASE_EXP_END=23]="EXPANSION_CASE_EXP_END",e[e.EXPANSION_FORM_END=24]="EXPANSION_FORM_END",e[e.BLOCK_OPEN_START=25]="BLOCK_OPEN_START",e[e.BLOCK_OPEN_END=26]="BLOCK_OPEN_END",e[e.BLOCK_CLOSE=27]="BLOCK_CLOSE",e[e.BLOCK_PARAMETER=28]="BLOCK_PARAMETER",e[e.INCOMPLETE_BLOCK_OPEN=29]="INCOMPLETE_BLOCK_OPEN",e[e.LET_START=30]="LET_START",e[e.LET_VALUE=31]="LET_VALUE",e[e.LET_END=32]="LET_END",e[e.INCOMPLETE_LET=33]="INCOMPLETE_LET",e[e.COMPONENT_OPEN_START=34]="COMPONENT_OPEN_START",e[e.COMPONENT_OPEN_END=35]="COMPONENT_OPEN_END",e[e.COMPONENT_OPEN_END_VOID=36]="COMPONENT_OPEN_END_VOID",e[e.COMPONENT_CLOSE=37]="COMPONENT_CLOSE",e[e.INCOMPLETE_COMPONENT_OPEN=38]="INCOMPLETE_COMPONENT_OPEN",e[e.DIRECTIVE_NAME=39]="DIRECTIVE_NAME",e[e.DIRECTIVE_OPEN=40]="DIRECTIVE_OPEN",e[e.DIRECTIVE_CLOSE=41]="DIRECTIVE_CLOSE",e[e.EOF=42]="EOF",e})({}),Ns=class{constructor(e,t,r){this.tokens=e,this.errors=t,this.nonNormalizedIcuExpressions=r}};function Bs(e,t,r,n={}){let a=new Ps(new qr(e,t),r,n);return a.tokenize(),new Ns(Us(a.tokens),a.errors,a.nonNormalizedIcuExpressions)}var Ls=/\r\n?/g;function X(e){return`Unexpected character "${e===0?"EOF":String.fromCharCode(e)}"`}function zr(e){return`Unknown entity "${e}" - use the "&#<decimal>;" or  "&#x<hex>;" syntax`}function Os(e,t){return`Unable to parse entity "${t}" - ${e} character reference entities must end with ";"`}var Tt=(function(e){return e.HEX="hexadecimal",e.DEC="decimal",e})(Tt||{}),Fs=["@if","@else","@for","@switch","@case","@default","@empty","@defer","@placeholder","@loading","@error"],Ne={start:"{{",end:"}}"},Ps=class{constructor(e,t,r){this._getTagContentType=t,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._openDirectiveCount=0,this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=r.tokenizeExpansionForms||!1,this._leadingTriviaCodePoints=r.leadingTriviaChars&&r.leadingTriviaChars.map(a=>a.codePointAt(0)||0),this._canSelfClose=r.canSelfClose||!1,this._allowHtmComponentClosingTags=r.allowHtmComponentClosingTags||!1;let n=r.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=r.escapedString?new Ws(e,n):new Kr(e,n),this._preserveLineEndings=r.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=r.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=r.tokenizeBlocks??!0,this._tokenizeLet=r.tokenizeLet??!0,this._selectorlessEnabled=r.selectorlessEnabled??!1;try{this._cursor.init()}catch(a){this.handleError(a)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(Ls,`
`)}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(u.TEXT,u.INTERPOLATION,()=>this._isTextEnd(),()=>this._isTagStart())}catch(t){this.handleError(t)}}this._beginToken(u.EOF),this._endToken([])}_getBlockName(){let e=!1,t=this._cursor.clone();return this._attemptCharCodeUntilFn(r=>je(r)?!e:Vs(r)?(e=!0,!1):!0),this._cursor.getChars(t).trim()}_consumeBlockStart(e){this._requireCharCode(64),this._beginToken(u.BLOCK_OPEN_START,e);let t=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(_),this._attemptCharCode(41))this._attemptCharCodeUntilFn(_);else{t.type=u.INCOMPLETE_BLOCK_OPEN;return}this._attemptCharCode(123)?(this._beginToken(u.BLOCK_OPEN_END),this._endToken([])):this._isBlockStart()&&(t.parts[0]==="case"||t.parts[0]==="default")?(this._beginToken(u.BLOCK_OPEN_END),this._endToken([]),this._beginToken(u.BLOCK_CLOSE),this._endToken([])):t.type=u.INCOMPLETE_BLOCK_OPEN}_consumeBlockEnd(e){this._beginToken(u.BLOCK_CLOSE,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(jr);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(u.BLOCK_PARAMETER);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&&St(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(jr)}}_consumeLetDeclaration(e){if(this._requireStr("@let"),this._beginToken(u.LET_START,e),je(this._cursor.peek()))this._attemptCharCodeUntilFn(_);else{let r=this._endToken([this._cursor.getChars(e)]);r.type=u.INCOMPLETE_LET;return}let t=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(_),!this._attemptCharCode(61)){t.type=u.INCOMPLETE_LET;return}this._attemptCharCodeUntilFn(r=>_(r)&&!Ge(r)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(u.LET_END),this._endToken([]),this._cursor.advance()):(t.type=u.INCOMPLETE_LET,t.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),t=!1;return this._attemptCharCodeUntilFn(r=>De(r)||r===36||r===95||t&&Xe(r)?(t=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(u.LET_VALUE,e);this._cursor.peek()!==0;){let t=this._cursor.peek();if(t===59)break;St(t)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(r=>r===92?(this._cursor.advance(),!1):r===t)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(qs(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,t=this._cursor.clone()){this._currentTokenStart=t,this._currentTokenType=e}_endToken(e,t){if(this._currentTokenStart===null)throw new ae(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 ae(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 ae(t,e);return this._currentTokenStart=null,this._currentTokenType=null,r}handleError(e){if(e instanceof kt&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof ae)this.errors.push(e);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return Hs(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(X(this._cursor.peek()),this._cursor.getSpan(t))}_attemptStr(e){let t=e.length;if(this._cursor.charsLeft()<t)return!1;let r=this._cursor.clone();for(let n=0;n<t;n++)if(!this._attemptCharCode(e.charCodeAt(n)))return this._cursor=r,!1;return!0}_attemptStrCaseInsensitive(e){for(let t=0;t<e.length;t++)if(!this._attemptCharCodeCaseInsensitive(e.charCodeAt(t)))return!1;return!0}_requireStr(e){let t=this._cursor.clone();if(!this._attemptStr(e))throw this._createError(X(this._cursor.peek()),this._cursor.getSpan(t))}_requireStrCaseInsensitive(e){let t=this._cursor.clone();if(!this._attemptStrCaseInsensitive(e))throw this._createError(X(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(X(this._cursor.peek()),this._cursor.getSpan(r))}_attemptUntilChar(e){for(;this._cursor.peek()!==e;)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!1;let r=this._cursor.clone();for(let n=0;n<t;n++){if(r.peek()!==e.charCodeAt(n))return!1;r.advance()}return!0}_isBlockStart(){return this._cursor.peek()===64&&Fs.some(e=>this._peekStr(e))}_isLetStart(){return this._cursor.peek()===64&&this._peekStr("@let")}_consumeEntity(e){this._beginToken(u.ENCODED_ENTITY);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(Rs),this._cursor.peek()!=59){this._cursor.advance();let i=r?Tt.HEX:Tt.DEC;throw this._createError(Os(i,this._cursor.getChars(t)),this._cursor.getSpan())}let a=this._cursor.getChars(n);this._cursor.advance();try{let i=parseInt(a,r?16:10);this._endToken([String.fromCodePoint(i),this._cursor.getChars(t)])}catch{throw this._createError(zr(this._cursor.getChars(t)),this._cursor.getSpan())}}else{let r=this._cursor.clone();if(this._attemptCharCodeUntilFn(Ms),this._cursor.peek()!=59)this._beginToken(e,t),this._cursor=r,this._endToken(["&"]);else{let n=this._cursor.getChars(r);this._cursor.advance();let a=xe.hasOwnProperty(n)&&xe[n];if(!a)throw this._createError(zr(n),this._cursor.getSpan(t));this._endToken([a,`&${n};`])}}}_consumeRawText(e,t){this._beginToken(e?u.ESCAPABLE_RAW_TEXT:u.RAW_TEXT);let r=[];for(;;){let n=this._cursor.clone(),a=t();if(this._cursor=n,a)break;e&&this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(r.join(""))]),r.length=0,this._consumeEntity(u.ESCAPABLE_RAW_TEXT),this._beginToken(u.ESCAPABLE_RAW_TEXT)):r.push(this._readChar())}this._endToken([this._processCarriageReturns(r.join(""))])}_consumeComment(e){this._beginToken(u.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("-->")),this._beginToken(u.COMMENT_END),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(e){this._beginToken(u.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(u.COMMENT_END),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(u.CDATA_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(u.CDATA_END),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(u.DOC_TYPE_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(u.DOC_TYPE_END),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(e){let t=this._cursor.clone(),r="";for(;this._cursor.peek()!==58&&!Is(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 a=this._cursor.getChars(n);return[r,a]}_consumeTagOpen(e){let t,r,n,a,i=[];try{if(this._selectorlessEnabled&&Ke(this._cursor.peek()))a=this._consumeComponentOpenStart(e),[n,r,t]=a.parts,r&&(n+=`:${r}`),t&&(n+=`:${t}`),this._attemptCharCodeUntilFn(_);else{if(!De(this._cursor.peek()))throw this._createError(X(this._cursor.peek()),this._cursor.getSpan(e));a=this._consumeTagOpenStart(e),r=a.parts[0],t=n=a.parts[1],this._attemptCharCodeUntilFn(_)}for(;!Gr(this._cursor.peek());)if(this._selectorlessEnabled&&this._cursor.peek()===64){let o=this._cursor.clone(),l=o.clone();l.advance(),Ke(l.peek())&&this._consumeDirective(o,l)}else{let o=this._consumeAttribute();i.push(o)}a.type===u.COMPONENT_OPEN_START?this._consumeComponentOpenEnd():this._consumeTagOpenEnd()}catch(o){if(o instanceof ae){a?a.type=a.type===u.COMPONENT_OPEN_START?u.INCOMPLETE_COMPONENT_OPEN:u.INCOMPLETE_TAG_OPEN:(this._beginToken(u.TEXT,e),this._endToken(["<"]));return}throw o}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===u.TAG_OPEN_END_VOID)return;let s=this._getTagContentType(t,r,this._fullNameStack.length>0,i);this._handleFullNameStackForTagOpen(r,t),s===M.RAW_TEXT?this._consumeRawTextWithTagClose(r,a,n,!1):s===M.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,a,n,!0)}_consumeRawTextWithTagClose(e,t,r,n){this._consumeRawText(n,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(_),!this._attemptStrCaseInsensitive(e&&t.type!==u.COMPONENT_OPEN_START?`${e}:${r}`:r))?!1:(this._attemptCharCodeUntilFn(_),this._attemptCharCode(62))),this._beginToken(t.type===u.COMPONENT_OPEN_START?u.COMPONENT_CLOSE:u.TAG_CLOSE),this._requireCharCodeUntilFn(a=>a===62,3),this._cursor.advance(),this._endToken(t.parts),this._handleFullNameStackForTagClose(e,r)}_consumeTagOpenStart(e){this._beginToken(u.TAG_OPEN_START,e);let t=this._consumePrefixAndName(G);return this._endToken(t)}_consumeComponentOpenStart(e){this._beginToken(u.COMPONENT_OPEN_START,e);let t=this._consumeComponentName();return this._endToken(t)}_consumeComponentName(){let e=this._cursor.clone();for(;Xr(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(G)),[t,r,n]}_consumeAttribute(){let[e,t]=this._consumeAttributeName(),r;return this._attemptCharCodeUntilFn(_),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(_),r=this._consumeAttributeValue()),this._attemptCharCodeUntilFn(_),{prefix:e,name:t,value:r}}_consumeAttributeName(){let e=this._cursor.peek();if(e===39||e===34)throw this._createError(X(e),this._cursor.getSpan());this._beginToken(u.ATTR_NAME);let t;if(this._openDirectiveCount>0){let n=0;t=a=>{if(this._openDirectiveCount>0){if(a===40)n++;else if(a===41){if(n===0)return!0;n--}}return G(a)}}else if(e===91){let n=0;t=a=>(a===91?n++:a===93&&n--,n<=0?G(a):Ge(a))}else t=G;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(u.ATTR_VALUE_TEXT,u.ATTR_VALUE_INTERPOLATION,r,r),this._consumeQuote(t)}else{let t=()=>G(this._cursor.peek());e=this._consumeWithInterpolation(u.ATTR_VALUE_TEXT,u.ATTR_VALUE_INTERPOLATION,t,t)}return e}_consumeQuote(e){this._beginToken(u.ATTR_QUOTE),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?u.TAG_OPEN_END_VOID:u.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeComponentOpenEnd(){let e=this._attemptCharCode(47)?u.COMPONENT_OPEN_END_VOID:u.COMPONENT_OPEN_END;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){if(this._selectorlessEnabled){let t=e.clone();for(;t.peek()!==62&&!Ke(t.peek());)t.advance();if(Ke(t.peek())){this._beginToken(u.COMPONENT_CLOSE,e);let r=this._consumeComponentName();this._attemptCharCodeUntilFn(_),this._requireCharCode(62),this._endToken(r);return}}if(this._beginToken(u.TAG_CLOSE,e),this._attemptCharCodeUntilFn(_),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(_),this._requireCharCode(62),this._endToken([]);else{let[t,r]=this._consumePrefixAndName(G);this._attemptCharCodeUntilFn(_),this._requireCharCode(62),this._endToken([t,r]),this._handleFullNameStackForTagClose(t,r)}}_consumeExpansionFormStart(){this._beginToken(u.EXPANSION_FORM_START),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(u.EXPANSION_FORM_START),this._beginToken(u.RAW_TEXT);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(_),this._beginToken(u.RAW_TEXT);let r=this._readUntil(44);this._endToken([r]),this._requireCharCode(44),this._attemptCharCodeUntilFn(_)}_consumeExpansionCaseStart(){this._beginToken(u.EXPANSION_CASE_VALUE);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(_),this._beginToken(u.EXPANSION_CASE_EXP_START),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(_),this._expansionCaseStack.push(u.EXPANSION_CASE_EXP_START)}_consumeExpansionCaseEnd(){this._beginToken(u.EXPANSION_CASE_EXP_END),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(_),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(u.EXPANSION_FORM_END),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,t,r,n){this._beginToken(e);let a=[];for(;!r();){let s=this._cursor.clone();this._attemptStr(Ne.start)?(this._endToken([this._processCarriageReturns(a.join(""))],s),a.length=0,this._consumeInterpolation(t,s,n),this._beginToken(e)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(a.join(""))]),a.length=0,this._consumeEntity(e),this._beginToken(e)):a.push(this._readChar())}this._inInterpolation=!1;let i=this._processCarriageReturns(a.join(""));return this._endToken([i]),i}_consumeInterpolation(e,t,r){let n=[];this._beginToken(e,t),n.push(Ne.start);let a=this._cursor.clone(),i=null,s=!1;for(;this._cursor.peek()!==0&&(r===null||!r());){let o=this._cursor.clone();if(this._isTagStart()){this._cursor=o,n.push(this._getProcessedChars(a,o)),this._endToken(n);return}if(i===null)if(this._attemptStr(Ne.end)){n.push(this._getProcessedChars(a,o)),n.push(Ne.end),this._endToken(n);return}else this._attemptStr("//")&&(s=!0);let l=this._cursor.peek();this._cursor.advance(),l===92?this._cursor.advance():l===i?i=null:!s&&i===null&&St(l)&&(i=l)}n.push(this._getProcessedChars(a,this._cursor)),this._endToken(n)}_consumeDirective(e,t){for(this._requireCharCode(64),this._cursor.advance();Xr(this._cursor.peek());)this._cursor.advance();this._beginToken(u.DIRECTIVE_NAME,e);let r=this._cursor.getChars(t);if(this._endToken([r]),this._attemptCharCodeUntilFn(_),this._cursor.peek()===40){for(this._openDirectiveCount++,this._beginToken(u.DIRECTIVE_OPEN),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(_);!Gr(this._cursor.peek())&&this._cursor.peek()!==41;)this._consumeAttribute();if(this._attemptCharCodeUntilFn(_),this._openDirectiveCount--,this._cursor.peek()!==41){if(this._cursor.peek()===62||this._cursor.peek()===47)return;throw this._createError(X(this._cursor.peek()),this._cursor.getSpan(e))}this._beginToken(u.DIRECTIVE_CLOSE),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(_)}}_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)return!0}return!1}_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]===u.EXPANSION_CASE_EXP_START}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===u.EXPANSION_FORM_START}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;let e=this._cursor.clone(),t=this._attemptStr(Ne.start);return this._cursor=e,!t}_handleFullNameStackForTagOpen(e,t){let r=be(e,t);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===r)&&this._fullNameStack.push(r)}_handleFullNameStackForTagClose(e,t){let r=be(e,t);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===r&&this._fullNameStack.pop()}};function _(e){return!je(e)||e===0}function G(e){return je(e)||e===62||e===60||e===47||e===39||e===34||e===61||e===0}function Is(e){return(e<97||122<e)&&(e<65||90<e)&&(e<48||e>57)}function Rs(e){return e===59||e===0||!vs(e)}function Ms(e){return e===59||e===0||!De(e)}function qs(e){return e!==125}function Hs(e,t){return $r(e)===$r(t)}function $r(e){return e>=97&&e<=122?e-97+65:e}function Vs(e){return De(e)||Xe(e)||e===95}function jr(e){return e!==59&&_(e)}function Ke(e){return e===95||e>=65&&e<=90}function Xr(e){return De(e)||Xe(e)||e===95}function Gr(e){return e===47||e===62||e===60||e===0}function Us(e){let t=[],r;for(let n=0;n<e.length;n++){let a=e[n];r&&r.type===u.TEXT&&a.type===u.TEXT||r&&r.type===u.ATTR_VALUE_TEXT&&a.type===u.ATTR_VALUE_TEXT?(r.parts[0]+=a.parts[0],r.sourceSpan.end=a.sourceSpan.end):(r=a,t.push(r))}return t}var Kr=class Ft{constructor(t,r){if(t instanceof Ft){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 Ft(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 a=this.locationFromCursor(t);return new d(a,this.locationFromCursor(this),n!==t?this.locationFromCursor(n):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 kt('Unexpected character "EOF"',this);let r=this.charAt(t.offset);r===10?(t.line++,t.column=0):Ge(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 At(t.file,t.state.offset,t.state.line,t.state.column)}},Ws=class Pt extends Kr{constructor(t,r){t instanceof Pt?(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 Pt(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(Mr(t())){let r="",n=0,a=this.clone();for(;Mr(t())&&n<3;)a=this.clone(),r+=String.fromCodePoint(t()),this.advanceState(this.internalState),n++;this.state.peek=parseInt(r,8),this.internalState=a.internalState}else Ge(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),a=parseInt(n,16);if(isNaN(a))throw t.state=t.internalState,new kt("Invalid hexadecimal escape sequence",t);return a}},kt=class extends Error{constructor(e,t){super(e),this.msg=e,this.cursor=t,Object.setPrototypeOf(this,new.target.prototype)}},T=class pn extends ae{static create(t,r,n){return new pn(t,r,n)}constructor(t,r,n){super(r,n),this.elementName=t}},zs=class{constructor(e,t){this.rootNodes=e,this.errors=t}},$s=class{constructor(e){this.getTagDefinition=e}parse(e,t,r,n=!1,a){let i=h=>(f,...v)=>h(f.toLowerCase(),...v),s=n?this.getTagDefinition:i(this.getTagDefinition),o=h=>s(h).getContentType(),l=n?a:i(a),c=Bs(e,t,a?(h,f,v,P)=>{let q=l(h,f,v,P);return q!==void 0?q:o(h)}:o,r),p=r&&r.canSelfClose||!1,C=r&&r.allowHtmComponentClosingTags||!1,g=new js(c.tokens,s,p,C,n);return g.build(),new zs(g.rootNodes,[...c.errors,...g.errors])}},js=class hn{constructor(t,r,n,a,i){this.tokens=t,this.tagDefinitionResolver=r,this.canSelfClose=n,this.allowHtmComponentClosingTags=a,this.isTagNameCaseSensitive=i,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==u.EOF;)this._peek.type===u.TAG_OPEN_START||this._peek.type===u.INCOMPLETE_TAG_OPEN?this._consumeElementStartTag(this._advance()):this._peek.type===u.TAG_CLOSE?(this._closeVoidElement(),this._consumeElementEndTag(this._advance())):this._peek.type===u.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===u.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===u.TEXT||this._peek.type===u.RAW_TEXT||this._peek.type===u.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===u.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._peek.type===u.BLOCK_OPEN_START?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===u.BLOCK_CLOSE?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===u.INCOMPLETE_BLOCK_OPEN?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===u.LET_START?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===u.DOC_TYPE_START?this._consumeDocType(this._advance()):this._peek.type===u.INCOMPLETE_LET?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._peek.type===u.COMPONENT_OPEN_START||this._peek.type===u.INCOMPLETE_COMPONENT_OPEN?this._consumeComponentStartTag(this._advance()):this._peek.type===u.COMPONENT_CLOSE?this._consumeComponentEndTag(this._advance()):this._advance();for(let t of this._containerStack)t instanceof ie&&this.errors.push(T.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),a=this._advanceIf(u.CDATA_END);this._addToParent(new Ss(n,new d(t.sourceSpan.start,(a||r).sourceSpan.end),[r]))}_consumeComment(t){let r=this._advanceIf(u.RAW_TEXT),n=this._advanceIf(u.COMMENT_END),a=r!=null?r.parts[0].trim():null,i=n==null?t.sourceSpan:new d(t.sourceSpan.start,n.sourceSpan.end,t.sourceSpan.fullStart);this._addToParent(new bs(a,i))}_consumeDocType(t){let r=this._advanceIf(u.RAW_TEXT),n=this._advanceIf(u.DOC_TYPE_END),a=r!=null?r.parts[0].trim():null,i=new d(t.sourceSpan.start,(n||r||t).sourceSpan.end);this._addToParent(new ws(a,i))}_consumeExpansion(t){let r=this._advance(),n=this._advance(),a=[];for(;this._peek.type===u.EXPANSION_CASE_VALUE;){let s=this._parseExpansionCase();if(!s)return;a.push(s)}if(this._peek.type!==u.EXPANSION_FORM_END){this.errors.push(T.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let i=new d(t.sourceSpan.start,this._peek.sourceSpan.end,t.sourceSpan.fullStart);this._addToParent(new As(r.parts[0],n.parts[0],a,i,r.sourceSpan)),this._advance()}_parseExpansionCase(){let t=this._advance();if(this._peek.type!==u.EXPANSION_CASE_EXP_START)return this.errors.push(T.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;let r=this._advance(),n=this._collectExpansionExpTokens(r);if(!n)return null;let a=this._advance();n.push({type:u.EOF,parts:[],sourceSpan:a.sourceSpan});let i=new hn(n,this.tagDefinitionResolver,this.canSelfClose,this.allowHtmComponentClosingTags,this.isTagNameCaseSensitive);if(i.build(),i.errors.length>0)return this.errors=this.errors.concat(i.errors),null;let s=new d(t.sourceSpan.start,a.sourceSpan.end,t.sourceSpan.fullStart),o=new d(r.sourceSpan.start,a.sourceSpan.end,r.sourceSpan.fullStart);return new Ts(t.parts[0],i.rootNodes,s,t.sourceSpan,o)}_collectExpansionExpTokens(t){let r=[],n=[u.EXPANSION_CASE_EXP_START];for(;;){if((this._peek.type===u.EXPANSION_FORM_START||this._peek.type===u.EXPANSION_CASE_EXP_START)&&n.push(this._peek.type),this._peek.type===u.EXPANSION_CASE_EXP_END)if(Yr(n,u.EXPANSION_CASE_EXP_START)){if(n.pop(),n.length===0)return r}else return this.errors.push(T.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===u.EXPANSION_FORM_END)if(Yr(n,u.EXPANSION_FORM_START))n.pop();else return this.errors.push(T.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===u.EOF)return this.errors.push(T.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]==`
`){var n;let a=this._getClosestElementLikeParent();a!=null&&a.children.length==0&&!((n=this._getTagDefinition(a))===null||n===void 0)&&n.ignoreFirstLf&&(r=r.substring(1))}return r}_consumeText(t){let r=[t],n=t.sourceSpan,a=t.parts[0];if(a.length>0&&a[0]===`
`){var i;let s=this._getContainer();s!=null&&s.children.length===0&&!((i=this._getTagDefinition(s))===null||i===void 0)&&i.ignoreFirstLf&&(a=a.substring(1),r[0]={type:t.type,sourceSpan:t.sourceSpan,parts:[a]})}for(;this._peek.type===u.INTERPOLATION||this._peek.type===u.TEXT||this._peek.type===u.ENCODED_ENTITY;)t=this._advance(),r.push(t),t.type===u.INTERPOLATION?a+=t.parts.join("").replace(/&([^;]+);/g,Jr):t.type===u.ENCODED_ENTITY?a+=t.parts[0]:a+=t.parts.join("");if(a.length>0){let s=t.sourceSpan;this._addToParent(new Es(a,new d(n.start,s.end,n.fullStart,n.details),r))}}_closeVoidElement(){var t;let r=this._getContainer();r!==null&&!((t=this._getTagDefinition(r))===null||t===void 0)&&t.isVoid&&this._containerStack.pop()}_consumeElementStartTag(t){var r;let n=[],a=[];this._consumeAttributesAndDirectives(n,a);let i=this._getElementFullName(t,this._getClosestElementLikeParent()),s=this._getTagDefinition(i),o=!1;if(this._peek.type===u.TAG_OPEN_END_VOID){this._advance(),o=!0;let v=this._getTagDefinition(i);this.canSelfClose||v?.canSelfClose||ze(i)!==null||v?.isVoid||this.errors.push(T.create(i,t.sourceSpan,`Only void, custom and foreign elements can be self closed "${t.parts[1]}"`))}else this._peek.type===u.TAG_OPEN_END&&(this._advance(),o=!1);let l=this._peek.sourceSpan.fullStart,c=new d(t.sourceSpan.start,l,t.sourceSpan.fullStart),p=new d(t.sourceSpan.start,l,t.sourceSpan.fullStart),C=new d(t.sourceSpan.start.moveBy(1),t.sourceSpan.end),g=new j(i,n,a,[],o,c,p,void 0,C,s?.isVoid??!1),h=this._getContainer(),f=h!==null&&!!(!((r=this._getTagDefinition(h))===null||r===void 0)&&r.isClosedByChild(g.name));this._pushContainer(g,f),o?this._popContainer(i,j,c):t.type===u.INCOMPLETE_TAG_OPEN&&(this._popContainer(i,j,null),this.errors.push(T.create(i,c,`Opening tag "${i}" not terminated.`)))}_consumeComponentStartTag(t){var r;let n=t.parts[0],a=[],i=[];this._consumeAttributesAndDirectives(a,i);let s=this._getClosestElementLikeParent(),o=this._getComponentTagName(t,s),l=this._getComponentFullName(t,s),c=this._peek.type===u.COMPONENT_OPEN_END_VOID;this._advance();let p=this._peek.sourceSpan.fullStart,C=new d(t.sourceSpan.start,p,t.sourceSpan.fullStart),g=new d(t.sourceSpan.start,p,t.sourceSpan.fullStart),h=new H(n,o,l,a,i,[],c,C,g,void 0),f=this._getContainer(),v=f!==null&&h.tagName!==null&&!!(!((r=this._getTagDefinition(f))===null||r===void 0)&&r.isClosedByChild(h.tagName));this._pushContainer(h,v),c?this._popContainer(l,H,C):t.type===u.INCOMPLETE_COMPONENT_OPEN&&(this._popContainer(l,H,null),this.errors.push(T.create(l,C,`Opening tag "${l}" not terminated.`)))}_consumeAttributesAndDirectives(t,r){for(;this._peek.type===u.ATTR_NAME||this._peek.type===u.DIRECTIVE_NAME;)this._peek.type===u.DIRECTIVE_NAME?r.push(this._consumeDirective(this._peek)):t.push(this._consumeAttr(this._advance()))}_consumeComponentEndTag(t){let r=this._getComponentFullName(t,this._getClosestElementLikeParent());if(!this._popContainer(r,H,t.sourceSpan)){let n=this._containerStack[this._containerStack.length-1],a;n instanceof H&&n.componentName===t.parts[0]?a=`, did you mean "${n.fullName}"?`:a=". It may happen when the tag has already been closed by another tag.";let i=`Unexpected closing tag "${r}"${a}`;this.errors.push(T.create(r,t.sourceSpan,i))}}_getTagDefinition(t){return typeof t=="string"?this.tagDefinitionResolver(t):t instanceof j?this.tagDefinitionResolver(t.name):t instanceof H&&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===void 0)&&r.isVoid)this.errors.push(T.create(n,t.sourceSpan,`Void elements do not have end tags "${t.parts[1]}"`));else if(!this._popContainer(n,j,t.sourceSpan)){let a=`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(T.create(n,t.sourceSpan,a))}}_popContainer(t,r,n){let a=!1;for(let s=this._containerStack.length-1;s>=0;s--){var i;let o=this._containerStack[s],l=o instanceof H?o.fullName:o.name;if(ze(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(s,this._containerStack.length-s),!a;(o instanceof ie||!(!((i=this._getTagDefinition(o))===null||i===void 0)&&i.closedByParent))&&(a=!0)}return!1}_consumeAttr(t){let r=be(t.parts[0],t.parts[1]),n=t.sourceSpan.end,a;this._peek.type===u.ATTR_QUOTE&&(a=this._advance());let i="",s=[],o,l;if(this._peek.type===u.ATTR_VALUE_TEXT)for(o=this._peek.sourceSpan,l=this._peek.sourceSpan.end;this._peek.type===u.ATTR_VALUE_TEXT||this._peek.type===u.ATTR_VALUE_INTERPOLATION||this._peek.type===u.ENCODED_ENTITY;){let p=this._advance();s.push(p),p.type===u.ATTR_VALUE_INTERPOLATION?i+=p.parts.join("").replace(/&([^;]+);/g,Jr):p.type===u.ENCODED_ENTITY?i+=p.parts[0]:i+=p.parts.join(""),l=n=p.sourceSpan.end}this._peek.type===u.ATTR_QUOTE&&(l=n=this._advance().sourceSpan.end);let c=o&&l&&new d(a?.sourceSpan.start??o.start,l,a?.sourceSpan.fullStart??o.fullStart);return new ks(r,i,new d(t.sourceSpan.start,n,t.sourceSpan.fullStart),t.sourceSpan,c,s.length>0?s:void 0,void 0)}_consumeDirective(t){let r=[],n=t.sourceSpan.end,a=null;if(this._advance(),this._peek.type===u.DIRECTIVE_OPEN){for(n=this._peek.sourceSpan.end,this._advance();this._peek.type===u.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));this._peek.type===u.DIRECTIVE_CLOSE?(a=this._peek.sourceSpan,this._advance()):this.errors.push(T.create(null,t.sourceSpan,"Unterminated directive definition"))}let i=new d(t.sourceSpan.start,n,t.sourceSpan.fullStart),s=new d(i.start,a===null?t.sourceSpan.end:a.end,i.fullStart);return new ys(t.parts[0],r,s,i,a)}_consumeBlockOpen(t){let r=[];for(;this._peek.type===u.BLOCK_PARAMETER;){let o=this._advance();r.push(new Vr(o.parts[0],o.sourceSpan))}this._peek.type===u.BLOCK_OPEN_END&&this._advance();let n=this._peek.sourceSpan.fullStart,a=new d(t.sourceSpan.start,n,t.sourceSpan.fullStart),i=new d(t.sourceSpan.start,n,t.sourceSpan.fullStart),s=new ie(t.parts[0],r,[],a,t.sourceSpan,i);this._pushContainer(s,!1)}_consumeBlockClose(t){this._popContainer(null,ie,t.sourceSpan)||this.errors.push(T.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 "&#125;" HTML entity instead.'))}_consumeIncompleteBlock(t){let r=[];for(;this._peek.type===u.BLOCK_PARAMETER;){let o=this._advance();r.push(new Vr(o.parts[0],o.sourceSpan))}let n=this._peek.sourceSpan.fullStart,a=new d(t.sourceSpan.start,n,t.sourceSpan.fullStart),i=new d(t.sourceSpan.start,n,t.sourceSpan.fullStart),s=new ie(t.parts[0],r,[],a,t.sourceSpan,i);this._pushContainer(s,!1),this._popContainer(null,ie,null),this.errors.push(T.create(t.parts[0],a,`Incomplete block "${t.parts[0]}". If you meant to write the @ character, you should use the "&#64;" HTML entity instead.`))}_consumeLet(t){let r=t.parts[0],n,a;if(this._peek.type!==u.LET_VALUE){this.errors.push(T.create(t.parts[0],t.sourceSpan,`Invalid @let declaration "${r}". Declaration must have a value.`));return}else n=this._advance();if(this._peek.type!==u.LET_END){this.errors.push(T.create(t.parts[0],t.sourceSpan,`Unterminated @let declaration "${r}". Declaration must be terminated with a semicolon.`));return}else a=this._advance();let i=a.sourceSpan.fullStart,s=new d(t.sourceSpan.start,i,t.sourceSpan.fullStart),o=t.sourceSpan.toString().lastIndexOf(r),l=new d(t.sourceSpan.start.moveBy(o),t.sourceSpan.end),c=new Ur(r,n.parts[0],s,l,n.sourceSpan);this._addToParent(c)}_consumeIncompleteLet(t){let r=t.parts[0]??"",n=r?` "${r}"`:"";if(r.length>0){let a=t.sourceSpan.toString().lastIndexOf(r),i=new d(t.sourceSpan.start.moveBy(a),t.sourceSpan.end),s=new d(t.sourceSpan.start,t.sourceSpan.start.moveBy(0)),o=new Ur(r,"",t.sourceSpan,i,s);this._addToParent(o)}this.errors.push(T.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 j||r instanceof H)return r}return null}_addToParent(t){let r=this._getContainer();r===null?this.rootNodes.push(t):r.children.push(t)}_getElementFullName(t,r){return be(this._getPrefix(t,r),t.parts[1])}_getComponentFullName(t,r){let n=t.parts[0],a=this._getComponentTagName(t,r);return a===null?n:a.startsWith(":")?n+a:`${n}:${a}`}_getComponentTagName(t,r){let n=this._getPrefix(t,r),a=t.parts[2];return!n&&!a?null:!n&&a?a:be(n,a||"ng-component")}_getPrefix(t,r){var n;let a,i;if(t.type===u.COMPONENT_OPEN_START||t.type===u.INCOMPLETE_COMPONENT_OPEN||t.type===u.COMPONENT_CLOSE?(a=t.parts[1],i=t.parts[2]):(a=t.parts[0],i=t.parts[1]),a=a||((n=this._getTagDefinition(i))===null||n===void 0?void 0:n.implicitNamespacePrefix)||"",!a&&r){let s=r instanceof j?r.name:r.tagName;if(s!==null){let o=We(s)[1],l=this._getTagDefinition(o);l!==null&&!l.preventNamespaceInheritance&&(a=ze(s))}}return a}};function Yr(e,t){return e.length>0&&e[e.length-1]===t}function Jr(e,t){return xe[t]!==void 0?xe[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 Xs=class extends $s{constructor(){super(Et)}parse(e,t,r,n=!1,a){return super.parse(e,t,r,n,a)}},bt=null,Gs=()=>(bt||(bt=new Xs),bt);function wt(e,t={}){let{canSelfClose:r=!1,allowHtmComponentClosingTags:n=!1,isTagNameCaseSensitive:a=!1,getTagContentType:i,tokenizeAngularBlocks:s=!1,tokenizeAngularLetDeclaration:o=!1,enableAngularSelectorlessSyntax:l=!1}=t;return Gs().parse(e,"angular-html-parser",{tokenizeExpansionForms:s,canSelfClose:r,allowHtmComponentClosingTags:n,tokenizeBlocks:s,tokenizeLet:o,selectorlessEnabled:l},a,i)}var Ks=[Js,Qs,eo,ro,no,so,ao,io,oo,to];function Ys(e,t){for(let r of Ks)r(e,t);return e}function Js(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]===`
`){let r=t.children[0];r.value.length===1?t.removeChild(r):r.value=r.value.slice(1)}})}function Qs(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 a=r.children[n];if(!t(a))continue;let i=a.prev,s=a.firstChild;r.removeChild(i),n--;let o=new d(i.sourceSpan.start,s.sourceSpan.end),l=new d(o.start,a.sourceSpan.end);a.condition=i.condition,a.sourceSpan=l,a.startSourceSpan=o,a.removeChild(s)}})}function Zs(e,t,r){e.walk(n=>{if(n.children)for(let a=0;a<n.children.length;a++){let i=n.children[a];if(i.kind!=="text"&&!t(i))continue;i.kind!=="text"&&(i.kind="text",i.value=r(i));let s=i.prev;!s||s.kind!=="text"||(s.value+=i.value,s.sourceSpan=new d(s.sourceSpan.start,i.sourceSpan.end),n.removeChild(i),a--)}})}function eo(e){return Zs(e,t=>t.kind==="cdata",t=>`<![CDATA[${t.value}]]>`)}function to(e){let t=r=>r.kind==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.kind==="text"&&!D.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 a=r.children[n];if(!t(a))continue;let i=a.prev,s=a.next;i.value+=`<${a.rawName}>`+a.firstChild.value+`</${a.rawName}>`+s.value,i.sourceSpan=new d(i.sourceSpan.start,s.sourceSpan.end),i.isTrailingSpaceSensitive=s.isTrailingSpaceSensitive,i.hasTrailingSpaces=s.hasTrailingSpaces,r.removeChild(a),n--,r.removeChild(s)}})}function ro(e,t){if(t.parser==="html")return;let r=/\{\{(.+?)\}\}/su;e.walk(n=>{if(Ta(n,t))for(let a of n.children){if(a.kind!=="text")continue;let i=a.sourceSpan.start,s=null,o=a.value.split(r);for(let l=0;l<o.length;l++,i=s){let c=o[l];if(l%2===0){s=i.moveBy(c.length),c.length>0&&n.insertChildBefore(a,{kind:"text",value:c,sourceSpan:new d(i,s)});continue}s=i.moveBy(c.length+4),n.insertChildBefore(a,{kind:"interpolation",sourceSpan:new d(i,s),children:c.length===0?[]:[{kind:"text",value:c,sourceSpan:new d(i.moveBy(2),s.moveBy(-2))}]})}n.removeChild(a)}})}function no(e,t){e.walk(r=>{let n=r.$children;if(!n)return;if(n.length===0||n.length===1&&n[0].kind==="text"&&D.trim(n[0].value).length===0){r.hasDanglingSpaces=n.length>0,r.$children=[];return}let a=ka(r,t),i=ur(r);if(!a)for(let s=0;s<n.length;s++){let o=n[s];if(o.kind!=="text")continue;let{leadingWhitespace:l,text:c,trailingWhitespace:p}=Sa(o.value),C=o.prev,g=o.next;c?(o.value=c,o.sourceSpan=new d(o.sourceSpan.start.moveBy(l.length),o.sourceSpan.end.moveBy(-p.length)),l&&(C&&(C.hasTrailingSpaces=!0),o.hasLeadingSpaces=!0),p&&(o.hasTrailingSpaces=!0,g&&(g.hasLeadingSpaces=!0))):(r.removeChild(o),s--,(l||p)&&(C&&(C.hasTrailingSpaces=!0),g&&(g.hasLeadingSpaces=!0)))}r.isWhitespaceSensitive=a,r.isIndentationSensitive=i})}function ao(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 io(e,t){e.walk(r=>{r.kind==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(t.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))})}function so(e,t){e.walk(r=>{r.cssDisplay=Ha(r,t)})}function oo(e,t){e.walk(r=>{let{children:n}=r;if(n){if(n.length===0){r.isDanglingSpaceSensitive=ya(r,t);return}for(let a of n)a.isLeadingSpaceSensitive=ba(a,t),a.isTrailingSpaceSensitive=wa(a,t);for(let a=0;a<n.length;a++){let i=n[a];i.isLeadingSpaceSensitive=(a===0||i.prev.isTrailingSpaceSensitive)&&i.isLeadingSpaceSensitive,i.isTrailingSpaceSensitive=(a===n.length-1||i.next.isLeadingSpaceSensitive)&&i.isTrailingSpaceSensitive}}})}var uo=Ys;function lo(e,t,r){let{node:n}=e;switch(n.kind){case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(n),[A(vt(e,t,r)),E];case"element":case"ieConditionalComment":return os(e,t,r);case"angularControlFlowBlock":return es(e,t,r);case"angularControlFlowBlockParameters":return as(e,t,r);case"angularControlFlowBlockParameter":return D.trim(n.expression);case"angularLetDeclaration":return A(["@let ",A([n.id," =",A(F([S,r("init")]))]),";"]);case"angularLetDeclarationInitializer":return n.value;case"angularIcuExpression":return is(e,t,r);case"angularIcuCase":return ss(e,t,r);case"ieConditionalStartComment":case"ieConditionalEndComment":return[Se(n),_e(n)];case"interpolation":return[Se(n,t),...e.map(r,"children"),_e(n,t)];case"text":{if(n.parent.kind==="interpolation"){let o=/\n[^\S\n]*$/u,l=o.test(n.value),c=l?n.value.replace(o,""):n.value;return[O(c),l?E:""]}let a=z(n,t),i=Cr(n),s=U(n,t);return i[0]=[a,i[0]],i.push([i.pop(),s]),Yt(i)}case"docType":return[A([Se(n,t)," ",b(0,n.value.replace(/^html\b/iu,"html"),/\s+/gu," ")]),_e(n,t)];case"comment":return[z(n,t),O(t.originalText.slice(fe(n),qe(n))),U(n,t)];case"attribute":{if(n.value===null)return n.rawName;let a=_r(n.value),i=Er(n,t)?"":Hn(a,'"');return[n.rawName,"=",i,O(i==='"'?b(0,a,'"',"&quot;"):b(0,a,"'","&apos;")),i]}default:throw new Xn(n,"HTML")}}var co={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},preprocess:uo,print:lo,insertPragma:Qi,massageAstNode:Yn,embed:qi,getVisitorKeys:ji},po=co,ho=[{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:["xhtml"],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:"source.vue",codemirrorMode:"vue",codemirrorMimeType:"text/x-vue",parsers:["vue"],vscodeLanguageIds:["vue"],linguistLanguageId:391}],Qr={bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},Zr="HTML",mo={bracketSameLine:Qr.bracketSameLine,htmlWhitespaceSensitivity:{category:Zr,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:Qr.singleAttributePerLine,vueIndentScriptAndStyle:{category:Zr,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},go=mo,en={};Rt(en,{angular:()=>Wo,html:()=>Ho,lwc:()=>$o,mjml:()=>Uo,vue:()=>zo});function fo(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var _o=fo,Co={canSelfClose:!0,normalizeTagName:!1,normalizeAttributeName:!1,allowHtmComponentClosingTags:!1,isTagNameCaseSensitive:!1,shouldParseFrontMatter:!0};function tn(e){return{...Co,...e}}function rn(e){let{canSelfClose:t,allowHtmComponentClosingTags:r,isTagNameCaseSensitive:n,shouldParseAsRawText:a,tokenizeAngularBlocks:i,tokenizeAngularLetDeclaration:s}=e;return{canSelfClose:t,allowHtmComponentClosingTags:r,isTagNameCaseSensitive:n,getTagContentType:a?(...o)=>a(...o)?M.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:i,tokenizeAngularLetDeclaration:s}}var yt=new Map([["*",new Set(["accesskey","autocapitalize","autocorrect","autofocus","class","contenteditable","dir","draggable","enterkeyhint","exportparts","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","part","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions"])],["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","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","link","text","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","char","charoff","span","valign","width"])],["colgroup",new Set(["align","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","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","noshade","size","width"])],["html",new Set(["manifest","version"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","crossorigin","decoding","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","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","usemap","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["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"])],["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","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["template",new Set(["shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootmode","shadowrootserializable"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","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","loop","muted","playsinline","poster","preload","src","width"])]]),vo=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","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"]),Ye={attrs:!0,children:!0,cases:!0,expression:!0},nn=new Set(["parent"]),se,Dt,xt,Eo=class Oe{constructor(t={}){Cn(this,se),Mt(this,"kind"),Mt(this,"parent");for(let r of new Set([...nn,...Object.keys(t)]))this.setProperty(r,t[r]);if(Pe(t))for(let r of Object.getOwnPropertySymbols(t))this.setProperty(r,t[r])}setProperty(t,r){if(this[t]!==r){if(t in Ye&&(r=r.map(n=>this.createChild(n))),!nn.has(t)){this[t]=r;return}Object.defineProperty(this,t,{value:r,enumerable:!1,configurable:!0})}}map(t){let r;for(let n in Ye){let a=this[n];if(a){let i=Ao(a,s=>s.map(t));r!==a&&(r||(r=new Oe({parent:this.parent})),r.setProperty(n,i))}}if(r)for(let n in this)n in Ye||(r[n]=this[n]);return t(r||this)}walk(t){for(let r in Ye){let n=this[r];if(n)for(let a=0;a<n.length;a++)n[a].walk(t)}t(this)}createChild(t){let r=t instanceof Oe?t.clone():new Oe(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 Oe(this)}get $children(){return this[Fe(this,se,Dt)]}set $children(t){this[Fe(this,se,Dt)]=t}get firstChild(){return this.$children?.[0]}get lastChild(){return Y(1,this.$children,-1)}get prev(){let t=Fe(this,se,xt);return t[t.indexOf(this)-1]}get next(){let t=Fe(this,se,xt);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]))}};se=new WeakSet,Dt=function(){return this.kind==="angularIcuCase"?"expression":this.kind==="angularIcuExpression"?"cases":"children"},xt=function(){return this.parent?.$children??[]};var So=Eo;function Ao(e,t){let r=e.map(t);return r.some((n,a)=>n!==e[a])?r:e}var To=[{regex:/^(?<openingTagSuffix>\[if(?<condition>[^\]]*)\]>)(?<data>.*?)<!\s*\[endif\]$/su,parse:bo},{regex:/^\[if(?<condition>[^\]]*)\]><!$/u,parse:wo},{regex:/^<!\s*\[endif\]$/u,parse:yo}];function ko(e,t){if(e.value)for(let{regex:r,parse:n}of To){let a=e.value.match(r);if(a)return n(e,a,t)}return null}function bo(e,t,r){let{openingTagSuffix:n,condition:a,data:i}=t.groups,s=4+n.length,o=e.sourceSpan.start.moveBy(s),l=o.moveBy(i.length),[c,p]=(()=>{try{return[!0,r(i,o).children]}catch{return[!1,[{kind:"text",value:i,sourceSpan:new d(o,l)}]]}})();return{kind:"ieConditionalComment",complete:c,children:p,condition:b(0,a.trim(),/\s+/gu," "),sourceSpan:e.sourceSpan,startSourceSpan:new d(e.sourceSpan.start,o),endSourceSpan:new d(l,e.sourceSpan.end)}}function wo(e,t){let{condition:r}=t.groups;return{kind:"ieConditionalStartComment",condition:b(0,r.trim(),/\s+/gu," "),sourceSpan:e.sourceSpan}}function yo(e){return{kind:"ieConditionalEndComment",sourceSpan:e.sourceSpan}}var Do=class extends Ds{visitExpansionCase(e,t){t.parseOptions.name==="angular"&&this.visitChildren(t,r=>{r(e.expression)})}visit(e,{parseOptions:t}){Oo(e),Fo(e,t),Io(e,t),Po(e)}};function xo(e,t,r,n){Wr(new Do,e.children,{parseOptions:r}),t&&e.children.unshift(t);let a=new So(e);return a.walk(i=>{if(i.kind==="comment"){let s=ko(i,n);s&&i.parent.replaceChild(i,s)}No(i),Bo(i),Lo(i)}),a}function No(e){if(e.kind==="block"){if(e.name=b(0,e.name.toLowerCase(),/\s+/gu," ").trim(),e.kind="angularControlFlowBlock",!ot(e.parameters)){delete e.parameters;return}for(let t of e.parameters)t.kind="angularControlFlowBlockParameter";e.parameters={kind:"angularControlFlowBlockParameters",children:e.parameters,sourceSpan:new d(e.parameters[0].sourceSpan.start,Y(0,e.parameters,-1).sourceSpan.end)}}}function Bo(e){e.kind==="letDeclaration"&&(e.kind="angularLetDeclaration",e.id=e.name,e.init={kind:"angularLetDeclarationInitializer",sourceSpan:new d(e.valueSpan.start,e.valueSpan.end),value:e.value},delete e.name,delete e.value)}function Lo(e){e.kind==="expansion"&&(e.kind="angularIcuExpression"),e.kind==="expansionCase"&&(e.kind="angularIcuCase")}function an(e,t){let r=e.toLowerCase();return t(r)?r:e}function sn(e){let t=e.name.startsWith(":")?e.name.slice(1).split(":")[0]:null,r=e.nameSpan.toString(),n=t!==null&&r.startsWith(`${t}:`),a=n?r.slice(t.length+1):r;e.name=a,e.namespace=t,e.hasExplicitNamespace=n}function Oo(e){switch(e.kind){case"element":sn(e);for(let t of e.attrs)sn(t),t.valueSpan?(t.value=t.valueSpan.toString(),/["']/u.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 Fo(e,t){if(e.kind==="element"){let r=Et(t.isTagNameCaseSensitive?e.name:e.name.toLowerCase());!e.namespace||e.namespace===r.implicitNamespacePrefix||me(e)?e.tagDefinition=r:e.tagDefinition=Et("")}}function Po(e){e.sourceSpan&&e.endSourceSpan&&(e.sourceSpan=new d(e.sourceSpan.start,e.endSourceSpan.end))}function Io(e,t){if(e.kind==="element"&&(t.normalizeTagName&&(!e.namespace||e.namespace===e.tagDefinition.implicitNamespacePrefix||me(e))&&(e.name=an(e.name,r=>vo.has(r))),t.normalizeAttributeName))for(let r of e.attrs)r.namespace||(r.name=an(r.name,n=>yt.has(e.name)&&(yt.get("*").has(n)||yt.get(e.name).has(n))))}function on(e,t){let{rootNodes:r,errors:n}=wt(e,rn(t));return n.length>0&&Nt(n[0]),{parseOptions:t,rootNodes:r}}function Ro(e,t){let r=rn(t),{rootNodes:n,errors:a}=wt(e,r);if(n.some(l=>l.kind==="docType"&&l.value==="html"||l.kind==="element"&&l.name.toLowerCase()==="html"))return on(e,Bt);let i,s=()=>i??(i=wt(e,{...r,getTagContentType:void 0})),o=l=>{let{offset:c}=l.startSourceSpan.start;return s().rootNodes.find(p=>p.kind==="element"&&p.startSourceSpan.start.offset===c)??l};for(let[l,c]of n.entries())if(c.kind==="element"){if(c.isVoid)a=s().errors,n[l]=o(c);else if(Mo(c)){let{endSourceSpan:p,startSourceSpan:C}=c,g=s().errors.find(h=>h.span.start.offset>C.start.offset&&h.span.start.offset<p.end.offset);g&&Nt(g),n[l]=o(c)}}return a.length>0&&Nt(a[0]),{parseOptions:t,rootNodes:n}}function Mo(e){if(e.kind!=="element"||e.name!=="template")return!1;let t=e.attrs.find(r=>r.name==="lang")?.value;return!t||t==="html"}function Nt(e){let{msg:t,span:{start:r,end:n}}=e;throw _o(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,a,i){let{offset:s}=n,o=b(0,t.slice(0,s),/[^\n]/gu," ")+r,l=un(o,e,{...a,shouldParseFrontMatter:!1},i);l.sourceSpan=new d(n,Y(0,l.children,-1).sourceSpan.end);let c=l.children[0];return c.length===s?l.children.shift():(c.sourceSpan=new d(c.sourceSpan.start.moveBy(s),c.sourceSpan.end),c.value=c.value.slice(s)),l}function un(e,t,r,n={}){let{frontMatter:a,content:i}=r.shouldParseFrontMatter?fa(e):{content:e},s=new qr(e,n.filepath),o=new At(s,0,0,0),l=o.moveBy(e.length),{parseOptions:c,rootNodes:p}=t(i,r),C={kind:"root",sourceSpan:new d(o,l),children:p},g;if(a){let[h,f]=[a.start,a.end].map(v=>new At(s,v.index,v.line-1,v.column));g={...a,kind:"frontMatter",sourceSpan:new d(h,f)}}return xo(C,g,c,(h,f)=>qo(t,e,h,f,c,n))}var Bt=tn({name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0});function Be(e){let t=tn(e),r=t.name==="vue"?Ro:on;return{parse:(n,a)=>un(n,r,t,a),hasPragma:Yi,hasIgnorePragma:Ji,astFormat:"html",locStart:fe,locEnd:qe}}var Ho=Be(Bt),Vo=new Set(["mj-style","mj-raw"]),Uo=Be({...Bt,name:"mjml",shouldParseAsRawText:e=>Vo.has(e)}),Wo=Be({name:"angular",tokenizeAngularBlocks:!0,tokenizeAngularLetDeclaration:!0}),zo=Be({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(e,t,r,n){return e.toLowerCase()!=="html"&&!r&&(e!=="template"||n.some(({name:a,value:i})=>a==="lang"&&i!=="html"&&i!==""&&i!==void 0))}}),$o=Be({name:"lwc",canSelfClose:!1}),jo={html:po};return fn(qt)})})(Ot)),Ot.exports}var dn=Ko();const Yo=Xo(dn),Qo=Go({__proto__:null,default:Yo},[dn]);export{Qo as h};
