prettier
Version:
Prettier is an opinionated code formatter
16 lines (15 loc) • 171 kB
JavaScript
(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.html=e()}})(function(){"use strict";var lt=Object.defineProperty;var Ji=Object.getOwnPropertyDescriptor;var Zi=Object.getOwnPropertyNames;var es=Object.prototype.hasOwnProperty;var Pr=e=>{throw TypeError(e)};var ts=(e,t,r)=>t in e?lt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Or=(e,t)=>{for(var r in t)lt(e,r,{get:t[r],enumerable:!0})},rs=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Zi(t))!es.call(e,i)&&i!==r&<(e,i,{get:()=>t[i],enumerable:!(n=Ji(t,i))||n.enumerable});return e};var ns=e=>rs(lt({},"__esModule",{value:!0}),e);var Wt=(e,t,r)=>ts(e,typeof t!="symbol"?t+"":t,r),is=(e,t,r)=>t.has(e)||Pr("Cannot "+r);var Fe=(e,t,r)=>(is(e,t,"read from private field"),r?r.call(e):t.get(e)),Dr=(e,t,r)=>t.has(e)?Pr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r);var Wo={};Or(Wo,{languages:()=>Vi,options:()=>Wi,parsers:()=>Lr,printers:()=>Uo});var ve=(e,t)=>(r,n,...i)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,i);var ss=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},as=ve("replaceAll",function(){if(typeof this=="string")return ss}),w=as;function os(e){return this[e<0?this.length+e:e]}var ls=ve("at",function(){if(Array.isArray(this)||typeof this=="string")return os}),M=ls;var cs=()=>{},He=cs;var Ve="string",Ue="array",ct="cursor",Te="indent",be="align",ut="trim",we="group",ke="fill",xe="if-break",ye="indent-if-break",pt="line-suffix",ht="line-suffix-boundary",$="line",mt="label",Ae="break-parent",ft=new Set([ct,Te,be,ut,we,ke,xe,ye,pt,ht,$,mt,Ae]);function us(e){if(typeof e=="string")return Ve;if(Array.isArray(e))return Ue;if(!e)return;let{type:t}=e;if(ft.has(t))return t}var dt=us;var ps=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function hs(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(dt(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=ps([...ft].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'.
Expected it to be ${n}.`}var Gt=class extends Error{name="InvalidDocError";constructor(t){super(hs(t)),this.doc=t}},Ir=Gt;function zt(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(s){if(r.has(s))return r.get(s);let a=i(s);return r.set(s,a),a}function i(s){switch(dt(s)){case Ue:return t(s.map(n));case ke:return t({...s,parts:s.parts.map(n)});case xe:return t({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case we:{let{expandedStates:a,contents:o}=s;return a?(a=a.map(n),o=a[0]):o=n(o),t({...s,contents:o,expandedStates:a})}case be:case Te:case ye:case mt:case pt:return t({...s,contents:n(s.contents)});case Ve:case ct:case ut:case ht:case $:case Ae:return t(s);default:throw new Ir(s)}}}function L(e,t=Rr){return zt(e,r=>typeof r=="string"?B(t,r.split(`
`)):r)}var D=He,gt=He,Mr=He,Br=He;function A(e){return D(e),{type:Te,contents:e}}function ms(e,t){return Br(e),D(t),{type:be,contents:t,n:e}}function qr(e){return ms(Number.NEGATIVE_INFINITY,e)}var Y={type:Ae};function _t(e){return Mr(e),{type:ke,parts:e}}function E(e,t={}){return D(e),gt(t.expandedStates,!0),{type:we,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function j(e,t="",r={}){return D(e),t!==""&&D(t),{type:xe,breakContents:e,flatContents:t,groupId:r.groupId}}function Fr(e,t){return D(e),{type:ye,contents:e,groupId:t.groupId,negate:t.negate}}function B(e,t){D(e),gt(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:$},k={type:$,soft:!0},fs={type:$,hard:!0},C=[fs,Y],ds={type:$,hard:!0,literal:!0},Rr=[ds,Y];var Hr=Object.freeze({character:"'",codePoint:39}),Vr=Object.freeze({character:'"',codePoint:34}),gs=Object.freeze({preferred:Hr,alternate:Vr}),_s=Object.freeze({preferred:Vr,alternate:Hr});function Ss(e,t){let{preferred:r,alternate:n}=t===!0||t==="'"?gs:_s,{length:i}=e,s=0,a=0;for(let o=0;o<i;o++){let c=e.charCodeAt(o);c===r.codePoint?s++:c===n.codePoint&&a++}return(s>a?n:r).character}var Ur=Ss;function $t(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Yt=class{#e;constructor(t){this.#e=new Set(t)}getLeadingWhitespaceCount(t){let r=this.#e,n=0;for(let i=0;i<t.length&&r.has(t.charAt(i));i++)n++;return n}getTrailingWhitespaceCount(t){let r=this.#e,n=0;for(let i=t.length-1;i>=0&&r.has(t.charAt(i));i--)n++;return n}getLeadingWhitespace(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(0,r)}getTrailingWhitespace(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(t.length-r)}hasLeadingWhitespace(t){return this.#e.has(t.charAt(0))}hasTrailingWhitespace(t){return this.#e.has(M(0,t,-1))}trimStart(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(r)}trimEnd(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-r)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,r=!1){let n=`[${$t([...this.#e].join(""))}]+`,i=new RegExp(r?`(${n})`:n,"u");return t.split(i)}hasWhitespaceCharacter(t){let r=this.#e;return Array.prototype.some.call(t,n=>r.has(n))}hasNonWhitespaceCharacter(t){let r=this.#e;return Array.prototype.some.call(t,n=>!r.has(n))}isWhitespaceOnly(t){let r=this.#e;return Array.prototype.every.call(t,n=>r.has(n))}#t(t){let r=Number.POSITIVE_INFINITY;for(let n of t.split(`
`)){if(n.length===0)continue;let i=this.getLeadingWhitespaceCount(n);if(i===0)return 0;n.length!==i&&i<r&&(r=i)}return r===Number.POSITIVE_INFINITY?0:r}dedentString(t){let r=this.#t(t);return r===0?t:t.split(`
`).map(n=>n.slice(r)).join(`
`)}},Wr=Yt;var Es=[" ",`
`,"\f","\r"," "],Cs=new Wr(Es),N=Cs;var jt=class extends Error{name="UnexpectedNodeError";constructor(t,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`),this.node=t}},Gr=jt;var vs=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),Ts=new Set(["if","else if","for","switch","case"]);function zr(e,t,r){if(e.kind==="text"||e.kind==="comment")return null;if(e.kind==="yaml"&&delete t.value,e.kind==="attribute"){let{fullName:n,value:i}=e;n==="style"||n==="class"||n==="srcset"&&(r.fullName==="img"||r.fullName==="source")||n==="allow"&&r.fullName==="iframe"||n.startsWith("on")||n.startsWith("@")||n.startsWith(":")||n.startsWith(".")||n.startsWith("#")||n.startsWith("v-")||n==="vars"&&r.fullName==="style"||(n==="setup"||n==="generic")&&r.fullName==="script"||n==="slot-scope"||n.startsWith("(")||n.startsWith("[")||n.startsWith("*")||n.startsWith("bind")||n.startsWith("i18n")||n.startsWith("on-")||n.startsWith("ng-")||i?.includes("{{")?delete t.value:i&&(t.value=w(0,i,/'|"|'/gu,'"'))}if(e.kind==="docType"&&(t.value=w(0,e.value.toLowerCase(),/\s+/gu," ")),e.kind==="angularControlFlowBlock"&&e.parameters?.children)for(let n of t.parameters.children)Ts.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)}zr.ignoredProperties=vs;var $r=zr;function X(e,t=!0){return[A([k,e]),t?k:""]}function V(e,t){let r=e.type==="NGRoot"?e.node.type==="NGMicrosyntax"&&e.node.body.length===1&&e.node.body[0].type==="NGMicrosyntaxExpression"?e.node.body[0].expression:e.node:e.type==="JsExpressionRoot"?e.node:e;return r&&(r.type==="ObjectExpression"||r.type==="ArrayExpression"||(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression"||t.parser==="__ng_binding"||t.parser==="__ng_directive")&&(r.type==="TemplateLiteral"||r.type==="StringLiteral"))}async function x(e,t,r,n){r={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...r};let i=!0;n&&(r.__onHtmlBindingRoot=(a,o)=>{i=n(a,o)});let s=await t(e,r,t);return i?E(s):X(s)}function bs(e,t,r,n){let{node:i}=r,s=n.originalText.slice(i.sourceSpan.start.offset,i.sourceSpan.end.offset);return/^\s*$/u.test(s)?"":x(s,e,{parser:"__ng_directive",__isInHtmlAttribute:!1},V)}var Yr=bs;var ws=Array.prototype.toReversed??function(){return[...this].reverse()},ks=ve("toReversed",function(){if(Array.isArray(this))return ws}),jr=ks;function xs(){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 ys=xs();function Xr(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function As(e){return e=Xr(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function Ns(e){e=Xr(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 Xt(e){return ys?Ns(e):As(e)}var Kr=e=>String(e).split(/[/\\]/u).pop(),Qr=e=>String(e).startsWith("file:");function Ls(e){return Array.isArray(e)&&e.length>0}var Ne=Ls;function Jr(e,t){if(!t)return;let r=Kr(t).toLowerCase();return e.find(({filenames:n})=>n?.some(i=>i.toLowerCase()===r))??e.find(({extensions:n})=>n?.some(i=>r.endsWith(i)))}function Ps(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r?.includes(t))??e.find(({extensions:r})=>r?.includes(`.${t}`))}var Os=void 0;function Zr(e,t){if(t){if(Qr(t))try{t=Xt(t)}catch{return}if(typeof t=="string")return e.find(({isSupported:r})=>r?.({filepath:t}))}}function Ds(e,t){let r=jr(0,e.plugins).flatMap(i=>i.languages??[]);return(Ps(r,t.language)??Jr(r,t.physicalFile)??Jr(r,t.file)??Zr(r,t.physicalFile)??Zr(r,t.file)??Os?.(r,t.physicalFile))?.parsers[0]}var St=Ds;var Et=Symbol.for("PRETTIER_IS_FRONT_MATTER");function Is(e){return!!e?.[Et]}var ie=Is;var We=3;function Rs(e){let t=e.slice(0,We);if(t!=="---"&&t!=="+++")return;let r=e.indexOf(`
`,We);if(r===-1)return;let n=e.slice(We,r).trim(),i=e.indexOf(`
${t}`,r),s=n;if(s||(s=t==="+++"?"toml":"yaml"),i===-1&&t==="---"&&s==="yaml"&&(i=e.indexOf(`
...`,r)),i===-1)return;let a=i+1+We,o=e.charAt(a+1);if(!/\s?/u.test(o))return;let c=e.slice(0,a),u;return{language:s,explicitLanguage:n||null,value:e.slice(r+1,i),startDelimiter:t,endDelimiter:c.slice(-We),raw:c,start:{line:1,column:0,index:0},end:{index:c.length,get line(){return u??(u=c.split(`
`)),u.length},get column(){return u??(u=c.split(`
`)),M(0,u,-1).length}},[Et]:!0}}function Ms(e){let t=Rs(e);return t?{frontMatter:t,get content(){let{raw:r}=t;return w(0,r,/[^\n]/gu," ")+e.slice(r.length)}}:{content:e}}var Kt=Ms;var en="inline",Qt={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"},tn="normal",Jt={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function Bs(e){return e.kind==="element"&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}var se=Bs;var qs=e=>w(0,e,/^[\t\f\r ]*\n/gu,""),Zt=e=>qs(N.trimEnd(e)),rn=e=>{let t=e,r=N.getLeadingWhitespace(t);r&&(t=t.slice(r.length));let n=N.getTrailingWhitespace(t);return n&&(t=t.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:t}};function Ct(e,t){return!!(e.kind==="ieConditionalComment"&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||e.kind==="ieConditionalComment"&&!e.complete||ae(e)&&e.children.some(r=>r.kind!=="text"&&r.kind!=="interpolation")||bt(e,t)&&!q(e,t)&&e.kind!=="interpolation")}function oe(e){return e.kind==="attribute"||!e.parent||!e.prev?!1:Fs(e.prev)}function Fs(e){return e.kind==="comment"&&e.value.trim()==="prettier-ignore"}function O(e){return e.kind==="text"||e.kind==="comment"}function q(e,t){return e.kind==="element"&&(e.fullName==="script"||e.fullName==="style"||e.fullName==="svg:style"||e.fullName==="svg:script"||e.fullName==="mj-style"&&t.parser==="mjml"||se(e)&&(e.name==="script"||e.name==="style"))}function nn(e,t){return e.children&&!q(e,t)}function sn(e,t){return q(e,t)||e.kind==="interpolation"||er(e)}function er(e){return gn(e).startsWith("pre")}function an(e,t){let r=n();if(r&&!e.prev&&e.parent?.tagDefinition?.ignoreFirstLf)return e.kind==="interpolation";return r;function n(){return ie(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:ae(e.parent)?!0:!(!e.prev&&(e.parent.kind==="root"||ae(e)&&e.parent||q(e.parent,t)||$e(e.parent,t)||!zs(e.parent.cssDisplay))||e.prev&&!js(e.prev.cssDisplay))}}function on(e,t){return ie(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:ae(e.parent)?!0:!(!e.next&&(e.parent.kind==="root"||ae(e)&&e.parent||q(e.parent,t)||$e(e.parent,t)||!$s(e.parent.cssDisplay))||e.next&&!Ys(e.next.cssDisplay))}function ln(e,t){return Xs(e.cssDisplay)&&!q(e,t)}function Ge(e){return ie(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line}function cn(e){return tr(e)||e.kind==="element"&&e.children.length>0&&(["body","script","style"].includes(e.name)||e.children.some(t=>Vs(t)))||e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.kind!=="text"&&pn(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||hn(e.lastChild))}function tr(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 vt(e){return mn(e)||e.prev&&Hs(e.prev)||un(e)}function Hs(e){return mn(e)||e.kind==="element"&&e.fullName==="br"||un(e)}function un(e){return pn(e)&&hn(e)}function pn(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.line<e.sourceSpan.start.line:e.parent.kind==="root"||e.parent.startSourceSpan.end.line<e.sourceSpan.start.line)}function hn(e){return e.hasTrailingSpaces&&(e.next?e.next.sourceSpan.start.line>e.sourceSpan.end.line:e.parent.kind==="root"||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function mn(e){switch(e.kind){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function Tt(e){return e.lastChild?Tt(e.lastChild):e}function Vs(e){return e.children?.some(t=>t.kind!=="text")}function fn(e){if(e)switch(e){case"module":case"text/javascript":case"text/babel":case"text/jsx":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(e.endsWith("json")||e.endsWith("importmap")||e==="speculationrules")return"json"}}function Us(e,t){let{name:r,attrMap:n}=e;if(r!=="script"||Object.prototype.hasOwnProperty.call(n,"src"))return;let{type:i,lang:s}=e.attrMap;return!s&&!i?"babel":St(t,{language:s})??fn(i)}function Ws(e,t){if(!bt(e,t))return;let{attrMap:r}=e;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:i}=r;return St(t,{language:i})??fn(n)}function Gs(e,t){if(e.name==="style"){let{lang:r}=e.attrMap;return r?St(t,{language:r}):"css"}if(e.name==="mj-style"&&t.parser==="mjml")return"css"}function rr(e,t){return Us(e,t)??Gs(e,t)??Ws(e,t)}function ze(e){return e==="block"||e==="list-item"||e.startsWith("table")}function zs(e){return!ze(e)&&e!=="inline-block"}function $s(e){return!ze(e)&&e!=="inline-block"}function Ys(e){return!ze(e)}function js(e){return!ze(e)}function Xs(e){return!ze(e)&&e!=="inline-block"}function ae(e){return gn(e).startsWith("pre")}function Ks(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.parent}return!1}function dn(e,t){if(le(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(Ks(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||se(e))&&Object.prototype.hasOwnProperty.call(Qt,e.name))return Qt[e.name]}return en}function gn(e){return e.kind==="element"&&(!e.namespace||se(e))&&Object.prototype.hasOwnProperty.call(Jt,e.name)?Jt[e.name]:tn}function nr(e){return w(0,w(0,e,"'","'"),""",'"')}function b(e){return nr(e.value)}var Qs=new Set(["template","style","script"]);function $e(e,t){return le(e,t)&&!Qs.has(e.fullName)}function le(e,t){return t.parser==="vue"&&e.kind==="element"&&e.parent.kind==="root"&&e.fullName.toLowerCase()!=="html"}function bt(e,t){return le(e,t)&&($e(e,t)||e.attrMap.lang&&e.attrMap.lang!=="html")}function _n(e){let t=e.fullName;return t.charAt(0)==="#"||t==="slot-scope"||t==="v-slot"||t.startsWith("v-slot:")}function Sn(e,t){let r=e.parent;if(!le(r,t))return!1;let n=r.fullName,i=e.fullName;return n==="script"&&i==="setup"||n==="style"&&i==="vars"}function wt(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?L(t):L(N.dedentString(Zt(t)),C):B(S,N.split(t))}function kt(e,t){return le(e,t)&&e.name==="script"}function Js(e){let{valueSpan:t,value:r}=e;return t.end.offset-t.start.offset===r.length+2}function xt(e,t){if(Js(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 En=/\{\{(.+?)\}\}/su,Cn=({node:{value:e}})=>En.test(e);async function vn(e,t,r){let n=b(r.node),i=[];for(let[s,a]of n.split(En).entries())if(s%2===0)i.push(L(a));else try{i.push(E(["{{",A([S,await x(a,e,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),S,"}}"]))}catch{i.push("{{",L(a),"}}")}return i}var ir=e=>(t,r,n)=>x(b(n.node),t,{parser:e},V),Zs=[{test(e){let t=e.node.fullName;return t.startsWith("(")&&t.endsWith(")")||t.startsWith("on-")},print:ir("__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:ir("__ng_binding")},{test:e=>e.node.fullName.startsWith("*"),print:ir("__ng_directive")},{test:e=>/^i18n(?:-.+)?$/u.test(e.node.fullName),print:ea},{test:Cn,print:vn}].map(({test:e,print:t})=>({test:(r,n)=>n.parser==="angular"&&e(r),print:t}));function ea(e,t,{node:r}){let n=b(r);return X(_t(wt(r,n.trim())),!n.includes("@@"))}var Tn=Zs;var bn=({node:e},t)=>!t.parentParser&&e.fullName==="class"&&!e.value.includes("{{"),wn=(e,t,r)=>b(r.node).trim().split(/\s+/u).join(" ");var sr=["onabort","onafterprint","onauxclick","onbeforeinput","onbeforematch","onbeforeprint","onbeforetoggle","onbeforeunload","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncommand","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpagereveal","onpageshow","onpageswap","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onrejectionhandled","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"];var ra=new Set(sr),kn=({node:e},t)=>ra.has(e.fullName)&&!t.parentParser&&!e.value.includes("{{"),xn=(e,t,r)=>x(b(r.node),e,{parser:"babel",__isHtmlInlineEventHandler:!0},()=>!1);function na(e){let t=[];for(let r of e.split(";")){if(r=N.trim(r),!r)continue;let[n,...i]=N.split(r);t.push({name:n,value:i})}return t}var yn=na;var An=({node:e},t)=>e.fullName==="allow"&&!t.parentParser&&e.parent.fullName==="iframe"&&!e.value.includes("{{");function Nn(e,t,r){let{node:n}=r,i=yn(b(n));return i.length===0?[""]:X(i.map(({name:s,value:a},o)=>[[s,...a].join(" "),o===i.length-1?j(";"):[";",S]]))}function Ln(e){return e===" "||e===`
`||e==="\f"||e==="\r"||e===" "}var ia=/^[ \t\n\r\u000c]+/,sa=/^[, \t\n\r\u000c]+/,aa=/^[^ \t\n\r\u000c]+/,oa=/[,]+$/,Pn=/^\d+$/,la=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function ca(e){let t=e.length,r,n,i,s,a,o=0,c;function u(m){let _,T=m.exec(e.substring(o));if(T)return[_]=T,o+=_.length,_}let p=[];for(;;){if(u(sa),o>=t){if(p.length===0)throw new Error("Must contain one or more image candidate strings.");return p}c=o,r=u(aa),n=[],r.slice(-1)===","?(r=r.replace(oa,""),g()):d()}function d(){for(u(ia),i="",s="in descriptor";;){if(a=e.charAt(o),s==="in descriptor")if(Ln(a))i&&(n.push(i),i="",s="after descriptor");else if(a===","){o+=1,i&&n.push(i),g();return}else if(a==="(")i+=a,s="in parens";else if(a===""){i&&n.push(i),g();return}else i+=a;else if(s==="in parens")if(a===")")i+=a,s="in descriptor";else if(a===""){n.push(i),g();return}else i+=a;else if(s==="after descriptor"&&!Ln(a))if(a===""){g();return}else s="in descriptor",o-=1;o+=1}}function g(){let m=!1,_,T,P,z,ne={},Q,ot,Ce,qe,Ut;for(z=0;z<n.length;z++)Q=n[z],ot=Q[Q.length-1],Ce=Q.substring(0,Q.length-1),qe=parseInt(Ce,10),Ut=parseFloat(Ce),Pn.test(Ce)&&ot==="w"?((_||T)&&(m=!0),qe===0?m=!0:_=qe):la.test(Ce)&&ot==="x"?((_||T||P)&&(m=!0),Ut<0?m=!0:T=Ut):Pn.test(Ce)&&ot==="h"?((P||T)&&(m=!0),qe===0?m=!0:P=qe):m=!0;if(!m)ne.source={value:r,startOffset:c},_&&(ne.width={value:_}),T&&(ne.density={value:T}),P&&(ne.height={value:P}),p.push(ne);else throw new Error(`Invalid srcset descriptor found in "${e}" at "${Q}".`)}}var On=ca;var Dn=e=>e.node.fullName==="srcset"&&(e.parent.fullName==="img"||e.parent.fullName==="source"),In={width:"w",height:"h",density:"x"},ua=Object.keys(In);function Rn(e,t,r){let n=b(r.node),i=On(n),s=ua.filter(m=>i.some(_=>Object.prototype.hasOwnProperty.call(_,m)));if(s.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[a]=s,o=In[a],c=i.map(m=>m.source.value),u=Math.max(...c.map(m=>m.length)),p=i.map(m=>m[a]?String(m[a].value):""),d=p.map(m=>{let _=m.indexOf(".");return _===-1?m.length:_}),g=Math.max(...d);return X(B([",",S],c.map((m,_)=>{let T=[m],P=p[_];if(P){let z=u-m.length+1,ne=g-d[_],Q=" ".repeat(z+ne);T.push(j(Q," "),P+o)}return T})))}var Mn=({node:e},t)=>e.fullName==="style"&&!t.parentParser&&!e.value.includes("{{"),Bn=async(e,t,r)=>X(await e(b(r.node),{parser:"css",__isHTMLStyleAttribute:!0}));var ar=new WeakMap;function pa(e,t){let{root:r}=e;return ar.has(r)||ar.set(r,r.children.some(n=>kt(n,t)&&["ts","typescript"].includes(n.attrMap.lang))),ar.get(r)}var U=pa;function qn(e,t,r){let n=b(r.node);return x(`type T<${n}> = any`,e,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},V)}function Fn(e,t,r,n){let i=b(r.node),s=U(r,n)?"babel-ts":"babel";return x(`function _(${i}) {}`,e,{parser:s,__isVueBindings:!0})}async function Hn(e,t,r,n){let i=b(r.node),{left:s,operator:a,right:o}=ha(i),c=U(r,n);return[E(await x(`function _(${s}) {}`,e,{parser:c?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",a," ",await x(o,e,{parser:c?"__ts_expression":"__js_expression"})]}function ha(e){let t=/(.*?)\s+(in|of)\s+(.*)/su,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,n=/^\(|\)$/gu,i=e.match(t);if(!i)return;let s={for:i[3].trim()};if(!s.for)return;let a=w(0,i[1].trim(),n,""),o=a.match(r);o?(s.alias=a.replace(r,""),s.iterator1=o[1].trim(),o[2]&&(s.iterator2=o[2].trim())):s.alias=a;let c=[s.alias,s.iterator1,s.iterator2];if(!c.some((u,p)=>!u&&(p===0||c.slice(p+1).some(Boolean))))return{left:c.filter(Boolean).join(","),operator:i[2],right:s.for}}var ma=[{test:e=>e.node.fullName==="v-for",print:Hn},{test:(e,t)=>e.node.fullName==="generic"&&kt(e.parent,t),print:qn},{test:({node:e},t)=>_n(e)||Sn(e,t),print:Fn},{test(e){let t=e.node.fullName;return t.startsWith("@")||t.startsWith("v-on:")},print:fa},{test(e){let t=e.node.fullName;return t.startsWith(":")||t.startsWith(".")||t.startsWith("v-bind:")},print:da},{test:e=>e.node.fullName.startsWith("v-"),print:Vn}].map(({test:e,print:t})=>({test:(r,n)=>n.parser==="vue"&&e(r,n),print:t}));async function fa(e,t,r,n){try{return await Vn(e,t,r,n)}catch(a){if(a.cause?.code!=="BABEL_PARSER_SYNTAX_ERROR")throw a}let i=b(r.node),s=U(r,n)?"__vue_ts_event_binding":"__vue_event_binding";return x(i,e,{parser:s},V)}function da(e,t,r,n){let i=b(r.node),s=U(r,n)?"__vue_ts_expression":"__vue_expression";return x(i,e,{parser:s},V)}function Vn(e,t,r,n){let i=b(r.node),s=U(r,n)?"__ts_expression":"__js_expression";return x(i,e,{parser:s},V)}var Un=ma;var ga=[{test:Dn,print:Rn},{test:Mn,print:Bn},{test:kn,print:xn},{test:bn,print:wn},{test:An,print:Nn},...Un,...Tn].map(({test:e,print:t})=>({test:e,print:Sa(t)}));function _a(e,t){let{node:r}=e,{value:n}=r;if(n)return xt(r,t)?[r.rawName,"=",n]:ga.find(({test:i})=>i(e,t))?.print}function Sa(e){return async(t,r,n,i)=>{let s=await e(t,r,n,i);if(s)return s=zt(s,a=>typeof a=="string"?w(0,a,'"',"""):a),[n.node.rawName,'="',E(s),'"']}}var Wn=_a;var K=e=>e.sourceSpan.start.offset,J=e=>e.sourceSpan.end.offset;function Ye(e,t){return[e.isSelfClosing?"":Ea(e,t),ce(e,t)]}function Ea(e,t){return e.lastChild&&he(e.lastChild)?"":[Ca(e,t),yt(e,t)]}function ce(e,t){return(e.next?W(e.next):pe(e.parent))?"":[ue(e,t),F(e,t)]}function Ca(e,t){return pe(e)?ue(e.lastChild,t):""}function F(e,t){return he(e)?yt(e.parent,t):je(e)?At(e.next,t):""}function yt(e,t){if(zn(e,t))return"";switch(e.kind){case"ieConditionalComment":return"<!";case"element":if(e.hasHtmComponentClosingTag)return"<//";default:return`</${e.rawName}`}}function ue(e,t){if(zn(e,t))return"";switch(e.kind){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]-->";case"ieConditionalStartComment":return"]><!-->";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function zn(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(oe(e)||Ct(e.parent,t))}function W(e){return e.prev&&e.prev.kind!=="docType"&&e.kind!=="angularControlFlowBlock"&&!O(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function pe(e){return e.lastChild?.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!O(Tt(e.lastChild))&&!ae(e)}function he(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&O(Tt(e))}function je(e){return e.next&&!O(e.next)&&O(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function va(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return t?t[1]?t[1].split(/\s+/u):!0:!1}function Xe(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function Ta(e,t,r){let{node:n}=e;if(!Ne(n.attrs))return n.isSelfClosing?" ":"";let i=n.prev?.kind==="comment"&&va(n.prev.value),s=typeof i=="boolean"?()=>i:Array.isArray(i)?d=>i.includes(d.rawName):()=>!1,a=e.map(({node:d})=>s(d)?L(t.originalText.slice(K(d),J(d))):r(),"attrs"),o=n.kind==="element"&&n.fullName==="script"&&n.attrs.length===1&&n.attrs[0].fullName==="src"&&n.children.length===0,u=t.singleAttributePerLine&&n.attrs.length>1&&!le(n,t)?C:S,p=[A([o?" ":S,B(u,a)])];return n.firstChild&&Xe(n.firstChild)||n.isSelfClosing&&pe(n.parent)||o?p.push(n.isSelfClosing?" ":""):p.push(t.bracketSameLine?n.isSelfClosing?" ":"":n.isSelfClosing?S:k),p}function ba(e){return e.firstChild&&Xe(e.firstChild)?"":Nt(e)}function Ke(e,t,r){let{node:n}=e;return[me(n,t),Ta(e,t,r),n.isSelfClosing?"":ba(n)]}function me(e,t){return e.prev&&je(e.prev)?"":[H(e,t),At(e,t)]}function H(e,t){return Xe(e)?Nt(e.parent):W(e)?ue(e.prev,t):""}var Gn="<!doctype";function At(e,t){switch(e.kind){case"ieConditionalComment":case"ieConditionalStartComment":return`<!--[if ${e.condition}`;case"ieConditionalEndComment":return"<!--<!";case"interpolation":return"{{";case"docType":{if(e.value==="html"){let{filepath:n}=t;if(n&&/\.html?$/u.test(n))return Gn}let r=K(e);return t.originalText.slice(r,r+Gn.length)}case"angularIcuExpression":return"{";case"element":if(e.condition)return`<!--[if ${e.condition}]><!--><${e.rawName}`;default:return`<${e.rawName}`}}function Nt(e){switch(e.kind){case"ieConditionalComment":return"]>";case"element":if(e.condition)return"><!--<![endif]-->";default:return">"}}function wa(e,t){if(!e.endSourceSpan)return"";let r=e.startSourceSpan.end.offset;e.firstChild&&Xe(e.firstChild)&&(r-=Nt(e).length);let n=e.endSourceSpan.start.offset;return e.lastChild&&he(e.lastChild)?n+=yt(e,t).length:pe(e)&&(n-=ue(e.lastChild,t).length),t.originalText.slice(r,n)}var Lt=wa;var ka=new Set(["if","else if","for","switch","case"]);function xa(e,t){let{node:r}=e;switch(r.kind){case"element":if(q(r,t)||r.kind==="interpolation")return;if(!r.isSelfClosing&&bt(r,t)){let n=rr(r,t);return n?async(i,s)=>{let a=Lt(r,t),o=/^\s*$/u.test(a),c="";return o||(c=await i(Zt(a),{parser:n,__embeddedInHtml:!0}),o=c===""),[H(r,t),E(Ke(e,t,s)),o?"":C,c,o?"":C,Ye(r,t),F(r,t)]}:void 0}break;case"text":if(q(r.parent,t)){let n=rr(r.parent,t);if(n)return async i=>{let s=n==="markdown"?N.dedentString(r.value.replace(/^[^\S\n]*\n/u,"")):r.value,a={parser:n,__embeddedInHtml:!0};if(t.parser==="html"&&n==="babel"){let o="script",{attrMap:c}=r.parent;c&&(c.type==="module"||(c.type==="text/babel"||c.type==="text/jsx")&&c["data-type"]==="module")&&(o="module"),a.__babelSourceType=o}return[Y,H(r,t),await i(s,a),F(r,t)]}}else if(r.parent.kind==="interpolation")return async n=>{let i={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return t.parser==="angular"?i.parser="__ng_interpolation":t.parser==="vue"?i.parser=U(e,t)?"__vue_ts_expression":"__vue_expression":i.parser="__js_expression",[A([S,await n(r.value,i)]),r.parent.next&&W(r.parent.next)?" ":S]};break;case"attribute":return Wn(e,t);case"angularControlFlowBlockParameters":return ka.has(e.parent.name)?Yr:void 0;case"angularLetDeclarationInitializer":return n=>x(r.value,n,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var $n=xa;var Qe=null;function Je(e){if(Qe!==null&&typeof Qe.property){let t=Qe;return Qe=Je.prototype=null,t}return Qe=Je.prototype=e??Object.create(null),new Je}var ya=10;for(let e=0;e<=ya;e++)Je();function or(e){return Je(e)}function Aa(e,t="type"){or(e);function r(n){let i=n[t],s=e[i];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:n});return s}return r}var Yn=Aa;var I=[["children"],[]],jn={root:I[0],element:["attrs","children"],ieConditionalComment:I[0],ieConditionalStartComment:I[1],ieConditionalEndComment:I[1],interpolation:I[0],text:I[0],docType:I[1],comment:I[1],attribute:I[1],cdata:I[1],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:I[0],angularControlFlowBlockParameter:I[1],angularLetDeclaration:["init"],angularLetDeclarationInitializer:I[1],angularIcuExpression:["cases"],angularIcuCase:["expression"]};var Na=Yn(jn,"kind"),Xn=Na;var Kn="format";var Qn=/^\s*<!--\s*@(?:noformat|noprettier)\s*-->/u,Jn=/^\s*<!--\s*@(?:format|prettier)\s*-->/u;var Zn=e=>Jn.test(e),ei=e=>Qn.test(e),ti=e=>`<!-- @${Kn} -->
${e}`;var ri=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]);function ni(e){let t=J(e);return e.kind==="element"&&!e.endSourceSpan&&Ne(e.children)?Math.max(t,ni(M(0,e.children,-1))):t}function Ze(e,t,r){let n=e.node;if(oe(n)){let i=ni(n);return[H(n,t),L(N.trimEnd(t.originalText.slice(K(n)+(n.prev&&je(n.prev)?At(n).length:0),i-(n.next&&W(n.next)?ue(n,t).length:0)))),F(n,t)]}return r()}function Pt(e,t){return O(e)&&O(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?vt(t)?C:S:"":vt(t)?C:k:je(e)&&(oe(t)||t.firstChild||t.isSelfClosing||t.kind==="element"&&t.attrs.length>0)||e.kind==="element"&&e.isSelfClosing&&W(t)?"":!t.isLeadingSpaceSensitive||vt(t)||W(t)&&e.lastChild&&he(e.lastChild)&&e.lastChild.lastChild&&he(e.lastChild.lastChild)?C:t.hasLeadingSpaces?S:k}function Le(e,t,r){let{node:n}=e;if(tr(n))return[Y,...e.map(()=>{let s=e.node,a=s.prev?Pt(s.prev,s):"";return[a?[a,Ge(s.prev)?C:""]:"",Ze(e,t,r)]},"children")];let i=n.children.map(()=>Symbol(""));return e.map(({node:s,index:a})=>{if(O(s)){if(s.prev&&O(s.prev)){let m=Pt(s.prev,s);if(m)return Ge(s.prev)?[C,C,Ze(e,t,r)]:[m,Ze(e,t,r)]}return Ze(e,t,r)}let o=[],c=[],u=[],p=[],d=s.prev?Pt(s.prev,s):"",g=s.next?Pt(s,s.next):"";return d&&(Ge(s.prev)?o.push(C,C):d===C?o.push(C):O(s.prev)?c.push(d):c.push(j("",k,{groupId:i[a-1]}))),g&&(Ge(s)?O(s.next)&&p.push(C,C):g===C?O(s.next)&&p.push(C):u.push(g)),[...o,E([...c,E([Ze(e,t,r),...u],{id:i[a]})]),...p]},"children")}function ii(e,t,r){let{node:n}=e,i=[];if(Da(e)&&i.push("} "),i.push("@",n.name),Pa(n))return i.push(";"),i;if(n.parameters&&i.push(" (",E(r("parameters")),")"),!Oa(n)){i.push(" {");let s=si(n);n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,i.push(A([C,Le(e,t,r)])),s&&i.push(C,"}")):s&&i.push("}")}return E(i,{shouldBreak:!0})}function si(e){return!(e.next?.kind==="angularControlFlowBlock"&&ri.get(e.name)?.has(e.next.name))}var La=e=>e?.kind==="angularControlFlowBlock"&&(e.name==="case"||e.name==="default"),Pa=e=>e?.kind==="angularControlFlowBlock"&&e.name==="default never";function Oa(e){return La(e)&&e.endSourceSpan&&e.endSourceSpan.start.offset===e.endSourceSpan.end.offset}function Da(e){let{previous:t}=e;return t?.kind==="angularControlFlowBlock"&&!oe(t)&&!si(t)}function ai(e,t,r){return[A([k,B([";",S],e.map(r,"children"))]),k]}function oi(e,t,r){let{node:n}=e;return[me(n,t),E([n.switchValue.trim(),", ",n.type,n.cases.length>0?[",",A([S,B(S,e.map(r,"cases"))])]:"",k]),ce(n,t)]}function li(e,t,r){let{node:n}=e;return[n.value," {",E([A([k,e.map(({node:i,isLast:s})=>{let a=[r()];return i.kind==="text"&&(i.hasLeadingSpaces&&a.unshift(S),i.hasTrailingSpaces&&!s&&a.push(S)),a},"expression")]),k]),"}"]}function ci(e,t,r){let{node:n}=e;if(Ct(n,t))return[H(n,t),E(Ke(e,t,r)),L(Lt(n,t)),...Ye(n,t),F(n,t)];let i=n.children.length===1&&(n.firstChild.kind==="interpolation"||n.firstChild.kind==="angularIcuExpression")&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,s=Symbol("element-attr-group-id"),a=p=>E([E(Ke(e,t,r),{id:s}),p,Ye(n,t)]),o=p=>i?Fr(p,{groupId:s}):(q(n,t)||$e(n,t))&&n.parent.kind==="root"&&t.parser==="vue"&&!t.vueIndentScriptAndStyle?p:A(p),c=()=>i?j(k,"",{groupId:s}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?S:n.firstChild.kind==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?qr(k):k,u=()=>(n.next?W(n.next):pe(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":i?j(k,"",{groupId:s}):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?a(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?S:""):a([cn(n)?Y:"",o([c(),Le(e,t,r)]),u()])}var R=(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 et(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 lr(e){return et(e)[1]==="ng-container"}function cr(e){return et(e)[1]==="ng-content"}function Pe(e){return e===null?null:et(e)[0]}function fe(e,t){return e?`:${e}:${t}`:t}var ur={name:"custom-elements"},pr={name:"no-errors-schema"},Z=(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})({});var Ia=/-+([a-z0-9])/g;function ui(e){return e.replace(Ia,(...t)=>t[1].toUpperCase())}var Ot;function hr(){return Ot||(Ot={},tt(Z.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),tt(Z.STYLE,["*|style"]),tt(Z.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"]),tt(Z.RESOURCE_URL,["base|href","embed|src","frame|src","iframe|src","link|href","object|codebase","object|data","script|src","script|href","script|xlink:href"]),tt(Z.ATTRIBUTE_NO_BINDING,["animate|attributeName","animate|values","animate|to","animate|from","set|to","set|attributeName","animateMotion|attributeName","animateTransform|attributeName","unknown|attributeName","unknown|values","unknown|to","unknown|from","iframe|sandbox","iframe|allow","iframe|allowFullscreen","iframe|referrerPolicy","iframe|csp","iframe|fetchPriority","unknown|sandbox","unknown|allow","unknown|allowFullscreen","unknown|referrerPolicy","unknown|csp","unknown|fetchPriority"])),Ot}function tt(e,t){for(let r of t)Ot[r.toLowerCase()]=e}var pi=class{};var Ra="boolean",Ma="number",Ba="string",qa="object",Fa=["[Element]|textContent,%ariaActiveDescendantElement,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColIndexText,%ariaColSpan,%ariaControlsElements,%ariaCurrent,%ariaDescribedByElements,%ariaDescription,%ariaDetailsElements,%ariaDisabled,%ariaErrorMessageElements,%ariaExpanded,%ariaFlowToElements,%ariaHasPopup,%ariaHidden,%ariaInvalid,%ariaKeyShortcuts,%ariaLabel,%ariaLabelledByElements,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaOwnsElements,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowIndexText,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,search,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","geolocation^[HTMLElement]|accuracymode,!autolocate,*location,*promptaction,*promptdismiss,*validationstatuschange,!watch","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,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]|#h