regor 1.1.8 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
- var qr=Object.defineProperty,zr=Object.defineProperties;var Kr=Object.getOwnPropertyDescriptors;var wn=Object.getOwnPropertySymbols;var Wr=Object.prototype.hasOwnProperty,Gr=Object.prototype.propertyIsEnumerable;var at=Math.pow,$t=(t,e,n)=>e in t?qr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ct=(t,e)=>{for(var n in e||(e={}))Wr.call(e,n)&&$t(t,n,e[n]);if(wn)for(var n of wn(e))Gr.call(e,n)&&$t(t,n,e[n]);return t},On=(t,e)=>zr(t,Kr(e));var m=(t,e,n)=>$t(t,typeof e!="symbol"?e+"":e,n);var B=t=>typeof t=="function",P=t=>typeof t=="string",An=t=>typeof t=="undefined",ee=t=>t==null||typeof t=="undefined",q=t=>typeof t!="string"||!(t!=null&&t.trim()),Jr=Object.prototype.toString,Ft=t=>Jr.call(t),he=t=>Ft(t)==="[object Map]",Y=t=>Ft(t)==="[object Set]",qt=t=>Ft(t)==="[object Date]",Xe=t=>typeof t=="symbol",T=Array.isArray,A=t=>t!==null&&typeof t=="object";var Nn={0:"createApp can't find root element. You must define either a valid `selector` or an `element`. Example: createApp({}, {selector: '#app', html: '...'})",1:t=>`Component template cannot be found. selector: ${t} .`,2:"Use composables in scope. usage: useScope(() => new MyApp()).",3:t=>`${t} requires ref source argument`,4:"computed is readonly.",5:"persist requires a string key."},I=(t,...e)=>{let n=Nn[t];return new Error(B(n)?n.call(Nn,...e):n)};var Ie=Symbol(":regor");var we=t=>{let e=t[Ie];if(e)return e;let n={unbinders:[],data:{}};return t[Ie]=n,n};var j=(t,e)=>{we(t).unbinders.push(e)};var pt=[],Mn=()=>{let t={onMounted:[],onUnmounted:[]};return pt.push(t),t},Oe=t=>{let e=pt[pt.length-1];if(!e&&!t)throw I(2);return e},Ln=t=>{let e=Oe();return t&&Kt(t),pt.pop(),e},zt=Symbol("csp"),Kt=t=>{let e=t,n=e[zt];if(n){let r=Oe();if(n===r)return;r.onMounted.length>0&&n.onMounted.push(...r.onMounted),r.onUnmounted.length>0&&n.onUnmounted.push(...r.onUnmounted);return}e[zt]=Oe()},ft=t=>t[zt];var J=(t,e)=>{var n;(n=Oe(e))==null||n.onUnmounted.push(t)};var lt=Symbol("ref"),Q=Symbol("sref"),mt=Symbol("raw");var g=t=>(t==null?void 0:t[Q])===1;var O=(t,e,n)=>{if(!g(t))throw I(3,"observe");n&&e(t());let o=t(void 0,void 0,0,e);return J(o,!0),o};var fe=t=>{let e=[t];for(;e.length>0;){let n=e.shift();Qr(n);let r=n.childNodes;if(r)for(let o of r)e.push(o)}},Qr=t=>{let e=t[Ie];if(e){for(let n of e.unbinders)n();e.unbinders.splice(0),delete t[Ie]}};var z=t=>{t.remove(),setTimeout(()=>fe(t),1)};var kn={8:t=>`Model binding requires a ref at ${t.outerHTML}`,7:t=>`Model binding is not supported on ${t.tagName} element at ${t.outerHTML}`,0:(t,e)=>`${t} binding expression is missing at ${e.outerHTML}`,1:(t,e,n)=>`invalid ${t} expression: ${e} at ${n.outerHTML}`,2:(t,e)=>`${t} requires object expression at ${e.outerHTML}`,3:(t,e)=>`${t} binder: key is empty on ${e.outerHTML}.`,4:(t,e,n,r)=>({msg:`Failed setting prop "${t}" on <${e.toLowerCase()}>: value ${n} is invalid.`,args:[r]}),5:(t,e)=>`${t} binding missing event type at ${e.outerHTML}`,6:(t,e)=>({msg:t,args:[e]})},M=(t,...e)=>{let n=kn[t],r=B(n)?n.call(kn,...e):n,o=ut.warning;o&&(P(r)?o(r):o(r,...r.args))},ut={warning:console.warn};var yt={},dt={},In=1,Dn=t=>{let e=(In++).toString();return yt[e]=t,dt[e]=0,e},Wt=t=>{dt[t]+=1},Gt=t=>{--dt[t]===0&&(delete yt[t],delete dt[t])},Un=t=>yt[t],Jt=()=>In!==1&&Object.keys(yt).length>0,Ye="r-switch",Xr=t=>{let e=t.filter(r=>Ae(r)).map(r=>[...r.querySelectorAll("[r-switch]")].map(o=>o.getAttribute(Ye))),n=new Set;return e.forEach(r=>{r.forEach(o=>o&&n.add(o))}),[...n]},De=(t,e)=>{if(!Jt())return;let n=Xr(e);n.length!==0&&(n.forEach(Wt),j(t,()=>{n.forEach(Gt)}))};var Qt=(t,e,n,r)=>{let o=[];for(let s of t){let i=s.cloneNode(!0);n.insertBefore(i,r),o.push(i)}be(e,o)},Xt=Symbol("r-if"),Hn=Symbol("r-else"),_n=t=>t[Hn]===1,ht=class{constructor(e){m(this,"p");m(this,"P");m(this,"q");m(this,"K");m(this,"z");m(this,"b");m(this,"T");this.p=e,this.P=e.o.f.if,this.q=He(e.o.f.if),this.K=e.o.f.else,this.z=e.o.f.elseif,this.b=e.o.f.for,this.T=e.o.f.pre}qe(e,n){let r=e.parentElement;for(;r!==null&&r!==document.documentElement;){if(r.hasAttribute(n))return!0;r=r.parentElement}return!1}N(e){let n=e.hasAttribute(this.P),r=ge(e,this.q);for(let o of r)this.x(o);return n}W(e){return e[Xt]?!0:(e[Xt]=!0,ge(e,this.q).forEach(n=>n[Xt]=!0),!1)}x(e){if(e.hasAttribute(this.T)||this.W(e)||this.qe(e,this.b))return;let n=e.getAttribute(this.P);if(!n){M(0,this.P,e);return}e.removeAttribute(this.P),this.k(e,n)}B(e,n,r){let o=Ue(e),s=e.parentNode,i=document.createComment(`__begin__ :${n}${r!=null?r:""}`);s.insertBefore(i,e),De(i,o),o.forEach(c=>{z(c)}),e.remove(),n!=="if"&&(e[Hn]=1);let a=document.createComment(`__end__ :${n}${r!=null?r:""}`);return s.insertBefore(a,i.nextSibling),{nodes:o,parent:s,commentBegin:i,commentEnd:a}}pe(e,n){if(!e)return[];let r=e.nextElementSibling;if(e.hasAttribute(this.K)){e.removeAttribute(this.K);let{nodes:o,parent:s,commentBegin:i,commentEnd:a}=this.B(e,"else");return[{mount:()=>{Qt(o,this.p,s,a)},unmount:()=>{le(i,a)},isTrue:()=>!0,isMounted:!1}]}else{let o=e.getAttribute(this.z);if(!o)return[];e.removeAttribute(this.z);let{nodes:s,parent:i,commentBegin:a,commentEnd:c}=this.B(e,"elseif",` => ${o} `),p=this.p.h.C(o),f=p.value,l=this.pe(r,n),u=[];j(a,()=>{p.stop();for(let R of u)R();u.length=0});let d=O(f,n);return u.push(d),[{mount:()=>{Qt(s,this.p,i,c)},unmount:()=>{le(a,c)},isTrue:()=>!!f()[0],isMounted:!1}].concat(l)}}k(e,n){let r=e.nextElementSibling,{nodes:o,parent:s,commentBegin:i,commentEnd:a}=this.B(e,"if",` => ${n} `),c=this.p.h.C(n),p=c.value,f=!1,l=this.p.h,u=l.V(),y=()=>{l.v(u,()=>{if(p()[0])f||(Qt(o,this.p,s,a),f=!0),d.forEach(b=>{b.unmount(),b.isMounted=!1});else{le(i,a),f=!1;let b=!1;for(let L of d)!b&&L.isTrue()?(L.isMounted||(L.mount(),L.isMounted=!0),b=!0):(L.unmount(),L.isMounted=!1)}})},d=this.pe(r,y),R=[];j(i,()=>{c.stop();for(let b of R)b();R.length=0}),y();let E=O(p,y);R.push(E)}};var Ue=t=>{let e=ae(t)?t.content.childNodes:[t];return Array.from(e).filter(n=>{let r=n==null?void 0:n.tagName;return r!=="SCRIPT"&&r!=="STYLE"})},be=(t,e)=>{for(let n of e)!_n(n)&&t.G(n)},ge=(t,e)=>{var r;let n=t.querySelectorAll(e);return(r=t.matches)!=null&&r.call(t,e)?[t,...n]:n},ae=t=>t instanceof HTMLTemplateElement,Ae=t=>t.nodeType===Node.ELEMENT_NODE,Ze=t=>t.nodeType===Node.ELEMENT_NODE,Bn=t=>t instanceof HTMLSlotElement,me=t=>ae(t)?t.content.childNodes:t.childNodes,le=(t,e)=>{let n=t.nextSibling;for(;n!=null&&n!==e;){let r=n.nextSibling;z(n),n=r}},Te=(t,e)=>{Object.defineProperty(t,"value",{get(){return t()},set(n){if(e)throw new Error("value is readonly.");return t(n)},enumerable:!0,configurable:!1})},Pn=(t,e)=>{if(!t)return!1;if(t.startsWith("["))return t.substring(1,t.length-1);let n=e.length;return t.startsWith(e)?t.substring(n,t.length-n):!1},He=t=>`[${CSS.escape(t)}]`,gt=(t,e)=>(t.startsWith("@")&&(t=e.f.on+":"+t.slice(1)),t.includes("[")&&(t=t.replace(/[[\]]/g,e.f.dynamic)),t),Yt=t=>{let e=Object.create(null);return n=>e[n]||(e[n]=t(n))},Yr=/-(\w)/g,V=Yt(t=>t&&t.replace(Yr,(e,n)=>n?n.toUpperCase():"")),Zr=/\B([A-Z])/g,_e=Yt(t=>t&&t.replace(Zr,"-$1").toLowerCase()),et=Yt(t=>t&&t.charAt(0).toUpperCase()+t.slice(1));var te=[],jn=t=>{var e;te.length!==0&&((e=te[te.length-1])==null||e.add(t))},Be=t=>{if(!t)return()=>{};let e={stop:()=>{}};return eo(t,e),J(()=>e.stop(),!0),e.stop},eo=(t,e)=>{if(!t)return;let n=[],r=!1,o=()=>{for(let s of n)s();n=[],r=!0};e.stop=o;try{let s=new Set;if(te.push(s),t(i=>n.push(i)),r)return;for(let i of[...s]){let a=O(i,()=>{o(),Be(t)});n.push(a)}}finally{te.pop()}},Zt=t=>{let e=te.length,n=e>0&&te[e-1];try{return n&&te.push(null),t()}finally{n&&te.pop()}},en=t=>{try{let e=new Set;return te.push(e),{value:t(),refs:[...e]}}finally{te.pop()}};var tt=t=>!!t&&t[mt]===1;var W=(t,e,n)=>{if(!g(t))return;let r=t;if(r(void 0,e,1),!n)return;let o=r();if(o){if(T(o)||Y(o))for(let s of o)W(s,e,!0);else if(he(o))for(let s of o)W(s[0],e,!0),W(s[1],e,!0);if(A(o))for(let s in o)W(o[s],e,!0)}};function to(t,e,n){Object.defineProperty(t,e,{value:n,enumerable:!1,writable:!0,configurable:!0})}var Pe=(t,e,n)=>{n.forEach(function(r){let o=t[r];to(e,r,function(...i){let a=o.apply(this,i),c=this[Q];for(let p of c)W(p);return a})})},bt=(t,e)=>{Object.defineProperty(t,Symbol.toStringTag,{value:e,writable:!1,enumerable:!1,configurable:!0})};var Vn=Array.prototype,tn=Object.create(Vn),no=["push","pop","shift","unshift","splice","sort","reverse"];Pe(Vn,tn,no);var $n=Map.prototype,Tt=Object.create($n),ro=["set","clear","delete"];bt(Tt,"Map");Pe($n,Tt,ro);var Fn=Set.prototype,Et=Object.create(Fn),oo=["add","clear","delete"];bt(Et,"Set");Pe(Fn,Et,oo);var ce={},G=t=>{if(g(t)||tt(t))return t;let e={auto:!0,_value:t},n=c=>A(c)?Q in c?!0:T(c)?(Object.setPrototypeOf(c,tn),!0):Y(c)?(Object.setPrototypeOf(c,Et),!0):he(c)?(Object.setPrototypeOf(c,Tt),!0):!1:!1,r=n(t),o=new Set,s=(c,p)=>{if(ce.stack&&ce.stack.length){ce.stack[ce.stack.length-1].add(a);return}o.size!==0&&Zt(()=>{for(let f of[...o.keys()])o.has(f)&&f(c,p)})},i=c=>{let p=c[Q];p||(c[Q]=p=new Set),p.add(a)},a=(...c)=>{if(!(2 in c)){let f=c[0],l=c[1];return 0 in c?e._value===f||g(f)&&(f=f(),e._value===f)?f:(n(f)&&i(f),e._value=f,e.auto&&s(f,l),e._value):(jn(a),e._value)}switch(c[2]){case 0:{let f=c[3];if(!f)return()=>{};let l=u=>{o.delete(u)};return o.add(f),()=>{l(f)}}case 1:{let f=c[1],l=e._value;s(l,f);break}case 2:return o.size;case 3:{e.auto=!1;break}case 4:e.auto=!0}return e._value};return a[Q]=1,Te(a,!1),r&&i(t),a};var H=t=>g(t)?t():t;var nt=class{constructor(e){m(this,"E",[]);m(this,"_",new Map);m(this,"J");this.J=e}get S(){return this.E.length}Q(e){let n=this.J(e.value);n!==void 0&&this._.set(n,e)}X(e){var r;let n=this.J((r=this.E[e])==null?void 0:r.value);n!==void 0&&this._.delete(n)}static Ke(e,n){return{items:[],index:e,value:n,order:-1}}w(e){e.order=this.S,this.E.push(e),this.Q(e)}ze(e,n){let r=this.S;for(let o=e;o<r;++o)this.E[o].order=o+1;n.order=e,this.E.splice(e,0,n),this.Q(n)}I(e){return this.E[e]}Y(e,n){this.X(e),this.E[e]=n,this.Q(n),n.order=e}ce(e){this.X(e),this.E.splice(e,1);let n=this.S;for(let r=e;r<n;++r)this.E[r].order=r}fe(e){let n=this.S;for(let r=e;r<n;++r)this.X(r);this.E.splice(e)}Ct(e){return this._.has(e)}We(e){var r;let n=this._.get(e);return(r=n==null?void 0:n.order)!=null?r:-1}};var nn=Symbol("r-for"),Rt=class Rt{constructor(e){m(this,"p");m(this,"b");m(this,"Z");m(this,"T");this.p=e,this.b=e.o.f.for,this.Z=He(this.b),this.T=e.o.f.pre}N(e){let n=e.hasAttribute(this.b),r=ge(e,this.Z);for(let o of r)this.Ge(o);return n}W(e){return e[nn]?!0:(e[nn]=!0,ge(e,this.Z).forEach(n=>n[nn]=!0),!1)}Ge(e){if(e.hasAttribute(this.T)||this.W(e))return;let n=e.getAttribute(this.b);if(!n){M(0,this.b,e);return}e.removeAttribute(this.b),this.Je(e,n)}le(e){return ee(e)?[]:(B(e)&&(e=e()),Symbol.iterator in Object(e)?e:typeof e=="number"?(r=>({*[Symbol.iterator](){for(let o=1;o<=r;o++)yield o}}))(e):Object.entries(e))}Je(e,n){var oe;let r=this.Qe(n);if(!(r!=null&&r.list)){M(1,this.b,n,e);return}let o=this.p.o.f.key,s=this.p.o.f.keyBind,i=(oe=e.getAttribute(o))!=null?oe:e.getAttribute(s);e.removeAttribute(o),e.removeAttribute(s);let a=i?v=>{var N;return H((N=H(v))==null?void 0:N[i])}:v=>v,c=(v,N)=>a(v)===a(N),p=Ue(e),f=e.parentNode;if(!f)return;let l=`${this.b} => ${n}`,u=new Comment(`__begin__ ${l}`);f.insertBefore(u,e),De(u,p),p.forEach(v=>{z(v)}),e.remove();let y=new Comment(`__end__ ${l}`);f.insertBefore(y,u.nextSibling);let d=this.p,R=d.h,D=R.V(),E=(v,N,F)=>{let S=r.createContext(N,v),Z=nt.Ke(S.index,N);return R.v(D,()=>{R.w(S.ctx);let se=F.previousSibling,ke=[];for(let Qe of p){let h=Qe.cloneNode(!0);f.insertBefore(h,F),ke.push(h)}for(be(d,ke),se=se.nextSibling;se!==F;)Z.items.push(se),se=se.nextSibling}),Z},b=(v,N)=>{let F=k.I(v).items,S=F[F.length-1].nextSibling;for(let Z of F)z(Z);k.Y(v,E(v,N,S))},L=(v,N)=>{k.w(E(v,N,y))},U=v=>{for(let N of k.I(v).items)z(N)},re=v=>{let N=k.S;for(let F=v;F<N;++F)k.I(F).index(F)},We=v=>{let N=k.S;B(v)&&(v=v());let F=H(v[0]);if(T(F)&&F.length===0){le(u,y),k.fe(0);return}let S=0,Z=Number.MAX_SAFE_INTEGER,se=N,ke=this.p.o.forGrowThreshold,Qe=()=>k.S<se+ke;for(let w of this.le(v[0])){let C=()=>{if(S<N){let K=k.I(S++);if(c(K.value,w))return;let $=k.We(a(w));if($>=S&&$-S<10){if(--S,Z=Math.min(Z,S),U(S),k.ce(S),--N,$>S+1)for(let x=S;x<$-1&&x<N&&!c(k.I(S).value,w);)++x,U(S),k.ce(S),--N;C();return}Qe()?(k.ze(S-1,E(S,w,k.I(S-1).items[0])),Z=Math.min(Z,S-1),++N):b(S-1,w)}else L(S++,w)};C()}let h=S;for(N=k.S;S<N;)U(S++);k.fe(h),re(Z)},Ge=()=>{it=O(ye,We)},jt=()=>{Je.stop(),it()},Je=R.C(r.list),ye=Je.value,it,xe=0,k=new nt(a);for(let v of this.le(ye()[0]))k.w(E(xe++,v,y));j(u,jt),Ge()}Qe(e){var c,p;let n=Rt.Xe.exec(e);if(!n)return;let r=(n[1]+((c=n[2])!=null?c:"")).split(",").map(f=>f.trim()),o=r.length>1?r.length-1:-1,s=o!==-1&&(r[o]==="index"||(p=r[o])!=null&&p.startsWith("#"))?r[o]:"";s&&r.splice(o,1);let i=n[3];if(!i||r.length===0)return;let a=/[{[]/.test(e);return{list:i,createContext:(f,l)=>{let u={},y=H(f);if(!a&&r.length===1)u[r[0]]=f;else if(T(y)){let R=0;for(let D of r)u[D]=y[R++]}else for(let R of r)u[R]=y[R];let d={ctx:u,index:G(-1)};return s&&(d.index=u[s.startsWith("#")?s.substring(1):s]=G(l)),d}}}};m(Rt,"Xe",/\{?\[?\(?([^)}\]]+)\)?\]?\}?([^)]+)?\s+\b(?:in|of)\b\s+(.*)\s*$/);var Ct=Rt;var so=(t,e)=>{for(let n of t){let r=n.cloneNode(!0);e.appendChild(r)}},xt=class{constructor(e){m(this,"p");m(this,"D");m(this,"ue");this.p=e,this.D=e.o.f.is,this.ue=He(this.D)+", [is]"}N(e){let n=e.hasAttribute(this.D),r=ge(e,this.ue);for(let o of r)this.x(o);return n}x(e){let n=e.getAttribute(this.D);if(!n){if(n=e.getAttribute("is"),!n||!n.startsWith("regor:"))return;n=`'${n.slice(6)}'`,e.removeAttribute("is")}e.removeAttribute(this.D),this.k(e,n)}B(e,n){let r=Ue(e),o=e.parentNode,s=document.createComment(`__begin__ dynamic ${n!=null?n:""}`);o.insertBefore(s,e),De(s,r),r.forEach(a=>{z(a)}),e.remove();let i=document.createComment(`__end__ dynamic ${n!=null?n:""}`);return o.insertBefore(i,s.nextSibling),{nodes:r,parent:o,commentBegin:s,commentEnd:i}}k(e,n){let{nodes:r,parent:o,commentBegin:s,commentEnd:i}=this.B(e,` => ${n} `),a=this.p.h.C(n),c=a.value,p=this.p.h,f=p.V(),l={name:""},u=ae(e)?r:[...r[0].childNodes],y=()=>{p.v(f,()=>{var L;let E=c()[0];if(A(E)&&(E.name?E=E.name:E=(L=Object.entries(p.me()).filter(U=>U[1]===E)[0])==null?void 0:L[0]),!P(E)||q(E)){le(s,i);return}if(l.name===E)return;le(s,i);let b=document.createElement(E);for(let U of e.getAttributeNames())U!==this.D&&b.setAttribute(U,e.getAttribute(U));so(u,b),o.insertBefore(b,i),this.p.G(b),l.name=E})},d=[];j(s,()=>{a.stop();for(let E of d)E();d.length=0}),y();let D=O(c,y);d.push(D)}};var qn={collectRefObj:!0,onBind:(t,e)=>O(e.value,()=>{let r=e.value(),o=e.context,s=r[0];if(A(s))for(let i of Object.entries(s)){let a=i[0],c=i[1],p=o[a];p!==c&&(g(p)?p(c):o[a]=c)}},!0)};var zn={collectRefObj:!0,once:!0,onBind:(t,e)=>{let n=e.value(),r=e.context,o=n[0];if(!A(o))return()=>{};for(let s of Object.entries(o)){let i=s[0],a=s[1],c=r[i];c!==a&&(g(c)?c(a):r[i]=a)}return()=>{}}};var Ee=t=>{var n,r;let e=(n=ft(t))==null?void 0:n.onUnmounted;e==null||e.forEach(o=>{o()}),(r=t.unmounted)==null||r.call(t)};var rt=class{constructor(e,n,r,o,s){m(this,"props");m(this,"start");m(this,"end");m(this,"ctx");m(this,"autoProps",!0);m(this,"entangle",!0);m(this,"enableSwitch",!1);m(this,"onAutoPropsAssigned");m(this,"de");m(this,"emit",(e,n)=>{this.de.dispatchEvent(new CustomEvent(e,{detail:n}))});this.props=e,this.de=n,this.ctx=r,this.start=o,this.end=s}unmount(){let e=this.start.nextSibling,n=this.end;for(;e&&e!==n;)z(e),e=e.nextSibling;Ee(this)}};var rn=Symbol("scope"),on=t=>{try{Mn();let e=t();Kt(e);let n={context:e,unmount:()=>Ee(e),[rn]:1};return n[rn]=1,n}finally{Ln()}},Kn=t=>A(t)?rn in t:!1;var sn=(t,e)=>{if(t===e)return()=>{};let n=O(t,o=>e(o)),r=O(e,o=>t(o));return e(t()),()=>{n(),r()}};var vt=t=>{var n,r;let e=(n=ft(t))==null?void 0:n.onMounted;e==null||e.forEach(o=>{o()}),(r=t.mounted)==null||r.call(t)};var Wn={collectRefObj:!0,onBind:(t,e,n,r,o,s)=>{if(!r)return()=>{};let i=V(r);return O(e.value,()=>{var l;let c=(l=e.refs[0])!=null?l:e.value()[0],p=e.context,f=p[r];f!==c&&(g(f)?f(c):p[i]=c)},!0)}};var St=class{constructor(e){m(this,"p");m(this,"ye");this.p=e,this.ye=e.o.f.inherit}N(e){this.Ye(e)}Ye(e){var l;let n=this.p,r=n.h,o=n.o.he,s=n.o.ge,i=r.me(),a=r.Ze(),c=[...o.keys(),...a,...[...o.keys()].map(_e),...a.map(_e)].join(",");if(q(c))return;let p=e.querySelectorAll(c),f=(l=e.matches)!=null&&l.call(e,c)?[e,...p]:p;for(let u of f){if(u.hasAttribute(n.T))continue;let y=u.parentNode;if(!y)continue;let d=u.nextSibling,R=V(u.tagName).toUpperCase(),D=i[R],E=D!=null?D:s.get(R);if(!E)continue;let b=E.template;if(!b)continue;let L=u.parentElement;if(!L)continue;let U=new Comment(" begin component: "+u.tagName),re=new Comment(" end component: "+u.tagName);L.insertBefore(U,u),u.remove();let We=n.o.f.props,Ge=n.o.f.propsOnce,jt=n.o.f.bind,Je=(h,w)=>{let C={},K=h.hasAttribute(We),$=h.hasAttribute(Ge);return r.v(w,()=>{r.w(C),K&&n.x(qn,h,We),$&&n.x(zn,h,Ge);let x=E.props;if(!x||x.length===0)return;x=x.map(V);for(let ve of x.concat(x.map(_e))){let pe=h.getAttribute(ve);pe!==null&&(C[V(ve)]=pe,h.removeAttribute(ve))}let _=n.ee.be(h,!1);for(let[ve,pe]of _.entries()){let[Se,Vt]=pe.te;Vt&&x.includes(V(Vt))&&(Se!=="."&&Se!==":"&&Se!==jt||n.x(Wn,h,ve,!0,Vt,pe.ne))}}),C},ye=[...r.V()],it=()=>{var K;let h=Je(u,ye),w=new rt(h,u,ye,U,re),C=on(()=>{var $;return($=E.context(w))!=null?$:{}}).context;if(w.autoProps){for(let[$,x]of Object.entries(h))if($ in C){let _=C[$];if(_===x)continue;w.entangle&&g(_)&&g(x)?j(U,sn(x,_)):g(_)?_(x):C[$]=H(x)}else C[$]=x;(K=w.onAutoPropsAssigned)==null||K.call(w)}return{componentCtx:C,head:w}},{componentCtx:xe,head:k}=it(),oe=[...me(b)],v=oe.length,N=u.childNodes.length===0,F=h=>{let w=h.parentElement;if(N){for(let x of[...h.childNodes])w.insertBefore(x,h);return}let C=h.name;q(C)&&(C=h.getAttributeNames().filter(x=>x.startsWith("#"))[0],q(C)?C="default":C=C.substring(1));let K=u.querySelector(`template[name='${C}'], template[\\#${C}]`);!K&&C==="default"&&(K=u.querySelector("template:not([name])"),K&&K.getAttributeNames().filter(x=>x.startsWith("#")).length>0&&(K=null));let $=x=>{k.enableSwitch&&r.v(ye,()=>{r.w(xe);let _=Je(h,r.V());r.v(ye,()=>{r.w(_);let ve=r.V(),pe=Dn(ve);for(let Se of x)Ae(Se)&&(Se.setAttribute(Ye,pe),Wt(pe),j(Se,()=>{Gt(pe)}))})})};if(K){let x=[...me(K)];for(let _ of x)w.insertBefore(_,h);$(x)}else{if(C!=="default"){for(let _ of[...me(h)])w.insertBefore(_,h);return}let x=[...me(u)].filter(_=>!ae(_));for(let _ of x)w.insertBefore(_,h);$(x)}},S=h=>{if(!Ae(h))return;let w=h.querySelectorAll("slot");if(Bn(h)){F(h),h.remove();return}for(let C of w)F(C),C.remove()};(()=>{for(let h=0;h<v;++h)oe[h]=oe[h].cloneNode(!0),y.insertBefore(oe[h],d),S(oe[h])})(),L.insertBefore(re,d);let se=()=>{if(!E.inheritAttrs)return;let h=oe.filter(C=>C.nodeType===Node.ELEMENT_NODE);h.length>1&&(h=h.filter(C=>C.hasAttribute(this.ye)));let w=h[0];if(w)for(let C of u.getAttributeNames()){if(C===We||C===Ge)continue;let K=u.getAttribute(C);if(C==="class")w.classList.add(...K.split(" "));else if(C==="style"){let $=w.style,x=u.style;for(let _ of x)$.setProperty(_,x.getPropertyValue(_))}else w.setAttribute(gt(C,n.o),K)}},ke=()=>{for(let h of u.getAttributeNames())!h.startsWith("@")&&!h.startsWith(n.o.f.on)&&u.removeAttribute(h)},Qe=()=>{se(),ke(),r.w(xe),n.Te(u,!1),xe.$emit=k.emit,be(n,oe),j(u,()=>{Ee(xe)}),j(U,()=>{fe(u)}),vt(xe)};r.v(ye,Qe)}}};var an=class{constructor(e){m(this,"xe");m(this,"te",[]);m(this,"ne",[]);m(this,"Ee",[]);this.xe=e,this.C()}C(){let e=this.xe,n=e.startsWith(".");n&&(e=":"+e.slice(1));let r=e.indexOf("."),o=this.te=(r<0?e:e.substring(0,r)).split(/[:@]/);if(q(o[0])&&(o[0]=n?".":e[0]),r>=0){let s=this.ne=e.slice(r+1).split(".");if(s.includes("camel")){let i=o.length-1;o[i]=V(o[i])}s.includes("prop")&&(o[0]=".")}}},wt=class{constructor(e){m(this,"p");m(this,"Re");this.p=e,this.Re=e.o.et()}be(e,n){let r=new Map;if(!Ze(e))return r;let o=this.Re,s=a=>{let c=a.getAttributeNames().filter(p=>o.some(f=>p.startsWith(f)));for(let p of c)r.has(p)||r.set(p,new an(p)),r.get(p).Ee.push(a)};if(s(e),!n)return r;let i=e.querySelectorAll("*");for(let a of i)s(a);return r}};var Ot={};var At=class{constructor(e){m(this,"h");m(this,"Ce");m(this,"ve");m(this,"Se");m(this,"we");m(this,"ee");m(this,"o");m(this,"T");m(this,"Oe");this.h=e,this.o=e.o,this.ve=new Ct(this),this.Ce=new ht(this),this.Se=new xt(this),this.we=new St(this),this.ee=new wt(this),this.T=this.o.f.pre,this.Oe=this.o.f.dynamic}tt(e){let n=ae(e)?[e]:e.querySelectorAll("template");for(let r of n){if(r.hasAttribute(this.T))continue;let o=r.parentNode;if(!o)continue;let s=r.nextSibling;if(r.remove(),!r.content)continue;let i=[...r.content.childNodes];for(let a of i)o.insertBefore(a,s);be(this,i)}}G(e){e.nodeType!==Node.ELEMENT_NODE||e.hasAttribute(this.T)||this.Ce.N(e)||this.ve.N(e)||this.Se.N(e)||(this.we.N(e),this.tt(e),this.Te(e,!0))}Te(e,n){var s;let r=this.ee.be(e,n),o=this.o.H;for(let[i,a]of r.entries()){let[c,p]=a.te,f=(s=o[i])!=null?s:o[c];if(!f){console.error("directive not found:",c);continue}a.Ee.forEach(l=>{this.x(f,l,i,!1,p,a.ne)})}}x(e,n,r,o,s,i){if(n.hasAttribute(this.T))return;let a=n.getAttribute(r);n.removeAttribute(r);let c=p=>{let f=p.getAttribute(Ye);return f||(p.parentElement?c(p.parentElement):null)};if(Jt()){let p=c(n);if(p){this.h.v(Un(p),()=>{this.k(e,n,a,s,i)});return}}this.k(e,n,a,s,i)}nt(e,n,r){if(e!==Ot)return!1;if(q(r))return!0;let o=document.querySelector(r);if(o){let s=n.parentElement;if(!s)return!0;let i=new Comment(`teleported => '${r}'`);s.insertBefore(i,n),n.teleportedFrom=i,i.teleportedTo=n,j(i,()=>{z(n)}),o.appendChild(n)}return!0}k(e,n,r,o,s){var D;if(n.nodeType!==Node.ELEMENT_NODE||r==null||this.nt(e,n,r))return;let i=this.h.C(r,e.isLazy,e.isLazyKey,e.collectRefObj,e.once),a=[];j(n,()=>{i.stop(),f==null||f.stop();for(let E of a)E();a.length=0});let p=Pn(o,this.Oe),f;p&&(f=this.h.C(V(p),void 0,void 0,void 0,e.once));let l,u=()=>(l=i.value(),l),y,d=()=>f?(y=f.value()[0],y):(y=o,o),R=()=>{if(!e.onChange)return;let E=O(i.value,b=>{var re;let L=l,U=y;(re=e.onChange)==null||re.call(e,n,u(),L,d(),U,s)});if(a.push(E),f){let b=O(f.value,L=>{var re;let U=y;(re=e.onChange)==null||re.call(e,n,u(),U,d(),U,s)});a.push(b)}};e.once||R(),e.onBind&&a.push(e.onBind(n,i,r,o,f,s)),(D=e.onChange)==null||D.call(e,n,u(),void 0,d(),void 0,s)}};var io=9,ao=10,co=13,po=32,Ce=46,Nt=44,fo=39,lo=34,Mt=40,je=41,Lt=91,kt=93,cn=63,mo=59,Gn=58,uo=123,It=125,fn=43,yo=45,Jn=96,Qn=47,ho=92,Xn=[2,3],Yn=[fn,yo],or={"-":1,"!":1,"~":1,"+":1,new:1},sr={"=":2.5,"*=":2.5,"**=":2.5,"/=":2.5,"%=":2.5,"+=":2.5,"-=":2.5,"<<=":2.5,">>=":2.5,">>>=":2.5,"&=":2.5,"^=":2.5,"|=":2.5},$e=On(ct({"=>":2},sr),{"||":3,"??":3,"&&":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"/":12,"%":12,"**":13}),ir=Object.keys(sr),go=new Set(ir),Dt=new Set;Dt.add("=>");ir.forEach(t=>Dt.add(t));var bo=new Set(["$","_"]),Zn={true:!0,false:!1,null:null},To="this";function ar(t){return Math.max(0,...Object.keys(t).map(e=>e.length))}var Eo=ar(or),Co=ar($e),Fe="Expected ",Me="Unexpected ",mn="Unclosed ",Ro=Fe+":",er=Fe+"expression",xo="missing }",vo=Me+"object property",So=mn+"(",tr=Fe+"comma",nr=Me+"token ",wo=Me+"period",pn=Fe+"expression after ",Oo="missing unaryOp argument",Ao=mn+"[",No=Fe+"exponent (",Mo="Variable names cannot start with a number (",Lo=mn+'quote after "';var Ve=t=>t>=48&&t<=57,rr=t=>$e[t]||0,ln=class{constructor(e){m(this,"rt",{0:[this.ot],1:[this.st,this.it,this.at],2:[this.pt,this.ct,this.ft,this.Ae,this.lt],3:[this.ut,this.mt,this.dt]});m(this,"r");m(this,"e");this.r=e,this.e=0}get M(){return this.r.charAt(this.e)}get l(){return this.r.charCodeAt(this.e)}m(e){return this.r.charCodeAt(this.e)===e}U(e){let n=String.fromCharCode(e);return e>=65&&e<=90||e>=97&&e<=122||e>=128&&!(n in $e)||bo.has(n)}re(e){return this.U(e)||Ve(e)}i(e){return new Error(`${e} at character ${this.e}`)}L(e,n,r){let o=this.rt[e];if(!o)return r;let s={node:r},i=a=>{a.call(this,s)};return n===0?o.forEach(i):o.find(i),s.node}y(){let e=this.l,n=this.r,r=this.e;for(;e===po||e===io||e===ao||e===co;)e=n.charCodeAt(++r);this.e=r}parse(){let e=this.oe();return e.length===1?e[0]:{type:0,body:e}}oe(e){let n=[];for(;this.e<this.r.length;){let r=this.l;if(r===mo||r===Nt)this.e++;else{let o=this.O();if(o)n.push(o);else if(this.e<this.r.length){if(r===e)break;throw this.i(Me+'"'+this.M+'"')}}}return n}O(){var n;let e=(n=this.L(0,1))!=null?n:this.Ne();return this.y(),this.L(1,0,e)}se(){this.y();let e=this.e,n=this.r,r=n.substr(e,Co),o=r.length;for(;o>0;){if(r in $e&&(!this.U(this.l)||e+r.length<n.length&&!this.re(n.charCodeAt(e+r.length))))return e+=o,this.e=e,r;r=r.substr(0,--o)}return!1}Ne(){let e,n,r,o,s,i,a,c;if(s=this.j(),!s||(n=this.se(),!n))return s;if(o={value:n,prec:rr(n),right_a:Dt.has(n)},i=this.j(),!i)throw this.i(pn+n);let p=[s,o,i];for(;n=this.se();){if(r=rr(n),r===0){this.e-=n.length;break}o={value:n,prec:r,right_a:Dt.has(n)},c=n;let f=l=>o.right_a&&l.right_a?r>l.prec:r<=l.prec;for(;p.length>2&&f(p[p.length-2]);)i=p.pop(),n=p.pop().value,s=p.pop(),e={type:8,operator:n,left:s,right:i},p.push(e);if(e=this.j(),!e)throw this.i(pn+c);p.push(o,e)}for(a=p.length-1,e=p[a];a>1;)e={type:8,operator:p[a-1].value,left:p[a-2],right:e},a-=2;return e}j(){let e,n,r;if(this.y(),r=this.L(2,1),r)return this.L(3,0,r);let o=this.l;if(Ve(o)||o===Ce)return this.yt();if(o===fo||o===lo)r=this.ht();else if(o===Lt)r=this.gt();else{for(e=this.r.substr(this.e,Eo),n=e.length;n>0;){if(Object.prototype.hasOwnProperty.call(or,e)&&(!this.U(this.l)||this.e+e.length<this.r.length&&!this.re(this.r.charCodeAt(this.e+e.length)))){this.e+=n;let s=this.j();if(!s)throw this.i(Oo);return this.L(3,0,{type:7,operator:e,argument:s})}e=e.substr(0,--n)}this.U(o)?(r=this.ie(),r.name in Zn?r={type:4,value:Zn[r.name],raw:r.name}:r.name===To&&(r={type:5})):o===Mt&&(r=this.bt())}return r?(r=this.$(r),this.L(3,0,r)):this.L(3,0,!1)}$(e){this.y();let n=this.l;for(;n===Ce||n===Lt||n===Mt||n===cn;){let r;if(n===cn){if(this.r.charCodeAt(this.e+1)!==Ce)break;r=!0,this.e+=2,this.y(),n=this.l}if(this.e++,n===Lt){if(e={type:3,computed:!0,object:e,property:this.O()},this.y(),n=this.l,n!==kt)throw this.i(Ao);this.e++}else n===Mt?e={type:6,arguments:this.Me(je),callee:e}:(n===Ce||r)&&(r&&this.e--,this.y(),e={type:3,computed:!1,object:e,property:this.ie()});r&&(e.optional=!0),this.y(),n=this.l}return e}yt(){let e="",n;for(;Ve(this.l);)e+=this.r.charAt(this.e++);if(this.m(Ce))for(e+=this.r.charAt(this.e++);Ve(this.l);)e+=this.r.charAt(this.e++);if(n=this.M,n==="e"||n==="E"){for(e+=this.r.charAt(this.e++),n=this.M,(n==="+"||n==="-")&&(e+=this.r.charAt(this.e++));Ve(this.l);)e+=this.r.charAt(this.e++);if(!Ve(this.r.charCodeAt(this.e-1)))throw this.i(No+e+this.M+")")}let r=this.l;if(this.U(r))throw this.i(Mo+e+this.M+")");if(r===Ce||e.length===1&&e.charCodeAt(0)===Ce)throw this.i(wo);return{type:4,value:parseFloat(e),raw:e}}ht(){let e="",n=this.e,r=this.r.charAt(this.e++),o=!1;for(;this.e<this.r.length;){let s=this.r.charAt(this.e++);if(s===r){o=!0;break}else if(s==="\\")switch(s=this.r.charAt(this.e++),s){case"n":e+=`
2
- `;break;case"r":e+="\r";break;case"t":e+=" ";break;case"b":e+="\b";break;case"f":e+="\f";break;case"v":e+="\v";break;default:e+=s}else e+=s}if(!o)throw this.i(Lo+e+'"');return{type:4,value:e,raw:this.r.substring(n,this.e)}}ie(){let e=this.l,n=this.e;if(this.U(e))this.e++;else throw this.i(Me+this.M);for(;this.e<this.r.length&&(e=this.l,this.re(e));)this.e++;return{type:2,name:this.r.slice(n,this.e)}}Me(e){let n=[],r=!1,o=0;for(;this.e<this.r.length;){this.y();let s=this.l;if(s===e){if(r=!0,this.e++,e===je&&o&&o>=n.length)throw this.i(nr+String.fromCharCode(e));break}else if(s===Nt){if(this.e++,o++,o!==n.length){if(e===je)throw this.i(nr+",");if(e===kt)for(let i=n.length;i<o;i++)n.push(null)}}else{if(n.length!==o&&o!==0)throw this.i(tr);{let i=this.O();if(!i||i.type===0)throw this.i(tr);n.push(i)}}}if(!r)throw this.i(Fe+String.fromCharCode(e));return n}bt(){this.e++;let e=this.oe(je);if(this.m(je))return this.e++,e.length===1?e[0]:e.length?{type:1,expressions:e}:!1;throw this.i(So)}gt(){return this.e++,{type:9,elements:this.Me(kt)}}pt(e){if(this.m(uo)){this.e++;let n=[];for(;!isNaN(this.l);){if(this.y(),this.m(It)){this.e++,e.node=this.$({type:10,properties:n});return}let r=this.O();if(!r)break;if(this.y(),r.type===2&&(this.m(Nt)||this.m(It)))n.push({type:12,computed:!1,key:r,value:r,shorthand:!0});else if(this.m(Gn)){this.e++;let o=this.O();if(!o)throw this.i(vo);let s=r.type===9;n.push({type:12,computed:s,key:s?r.elements[0]:r,value:o,shorthand:!1}),this.y()}else r&&n.push(r);this.m(Nt)&&this.e++}throw this.i(xo)}}ct(e){let n=this.l;if(Yn.some(r=>r===n&&r===this.r.charCodeAt(this.e+1))){this.e+=2;let r=e.node={type:13,operator:n===fn?"++":"--",argument:this.$(this.ie()),prefix:!0};if(!r.argument||!Xn.includes(r.argument.type))throw this.i(Me+r.operator)}}mt(e){if(e.node){let n=this.l;if(Yn.some(r=>r===n&&r===this.r.charCodeAt(this.e+1))){if(!Xn.includes(e.node.type))throw this.i(Me+e.node.operator);this.e+=2,e.node={type:13,operator:n===fn?"++":"--",argument:e.node,prefix:!1}}}}ft(e){[0,1,2].every(n=>this.r.charCodeAt(this.e+n)===Ce)&&(this.e+=3,e.node={type:14,argument:this.O()})}at(e){if(e.node&&this.m(cn)){this.e++;let n=e.node,r=this.O();if(!r)throw this.i(er);if(this.y(),this.m(Gn)){this.e++;let o=this.O();if(!o)throw this.i(er);if(e.node={type:11,test:n,consequent:r,alternate:o},n.operator&&$e[n.operator]<=.9){let s=n;for(;s.right.operator&&$e[s.right.operator]<=.9;)s=s.right;e.node.test=s.right,s.right=e.node,e.node=n}}else throw this.i(Ro)}}ot(e){if(this.y(),this.m(Mt)){let n=this.e;if(this.e++,this.y(),this.m(je)){this.e++;let r=this.se();if(r==="=>"){let o=this.Ne();if(!o)throw this.i(pn+r);e.node={type:15,params:null,body:o};return}}this.e=n}}st(e){this.Le(e.node)}Le(e){e&&(Object.values(e).forEach(n=>{n&&typeof n=="object"&&this.Le(n)}),e.operator==="=>"&&(e.type=15,e.params=e.left?[e.left]:null,e.body=e.right,e.params&&e.params[0].type===1&&(e.params=e.params[0].expressions),delete e.left,delete e.right,delete e.operator))}it(e){e.node&&this.F(e.node)}F(e){go.has(e.operator)?(e.type=16,this.F(e.left),this.F(e.right)):e.operator||Object.values(e).forEach(n=>{n&&typeof n=="object"&&this.F(n)})}dt(e){if(!e.node)return;let n=e.node.type;(n===2||n===3)&&this.m(Jn)&&(e.node={type:17,tag:e.node,quasi:this.Ae(e)})}Ae(e){if(!this.m(Jn))return;let n={type:19,quasis:[],expressions:[]},r="",o="",s=!1,i=this.r.length,a=()=>n.quasis.push({type:18,value:{raw:o,cooked:r},tail:s});for(;this.e<i;){let c=this.r.charAt(++this.e);if(c==="`")return this.e+=1,s=!0,a(),e.node=n,n;if(c==="$"&&this.r.charAt(this.e+1)==="{"){if(this.e+=2,a(),o="",r="",n.expressions.push(...this.oe(It)),!this.m(It))throw this.i("unclosed ${")}else if(c==="\\")switch(o+=c,c=this.r.charAt(++this.e),o+=c,c){case"n":r+=`
3
- `;break;case"r":r+="\r";break;case"t":r+=" ";break;case"b":r+="\b";break;case"f":r+="\f";break;case"v":r+="\v";break;default:r+=c}else r+=c,o+=c}throw this.i("Unclosed `")}ut(e){var o;let n=e.node;if(!n||n.operator!=="new"||!n.argument)return;if(!n.argument||![6,3].includes(n.argument.type))throw this.i("Expected new function()");e.node=n.argument;let r=e.node;for(;r.type===3||r.type===6&&((o=r==null?void 0:r.callee)==null?void 0:o.type)===3;)r=r.type===3?r.object:r.callee.object;r.type=20}lt(e){if(!this.m(Qn))return;let n=++this.e,r=!1;for(;this.e<this.r.length;){if(this.l===Qn&&!r){let o=this.r.slice(n,this.e),s="";for(;++this.e<this.r.length;){let a=this.l;if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57)s+=this.M;else break}let i;try{i=new RegExp(o,s)}catch(a){throw this.i(a.message)}return e.node={type:4,value:i,raw:this.r.slice(n-1,this.e)},e.node=this.$(e.node),e.node}this.m(Lt)?r=!0:r&&this.m(kt)&&(r=!1),this.e+=this.m(ho)?2:1}throw this.i("Unclosed Regex")}},cr=t=>new ln(t).parse();var ko={"=>":(t,e)=>{},"=":(t,e)=>{},"*=":(t,e)=>{},"**=":(t,e)=>{},"/=":(t,e)=>{},"%=":(t,e)=>{},"+=":(t,e)=>{},"-=":(t,e)=>{},"<<=":(t,e)=>{},">>=":(t,e)=>{},">>>=":(t,e)=>{},"&=":(t,e)=>{},"^=":(t,e)=>{},"|=":(t,e)=>{},"||":(t,e)=>t()||e(),"??":(t,e)=>{var n;return(n=t())!=null?n:e()},"&&":(t,e)=>t()&&e(),"|":(t,e)=>t|e,"^":(t,e)=>t^e,"&":(t,e)=>t&e,"==":(t,e)=>t==e,"!=":(t,e)=>t!=e,"===":(t,e)=>t===e,"!==":(t,e)=>t!==e,"<":(t,e)=>t<e,">":(t,e)=>t>e,"<=":(t,e)=>t<=e,">=":(t,e)=>t>=e,in:(t,e)=>t in e,"<<":(t,e)=>t<<e,">>":(t,e)=>t>>e,">>>":(t,e)=>t>>>e,"+":(t,e)=>t+e,"-":(t,e)=>t-e,"*":(t,e)=>t*e,"/":(t,e)=>t/e,"%":(t,e)=>t%e,"**":(t,e)=>at(t,e)},Io={"-":t=>-t,"+":t=>+t,"!":t=>!t,"~":t=>~t,new:t=>t},mr=t=>{if(!(t!=null&&t.some(lr)))return t;let e=[];return t.forEach(n=>lr(n)?e.push(...n):e.push(n)),e},pr=(...t)=>mr(t),un=(t,e)=>{if(!t)return e;let n=Object.create(e!=null?e:{});return n.$event=t,n},Do={"++":(t,e)=>{let n=t[e];if(g(n)){let r=n();return n(++r),r}return++t[e]},"--":(t,e)=>{let n=t[e];if(g(n)){let r=n();return n(--r),r}return--t[e]}},Uo={"++":(t,e)=>{let n=t[e];if(g(n)){let r=n();return n(r+1),r}return t[e]++},"--":(t,e)=>{let n=t[e];if(g(n)){let r=n();return n(r-1),r}return t[e]--}},fr={"=":(t,e,n)=>{let r=t[e];return g(r)?r(n):t[e]=n},"+=":(t,e,n)=>{let r=t[e];return g(r)?r(r()+n):t[e]+=n},"-=":(t,e,n)=>{let r=t[e];return g(r)?r(r()-n):t[e]-=n},"*=":(t,e,n)=>{let r=t[e];return g(r)?r(r()*n):t[e]*=n},"/=":(t,e,n)=>{let r=t[e];return g(r)?r(r()/n):t[e]/=n},"%=":(t,e,n)=>{let r=t[e];return g(r)?r(r()%n):t[e]%=n},"**=":(t,e,n)=>{let r=t[e];return g(r)?r(at(r(),n)):t[e]=at(t[e],n)},"<<=":(t,e,n)=>{let r=t[e];return g(r)?r(r()<<n):t[e]<<=n},">>=":(t,e,n)=>{let r=t[e];return g(r)?r(r()>>n):t[e]>>=n},">>>=":(t,e,n)=>{let r=t[e];return g(r)?r(r()>>>n):t[e]>>>=n},"|=":(t,e,n)=>{let r=t[e];return g(r)?r(r()|n):t[e]|=n},"&=":(t,e,n)=>{let r=t[e];return g(r)?r(r()&n):t[e]&=n},"^=":(t,e,n)=>{let r=t[e];return g(r)?r(r()^n):t[e]^=n}},Ut=(t,e)=>B(t)?t.bind(e):t,dn=class{constructor(e,n,r,o,s){m(this,"u");m(this,"ke");m(this,"Ve");m(this,"Ie");m(this,"A");m(this,"De");m(this,"Ue");this.u=T(e)?e:[e],this.ke=n,this.Ve=r,this.Ie=o,this.Ue=!!s}Pe(e,n){if(n&&e in n)return n;for(let r of this.u)if(e in r)return r}2(e,n,r){let o=e.name;if(o==="$root")return this.u[this.u.length-1];if(o==="$parent")return this.u[1];if(o==="$ctx")return[...this.u];if(r&&o in r)return this.A=r[o],Ut(H(r[o]),r);for(let i of this.u)if(o in i)return this.A=i[o],Ut(H(i[o]),i);let s=this.ke;if(s&&o in s)return this.A=s[o],Ut(H(s[o]),s)}5(e,n,r){return this.u[0]}0(e,n,r){return this.Be(n,r,pr,...e.body)}1(e,n,r){return this.R(n,r,(...o)=>o.pop(),...e.expressions)}3(e,n,r){let{obj:o,key:s}=this.ae(e,n,r),i=o==null?void 0:o[s];return this.A=i,Ut(H(i),o)}4(e,n,r){return e.value}6(e,n,r){let o=(i,...a)=>B(i)?i(...mr(a)):i,s=this.R(++n,r,o,e.callee,...e.arguments);return this.A=s,s}7(e,n,r){return this.R(n,r,Io[e.operator],e.argument)}8(e,n,r){let o=ko[e.operator];switch(e.operator){case"||":case"&&":case"??":return o(()=>this.g(e.left,n,r),()=>this.g(e.right,n,r))}return this.R(n,r,o,e.left,e.right)}9(e,n,r){return this.Be(++n,r,pr,...e.elements)}10(e,n,r){let o={},s=(...i)=>{i.forEach(a=>{Object.assign(o,a)})};return this.R(++n,r,s,...e.properties),o}11(e,n,r){return this.R(n,r,o=>this.g(o?e.consequent:e.alternate,n,r),e.test)}12(e,n,r){var f;let o={},s=l=>(l==null?void 0:l.type)!==15,i=(f=this.Ie)!=null?f:()=>!1,a=n===0&&this.Ue,c=l=>this._e(a,e.key,n,un(l,r)),p=l=>this._e(a,e.value,n,un(l,r));if(e.shorthand){let l=e.key.name;o[l]=s(e.key)&&i(l,n)?c:c()}else if(e.computed){let l=H(c());o[l]=s(e.value)&&i(l,n)?p:p()}else{let l=e.key.type===4?e.key.value:e.key.name;o[l]=s(e.value)&&i(l,n)?()=>p:p()}return o}ae(e,n,r){let o=this.g(e.object,n,r),s=e.computed?this.g(e.property,n,r):e.property.name;return{obj:o,key:s}}13(e,n,r){let o=e.argument,s=e.operator,i=e.prefix?Do:Uo;if(o.type===2){let a=o.name,c=this.Pe(a,r);return ee(c)?void 0:i[s](c,a)}if(o.type===3){let{obj:a,key:c}=this.ae(o,n,r);return i[s](a,c)}}16(e,n,r){let o=e.left,s=e.operator;if(o.type===2){let i=o.name,a=this.Pe(i,r);if(ee(a))return;let c=this.g(e.right,n,r);return fr[s](a,i,c)}if(o.type===3){let{obj:i,key:a}=this.ae(o,n,r),c=this.g(e.right,n,r);return fr[s](i,a,c)}}14(e,n,r){let o=this.g(e.argument,n,r);return T(o)&&(o.s=ur),o}17(e,n,r){return this[6]({type:6,callee:e.tag,arguments:[{type:9,elements:e.quasi.quasis},...e.quasi.expressions]},n,r)}19(e,n,r){let o=(...s)=>s.reduce((i,a,c)=>i+=a+e.quasis[c+1].value.cooked,e.quasis[0].value.cooked);return this.R(n,r,o,...e.expressions)}18(e,n,r){return e.value.cooked}20(e,n,r){let o=(s,...i)=>new s(...i);return this.R(n,r,o,e.callee,...e.arguments)}15(e,n,r){return(...o)=>{let s=Object.create(r!=null?r:{}),i=e.params;if(i){let a=0;for(let c of i)s[c.name]=o[a++]}return this.g(e.body,n,s)}}g(e,n,r){let o=H(this[e.type](e,n,r));return this.De=e.type,o}_e(e,n,r,o){let s=this.g(n,r,o);return e&&this.He()?this.A:s}He(){let e=this.De;return(e===2||e===3||e===6)&&g(this.A)}eval(e,n){let{value:r,refs:o}=en(()=>this.g(e,-1,n)),s={value:r,refs:o};return this.He()&&(s.ref=this.A),s}R(e,n,r,...o){let s=o.map(i=>i&&this.g(i,e,n));return r(...s)}Be(e,n,r,...o){let s=this.Ve;if(!s)return this.R(e,n,r,...o);let i=o.map((a,c)=>a&&(a.type!==15&&s(c,e)?p=>this.g(a,e,un(p,n)):this.g(a,e,n)));return r(...i)}},ur=Symbol("s"),lr=t=>(t==null?void 0:t.s)===ur,dr=(t,e,n,r,o,s,i)=>new dn(e,n,r,o,i).eval(t,s);var yr={},Ht=class{constructor(e,n){m(this,"u");m(this,"o");m(this,"je",[]);this.u=e,this.o=n}w(e){this.u=[e,...this.u]}me(){return this.u.map(n=>n.components).filter(n=>!!n).reverse().reduce((n,r)=>{for(let[o,s]of Object.entries(r))n[o.toUpperCase()]=s;return n},{})}Ze(){let e=[],n=new Set,r=this.u.map(o=>o.components).filter(o=>!!o).reverse();for(let o of r)for(let s of Object.keys(o))n.has(s)||(n.add(s),e.push(s));return e}C(e,n,r,o,s){var y;let i=G([]),a=[],c=()=>{for(let d of a)d();a.length=0},p={value:i,stop:c,refs:[],context:this.u[0]};if(q(e))return p;let f=this.o.globalContext,l=[],u=(d,R,D,E)=>{try{let b=dr(d,R,f,n,r,E,o);return D&&l.push(...b.refs),{value:b.value,refs:b.refs,ref:b.ref}}catch(b){M(6,`evaluation error: ${e}`,b)}return{value:void 0,refs:[]}};try{let d=(y=yr[e])!=null?y:cr("["+e+"]");yr[e]=d;let R=this.u,D=()=>{l.splice(0),c();let E=d.elements.map((b,L)=>n!=null&&n(L,-1)?{value:U=>u(b,R,!1,{$event:U}).value,refs:[]}:u(b,R,!0));if(!s)for(let b of l){let L=O(b,D);a.push(L)}i(E.map(b=>b.value)),p.refs=E.map(b=>b.ref)};D()}catch(d){M(6,`parse error: ${e}`,d)}return p}V(){return this.u}Y(e){this.je.push(this.u),this.u=e}v(e,n){try{this.Y(e),n()}finally{this.Tt()}}Tt(){var e;this.u=(e=this.je.pop())!=null?e:[]}};var hr="http://www.w3.org/1999/xlink",Ho={itemscope:2,allowfullscreen:2,formnovalidate:2,ismap:2,nomodule:2,novalidate:2,readonly:2,async:1,autofocus:1,autoplay:1,controls:1,default:1,defer:1,disabled:1,hidden:1,inert:1,loop:1,open:1,required:1,reversed:1,scoped:1,seamless:1,checked:1,muted:1,multiple:1,selected:1};function _o(t){return!!t||t===""}var yn={onChange:(t,e,n,r,o,s)=>{var a;if(r){s&&s.includes("camel")&&(r=V(r)),_t(t,r,e[0],o);return}let i=e.length;for(let c=0;c<i;++c){let p=e[c];if(T(p)){let f=(a=n==null?void 0:n[c])==null?void 0:a[0],l=p[0],u=p[1];_t(t,l,u,f)}else if(A(p))for(let f of Object.entries(p)){let l=f[0],u=f[1],y=n==null?void 0:n[c],d=y&&l in y?l:void 0;_t(t,l,u,d)}else{let f=n==null?void 0:n[c],l=e[c++],u=e[c];_t(t,l,u,f)}}}},_t=(t,e,n,r)=>{if(r&&r!==e&&t.removeAttribute(r),ee(e)){M(3,name,t);return}if(!P(e)){M(6,`Attribute key is not string at ${t.outerHTML}`,e);return}if(e.startsWith("xlink:")){ee(n)?t.removeAttributeNS(hr,e.slice(6,e.length)):t.setAttributeNS(hr,e,n);return}let o=e in Ho;ee(n)||o&&!_o(n)?t.removeAttribute(e):t.setAttribute(e,o?"":n)};var hn={onChange:(t,e,n)=>{let r=e.length;for(let o=0;o<r;++o){let s=e[o],i=n==null?void 0:n[o];if(T(s)){let a=s.length;for(let c=0;c<a;++c)gr(t,s[c],i==null?void 0:i[c])}else gr(t,s,i)}}},gr=(t,e,n)=>{let r=t.classList,o=P(e),s=P(n);if(e&&!o){if(n&&!s)for(let i in n)(!(i in e)||!e[i])&&r.remove(i);for(let i in e)e[i]&&r.add(i)}else o?n!==e&&(s&&r.remove(...n.trim().split(/\s+/)),r.add(...e.trim().split(/\s+/))):n&&s&&r.remove(...n.trim().split(/\s+/))};var br={onChange:(t,e)=>{let[n,r]=e;B(r)?r(t,n):t.innerHTML=n==null?void 0:n.toString()}};function Bo(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=ue(t[r],e[r]);return n}function ue(t,e){if(t===e)return!0;let n=qt(t),r=qt(e);if(n||r)return n&&r?t.getTime()===e.getTime():!1;if(n=Xe(t),r=Xe(e),n||r)return t===e;if(n=T(t),r=T(e),n||r)return n&&r?Bo(t,e):!1;if(n=A(t),r=A(e),n||r){if(!n||!r)return!1;let o=Object.keys(t).length,s=Object.keys(e).length;if(o!==s)return!1;for(let i in t){let a=t.hasOwnProperty(i),c=e.hasOwnProperty(i);if(a&&!c||!a&&c||!ue(t[i],e[i]))return!1}}return String(t)===String(e)}function Bt(t,e){return t.findIndex(n=>ue(n,e))}var Tr=t=>{let e=parseFloat(t);return isNaN(e)?t:e};var gn=t=>{if(!g(t))throw I(3,"pause");t(void 0,void 0,3)};var bn=t=>{if(!g(t))throw I(3,"resume");t(void 0,void 0,4)};var Cr={onChange:(t,e)=>{Po(t,e[0])},onBind:(t,e,n,r,o,s)=>jo(t,e,s)},Po=(t,e)=>{let n=Sr(t);if(n&&Rr(t))T(e)?e=Bt(e,de(t))>-1:Y(e)?e=e.has(de(t)):e=Ko(t,e),t.checked=e;else if(n&&xr(t))t.checked=ue(e,de(t));else if(n||wr(t))vr(t)?t.value!==(e==null?void 0:e.toString())&&(t.value=e):t.value!==e&&(t.value=e);else if(Or(t)){let r=t.options,o=r.length,s=t.multiple;for(let i=0;i<o;i++){let a=r[i],c=de(a);if(s)T(e)?a.selected=Bt(e,c)>-1:a.selected=e.has(c);else if(ue(de(a),e)){t.selectedIndex!==i&&(t.selectedIndex=i);return}}!s&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}else M(7,t)},ot=t=>(g(t)&&(t=t()),B(t)&&(t=t()),t?P(t)?{trim:t.includes("trim"),lazy:t.includes("lazy"),number:t.includes("number"),int:t.includes("int")}:{trim:!!t.trim,lazy:!!t.lazy,number:!!t.number,int:!!t.int}:{trim:!1,lazy:!1,number:!1,int:!1}),Rr=t=>t.type==="checkbox",xr=t=>t.type==="radio",vr=t=>t.type==="number"||t.type==="range",Sr=t=>t.tagName==="INPUT",wr=t=>t.tagName==="TEXTAREA",Or=t=>t.tagName==="SELECT",jo=(t,e,n)=>{let r=e.value,o=ot(n==null?void 0:n.join(",")),s=ot(r()[1]),i={int:o.int||s.int,lazy:o.lazy||s.lazy,number:o.number||s.number,trim:o.trim||s.trim},a=e.refs[0];if(!a)return M(8,t),()=>{};let c=Sr(t);return c&&Rr(t)?$o(t,a):c&&xr(t)?Wo(t,a):c||wr(t)?Vo(t,i,a,r):Or(t)?Go(t,a,r):(M(7,t),()=>{})},Er=/[.,' ·٫]/,Vo=(t,e,n,r)=>{let s=e.lazy?"change":"input",i=vr(t),a=()=>{!e.trim&&!ot(r()[1]).trim||(t.value=t.value.trim())},c=u=>{let y=u.target;y.composing=1},p=u=>{let y=u.target;y.composing&&(y.composing=0,y.dispatchEvent(new Event(s)))},f=()=>{t.removeEventListener(s,l),t.removeEventListener("change",a),t.removeEventListener("compositionstart",c),t.removeEventListener("compositionend",p),t.removeEventListener("change",p)},l=u=>{let y=u.target;if(!y||y.composing)return;let d=y.value,R=ot(r()[1]);if(i||R.number||R.int){if(R.int)d=parseInt(d);else{if(Er.test(d[d.length-1])&&d.split(Er).length===2){if(d+="0",d=parseFloat(d),isNaN(d))d="";else if(n()===d)return}d=parseFloat(d)}isNaN(d)&&(d=""),t.value=d}else R.trim&&(d=d.trim());n(d)};return t.addEventListener(s,l),t.addEventListener("change",a),t.addEventListener("compositionstart",c),t.addEventListener("compositionend",p),t.addEventListener("change",p),f},$o=(t,e)=>{let n="change",r=()=>{t.removeEventListener(n,o)},o=()=>{let s=de(t),i=t.checked,a=e();if(T(a)){let c=Bt(a,s),p=c!==-1;i&&!p?a.push(s):!i&&p&&a.splice(c,1)}else Y(a)?i?a.add(s):a.delete(s):e(zo(t,i))};return t.addEventListener(n,o),r},de=t=>"_value"in t?t._value:t.value,Ar="trueValue",Fo="falseValue",Nr="true-value",qo="false-value",zo=(t,e)=>{let n=e?Ar:Fo;if(n in t)return t[n];let r=e?Nr:qo;return t.hasAttribute(r)?t.getAttribute(r):e},Ko=(t,e)=>{if(Ar in t)return ue(e,t.trueValue);let r=Nr;return t.hasAttribute(r)?ue(e,t.getAttribute(r)):ue(e,!0)},Wo=(t,e)=>{let n="change",r=()=>{t.removeEventListener(n,o)},o=()=>{let s=de(t);e(s)};return t.addEventListener(n,o),r},Go=(t,e,n)=>{let r="change",o=()=>{t.removeEventListener(r,s)},s=()=>{let a=ot(n()[1]).number,c=Array.prototype.filter.call(t.options,p=>p.selected).map(p=>a?Tr(de(p)):de(p));if(t.multiple){let p=e();try{if(gn(e),Y(p)){p.clear();for(let f of c)p.add(f)}else T(p)?(p.splice(0),p.push(...c)):e(c)}finally{bn(e),W(e)}}else e(c[0])};return t.addEventListener(r,s),o};var Jo=["stop","prevent","capture","self","once","left","right","middle","passive"],Qo=t=>{let e={};if(q(t))return;let n=t.split(",");for(let r of Jo)e[r]=n.includes(r);return e},En={isLazy:(t,e)=>e===-1&&t%2===0,isLazyKey:(t,e)=>e===0&&!t.endsWith("_flags"),once:!1,collectRefObj:!0,onBind:(t,e,n,r,o,s)=>{var f,l;if(o){let u=e.value(),y=H(o.value()[0]);return P(y)?Tn(t,V(y),()=>e.value()[0],(f=s==null?void 0:s.join(","))!=null?f:u[1]):()=>{}}else if(r){let u=e.value();return Tn(t,V(r),()=>e.value()[0],(l=s==null?void 0:s.join(","))!=null?l:u[1])}let i=[],a=()=>{i.forEach(u=>u())},c=e.value(),p=c.length;for(let u=0;u<p;++u){let y=c[u];if(B(y)&&(y=y()),A(y))for(let d of Object.entries(y)){let R=d[0],D=()=>{let b=e.value()[u];return B(b)&&(b=b()),b=b[R],B(b)&&(b=b()),b},E=y[R+"_flags"];i.push(Tn(t,R,D,E))}else M(2,name,t)}return a}},Xo=(t,e)=>{if(t.startsWith("keydown")||t.startsWith("keyup")||t.startsWith("keypress")){e!=null||(e="");let n=t.split(".").concat(e.split(","));t=n[0];let r=n[1],o=n.includes("ctrl"),s=n.includes("shift"),i=n.includes("alt"),a=n.includes("meta"),c=p=>!(o&&!p.ctrlKey||s&&!p.shiftKey||i&&!p.altKey||a&&!p.metaKey);return r?[t,p=>c(p)?p.key.toUpperCase()===r.toUpperCase():!1]:[t,c]}return[t,n=>!0]},Tn=(t,e,n,r)=>{if(q(e))return M(5,name,t),()=>{};let o=Qo(r),s=o?{capture:o.capture,passive:o.passive,once:o.once}:void 0,i;[e,i]=Xo(e,r);let a=f=>{if(!i(f)||!n&&e==="submit"&&(o!=null&&o.prevent))return;let l=n(f);B(l)&&(l=l(f)),B(l)&&l(f)},c=()=>{t.removeEventListener(e,p,s)},p=f=>{if(!o){a(f);return}try{if(o.left&&f.button!==0||o.middle&&f.button!==1||o.right&&f.button!==2||o.self&&f.target!==t)return;o.stop&&f.stopPropagation(),o.prevent&&f.preventDefault(),a(f)}finally{o.once&&c()}};return t.addEventListener(e,p,s),c};var Mr={onChange:(t,e,n,r,o,s)=>{if(r){s&&s.includes("camel")&&(r=V(r)),qe(t,r,e[0]);return}let i=e.length;for(let a=0;a<i;++a){let c=e[a];if(T(c)){let p=c[0],f=c[1];qe(t,p,f)}else if(A(c))for(let p of Object.entries(c)){let f=p[0],l=p[1];qe(t,f,l)}else{let p=e[a++],f=e[a];qe(t,p,f)}}}};function Yo(t){return!!t||t===""}var qe=(t,e,n)=>{if(ee(e)){M(3,name,t);return}if(e==="innerHTML"||e==="textContent"){let s=[...t.childNodes];setTimeout(()=>s.forEach(fe),1),t[e]=n!=null?n:"";return}let r=t.tagName;if(e==="value"&&r!=="PROGRESS"&&!r.includes("-")){t._value=n;let s=r==="OPTION"?t.getAttribute("value"):t.value,i=n!=null?n:"";s!==i&&(t.value=i),n==null&&t.removeAttribute(e);return}let o=!1;if(n===""||n==null){let s=typeof t[e];s==="boolean"?n=Yo(n):n==null&&s==="string"?(n="",o=!0):s==="number"&&(n=0,o=!0)}try{t[e]=n}catch(s){o||M(4,e,r,n,s)}o&&t.removeAttribute(e)};var Lr={once:!0,onBind:(t,e,n)=>{let r=e.value()[0],o=T(r),s=e.refs[0];return o?r.push(t):s?s==null||s(t):e.context[n]=t,()=>{if(o){let i=r.indexOf(t);i!==-1&&r.splice(i,1)}else s==null||s(null)}}};var kr={onChange:(t,e)=>{let n=we(t).data,r=n._ord;An(r)&&(r=n._ord=t.style.display),!!e[0]?t.style.display=r:t.style.display="none"}};var xn={onChange:(t,e,n)=>{let r=e.length;for(let o=0;o<r;++o){let s=e[o],i=n==null?void 0:n[o];if(T(s)){let a=s.length;for(let c=0;c<a;++c)Ir(t,s[c],i==null?void 0:i[c])}else Ir(t,s,i)}}},Ir=(t,e,n)=>{let r=t.style,o=P(e);if(e&&!o){if(n&&!P(n))for(let s in n)e[s]==null&&Rn(r,s,"");for(let s in e)Rn(r,s,e[s])}else{let s=r.display;if(o?n!==e&&(r.cssText=e):n&&t.removeAttribute("style"),"_ord"in we(t).data)return;r.display=s}},Dr=/\s*!important$/;function Rn(t,e,n){if(T(n))n.forEach(r=>{Rn(t,e,r)});else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{let r=Zo(t,e);Dr.test(n)?t.setProperty(_e(r),n.replace(Dr,""),"important"):t[r]=n}}var Ur=["Webkit","Moz","ms"],Cn={};function Zo(t,e){let n=Cn[e];if(n)return n;let r=V(e);if(r!=="filter"&&r in t)return Cn[e]=r;r=et(r);for(let o=0;o<Ur.length;o++){let s=Ur[o]+r;if(s in t)return Cn[e]=s}return e}var X=t=>Hr(H(t)),Hr=(t,e=new WeakMap)=>{if(!t||!A(t))return t;if(T(t))return t.map(X);if(Y(t)){let r=new Set;for(let o of t.keys())r.add(X(o));return r}if(he(t)){let r=new Map;for(let o of t)r.set(X(o[0]),X(o[1]));return r}if(e.has(t))return H(e.get(t));let n=ct({},t);e.set(t,n);for(let r of Object.entries(n))n[r[0]]=Hr(H(r[1]),e);return n};var _r={onChange:(t,e)=>{var r;let n=e[0];t.textContent=Y(n)?JSON.stringify(X([...n])):he(n)?JSON.stringify(X([...n])):A(n)?JSON.stringify(X(n)):(r=n==null?void 0:n.toString())!=null?r:""}};var Br={onChange:(t,e)=>{qe(t,"value",e[0])}};var ze=t=>(t==null?void 0:t[lt])===1;var Le=t=>{if(tt(t))return t;let e;if(g(t)?(e=t,t=e()):e=G(t),t instanceof Node||t instanceof Date||t instanceof RegExp||t instanceof Promise||t instanceof Error)return e;if(e[lt]=1,T(t)){let n=t.length;for(let r=0;r<n;++r){let o=t[r];ze(o)||(t[r]=Le(o))}return e}if(!A(t))return e;for(let n of Object.entries(t)){let r=n[1];if(ze(r))continue;let o=n[0];Xe(o)||(t[o]=null,t[o]=Le(r))}return e};var Re=class Re{constructor(e){m(this,"H",{});m(this,"f",{});m(this,"et",()=>Object.keys(this.H).filter(e=>e.length===1||!e.startsWith(":")));m(this,"he",new Map);m(this,"ge",new Map);m(this,"forGrowThreshold",10);m(this,"globalContext");m(this,"useInterpolation",!0);if(this.setDirectives("r-"),e){this.globalContext=e;return}this.globalContext=this.Et()}static getDefault(){var e;return(e=Re.$e)!=null?e:Re.$e=new Re}Et(){let e={},n=globalThis;for(let r of Re.xt.split(","))e[r]=n[r];return e.ref=Le,e.sref=G,e.flatten=X,e}addComponent(...e){for(let n of e){if(!n.defaultName){ut.warning("Registered component's default name is not defined",n);continue}this.he.set(et(n.defaultName),n),this.ge.set(et(n.defaultName).toLocaleUpperCase(),n)}}setDirectives(e){this.H={".":Mr,":":yn,"@":En,[`${e}on`]:En,[`${e}bind`]:yn,[`${e}html`]:br,[`${e}text`]:_r,[`${e}show`]:kr,[`${e}model`]:Cr,":style":xn,[`${e}bind:style`]:xn,":class":hn,[`${e}bind:class`]:hn,":ref":Lr,":value":Br,teleport:Ot},this.f={for:`${e}for`,if:`${e}if`,else:`${e}else`,elseif:`${e}else-if`,pre:`${e}pre`,inherit:`${e}inherit`,text:`${e}text`,props:":props",propsOnce:":props-once",bind:`${e}bind`,on:`${e}on`,keyBind:":key",key:"key",is:":is",teleport:`${e}teleport`,dynamic:"_d_"}}updateDirectives(e){e(this.H,this.f)}};m(Re,"$e"),m(Re,"xt","Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console");var ne=Re;var Pt=(t,e)=>{if(!t)return;let r=(e!=null?e:ne.getDefault()).f,o=/(\{\{[^]*?\}\}|\[\[[^]*?\]\])/g,s=[{start:"{{",end:"}}"},{start:"[[",end:"]]"}];for(let i of ts(t,r.pre,s))es(i,r.text,o,s)},es=(t,e,n,r)=>{var c;let o=t.textContent;if(!o)return;let s=n,i=o.split(s);if(i.length<=1)return;if(((c=t.parentElement)==null?void 0:c.childNodes.length)===1&&i.length===3){let p=i[1],f=Pr(p,r);if(f&&q(i[0])&&q(i[2])){let l=t.parentElement;l.setAttribute(e,p.substring(f.start.length,p.length-f.end.length)),l.innerText="";return}}let a=document.createDocumentFragment();for(let p of i){let f=Pr(p,r);if(f){let l=document.createElement("span");l.setAttribute(e,p.substring(f.start.length,p.length-f.end.length)),a.appendChild(l)}else a.appendChild(document.createTextNode(p))}t.replaceWith(a)},ts=(t,e,n)=>{let r=[],o=s=>{var i;if(s.nodeType===Node.TEXT_NODE)n.some(a=>{var c;return(c=s.textContent)==null?void 0:c.includes(a.start)})&&r.push(s);else{if((i=s==null?void 0:s.hasAttribute)!=null&&i.call(s,e))return;for(let a of me(s))o(a)}};return o(t),r},Pr=(t,e)=>e.find(n=>t.startsWith(n.start)&&t.endsWith(n.end));var ns="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",rs=new Set(ns.toUpperCase().split(",")),os="http://www.w3.org/2000/svg",jr=(t,e)=>{ae(t)?t.content.appendChild(e):t.appendChild(e)},vn=(t,e,n,r)=>{var i;let o=t.t;if(o){let a=n&&rs.has(o.toUpperCase())?document.createElementNS(os,o.toLowerCase()):document.createElement(o),c=t.a;if(c)for(let f of Object.entries(c)){let l=f[0],u=f[1];l.startsWith("#")&&(u=l.substring(1),l="name"),a.setAttribute(gt(l,r),u)}let p=t.c;if(p)for(let f of p)vn(f,a,n,r);jr(e,a);return}let s=t.d;if(s){let a;switch((i=t.n)!=null?i:Node.TEXT_NODE){case Node.COMMENT_NODE:a=document.createComment(s);break;case Node.TEXT_NODE:a=document.createTextNode(s);break}if(a)jr(e,a);else throw new Error("unsupported node type.")}},Ke=(t,e,n)=>{n!=null||(n=ne.getDefault());let r=document.createDocumentFragment();if(!T(t))return vn(t,r,!!e,n),r;for(let o of t)vn(o,r,!!e,n);return r};var ss=(t,e={selector:"#app"},n)=>{P(e)&&(e={selector:"#app",template:e}),Kn(t)&&(t=t.context);let r=e.element?e.element:e.selector?document.querySelector(e.selector):null;if(!r||!Ae(r))throw I(0);n||(n=ne.getDefault());let o=()=>{for(let a of[...r.childNodes])z(a)},s=a=>{for(let c of a)r.appendChild(c)};if(e.template){let a=document.createRange().createContextualFragment(e.template);o(),s(a.childNodes),e.element=a}else if(e.json){let a=Ke(e.json,e.isSVG,n);o(),s(a.childNodes)}return n.useInterpolation&&Pt(r,n),new Sn(t,r,n).x(),j(r,()=>{Ee(t)}),vt(t),{context:t,unmount:()=>{z(r)},unbind:()=>{fe(r)}}},Sn=class{constructor(e,n,r){m(this,"Rt");m(this,"Fe");m(this,"o");m(this,"h");m(this,"p");this.Rt=e,this.Fe=n,this.o=r,this.h=new Ht([e],r),this.p=new At(this.h)}x(){this.p.G(this.Fe)}};var st=t=>{if(T(t))return t.map(o=>st(o));let e={};if(t.tagName)e.t=t.tagName;else return t.nodeType===Node.COMMENT_NODE&&(e.n=Node.COMMENT_NODE),t.textContent&&(e.d=t.textContent),e;let n=t.getAttributeNames();n.length>0&&(e.a=Object.fromEntries(n.map(o=>[o,t.getAttribute(o)])));let r=me(t);return r.length>0&&(e.c=[...r].map(o=>st(o))),e};var is=(t,e={})=>{var s,i,a,c,p,f;T(e)&&(e={props:e}),P(t)&&(t={template:t});let n=(s=e.context)!=null?s:()=>({}),r=!1;if(t.element){let l=t.element;l.remove(),t.element=l}else if(t.selector){let l=document.querySelector(t.selector);if(!l)throw I(1,t.selector);l.remove(),t.element=l}else if(t.template){let l=document.createRange().createContextualFragment(t.template);t.element=l}else t.json&&(t.element=Ke(t.json,t.isSVG,e.config),r=!0);t.element||(t.element=document.createDocumentFragment()),((i=e.useInterpolation)==null||i)&&Pt(t.element,(a=e.config)!=null?a:ne.getDefault());let o=t.element;if(!r&&(((p=t.isSVG)!=null?p:Ze(o)&&((c=o.hasAttribute)!=null&&c.call(o,"isSVG")))||Ze(o)&&o.querySelector("[isSVG]"))){let l=t.element.content,u=l?[...l.childNodes]:[...o.childNodes],y=st(u);t.element=Ke(y,!0,e.config)}return{context:n,template:t.element,inheritAttrs:(f=e.inheritAttrs)!=null?f:!0,props:e.props,defaultName:e.defaultName}};var as=t=>{let e,n={},r=(...o)=>{if(o.length<=2&&0 in o)throw I(4);return e&&!n.isStopped?e(...o):(e=cs(t,n),e(...o))};return r[Q]=1,Te(r,!0),r.stop=()=>{var o,s;return(s=(o=n.ref)==null?void 0:o.stop)==null?void 0:s.call(o)},J(()=>r.stop(),!0),r},cs=(t,e)=>{var s;let n=(s=e.ref)!=null?s:G(null);e.ref=n,e.isStopped=!1;let r=0,o=Be(()=>{if(r>0){o(),e.isStopped=!0,W(n);return}n(t()),++r});return n.stop=o,n};var ps=(t,e)=>{let n={},r,o=(...s)=>{if(s.length<=2&&0 in s)throw I(4);return r&&!n.isStopped?r(...s):(r=fs(t,e,n),r(...s))};return o[Q]=1,Te(o,!0),o.stop=()=>{var s,i;return(i=(s=n.ref)==null?void 0:s.stop)==null?void 0:i.call(s)},J(()=>o.stop(),!0),o},fs=(t,e,n)=>{var a;let r=(a=n.ref)!=null?a:G(null);n.ref=r,n.isStopped=!1;let o=0,s=c=>{if(o>0){r.stop(),n.isStopped=!0,W(r);return}r(e(...t.map(p=>p()))),++o},i=[];for(let c of t){let p=O(c,s);i.push(p)}return s(null),r.stop=()=>{i.forEach(c=>{c()})},r};var ls=(t,e)=>{let n={},r,o=(...s)=>{if(s.length<=2&&0 in s)throw I(4);return r&&!n.isStopped?r(...s):(r=ms(t,e,n),r(...s))};return o[Q]=1,Te(o,!0),o.stop=()=>{var s,i;return(i=(s=n.ref)==null?void 0:s.stop)==null?void 0:i.call(s)},J(()=>o.stop(),!0),o},ms=(t,e,n)=>{var s;let r=(s=n.ref)!=null?s:G(null);n.ref=r,n.isStopped=!1;let o=0;return r.stop=O(t,i=>{if(o>0){r.stop(),n.isStopped=!0,W(r);return}r(e(i)),++o},!0),r};var us=t=>(t[mt]=1,t);var ds=(t,e)=>{if(!e)throw I(5);let r=ze(t)?Le:a=>a,o=()=>localStorage.setItem(e,JSON.stringify(X(t()))),s=localStorage.getItem(e);if(s!=null)try{t(r(JSON.parse(s)))}catch(a){M(6,`persist: failed to parse data for key ${e}`,a),o()}else o();let i=Be(o);return J(i,!0),t};var Vr=(t,...e)=>{let n="",r=t,o=e,s=r.length,i=o.length;for(let a=0;a<s;++a)n+=r[a],a<i&&(n+=o[a]);return n},ys=Vr;var hs=(t,e,n)=>{let r=[],o=()=>{e(t.map(i=>i()))};for(let i of t)r.push(O(i,o));n&&o();let s=()=>{for(let i of r)i()};return J(s,!0),s};var gs=t=>{if(!g(t))throw I(3,"observerCount");return t(void 0,void 0,2)};var bs=t=>{$r();try{t()}finally{Fr()}},$r=()=>{ce.stack||(ce.stack=[]),ce.stack.push(new Set)},Fr=()=>{let t=ce.stack;if(!t||t.length===0)return;let e=t.pop();if(t.length){let n=t[t.length-1];for(let r of e)n.add(r);return}delete ce.stack;for(let n of e)try{W(n)}catch(r){console.error(r)}};var Ts=t=>{var e;(e=Oe())==null||e.onMounted.push(t)};export{rt as ComponentHead,ne as RegorConfig,j as addUnbinder,bs as batch,en as collectRefs,ps as computeMany,ls as computeRef,as as computed,ss as createApp,is as createComponent,Fr as endBatch,sn as entangle,X as flatten,we as getBindData,Vr as html,ze as isDeepRef,tt as isRaw,g as isRef,us as markRaw,O as observe,hs as observeMany,gs as observerCount,Ts as onMounted,J as onUnmounted,gn as pause,ds as persist,ys as raw,Le as ref,z as removeNode,bn as resume,Zt as silence,G as sref,$r as startBatch,Ke as toFragment,st as toJsonTemplate,W as trigger,fe as unbind,H as unref,on as useScope,ut as warningHandler,Be as watchEffect};
1
+ var qr=Object.defineProperty,zr=Object.defineProperties;var Kr=Object.getOwnPropertyDescriptors;var wn=Object.getOwnPropertySymbols;var Wr=Object.prototype.hasOwnProperty,Gr=Object.prototype.propertyIsEnumerable;var at=Math.pow,$t=(t,e,n)=>e in t?qr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ct=(t,e)=>{for(var n in e||(e={}))Wr.call(e,n)&&$t(t,n,e[n]);if(wn)for(var n of wn(e))Gr.call(e,n)&&$t(t,n,e[n]);return t},On=(t,e)=>zr(t,Kr(e));var m=(t,e,n)=>$t(t,typeof e!="symbol"?e+"":e,n);var Ie=Symbol(":regor");var fe=t=>{let e=[t];for(;e.length>0;){let n=e.shift();Jr(n);let r=n.childNodes;if(r)for(let o of r)e.push(o)}},Jr=t=>{let e=t[Ie];if(e){for(let n of e.unbinders)n();e.unbinders.splice(0),delete t[Ie]}};var q=t=>{t.remove(),setTimeout(()=>fe(t),1)};var B=t=>typeof t=="function",P=t=>typeof t=="string",An=t=>typeof t=="undefined",ee=t=>t==null||typeof t=="undefined",z=t=>typeof t!="string"||!(t!=null&&t.trim()),Qr=Object.prototype.toString,Ft=t=>Qr.call(t),ye=t=>Ft(t)==="[object Map]",Y=t=>Ft(t)==="[object Set]",qt=t=>Ft(t)==="[object Date]",Xe=t=>typeof t=="symbol",T=Array.isArray,A=t=>t!==null&&typeof t=="object";var Nn={0:"createApp can't find root element. You must define either a valid `selector` or an `element`. Example: createApp({}, {selector: '#app', html: '...'})",1:t=>`Component template cannot be found. selector: ${t} .`,2:"Use composables in scope. usage: useScope(() => new MyApp()).",3:t=>`${t} requires ref source argument`,4:"computed is readonly.",5:"persist requires a string key."},I=(t,...e)=>{let n=Nn[t];return new Error(B(n)?n.call(Nn,...e):n)};var pt=[],Mn=()=>{let t={onMounted:[],onUnmounted:[]};return pt.push(t),t},we=t=>{let e=pt[pt.length-1];if(!e&&!t)throw I(2);return e},Ln=t=>{let e=we();return t&&Kt(t),pt.pop(),e},zt=Symbol("csp"),Kt=t=>{let e=t,n=e[zt];if(n){let r=we();if(n===r)return;r.onMounted.length>0&&n.onMounted.push(...r.onMounted),r.onUnmounted.length>0&&n.onUnmounted.push(...r.onUnmounted);return}e[zt]=we()},ft=t=>t[zt];var ge=t=>{var n,r;let e=(n=ft(t))==null?void 0:n.onUnmounted;e==null||e.forEach(o=>{o()}),(r=t.unmounted)==null||r.call(t)};var Ye=class{constructor(e,n,r,o,s){m(this,"props");m(this,"start");m(this,"end");m(this,"ctx");m(this,"autoProps",!0);m(this,"entangle",!0);m(this,"enableSwitch",!1);m(this,"onAutoPropsAssigned");m(this,"pe");m(this,"emit",(e,n)=>{this.pe.dispatchEvent(new CustomEvent(e,{detail:n}))});this.props=e,this.pe=n,this.ctx=r,this.start=o,this.end=s}unmount(){let e=this.start.nextSibling,n=this.end;for(;e&&e!==n;)q(e),e=e.nextSibling;for(let r of this.ctx)ge(r)}};var Oe=t=>{let e=t[Ie];if(e)return e;let n={unbinders:[],data:{}};return t[Ie]=n,n};var j=(t,e)=>{Oe(t).unbinders.push(e)};var kn={8:t=>`Model binding requires a ref at ${t.outerHTML}`,7:t=>`Model binding is not supported on ${t.tagName} element at ${t.outerHTML}`,0:(t,e)=>`${t} binding expression is missing at ${e.outerHTML}`,1:(t,e,n)=>`invalid ${t} expression: ${e} at ${n.outerHTML}`,2:(t,e)=>`${t} requires object expression at ${e.outerHTML}`,3:(t,e)=>`${t} binder: key is empty on ${e.outerHTML}.`,4:(t,e,n,r)=>({msg:`Failed setting prop "${t}" on <${e.toLowerCase()}>: value ${n} is invalid.`,args:[r]}),5:(t,e)=>`${t} binding missing event type at ${e.outerHTML}`,6:(t,e)=>({msg:t,args:[e]})},M=(t,...e)=>{let n=kn[t],r=B(n)?n.call(kn,...e):n,o=lt.warning;o&&(P(r)?o(r):o(r,...r.args))},lt={warning:console.warn};var J=(t,e)=>{var n;(n=we(e))==null||n.onUnmounted.push(t)};var mt=Symbol("ref"),Q=Symbol("sref"),ut=Symbol("raw");var g=t=>(t==null?void 0:t[Q])===1;var O=(t,e,n)=>{if(!g(t))throw I(3,"observe");n&&e(t());let o=t(void 0,void 0,0,e);return J(o,!0),o};var ht={},dt={},In=1,Dn=t=>{let e=(In++).toString();return ht[e]=t,dt[e]=0,e},Wt=t=>{dt[t]+=1},Gt=t=>{--dt[t]===0&&(delete ht[t],delete dt[t])},Un=t=>ht[t],Jt=()=>In!==1&&Object.keys(ht).length>0,Ze="r-switch",Xr=t=>{let e=t.filter(r=>Ae(r)).map(r=>[...r.querySelectorAll("[r-switch]")].map(o=>o.getAttribute(Ze))),n=new Set;return e.forEach(r=>{r.forEach(o=>o&&n.add(o))}),[...n]},De=(t,e)=>{if(!Jt())return;let n=Xr(e);n.length!==0&&(n.forEach(Wt),j(t,()=>{n.forEach(Gt)}))};var Qt=(t,e,n,r)=>{let o=[];for(let s of t){let i=s.cloneNode(!0);n.insertBefore(i,r),o.push(i)}Te(e,o)},Xt=Symbol("r-if"),Hn=Symbol("r-else"),_n=t=>t[Hn]===1,yt=class{constructor(e){m(this,"p");m(this,"P");m(this,"q");m(this,"K");m(this,"z");m(this,"b");m(this,"T");this.p=e,this.P=e.o.f.if,this.q=He(e.o.f.if),this.K=e.o.f.else,this.z=e.o.f.elseif,this.b=e.o.f.for,this.T=e.o.f.pre}qe(e,n){let r=e.parentElement;for(;r!==null&&r!==document.documentElement;){if(r.hasAttribute(n))return!0;r=r.parentElement}return!1}N(e){let n=e.hasAttribute(this.P),r=be(e,this.q);for(let o of r)this.x(o);return n}W(e){return e[Xt]?!0:(e[Xt]=!0,be(e,this.q).forEach(n=>n[Xt]=!0),!1)}x(e){if(e.hasAttribute(this.T)||this.W(e)||this.qe(e,this.b))return;let n=e.getAttribute(this.P);if(!n){M(0,this.P,e);return}e.removeAttribute(this.P),this.L(e,n)}B(e,n,r){let o=Ue(e),s=e.parentNode,i=document.createComment(`__begin__ :${n}${r!=null?r:""}`);s.insertBefore(i,e),De(i,o),o.forEach(c=>{q(c)}),e.remove(),n!=="if"&&(e[Hn]=1);let a=document.createComment(`__end__ :${n}${r!=null?r:""}`);return s.insertBefore(a,i.nextSibling),{nodes:o,parent:s,commentBegin:i,commentEnd:a}}ce(e,n){if(!e)return[];let r=e.nextElementSibling;if(e.hasAttribute(this.K)){e.removeAttribute(this.K);let{nodes:o,parent:s,commentBegin:i,commentEnd:a}=this.B(e,"else");return[{mount:()=>{Qt(o,this.p,s,a)},unmount:()=>{le(i,a)},isTrue:()=>!0,isMounted:!1}]}else{let o=e.getAttribute(this.z);if(!o)return[];e.removeAttribute(this.z);let{nodes:s,parent:i,commentBegin:a,commentEnd:c}=this.B(e,"elseif",` => ${o} `),p=this.p.h.C(o),f=p.value,l=this.ce(r,n),u=[];j(a,()=>{p.stop();for(let x of u)x();u.length=0});let d=O(f,n);return u.push(d),[{mount:()=>{Qt(s,this.p,i,c)},unmount:()=>{le(a,c)},isTrue:()=>!!f()[0],isMounted:!1}].concat(l)}}L(e,n){let r=e.nextElementSibling,{nodes:o,parent:s,commentBegin:i,commentEnd:a}=this.B(e,"if",` => ${n} `),c=this.p.h.C(n),p=c.value,f=!1,l=this.p.h,u=l.V(),h=()=>{l.v(u,()=>{if(p()[0])f||(Qt(o,this.p,s,a),f=!0),d.forEach(b=>{b.unmount(),b.isMounted=!1});else{le(i,a),f=!1;let b=!1;for(let L of d)!b&&L.isTrue()?(L.isMounted||(L.mount(),L.isMounted=!0),b=!0):(L.unmount(),L.isMounted=!1)}})},d=this.ce(r,h),x=[];j(i,()=>{c.stop();for(let b of x)b();x.length=0}),h();let E=O(p,h);x.push(E)}};var Ue=t=>{let e=ae(t)?t.content.childNodes:[t];return Array.from(e).filter(n=>{let r=n==null?void 0:n.tagName;return r!=="SCRIPT"&&r!=="STYLE"})},Te=(t,e)=>{for(let n of e)_n(n)||t.G(n)},be=(t,e)=>{var r;let n=t.querySelectorAll(e);return(r=t.matches)!=null&&r.call(t,e)?[t,...n]:n},ae=t=>t instanceof HTMLTemplateElement,Ae=t=>t.nodeType===Node.ELEMENT_NODE,et=t=>t.nodeType===Node.ELEMENT_NODE,Bn=t=>t instanceof HTMLSlotElement,me=t=>ae(t)?t.content.childNodes:t.childNodes,le=(t,e)=>{let n=t.nextSibling;for(;n!=null&&n!==e;){let r=n.nextSibling;q(n),n=r}},Ee=(t,e)=>{Object.defineProperty(t,"value",{get(){return t()},set(n){if(e)throw new Error("value is readonly.");return t(n)},enumerable:!0,configurable:!1})},Pn=(t,e)=>{if(!t)return!1;if(t.startsWith("["))return t.substring(1,t.length-1);let n=e.length;return t.startsWith(e)?t.substring(n,t.length-n):!1},He=t=>`[${CSS.escape(t)}]`,gt=(t,e)=>(t.startsWith("@")&&(t=e.f.on+":"+t.slice(1)),t.includes("[")&&(t=t.replace(/[[\]]/g,e.f.dynamic)),t),Yt=t=>{let e=Object.create(null);return n=>e[n]||(e[n]=t(n))},Yr=/-(\w)/g,V=Yt(t=>t&&t.replace(Yr,(e,n)=>n?n.toUpperCase():"")),Zr=/\B([A-Z])/g,_e=Yt(t=>t&&t.replace(Zr,"-$1").toLowerCase()),tt=Yt(t=>t&&t.charAt(0).toUpperCase()+t.slice(1));var bt={};var Tt=t=>{var n,r;let e=(n=ft(t))==null?void 0:n.onMounted;e==null||e.forEach(o=>{o()}),(r=t.mounted)==null||r.call(t)};var Zt=Symbol("scope"),en=t=>{try{Mn();let e=t();Kt(e);let n={context:e,unmount:()=>ge(e),[Zt]:1};return n[Zt]=1,n}finally{Ln()}},jn=t=>A(t)?Zt in t:!1;var Vn={collectRefObj:!0,onBind:(t,e)=>O(e.value,()=>{let r=e.value(),o=e.context,s=r[0];if(A(s))for(let i of Object.entries(s)){let a=i[0],c=i[1],p=o[a];p!==c&&(g(p)?p(c):o[a]=c)}},!0)};var $n={collectRefObj:!0,once:!0,onBind:(t,e)=>{let n=e.value(),r=e.context,o=n[0];if(!A(o))return()=>{};for(let s of Object.entries(o)){let i=s[0],a=s[1],c=r[i];c!==a&&(g(c)?c(a):r[i]=a)}return()=>{}}};var Fn={collectRefObj:!0,onBind:(t,e,n,r,o,s)=>{if(!r)return()=>{};let i=V(r);return O(e.value,()=>{var l;let c=(l=e.refs[0])!=null?l:e.value()[0],p=e.context,f=p[r];f!==c&&(g(f)?f(c):p[i]=c)},!0)}};var tn=(t,e)=>{if(t===e)return()=>{};let n=O(t,o=>e(o)),r=O(e,o=>t(o));return e(t()),()=>{n(),r()}};var H=t=>g(t)?t():t;var Et=class{constructor(e){m(this,"p");m(this,"fe");this.p=e,this.fe=e.o.f.inherit}N(e){this.Ke(e)}Ke(e){var l;let n=this.p,r=n.h,o=n.o.le,s=n.o.ue,i=r.me(),a=r.ze(),c=[...o.keys(),...a,...[...o.keys()].map(_e),...a.map(_e)].join(",");if(z(c))return;let p=e.querySelectorAll(c),f=(l=e.matches)!=null&&l.call(e,c)?[e,...p]:p;for(let u of f){if(u.hasAttribute(n.T))continue;let h=u.parentNode;if(!h)continue;let d=u.nextSibling,x=V(u.tagName).toUpperCase(),D=i[x],E=D!=null?D:s.get(x);if(!E)continue;let b=E.template;if(!b)continue;let L=u.parentElement;if(!L)continue;let U=new Comment(" begin component: "+u.tagName),re=new Comment(" end component: "+u.tagName);L.insertBefore(U,u),u.remove();let We=n.o.f.props,Ge=n.o.f.propsOnce,jt=n.o.f.bind,Je=(y,w)=>{let C={},K=y.hasAttribute(We),$=y.hasAttribute(Ge);return r.v(w,()=>{r.S(C),K&&n.x(Vn,y,We),$&&n.x($n,y,Ge);let R=E.props;if(!R||R.length===0)return;R=R.map(V);for(let ve of R.concat(R.map(_e))){let pe=y.getAttribute(ve);pe!==null&&(C[V(ve)]=pe,y.removeAttribute(ve))}let _=n.J.de(y,!1);for(let[ve,pe]of _.entries()){let[Se,Vt]=pe.Q;Vt&&R.includes(V(Vt))&&(Se!=="."&&Se!==":"&&Se!==jt||n.x(Fn,y,ve,!0,Vt,pe.X))}}),C},he=[...r.V()],it=()=>{var K;let y=Je(u,he),w=new Ye(y,u,he,U,re),C=en(()=>{var $;return($=E.context(w))!=null?$:{}}).context;if(w.autoProps){for(let[$,R]of Object.entries(y))if($ in C){let _=C[$];if(_===R)continue;w.entangle&&g(_)&&g(R)?j(U,tn(R,_)):g(_)?_(R):C[$]=H(R)}else C[$]=R;(K=w.onAutoPropsAssigned)==null||K.call(w)}return{componentCtx:C,head:w}},{componentCtx:Re,head:k}=it(),oe=[...me(b)],v=oe.length,N=u.childNodes.length===0,F=y=>{let w=y.parentElement;if(N){for(let R of[...y.childNodes])w.insertBefore(R,y);return}let C=y.name;z(C)&&(C=y.getAttributeNames().filter(R=>R.startsWith("#"))[0],z(C)?C="default":C=C.substring(1));let K=u.querySelector(`template[name='${C}'], template[\\#${C}]`);!K&&C==="default"&&(K=u.querySelector("template:not([name])"),K&&K.getAttributeNames().filter(R=>R.startsWith("#")).length>0&&(K=null));let $=R=>{k.enableSwitch&&r.v(he,()=>{r.S(Re);let _=Je(y,r.V());r.v(he,()=>{r.S(_);let ve=r.V(),pe=Dn(ve);for(let Se of R)Ae(Se)&&(Se.setAttribute(Ze,pe),Wt(pe),j(Se,()=>{Gt(pe)}))})})};if(K){let R=[...me(K)];for(let _ of R)w.insertBefore(_,y);$(R)}else{if(C!=="default"){for(let _ of[...me(y)])w.insertBefore(_,y);return}let R=[...me(u)].filter(_=>!ae(_));for(let _ of R)w.insertBefore(_,y);$(R)}},S=y=>{if(!Ae(y))return;let w=y.querySelectorAll("slot");if(Bn(y)){F(y),y.remove();return}for(let C of w)F(C),C.remove()};(()=>{for(let y=0;y<v;++y)oe[y]=oe[y].cloneNode(!0),h.insertBefore(oe[y],d),S(oe[y])})(),L.insertBefore(re,d);let se=()=>{if(!E.inheritAttrs)return;let y=oe.filter(C=>C.nodeType===Node.ELEMENT_NODE);y.length>1&&(y=y.filter(C=>C.hasAttribute(this.fe)));let w=y[0];if(w)for(let C of u.getAttributeNames()){if(C===We||C===Ge)continue;let K=u.getAttribute(C);if(C==="class")w.classList.add(...K.split(" "));else if(C==="style"){let $=w.style,R=u.style;for(let _ of R)$.setProperty(_,R.getPropertyValue(_))}else w.setAttribute(gt(C,n.o),K)}},ke=()=>{for(let y of u.getAttributeNames())!y.startsWith("@")&&!y.startsWith(n.o.f.on)&&u.removeAttribute(y)},Qe=()=>{se(),ke(),r.S(Re),n.ye(u,!1),Re.$emit=k.emit,Te(n,oe),j(u,()=>{ge(Re)}),j(U,()=>{fe(u)}),Tt(Re)};r.v(he,Qe)}}};var nn=class{constructor(e){m(this,"he");m(this,"Q",[]);m(this,"X",[]);m(this,"ge",[]);this.he=e,this.C()}C(){let e=this.he,n=e.startsWith(".");n&&(e=":"+e.slice(1));let r=e.indexOf("."),o=this.Q=(r<0?e:e.substring(0,r)).split(/[:@]/);if(z(o[0])&&(o[0]=n?".":e[0]),r>=0){let s=this.X=e.slice(r+1).split(".");if(s.includes("camel")){let i=o.length-1;o[i]=V(o[i])}s.includes("prop")&&(o[0]=".")}}},Ct=class{constructor(e){m(this,"p");m(this,"be");this.p=e,this.be=e.o.We()}de(e,n){let r=new Map;if(!et(e))return r;let o=this.be,s=a=>{let c=a.getAttributeNames().filter(p=>o.some(f=>p.startsWith(f)));for(let p of c)r.has(p)||r.set(p,new nn(p)),r.get(p).ge.push(a)};if(s(e),!n)return r;let i=e.querySelectorAll("*");for(let a of i)s(a);return r}};var eo=(t,e)=>{for(let n of t){let r=n.cloneNode(!0);e.appendChild(r)}},xt=class{constructor(e){m(this,"p");m(this,"I");m(this,"Te");this.p=e,this.I=e.o.f.is,this.Te=He(this.I)+", [is]"}N(e){let n=e.hasAttribute(this.I),r=be(e,this.Te);for(let o of r)this.x(o);return n}x(e){let n=e.getAttribute(this.I);if(!n){if(n=e.getAttribute("is"),!n||!n.startsWith("regor:"))return;n=`'${n.slice(6)}'`,e.removeAttribute("is")}e.removeAttribute(this.I),this.L(e,n)}B(e,n){let r=Ue(e),o=e.parentNode,s=document.createComment(`__begin__ dynamic ${n!=null?n:""}`);o.insertBefore(s,e),De(s,r),r.forEach(a=>{q(a)}),e.remove();let i=document.createComment(`__end__ dynamic ${n!=null?n:""}`);return o.insertBefore(i,s.nextSibling),{nodes:r,parent:o,commentBegin:s,commentEnd:i}}L(e,n){let{nodes:r,parent:o,commentBegin:s,commentEnd:i}=this.B(e,` => ${n} `),a=this.p.h.C(n),c=a.value,p=this.p.h,f=p.V(),l={name:""},u=ae(e)?r:[...r[0].childNodes],h=()=>{p.v(f,()=>{var L;let E=c()[0];if(A(E)&&(E.name?E=E.name:E=(L=Object.entries(p.me()).filter(U=>U[1]===E)[0])==null?void 0:L[0]),!P(E)||z(E)){le(s,i);return}if(l.name===E)return;le(s,i);let b=document.createElement(E);for(let U of e.getAttributeNames())U!==this.I&&b.setAttribute(U,e.getAttribute(U));eo(u,b),o.insertBefore(b,i),this.p.G(b),l.name=E})},d=[];j(s,()=>{a.stop();for(let E of d)E();d.length=0}),h();let D=O(c,h);d.push(D)}};var te=[],qn=t=>{var e;te.length!==0&&((e=te[te.length-1])==null||e.add(t))},Be=t=>{if(!t)return()=>{};let e={stop:()=>{}};return to(t,e),J(()=>e.stop(),!0),e.stop},to=(t,e)=>{if(!t)return;let n=[],r=!1,o=()=>{for(let s of n)s();n=[],r=!0};e.stop=o;try{let s=new Set;if(te.push(s),t(i=>n.push(i)),r)return;for(let i of[...s]){let a=O(i,()=>{o(),Be(t)});n.push(a)}}finally{te.pop()}},rn=t=>{let e=te.length,n=e>0&&te[e-1];try{return n&&te.push(null),t()}finally{n&&te.pop()}},on=t=>{try{let e=new Set;return te.push(e),{value:t(),refs:[...e]}}finally{te.pop()}};var nt=t=>!!t&&t[ut]===1;var W=(t,e,n)=>{if(!g(t))return;let r=t;if(r(void 0,e,1),!n)return;let o=r();if(o){if(T(o)||Y(o))for(let s of o)W(s,e,!0);else if(ye(o))for(let s of o)W(s[0],e,!0),W(s[1],e,!0);if(A(o))for(let s in o)W(o[s],e,!0)}};function no(t,e,n){Object.defineProperty(t,e,{value:n,enumerable:!1,writable:!0,configurable:!0})}var Pe=(t,e,n)=>{n.forEach(function(r){let o=t[r];no(e,r,function(...i){let a=o.apply(this,i),c=this[Q];for(let p of c)W(p);return a})})},Rt=(t,e)=>{Object.defineProperty(t,Symbol.toStringTag,{value:e,writable:!1,enumerable:!1,configurable:!0})};var zn=Array.prototype,sn=Object.create(zn),ro=["push","pop","shift","unshift","splice","sort","reverse"];Pe(zn,sn,ro);var Kn=Map.prototype,vt=Object.create(Kn),oo=["set","clear","delete"];Rt(vt,"Map");Pe(Kn,vt,oo);var Wn=Set.prototype,St=Object.create(Wn),so=["add","clear","delete"];Rt(St,"Set");Pe(Wn,St,so);var ce={},G=t=>{if(g(t)||nt(t))return t;let e={auto:!0,_value:t},n=c=>A(c)?Q in c?!0:T(c)?(Object.setPrototypeOf(c,sn),!0):Y(c)?(Object.setPrototypeOf(c,St),!0):ye(c)?(Object.setPrototypeOf(c,vt),!0):!1:!1,r=n(t),o=new Set,s=(c,p)=>{if(ce.stack&&ce.stack.length){ce.stack[ce.stack.length-1].add(a);return}o.size!==0&&rn(()=>{for(let f of[...o.keys()])o.has(f)&&f(c,p)})},i=c=>{let p=c[Q];p||(c[Q]=p=new Set),p.add(a)},a=(...c)=>{if(!(2 in c)){let f=c[0],l=c[1];return 0 in c?e._value===f||g(f)&&(f=f(),e._value===f)?f:(n(f)&&i(f),e._value=f,e.auto&&s(f,l),e._value):(qn(a),e._value)}switch(c[2]){case 0:{let f=c[3];if(!f)return()=>{};let l=u=>{o.delete(u)};return o.add(f),()=>{l(f)}}case 1:{let f=c[1],l=e._value;s(l,f);break}case 2:return o.size;case 3:{e.auto=!1;break}case 4:e.auto=!0}return e._value};return a[Q]=1,Ee(a,!1),r&&i(t),a};var rt=class{constructor(e){m(this,"E",[]);m(this,"H",new Map);m(this,"Y");this.Y=e}get w(){return this.E.length}Z(e){let n=this.Y(e.value);n!==void 0&&this.H.set(n,e)}ee(e){var r;let n=this.Y((r=this.E[e])==null?void 0:r.value);n!==void 0&&this.H.delete(n)}static Ge(e,n){return{items:[],index:e,value:n,order:-1}}S(e){e.order=this.w,this.E.push(e),this.Z(e)}Je(e,n){let r=this.w;for(let o=e;o<r;++o)this.E[o].order=o+1;n.order=e,this.E.splice(e,0,n),this.Z(n)}D(e){return this.E[e]}te(e,n){this.ee(e),this.E[e]=n,this.Z(n),n.order=e}xe(e){this.ee(e),this.E.splice(e,1);let n=this.w;for(let r=e;r<n;++r)this.E[r].order=r}Ee(e){let n=this.w;for(let r=e;r<n;++r)this.ee(r);this.E.splice(e)}Ct(e){return this.H.has(e)}Qe(e){var r;let n=this.H.get(e);return(r=n==null?void 0:n.order)!=null?r:-1}};var an=Symbol("r-for"),Ot=class Ot{constructor(e){m(this,"p");m(this,"b");m(this,"ne");m(this,"T");this.p=e,this.b=e.o.f.for,this.ne=He(this.b),this.T=e.o.f.pre}N(e){let n=e.hasAttribute(this.b),r=be(e,this.ne);for(let o of r)this.Xe(o);return n}W(e){return e[an]?!0:(e[an]=!0,be(e,this.ne).forEach(n=>n[an]=!0),!1)}Xe(e){if(e.hasAttribute(this.T)||this.W(e))return;let n=e.getAttribute(this.b);if(!n){M(0,this.b,e);return}e.removeAttribute(this.b),this.Ye(e,n)}Re(e){return ee(e)?[]:(B(e)&&(e=e()),Symbol.iterator in Object(e)?e:typeof e=="number"?(r=>({*[Symbol.iterator](){for(let o=1;o<=r;o++)yield o}}))(e):Object.entries(e))}Ye(e,n){var oe;let r=this.Ze(n);if(!(r!=null&&r.list)){M(1,this.b,n,e);return}let o=this.p.o.f.key,s=this.p.o.f.keyBind,i=(oe=e.getAttribute(o))!=null?oe:e.getAttribute(s);e.removeAttribute(o),e.removeAttribute(s);let a=i?v=>{var N;return H((N=H(v))==null?void 0:N[i])}:v=>v,c=(v,N)=>a(v)===a(N),p=Ue(e),f=e.parentNode;if(!f)return;let l=`${this.b} => ${n}`,u=new Comment(`__begin__ ${l}`);f.insertBefore(u,e),De(u,p),p.forEach(v=>{q(v)}),e.remove();let h=new Comment(`__end__ ${l}`);f.insertBefore(h,u.nextSibling);let d=this.p,x=d.h,D=x.V(),E=(v,N,F)=>{let S=r.createContext(N,v),Z=rt.Ge(S.index,N);return x.v(D,()=>{x.S(S.ctx);let se=F.previousSibling,ke=[];for(let Qe of p){let y=Qe.cloneNode(!0);f.insertBefore(y,F),ke.push(y)}for(Te(d,ke),se=se.nextSibling;se!==F;)Z.items.push(se),se=se.nextSibling}),Z},b=(v,N)=>{let F=k.D(v).items,S=F[F.length-1].nextSibling;for(let Z of F)q(Z);k.te(v,E(v,N,S))},L=(v,N)=>{k.S(E(v,N,h))},U=v=>{for(let N of k.D(v).items)q(N)},re=v=>{let N=k.w;for(let F=v;F<N;++F)k.D(F).index(F)},We=v=>{let N=k.w;B(v)&&(v=v());let F=H(v[0]);if(T(F)&&F.length===0){le(u,h),k.Ee(0);return}let S=0,Z=Number.MAX_SAFE_INTEGER,se=N,ke=this.p.o.forGrowThreshold,Qe=()=>k.w<se+ke;for(let w of this.Re(v[0])){let C=()=>{if(S<N){let K=k.D(S++);if(c(K.value,w))return;let $=k.Qe(a(w));if($>=S&&$-S<10){if(--S,Z=Math.min(Z,S),U(S),k.xe(S),--N,$>S+1)for(let R=S;R<$-1&&R<N&&!c(k.D(S).value,w);)++R,U(S),k.xe(S),--N;C();return}Qe()?(k.Je(S-1,E(S,w,k.D(S-1).items[0])),Z=Math.min(Z,S-1),++N):b(S-1,w)}else L(S++,w)};C()}let y=S;for(N=k.w;S<N;)U(S++);k.Ee(y),re(Z)},Ge=()=>{it=O(he,We)},jt=()=>{Je.stop(),it()},Je=x.C(r.list),he=Je.value,it,Re=0,k=new rt(a);for(let v of this.Re(he()[0]))k.S(E(Re++,v,h));j(u,jt),Ge()}Ze(e){var c,p;let n=Ot.et.exec(e);if(!n)return;let r=(n[1]+((c=n[2])!=null?c:"")).split(",").map(f=>f.trim()),o=r.length>1?r.length-1:-1,s=o!==-1&&(r[o]==="index"||(p=r[o])!=null&&p.startsWith("#"))?r[o]:"";s&&r.splice(o,1);let i=n[3];if(!i||r.length===0)return;let a=/[{[]/.test(e);return{list:i,createContext:(f,l)=>{let u={},h=H(f);if(!a&&r.length===1)u[r[0]]=f;else if(T(h)){let x=0;for(let D of r)u[D]=h[x++]}else for(let x of r)u[x]=h[x];let d={ctx:u,index:G(-1)};return s&&(d.index=u[s.startsWith("#")?s.substring(1):s]=G(l)),d}}}};m(Ot,"et",/\{?\[?\(?([^)}\]]+)\)?\]?\}?([^)]+)?\s+\b(?:in|of)\b\s+(.*)\s*$/);var wt=Ot;var At=class{constructor(e){m(this,"h");m(this,"Ce");m(this,"ve");m(this,"Se");m(this,"we");m(this,"J");m(this,"o");m(this,"T");m(this,"Oe");this.h=e,this.o=e.o,this.ve=new wt(this),this.Ce=new yt(this),this.Se=new xt(this),this.we=new Et(this),this.J=new Ct(this),this.T=this.o.f.pre,this.Oe=this.o.f.dynamic}tt(e){let n=ae(e)?[e]:e.querySelectorAll("template");for(let r of n){if(r.hasAttribute(this.T))continue;let o=r.parentNode;if(!o)continue;let s=r.nextSibling;if(r.remove(),!r.content)continue;let i=[...r.content.childNodes];for(let a of i)o.insertBefore(a,s);Te(this,i)}}G(e){e.nodeType!==Node.ELEMENT_NODE||e.hasAttribute(this.T)||this.Ce.N(e)||this.ve.N(e)||this.Se.N(e)||(this.we.N(e),this.tt(e),this.ye(e,!0))}ye(e,n){var s;let r=this.J.de(e,n),o=this.o._;for(let[i,a]of r.entries()){let[c,p]=a.Q,f=(s=o[i])!=null?s:o[c];if(!f){console.error("directive not found:",c);continue}a.ge.forEach(l=>{this.x(f,l,i,!1,p,a.X)})}}x(e,n,r,o,s,i){if(n.hasAttribute(this.T))return;let a=n.getAttribute(r);n.removeAttribute(r);let c=p=>{let f=p.getAttribute(Ze);return f||(p.parentElement?c(p.parentElement):null)};if(Jt()){let p=c(n);if(p){this.h.v(Un(p),()=>{this.L(e,n,a,s,i)});return}}this.L(e,n,a,s,i)}nt(e,n,r){if(e!==bt)return!1;if(z(r))return!0;let o=document.querySelector(r);if(o){let s=n.parentElement;if(!s)return!0;let i=new Comment(`teleported => '${r}'`);s.insertBefore(i,n),n.teleportedFrom=i,i.teleportedTo=n,j(i,()=>{q(n)}),o.appendChild(n)}return!0}L(e,n,r,o,s){var D;if(n.nodeType!==Node.ELEMENT_NODE||r==null||this.nt(e,n,r))return;let i=this.h.C(r,e.isLazy,e.isLazyKey,e.collectRefObj,e.once),a=[];j(n,()=>{i.stop(),f==null||f.stop();for(let E of a)E();a.length=0});let p=Pn(o,this.Oe),f;p&&(f=this.h.C(V(p),void 0,void 0,void 0,e.once));let l,u=()=>(l=i.value(),l),h,d=()=>f?(h=f.value()[0],h):(h=o,o),x=()=>{if(!e.onChange)return;let E=O(i.value,b=>{var re;let L=l,U=h;(re=e.onChange)==null||re.call(e,n,u(),L,d(),U,s)});if(a.push(E),f){let b=O(f.value,L=>{var re;let U=h;(re=e.onChange)==null||re.call(e,n,u(),U,d(),U,s)});a.push(b)}};e.once||x(),e.onBind&&a.push(e.onBind(n,i,r,o,f,s)),(D=e.onChange)==null||D.call(e,n,u(),void 0,d(),void 0,s)}};var Gn="http://www.w3.org/1999/xlink",io={itemscope:2,allowfullscreen:2,formnovalidate:2,ismap:2,nomodule:2,novalidate:2,readonly:2,async:1,autofocus:1,autoplay:1,controls:1,default:1,defer:1,disabled:1,hidden:1,inert:1,loop:1,open:1,required:1,reversed:1,scoped:1,seamless:1,checked:1,muted:1,multiple:1,selected:1};function ao(t){return!!t||t===""}var cn={onChange:(t,e,n,r,o,s)=>{var a;if(r){s&&s.includes("camel")&&(r=V(r)),Nt(t,r,e[0],o);return}let i=e.length;for(let c=0;c<i;++c){let p=e[c];if(T(p)){let f=(a=n==null?void 0:n[c])==null?void 0:a[0],l=p[0],u=p[1];Nt(t,l,u,f)}else if(A(p))for(let f of Object.entries(p)){let l=f[0],u=f[1],h=n==null?void 0:n[c],d=h&&l in h?l:void 0;Nt(t,l,u,d)}else{let f=n==null?void 0:n[c],l=e[c++],u=e[c];Nt(t,l,u,f)}}}},Nt=(t,e,n,r)=>{if(r&&r!==e&&t.removeAttribute(r),ee(e)){M(3,name,t);return}if(!P(e)){M(6,`Attribute key is not string at ${t.outerHTML}`,e);return}if(e.startsWith("xlink:")){ee(n)?t.removeAttributeNS(Gn,e.slice(6,e.length)):t.setAttributeNS(Gn,e,n);return}let o=e in io;ee(n)||o&&!ao(n)?t.removeAttribute(e):t.setAttribute(e,o?"":n)};var pn={onChange:(t,e,n)=>{let r=e.length;for(let o=0;o<r;++o){let s=e[o],i=n==null?void 0:n[o];if(T(s)){let a=s.length;for(let c=0;c<a;++c)Jn(t,s[c],i==null?void 0:i[c])}else Jn(t,s,i)}}},Jn=(t,e,n)=>{let r=t.classList,o=P(e),s=P(n);if(e&&!o){if(n&&!s)for(let i in n)(!(i in e)||!e[i])&&r.remove(i);for(let i in e)e[i]&&r.add(i)}else o?n!==e&&(s&&r.remove(...n.trim().split(/\s+/)),r.add(...e.trim().split(/\s+/))):n&&s&&r.remove(...n.trim().split(/\s+/))};var Qn={onChange:(t,e)=>{let[n,r]=e;B(r)?r(t,n):t.innerHTML=n==null?void 0:n.toString()}};function co(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=ue(t[r],e[r]);return n}function ue(t,e){if(t===e)return!0;let n=qt(t),r=qt(e);if(n||r)return n&&r?t.getTime()===e.getTime():!1;if(n=Xe(t),r=Xe(e),n||r)return t===e;if(n=T(t),r=T(e),n||r)return n&&r?co(t,e):!1;if(n=A(t),r=A(e),n||r){if(!n||!r)return!1;let o=Object.keys(t).length,s=Object.keys(e).length;if(o!==s)return!1;for(let i in t){let a=t.hasOwnProperty(i),c=e.hasOwnProperty(i);if(a&&!c||!a&&c||!ue(t[i],e[i]))return!1}}return String(t)===String(e)}function Mt(t,e){return t.findIndex(n=>ue(n,e))}var Xn=t=>{let e=parseFloat(t);return isNaN(e)?t:e};var fn=t=>{if(!g(t))throw I(3,"pause");t(void 0,void 0,3)};var ln=t=>{if(!g(t))throw I(3,"resume");t(void 0,void 0,4)};var Zn={onChange:(t,e)=>{po(t,e[0])},onBind:(t,e,n,r,o,s)=>fo(t,e,s)},po=(t,e)=>{let n=rr(t);if(n&&er(t))T(e)?e=Mt(e,de(t))>-1:Y(e)?e=e.has(de(t)):e=go(t,e),t.checked=e;else if(n&&tr(t))t.checked=ue(e,de(t));else if(n||or(t))nr(t)?t.value!==(e==null?void 0:e.toString())&&(t.value=e):t.value!==e&&(t.value=e);else if(sr(t)){let r=t.options,o=r.length,s=t.multiple;for(let i=0;i<o;i++){let a=r[i],c=de(a);if(s)T(e)?a.selected=Mt(e,c)>-1:a.selected=e.has(c);else if(ue(de(a),e)){t.selectedIndex!==i&&(t.selectedIndex=i);return}}!s&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}else M(7,t)},ot=t=>(g(t)&&(t=t()),B(t)&&(t=t()),t?P(t)?{trim:t.includes("trim"),lazy:t.includes("lazy"),number:t.includes("number"),int:t.includes("int")}:{trim:!!t.trim,lazy:!!t.lazy,number:!!t.number,int:!!t.int}:{trim:!1,lazy:!1,number:!1,int:!1}),er=t=>t.type==="checkbox",tr=t=>t.type==="radio",nr=t=>t.type==="number"||t.type==="range",rr=t=>t.tagName==="INPUT",or=t=>t.tagName==="TEXTAREA",sr=t=>t.tagName==="SELECT",fo=(t,e,n)=>{let r=e.value,o=ot(n==null?void 0:n.join(",")),s=ot(r()[1]),i={int:o.int||s.int,lazy:o.lazy||s.lazy,number:o.number||s.number,trim:o.trim||s.trim},a=e.refs[0];if(!a)return M(8,t),()=>{};let c=rr(t);return c&&er(t)?mo(t,a):c&&tr(t)?bo(t,a):c||or(t)?lo(t,i,a,r):sr(t)?To(t,a,r):(M(7,t),()=>{})},Yn=/[.,' ·٫]/,lo=(t,e,n,r)=>{let s=e.lazy?"change":"input",i=nr(t),a=()=>{!e.trim&&!ot(r()[1]).trim||(t.value=t.value.trim())},c=u=>{let h=u.target;h.composing=1},p=u=>{let h=u.target;h.composing&&(h.composing=0,h.dispatchEvent(new Event(s)))},f=()=>{t.removeEventListener(s,l),t.removeEventListener("change",a),t.removeEventListener("compositionstart",c),t.removeEventListener("compositionend",p),t.removeEventListener("change",p)},l=u=>{let h=u.target;if(!h||h.composing)return;let d=h.value,x=ot(r()[1]);if(i||x.number||x.int){if(x.int)d=parseInt(d);else{if(Yn.test(d[d.length-1])&&d.split(Yn).length===2){if(d+="0",d=parseFloat(d),isNaN(d))d="";else if(n()===d)return}d=parseFloat(d)}isNaN(d)&&(d=""),t.value=d}else x.trim&&(d=d.trim());n(d)};return t.addEventListener(s,l),t.addEventListener("change",a),t.addEventListener("compositionstart",c),t.addEventListener("compositionend",p),t.addEventListener("change",p),f},mo=(t,e)=>{let n="change",r=()=>{t.removeEventListener(n,o)},o=()=>{let s=de(t),i=t.checked,a=e();if(T(a)){let c=Mt(a,s),p=c!==-1;i&&!p?a.push(s):!i&&p&&a.splice(c,1)}else Y(a)?i?a.add(s):a.delete(s):e(yo(t,i))};return t.addEventListener(n,o),r},de=t=>"_value"in t?t._value:t.value,ir="trueValue",uo="falseValue",ar="true-value",ho="false-value",yo=(t,e)=>{let n=e?ir:uo;if(n in t)return t[n];let r=e?ar:ho;return t.hasAttribute(r)?t.getAttribute(r):e},go=(t,e)=>{if(ir in t)return ue(e,t.trueValue);let r=ar;return t.hasAttribute(r)?ue(e,t.getAttribute(r)):ue(e,!0)},bo=(t,e)=>{let n="change",r=()=>{t.removeEventListener(n,o)},o=()=>{let s=de(t);e(s)};return t.addEventListener(n,o),r},To=(t,e,n)=>{let r="change",o=()=>{t.removeEventListener(r,s)},s=()=>{let a=ot(n()[1]).number,c=Array.prototype.filter.call(t.options,p=>p.selected).map(p=>a?Xn(de(p)):de(p));if(t.multiple){let p=e();try{if(fn(e),Y(p)){p.clear();for(let f of c)p.add(f)}else T(p)?(p.splice(0),p.push(...c)):e(c)}finally{ln(e),W(e)}}else e(c[0])};return t.addEventListener(r,s),o};var Eo=["stop","prevent","capture","self","once","left","right","middle","passive"],Co=t=>{let e={};if(z(t))return;let n=t.split(",");for(let r of Eo)e[r]=n.includes(r);return e},un={isLazy:(t,e)=>e===-1&&t%2===0,isLazyKey:(t,e)=>e===0&&!t.endsWith("_flags"),once:!1,collectRefObj:!0,onBind:(t,e,n,r,o,s)=>{var f,l;if(o){let u=e.value(),h=H(o.value()[0]);return P(h)?mn(t,V(h),()=>e.value()[0],(f=s==null?void 0:s.join(","))!=null?f:u[1]):()=>{}}else if(r){let u=e.value();return mn(t,V(r),()=>e.value()[0],(l=s==null?void 0:s.join(","))!=null?l:u[1])}let i=[],a=()=>{i.forEach(u=>u())},c=e.value(),p=c.length;for(let u=0;u<p;++u){let h=c[u];if(B(h)&&(h=h()),A(h))for(let d of Object.entries(h)){let x=d[0],D=()=>{let b=e.value()[u];return B(b)&&(b=b()),b=b[x],B(b)&&(b=b()),b},E=h[x+"_flags"];i.push(mn(t,x,D,E))}else M(2,name,t)}return a}},xo=(t,e)=>{if(t.startsWith("keydown")||t.startsWith("keyup")||t.startsWith("keypress")){e!=null||(e="");let n=t.split(".").concat(e.split(","));t=n[0];let r=n[1],o=n.includes("ctrl"),s=n.includes("shift"),i=n.includes("alt"),a=n.includes("meta"),c=p=>!(o&&!p.ctrlKey||s&&!p.shiftKey||i&&!p.altKey||a&&!p.metaKey);return r?[t,p=>c(p)?p.key.toUpperCase()===r.toUpperCase():!1]:[t,c]}return[t,n=>!0]},mn=(t,e,n,r)=>{if(z(e))return M(5,name,t),()=>{};let o=Co(r),s=o?{capture:o.capture,passive:o.passive,once:o.once}:void 0,i;[e,i]=xo(e,r);let a=f=>{if(!i(f)||!n&&e==="submit"&&(o!=null&&o.prevent))return;let l=n(f);B(l)&&(l=l(f)),B(l)&&l(f)},c=()=>{t.removeEventListener(e,p,s)},p=f=>{if(!o){a(f);return}try{if(o.left&&f.button!==0||o.middle&&f.button!==1||o.right&&f.button!==2||o.self&&f.target!==t)return;o.stop&&f.stopPropagation(),o.prevent&&f.preventDefault(),a(f)}finally{o.once&&c()}};return t.addEventListener(e,p,s),c};var cr={onChange:(t,e,n,r,o,s)=>{if(r){s&&s.includes("camel")&&(r=V(r)),je(t,r,e[0]);return}let i=e.length;for(let a=0;a<i;++a){let c=e[a];if(T(c)){let p=c[0],f=c[1];je(t,p,f)}else if(A(c))for(let p of Object.entries(c)){let f=p[0],l=p[1];je(t,f,l)}else{let p=e[a++],f=e[a];je(t,p,f)}}}};function Ro(t){return!!t||t===""}var je=(t,e,n)=>{if(ee(e)){M(3,name,t);return}if(e==="innerHTML"||e==="textContent"){let s=[...t.childNodes];setTimeout(()=>s.forEach(fe),1),t[e]=n!=null?n:"";return}let r=t.tagName;if(e==="value"&&r!=="PROGRESS"&&!r.includes("-")){t._value=n;let s=r==="OPTION"?t.getAttribute("value"):t.value,i=n!=null?n:"";s!==i&&(t.value=i),n==null&&t.removeAttribute(e);return}let o=!1;if(n===""||n==null){let s=typeof t[e];s==="boolean"?n=Ro(n):n==null&&s==="string"?(n="",o=!0):s==="number"&&(n=0,o=!0)}try{t[e]=n}catch(s){o||M(4,e,r,n,s)}o&&t.removeAttribute(e)};var pr={once:!0,onBind:(t,e,n)=>{let r=e.value()[0],o=T(r),s=e.refs[0];return o?r.push(t):s?s==null||s(t):e.context[n]=t,()=>{if(o){let i=r.indexOf(t);i!==-1&&r.splice(i,1)}else s==null||s(null)}}};var fr={onChange:(t,e)=>{let n=Oe(t).data,r=n._ord;An(r)&&(r=n._ord=t.style.display),!!e[0]?t.style.display=r:t.style.display="none"}};var yn={onChange:(t,e,n)=>{let r=e.length;for(let o=0;o<r;++o){let s=e[o],i=n==null?void 0:n[o];if(T(s)){let a=s.length;for(let c=0;c<a;++c)lr(t,s[c],i==null?void 0:i[c])}else lr(t,s,i)}}},lr=(t,e,n)=>{let r=t.style,o=P(e);if(e&&!o){if(n&&!P(n))for(let s in n)e[s]==null&&hn(r,s,"");for(let s in e)hn(r,s,e[s])}else{let s=r.display;if(o?n!==e&&(r.cssText=e):n&&t.removeAttribute("style"),"_ord"in Oe(t).data)return;r.display=s}},mr=/\s*!important$/;function hn(t,e,n){if(T(n))n.forEach(r=>{hn(t,e,r)});else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{let r=vo(t,e);mr.test(n)?t.setProperty(_e(r),n.replace(mr,""),"important"):t[r]=n}}var ur=["Webkit","Moz","ms"],dn={};function vo(t,e){let n=dn[e];if(n)return n;let r=V(e);if(r!=="filter"&&r in t)return dn[e]=r;r=tt(r);for(let o=0;o<ur.length;o++){let s=ur[o]+r;if(s in t)return dn[e]=s}return e}var X=t=>dr(H(t)),dr=(t,e=new WeakMap)=>{if(!t||!A(t))return t;if(T(t))return t.map(X);if(Y(t)){let r=new Set;for(let o of t.keys())r.add(X(o));return r}if(ye(t)){let r=new Map;for(let o of t)r.set(X(o[0]),X(o[1]));return r}if(e.has(t))return H(e.get(t));let n=ct({},t);e.set(t,n);for(let r of Object.entries(n))n[r[0]]=dr(H(r[1]),e);return n};var hr={onChange:(t,e)=>{var r;let n=e[0];t.textContent=Y(n)?JSON.stringify(X([...n])):ye(n)?JSON.stringify(X([...n])):A(n)?JSON.stringify(X(n)):(r=n==null?void 0:n.toString())!=null?r:""}};var yr={onChange:(t,e)=>{je(t,"value",e[0])}};var Ve=t=>(t==null?void 0:t[mt])===1;var Me=t=>{if(nt(t))return t;let e;if(g(t)?(e=t,t=e()):e=G(t),t instanceof Node||t instanceof Date||t instanceof RegExp||t instanceof Promise||t instanceof Error)return e;if(e[mt]=1,T(t)){let n=t.length;for(let r=0;r<n;++r){let o=t[r];Ve(o)||(t[r]=Me(o))}return e}if(!A(t))return e;for(let n of Object.entries(t)){let r=n[1];if(Ve(r))continue;let o=n[0];Xe(o)||(t[o]=null,t[o]=Me(r))}return e};var Ce=class Ce{constructor(e){m(this,"_",{});m(this,"f",{});m(this,"We",()=>Object.keys(this._).filter(e=>e.length===1||!e.startsWith(":")));m(this,"le",new Map);m(this,"ue",new Map);m(this,"forGrowThreshold",10);m(this,"globalContext");m(this,"useInterpolation",!0);if(this.setDirectives("r-"),e){this.globalContext=e;return}this.globalContext=this.ot()}static getDefault(){var e;return(e=Ce.Ae)!=null?e:Ce.Ae=new Ce}ot(){let e={},n=globalThis;for(let r of Ce.rt.split(","))e[r]=n[r];return e.ref=Me,e.sref=G,e.flatten=X,e}addComponent(...e){for(let n of e){if(!n.defaultName){lt.warning("Registered component's default name is not defined",n);continue}this.le.set(tt(n.defaultName),n),this.ue.set(tt(n.defaultName).toLocaleUpperCase(),n)}}setDirectives(e){this._={".":cr,":":cn,"@":un,[`${e}on`]:un,[`${e}bind`]:cn,[`${e}html`]:Qn,[`${e}text`]:hr,[`${e}show`]:fr,[`${e}model`]:Zn,":style":yn,[`${e}bind:style`]:yn,":class":pn,[`${e}bind:class`]:pn,":ref":pr,":value":yr,teleport:bt},this.f={for:`${e}for`,if:`${e}if`,else:`${e}else`,elseif:`${e}else-if`,pre:`${e}pre`,inherit:`${e}inherit`,text:`${e}text`,props:":props",propsOnce:":props-once",bind:`${e}bind`,on:`${e}on`,keyBind:":key",key:"key",is:":is",teleport:`${e}teleport`,dynamic:"_d_"}}updateDirectives(e){e(this._,this.f)}};m(Ce,"Ae"),m(Ce,"rt","Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console");var ne=Ce;var Lt=(t,e)=>{if(!t)return;let r=(e!=null?e:ne.getDefault()).f,o=/(\{\{[^]*?\}\}|\[\[[^]*?\]\])/g,s=[{start:"{{",end:"}}"},{start:"[[",end:"]]"}];for(let i of wo(t,r.pre,s))So(i,r.text,o,s)},So=(t,e,n,r)=>{var c;let o=t.textContent;if(!o)return;let s=n,i=o.split(s);if(i.length<=1)return;if(((c=t.parentElement)==null?void 0:c.childNodes.length)===1&&i.length===3){let p=i[1],f=gr(p,r);if(f&&z(i[0])&&z(i[2])){let l=t.parentElement;l.setAttribute(e,p.substring(f.start.length,p.length-f.end.length)),l.innerText="";return}}let a=document.createDocumentFragment();for(let p of i){let f=gr(p,r);if(f){let l=document.createElement("span");l.setAttribute(e,p.substring(f.start.length,p.length-f.end.length)),a.appendChild(l)}else a.appendChild(document.createTextNode(p))}t.replaceWith(a)},wo=(t,e,n)=>{let r=[],o=s=>{var i;if(s.nodeType===Node.TEXT_NODE)n.some(a=>{var c;return(c=s.textContent)==null?void 0:c.includes(a.start)})&&r.push(s);else{if((i=s==null?void 0:s.hasAttribute)!=null&&i.call(s,e))return;for(let a of me(s))o(a)}};return o(t),r},gr=(t,e)=>e.find(n=>t.startsWith(n.start)&&t.endsWith(n.end));var Oo=9,Ao=10,No=13,Mo=32,xe=46,kt=44,Lo=39,ko=34,It=40,$e=41,Dt=91,Ut=93,gn=63,Io=59,br=58,Do=123,Ht=125,Tn=43,Uo=45,Tr=96,Er=47,Ho=92,Cr=[2,3],xr=[Tn,Uo],Ar={"-":1,"!":1,"~":1,"+":1,new:1},Nr={"=":2.5,"*=":2.5,"**=":2.5,"/=":2.5,"%=":2.5,"+=":2.5,"-=":2.5,"<<=":2.5,">>=":2.5,">>>=":2.5,"&=":2.5,"^=":2.5,"|=":2.5},qe=On(ct({"=>":2},Nr),{"||":3,"??":3,"&&":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"/":12,"%":12,"**":13}),Mr=Object.keys(Nr),_o=new Set(Mr),_t=new Set;_t.add("=>");Mr.forEach(t=>_t.add(t));var Bo=new Set(["$","_"]),Rr={true:!0,false:!1,null:null},Po="this";function Lr(t){return Math.max(0,...Object.keys(t).map(e=>e.length))}var jo=Lr(Ar),Vo=Lr(qe),ze="Expected ",Le="Unexpected ",Cn="Unclosed ",$o=ze+":",vr=ze+"expression",Fo="missing }",qo=Le+"object property",zo=Cn+"(",Sr=ze+"comma",wr=Le+"token ",Ko=Le+"period",bn=ze+"expression after ",Wo="missing unaryOp argument",Go=Cn+"[",Jo=ze+"exponent (",Qo="Variable names cannot start with a number (",Xo=Cn+'quote after "';var Fe=t=>t>=48&&t<=57,Or=t=>qe[t]||0,En=class{constructor(e){m(this,"st",{0:[this.it],1:[this.at,this.pt,this.ct],2:[this.ft,this.lt,this.ut,this.Ne,this.mt],3:[this.dt,this.yt,this.ht]});m(this,"r");m(this,"e");this.r=e,this.e=0}get M(){return this.r.charAt(this.e)}get l(){return this.r.charCodeAt(this.e)}m(e){return this.r.charCodeAt(this.e)===e}U(e){let n=String.fromCharCode(e);return e>=65&&e<=90||e>=97&&e<=122||e>=128&&!(n in qe)||Bo.has(n)}re(e){return this.U(e)||Fe(e)}i(e){return new Error(`${e} at character ${this.e}`)}k(e,n,r){let o=this.st[e];if(!o)return r;let s={node:r},i=a=>{a.call(this,s)};return n===0?o.forEach(i):o.find(i),s.node}y(){let e=this.l,n=this.r,r=this.e;for(;e===Mo||e===Oo||e===Ao||e===No;)e=n.charCodeAt(++r);this.e=r}parse(){let e=this.oe();return e.length===1?e[0]:{type:0,body:e}}oe(e){let n=[];for(;this.e<this.r.length;){let r=this.l;if(r===Io||r===kt)this.e++;else{let o=this.O();if(o)n.push(o);else if(this.e<this.r.length){if(r===e)break;throw this.i(Le+'"'+this.M+'"')}}}return n}O(){var n;let e=(n=this.k(0,1))!=null?n:this.Me();return this.y(),this.k(1,0,e)}se(){this.y();let e=this.e,n=this.r,r=n.substr(e,Vo),o=r.length;for(;o>0;){if(r in qe&&(!this.U(this.l)||e+r.length<n.length&&!this.re(n.charCodeAt(e+r.length))))return e+=o,this.e=e,r;r=r.substr(0,--o)}return!1}Me(){let e,n,r,o,s,i,a,c;if(s=this.j(),!s||(n=this.se(),!n))return s;if(o={value:n,prec:Or(n),right_a:_t.has(n)},i=this.j(),!i)throw this.i(bn+n);let p=[s,o,i];for(;n=this.se();){if(r=Or(n),r===0){this.e-=n.length;break}o={value:n,prec:r,right_a:_t.has(n)},c=n;let f=l=>o.right_a&&l.right_a?r>l.prec:r<=l.prec;for(;p.length>2&&f(p[p.length-2]);)i=p.pop(),n=p.pop().value,s=p.pop(),e={type:8,operator:n,left:s,right:i},p.push(e);if(e=this.j(),!e)throw this.i(bn+c);p.push(o,e)}for(a=p.length-1,e=p[a];a>1;)e={type:8,operator:p[a-1].value,left:p[a-2],right:e},a-=2;return e}j(){let e,n,r;if(this.y(),r=this.k(2,1),r)return this.k(3,0,r);let o=this.l;if(Fe(o)||o===xe)return this.gt();if(o===Lo||o===ko)r=this.bt();else if(o===Dt)r=this.Tt();else{for(e=this.r.substr(this.e,jo),n=e.length;n>0;){if(Object.prototype.hasOwnProperty.call(Ar,e)&&(!this.U(this.l)||this.e+e.length<this.r.length&&!this.re(this.r.charCodeAt(this.e+e.length)))){this.e+=n;let s=this.j();if(!s)throw this.i(Wo);return this.k(3,0,{type:7,operator:e,argument:s})}e=e.substr(0,--n)}this.U(o)?(r=this.ie(),r.name in Rr?r={type:4,value:Rr[r.name],raw:r.name}:r.name===Po&&(r={type:5})):o===It&&(r=this.xt())}return r?(r=this.$(r),this.k(3,0,r)):this.k(3,0,!1)}$(e){this.y();let n=this.l;for(;n===xe||n===Dt||n===It||n===gn;){let r;if(n===gn){if(this.r.charCodeAt(this.e+1)!==xe)break;r=!0,this.e+=2,this.y(),n=this.l}if(this.e++,n===Dt){if(e={type:3,computed:!0,object:e,property:this.O()},this.y(),n=this.l,n!==Ut)throw this.i(Go);this.e++}else n===It?e={type:6,arguments:this.ke($e),callee:e}:(n===xe||r)&&(r&&this.e--,this.y(),e={type:3,computed:!1,object:e,property:this.ie()});r&&(e.optional=!0),this.y(),n=this.l}return e}gt(){let e="",n;for(;Fe(this.l);)e+=this.r.charAt(this.e++);if(this.m(xe))for(e+=this.r.charAt(this.e++);Fe(this.l);)e+=this.r.charAt(this.e++);if(n=this.M,n==="e"||n==="E"){for(e+=this.r.charAt(this.e++),n=this.M,(n==="+"||n==="-")&&(e+=this.r.charAt(this.e++));Fe(this.l);)e+=this.r.charAt(this.e++);if(!Fe(this.r.charCodeAt(this.e-1)))throw this.i(Jo+e+this.M+")")}let r=this.l;if(this.U(r))throw this.i(Qo+e+this.M+")");if(r===xe||e.length===1&&e.charCodeAt(0)===xe)throw this.i(Ko);return{type:4,value:parseFloat(e),raw:e}}bt(){let e="",n=this.e,r=this.r.charAt(this.e++),o=!1;for(;this.e<this.r.length;){let s=this.r.charAt(this.e++);if(s===r){o=!0;break}else if(s==="\\")switch(s=this.r.charAt(this.e++),s){case"n":e+=`
2
+ `;break;case"r":e+="\r";break;case"t":e+=" ";break;case"b":e+="\b";break;case"f":e+="\f";break;case"v":e+="\v";break;default:e+=s}else e+=s}if(!o)throw this.i(Xo+e+'"');return{type:4,value:e,raw:this.r.substring(n,this.e)}}ie(){let e=this.l,n=this.e;if(this.U(e))this.e++;else throw this.i(Le+this.M);for(;this.e<this.r.length&&(e=this.l,this.re(e));)this.e++;return{type:2,name:this.r.slice(n,this.e)}}ke(e){let n=[],r=!1,o=0;for(;this.e<this.r.length;){this.y();let s=this.l;if(s===e){if(r=!0,this.e++,e===$e&&o&&o>=n.length)throw this.i(wr+String.fromCharCode(e));break}else if(s===kt){if(this.e++,o++,o!==n.length){if(e===$e)throw this.i(wr+",");if(e===Ut)for(let i=n.length;i<o;i++)n.push(null)}}else{if(n.length!==o&&o!==0)throw this.i(Sr);{let i=this.O();if(!i||i.type===0)throw this.i(Sr);n.push(i)}}}if(!r)throw this.i(ze+String.fromCharCode(e));return n}xt(){this.e++;let e=this.oe($e);if(this.m($e))return this.e++,e.length===1?e[0]:e.length?{type:1,expressions:e}:!1;throw this.i(zo)}Tt(){return this.e++,{type:9,elements:this.ke(Ut)}}ft(e){if(this.m(Do)){this.e++;let n=[];for(;!isNaN(this.l);){if(this.y(),this.m(Ht)){this.e++,e.node=this.$({type:10,properties:n});return}let r=this.O();if(!r)break;if(this.y(),r.type===2&&(this.m(kt)||this.m(Ht)))n.push({type:12,computed:!1,key:r,value:r,shorthand:!0});else if(this.m(br)){this.e++;let o=this.O();if(!o)throw this.i(qo);let s=r.type===9;n.push({type:12,computed:s,key:s?r.elements[0]:r,value:o,shorthand:!1}),this.y()}else r&&n.push(r);this.m(kt)&&this.e++}throw this.i(Fo)}}lt(e){let n=this.l;if(xr.some(r=>r===n&&r===this.r.charCodeAt(this.e+1))){this.e+=2;let r=e.node={type:13,operator:n===Tn?"++":"--",argument:this.$(this.ie()),prefix:!0};if(!r.argument||!Cr.includes(r.argument.type))throw this.i(Le+r.operator)}}yt(e){if(e.node){let n=this.l;if(xr.some(r=>r===n&&r===this.r.charCodeAt(this.e+1))){if(!Cr.includes(e.node.type))throw this.i(Le+e.node.operator);this.e+=2,e.node={type:13,operator:n===Tn?"++":"--",argument:e.node,prefix:!1}}}}ut(e){[0,1,2].every(n=>this.r.charCodeAt(this.e+n)===xe)&&(this.e+=3,e.node={type:14,argument:this.O()})}ct(e){if(e.node&&this.m(gn)){this.e++;let n=e.node,r=this.O();if(!r)throw this.i(vr);if(this.y(),this.m(br)){this.e++;let o=this.O();if(!o)throw this.i(vr);if(e.node={type:11,test:n,consequent:r,alternate:o},n.operator&&qe[n.operator]<=.9){let s=n;for(;s.right.operator&&qe[s.right.operator]<=.9;)s=s.right;e.node.test=s.right,s.right=e.node,e.node=n}}else throw this.i($o)}}it(e){if(this.y(),this.m(It)){let n=this.e;if(this.e++,this.y(),this.m($e)){this.e++;let r=this.se();if(r==="=>"){let o=this.Me();if(!o)throw this.i(bn+r);e.node={type:15,params:null,body:o};return}}this.e=n}}at(e){this.Le(e.node)}Le(e){e&&(Object.values(e).forEach(n=>{n&&typeof n=="object"&&this.Le(n)}),e.operator==="=>"&&(e.type=15,e.params=e.left?[e.left]:null,e.body=e.right,e.params&&e.params[0].type===1&&(e.params=e.params[0].expressions),delete e.left,delete e.right,delete e.operator))}pt(e){e.node&&this.F(e.node)}F(e){_o.has(e.operator)?(e.type=16,this.F(e.left),this.F(e.right)):e.operator||Object.values(e).forEach(n=>{n&&typeof n=="object"&&this.F(n)})}ht(e){if(!e.node)return;let n=e.node.type;(n===2||n===3)&&this.m(Tr)&&(e.node={type:17,tag:e.node,quasi:this.Ne(e)})}Ne(e){if(!this.m(Tr))return;let n={type:19,quasis:[],expressions:[]},r="",o="",s=!1,i=this.r.length,a=()=>n.quasis.push({type:18,value:{raw:o,cooked:r},tail:s});for(;this.e<i;){let c=this.r.charAt(++this.e);if(c==="`")return this.e+=1,s=!0,a(),e.node=n,n;if(c==="$"&&this.r.charAt(this.e+1)==="{"){if(this.e+=2,a(),o="",r="",n.expressions.push(...this.oe(Ht)),!this.m(Ht))throw this.i("unclosed ${")}else if(c==="\\")switch(o+=c,c=this.r.charAt(++this.e),o+=c,c){case"n":r+=`
3
+ `;break;case"r":r+="\r";break;case"t":r+=" ";break;case"b":r+="\b";break;case"f":r+="\f";break;case"v":r+="\v";break;default:r+=c}else r+=c,o+=c}throw this.i("Unclosed `")}dt(e){var o;let n=e.node;if(!n||n.operator!=="new"||!n.argument)return;if(!n.argument||![6,3].includes(n.argument.type))throw this.i("Expected new function()");e.node=n.argument;let r=e.node;for(;r.type===3||r.type===6&&((o=r==null?void 0:r.callee)==null?void 0:o.type)===3;)r=r.type===3?r.object:r.callee.object;r.type=20}mt(e){if(!this.m(Er))return;let n=++this.e,r=!1;for(;this.e<this.r.length;){if(this.l===Er&&!r){let o=this.r.slice(n,this.e),s="";for(;++this.e<this.r.length;){let a=this.l;if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57)s+=this.M;else break}let i;try{i=new RegExp(o,s)}catch(a){throw this.i(a.message)}return e.node={type:4,value:i,raw:this.r.slice(n-1,this.e)},e.node=this.$(e.node),e.node}this.m(Dt)?r=!0:r&&this.m(Ut)&&(r=!1),this.e+=this.m(Ho)?2:1}throw this.i("Unclosed Regex")}},kr=t=>new En(t).parse();var Yo={"=>":(t,e)=>{},"=":(t,e)=>{},"*=":(t,e)=>{},"**=":(t,e)=>{},"/=":(t,e)=>{},"%=":(t,e)=>{},"+=":(t,e)=>{},"-=":(t,e)=>{},"<<=":(t,e)=>{},">>=":(t,e)=>{},">>>=":(t,e)=>{},"&=":(t,e)=>{},"^=":(t,e)=>{},"|=":(t,e)=>{},"||":(t,e)=>t()||e(),"??":(t,e)=>{var n;return(n=t())!=null?n:e()},"&&":(t,e)=>t()&&e(),"|":(t,e)=>t|e,"^":(t,e)=>t^e,"&":(t,e)=>t&e,"==":(t,e)=>t==e,"!=":(t,e)=>t!=e,"===":(t,e)=>t===e,"!==":(t,e)=>t!==e,"<":(t,e)=>t<e,">":(t,e)=>t>e,"<=":(t,e)=>t<=e,">=":(t,e)=>t>=e,in:(t,e)=>t in e,"<<":(t,e)=>t<<e,">>":(t,e)=>t>>e,">>>":(t,e)=>t>>>e,"+":(t,e)=>t+e,"-":(t,e)=>t-e,"*":(t,e)=>t*e,"/":(t,e)=>t/e,"%":(t,e)=>t%e,"**":(t,e)=>at(t,e)},Zo={"-":t=>-t,"+":t=>+t,"!":t=>!t,"~":t=>~t,new:t=>t},Hr=t=>{if(!(t!=null&&t.some(Ur)))return t;let e=[];return t.forEach(n=>Ur(n)?e.push(...n):e.push(n)),e},Ir=(...t)=>Hr(t),xn=(t,e)=>{if(!t)return e;let n=Object.create(e!=null?e:{});return n.$event=t,n},es={"++":(t,e)=>{let n=t[e];if(g(n)){let r=n();return n(++r),r}return++t[e]},"--":(t,e)=>{let n=t[e];if(g(n)){let r=n();return n(--r),r}return--t[e]}},ts={"++":(t,e)=>{let n=t[e];if(g(n)){let r=n();return n(r+1),r}return t[e]++},"--":(t,e)=>{let n=t[e];if(g(n)){let r=n();return n(r-1),r}return t[e]--}},Dr={"=":(t,e,n)=>{let r=t[e];return g(r)?r(n):t[e]=n},"+=":(t,e,n)=>{let r=t[e];return g(r)?r(r()+n):t[e]+=n},"-=":(t,e,n)=>{let r=t[e];return g(r)?r(r()-n):t[e]-=n},"*=":(t,e,n)=>{let r=t[e];return g(r)?r(r()*n):t[e]*=n},"/=":(t,e,n)=>{let r=t[e];return g(r)?r(r()/n):t[e]/=n},"%=":(t,e,n)=>{let r=t[e];return g(r)?r(r()%n):t[e]%=n},"**=":(t,e,n)=>{let r=t[e];return g(r)?r(at(r(),n)):t[e]=at(t[e],n)},"<<=":(t,e,n)=>{let r=t[e];return g(r)?r(r()<<n):t[e]<<=n},">>=":(t,e,n)=>{let r=t[e];return g(r)?r(r()>>n):t[e]>>=n},">>>=":(t,e,n)=>{let r=t[e];return g(r)?r(r()>>>n):t[e]>>>=n},"|=":(t,e,n)=>{let r=t[e];return g(r)?r(r()|n):t[e]|=n},"&=":(t,e,n)=>{let r=t[e];return g(r)?r(r()&n):t[e]&=n},"^=":(t,e,n)=>{let r=t[e];return g(r)?r(r()^n):t[e]^=n}},Bt=(t,e)=>B(t)?t.bind(e):t,Rn=class{constructor(e,n,r,o,s){m(this,"u");m(this,"Ve");m(this,"Ie");m(this,"De");m(this,"A");m(this,"Ue");m(this,"Pe");this.u=T(e)?e:[e],this.Ve=n,this.Ie=r,this.De=o,this.Pe=!!s}Be(e,n){if(n&&e in n)return n;for(let r of this.u)if(e in r)return r}2(e,n,r){let o=e.name;if(o==="$root")return this.u[this.u.length-1];if(o==="$parent")return this.u[1];if(o==="$ctx")return[...this.u];if(r&&o in r)return this.A=r[o],Bt(H(r[o]),r);for(let i of this.u)if(o in i)return this.A=i[o],Bt(H(i[o]),i);let s=this.Ve;if(s&&o in s)return this.A=s[o],Bt(H(s[o]),s)}5(e,n,r){return this.u[0]}0(e,n,r){return this.He(n,r,Ir,...e.body)}1(e,n,r){return this.R(n,r,(...o)=>o.pop(),...e.expressions)}3(e,n,r){let{obj:o,key:s}=this.ae(e,n,r),i=o==null?void 0:o[s];return this.A=i,Bt(H(i),o)}4(e,n,r){return e.value}6(e,n,r){let o=(i,...a)=>B(i)?i(...Hr(a)):i,s=this.R(++n,r,o,e.callee,...e.arguments);return this.A=s,s}7(e,n,r){return this.R(n,r,Zo[e.operator],e.argument)}8(e,n,r){let o=Yo[e.operator];switch(e.operator){case"||":case"&&":case"??":return o(()=>this.g(e.left,n,r),()=>this.g(e.right,n,r))}return this.R(n,r,o,e.left,e.right)}9(e,n,r){return this.He(++n,r,Ir,...e.elements)}10(e,n,r){let o={},s=(...i)=>{i.forEach(a=>{Object.assign(o,a)})};return this.R(++n,r,s,...e.properties),o}11(e,n,r){return this.R(n,r,o=>this.g(o?e.consequent:e.alternate,n,r),e.test)}12(e,n,r){var f;let o={},s=l=>(l==null?void 0:l.type)!==15,i=(f=this.De)!=null?f:()=>!1,a=n===0&&this.Pe,c=l=>this._e(a,e.key,n,xn(l,r)),p=l=>this._e(a,e.value,n,xn(l,r));if(e.shorthand){let l=e.key.name;o[l]=s(e.key)&&i(l,n)?c:c()}else if(e.computed){let l=H(c());o[l]=s(e.value)&&i(l,n)?p:p()}else{let l=e.key.type===4?e.key.value:e.key.name;o[l]=s(e.value)&&i(l,n)?()=>p:p()}return o}ae(e,n,r){let o=this.g(e.object,n,r),s=e.computed?this.g(e.property,n,r):e.property.name;return{obj:o,key:s}}13(e,n,r){let o=e.argument,s=e.operator,i=e.prefix?es:ts;if(o.type===2){let a=o.name,c=this.Be(a,r);return ee(c)?void 0:i[s](c,a)}if(o.type===3){let{obj:a,key:c}=this.ae(o,n,r);return i[s](a,c)}}16(e,n,r){let o=e.left,s=e.operator;if(o.type===2){let i=o.name,a=this.Be(i,r);if(ee(a))return;let c=this.g(e.right,n,r);return Dr[s](a,i,c)}if(o.type===3){let{obj:i,key:a}=this.ae(o,n,r),c=this.g(e.right,n,r);return Dr[s](i,a,c)}}14(e,n,r){let o=this.g(e.argument,n,r);return T(o)&&(o.s=_r),o}17(e,n,r){return this[6]({type:6,callee:e.tag,arguments:[{type:9,elements:e.quasi.quasis},...e.quasi.expressions]},n,r)}19(e,n,r){let o=(...s)=>s.reduce((i,a,c)=>i+=a+e.quasis[c+1].value.cooked,e.quasis[0].value.cooked);return this.R(n,r,o,...e.expressions)}18(e,n,r){return e.value.cooked}20(e,n,r){let o=(s,...i)=>new s(...i);return this.R(n,r,o,e.callee,...e.arguments)}15(e,n,r){return(...o)=>{let s=Object.create(r!=null?r:{}),i=e.params;if(i){let a=0;for(let c of i)s[c.name]=o[a++]}return this.g(e.body,n,s)}}g(e,n,r){let o=H(this[e.type](e,n,r));return this.Ue=e.type,o}_e(e,n,r,o){let s=this.g(n,r,o);return e&&this.je()?this.A:s}je(){let e=this.Ue;return(e===2||e===3||e===6)&&g(this.A)}eval(e,n){let{value:r,refs:o}=on(()=>this.g(e,-1,n)),s={value:r,refs:o};return this.je()&&(s.ref=this.A),s}R(e,n,r,...o){let s=o.map(i=>i&&this.g(i,e,n));return r(...s)}He(e,n,r,...o){let s=this.Ie;if(!s)return this.R(e,n,r,...o);let i=o.map((a,c)=>a&&(a.type!==15&&s(c,e)?p=>this.g(a,e,xn(p,n)):this.g(a,e,n)));return r(...i)}},_r=Symbol("s"),Ur=t=>(t==null?void 0:t.s)===_r,Br=(t,e,n,r,o,s,i)=>new Rn(e,n,r,o,i).eval(t,s);var Pr={},Pt=class{constructor(e,n){m(this,"u");m(this,"o");m(this,"$e",[]);this.u=e,this.o=n}S(e){this.u=[e,...this.u]}me(){return this.u.map(n=>n.components).filter(n=>!!n).reverse().reduce((n,r)=>{for(let[o,s]of Object.entries(r))n[o.toUpperCase()]=s;return n},{})}ze(){let e=[],n=new Set,r=this.u.map(o=>o.components).filter(o=>!!o).reverse();for(let o of r)for(let s of Object.keys(o))n.has(s)||(n.add(s),e.push(s));return e}C(e,n,r,o,s){var h;let i=G([]),a=[],c=()=>{for(let d of a)d();a.length=0},p={value:i,stop:c,refs:[],context:this.u[0]};if(z(e))return p;let f=this.o.globalContext,l=[],u=(d,x,D,E)=>{try{let b=Br(d,x,f,n,r,E,o);return D&&l.push(...b.refs),{value:b.value,refs:b.refs,ref:b.ref}}catch(b){M(6,`evaluation error: ${e}`,b)}return{value:void 0,refs:[]}};try{let d=(h=Pr[e])!=null?h:kr("["+e+"]");Pr[e]=d;let x=this.u,D=()=>{l.splice(0),c();let E=d.elements.map((b,L)=>n!=null&&n(L,-1)?{value:U=>u(b,x,!1,{$event:U}).value,refs:[]}:u(b,x,!0));if(!s)for(let b of l){let L=O(b,D);a.push(L)}i(E.map(b=>b.value)),p.refs=E.map(b=>b.ref)};D()}catch(d){M(6,`parse error: ${e}`,d)}return p}V(){return this.u}te(e){this.$e.push(this.u),this.u=e}v(e,n){try{this.te(e),n()}finally{this.Et()}}Et(){var e;this.u=(e=this.$e.pop())!=null?e:[]}};var ns="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",rs=new Set(ns.toUpperCase().split(",")),os="http://www.w3.org/2000/svg",jr=(t,e)=>{ae(t)?t.content.appendChild(e):t.appendChild(e)},vn=(t,e,n,r)=>{var i;let o=t.t;if(o){let a=n&&rs.has(o.toUpperCase())?document.createElementNS(os,o.toLowerCase()):document.createElement(o),c=t.a;if(c)for(let f of Object.entries(c)){let l=f[0],u=f[1];l.startsWith("#")&&(u=l.substring(1),l="name"),a.setAttribute(gt(l,r),u)}let p=t.c;if(p)for(let f of p)vn(f,a,n,r);jr(e,a);return}let s=t.d;if(s){let a;switch((i=t.n)!=null?i:Node.TEXT_NODE){case Node.COMMENT_NODE:a=document.createComment(s);break;case Node.TEXT_NODE:a=document.createTextNode(s);break}if(a)jr(e,a);else throw new Error("unsupported node type.")}},Ke=(t,e,n)=>{n!=null||(n=ne.getDefault());let r=document.createDocumentFragment();if(!T(t))return vn(t,r,!!e,n),r;for(let o of t)vn(o,r,!!e,n);return r};var ss=(t,e={selector:"#app"},n)=>{P(e)&&(e={selector:"#app",template:e}),jn(t)&&(t=t.context);let r=e.element?e.element:e.selector?document.querySelector(e.selector):null;if(!r||!Ae(r))throw I(0);n||(n=ne.getDefault());let o=()=>{for(let a of[...r.childNodes])q(a)},s=a=>{for(let c of a)r.appendChild(c)};if(e.template){let a=document.createRange().createContextualFragment(e.template);o(),s(a.childNodes),e.element=a}else if(e.json){let a=Ke(e.json,e.isSVG,n);o(),s(a.childNodes)}return n.useInterpolation&&Lt(r,n),new Sn(t,r,n).x(),j(r,()=>{ge(t)}),Tt(t),{context:t,unmount:()=>{q(r)},unbind:()=>{fe(r)}}},Sn=class{constructor(e,n,r){m(this,"Rt");m(this,"Fe");m(this,"o");m(this,"h");m(this,"p");this.Rt=e,this.Fe=n,this.o=r,this.h=new Pt([e],r),this.p=new At(this.h)}x(){this.p.G(this.Fe)}};var st=t=>{if(T(t))return t.map(o=>st(o));let e={};if(t.tagName)e.t=t.tagName;else return t.nodeType===Node.COMMENT_NODE&&(e.n=Node.COMMENT_NODE),t.textContent&&(e.d=t.textContent),e;let n=t.getAttributeNames();n.length>0&&(e.a=Object.fromEntries(n.map(o=>{var s;return[o,(s=t.getAttribute(o))!=null?s:""]})));let r=me(t);return r.length>0&&(e.c=[...r].map(o=>st(o))),e};var is=(t,e={})=>{var s,i,a,c,p,f;T(e)&&(e={props:e}),P(t)&&(t={template:t});let n=(s=e.context)!=null?s:()=>({}),r=!1;if(t.element){let l=t.element;l.remove(),t.element=l}else if(t.selector){let l=document.querySelector(t.selector);if(!l)throw I(1,t.selector);l.remove(),t.element=l}else if(t.template){let l=document.createRange().createContextualFragment(t.template);t.element=l}else t.json&&(t.element=Ke(t.json,t.isSVG,e.config),r=!0);t.element||(t.element=document.createDocumentFragment()),((i=e.useInterpolation)==null||i)&&Lt(t.element,(a=e.config)!=null?a:ne.getDefault());let o=t.element;if(!r&&(((p=t.isSVG)!=null?p:et(o)&&((c=o.hasAttribute)!=null&&c.call(o,"isSVG")))||et(o)&&o.querySelector("[isSVG]"))){let l=o.content,u=l?[...l.childNodes]:[...o.childNodes],h=st(u);t.element=Ke(h,!0,e.config)}return{context:n,template:t.element,inheritAttrs:(f=e.inheritAttrs)!=null?f:!0,props:e.props,defaultName:e.defaultName}};var as=t=>{var e;(e=we())==null||e.onMounted.push(t)};var cs=t=>{let e,n={},r=(...o)=>{if(o.length<=2&&0 in o)throw I(4);return e&&!n.isStopped?e(...o):(e=ps(t,n),e(...o))};return r[Q]=1,Ee(r,!0),r.stop=()=>{var o,s;return(s=(o=n.ref)==null?void 0:o.stop)==null?void 0:s.call(o)},J(()=>r.stop(),!0),r},ps=(t,e)=>{var s;let n=(s=e.ref)!=null?s:G(null);e.ref=n,e.isStopped=!1;let r=0,o=Be(()=>{if(r>0){o(),e.isStopped=!0,W(n);return}n(t()),++r});return n.stop=o,n};var fs=(t,e)=>{let n={},r,o=(...s)=>{if(s.length<=2&&0 in s)throw I(4);return r&&!n.isStopped?r(...s):(r=ls(t,e,n),r(...s))};return o[Q]=1,Ee(o,!0),o.stop=()=>{var s,i;return(i=(s=n.ref)==null?void 0:s.stop)==null?void 0:i.call(s)},J(()=>o.stop(),!0),o},ls=(t,e,n)=>{var a;let r=(a=n.ref)!=null?a:G(null);n.ref=r,n.isStopped=!1;let o=0,s=c=>{if(o>0){r.stop(),n.isStopped=!0,W(r);return}r(e(...t.map(p=>p()))),++o},i=[];for(let c of t){let p=O(c,s);i.push(p)}return s(null),r.stop=()=>{i.forEach(c=>{c()})},r};var ms=(t,e)=>{let n={},r,o=(...s)=>{if(s.length<=2&&0 in s)throw I(4);return r&&!n.isStopped?r(...s):(r=us(t,e,n),r(...s))};return o[Q]=1,Ee(o,!0),o.stop=()=>{var s,i;return(i=(s=n.ref)==null?void 0:s.stop)==null?void 0:i.call(s)},J(()=>o.stop(),!0),o},us=(t,e,n)=>{var s;let r=(s=n.ref)!=null?s:G(null);n.ref=r,n.isStopped=!1;let o=0;return r.stop=O(t,i=>{if(o>0){r.stop(),n.isStopped=!0,W(r);return}r(e(i)),++o},!0),r};var ds=t=>(t[ut]=1,t);var hs=(t,e)=>{if(!e)throw I(5);let r=Ve(t)?Me:a=>a,o=()=>localStorage.setItem(e,JSON.stringify(X(t()))),s=localStorage.getItem(e);if(s!=null)try{t(r(JSON.parse(s)))}catch(a){M(6,`persist: failed to parse data for key ${e}`,a),o()}else o();let i=Be(o);return J(i,!0),t};var Vr=(t,...e)=>{let n="",r=t,o=e,s=r.length,i=o.length;for(let a=0;a<s;++a)n+=r[a],a<i&&(n+=o[a]);return n},ys=Vr;var gs=(t,e,n)=>{let r=[],o=()=>{e(t.map(i=>i()))};for(let i of t)r.push(O(i,o));n&&o();let s=()=>{for(let i of r)i()};return J(s,!0),s};var bs=t=>{if(!g(t))throw I(3,"observerCount");return t(void 0,void 0,2)};var Ts=t=>{$r();try{t()}finally{Fr()}},$r=()=>{ce.stack||(ce.stack=[]),ce.stack.push(new Set)},Fr=()=>{let t=ce.stack;if(!t||t.length===0)return;let e=t.pop();if(t.length){let n=t[t.length-1];for(let r of e)n.add(r);return}delete ce.stack;for(let n of e)try{W(n)}catch(r){console.error(r)}};export{Ye as ComponentHead,ne as RegorConfig,j as addUnbinder,Ts as batch,on as collectRefs,fs as computeMany,ms as computeRef,cs as computed,ss as createApp,is as createComponent,Fr as endBatch,tn as entangle,X as flatten,Oe as getBindData,Vr as html,Ve as isDeepRef,nt as isRaw,g as isRef,ds as markRaw,O as observe,gs as observeMany,bs as observerCount,as as onMounted,J as onUnmounted,fn as pause,hs as persist,ys as raw,Me as ref,q as removeNode,ln as resume,rn as silence,G as sref,$r as startBatch,Ke as toFragment,st as toJsonTemplate,W as trigger,fe as unbind,H as unref,en as useScope,lt as warningHandler,Be as watchEffect};