UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

16 lines (15 loc) 884 kB
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/FixedCollectionParameter-BTUx5G00.js","assets/_plugin-vue_export-helper-CIL7EULb.js","assets/chunk-CACdhNlC.js","assets/src-XqE2yCpG.js","assets/get-BjzKP_3k.js","assets/_MapCache-CP9ToMjk.js","assets/vue.runtime.esm-bundler-C3C09Zii.js","assets/CalendarDate-BT_sdKiu.js","assets/core-Bz5WjPxS.js","assets/sanitize-html-CNLkxVtZ.js","assets/empty-BNY-5QlZ.js","assets/en-BrSmbSYv.js","assets/src-DBVOVeEU.css","assets/constants-DuQbSl-q.js","assets/merge-DFZxC2wo.js","assets/expression-runtime-stub-Vl5_1Jpv.js","assets/users.store-xP93bV7X.js","assets/useRootStore-XEREVjMN.js","assets/settings.store-CAFiYCMH.js","assets/dateformat-Cs9X8ykY.js","assets/_baseOrderBy-DP0226Vi.js","assets/useDebounce-DyDXl6eh.js","assets/FixedCollectionParameter-ChLptgCt.css"])))=>i.map(i=>d[i]); (function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`n8n@2.16.1`}}catch{}})();try{(function(){var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`b9b151d4-a97d-4cf9-a3b2-43e3be41f2b8`,e._sentryDebugIdIdentifier=`sentry-dbid-b9b151d4-a97d-4cf9-a3b2-43e3be41f2b8`)})()}catch{}import{a as e,n as t,o as n,r,t as i}from"./chunk-CACdhNlC.js";import{$ as a,A as o,B as s,Bt as c,C as l,E as u,Ft as d,H as f,Ht as p,M as m,N as h,Nt as g,O as _,P as v,Q as y,R as b,Rt as x,S,Sn as C,T as w,U as T,W as E,Wt as D,X as O,Y as k,Z as A,_ as j,_n as M,_t as ee,at as N,bt as P,c as F,dt as te,en as I,ft as ne,gt as L,h as R,it as z,j as B,k as re,m as V,n as ie,ot as ae,p as oe,pn as se,pt as ce,q as le,rt as ue,st as de,tt as fe,v as pe,w as H,yn as me,yt as U,zt as he}from"./vue.runtime.esm-bundler-C3C09Zii.js";import{J as ge,Q as _e,S as ve,X as ye,Y as be,at as W,f as xe,i as Se,m as Ce,n as G,nt as K,ot as we,p as Te,q as Ee,t as De}from"./core-Bz5WjPxS.js";import{A as Oe,An as ke,At as Ae,Ct as je,Di as Me,En as Ne,F as Pe,Fi as Fe,Fn as Ie,Ft as Le,Gt as Re,I as ze,In as Be,It as Ve,Ki as He,Kn as Ue,L as We,Mi as Ge,N as Ke,On as qe,Pt as Je,Qi as Ye,Qn as Xe,R as Ze,Rn as Qe,St as $e,Xi as et,Yi as tt,Z as nt,Zi as rt,_t as it,ci as at,cn as ot,cr as st,di as ct,dr as lt,gn as ut,gr as dt,hr as ft,ji as pt,jt as mt,lt as ht,mt as gt,n as _t,oi as vt,q as yt,sn as bt,t as xt,tt as St,ui as Ct,ut as wt,vn as Tt,vt as Et,wn as Dt,xn as Ot,xt as kt,y as At,yn as jt,zn as Mt}from"./src-XqE2yCpG.js";import{d as Nt,i as Pt,n as Ft,r as It,t as Lt}from"./get-BjzKP_3k.js";import{t as q}from"./_plugin-vue_export-helper-CIL7EULb.js";import{c as Rt}from"./_MapCache-CP9ToMjk.js";import{t as zt}from"./date-picker-Dz_0wrPG.js";import{$i as Bt,At as Vt,Bi as Ht,C as Ut,Ct as Wt,Da as Gt,Dr as Kt,Et as qt,Fi as Jt,Fn as Yt,Gi as Xt,Gt as Zt,Hi as Qt,Hn as $t,Ht as en,In as tn,It as nn,Ji as rn,Kt as an,Ln as on,Nt as sn,Ot as cn,Pi as ln,Pn as un,Qi as dn,Ri as fn,Sa as pn,Tr as mn,Tt as hn,Ui as gn,Ut as _n,Vi as vn,Wt as yn,Xi as bn,Yi as xn,Zi as Sn,_a as Cn,aa as wn,ai as Tn,ar as En,ba as Dn,br as On,bt as kn,cr as An,ct as jn,ea as Mn,fr as Nn,ft as Pn,gr as Fn,gt as In,hr as Ln,ht as Rn,it as zn,js as Bn,ks as Vn,lr as Hn,mt as Un,na as Wn,nt as Gn,oa as Kn,ot as qn,pt as Jn,r as Yn,ra as Xn,s as Zn,sr as Qn,ta as $n,ut as er,va as tr,w as nr,wt as rr,xa as ir,xt as ar,ya as or,yt as sr,zi as cr}from"./users.store-xP93bV7X.js";import{t as lr}from"./dialog-Bs3PLrml.js";import{$a as ur,$i as dr,Aa as fr,Ba as pr,Bo as mr,Ca as hr,Da as gr,Dt as _r,Ea as vr,Eo as yr,Fa as br,It as xr,Mi as Sr,N as Cr,Oa as wr,On as Tr,Oo as Er,P as Dr,Pc as Or,Qo as kr,Ra as Ar,Sa as jr,Ua as Mr,Vt as Nr,Wa as Pr,_a as Fr,_n as Ir,aa as Lr,an as Rr,ar as zr,bc as Br,bi as Vr,ca as Hr,cl as Ur,co as Wr,da as Gr,di as Kr,el as qr,eo as Jr,fs as Yr,gc as Xr,gi as Zr,ia as Qr,ja as $r,ji as ei,ka as ti,lo as ni,ml as ri,na as ii,no as ai,pn as oi,ra as si,sa as ci,tl as li,ua as ui,ui as di,vi as fi,w as pi,wa as mi,xn as hi,yc as gi,yi as _i,zs as vi}from"./constants-DuQbSl-q.js";import{D as yi,h as bi,t as xi}from"./useRootStore-XEREVjMN.js";import{t as Si}from"./settings.store-CAFiYCMH.js";import{n as Ci,t as wi}from"./useDebounce-DyDXl6eh.js";import{$ as Ti,$t as Ei,A as Di,At as Oi,B as ki,Bt as Ai,C as ji,Ct as Mi,D as Ni,Dt as J,E as Pi,Et as Fi,F as Ii,Ft as Li,G as Ri,Gt as zi,H as Bi,Ht as Vi,I as Hi,It as Ui,J as Wi,Jt as Gi,K as Ki,Kt as qi,L as Ji,Lt as Yi,M as Xi,Mt as Zi,N as Qi,Nt as $i,O as ea,Ot as ta,P as na,Pt as ra,Q as ia,Qt as aa,R as oa,Rt as sa,S as ca,St as la,T as ua,Tt as da,U as fa,Ut as pa,V as ma,Vt as ha,W as ga,Wt as _a,X as va,Xt as ya,Y as ba,Yt as xa,Z as Sa,Zt as Ca,_ as wa,_t as Ta,a as Ea,at as Da,b as Oa,bt as ka,c as Aa,ct as ja,d as Ma,dt as Na,en as Pa,et as Fa,f as Ia,ft as La,g as Ra,gt as za,h as Ba,ht as Va,it as Ha,j as Ua,jt as Wa,k as Ga,kt as Ka,l as qa,lt as Ja,m as Ya,mt as Xa,nt as Za,o as Qa,ot as $a,p as eo,pt as to,q as no,qt as ro,rt as io,s as ao,st as oo,t as so,tt as co,u as lo,ut as uo,v as fo,vt as po,w as mo,wt as ho,x as go,xt as _o,y as vo,yt as yo,z as bo,zt as xo}from"./RunData-sLmjeCkz.js";import{i as So,o as Co,r as wo,t as To}from"./NDVEmptyState-D9AiDj1V.js";import{n as Eo,r as Do}from"./exports-D7g5x3uk.js";import{t as Oo}from"./externalSecrets.ee.store-1A3m4tmC.js";import{t as ko}from"./uniqBy-DcnkRE_B.js";import{n as Ao,t as jo}from"./useCanvasOperations-BAcfYmDn.js";import{t as Mo}from"./VueMarkdown-DVUSZtee.js";import{a as No}from"./nodeTransforms-lrtn9NPZ.js";import{n as Po,t as Fo}from"./useQuickConnect-BzxUKzfb.js";import{t as Io}from"./CredentialIcon-BVAlIa2j.js";import"./DropdownMenu-B6HcQlju.js";import{r as Lo,t as Ro}from"./comlink-3h19_0W7.js";import{t as zo}from"./useDynamicCredentials-DWt_uw-C.js";import{t as Bo}from"./RunDataHtml-C8pLyfwl.js";import{t as Vo}from"./NodeIcon-T2UcO71E.js";import{a as Ho,i as Uo,n as Wo,o as Go,s as Ko,t as qo}from"./VirtualSchema-DSU3xfmx.js";import{t as Jo}from"./useCalloutHelpers-BYcLQq8e.js";import{t as Yo}from"./useRunWorkflow-Cii0mAex.js";import{t as Xo}from"./useInjectWorkflowId-BV3E4pXM.js";import{t as Zo}from"./vue-ceHlDXGn.js";var Qo=(e,t,n)=>Ot(e.subTree).filter(e=>s(e)&&e.type?.name===t&&!!e.component).map(e=>e.component.uid).map(e=>n[e]).filter(e=>!!e),$o=(e,t)=>{let n={},r=x([]);return{children:r,addChild:i=>{n[i.uid]=i,r.value=Qo(e,t,n)},removeChild:e=>{delete n[e],r.value=r.value.filter(t=>t.uid!==e)}}},es=Symbol(`tabsRootContextKey`),ts=Ie({tabs:{type:Be(Array),default:()=>jt([])}}),ns=`ElTabBar`,rs=ot(h({...h({name:ns}),props:ts,setup(e,{expose:t}){let n=e,r=v(),i=b(es);i||st(ns,`<el-tabs><el-tab-bar /></el-tabs>`);let o=ut(`tabs`),s=d(),c=d(),l=()=>{let e=0,t=0,a=[`top`,`bottom`].includes(i.props.tabPosition)?`width`:`height`,o=a===`width`?`x`:`y`,s=o===`x`?`left`:`top`;return n.tabs.every(i=>{let o=r.parent?.refs?.[`tab-${i.uid}`];if(!o)return!1;if(!i.active)return!0;e=o[`offset${lt(s)}`],t=o[`client${lt(a)}`];let c=window.getComputedStyle(o);return a===`width`&&(n.tabs.length>1&&(t-=Number.parseFloat(c.paddingLeft)+Number.parseFloat(c.paddingRight)),e+=Number.parseFloat(c.paddingLeft)),!1}),{[a]:`${t}px`,transform:`translate${lt(o)}(${e}px)`}},f=()=>c.value=l();return L(()=>n.tabs,async()=>{await E(),f()},{immediate:!0}),at(s,()=>f()),t({ref:s,update:f}),(e,t)=>(a(),u(`div`,{ref_key:`barRef`,ref:s,class:M([D(o).e(`active-bar`),D(o).is(D(i).props.tabPosition)]),style:me(c.value)},null,6))}}),[[`__file`,`/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue`]]),is=Ie({panes:{type:Be(Array),default:()=>jt([])},currentName:{type:[String,Number],default:``},editable:Boolean,type:{type:String,values:[`card`,`border-card`,``],default:``},stretch:Boolean}),as={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},os=`ElTabNav`,ss=h({name:os,props:is,emits:as,setup(e,{expose:t,emit:n}){let r=v(),i=b(es);i||st(os,`<el-tabs><tab-nav /></el-tabs>`);let a=ut(`tabs`),o=vt(),s=Ct(),c=d(),l=d(),u=d(),f=d(),p=d(!1),m=d(0),h=d(!1),g=d(!0),_=S(()=>[`top`,`bottom`].includes(i.props.tabPosition)?`width`:`height`),x=S(()=>({transform:`translate${_.value===`width`?`X`:`Y`}(-${m.value}px)`})),C=()=>{if(!c.value)return;let e=c.value[`offset${lt(_.value)}`],t=m.value;t&&(m.value=t>e?t-e:0)},w=()=>{if(!c.value||!l.value)return;let e=l.value[`offset${lt(_.value)}`],t=c.value[`offset${lt(_.value)}`],n=m.value;e-n<=t||(m.value=e-n>t*2?n+t:e-t)},T=async()=>{let e=l.value;if(!p.value||!u.value||!c.value||!e)return;await E();let t=u.value.querySelector(`.is-active`);if(!t)return;let n=c.value,r=[`top`,`bottom`].includes(i.props.tabPosition),a=t.getBoundingClientRect(),o=n.getBoundingClientRect(),s=r?e.offsetWidth-o.width:e.offsetHeight-o.height,d=m.value,f=d;r?(a.left<o.left&&(f=d-(o.left-a.left)),a.right>o.right&&(f=d+a.right-o.right)):(a.top<o.top&&(f=d-(o.top-a.top)),a.bottom>o.bottom&&(f=d+(a.bottom-o.bottom))),f=Math.max(f,0),m.value=Math.min(f,s)},D=()=>{var t;if(!l.value||!c.value)return;e.stretch&&((t=f.value)==null||t.update());let n=l.value[`offset${lt(_.value)}`],r=c.value[`offset${lt(_.value)}`],i=m.value;r<n?(p.value=p.value||{},p.value.prev=i,p.value.next=i+r<n,n-i<r&&(m.value=n-r)):(p.value=!1,i>0&&(m.value=0))},k=e=>{let t=e.code,{up:n,down:r,left:i,right:a}=Ne;if(![n,r,i,a].includes(t))return;let o=Array.from(e.currentTarget.querySelectorAll(`[role=tab]:not(.is-disabled)`)),s=o.indexOf(e.target),c;c=t===i||t===n?s===0?o.length-1:s-1:s<o.length-1?s+1:0,o[c].focus({preventScroll:!0}),o[c].click(),A()},A=()=>{g.value&&(h.value=!0)},j=()=>h.value=!1;return L(o,e=>{e===`hidden`?g.value=!1:e===`visible`&&setTimeout(()=>g.value=!0,50)}),L(s,e=>{e?setTimeout(()=>g.value=!0,50):g.value=!1}),at(u,D),O(()=>setTimeout(()=>T(),0)),y(()=>D()),t({scrollToActiveTab:T,removeFocus:j}),L(()=>e.panes,()=>r.update(),{flush:`post`,deep:!0}),()=>{let t=p.value?[B(`span`,{class:[a.e(`nav-prev`),a.is(`disabled`,!p.value.prev)],onClick:C},[B(bt,null,{default:()=>[B(Qe,null,null)]})]),B(`span`,{class:[a.e(`nav-next`),a.is(`disabled`,!p.value.next)],onClick:w},[B(bt,null,{default:()=>[B(Mt,null,null)]})])]:null,r=e.panes.map((t,r)=>{var o;let s=t.uid,c=t.props.disabled,l=t.props.name??t.index??`${r}`,u=!c&&(t.isClosable||e.editable);t.index=`${r}`;let d=u?B(bt,{class:`is-icon-close`,onClick:e=>n(`tabRemove`,t,e)},{default:()=>[B(Ue,null,null)]}):null,f=(o=t.slots).label?.call(o)||t.props.label,p=!c&&t.active?0:-1;return B(`div`,{ref:`tab-${s}`,class:[a.e(`item`),a.is(i.props.tabPosition),a.is(`active`,t.active),a.is(`disabled`,c),a.is(`closable`,u),a.is(`focus`,h.value)],id:`tab-${l}`,key:`tab-${s}`,"aria-controls":`pane-${l}`,role:`tab`,"aria-selected":t.active,tabindex:p,onFocus:()=>A(),onBlur:()=>j(),onClick:e=>{j(),n(`tabClick`,t,l,e)},onKeydown:e=>{u&&(e.code===Ne.delete||e.code===Ne.backspace)&&n(`tabRemove`,t,e)}},[...[f,d]])});return B(`div`,{ref:u,class:[a.e(`nav-wrap`),a.is(`scrollable`,!!p.value),a.is(i.props.tabPosition)]},[t,B(`div`,{class:a.e(`nav-scroll`),ref:c},[B(`div`,{class:[a.e(`nav`),a.is(i.props.tabPosition),a.is(`stretch`,e.stretch&&[`top`,`bottom`].includes(i.props.tabPosition))],ref:l,style:x.value,role:`tablist`,onKeydown:k},[...[e.type?null:B(rs,{ref:f,tabs:[...e.panes]},null),r]])])])}}});I();var cs=Ie({type:{type:String,values:[`card`,`border-card`,``],default:``},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:[`top`,`right`,`bottom`,`left`],default:`top`},beforeLeave:{type:Be(Function),default:()=>!0},stretch:Boolean}),ls=e=>se(e)||ft(e),us=h({name:`ElTabs`,props:cs,emits:{[Dt]:e=>ls(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>ls(e),edit:(e,t)=>[`remove`,`add`].includes(t),tabRemove:e=>ls(e),tabAdd:()=>!0},setup(e,{emit:t,slots:n,expose:r}){let i=ut(`tabs`),{children:a,addChild:o,removeChild:s}=$o(v(),`ElTabPane`),c=d(),l=d(e.modelValue??e.activeName??`0`),u=async(n,r=!1)=>{var i,a;if(!(l.value===n||dt(n)))try{await e.beforeLeave?.call(e,n,l.value)!==!1&&(l.value=n,r&&(t(Dt,n),t(`tabChange`,n)),(a=(i=c.value)?.removeFocus)==null||a.call(i))}catch{}},f=(e,n,r)=>{e.props.disabled||(u(n,!0),t(`tabClick`,e,r))},p=(e,n)=>{e.props.disabled||dt(e.props.name)||(n.stopPropagation(),t(`edit`,e.props.name,`remove`),t(`tabRemove`,e.props.name))},m=()=>{t(`edit`,void 0,`add`),t(`tabAdd`)};return Tt({from:`"activeName"`,replacement:`"model-value" or "v-model"`,scope:`ElTabs`,version:`2.3.0`,ref:`https://element-plus.org/en-US/component/tabs.html#attributes`,type:`Attribute`},S(()=>!!e.activeName)),L(()=>e.activeName,e=>u(e)),L(()=>e.modelValue,e=>u(e)),L(l,async()=>{var e;await E(),(e=c.value)==null||e.scrollToActiveTab()}),fe(es,{props:e,currentName:l,registerPane:o,unregisterPane:s}),r({currentName:l}),()=>{let t=n.addIcon,r=e.editable||e.addable?B(`span`,{class:i.e(`new-tab`),tabindex:`0`,onClick:m,onKeydown:e=>{e.code===Ne.enter&&m()}},[t?z(n,`addIcon`):B(bt,{class:i.is(`icon-plus`)},{default:()=>[B(Xe,null,null)]})]):null,o=B(`div`,{class:[i.e(`header`),i.is(e.tabPosition)]},[r,B(ss,{ref:c,currentName:l.value,editable:e.editable,type:e.type,panes:a.value,stretch:e.stretch,onTabClick:f,onTabRemove:p},null)]),s=B(`div`,{class:i.e(`content`)},[z(n,`default`)]);return B(`div`,{class:[i.b(),i.m(e.tabPosition),{[i.m(`card`)]:e.type===`card`,[i.m(`border-card`)]:e.type===`border-card`}]},[...e.tabPosition===`bottom`?[s,o]:[o,s]])}}}),ds=Ie({label:{type:String,default:``},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),fs=[`id`,`aria-hidden`,`aria-labelledby`],ps=`ElTabPane`,ms=ot(h({...h({name:ps}),props:ds,setup(e){let t=e,n=v(),r=ne(),i=b(es);i||st(ps,`usage: <el-tabs><el-tab-pane /></el-tabs/>`);let o=ut(`tab-pane`),s=d(),c=S(()=>t.closable||i.props.closable),l=ct(()=>i.currentName.value===(t.name??s.value)),f=d(l.value),p=S(()=>t.name??s.value),m=ct(()=>!t.lazy||f.value||l.value);L(l,e=>{e&&(f.value=!0)});let h=g({uid:n.uid,slots:r,props:t,paneName:p,active:l,index:s,isClosable:c});return O(()=>{i.registerPane(h)}),A(()=>{i.unregisterPane(h.uid)}),(e,t)=>D(m)?P((a(),u(`div`,{key:0,id:`pane-${D(p)}`,class:M(D(o).b()),role:`tabpanel`,"aria-hidden":!D(l),"aria-labelledby":`tab-${D(p)}`},[z(e.$slots,`default`)],10,fs)),[[oe,D(l)]]):w(`v-if`,!0)}}),[[`__file`,`/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue`]]),hs=qe(us,{TabPane:ms}),gs=ke(ms),_s=Object.defineProperty,vs=e=>{throw TypeError(e)},ys=(e,t)=>{for(var n in t)_s(e,n,{get:t[n],enumerable:!0})},bs=(e,t,n)=>t.has(e)||vs(`Cannot `+n),xs=(e,t,n)=>(bs(e,t,`read from private field`),n?n.call(e):t.get(e)),Ss=(e,t,n)=>t.has(e)?vs(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),Cs=(e,t,n,r)=>(bs(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),ws={};ys(ws,{languages:()=>uf,options:()=>pf,parsers:()=>mf,printers:()=>ym});var Ts=(e,t,n,r)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(n,r):n.global?t.replace(n,r):t.split(n).join(r)},Es=`string`,Ds=`array`,Os=`cursor`,ks=`indent`,As=`align`,js=`trim`,Ms=`group`,Ns=`fill`,Ps=`if-break`,Fs=`indent-if-break`,Is=`line-suffix`,Ls=`line-suffix-boundary`,Rs=`line`,zs=`label`,Bs=`break-parent`,Vs=new Set([Os,ks,As,js,Ms,Ns,Ps,Fs,Is,Ls,Rs,zs,Bs]);function Hs(e){if(typeof e==`string`)return Es;if(Array.isArray(e))return Ds;if(!e)return;let{type:t}=e;if(Vs.has(t))return t}var Us=Hs,Ws=e=>new Intl.ListFormat(`en-US`,{type:`disjunction`}).format(e);function Gs(e){let t=e===null?`null`:typeof e;if(t!==`string`&&t!==`object`)return`Unexpected doc '${t}', Expected it to be 'string' or 'object'.`;if(Us(e))throw Error(`doc is valid.`);let n=Object.prototype.toString.call(e);if(n!==`[object Object]`)return`Unexpected doc '${n}'.`;let r=Ws([...Vs].map(e=>`'${e}'`));return`Unexpected doc.type '${e.type}'. Expected it to be ${r}.`}var Ks=class extends Error{name=`InvalidDocError`;constructor(e){super(Gs(e)),this.doc=e}},qs=()=>{},Js=qs,Ys=qs;function Xs(e){return Js(e),{type:ks,contents:e}}function Zs(e,t){return Js(t),{type:As,contents:t,n:e}}function Qs(e,t={}){return Js(e),Ys(t.expandedStates,!0),{type:Ms,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function $s(e){return Zs(-1/0,e)}function ec(e){return Zs({type:`root`},e)}function tc(e){return Ys(e),{type:Ns,parts:e}}function nc(e,t=``,n={}){return Js(e),t!==``&&Js(t),{type:Ps,breakContents:e,flatContents:t,groupId:n.groupId}}function rc(e,t){return Js(e),{type:Fs,contents:e,groupId:t.groupId,negate:t.negate}}var ic={type:Bs},ac={type:Rs,hard:!0},oc={type:Rs,hard:!0,literal:!0},sc={type:Rs},cc={type:Rs,soft:!0},lc=[ac,ic],uc=[oc,ic];function dc(e,t){Js(e),Ys(t);let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}var fc=(e,t,n)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t==`string`?t[n<0?t.length+n:n]:t.at(n)};function pc(e,t){if(typeof e==`string`)return t(e);let n=new Map;return r(e);function r(e){if(n.has(e))return n.get(e);let t=i(e);return n.set(e,t),t}function i(e){switch(Us(e)){case Ds:return t(e.map(r));case Ns:return t({...e,parts:e.parts.map(r)});case Ps:return t({...e,breakContents:r(e.breakContents),flatContents:r(e.flatContents)});case Ms:{let{expandedStates:n,contents:i}=e;return n?(n=n.map(r),i=n[0]):i=r(i),t({...e,contents:i,expandedStates:n})}case As:case ks:case Fs:case zs:case Is:return t({...e,contents:r(e.contents)});case Es:case Os:case js:case Ls:case Rs:case Bs:return t(e);default:throw new Ks(e)}}}function mc(e){switch(Us(e)){case Ns:if(e.parts.every(e=>e===``))return``;break;case Ms:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return``;if(e.contents.type===Ms&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case As:case ks:case Fs:case Is:if(!e.contents)return``;break;case Ps:if(!e.flatContents&&!e.breakContents)return``;break;case Ds:{let t=[];for(let n of e){if(!n)continue;let[e,...r]=Array.isArray(n)?n:[n];typeof e==`string`&&typeof fc(!1,t,-1)==`string`?t[t.length-1]+=e:t.push(e),t.push(...r)}return t.length===0?``:t.length===1?t[0]:t}case Es:case Os:case js:case Ls:case Rs:case zs:case Bs:break;default:throw new Ks(e)}return e}function hc(e){return pc(e,e=>mc(e))}function gc(e,t=uc){return pc(e,e=>typeof e==`string`?dc(t,e.split(` `)):e)}var _c=`'`,vc=`"`;function yc(e,t){let n=t===!0||t===_c?_c:vc,r=n===_c?vc:_c,i=0,a=0;for(let t of e)t===n?i++:t===r&&a++;return i>a?r:n}var bc=yc;function xc(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}var Sc,Cc=class{constructor(e){Ss(this,Sc),Cs(this,Sc,new Set(e))}getLeadingWhitespaceCount(e){let t=xs(this,Sc),n=0;for(let r=0;r<e.length&&t.has(e.charAt(r));r++)n++;return n}getTrailingWhitespaceCount(e){let t=xs(this,Sc),n=0;for(let r=e.length-1;r>=0&&t.has(e.charAt(r));r--)n++;return n}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 xs(this,Sc).has(e.charAt(0))}hasTrailingWhitespace(e){return xs(this,Sc).has(fc(!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 n=`[${xc([...xs(this,Sc)].join(``))}]+`,r=new RegExp(t?`(${n})`:n,`u`);return e.split(r)}hasWhitespaceCharacter(e){let t=xs(this,Sc);return Array.prototype.some.call(e,e=>t.has(e))}hasNonWhitespaceCharacter(e){let t=xs(this,Sc);return Array.prototype.some.call(e,e=>!t.has(e))}isWhitespaceOnly(e){let t=xs(this,Sc);return Array.prototype.every.call(e,e=>t.has(e))}};Sc=new WeakMap;var wc=new Cc([` `,` `,`\f`,`\r`,` `]),Tc=class extends Error{name=`UnexpectedNodeError`;constructor(e,t,n=`type`){super(`Unexpected ${t} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}};function Ec(e){return e?.type===`front-matter`}var Dc=Ec,Oc=new Set([`sourceSpan`,`startSourceSpan`,`endSourceSpan`,`nameSpan`,`valueSpan`,`keySpan`,`tagDefinition`,`tokens`,`valueTokens`,`switchValueSourceSpan`,`expSourceSpan`,`valueSourceSpan`]),kc=new Set([`if`,`else if`,`for`,`switch`,`case`]);function Ac(e,t){var n;if(e.type===`text`||e.type===`comment`||Dc(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`&&(n=e.parameters)!=null&&n.children)for(let n of t.parameters.children)kc.has(e.name)?delete n.expression:n.expression=n.expression.trim();e.type===`angularIcuExpression`&&(t.switchValue=e.switchValue.trim()),e.type===`angularLetDeclarationInitializer`&&delete t.value}Ac.ignoredProperties=Oc;var jc=Ac;async function Mc(e,t){if(e.language===`yaml`){let n=e.value.trim(),r=n?await t(n,{parser:`yaml`}):``;return ec([e.startDelimiter,e.explicitLanguage,lc,r,r?lc:``,e.endDelimiter])}}var Nc=Mc;function Pc(e,t=!0){return[Xs([cc,e]),t?cc:``]}function Fc(e,t){let n=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 n&&(n.type===`ObjectExpression`||n.type===`ArrayExpression`||(t.parser===`__vue_expression`||t.parser===`__vue_ts_expression`)&&(n.type===`TemplateLiteral`||n.type===`StringLiteral`))}async function Ic(e,t,n,r){n={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...n};let i=!0;r&&(n.__onHtmlBindingRoot=(e,t)=>{i=r(e,t)});let a=await t(e,n,t);return i?Qs(a):Pc(a)}function Lc(e,t,n,r){let{node:i}=n,a=r.originalText.slice(i.sourceSpan.start.offset,i.sourceSpan.end.offset);return/^\s*$/u.test(a)?``:Ic(a,e,{parser:`__ng_directive`,__isInHtmlAttribute:!1},Fc)}var Rc=Lc,zc=e=>String(e).split(/[/\\]/u).pop();function Bc(e,t){if(!t)return;let n=zc(t).toLowerCase();return e.find(({filenames:e})=>e?.some(e=>e.toLowerCase()===n))??e.find(({extensions:e})=>e?.some(e=>n.endsWith(e)))}function Vc(e,t){if(t)return e.find(({name:e})=>e.toLowerCase()===t)??e.find(({aliases:e})=>e?.includes(t))??e.find(({extensions:e})=>e?.includes(`.${t}`))}function Hc(e,t){let n=e.plugins.flatMap(e=>e.languages??[]);return(Vc(n,t.language)??Bc(n,t.physicalFile)??Bc(n,t.file)??(t.physicalFile,void 0))?.parsers[0]}var Uc=Hc,Wc=`inline`,Gc={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`},Kc=`normal`,qc={listing:`pre`,plaintext:`pre`,pre:`pre`,xmp:`pre`,nobr:`nowrap`,table:`initial`,textarea:`pre-wrap`};function Jc(e){return e.type===`element`&&!e.hasExplicitNamespace&&![`html`,`svg`].includes(e.namespace)}var Yc=Jc,Xc=e=>Ts(!1,e,/^[\t\f\r ]*\n/gu,``),Zc=e=>Xc(wc.trimEnd(e)),Qc=e=>{let t=e,n=wc.getLeadingWhitespace(t);n&&(t=t.slice(n.length));let r=wc.getTrailingWhitespace(t);return r&&(t=t.slice(0,-r.length)),{leadingWhitespace:n,trailingWhitespace:r,text:t}};function $c(e,t){return!!(e.type===`ieConditionalComment`&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||e.type===`ieConditionalComment`&&!e.complete||Ml(e)&&e.children.some(e=>e.type!==`text`&&e.type!==`interpolation`)||Ul(e,t)&&!rl(e)&&e.type!==`interpolation`)}function el(e){return e.type===`attribute`||!e.parent||!e.prev?!1:tl(e.prev)}function tl(e){return e.type===`comment`&&e.value.trim()===`prettier-ignore`}function nl(e){return e.type===`text`||e.type===`comment`}function rl(e){return e.type===`element`&&(e.fullName===`script`||e.fullName===`style`||e.fullName===`svg:style`||e.fullName===`svg:script`||Yc(e)&&(e.name===`script`||e.name===`style`))}function il(e){return e.children&&!rl(e)}function al(e){return rl(e)||e.type===`interpolation`||ol(e)}function ol(e){return Fl(e).startsWith(`pre`)}function sl(e,t){var n;let r=i();if(r&&!e.prev&&(n=e.parent?.tagDefinition)!=null&&n.ignoreFirstLf)return e.type===`interpolation`;return r;function i(){return Dc(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:Ml(e.parent)?!0:!(!e.prev&&(e.parent.type===`root`||Ml(e)&&e.parent||rl(e.parent)||Vl(e.parent,t)||!Dl(e.parent.cssDisplay))||e.prev&&!Al(e.prev.cssDisplay))}}function cl(e,t){return Dc(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:Ml(e.parent)?!0:!(!e.next&&(e.parent.type===`root`||Ml(e)&&e.parent||rl(e.parent)||Vl(e.parent,t)||!Ol(e.parent.cssDisplay))||e.next&&!kl(e.next.cssDisplay))}function ll(e){return jl(e.cssDisplay)&&!rl(e)}function ul(e){return Dc(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line}function dl(e){return fl(e)||e.type===`element`&&e.children.length>0&&([`body`,`script`,`style`].includes(e.name)||e.children.some(e=>bl(e)))||e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.type!==`text`&&gl(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||_l(e.lastChild))}function fl(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 pl(e){return vl(e)||e.prev&&ml(e.prev)||hl(e)}function ml(e){return vl(e)||e.type===`element`&&e.fullName===`br`||hl(e)}function hl(e){return gl(e)&&_l(e)}function gl(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 _l(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 vl(e){switch(e.type){case`ieConditionalComment`:case`comment`:case`directive`:return!0;case`element`:return[`script`,`select`].includes(e.name)}return!1}function yl(e){return e.lastChild?yl(e.lastChild):e}function bl(e){return e.children?.some(e=>e.type!==`text`)}function xl(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 Sl(e,t){let{name:n,attrMap:r}=e;if(n!==`script`||Object.prototype.hasOwnProperty.call(r,`src`))return;let{type:i,lang:a}=e.attrMap;return!a&&!i?`babel`:Uc(t,{language:a})??xl(i)}function Cl(e,t){if(!Ul(e,t))return;let{attrMap:n}=e;if(Object.prototype.hasOwnProperty.call(n,`src`))return;let{type:r,lang:i}=n;return Uc(t,{language:i})??xl(r)}function wl(e,t){if(e.name!==`style`)return;let{lang:n}=e.attrMap;return n?Uc(t,{language:n}):`css`}function Tl(e,t){return Sl(e,t)??wl(e,t)??Cl(e,t)}function El(e){return e===`block`||e===`list-item`||e.startsWith(`table`)}function Dl(e){return!El(e)&&e!==`inline-block`}function Ol(e){return!El(e)&&e!==`inline-block`}function kl(e){return!El(e)}function Al(e){return!El(e)}function jl(e){return!El(e)&&e!==`inline-block`}function Ml(e){return Fl(e).startsWith(`pre`)}function Nl(e,t){let n=e;for(;n;){if(t(n))return!0;n=n.parent}return!1}function Pl(e,t){if(Hl(e,t))return`block`;if(e.prev?.type===`comment`){let t=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);if(t)return t[1]}let n=!1;if(e.type===`element`&&e.namespace===`svg`)if(Nl(e,e=>e.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||Yc(e))&&Gc[e.name]||Wc}}function Fl(e){return e.type===`element`&&(!e.namespace||Yc(e))&&qc[e.name]||Kc}function Il(e){let t=1/0;for(let n of e.split(` `)){if(n.length===0)continue;let e=wc.getLeadingWhitespaceCount(n);if(e===0)return 0;n.length!==e&&e<t&&(t=e)}return t===1/0?0:t}function Ll(e,t=Il(e)){return t===0?e:e.split(` `).map(e=>e.slice(t)).join(` `)}function Rl(e){return Ts(!1,Ts(!1,e,`&apos;`,`'`),`&quot;`,`"`)}function zl(e){return Rl(e.value)}var Bl=new Set([`template`,`style`,`script`]);function Vl(e,t){return Hl(e,t)&&!Bl.has(e.fullName)}function Hl(e,t){return t.parser===`vue`&&e.type===`element`&&e.parent.type===`root`&&e.fullName.toLowerCase()!==`html`}function Ul(e,t){return Hl(e,t)&&(Vl(e,t)||e.attrMap.lang&&e.attrMap.lang!==`html`)}function Wl(e){let t=e.fullName;return t.charAt(0)===`#`||t===`slot-scope`||t===`v-slot`||t.startsWith(`v-slot:`)}function Gl(e,t){let n=e.parent;if(!Hl(n,t))return!1;let r=n.fullName,i=e.fullName;return r===`script`&&i===`setup`||r===`style`&&i===`vars`}function Kl(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?gc(t):gc(Ll(Zc(t)),lc):dc(sc,wc.split(t))}function ql(e,t){return Hl(e,t)&&e.name===`script`}var Jl=/\{\{(.+?)\}\}/su;async function Yl(e,t){let n=[];for(let[r,i]of e.split(Jl).entries())if(r%2==0)n.push(gc(i));else try{n.push(Qs([`{{`,Xs([sc,await Ic(i,t,{parser:`__ng_interpolation`,__isInHtmlInterpolation:!0})]),sc,`}}`]))}catch{n.push(`{{`,gc(i),`}}`)}return n}function Xl({parser:e}){return(t,n,r)=>Ic(zl(r.node),t,{parser:e},Fc)}var Zl=Xl({parser:`__ng_action`}),Ql=Xl({parser:`__ng_binding`}),$l=Xl({parser:`__ng_directive`});function eu(e,t){if(t.parser!==`angular`)return;let{node:n}=e,r=n.fullName;if(r.startsWith(`(`)&&r.endsWith(`)`)||r.startsWith(`on-`))return Zl;if(r.startsWith(`[`)&&r.endsWith(`]`)||/^bind(?:on)?-/u.test(r)||/^ng-(?:if|show|hide|class|style)$/u.test(r))return Ql;if(r.startsWith(`*`))return $l;let i=zl(n);if(/^i18n(?:-.+)?$/u.test(r))return()=>Pc(tc(Kl(n,i.trim())),!i.includes(`@@`));if(Jl.test(i))return e=>Yl(i,e)}var tu=eu;function nu(e,t){let{node:n}=e,r=zl(n);if(n.fullName===`class`&&!t.parentParser&&!r.includes(`{{`))return()=>r.trim().split(/\s+/u).join(` `)}var ru=nu;function iu(e){return e===` `||e===` `||e===`\f`||e===`\r`||e===` `}var au=/^[ \t\n\r\u000c]+/,ou=/^[, \t\n\r\u000c]+/,su=/^[^ \t\n\r\u000c]+/,cu=/[,]+$/,lu=/^\d+$/,uu=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function du(e){let t=e.length,n,r,i,a,o,s=0,c;function l(t){let n,r=t.exec(e.substring(s));if(r)return[n]=r,s+=n.length,n}let u=[];for(;;){if(l(ou),s>=t){if(u.length===0)throw Error(`Must contain one or more image candidate strings.`);return u}c=s,n=l(su),r=[],n.slice(-1)===`,`?(n=n.replace(cu,``),f()):d()}function d(){for(l(au),i=``,a=`in descriptor`;;){if(o=e.charAt(s),a===`in descriptor`)if(iu(o))i&&(r.push(i),i=``,a=`after descriptor`);else if(o===`,`){s+=1,i&&r.push(i),f();return}else if(o===`(`)i+=o,a=`in parens`;else if(o===``){i&&r.push(i),f();return}else i+=o;else if(a===`in parens`)if(o===`)`)i+=o,a=`in descriptor`;else if(o===``){r.push(i),f();return}else i+=o;else if(a===`after descriptor`&&!iu(o))if(o===``){f();return}else a=`in descriptor`,--s;s+=1}}function f(){let t=!1,i,a,o,s,l={},d,f,p,m,h;for(s=0;s<r.length;s++)d=r[s],f=d[d.length-1],p=d.substring(0,d.length-1),m=parseInt(p,10),h=parseFloat(p),lu.test(p)&&f===`w`?((i||a)&&(t=!0),m===0?t=!0:i=m):uu.test(p)&&f===`x`?((i||a||o)&&(t=!0),h<0?t=!0:a=h):lu.test(p)&&f===`h`?((o||a)&&(t=!0),m===0?t=!0:o=m):t=!0;if(!t)l.source={value:n,startOffset:c},i&&(l.width={value:i}),a&&(l.density={value:a}),o&&(l.height={value:o}),u.push(l);else throw Error(`Invalid srcset descriptor found in "${e}" at "${d}".`)}}var fu=du;function pu(e){if(e.node.fullName===`srcset`&&(e.parent.fullName===`img`||e.parent.fullName===`source`))return()=>gu(zl(e.node))}var mu={width:`w`,height:`h`,density:`x`},hu=Object.keys(mu);function gu(e){let t=fu(e),n=hu.filter(e=>t.some(t=>Object.prototype.hasOwnProperty.call(t,e)));if(n.length>1)throw Error(`Mixed descriptor in srcset is not supported`);let[r]=n,i=mu[r],a=t.map(e=>e.source.value),o=Math.max(...a.map(e=>e.length)),s=t.map(e=>e[r]?String(e[r].value):``),c=s.map(e=>{let t=e.indexOf(`.`);return t===-1?e.length:t}),l=Math.max(...c);return Pc(dc([`,`,sc],a.map((e,t)=>{let n=[e],r=s[t];if(r){let a=o-e.length+1,s=l-c[t],u=` `.repeat(a+s);n.push(nc(u,` `),r+i)}return n})))}var _u=pu;function vu(e,t){let{node:n}=e,r=zl(e.node).trim();if(n.fullName===`style`&&!t.parentParser&&!r.includes(`{{`))return async e=>Pc(await e(r,{parser:`css`,__isHTMLStyleAttribute:!0}))}var yu=new WeakMap;function bu(e,t){let{root:n}=e;return yu.has(n)||yu.set(n,n.children.some(e=>ql(e,t)&&[`ts`,`typescript`].includes(e.attrMap.lang))),yu.get(n)}var xu=bu;function Su(e,t,n){let{node:r}=n;return Ic(`type T<${zl(r)}> = any`,e,{parser:`babel-ts`,__isEmbeddedTypescriptGenericParameters:!0},Fc)}function Cu(e,t,{parseWithTs:n}){return Ic(`function _(${e}) {}`,t,{parser:n?`babel-ts`:`babel`,__isVueBindings:!0})}function wu(e){let t=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/u,n=/^[$_a-z][\w$]*(?:\.[$_a-z][\w$]*|\['[^']*'\]|\["[^"]*"\]|\[\d+\]|\[[$_a-z][\w$]*\])*$/iu,r=e.trim();return t.test(r)||n.test(r)}async function Tu(e,t,n,r){let{left:i,operator:a,right:o}=Eu(zl(n.node)),s=xu(n,r);return[Qs(await Ic(`function _(${i}) {}`,e,{parser:s?`babel-ts`:`babel`,__isVueForBindingLeft:!0})),` `,a,` `,await Ic(o,e,{parser:s?`__ts_expression`:`__js_expression`})]}function Eu(e){let t=/(.*?)\s+(in|of)\s+(.*)/su,n=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,r=/^\(|\)$/gu,i=e.match(t);if(!i)return;let a={};if(a.for=i[3].trim(),!a.for)return;let o=Ts(!1,i[1].trim(),r,``),s=o.match(n);s?(a.alias=o.replace(n,``),a.iterator1=s[1].trim(),s[2]&&(a.iterator2=s[2].trim())):a.alias=o;let c=[a.alias,a.iterator1,a.iterator2];if(!c.some((e,t)=>!e&&(t===0||c.slice(t+1).some(Boolean))))return{left:c.filter(Boolean).join(`,`),operator:i[2],right:a.for}}function Du(e,t){if(t.parser!==`vue`)return;let{node:n}=e,r=n.fullName;if(r===`v-for`)return Tu;if(r===`generic`&&ql(n.parent,t))return Su;let i=zl(n),a=xu(e,t);if(Wl(n)||Gl(n,t))return e=>Cu(i,e,{parseWithTs:a});if(r.startsWith(`@`)||r.startsWith(`v-on:`))return e=>Ou(i,e,{parseWithTs:a});if(r.startsWith(`:`)||r.startsWith(`v-bind:`))return e=>ku(i,e,{parseWithTs:a});if(r.startsWith(`v-`))return e=>Au(i,e,{parseWithTs:a})}function Ou(e,t,{parseWithTs:n}){return wu(e)?Au(e,t,{parseWithTs:n}):Ic(e,t,{parser:n?`__vue_ts_event_binding`:`__vue_event_binding`},Fc)}function ku(e,t,{parseWithTs:n}){return Ic(e,t,{parser:n?`__vue_ts_expression`:`__vue_expression`},Fc)}function Au(e,t,{parseWithTs:n}){return Ic(e,t,{parser:n?`__ts_expression`:`__js_expression`},Fc)}var ju=Du;function Mu(e,t){let{node:n}=e;if(n.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(t.originalText.slice(n.valueSpan.start.offset,n.valueSpan.end.offset))||t.parser===`lwc`&&n.value.startsWith(`{`)&&n.value.endsWith(`}`))return[n.rawName,`=`,n.value];for(let n of[_u,vu,ru,ju,tu]){let r=n(e,t);if(r)return Nu(r)}}}function Nu(e){return async(t,n,r,i)=>{let a=await e(t,n,r,i);if(a)return a=pc(a,e=>typeof e==`string`?Ts(!1,e,`"`,`&quot;`):e),[r.node.rawName,`="`,Qs(a),`"`]}}var Pu=Mu,Fu=new Proxy(()=>{},{get:()=>Fu}),Iu=Fu;function Lu(e){return Array.isArray(e)&&e.length>0}var Ru=Lu;function zu(e){return e.sourceSpan.start.offset}function Bu(e){return e.sourceSpan.end.offset}function Vu(e,t){return[e.isSelfClosing?``:Hu(e,t),Uu(e,t)]}function Hu(e,t){return e.lastChild&&Zu(e.lastChild)?``:[Wu(e,t),Ku(e,t)]}function Uu(e,t){return(e.next?Yu(e.next):Xu(e.parent))?``:[qu(e,t),Gu(e,t)]}function Wu(e,t){return Xu(e)?qu(e.lastChild,t):``}function Gu(e,t){return Zu(e)?Ku(e.parent,t):Qu(e)?od(e.next):``}function Ku(e,t){if(Iu(!e.isSelfClosing),Ju(e,t))return``;switch(e.type){case`ieConditionalComment`:return`<!`;case`element`:if(e.hasHtmComponentClosingTag)return`<//`;default:return`</${e.rawName}`}}function qu(e,t){if(Ju(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 Ju(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(el(e)||$c(e.parent,t))}function Yu(e){return e.prev&&e.prev.type!==`docType`&&e.type!==`angularControlFlowBlock`&&!nl(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function Xu(e){return e.lastChild?.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!nl(yl(e.lastChild))&&!Ml(e)}function Zu(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&nl(yl(e))}function Qu(e){return e.next&&!nl(e.next)&&nl(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function $u(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return t?t[1]?t[1].split(/\s+/u):!0:!1}function ed(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function td(e,t,n){let{node:r}=e;if(!Ru(r.attrs))return r.isSelfClosing?` `:``;let i=r.prev?.type===`comment`&&$u(r.prev.value),a=typeof i==`boolean`?()=>i:Array.isArray(i)?e=>i.includes(e.rawName):()=>!1,o=e.map(({node:e})=>a(e)?gc(t.originalText.slice(zu(e),Bu(e))):n(),`attrs`),s=r.type===`element`&&r.fullName===`script`&&r.attrs.length===1&&r.attrs[0].fullName===`src`&&r.children.length===0,c=t.singleAttributePerLine&&r.attrs.length>1&&!Hl(r,t)?lc:sc,l=[Xs([s?` `:sc,dc(c,o)])];return r.firstChild&&ed(r.firstChild)||r.isSelfClosing&&Xu(r.parent)||s?l.push(r.isSelfClosing?` `:``):l.push(t.bracketSameLine?r.isSelfClosing?` `:``:r.isSelfClosing?sc:cc),l}function nd(e){return e.firstChild&&ed(e.firstChild)?``:sd(e)}function rd(e,t,n){let{node:r}=e;return[id(r,t),td(e,t,n),r.isSelfClosing?``:nd(r)]}function id(e,t){return e.prev&&Qu(e.prev)?``:[ad(e,t),od(e)]}function ad(e,t){return ed(e)?sd(e.parent):Yu(e)?qu(e.prev,t):``}function od(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 sd(e){switch(Iu(!e.isSelfClosing),e.type){case`ieConditionalComment`:return`]>`;case`element`:if(e.condition)return`><!--<![endif]-->`;default:return`>`}}function cd(e,t){if(!e.endSourceSpan)return``;let n=e.startSourceSpan.end.offset;e.firstChild&&ed(e.firstChild)&&(n-=sd(e).length);let r=e.endSourceSpan.start.offset;return e.lastChild&&Zu(e.lastChild)?r+=Ku(e,t).length:Xu(e)&&(r-=qu(e.lastChild,t).length),t.originalText.slice(n,r)}var ld=cd,ud=new Set([`if`,`else if`,`for`,`switch`,`case`]);function dd(e,t){let{node:n}=e;switch(n.type){case`element`:if(rl(n)||n.type===`interpolation`)return;if(!n.isSelfClosing&&Ul(n,t)){let r=Tl(n,t);return r?async(i,a)=>{let o=ld(n,t),s=/^\s*$/u.test(o),c=``;return s||=(c=await i(Zc(o),{parser:r,__embeddedInHtml:!0}),c===``),[ad(n,t),Qs(rd(e,t,a)),s?``:lc,c,s?``:lc,Vu(n,t),Gu(n,t)]}:void 0}break;case`text`:if(rl(n.parent)){let e=Tl(n.parent,t);if(e)return async r=>{let i=e===`markdown`?Ll(n.value.replace(/^[^\S\n]*\n/u,``)):n.value,a={parser:e,__embeddedInHtml:!0};if(t.parser===`html`&&e===`babel`){let e=`script`,{attrMap:t}=n.parent;t&&(t.type===`module`||t.type===`text/babel`&&t[`data-type`]===`module`)&&(e=`module`),a.__babelSourceType=e}return[ic,ad(n,t),await r(i,a),Gu(n,t)]}}else if(n.parent.type===`interpolation`)return async r=>{let i={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return t.parser===`angular`?i.parser=`__ng_interpolation`:t.parser===`vue`?i.parser=xu(e,t)?`__vue_ts_expression`:`__vue_expression`:i.parser=`__js_expression`,[Xs([sc,await r(n.value,i)]),n.parent.next&&Yu(n.parent.next)?` `:sc]};break;case`attribute`:return Pu(e,t);case`front-matter`:return e=>Nc(n,e);case`angularControlFlowBlockParameters`:return ud.has(e.parent.name)?Rc:void 0;case`angularLetDeclarationInitializer`:return e=>Ic(n.value,e,{parser:`__ng_binding`,__isInHtmlAttribute:!1})}}var fd=dd,pd=null;function md(e){if(pd!==null&&typeof pd.property){let e=pd;return pd=md.prototype=null,e}return pd=md.prototype=e??Object.create(null),new md}var hd=10;for(let e=0;e<=hd;e++)md();function gd(e){return md(e)}function _d(e,t=`type`){gd(e);function n(n){let r=n[t],i=e[r];if(!Array.isArray(i))throw Object.assign(Error(`Missing visitor keys for '${r}'.`),{node:n});return i}return n}var vd=_d({"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:[],angularLetDeclaration:[`init`],angularLetDeclarationInitializer:[],angularIcuExpression:[`cases`],angularIcuCase:[`expression`]});function yd(e){return/^\s*<!--\s*@(?:format|prettier)\s*-->/u.test(e)}function bd(e){return`<!-- @format --> `+e}var xd=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 Sd(e){let t=Bu(e);return e.type===`element`&&!e.endSourceSpan&&Ru(e.children)?Math.max(t,Sd(fc(!1,e.children,-1))):t}function Cd(e,t,n){let r=e.node;if(el(r)){let e=Sd(r);return[ad(r,t),gc(wc.trimEnd(t.originalText.slice(zu(r)+(r.prev&&Qu(r.prev)?od(r).length:0),e-(r.next&&Yu(r.next)?qu(r,t).length:0)))),Gu(r,t)]}return n()}function wd(e,t){return nl(e)&&nl(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?pl(t)?lc:sc:``:pl(t)?lc:cc:Qu(e)&&(el(t)||t.firstChild||t.isSelfClosing||t.type===`element`&&t.attrs.length>0)||e.type===`element`&&e.isSelfClosing&&Yu(t)?``:!t.isLeadingSpaceSensitive||pl(t)||Yu(t)&&e.lastChild&&Zu(e.lastChild)&&e.lastChild.lastChild&&Zu(e.lastChild.lastChild)?lc:t.hasLeadingSpaces?sc:cc}function Td(e,t,n){let{node:r}=e;if(fl(r))return[ic,...e.map(e=>{let r=e.node,i=r.prev?wd(r.prev,r):``;return[i?[i,ul(r.prev)?lc:``]:``,Cd(e,t,n)]},`children`)];let i=r.children.map(()=>Symbol(``));return e.map((e,r)=>{let a=e.node;if(nl(a)){if(a.prev&&nl(a.prev)){let r=wd(a.prev,a);if(r)return ul(a.prev)?[lc,lc,Cd(e,t,n)]:[r,Cd(e,t,n)]}return Cd(e,t,n)}let o=[],s=[],c=[],l=[],u=a.prev?wd(a.prev,a):``,d=a.next?wd(a,a.next):``;return u&&(ul(a.prev)?o.push(lc,lc):u===lc?o.push(lc):nl(a.prev)?s.push(u):s.push(nc(``,cc,{groupId:i[r-1]}))),d&&(ul(a)?nl(a.next)&&l.push(lc,lc):d===lc?nl(a.next)&&l.push(lc):c.push(d)),[...o,Qs([...s,Qs([Cd(e,t,n),...c],{id:i[r]})]),...l]},`children`)}function Ed(e,t,n){let{node:r}=e,i=[];Od(e)&&i.push(`} `),i.push(`@`,r.name),r.parameters&&i.push(` (`,Qs(n(`parameters`)),`)`),i.push(` {`);let a=Dd(r);return r.children.length>0?(r.firstChild.hasLeadingSpaces=!0,r.lastChild.hasTrailingSpaces=!0,i.push(Xs([lc,Td(e,t,n)])),a&&i.push(lc,`}`)):a&&i.push(`}`),Qs(i,{shouldBreak:!0})}function Dd(e){var t;return!(e.next?.type===`angularControlFlowBlock`&&(t=xd.get(e.name))!=null&&t.has(e.next.name))}function Od(e){let{previous:t}=e;return t?.type===`angularControlFlowBlock`&&!el(t)&&!Dd(t)}function kd(e,t,n){return[Xs([cc,dc([`;`,sc],e.map(n,`children`))]),cc]}function Ad(e,t,n){let{node:r}=e;return[id(r,t),Qs([r.switchValue.trim(),`, `,r.clause,r.cases.length>0?[`,`,Xs([sc,dc(sc,e.map(n,`cases`))])]:``,cc]),Uu(r,t)]}function jd(e,t,n){let{node:r}=e;return[r.value,` {`,Qs([Xs([cc,e.map(({node:e})=>e.type===`text`&&!wc.trim(e.value)?``:n(),`expression`)]),cc]),`}`]}function Md(e,t,n){let{node:r}=e;if($c(r,t))return[ad(r,t),Qs(rd(e,t,n)),gc(ld(r,t)),...Vu(r,t),Gu(r,t)];let i=r.children.length===1&&(r.firstChild.type===`interpolation`||r.firstChild.type===`angularIcuExpression`)&&r.firstChild.isLeadingSpaceSensitive&&!r.firstChild.hasLeadingSpaces&&r.lastChild.isTrailingSpaceSensitive&&!r.lastChild.hasTrailingSpaces,a=Symbol(`element-attr-group-id`),o=i=>Qs([Qs(rd(e,t,n),{id:a}),i,Vu(r,t)]);return r.children.length===0?o(r.hasDanglingSpaces&&r.isDanglingSpaceSensitive?sc:``):o([dl(r)?ic:``,(e=>i?rc(e,{groupId:a}):(rl(r)||Vl(r,t))&&r.parent.type===`root`&&t.parser===`vue`&&!t.vueIndentScriptAndStyle?e:Xs(e))([i?nc(cc,``,{groupId:a}):r.firstChild.hasLeadingSpaces&&r.firstChild.isLeadingSpaceSensitive?sc:r.firstChild.type===`text`&&r.isWhitespaceSensitive&&r.isIndentationSensitive?$s(cc):cc,Td(e,t,n)]),(r.next?Yu(r.next):Xu(r.parent))?r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?` `:``:i?nc(cc,``,{groupId:a}):r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?sc:(r.lastChild.type===`comment`||r.lastChild.type===`text`&&r.isWhitespaceSensitive&&r.isIndentationSensitive)&&RegExp(`\\n[\\t ]{${t.tabWidth*(e.ancestors.length-1)}}$`,`u`).test(r.lastChild.value)?``:cc])}function Nd(e){return e>=9&&e<=32||e==160}function Pd(e){return 48<=e&&e<=57}function Fd(e){return e>=97&&e<=122||e>=65&&e<=90}function Id(e){return e>=97&&e<=102||e>=65&&e<=70||Pd(e)}function Ld(e){return e===10||e===13}function Rd(e){return 48<=e&&e<=55}function zd(e){return e===39||e===34||e===96}var Bd=/-+([a-z0-9])/g;function Vd(e){return e.replace(Bd,(...e)=>e[1].toUpperCase())}var Hd=class e{constructor(e,t,n,r){this.file=e,this.offset=t,this.line=n,this.col=r}toString(){return this.offset==null?this.file.url:`${this.file.url}@${this.line}:${this.col}`}moveBy(t){let n=this.file.content,r=n.length,i=this.offset,a=this.line,o=this.col;for(;i>0&&t<0;)if(i--,t++,n.charCodeAt(i)==10){a--;let e=n.substring(0,i-1).lastIndexOf(` `);o=e>0?i-e:i}else o--;for(;i<r&&t>0;){let e=n.charCodeAt(i);i++,t--,e==10?(a++,o=0):o++}return new e(this.file,i,a,o)}getContext(e,t){let n=this.file.content,r=this.offset;if(r!=null){r>n.length-1&&(r=n.length-1);let i=r,a=0,o=0;for(;a<e&&r>0&&(r--,a++,!(n[r]==` `&&++o==t)););for(a=0,o=0;a<e&&i<n.length-1&&(i++,a++,!(n[i]==` `&&++o==t)););return{before:n.substring(r,this.offset),after:n.substring(this.offset,i+1)}}return null}},Ud=class{constructor(e,t){this.content=e,this.url=t}},Wd=class{constructor(e,t,n=e,r=null){this.start=e,this.end=t,this.fullStart=n,this.details=r}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},Gd;(function(e){e[e.WARNING=0]=`WARNING`,e[e.ERROR=1]=`ERROR`})(Gd||={});var Kd=class{constructor(e,t,n=Gd.ERROR){this.span=e,this.msg=t,this.level=n}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${Gd[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:``;return`${this.contextualMessage()}: ${this.span.start}${e}`}},qd=[Yd,Xd,Qd,ef,tf,af,nf,rf,of,$d];function Jd(e,t){for(let n of qd)n(e,t);return e}function Yd(e){e.walk(e=>{if(e.type===`element`&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&e.children[0].type===`text`&&e.children[0].value[0]===` `){let t=e.children[0];t.value.length===1?e.removeChild(t):t.value=t.value.slice(1)}})}function Xd(e){let t=e=>e.type===`element`&&e.prev?.type===`ieConditionalStartComment`&&e.prev.sourceSpan.end.offset===e.startSourceSpan.start.offset&&e.firstChild?.type===`ieConditionalEndComment`&&e.firstChild.sourceSpan.start.offset===e.startSourceSpan.end.offset;e.walk(e=>{if(e.children)for(let n=0;n<e.children.length;n++){let r=e.children[n];if(!t(r))continue;let i=r.prev,a=r.firstChild;e.removeChild(i),n--;let o=new Wd(i.sourceSpan.start,a.sourceSpan.end),s=new Wd(o.start,r.sourceSpan.end);r.condition=i.condition,r.sourceSpan=s,r.startSourceSpan=o,r.removeChild(a)}})}function Zd(e,t,n){e.walk(e=>{if(e.children)for(let r=0;r<e.children.length;r++){let i=e.children[r];if(i.type!==`text`&&!t(i))continue;i.type!==`text`&&(i.type=`text`,i.value=n(i));let a=i.prev;!a||a.type!==`text`||(a.value+=i.value,a.sourceSpan=new Wd(a.sourceSpan.start,i.sourceSpan.end),e.removeChild(i),r--)}})}function Qd(e){return Zd(e,e=>e.type===`cdata`,e=>`<![CDATA[${e.value}]]>`)}function $d(e){let t=e=>e.type===`element`&&e.attrs.length===0&&e.children.length===1&&e.firstChild.type===`text`&&!wc.hasWhitespaceCharacter(e.children[0].value)&&!e.firstChild.hasLeadingSpaces&&!e.firstChild.hasTrailingSpaces&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces&&e.prev?.type===`text`&&e.next?.type===`text`;e.walk(e=>{if(e.children)for(let n=0;n<e.children.length;n++){let r=e.c