UNPKG

@proofgeist/kit

Version:

Create web application with the ProofKit stack

14 lines (13 loc) 145 kB
import"./chunk-FEIY7W7S.js";var tn=Object.defineProperty,sr=e=>{throw TypeError(e)},ir=(e,t)=>{for(var r in t)tn(e,r,{get:t[r],enumerable:!0})},ur=(e,t,r)=>t.has(e)||sr("Cannot "+r),U=(e,t,r)=>(ur(e,t,"read from private field"),r?r.call(e):t.get(e)),rn=(e,t,r)=>t.has(e)?sr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),nn=(e,t,r,n)=>(ur(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),or={};ir(or,{languages:()=>Vs,options:()=>Ws,parsers:()=>Wr,printers:()=>Ki});var an=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},B=an,it="string",ut="array",ot="cursor",Fe="indent",Le="align",lt="trim",ce="group",qe="fill",Ne="if-break",Ie="indent-if-break",ct="line-suffix",pt="line-suffix-boundary",K="line",ht="label",Pe="break-parent",lr=new Set([ot,Fe,Le,lt,ce,qe,Ne,Ie,ct,pt,K,ht,Pe]);function sn(e){if(typeof e=="string")return it;if(Array.isArray(e))return ut;if(!e)return;let{type:t}=e;if(lr.has(t))return t}var dt=sn,un=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function on(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=un([...lr].map(a=>`'${a}'`));return`Unexpected doc.type '${e.type}'. Expected it to be ${n}.`}var ln=class extends Error{name="InvalidDocError";constructor(e){super(on(e)),this.doc=e}},cr=ln,pr=()=>{},$=pr,mt=pr;function R(e){return $(e),{type:Fe,contents:e}}function hr(e,t){return $(t),{type:Le,contents:t,n:e}}function D(e,t={}){return $(e),mt(t.expandedStates,!0),{type:ce,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function cn(e){return hr(Number.NEGATIVE_INFINITY,e)}function pn(e){return hr({type:"root"},e)}function dr(e){return mt(e),{type:qe,parts:e}}function Ee(e,t="",r={}){return $(e),t!==""&&$(t),{type:Ne,breakContents:e,flatContents:t,groupId:r.groupId}}function hn(e,t){return $(e),{type:Ie,contents:e,groupId:t.groupId,negate:t.negate}}var de={type:Pe},dn={type:K,hard:!0},mn={type:K,hard:!0,literal:!0},k={type:K},x={type:K,soft:!0},y=[dn,de],gn=[mn,de];function Z(e,t){$(e),mt(t);let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}var fn=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},me=fn;function gt(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 i=a(s);return r.set(s,i),i}function a(s){switch(dt(s)){case ut:return t(s.map(n));case qe:return t({...s,parts:s.parts.map(n)});case Ne:return t({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case ce:{let{expandedStates:i,contents:u}=s;return i?(i=i.map(n),u=i[0]):u=n(u),t({...s,contents:u,expandedStates:i})}case Le:case Fe:case Ie:case ht:case ct:return t({...s,contents:n(s.contents)});case it:case ot:case lt:case pt:case K:case Pe:return t(s);default:throw new cr(s)}}}function vn(e){switch(dt(e)){case qe:if(e.parts.every(t=>t===""))return"";break;case ce:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===ce&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Le:case Fe:case Ie:case ct:if(!e.contents)return"";break;case Ne:if(!e.flatContents&&!e.breakContents)return"";break;case ut:{let t=[];for(let r of e){if(!r)continue;let[n,...a]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof me(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...a)}return t.length===0?"":t.length===1?t[0]:t}case it:case ot:case lt:case pt:case K:case ht:case Pe:break;default:throw new cr(e)}return e}function Cn(e){return gt(e,t=>vn(t))}function I(e,t=gn){return gt(e,r=>typeof r=="string"?Z(t,r.split(` `)):r)}var ye="'",Bt='"';function yn(e,t){let r=t===!0||t===ye?ye:Bt,n=r===ye?Bt:ye,a=0,s=0;for(let i of e)i===r?a++:i===n&&s++;return a>s?n:r}var Sn=yn;function bn(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var q,_n=class{constructor(e){rn(this,q),nn(this,q,new Set(e))}getLeadingWhitespaceCount(e){let t=U(this,q),r=0;for(let n=0;n<e.length&&t.has(e.charAt(n));n++)r++;return r}getTrailingWhitespaceCount(e){let t=U(this,q),r=0;for(let n=e.length-1;n>=0&&t.has(e.charAt(n));n--)r++;return r}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return U(this,q).has(e.charAt(0))}hasTrailingWhitespace(e){return U(this,q).has(me(!1,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=!1){let r=`[${bn([...U(this,q)].join(""))}]+`,n=new RegExp(t?`(${r})`:r);return e.split(n)}hasWhitespaceCharacter(e){let t=U(this,q);return Array.prototype.some.call(e,r=>t.has(r))}hasNonWhitespaceCharacter(e){let t=U(this,q);return Array.prototype.some.call(e,r=>!t.has(r))}isWhitespaceOnly(e){let t=U(this,q);return Array.prototype.every.call(e,r=>t.has(r))}};q=new WeakMap;var wn=_n,An=[" ",` `,"\f","\r"," "],kn=new wn(An),P=kn,En=class extends Error{name="UnexpectedNodeError";constructor(e,t,r="type"){super(`Unexpected ${t} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},xn=En;function Dn(e){return e?.type==="front-matter"}var Me=Dn,Tn=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),Bn=new Set(["if","else if","for","switch","case"]);function mr(e,t){var r;if(e.type==="text"||e.type==="comment"||Me(e)||e.type==="yaml"||e.type==="toml")return null;if(e.type==="attribute"&&delete t.value,e.type==="docType"&&delete t.value,e.type==="angularControlFlowBlock"&&(r=e.parameters)!=null&&r.children)for(let n of t.parameters.children)Bn.has(e.name)?delete n.expression:n.expression=n.expression.trim();e.type==="angularIcuExpression"&&(t.switchValue=e.switchValue.trim())}mr.ignoredProperties=Tn;var Fn=mr;async function Ln(e,t){if(e.language==="yaml"){let r=e.value.trim(),n=r?await t(r,{parser:"yaml"}):"";return pn([e.startDelimiter,e.explicitLanguage,y,n,n?y:"",e.endDelimiter])}}var qn=Ln;function He(e,t=!0){return[R([x,e]),t?x:""]}function ee(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")&&(r.type==="TemplateLiteral"||r.type==="StringLiteral"))}async function M(e,t,r,n){r={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...r};let a=!0;n&&(r.__onHtmlBindingRoot=(i,u)=>{a=n(i,u)});let s=await t(e,r,t);return a?D(s):He(s)}function Nn(e,t,r,n){let{node:a}=r,s=n.originalText.slice(a.sourceSpan.start.offset,a.sourceSpan.end.offset);return/^\s*$/.test(s)?"":M(s,e,{parser:"__ng_directive",__isInHtmlAttribute:!1},ee)}var In=Nn,Pn=e=>String(e).split(/[/\\]/).pop();function Ft(e,t){if(!t)return;let r=Pn(t).toLowerCase();return e.find(({filenames:n})=>n?.some(a=>a.toLowerCase()===r))??e.find(({extensions:n})=>n?.some(a=>r.endsWith(a)))}function Mn(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}`))}function Hn(e,t){let r=e.plugins.flatMap(a=>a.languages??[]),n=Mn(r,t.language)??Ft(r,t.physicalFile)??Ft(r,t.file)??(t.physicalFile,void 0);return n?.parsers[0]}var Re=Hn,Rn="inline",Un={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",marquee:"inline-block",source:"block",track:"block",details:"block",summary:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},Vn="normal",On={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function Wn(e){return e.type==="element"&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}var pe=Wn,$n=e=>B(!1,e,/^[\t\f\r ]*\n/g,""),gr=e=>$n(P.trimEnd(e)),zn=e=>{let t=e,r=P.getLeadingWhitespace(t);r&&(t=t.slice(r.length));let n=P.getTrailingWhitespace(t);return n&&(t=t.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:t}};function fr(e,t){return!!(e.type==="ieConditionalComment"&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||e.type==="ieConditionalComment"&&!e.complete||Q(e)&&e.children.some(r=>r.type!=="text"&&r.type!=="interpolation")||vt(e,t)&&!H(e)&&e.type!=="interpolation")}function Ue(e){return e.type==="attribute"||!e.parent||!e.prev?!1:jn(e.prev)}function jn(e){return e.type==="comment"&&e.value.trim()==="prettier-ignore"}function L(e){return e.type==="text"||e.type==="comment"}function H(e){return e.type==="element"&&(e.fullName==="script"||e.fullName==="style"||e.fullName==="svg:style"||e.fullName==="svg:script"||pe(e)&&(e.name==="script"||e.name==="style"))}function Gn(e){return e.children&&!H(e)}function Kn(e){return H(e)||e.type==="interpolation"||vr(e)}function vr(e){return Ar(e).startsWith("pre")}function Xn(e,t){var r,n;let a=s();if(a&&!e.prev&&(n=(r=e.parent)==null?void 0:r.tagDefinition)!=null&&n.ignoreFirstLf)return e.type==="interpolation";return a;function s(){return Me(e)||e.type==="angularControlFlowBlock"?!1:(e.type==="text"||e.type==="interpolation")&&e.prev&&(e.prev.type==="text"||e.prev.type==="interpolation")?!0:!e.parent||e.parent.cssDisplay==="none"?!1:Q(e.parent)?!0:!(!e.prev&&(e.parent.type==="root"||Q(e)&&e.parent||H(e.parent)||Ve(e.parent,t)||!aa(e.parent.cssDisplay))||e.prev&&!ua(e.prev.cssDisplay))}}function Jn(e,t){return Me(e)||e.type==="angularControlFlowBlock"?!1:(e.type==="text"||e.type==="interpolation")&&e.next&&(e.next.type==="text"||e.next.type==="interpolation")?!0:!e.parent||e.parent.cssDisplay==="none"?!1:Q(e.parent)?!0:!(!e.next&&(e.parent.type==="root"||Q(e)&&e.parent||H(e.parent)||Ve(e.parent,t)||!sa(e.parent.cssDisplay))||e.next&&!ia(e.next.cssDisplay))}function Yn(e){return oa(e.cssDisplay)&&!H(e)}function Se(e){return Me(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line}function Qn(e){return Cr(e)||e.type==="element"&&e.children.length>0&&(["body","script","style"].includes(e.name)||e.children.some(t=>ea(t)))||e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.type!=="text"&&Sr(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||br(e.lastChild))}function Cr(e){return e.type==="element"&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&e.cssDisplay!=="table-cell")}function Ke(e){return _r(e)||e.prev&&Zn(e.prev)||yr(e)}function Zn(e){return _r(e)||e.type==="element"&&e.fullName==="br"||yr(e)}function yr(e){return Sr(e)&&br(e)}function Sr(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.line<e.sourceSpan.start.line:e.parent.type==="root"||e.parent.startSourceSpan.end.line<e.sourceSpan.start.line)}function br(e){return e.hasTrailingSpaces&&(e.next?e.next.sourceSpan.start.line>e.sourceSpan.end.line:e.parent.type==="root"||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function _r(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function ft(e){return e.lastChild?ft(e.lastChild):e}function ea(e){var t;return(t=e.children)==null?void 0:t.some(r=>r.type!=="text")}function wr(e){if(e)switch(e){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(e.endsWith("json")||e.endsWith("importmap")||e==="speculationrules")return"json"}}function ta(e,t){let{name:r,attrMap:n}=e;if(r!=="script"||Object.prototype.hasOwnProperty.call(n,"src"))return;let{type:a,lang:s}=e.attrMap;return!s&&!a?"babel":Re(t,{language:s})??wr(a)}function ra(e,t){if(!vt(e,t))return;let{attrMap:r}=e;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:a}=r;return Re(t,{language:a})??wr(n)}function na(e,t){if(e.name!=="style")return;let{lang:r}=e.attrMap;return r?Re(t,{language:r}):"css"}function Lt(e,t){return ta(e,t)??na(e,t)??ra(e,t)}function ge(e){return e==="block"||e==="list-item"||e.startsWith("table")}function aa(e){return!ge(e)&&e!=="inline-block"}function sa(e){return!ge(e)&&e!=="inline-block"}function ia(e){return!ge(e)}function ua(e){return!ge(e)}function oa(e){return!ge(e)&&e!=="inline-block"}function Q(e){return Ar(e).startsWith("pre")}function la(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.parent}return!1}function ca(e,t){var r;if(te(e,t))return"block";if(((r=e.prev)==null?void 0:r.type)==="comment"){let a=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(a)return a[1]}let n=!1;if(e.type==="element"&&e.namespace==="svg")if(la(e,a=>a.fullName==="svg:foreignObject"))n=!0;else return e.name==="svg"?"inline-block":"block";switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return e.type==="element"&&(!e.namespace||n||pe(e))&&Un[e.name]||Rn}}function Ar(e){return e.type==="element"&&(!e.namespace||pe(e))&&On[e.name]||Vn}function pa(e){let t=Number.POSITIVE_INFINITY;for(let r of e.split(` `)){if(r.length===0)continue;let n=P.getLeadingWhitespaceCount(r);if(n===0)return 0;r.length!==n&&n<t&&(t=n)}return t===Number.POSITIVE_INFINITY?0:t}function kr(e,t=pa(e)){return t===0?e:e.split(` `).map(r=>r.slice(t)).join(` `)}function Er(e){return B(!1,B(!1,e,"&apos;","'"),"&quot;",'"')}function O(e){return Er(e.value)}var ha=new Set(["template","style","script"]);function Ve(e,t){return te(e,t)&&!ha.has(e.fullName)}function te(e,t){return t.parser==="vue"&&e.type==="element"&&e.parent.type==="root"&&e.fullName.toLowerCase()!=="html"}function vt(e,t){return te(e,t)&&(Ve(e,t)||e.attrMap.lang&&e.attrMap.lang!=="html")}function da(e){let t=e.fullName;return t.charAt(0)==="#"||t==="slot-scope"||t==="v-slot"||t.startsWith("v-slot:")}function ma(e,t){let r=e.parent;if(!te(r,t))return!1;let n=r.fullName,a=e.fullName;return n==="script"&&a==="setup"||n==="style"&&a==="vars"}function xr(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?I(t):I(kr(gr(t)),y):Z(k,P.split(t))}function Dr(e,t){return te(e,t)&&e.name==="script"}var Tr=/{{(.+?)}}/s;async function ga(e,t){let r=[];for(let[n,a]of e.split(Tr).entries())if(n%2===0)r.push(I(a));else try{r.push(D(["{{",R([k,await M(a,t,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),k,"}}"]))}catch{r.push("{{",I(a),"}}")}return r}function Ct({parser:e}){return(t,r,n)=>M(O(n.node),t,{parser:e},ee)}var fa=Ct({parser:"__ng_action"}),va=Ct({parser:"__ng_binding"}),Ca=Ct({parser:"__ng_directive"});function ya(e,t){if(t.parser!=="angular")return;let{node:r}=e,n=r.fullName;if(n.startsWith("(")&&n.endsWith(")")||n.startsWith("on-"))return fa;if(n.startsWith("[")&&n.endsWith("]")||/^bind(?:on)?-/.test(n)||/^ng-(?:if|show|hide|class|style)$/.test(n))return va;if(n.startsWith("*"))return Ca;let a=O(r);if(/^i18n(?:-.+)?$/.test(n))return()=>He(dr(xr(r,a.trim())),!a.includes("@@"));if(Tr.test(a))return s=>ga(a,s)}var Sa=ya;function ba(e,t){let{node:r}=e,n=O(r);if(r.fullName==="class"&&!t.parentParser&&!n.includes("{{"))return()=>n.trim().split(/\s+/).join(" ")}var _a=ba;function qt(e){return e===" "||e===` `||e==="\f"||e==="\r"||e===" "}var wa=/^[ \t\n\r\u000c]+/,Aa=/^[, \t\n\r\u000c]+/,ka=/^[^ \t\n\r\u000c]+/,Ea=/[,]+$/,Nt=/^\d+$/,xa=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function Da(e){let t=e.length,r,n,a,s,i,u=0,o;function p(d){let C,b=d.exec(e.substring(u));if(b)return[C]=b,u+=C.length,C}let l=[];for(;;){if(p(Aa),u>=t){if(l.length===0)throw new Error("Must contain one or more image candidate strings.");return l}o=u,r=p(ka),n=[],r.slice(-1)===","?(r=r.replace(Ea,""),g()):v()}function v(){for(p(wa),a="",s="in descriptor";;){if(i=e.charAt(u),s==="in descriptor")if(qt(i))a&&(n.push(a),a="",s="after descriptor");else if(i===","){u+=1,a&&n.push(a),g();return}else if(i==="(")a+=i,s="in parens";else if(i===""){a&&n.push(a),g();return}else a+=i;else if(s==="in parens")if(i===")")a+=i,s="in descriptor";else if(i===""){n.push(a),g();return}else a+=i;else if(s==="after descriptor"&&!qt(i))if(i===""){g();return}else s="in descriptor",u-=1;u+=1}}function g(){let d=!1,C,b,w,E,c={},m,_,S,T,X;for(E=0;E<n.length;E++)m=n[E],_=m[m.length-1],S=m.substring(0,m.length-1),T=parseInt(S,10),X=parseFloat(S),Nt.test(S)&&_==="w"?((C||b)&&(d=!0),T===0?d=!0:C=T):xa.test(S)&&_==="x"?((C||b||w)&&(d=!0),X<0?d=!0:b=X):Nt.test(S)&&_==="h"?((w||b)&&(d=!0),T===0?d=!0:w=T):d=!0;if(!d)c.source={value:r,startOffset:o},C&&(c.width={value:C}),b&&(c.density={value:b}),w&&(c.height={value:w}),l.push(c);else throw new Error(`Invalid srcset descriptor found in "${e}" at "${m}".`)}}var Ta=Da;function Ba(e){if(e.node.fullName==="srcset"&&(e.parent.fullName==="img"||e.parent.fullName==="source"))return()=>La(O(e.node))}var Br={width:"w",height:"h",density:"x"},Fa=Object.keys(Br);function La(e){let t=Ta(e),r=Fa.filter(l=>t.some(v=>Object.prototype.hasOwnProperty.call(v,l)));if(r.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[n]=r,a=Br[n],s=t.map(l=>l.source.value),i=Math.max(...s.map(l=>l.length)),u=t.map(l=>l[n]?String(l[n].value):""),o=u.map(l=>{let v=l.indexOf(".");return v===-1?l.length:v}),p=Math.max(...o);return He(Z([",",k],s.map((l,v)=>{let g=[l],d=u[v];if(d){let C=i-l.length+1,b=p-o[v],w=" ".repeat(C+b);g.push(Ee(w," "),d+a)}return g})))}var qa=Ba;function Na(e,t){let{node:r}=e,n=O(e.node).trim();if(r.fullName==="style"&&!t.parentParser&&!n.includes("{{"))return async a=>He(await a(n,{parser:"css",__isHTMLStyleAttribute:!0}))}var Xe=new WeakMap;function Ia(e,t){let{root:r}=e;return Xe.has(r)||Xe.set(r,r.children.some(n=>Dr(n,t)&&["ts","typescript"].includes(n.attrMap.lang))),Xe.get(r)}var yt=Ia;function Pa(e,t,r){let{node:n}=r,a=O(n);return M(`type T<${a}> = any`,e,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},ee)}function Ma(e,t,{parseWithTs:r}){return M(`function _(${e}) {}`,t,{parser:r?"babel-ts":"babel",__isVueBindings:!0})}function Ha(e){let t=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/,r=/^[$_a-z][\w$]*(?:\.[$_a-z][\w$]*|\['[^']*']|\["[^"]*"]|\[\d+]|\[[$_a-z][\w$]*])*$/i,n=e.trim();return t.test(n)||r.test(n)}async function Ra(e,t,r,n){let a=O(r.node),{left:s,operator:i,right:u}=Ua(a),o=yt(r,n);return[D(await M(`function _(${s}) {}`,e,{parser:o?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",i," ",await M(u,e,{parser:o?"__ts_expression":"__js_expression"})]}function Ua(e){let t=/(.*?)\s+(in|of)\s+(.*)/s,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/,n=/^\(|\)$/g,a=e.match(t);if(!a)return;let s={};if(s.for=a[3].trim(),!s.for)return;let i=B(!1,a[1].trim(),n,""),u=i.match(r);u?(s.alias=i.replace(r,""),s.iterator1=u[1].trim(),u[2]&&(s.iterator2=u[2].trim())):s.alias=i;let o=[s.alias,s.iterator1,s.iterator2];if(!o.some((p,l)=>!p&&(l===0||o.slice(l+1).some(Boolean))))return{left:o.filter(Boolean).join(","),operator:a[2],right:s.for}}function Va(e,t){if(t.parser!=="vue")return;let{node:r}=e,n=r.fullName;if(n==="v-for")return Ra;if(n==="generic"&&Dr(r.parent,t))return Pa;let a=O(r),s=yt(e,t);if(da(r)||ma(r,t))return i=>Ma(a,i,{parseWithTs:s});if(n.startsWith("@")||n.startsWith("v-on:"))return i=>Oa(a,i,{parseWithTs:s});if(n.startsWith(":")||n.startsWith("v-bind:"))return i=>Wa(a,i,{parseWithTs:s});if(n.startsWith("v-"))return i=>Fr(a,i,{parseWithTs:s})}function Oa(e,t,{parseWithTs:r}){return Ha(e)?Fr(e,t,{parseWithTs:r}):M(e,t,{parser:r?"__vue_ts_event_binding":"__vue_event_binding"},ee)}function Wa(e,t,{parseWithTs:r}){return M(e,t,{parser:r?"__vue_ts_expression":"__vue_expression"},ee)}function Fr(e,t,{parseWithTs:r}){return M(e,t,{parser:r?"__ts_expression":"__js_expression"},ee)}var $a=Va;function za(e,t){let{node:r}=e;if(r.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(t.originalText.slice(r.valueSpan.start.offset,r.valueSpan.end.offset))||t.parser==="lwc"&&r.value.startsWith("{")&&r.value.endsWith("}"))return[r.rawName,"=",r.value];for(let n of[qa,Na,_a,$a,Sa]){let a=n(e,t);if(a)return ja(a)}}}function ja(e){return async(t,r,n,a)=>{let s=await e(t,r,n,a);if(s)return s=gt(s,i=>typeof i=="string"?B(!1,i,'"',"&quot;"):i),[n.node.rawName,'="',D(s),'"']}}var Ga=za,Lr=new Proxy(()=>{},{get:()=>Lr}),qr=Lr;function Ka(e){return Array.isArray(e)&&e.length>0}var St=Ka;function Oe(e){return e.sourceSpan.start.offset}function We(e){return e.sourceSpan.end.offset}function et(e,t){return[e.isSelfClosing?"":Xa(e,t),ue(e,t)]}function Xa(e,t){return e.lastChild&&he(e.lastChild)?"":[Ja(e,t),bt(e,t)]}function ue(e,t){return(e.next?j(e.next):ve(e.parent))?"":[fe(e,t),z(e,t)]}function Ja(e,t){return ve(e)?fe(e.lastChild,t):""}function z(e,t){return he(e)?bt(e.parent,t):$e(e)?_t(e.next):""}function bt(e,t){if(qr(!e.isSelfClosing),Nr(e,t))return"";switch(e.type){case"ieConditionalComment":return"<!";case"element":if(e.hasHtmComponentClosingTag)return"<//";default:return`</${e.rawName}`}}function fe(e,t){if(Nr(e,t))return"";switch(e.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]-->";case"ieConditionalStartComment":return"]><!-->";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function Nr(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(Ue(e)||fr(e.parent,t))}function j(e){return e.prev&&e.prev.type!=="docType"&&e.type!=="angularControlFlowBlock"&&!L(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function ve(e){var t;return((t=e.lastChild)==null?void 0:t.isTrailingSpaceSensitive)&&!e.lastChild.hasTrailingSpaces&&!L(ft(e.lastChild))&&!Q(e)}function he(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&L(ft(e))}function $e(e){return e.next&&!L(e.next)&&L(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function Ya(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return t?t[1]?t[1].split(/\s+/):!0:!1}function ze(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function Qa(e,t,r){var n;let{node:a}=e;if(!St(a.attrs))return a.isSelfClosing?" ":"";let s=((n=a.prev)==null?void 0:n.type)==="comment"&&Ya(a.prev.value),i=typeof s=="boolean"?()=>s:Array.isArray(s)?v=>s.includes(v.rawName):()=>!1,u=e.map(({node:v})=>i(v)?I(t.originalText.slice(Oe(v),We(v))):r(),"attrs"),o=a.type==="element"&&a.fullName==="script"&&a.attrs.length===1&&a.attrs[0].fullName==="src"&&a.children.length===0,p=t.singleAttributePerLine&&a.attrs.length>1&&!te(a,t)?y:k,l=[R([o?" ":k,Z(p,u)])];return a.firstChild&&ze(a.firstChild)||a.isSelfClosing&&ve(a.parent)||o?l.push(a.isSelfClosing?" ":""):l.push(t.bracketSameLine?a.isSelfClosing?" ":"":a.isSelfClosing?k:x),l}function Za(e){return e.firstChild&&ze(e.firstChild)?"":wt(e)}function tt(e,t,r){let{node:n}=e;return[oe(n,t),Qa(e,t,r),n.isSelfClosing?"":Za(n)]}function oe(e,t){return e.prev&&$e(e.prev)?"":[G(e,t),_t(e)]}function G(e,t){return ze(e)?wt(e.parent):j(e)?fe(e.prev,t):""}function _t(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return`<!--[if ${e.condition}`;case"ieConditionalEndComment":return"<!--<!";case"interpolation":return"{{";case"docType":return e.value==="html"?"<!doctype":"<!DOCTYPE";case"angularIcuExpression":return"{";case"element":if(e.condition)return`<!--[if ${e.condition}]><!--><${e.rawName}`;default:return`<${e.rawName}`}}function wt(e){switch(qr(!e.isSelfClosing),e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return"><!--<![endif]-->";default:return">"}}function es(e,t){if(!e.endSourceSpan)return"";let r=e.startSourceSpan.end.offset;e.firstChild&&ze(e.firstChild)&&(r-=wt(e).length);let n=e.endSourceSpan.start.offset;return e.lastChild&&he(e.lastChild)?n+=bt(e,t).length:ve(e)&&(n-=fe(e.lastChild,t).length),t.originalText.slice(r,n)}var Ir=es,ts=new Set(["if","else if","for","switch","case"]);function rs(e,t){let{node:r}=e;switch(r.type){case"element":if(H(r)||r.type==="interpolation")return;if(!r.isSelfClosing&&vt(r,t)){let n=Lt(r,t);return n?async(a,s)=>{let i=Ir(r,t),u=/^\s*$/.test(i),o="";return u||(o=await a(gr(i),{parser:n,__embeddedInHtml:!0}),u=o===""),[G(r,t),D(tt(e,t,s)),u?"":y,o,u?"":y,et(r,t),z(r,t)]}:void 0}break;case"text":if(H(r.parent)){let n=Lt(r.parent,t);if(n)return async a=>{let s=n==="markdown"?kr(r.value.replace(/^[^\S\n]*\n/,"")):r.value,i={parser:n,__embeddedInHtml:!0};if(t.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"),i.__babelSourceType=u}return[de,G(r,t),await a(s,i),z(r,t)]}}else if(r.parent.type==="interpolation")return async n=>{let a={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return t.parser==="angular"?a.parser="__ng_interpolation":t.parser==="vue"?a.parser=yt(e,t)?"__vue_ts_expression":"__vue_expression":a.parser="__js_expression",[R([k,await n(r.value,a)]),r.parent.next&&j(r.parent.next)?" ":k]};break;case"attribute":return Ga(e,t);case"front-matter":return n=>qn(r,n);case"angularControlFlowBlockParameters":return ts.has(e.parent.name)?In:void 0}}var ns=rs,re=null;function le(e){if(re!==null&&typeof re.property){let t=re;return re=le.prototype=null,t}return re=le.prototype=e??Object.create(null),new le}var as=10;for(let e=0;e<=as;e++)le();function ss(e){return le(e)}function is(e,t="type"){ss(e);function r(n){let a=n[t],s=e[a];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${a}'.`),{node:n});return s}return r}var us=is,os={"front-matter":[],root:["children"],element:["attrs","children"],ieConditionalComment:["children"],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:["children"],text:["children"],docType:[],comment:[],attribute:[],cdata:[],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:["children"],angularControlFlowBlockParameter:[],angularIcuExpression:["cases"],angularIcuCase:["expression"]},ls=os,cs=us(ls),ps=cs;function hs(e){return/^\s*<!--\s*@(?:format|prettier)\s*-->/.test(e)}function ds(e){return`<!-- @format --> `+e}var ms=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 Pr(e){let t=We(e);return e.type==="element"&&!e.endSourceSpan&&St(e.children)?Math.max(t,Pr(me(!1,e.children,-1))):t}function ne(e,t,r){let n=e.node;if(Ue(n)){let a=Pr(n);return[G(n,t),I(P.trimEnd(t.originalText.slice(Oe(n)+(n.prev&&$e(n.prev)?_t(n).length:0),a-(n.next&&j(n.next)?fe(n,t).length:0)))),z(n,t)]}return r()}function be(e,t){return L(e)&&L(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?Ke(t)?y:k:"":Ke(t)?y:x:$e(e)&&(Ue(t)||t.firstChild||t.isSelfClosing||t.type==="element"&&t.attrs.length>0)||e.type==="element"&&e.isSelfClosing&&j(t)?"":!t.isLeadingSpaceSensitive||Ke(t)||j(t)&&e.lastChild&&he(e.lastChild)&&e.lastChild.lastChild&&he(e.lastChild.lastChild)?y:t.hasLeadingSpaces?k:x}function At(e,t,r){let{node:n}=e;if(Cr(n))return[de,...e.map(s=>{let i=s.node,u=i.prev?be(i.prev,i):"";return[u?[u,Se(i.prev)?y:""]:"",ne(s,t,r)]},"children")];let a=n.children.map(()=>Symbol(""));return e.map((s,i)=>{let u=s.node;if(L(u)){if(u.prev&&L(u.prev)){let C=be(u.prev,u);if(C)return Se(u.prev)?[y,y,ne(s,t,r)]:[C,ne(s,t,r)]}return ne(s,t,r)}let o=[],p=[],l=[],v=[],g=u.prev?be(u.prev,u):"",d=u.next?be(u,u.next):"";return g&&(Se(u.prev)?o.push(y,y):g===y?o.push(y):L(u.prev)?p.push(g):p.push(Ee("",x,{groupId:a[i-1]}))),d&&(Se(u)?L(u.next)&&v.push(y,y):d===y?L(u.next)&&v.push(y):l.push(d)),[...o,D([...p,D([ne(s,t,r),...l],{id:a[i]})]),...v]},"children")}function gs(e,t,r){let{node:n}=e,a=[];fs(e)&&a.push("} "),a.push("@",n.name),n.parameters&&a.push(" (",D(r("parameters")),")"),a.push(" {");let s=Mr(n);return n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,a.push(R([y,At(e,t,r)])),s&&a.push(y,"}")):s&&a.push("}"),D(a,{shouldBreak:!0})}function Mr(e){var t,r;return!(((t=e.next)==null?void 0:t.type)==="angularControlFlowBlock"&&(r=ms.get(e.name))!=null&&r.has(e.next.name))}function fs(e){let{previous:t}=e;return t?.type==="angularControlFlowBlock"&&!Ue(t)&&!Mr(t)}function vs(e,t,r){return[R([x,Z([";",k],e.map(r,"children"))]),x]}function Cs(e,t,r){let{node:n}=e;return[oe(n,t),D([n.switchValue.trim(),", ",n.clause,n.cases.length>0?[",",R([k,Z(k,e.map(r,"cases"))])]:"",x]),ue(n,t)]}function ys(e,t,r){let{node:n}=e;return[n.value," {",D([R([x,e.map(({node:a})=>a.type==="text"&&!P.trim(a.value)?"":r(),"expression")]),x]),"}"]}function Ss(e,t,r){let{node:n}=e;if(fr(n,t))return[G(n,t),D(tt(e,t,r)),I(Ir(n,t)),...et(n,t),z(n,t)];let a=n.children.length===1&&(n.firstChild.type==="interpolation"||n.firstChild.type==="angularIcuExpression")&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,s=Symbol("element-attr-group-id"),i=l=>D([D(tt(e,t,r),{id:s}),l,et(n,t)]),u=l=>a?hn(l,{groupId:s}):(H(n)||Ve(n,t))&&n.parent.type==="root"&&t.parser==="vue"&&!t.vueIndentScriptAndStyle?l:R(l),o=()=>a?Ee(x,"",{groupId:s}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?k:n.firstChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?cn(x):x,p=()=>(n.next?j(n.next):ve(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":a?Ee(x,"",{groupId:s}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?k:(n.lastChild.type==="comment"||n.lastChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${t.tabWidth*(e.ancestors.length-1)}}$`).test(n.lastChild.value)?"":x;return n.children.length===0?i(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?k:""):i([Qn(n)?de:"",u([o(),At(e,t,r)]),p()])}function kt(e){return e>=9&&e<=32||e==160}function Hr(e){return 48<=e&&e<=57}function Et(e){return e>=97&&e<=122||e>=65&&e<=90}function bs(e){return e>=97&&e<=102||e>=65&&e<=70||Hr(e)}function Rr(e){return e===10||e===13}function It(e){return 48<=e&&e<=55}function Pt(e){return e===39||e===34||e===96}var _s=/-+([a-z0-9])/g;function ws(e){return e.replace(_s,(...t)=>t[1].toUpperCase())}var rt=class Ur{constructor(t,r,n,a){this.file=t,this.offset=r,this.line=n,this.col=a}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(t){let r=this.file.content,n=r.length,a=this.offset,s=this.line,i=this.col;for(;a>0&&t<0;)if(a--,t++,r.charCodeAt(a)==10){s--;let u=r.substring(0,a-1).lastIndexOf(String.fromCharCode(10));i=u>0?a-u:a}else i--;for(;a<n&&t>0;){let u=r.charCodeAt(a);a++,t--,u==10?(s++,i=0):i++}return new Ur(this.file,a,s,i)}getContext(t,r){let n=this.file.content,a=this.offset;if(a!=null){a>n.length-1&&(a=n.length-1);let s=a,i=0,u=0;for(;i<t&&a>0&&(a--,i++,!(n[a]==` `&&++u==r)););for(i=0,u=0;i<t&&s<n.length-1&&(s++,i++,!(n[s]==` `&&++u==r)););return{before:n.substring(a,this.offset),after:n.substring(this.offset,s+1)}}return null}},Vr=class{constructor(e,t){this.content=e,this.url=t}},f=class{constructor(e,t,r=e,n=null){this.start=e,this.end=t,this.fullStart=r,this.details=n}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},xe;(function(e){e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR"})(xe||(xe={}));var Or=class{constructor(e,t,r=xe.ERROR){this.span=e,this.msg=t,this.level=r}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${xe[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}},As=[Es,xs,Ts,Fs,Ls,Is,qs,Ns,Ps,Bs];function ks(e,t){for(let r of As)r(e,t);return e}function Es(e){e.walk(t=>{if(t.type==="element"&&t.tagDefinition.ignoreFirstLf&&t.children.length>0&&t.children[0].type==="text"&&t.children[0].value[0]===` `){let r=t.children[0];r.value.length===1?t.removeChild(r):r.value=r.value.slice(1)}})}function xs(e){let t=r=>{var n,a;return r.type==="element"&&((n=r.prev)==null?void 0:n.type)==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&((a=r.firstChild)==null?void 0:a.type)==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset};e.walk(r=>{if(r.children)for(let n=0;n<r.children.length;n++){let a=r.children[n];if(!t(a))continue;let s=a.prev,i=a.firstChild;r.removeChild(s),n--;let u=new f(s.sourceSpan.start,i.sourceSpan.end),o=new f(u.start,a.sourceSpan.end);a.condition=s.condition,a.sourceSpan=o,a.startSourceSpan=u,a.removeChild(i)}})}function Ds(e,t,r){e.walk(n=>{if(n.children)for(let a=0;a<n.children.length;a++){let s=n.children[a];if(s.type!=="text"&&!t(s))continue;s.type!=="text"&&(s.type="text",s.value=r(s));let i=s.prev;!i||i.type!=="text"||(i.value+=s.value,i.sourceSpan=new f(i.sourceSpan.start,s.sourceSpan.end),n.removeChild(s),a--)}})}function Ts(e){return Ds(e,t=>t.type==="cdata",t=>`<![CDATA[${t.value}]]>`)}function Bs(e){let t=r=>{var n,a;return r.type==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.type==="text"&&!P.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"&&((a=r.next)==null?void 0:a.type)==="text"};e.walk(r=>{if(r.children)for(let n=0;n<r.children.length;n++){let a=r.children[n];if(!t(a))continue;let s=a.prev,i=a.next;s.value+=`<${a.rawName}>`+a.firstChild.value+`</${a.rawName}>`+i.value,s.sourceSpan=new f(s.sourceSpan.start,i.sourceSpan.end),s.isTrailingSpaceSensitive=i.isTrailingSpaceSensitive,s.hasTrailingSpaces=i.hasTrailingSpaces,r.removeChild(a),n--,r.removeChild(i)}})}function Fs(e,t){if(t.parser==="html")return;let r=/{{(.+?)}}/s;e.walk(n=>{if(Gn(n))for(let a of n.children){if(a.type!=="text")continue;let s=a.sourceSpan.start,i=null,u=a.value.split(r);for(let o=0;o<u.length;o++,s=i){let p=u[o];if(o%2===0){i=s.moveBy(p.length),p.length>0&&n.insertChildBefore(a,{type:"text",value:p,sourceSpan:new f(s,i)});continue}i=s.moveBy(p.length+4),n.insertChildBefore(a,{type:"interpolation",sourceSpan:new f(s,i),children:p.length===0?[]:[{type:"text",value:p,sourceSpan:new f(s.moveBy(2),i.moveBy(-2))}]})}n.removeChild(a)}})}function Ls(e){e.walk(t=>{if(!t.children)return;if(t.children.length===0||t.children.length===1&&t.children[0].type==="text"&&P.trim(t.children[0].value).length===0){t.hasDanglingSpaces=t.children.length>0,t.children=[];return}let r=Kn(t),n=vr(t);if(!r)for(let a=0;a<t.children.length;a++){let s=t.children[a];if(s.type!=="text")continue;let{leadingWhitespace:i,text:u,trailingWhitespace:o}=zn(s.value),p=s.prev,l=s.next;u?(s.value=u,s.sourceSpan=new f(s.sourceSpan.start.moveBy(i.length),s.sourceSpan.end.moveBy(-o.length)),i&&(p&&(p.hasTrailingSpaces=!0),s.hasLeadingSpaces=!0),o&&(s.hasTrailingSpaces=!0,l&&(l.hasLeadingSpaces=!0))):(t.removeChild(s),a--,(i||o)&&(p&&(p.hasTrailingSpaces=!0),l&&(l.hasLeadingSpaces=!0)))}t.isWhitespaceSensitive=r,t.isIndentationSensitive=n})}function qs(e){e.walk(t=>{t.isSelfClosing=!t.children||t.type==="element"&&(t.tagDefinition.isVoid||t.endSourceSpan&&t.startSourceSpan.start===t.endSourceSpan.start&&t.startSourceSpan.end===t.endSourceSpan.end)})}function Ns(e,t){e.walk(r=>{r.type==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))})}function Is(e,t){e.walk(r=>{r.cssDisplay=ca(r,t)})}function Ps(e,t){e.walk(r=>{let{children:n}=r;if(n){if(n.length===0){r.isDanglingSpaceSensitive=Yn(r);return}for(let a of n)a.isLeadingSpaceSensitive=Xn(a,t),a.isTrailingSpaceSensitive=Jn(a,t);for(let a=0;a<n.length;a++){let s=n[a];s.isLeadingSpaceSensitive=(a===0||s.prev.isTrailingSpaceSensitive)&&s.isLeadingSpaceSensitive,s.isTrailingSpaceSensitive=(a===n.length-1||s.next.isLeadingSpaceSensitive)&&s.isTrailingSpaceSensitive}}})}var Ms=ks;function Hs(e,t,r){let{node:n}=e;switch(n.type){case"front-matter":return I(n.raw);case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(n),[D(At(e,t,r)),y];case"element":case"ieConditionalComment":return Ss(e,t,r);case"angularControlFlowBlock":return gs(e,t,r);case"angularControlFlowBlockParameters":return vs(e,t,r);case"angularControlFlowBlockParameter":return P.trim(n.expression);case"angularIcuExpression":return Cs(e,t,r);case"angularIcuCase":return ys(e,t,r);case"ieConditionalStartComment":case"ieConditionalEndComment":return[oe(n),ue(n)];case"interpolation":return[oe(n,t),...e.map(r,"children"),ue(n,t)];case"text":{if(n.parent.type==="interpolation"){let s=/\n[^\S\n]*$/,i=s.test(n.value),u=i?n.value.replace(s,""):n.value;return[I(u),i?y:""]}let a=Cn([G(n,t),...xr(n),z(n,t)]);return Array.isArray(a)?dr(a):a}case"docType":return[D([oe(n,t)," ",B(!1,n.value.replace(/^html\b/i,"html"),/\s+/g," ")]),ue(n,t)];case"comment":return[G(n,t),I(t.originalText.slice(Oe(n),We(n))),z(n,t)];case"attribute":{if(n.value===null)return n.rawName;let a=Er(n.value),s=Sn(a,'"');return[n.rawName,"=",s,I(s==='"'?B(!1,a,'"',"&quot;"):B(!1,a,"'","&apos;")),s]}case"cdata":default:throw new xn(n,"HTML")}}var Rs={preprocess:Ms,print:Hs,insertPragma:ds,massageAstNode:Fn,embed:ns,getVisitorKeys:ps},Us=Rs,Vs=[{linguistLanguageId:146,name:"Angular",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".component.html"],parsers:["angular"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:146,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml",".mjml"],parsers:["html"],vscodeLanguageIds:["html"]},{linguistLanguageId:146,name:"Lightning Web Components",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[],parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:391,name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"]}],Mt={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},Ht="HTML",Os={bracketSameLine:Mt.bracketSameLine,htmlWhitespaceSensitivity:{category:Ht,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:Mt.singleAttributePerLine,vueIndentScriptAndStyle:{category:Ht,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},Ws=Os,Wr={};ir(Wr,{angular:()=>zi,html:()=>$i,lwc:()=>Gi,vue:()=>ji});var Xi=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g"),Rt;(function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"})(Rt||(Rt={}));var Ut;(function(e){e[e.OnPush=0]="OnPush",e[e.Default=1]="Default"})(Ut||(Ut={}));var Vt={name:"custom-elements"},Ot={name:"no-errors-schema"},W;(function(e){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"})(W||(W={}));var Wt;(function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore"})(Wt||(Wt={}));var N;(function(e){e[e.RAW_TEXT=0]="RAW_TEXT",e[e.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",e[e.PARSABLE_DATA=2]="PARSABLE_DATA"})(N||(N={}));function je(e){if(e[0]!=":")return[null,e];let t=e.indexOf(":",1);if(t===-1)throw new Error(`Unsupported format "${e}" expecting ":namespace:name"`);return[e.slice(1,t),e.slice(t+1)]}function $t(e){return je(e)[1]==="ng-container"}function zt(e){return je(e)[1]==="ng-content"}function Ae(e){return e===null?null:je(e)[0]}function De(e,t){return e?`:${e}:${t}`:t}var ke;function jt(){return ke||(ke={},_e(W.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),_e(W.STYLE,["*|style"]),_e(W.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"]),_e(W.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"])),ke}function _e(e,t){for(let r of t)ke[r.toLowerCase()]=e}var $s=class{},zs="boolean",js="number",Gs="string",Ks="object",Xs=["[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,w