UNPKG

@stedi/prettier-plugin-jsonata

Version:
14 lines (13 loc) 138 kB
var Is=Object.defineProperty;var Hr=(t,e)=>{for(var r in e)Is(t,r,{get:e[r],enumerable:!0})};var Vr=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var z=(t,e,r)=>(Vr(t,e,"read from private field"),r?r.call(t):e.get(t)),Ur=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},Wr=(t,e,r,n)=>(Vr(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);var $r={};Hr($r,{languages:()=>Ls,options:()=>Ns,parsers:()=>Ir,printers:()=>au});var Rs=(t,e,r,n)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(r,n):r.global?e.replace(r,n):e.split(r).join(n)},v=Rs;var _e="string",De="array",ve="cursor",se="indent",ie="align",ye="trim",X="group",ae="fill",ue="if-break",oe="indent-if-break",be="line-suffix",we="line-suffix-boundary",V="line",Te="label",le="break-parent",lt=new Set([ve,se,ie,ye,X,ae,ue,oe,be,we,V,Te,le]);function $s(t){if(typeof t=="string")return _e;if(Array.isArray(t))return De;if(!t)return;let{type:e}=t;if(lt.has(e))return e}var xe=$s;var Ms=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function Os(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', Expected it to be 'string' or 'object'.`;if(xe(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=Ms([...lt].map(s=>`'${s}'`));return`Unexpected doc.type '${t.type}'. Expected it to be ${n}.`}var Jt=class extends Error{name="InvalidDocError";constructor(e){super(Os(e)),this.doc=e}},ct=Jt;var Gr=()=>{},Q=Gr,pt=Gr;function U(t){return Q(t),{type:se,contents:t}}function zr(t,e){return Q(e),{type:ie,contents:e,n:t}}function D(t,e={}){return Q(t),pt(e.expandedStates,!0),{type:X,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function Yr(t){return zr(Number.NEGATIVE_INFINITY,t)}function jr(t){return zr({type:"root"},t)}function ht(t){return pt(t),{type:ae,parts:t}}function ce(t,e="",r={}){return Q(t),e!==""&&Q(e),{type:ue,breakContents:t,flatContents:e,groupId:r.groupId}}function Kr(t,e){return Q(t),{type:oe,contents:t,groupId:e.groupId,negate:e.negate}}var J={type:le};var qs={type:V,hard:!0},Hs={type:V,hard:!0,literal:!0},_={type:V},x={type:V,soft:!0},S=[qs,J],Xr=[Hs,J];function Z(t,e){Q(t),pt(e);let r=[];for(let n=0;n<e.length;n++)n!==0&&r.push(t),r.push(e[n]);return r}var Vs=(t,e,r)=>{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[r<0?e.length+r:r]:e.at(r)},ke=Vs;function ft(t,e){if(typeof t=="string")return e(t);let r=new Map;return n(t);function n(i){if(r.has(i))return r.get(i);let a=s(i);return r.set(i,a),a}function s(i){switch(xe(i)){case De:return e(i.map(n));case ae:return e({...i,parts:i.parts.map(n)});case ue:return e({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case X:{let{expandedStates:a,contents:u}=i;return a?(a=a.map(n),u=a[0]):u=n(u),e({...i,contents:u,expandedStates:a})}case ie:case se:case oe:case Te:case be:return e({...i,contents:n(i.contents)});case _e:case ve:case ye:case we:case V:case le:return e(i);default:throw new ct(i)}}}function Us(t){switch(xe(t)){case ae:if(t.parts.every(e=>e===""))return"";break;case X:if(!t.contents&&!t.id&&!t.break&&!t.expandedStates)return"";if(t.contents.type===X&&t.contents.id===t.id&&t.contents.break===t.break&&t.contents.expandedStates===t.expandedStates)return t.contents;break;case ie:case se:case oe:case be:if(!t.contents)return"";break;case ue:if(!t.flatContents&&!t.breakContents)return"";break;case De:{let e=[];for(let r of t){if(!r)continue;let[n,...s]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof ke(!1,e,-1)=="string"?e[e.length-1]+=n:e.push(n),e.push(...s)}return e.length===0?"":e.length===1?e[0]:e}case _e:case ve:case ye:case we:case V:case Te:case le:break;default:throw new ct(t)}return t}function Qr(t){return ft(t,e=>Us(e))}function T(t,e=Xr){return ft(t,r=>typeof r=="string"?Z(e,r.split(` `)):r)}var Zt=class extends Error{name="UnexpectedNodeError";constructor(e,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},Jr=Zt;var mt="'",Zr='"';function Ws(t,e){let r=e===!0||e===mt?mt:Zr,n=r===mt?Zr:mt,s=0,i=0;for(let a of t)a===r?s++:a===n&&i++;return s>i?n:r}var en=Ws;function Gs(t){return(t==null?void 0:t.type)==="front-matter"}var Be=Gs;var zs=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens"]);function tn(t,e){if(t.type==="text"||t.type==="comment"||Be(t)||t.type==="yaml"||t.type==="toml")return null;t.type==="attribute"&&delete e.value,t.type==="docType"&&delete e.value}tn.ignoredProperties=zs;var rn=tn;var Ys=t=>t.split(/[/\\]/).pop();function nn(t,e){if(!e)return;let r=Ys(e).toLowerCase();return t.find(n=>{var s,i;return((s=n.extensions)==null?void 0:s.some(a=>r.endsWith(a)))||((i=n.filenames)==null?void 0:i.some(a=>a.toLowerCase()===r))})}function js(t,e){if(e)return t.find(({name:r})=>r.toLowerCase()===e)??t.find(({aliases:r})=>r==null?void 0:r.includes(e))??t.find(({extensions:r})=>r==null?void 0:r.includes(`.${e}`))}function Ks(t,e){let r=t.plugins.flatMap(s=>s.languages??[]),n=js(r,e.language)??nn(r,e.physicalFile)??nn(r,e.file)??(e.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var Le=Ks;var sn="inline",an={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"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",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",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",fieldset:"block",button:"inline-block",details:"block",summary:"block",dialog:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block",search:"block"},un="normal",on={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function er(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var R,tr=class{constructor(e){Ur(this,R,void 0);Wr(this,R,new Set(e))}getLeadingWhitespaceCount(e){let r=z(this,R),n=0;for(let s=0;s<e.length&&r.has(e.charAt(s));s++)n++;return n}getTrailingWhitespaceCount(e){let r=z(this,R),n=0;for(let s=e.length-1;s>=0&&r.has(e.charAt(s));s--)n++;return n}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return z(this,R).has(e.charAt(0))}hasTrailingWhitespace(e){return z(this,R).has(ke(!1,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let n=`[${er([...z(this,R)].join(""))}]+`,s=new RegExp(r?`(${n})`:n);return e.split(s)}hasWhitespaceCharacter(e){let r=z(this,R);return Array.prototype.some.call(e,n=>r.has(n))}hasNonWhitespaceCharacter(e){let r=z(this,R);return Array.prototype.some.call(e,n=>!r.has(n))}isWhitespaceOnly(e){let r=z(this,R);return Array.prototype.every.call(e,n=>r.has(n))}};R=new WeakMap;var ln=tr;var Xs=[" ",` `,"\f","\r"," "],Qs=new ln(Xs),Y=Qs;function Js(t){return t.type==="element"&&!t.hasExplicitNamespace&&!["html","svg"].includes(t.namespace)}var pe=Js;var Zs=t=>v(!1,t,/^[\t\f\r ]*\n/g,""),rr=t=>Zs(Y.trimEnd(t)),cn=t=>{let e=t,r=Y.getLeadingWhitespace(e);r&&(e=e.slice(r.length));let n=Y.getTrailingWhitespace(e);return n&&(e=e.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:e}};function dt(t,e){return!!(t.type==="ieConditionalComment"&&t.lastChild&&!t.lastChild.isSelfClosing&&!t.lastChild.endSourceSpan||t.type==="ieConditionalComment"&&!t.complete||he(t)&&t.children.some(r=>r.type!=="text"&&r.type!=="interpolation")||St(t,e)&&!M(t)&&t.type!=="interpolation")}function He(t){return t.type==="attribute"||!t.parent||!t.prev?!1:ei(t.prev)}function ei(t){return t.type==="comment"&&t.value.trim()==="prettier-ignore"}function N(t){return t.type==="text"||t.type==="comment"}function M(t){return t.type==="element"&&(t.fullName==="script"||t.fullName==="style"||t.fullName==="svg:style"||t.fullName==="svg:script"||pe(t)&&(t.name==="script"||t.name==="style"))}function pn(t){return t.children&&!M(t)}function hn(t){return M(t)||t.type==="interpolation"||nr(t)}function nr(t){return vn(t).startsWith("pre")}function fn(t,e){var s,i;let r=n();if(r&&!t.prev&&((i=(s=t.parent)==null?void 0:s.tagDefinition)!=null&&i.ignoreFirstLf))return t.type==="interpolation";return r;function n(){return Be(t)?!1:(t.type==="text"||t.type==="interpolation")&&t.prev&&(t.prev.type==="text"||t.prev.type==="interpolation")?!0:!t.parent||t.parent.cssDisplay==="none"?!1:he(t.parent)?!0:!(!t.prev&&(t.parent.type==="root"||he(t)&&t.parent||M(t.parent)||We(t.parent,e)||!ai(t.parent.cssDisplay))||t.prev&&!li(t.prev.cssDisplay))}}function mn(t,e){return Be(t)?!1:(t.type==="text"||t.type==="interpolation")&&t.next&&(t.next.type==="text"||t.next.type==="interpolation")?!0:!t.parent||t.parent.cssDisplay==="none"?!1:he(t.parent)?!0:!(!t.next&&(t.parent.type==="root"||he(t)&&t.parent||M(t.parent)||We(t.parent,e)||!ui(t.parent.cssDisplay))||t.next&&!oi(t.next.cssDisplay))}function dn(t){return ci(t.cssDisplay)&&!M(t)}function Ve(t){return Be(t)||t.next&&t.sourceSpan.end&&t.sourceSpan.end.line+1<t.next.sourceSpan.start.line}function gn(t){return sr(t)||t.type==="element"&&t.children.length>0&&(["body","script","style"].includes(t.name)||t.children.some(e=>ri(e)))||t.firstChild&&t.firstChild===t.lastChild&&t.firstChild.type!=="text"&&Sn(t.firstChild)&&(!t.lastChild.isTrailingSpaceSensitive||En(t.lastChild))}function sr(t){return t.type==="element"&&t.children.length>0&&(["html","head","ul","ol","select"].includes(t.name)||t.cssDisplay.startsWith("table")&&t.cssDisplay!=="table-cell")}function gt(t){return An(t)||t.prev&&ti(t.prev)||Cn(t)}function ti(t){return An(t)||t.type==="element"&&t.fullName==="br"||Cn(t)}function Cn(t){return Sn(t)&&En(t)}function Sn(t){return t.hasLeadingSpaces&&(t.prev?t.prev.sourceSpan.end.line<t.sourceSpan.start.line:t.parent.type==="root"||t.parent.startSourceSpan.end.line<t.sourceSpan.start.line)}function En(t){return t.hasTrailingSpaces&&(t.next?t.next.sourceSpan.start.line>t.sourceSpan.end.line:t.parent.type==="root"||t.parent.endSourceSpan&&t.parent.endSourceSpan.start.line>t.sourceSpan.end.line)}function An(t){switch(t.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(t.name)}return!1}function Ct(t){return t.lastChild?Ct(t.lastChild):t}function ri(t){var e;return(e=t.children)==null?void 0:e.some(r=>r.type!=="text")}function _n(t){if(t)switch(t){case"module":case"text/javascript":case"text/babel":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(t.endsWith("json")||t.endsWith("importmap")||t==="speculationrules")return"json"}}function ni(t,e){let{name:r,attrMap:n}=t;if(r!=="script"||Object.prototype.hasOwnProperty.call(n,"src"))return;let{type:s,lang:i}=t.attrMap;return!i&&!s?"babel":Le(e,{language:i})??_n(s)}function si(t,e){if(!St(t,e))return;let{attrMap:r}=t;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:s}=r;return Le(e,{language:s})??_n(n)}function ii(t,e){if(t.name!=="style")return;let{lang:r}=t.attrMap;return r?Le(e,{language:r}):"css"}function ir(t,e){return ni(t,e)??ii(t,e)??si(t,e)}function Ue(t){return t==="block"||t==="list-item"||t.startsWith("table")}function ai(t){return!Ue(t)&&t!=="inline-block"}function ui(t){return!Ue(t)&&t!=="inline-block"}function oi(t){return!Ue(t)}function li(t){return!Ue(t)}function ci(t){return!Ue(t)&&t!=="inline-block"}function he(t){return vn(t).startsWith("pre")}function pi(t,e){let r=t;for(;r;){if(e(r))return!0;r=r.parent}return!1}function Dn(t,e){var n;if(fe(t,e))return"block";if(((n=t.prev)==null?void 0:n.type)==="comment"){let s=t.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(s)return s[1]}let r=!1;if(t.type==="element"&&t.namespace==="svg")if(pi(t,s=>s.fullName==="svg:foreignObject"))r=!0;else return t.name==="svg"?"inline-block":"block";switch(e.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return t.type==="element"&&(!t.namespace||r||pe(t))&&an[t.name]||sn}}function vn(t){return t.type==="element"&&(!t.namespace||pe(t))&&on[t.name]||un}function hi(t){let e=Number.POSITIVE_INFINITY;for(let r of t.split(` `)){if(r.length===0)continue;let n=Y.getLeadingWhitespaceCount(r);if(n===0)return 0;r.length!==n&&n<e&&(e=n)}return e===Number.POSITIVE_INFINITY?0:e}function ar(t,e=hi(t)){return e===0?t:t.split(` `).map(r=>r.slice(e)).join(` `)}function ur(t){return v(!1,v(!1,t,"&apos;","'"),"&quot;",'"')}function k(t){return ur(t.value)}var fi=new Set(["template","style","script"]);function We(t,e){return fe(t,e)&&!fi.has(t.fullName)}function fe(t,e){return e.parser==="vue"&&t.type==="element"&&t.parent.type==="root"&&t.fullName.toLowerCase()!=="html"}function St(t,e){return fe(t,e)&&(We(t,e)||t.attrMap.lang&&t.attrMap.lang!=="html")}function yn(t){let e=t.fullName;return e.charAt(0)==="#"||e==="slot-scope"||e==="v-slot"||e.startsWith("v-slot:")}function bn(t,e){let r=t.parent;if(!fe(r,e))return!1;let n=r.fullName,s=t.fullName;return n==="script"&&s==="setup"||n==="style"&&s==="vars"}function Et(t,e=t.value){return t.parent.isWhitespaceSensitive?t.parent.isIndentationSensitive?T(e):T(ar(rr(e)),S):Z(_,Y.split(e))}function At(t,e){return fe(t,e)&&t.name==="script"}function or(t){return t>=9&&t<=32||t==160}function mi(t){return 48<=t&&t<=57}function lr(t){return t>=97&&t<=122||t>=65&&t<=90}function wn(t){return t>=97&&t<=102||t>=65&&t<=70||mi(t)}function cr(t){return t===10||t===13}function pr(t){return 48<=t&&t<=55}function Tn(t){return t===39||t===34||t===96}var di=/-+([a-z0-9])/g;function kn(t){return t.replace(di,(...e)=>e[1].toUpperCase())}var ee=class t{constructor(e,r,n,s){this.file=e,this.offset=r,this.line=n,this.col=s}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let r=this.file.content,n=r.length,s=this.offset,i=this.line,a=this.col;for(;s>0&&e<0;)if(s--,e++,r.charCodeAt(s)==10){i--;let o=r.substring(0,s-1).lastIndexOf(String.fromCharCode(10));a=o>0?s-o:s}else a--;for(;s<n&&e>0;){let u=r.charCodeAt(s);s++,e--,u==10?(i++,a=0):a++}return new t(this.file,s,i,a)}getContext(e,r){let n=this.file.content,s=this.offset;if(s!=null){s>n.length-1&&(s=n.length-1);let i=s,a=0,u=0;for(;a<e&&s>0&&(s--,a++,!(n[s]==` `&&++u==r)););for(a=0,u=0;a<e&&i<n.length-1&&(i++,a++,!(n[i]==` `&&++u==r)););return{before:n.substring(s,this.offset),after:n.substring(this.offset,i+1)}}return null}},me=class{constructor(e,r){this.content=e,this.url=r}},m=class{constructor(e,r,n=e,s=null){this.start=e,this.end=r,this.fullStart=n,this.details=s}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},_t;(function(t){t[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR"})(_t||(_t={}));var Ne=class{constructor(e,r,n=_t.ERROR){this.span=e,this.msg=r,this.level=n}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${_t[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}};var gi=[Si,Ei,_i,vi,yi,Ti,bi,wi,xi,Di];function Ci(t,e){for(let r of gi)r(t,e);return t}function Si(t){t.walk(e=>{if(e.type==="element"&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&e.children[0].type==="text"&&e.children[0].value[0]===` `){let r=e.children[0];r.value.length===1?e.removeChild(r):r.value=r.value.slice(1)}})}function Ei(t){let e=r=>{var n,s;return r.type==="element"&&((n=r.prev)==null?void 0:n.type)==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&((s=r.firstChild)==null?void 0:s.type)==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset};t.walk(r=>{if(r.children)for(let n=0;n<r.children.length;n++){let s=r.children[n];if(!e(s))continue;let i=s.prev,a=s.firstChild;r.removeChild(i),n--;let u=new m(i.sourceSpan.start,a.sourceSpan.end),o=new m(u.start,s.sourceSpan.end);s.condition=i.condition,s.sourceSpan=o,s.startSourceSpan=u,s.removeChild(a)}})}function Ai(t,e,r){t.walk(n=>{if(n.children)for(let s=0;s<n.children.length;s++){let i=n.children[s];if(i.type!=="text"&&!e(i))continue;i.type!=="text"&&(i.type="text",i.value=r(i));let a=i.prev;!a||a.type!=="text"||(a.value+=i.value,a.sourceSpan=new m(a.sourceSpan.start,i.sourceSpan.end),n.removeChild(i),s--)}})}function _i(t){return Ai(t,e=>e.type==="cdata",e=>`<![CDATA[${e.value}]]>`)}function Di(t){let e=r=>{var n,s;return r.type==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.type==="text"&&!Y.hasWhitespaceCharacter(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&((n=r.prev)==null?void 0:n.type)==="text"&&((s=r.next)==null?void 0:s.type)==="text"};t.walk(r=>{if(r.children)for(let n=0;n<r.children.length;n++){let s=r.children[n];if(!e(s))continue;let i=s.prev,a=s.next;i.value+=`<${s.rawName}>`+s.firstChild.value+`</${s.rawName}>`+a.value,i.sourceSpan=new m(i.sourceSpan.start,a.sourceSpan.end),i.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,i.hasTrailingSpaces=a.hasTrailingSpaces,r.removeChild(s),n--,r.removeChild(a)}})}function vi(t,e){if(e.parser==="html")return;let r=/{{(.+?)}}/s;t.walk(n=>{if(pn(n))for(let s of n.children){if(s.type!=="text")continue;let i=s.sourceSpan.start,a=null,u=s.value.split(r);for(let o=0;o<u.length;o++,i=a){let p=u[o];if(o%2===0){a=i.moveBy(p.length),p.length>0&&n.insertChildBefore(s,{type:"text",value:p,sourceSpan:new m(i,a)});continue}a=i.moveBy(p.length+4),n.insertChildBefore(s,{type:"interpolation",sourceSpan:new m(i,a),children:p.length===0?[]:[{type:"text",value:p,sourceSpan:new m(i.moveBy(2),a.moveBy(-2))}]})}n.removeChild(s)}})}function yi(t){t.walk(e=>{if(!e.children)return;if(e.children.length===0||e.children.length===1&&e.children[0].type==="text"&&Y.trim(e.children[0].value).length===0){e.hasDanglingSpaces=e.children.length>0,e.children=[];return}let r=hn(e),n=nr(e);if(!r)for(let s=0;s<e.children.length;s++){let i=e.children[s];if(i.type!=="text")continue;let{leadingWhitespace:a,text:u,trailingWhitespace:o}=cn(i.value),p=i.prev,c=i.next;u?(i.value=u,i.sourceSpan=new m(i.sourceSpan.start.moveBy(a.length),i.sourceSpan.end.moveBy(-o.length)),a&&(p&&(p.hasTrailingSpaces=!0),i.hasLeadingSpaces=!0),o&&(i.hasTrailingSpaces=!0,c&&(c.hasLeadingSpaces=!0))):(e.removeChild(i),s--,(a||o)&&(p&&(p.hasTrailingSpaces=!0),c&&(c.hasLeadingSpaces=!0)))}e.isWhitespaceSensitive=r,e.isIndentationSensitive=n})}function bi(t){t.walk(e=>{e.isSelfClosing=!e.children||e.type==="element"&&(e.tagDefinition.isVoid||e.endSourceSpan&&e.startSourceSpan.start===e.endSourceSpan.start&&e.startSourceSpan.end===e.endSourceSpan.end)})}function wi(t,e){t.walk(r=>{r.type==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(e.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))})}function Ti(t,e){t.walk(r=>{r.cssDisplay=Dn(r,e)})}function xi(t,e){t.walk(r=>{let{children:n}=r;if(n){if(n.length===0){r.isDanglingSpaceSensitive=dn(r);return}for(let s of n)s.isLeadingSpaceSensitive=fn(s,e),s.isTrailingSpaceSensitive=mn(s,e);for(let s=0;s<n.length;s++){let i=n[s];i.isLeadingSpaceSensitive=(s===0||i.prev.isTrailingSpaceSensitive)&&i.isLeadingSpaceSensitive,i.isTrailingSpaceSensitive=(s===n.length-1||i.next.isLeadingSpaceSensitive)&&i.isTrailingSpaceSensitive}}})}var Bn=Ci;function Ln(t){return/^\s*<!--\s*@(?:format|prettier)\s*-->/.test(t)}function Fn(t){return`<!-- @format --> `+t}function te(t){return t.sourceSpan.start.offset}function re(t){return t.sourceSpan.end.offset}async function ki(t,e){if(t.lang==="yaml"){let r=t.value.trim(),n=r?await e(r,{parser:"yaml"}):"";return jr([t.startDelimiter,S,n,n?S:"",t.endDelimiter])}}var Nn=ki;var Ge=()=>{};Ge.ok=Ge;Ge.strictEqual=Ge;var hr=Ge;function Bi(t){return Array.isArray(t)&&t.length>0}var Pn=Bi;function ze(t,e){return[t.isSelfClosing?"":Li(t,e),Ye(t,e)]}function Li(t,e){return t.lastChild&&Ce(t.lastChild)?"":[Fi(t,e),Dt(t,e)]}function Ye(t,e){return(t.next?W(t.next):ge(t.parent))?"":[de(t,e),O(t,e)]}function Fi(t,e){return ge(t)?de(t.lastChild,e):""}function O(t,e){return Ce(t)?Dt(t.parent,e):je(t)?vt(t.next):""}function Dt(t,e){if(hr(!t.isSelfClosing),In(t,e))return"";switch(t.type){case"ieConditionalComment":return"<!";case"element":if(t.hasHtmComponentClosingTag)return"<//";default:return`</${t.rawName}`}}function de(t,e){if(In(t,e))return"";switch(t.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]-->";case"ieConditionalStartComment":return"]><!-->";case"interpolation":return"}}";case"element":if(t.isSelfClosing)return"/>";default:return">"}}function In(t,e){return!t.isSelfClosing&&!t.endSourceSpan&&(He(t)||dt(t.parent,e))}function W(t){return t.prev&&t.prev.type!=="docType"&&!N(t.prev)&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function ge(t){var e;return((e=t.lastChild)==null?void 0:e.isTrailingSpaceSensitive)&&!t.lastChild.hasTrailingSpaces&&!N(Ct(t.lastChild))&&!he(t)}function Ce(t){return!t.next&&!t.hasTrailingSpaces&&t.isTrailingSpaceSensitive&&N(Ct(t))}function je(t){return t.next&&!N(t.next)&&N(t)&&t.isTrailingSpaceSensitive&&!t.hasTrailingSpaces}function Ni(t){let e=t.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return e?e[1]?e[1].split(/\s+/):!0:!1}function Ke(t){return!t.prev&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function Pi(t,e,r){var g;let{node:n}=t;if(!Pn(n.attrs))return n.isSelfClosing?" ":"";let s=((g=n.prev)==null?void 0:g.type)==="comment"&&Ni(n.prev.value),i=typeof s=="boolean"?()=>s:Array.isArray(s)?h=>s.includes(h.rawName):()=>!1,a=t.map(({node:h})=>i(h)?T(e.originalText.slice(te(h),re(h))):r(),"attrs"),u=n.type==="element"&&n.fullName==="script"&&n.attrs.length===1&&n.attrs[0].fullName==="src"&&n.children.length===0,p=e.singleAttributePerLine&&n.attrs.length>1&&!fe(n,e)?S:_,c=[U([u?" ":_,Z(p,a)])];return n.firstChild&&Ke(n.firstChild)||n.isSelfClosing&&ge(n.parent)||u?c.push(n.isSelfClosing?" ":""):c.push(e.bracketSameLine?n.isSelfClosing?" ":"":n.isSelfClosing?_:x),c}function Ii(t){return t.firstChild&&Ke(t.firstChild)?"":yt(t)}function Xe(t,e,r){let{node:n}=t;return[Qe(n,e),Pi(t,e,r),n.isSelfClosing?"":Ii(n)]}function Qe(t,e){return t.prev&&je(t.prev)?"":[q(t,e),vt(t)]}function q(t,e){return Ke(t)?yt(t.parent):W(t)?de(t.prev,e):""}function vt(t){switch(t.type){case"ieConditionalComment":case"ieConditionalStartComment":return`<!--[if ${t.condition}`;case"ieConditionalEndComment":return"<!--<!";case"interpolation":return"{{";case"docType":return t.value==="html"?"<!doctype":"<!DOCTYPE";case"element":if(t.condition)return`<!--[if ${t.condition}]><!--><${t.rawName}`;default:return`<${t.rawName}`}}function yt(t){switch(hr(!t.isSelfClosing),t.type){case"ieConditionalComment":return"]>";case"element":if(t.condition)return"><!--<![endif]-->";default:return">"}}var fr=new WeakMap;function Ri(t,e){let{root:r}=t;return fr.has(r)||fr.set(r,r.children.some(n=>At(n,e)&&["ts","typescript"].includes(n.attrMap.lang))),fr.get(r)}var Pe=Ri;function $i(t,e){if(!t.endSourceSpan)return"";let r=t.startSourceSpan.end.offset;t.firstChild&&Ke(t.firstChild)&&(r-=yt(t).length);let n=t.endSourceSpan.start.offset;return t.lastChild&&Ce(t.lastChild)?n+=Dt(t,e).length:ge(t)&&(n-=de(t.lastChild,e).length),e.originalText.slice(r,n)}var bt=$i;function Rn(t){return t===" "||t===` `||t==="\f"||t==="\r"||t===" "}var Mi=/^[ \t\n\r\u000c]+/,Oi=/^[, \t\n\r\u000c]+/,qi=/^[^ \t\n\r\u000c]+/,Hi=/[,]+$/,$n=/^\d+$/,Vi=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function Ui(t){let e=t.length,r,n,s,i,a,u=0,o;function p(C){let E,A=C.exec(t.substring(u));if(A)return[E]=A,u+=E.length,E}let c=[];for(;;){if(p(Oi),u>=e){if(c.length===0)throw new Error("Must contain one or more image candidate strings.");return c}o=u,r=p(qi),n=[],r.slice(-1)===","?(r=r.replace(Hi,""),h()):g()}function g(){for(p(Mi),s="",i="in descriptor";;){if(a=t.charAt(u),i==="in descriptor")if(Rn(a))s&&(n.push(s),s="",i="after descriptor");else if(a===","){u+=1,s&&n.push(s),h();return}else if(a==="(")s+=a,i="in parens";else if(a===""){s&&n.push(s),h();return}else s+=a;else if(i==="in parens")if(a===")")s+=a,i="in descriptor";else if(a===""){n.push(s),h();return}else s+=a;else if(i==="after descriptor"&&!Rn(a))if(a===""){h();return}else i="in descriptor",u-=1;u+=1}}function h(){let C=!1,E,A,F,y,l={},d,b,I,w,$;for(y=0;y<n.length;y++)d=n[y],b=d[d.length-1],I=d.substring(0,d.length-1),w=parseInt(I,10),$=parseFloat(I),$n.test(I)&&b==="w"?((E||A)&&(C=!0),w===0?C=!0:E=w):Vi.test(I)&&b==="x"?((E||A||F)&&(C=!0),$<0?C=!0:A=$):$n.test(I)&&b==="h"?((F||A)&&(C=!0),w===0?C=!0:F=w):C=!0;if(!C)l.source={value:r,startOffset:o},E&&(l.width={value:E}),A&&(l.density={value:A}),F&&(l.height={value:F}),c.push(l);else throw new Error(`Invalid srcset descriptor found in "${t}" at "${d}".`)}}var Mn=Ui;function Se(t,e=!0){return[U([x,t]),e?x:""]}function ne(t,e){let r=t.type==="NGRoot"?t.node.type==="NGMicrosyntax"&&t.node.body.length===1&&t.node.body[0].type==="NGMicrosyntaxExpression"?t.node.body[0].expression:t.node:t.type==="JsExpressionRoot"?t.node:t;return r&&(r.type==="ObjectExpression"||r.type==="ArrayExpression"||(e.parser==="__vue_expression"||e.parser==="__vue_ts_expression")&&(r.type==="TemplateLiteral"||r.type==="StringLiteral"))}async function B(t,e,r,n){r={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...r};let s=!0;n&&(r.__onHtmlBindingRoot=(a,u)=>{s=n(a,u)});let i=await e(t,r,e);return s?D(i):Se(i)}function Wi(t){if(t.node.fullName==="srcset"&&(t.parent.fullName==="img"||t.parent.fullName==="source"))return()=>Gi(k(t.node))}function Gi(t){let e=Mn(t),r=e.some(({width:h})=>h),n=e.some(({height:h})=>h),s=e.some(({density:h})=>h);if(r+n+s>1)throw new Error("Mixed descriptor in srcset is not supported");let i=r?"width":n?"height":"density",a=r?"w":n?"h":"x",u=e.map(h=>h.source.value),o=Math.max(...u.map(h=>h.length)),p=e.map(h=>h[i]?String(h[i].value):""),c=p.map(h=>{let C=h.indexOf(".");return C===-1?h.length:C}),g=Math.max(...c);return Se(Z([",",_],u.map((h,C)=>{let E=[h],A=p[C];if(A){let F=o-h.length+1,y=g-c[C],l=" ".repeat(F+y);E.push(ce(l," "),A+a)}return E})))}var On=Wi;function zi(t,e){let{node:r}=t,n=k(r);if(r.fullName==="class"&&!e.parentParser&&!n.includes("{{"))return()=>n.trim().split(/\s+/).join(" ")}var qn=zi;function Hn(t,e){let{node:r}=t,n=k(t.node).trim();if(r.fullName==="style"&&!e.parentParser&&!n.includes("{{"))return async s=>Se(await s(n,{parser:"css",__isHTMLStyleAttribute:!0}))}async function Vn(t,e,r,n){let s=k(r.node),{left:i,operator:a,right:u}=Yi(s),o=Pe(r,n);return[D(await B(`function _(${i}) {}`,t,{parser:o?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",a," ",await B(u,t,{parser:o?"__ts_expression":"__js_expression"})]}function Yi(t){let e=/(.*?)\s+(in|of)\s+(.*)/s,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/,n=/^\(|\)$/g,s=t.match(e);if(!s)return;let i={};if(i.for=s[3].trim(),!i.for)return;let a=v(!1,s[1].trim(),n,""),u=a.match(r);u?(i.alias=a.replace(r,""),i.iterator1=u[1].trim(),u[2]&&(i.iterator2=u[2].trim())):i.alias=a;let o=[i.alias,i.iterator1,i.iterator2];if(!o.some((p,c)=>!p&&(c===0||o.slice(c+1).some(Boolean))))return{left:o.filter(Boolean).join(","),operator:s[2],right:i.for}}function Un(t,e,r){let{node:n}=r,s=k(n);return B(`type T<${s}> = any`,t,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},ne)}function Wn(t,e,{parseWithTs:r}){return B(`function _(${t}) {}`,e,{parser:r?"babel-ts":"babel",__isVueBindings:!0})}function Gn(t){let e=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/,r=/^[$A-Z_a-z][\w$]*(?:\.[$A-Z_a-z][\w$]*|\['[^']*']|\["[^"]*"]|\[\d+]|\[[$A-Z_a-z][\w$]*])*$/,n=t.trim();return e.test(n)||r.test(n)}function ji(t,e){if(e.parser!=="vue")return;let{node:r}=t,n=r.fullName;if(n==="v-for")return Vn;if(n==="generic"&&At(r.parent,e))return Un;let s=k(r),i=Pe(t,e);if(yn(r)||bn(r,e))return a=>Wn(s,a,{parseWithTs:i});if(n.startsWith("@")||n.startsWith("v-on:"))return a=>Ki(s,a,{parseWithTs:i});if(n.startsWith(":")||n.startsWith("v-bind:"))return a=>Xi(s,a,{parseWithTs:i});if(n.startsWith("v-"))return a=>zn(s,a,{parseWithTs:i})}function Ki(t,e,{parseWithTs:r}){return Gn(t)?zn(t,e,{parseWithTs:r}):B(t,e,{parser:r?"__vue_ts_event_binding":"__vue_event_binding"},ne)}function Xi(t,e,{parseWithTs:r}){return B(t,e,{parser:r?"__vue_ts_expression":"__vue_expression"},ne)}function zn(t,e,{parseWithTs:r}){return B(t,e,{parser:r?"__ts_expression":"__js_expression"},ne)}var Yn=ji;var mr=/{{(.+?)}}/s;async function jn(t,e){let r=[];for(let[n,s]of t.split(mr).entries())if(n%2===0)r.push(T(s));else try{r.push(D(["{{",U([_,await B(s,e,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0,trailingComma:"none"})]),_,"}}"]))}catch{r.push("{{",T(s),"}}")}return r}function dr({parser:t}){return(e,r,n)=>B(k(n.node),e,{parser:t,trailingComma:"none"},ne)}var Qi=dr({parser:"__ng_action"}),Ji=dr({parser:"__ng_binding"}),Zi=dr({parser:"__ng_directive"});function ea(t,e){if(e.parser!=="angular")return;let{node:r}=t,n=r.fullName;if(n.startsWith("(")&&n.endsWith(")")||n.startsWith("on-"))return Qi;if(n.startsWith("[")&&n.endsWith("]")||/^bind(?:on)?-/.test(n)||/^ng-(?:if|show|hide|class|style)$/.test(n))return Ji;if(n.startsWith("*"))return Zi;let s=k(r);if(/^i18n(?:-.+)?$/.test(n))return()=>Se(ht(Et(r,s.trim())),!s.includes("@@"));if(mr.test(s))return i=>jn(s,i)}var Kn=ea;function ta(t,e){let{node:r}=t;if(r.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(e.originalText.slice(r.valueSpan.start.offset,r.valueSpan.end.offset))||e.parser==="lwc"&&r.value.startsWith("{")&&r.value.endsWith("}"))return[r.rawName,"=",r.value];for(let n of[On,Hn,qn,Yn,Kn]){let s=n(t,e);if(s)return ra(s)}}}function ra(t){return async(e,r,n,s)=>{let i=await t(e,r,n,s);if(i)return i=ft(i,a=>typeof a=="string"?v(!1,a,'"',"&quot;"):a),[n.node.rawName,'="',D(i),'"']}}var Xn=ta;function na(t,e){let{node:r}=t;switch(r.type){case"element":if(M(r)||r.type==="interpolation")return;if(!r.isSelfClosing&&St(r,e)){let n=ir(r,e);return n?async(s,i)=>{let a=bt(r,e),u=/^\s*$/.test(a),o="";return u||(o=await s(rr(a),{parser:n,__embeddedInHtml:!0}),u=o===""),[q(r,e),D(Xe(t,e,i)),u?"":S,o,u?"":S,ze(r,e),O(r,e)]}:void 0}break;case"text":if(M(r.parent)){let n=ir(r.parent,e);if(n)return async s=>{let i=n==="markdown"?ar(r.value.replace(/^[^\S\n]*\n/,"")):r.value,a={parser:n,__embeddedInHtml:!0};if(e.parser==="html"&&n==="babel"){let u="script",{attrMap:o}=r.parent;o&&(o.type==="module"||o.type==="text/babel"&&o["data-type"]==="module")&&(u="module"),a.__babelSourceType=u}return[J,q(r,e),await s(i,a,{stripTrailingHardline:!0}),O(r,e)]}}else if(r.parent.type==="interpolation")return async n=>{let s={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return e.parser==="angular"?(s.parser="__ng_interpolation",s.trailingComma="none"):e.parser==="vue"?s.parser=Pe(t,e)?"__vue_ts_expression":"__vue_expression":s.parser="__js_expression",[U([_,await n(r.value,s)]),r.parent.next&&W(r.parent.next)?" ":_]};break;case"attribute":return Xn(t,e);case"front-matter":return n=>Nn(r,n)}}var Qn=na;function Je(t,e,r){let n=t.node;return He(n)?[q(n,e),T(e.originalText.slice(te(n)+(n.prev&&je(n.prev)?vt(n).length:0),re(n)-(n.next&&W(n.next)?de(n,e).length:0))),O(n,e)]:r()}function wt(t,e){return N(t)&&N(e)?t.isTrailingSpaceSensitive?t.hasTrailingSpaces?gt(e)?S:_:"":gt(e)?S:x:je(t)&&(He(e)||e.firstChild||e.isSelfClosing||e.type==="element"&&e.attrs.length>0)||t.type==="element"&&t.isSelfClosing&&W(e)?"":!e.isLeadingSpaceSensitive||gt(e)||W(e)&&t.lastChild&&Ce(t.lastChild)&&t.lastChild.lastChild&&Ce(t.lastChild.lastChild)?S:e.hasLeadingSpaces?_:x}function Tt(t,e,r){let{node:n}=t;if(sr(n))return[J,...t.map(i=>{let a=i.node,u=a.prev?wt(a.prev,a):"";return[u?[u,Ve(a.prev)?S:""]:"",Je(i,e,r)]},"children")];let s=n.children.map(()=>Symbol(""));return t.map((i,a)=>{let u=i.node;if(N(u)){if(u.prev&&N(u.prev)){let E=wt(u.prev,u);if(E)return Ve(u.prev)?[S,S,Je(i,e,r)]:[E,Je(i,e,r)]}return Je(i,e,r)}let o=[],p=[],c=[],g=[],h=u.prev?wt(u.prev,u):"",C=u.next?wt(u,u.next):"";return h&&(Ve(u.prev)?o.push(S,S):h===S?o.push(S):N(u.prev)?p.push(h):p.push(ce("",x,{groupId:s[a-1]}))),C&&(Ve(u)?N(u.next)&&g.push(S,S):C===S?N(u.next)&&g.push(S):c.push(C)),[...o,D([...p,D([Je(i,e,r),...c],{id:s[a]})]),...g]},"children")}function Jn(t,e,r){let{node:n}=t;if(dt(n,e))return[q(n,e),D(Xe(t,e,r)),T(bt(n,e)),...ze(n,e),O(n,e)];let s=n.children.length===1&&n.firstChild.type==="interpolation"&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,i=Symbol("element-attr-group-id"),a=c=>D([D(Xe(t,e,r),{id:i}),c,ze(n,e)]),u=c=>s?Kr(c,{groupId:i}):(M(n)||We(n,e))&&n.parent.type==="root"&&e.parser==="vue"&&!e.vueIndentScriptAndStyle?c:U(c),o=()=>s?ce(x,"",{groupId:i}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?_:n.firstChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?Yr(x):x,p=()=>(n.next?W(n.next):ge(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":s?ce(x,"",{groupId:i}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?_:(n.lastChild.type==="comment"||n.lastChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${e.tabWidth*(t.ancestors.length-1)}}$`).test(n.lastChild.value)?"":x;return n.children.length===0?a(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?_:""):a([gn(n)?J:"",u([o(),Tt(t,e,r)]),p()])}var Ze=null;function et(t){if(Ze!==null&&typeof Ze.property){let e=Ze;return Ze=et.prototype=null,e}return Ze=et.prototype=t??Object.create(null),new et}var sa=10;for(let t=0;t<=sa;t++)et();function gr(t){return et(t)}function ia(t,e="type"){gr(t);function r(n){let s=n[e],i=t[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return i}return r}var Zn=ia;var aa={"front-matter":[],root:["children"],element:["attrs","children"],ieConditionalComment:["children"],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:["children"],text:["children"],docType:[],comment:[],attribute:[],cdata:[]},es=aa;var ua=Zn(es),ts=ua;function oa(t,e,r){let{node:n}=t;switch(n.type){case"front-matter":return T(n.raw);case"root":return e.__onHtmlRoot&&e.__onHtmlRoot(n),[D(Tt(t,e,r)),S];case"element":case"ieConditionalComment":return Jn(t,e,r);case"ieConditionalStartComment":case"ieConditionalEndComment":return[Qe(n),Ye(n)];case"interpolation":return[Qe(n,e),...t.map(r,"children"),Ye(n,e)];case"text":{if(n.parent.type==="interpolation"){let i=/\n[^\S\n]*$/,a=i.test(n.value),u=a?n.value.replace(i,""):n.value;return[T(u),a?S:""]}let s=Qr([q(n,e),...Et(n),O(n,e)]);return Array.isArray(s)?ht(s):s}case"docType":return[D([Qe(n,e)," ",v(!1,n.value.replace(/^html\b/i,"html"),/\s+/g," ")]),Ye(n,e)];case"comment":return[q(n,e),T(e.originalText.slice(te(n),re(n))),O(n,e)];case"attribute":{if(n.value===null)return n.rawName;let s=ur(n.value),i=en(s,'"');return[n.rawName,"=",i,T(i==='"'?v(!1,s,'"',"&quot;"):v(!1,s,"'","&apos;")),i]}case"cdata":default:throw new Jr(n,"HTML")}}var la={preprocess:Bn,print:oa,insertPragma:Fn,massageAstNode:rn,embed:Qn,getVisitorKeys:ts},rs=la;var Ir={};Hr(Ir,{angular:()=>ru,html:()=>tu,lwc:()=>su,vue:()=>nu});var Ec=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g");var ns;(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"})(ns||(ns={}));var ss;(function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default"})(ss||(ss={}));var Cr={name:"custom-elements"},Sr={name:"no-errors-schema"};var j;(function(t){t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL"})(j||(j={}));var is;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"})(is||(is={}));var L;(function(t){t[t.RAW_TEXT=0]="RAW_TEXT",t[t.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t[t.PARSABLE_DATA=2]="PARSABLE_DATA"})(L||(L={}));function tt(t){if(t[0]!=":")return[null,t];let e=t.indexOf(":",1);if(e===-1)throw new Error(`Unsupported format "${t}" expecting ":namespace:name"`);return[t.slice(1,e),t.slice(e+1)]}function Er(t){return tt(t)[1]==="ng-container"}function Ar(t){return tt(t)[1]==="ng-content"}function Ie(t){return t===null?null:tt(t)[0]}function Re(t,e){return t?`:${t}:${e}`:e}var kt;function _r(){return kt||(kt={},xt(j.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),xt(j.STYLE,["*|style"]),xt(j.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),xt(j.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),kt}function xt(t,e){for(let r of e)kt[r.toLowerCase()]=t}var Bt=class{};var ca="boolean",pa="number",ha="string",fa="object",ma=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%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,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,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","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","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|",":sv