regor 1.2.2 → 1.2.4
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.
- package/README.md +32 -0
- package/dist/regor.d.ts +1 -1
- package/dist/regor.es2015.cjs.js +161 -12
- package/dist/regor.es2015.cjs.prod.js +4 -3
- package/dist/regor.es2015.esm.js +161 -12
- package/dist/regor.es2015.esm.prod.js +4 -3
- package/dist/regor.es2015.iife.js +161 -12
- package/dist/regor.es2015.iife.prod.js +4 -3
- package/dist/regor.es2019.cjs.js +161 -12
- package/dist/regor.es2019.cjs.prod.js +4 -3
- package/dist/regor.es2019.esm.js +161 -12
- package/dist/regor.es2019.esm.prod.js +4 -3
- package/dist/regor.es2019.iife.js +161 -12
- package/dist/regor.es2019.iife.prod.js +4 -3
- package/dist/regor.es2022.cjs.js +160 -12
- package/dist/regor.es2022.cjs.prod.js +4 -3
- package/dist/regor.es2022.esm.js +160 -12
- package/dist/regor.es2022.esm.prod.js +4 -3
- package/dist/regor.es2022.iife.js +160 -12
- package/dist/regor.es2022.iife.prod.js +4 -3
- package/package.json +2 -2
package/dist/regor.es2015.esm.js
CHANGED
|
@@ -736,11 +736,6 @@ var entangle = (r1, r2) => {
|
|
|
736
736
|
};
|
|
737
737
|
};
|
|
738
738
|
|
|
739
|
-
// src/reactivity/unref.ts
|
|
740
|
-
var unref = (value) => {
|
|
741
|
-
return isRef(value) ? value() : value;
|
|
742
|
-
};
|
|
743
|
-
|
|
744
739
|
// src/bind/ComponentBinder.ts
|
|
745
740
|
var ComponentBinder = class {
|
|
746
741
|
constructor(binder) {
|
|
@@ -804,7 +799,10 @@ var ComponentBinder = class {
|
|
|
804
799
|
if (!definedProps || definedProps.length === 0) return;
|
|
805
800
|
definedProps = definedProps.map(camelize);
|
|
806
801
|
const definedPropsByLowerCase = new Map(
|
|
807
|
-
definedProps.map((definedProp) => [
|
|
802
|
+
definedProps.map((definedProp) => [
|
|
803
|
+
definedProp.toLowerCase(),
|
|
804
|
+
definedProp
|
|
805
|
+
])
|
|
808
806
|
);
|
|
809
807
|
for (const name2 of definedProps.concat(definedProps.map(hyphenate))) {
|
|
810
808
|
const value = component2.getAttribute(name2);
|
|
@@ -855,9 +853,7 @@ var ComponentBinder = class {
|
|
|
855
853
|
if (compValue === propsValue) continue;
|
|
856
854
|
if (head2.entangle && isRef(compValue) && isRef(propsValue)) {
|
|
857
855
|
addUnbinder(startOfComponent, entangle(propsValue, compValue));
|
|
858
|
-
}
|
|
859
|
-
compValue(propsValue);
|
|
860
|
-
} else componentCtx2[key] = unref(propsValue);
|
|
856
|
+
}
|
|
861
857
|
} else componentCtx2[key] = propsValue;
|
|
862
858
|
}
|
|
863
859
|
(_a2 = head2.onAutoPropsAssigned) == null ? void 0 : _a2.call(head2);
|
|
@@ -1100,7 +1096,24 @@ var DynamicBinder = class {
|
|
|
1100
1096
|
let expression = el.getAttribute(this.__is);
|
|
1101
1097
|
if (!expression) {
|
|
1102
1098
|
expression = el.getAttribute("is");
|
|
1103
|
-
if (!expression
|
|
1099
|
+
if (!expression) return;
|
|
1100
|
+
if (!expression.startsWith("regor:")) {
|
|
1101
|
+
if (!expression.startsWith("r-")) return;
|
|
1102
|
+
const staticName = expression.slice(2).trim().toLowerCase();
|
|
1103
|
+
if (!staticName) return;
|
|
1104
|
+
const parent = el.parentNode;
|
|
1105
|
+
if (!parent) return;
|
|
1106
|
+
const nativeElement = document.createElement(staticName);
|
|
1107
|
+
for (const attr of el.getAttributeNames()) {
|
|
1108
|
+
if (attr === "is") continue;
|
|
1109
|
+
nativeElement.setAttribute(attr, el.getAttribute(attr));
|
|
1110
|
+
}
|
|
1111
|
+
while (el.firstChild) nativeElement.appendChild(el.firstChild);
|
|
1112
|
+
parent.insertBefore(nativeElement, el);
|
|
1113
|
+
el.remove();
|
|
1114
|
+
this.__binder.__bindDefault(nativeElement);
|
|
1115
|
+
return;
|
|
1116
|
+
}
|
|
1104
1117
|
expression = `'${expression.slice(6)}'`;
|
|
1105
1118
|
el.removeAttribute("is");
|
|
1106
1119
|
}
|
|
@@ -1445,6 +1458,11 @@ var sref = (value) => {
|
|
|
1445
1458
|
return srefFunction;
|
|
1446
1459
|
};
|
|
1447
1460
|
|
|
1461
|
+
// src/reactivity/unref.ts
|
|
1462
|
+
var unref = (value) => {
|
|
1463
|
+
return isRef(value) ? value() : value;
|
|
1464
|
+
};
|
|
1465
|
+
|
|
1448
1466
|
// src/bind/MountList.ts
|
|
1449
1467
|
var MountList = class {
|
|
1450
1468
|
constructor(getKey) {
|
|
@@ -4747,6 +4765,137 @@ var Parser = class {
|
|
|
4747
4765
|
}
|
|
4748
4766
|
};
|
|
4749
4767
|
|
|
4768
|
+
// src/app/preprocess-template.ts
|
|
4769
|
+
var isNameChar = (ch) => {
|
|
4770
|
+
const c = ch.charCodeAt(0);
|
|
4771
|
+
return c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || ch === "-" || ch === "_" || ch === ":";
|
|
4772
|
+
};
|
|
4773
|
+
var findTagEnd = (text, start) => {
|
|
4774
|
+
let quote = "";
|
|
4775
|
+
for (let i = start; i < text.length; ++i) {
|
|
4776
|
+
const ch = text[i];
|
|
4777
|
+
if (quote) {
|
|
4778
|
+
if (ch === quote) quote = "";
|
|
4779
|
+
continue;
|
|
4780
|
+
}
|
|
4781
|
+
if (ch === '"' || ch === "'") {
|
|
4782
|
+
quote = ch;
|
|
4783
|
+
continue;
|
|
4784
|
+
}
|
|
4785
|
+
if (ch === ">") return i;
|
|
4786
|
+
}
|
|
4787
|
+
return -1;
|
|
4788
|
+
};
|
|
4789
|
+
var parseTagNameRange = (tagText, isClosing) => {
|
|
4790
|
+
let i = isClosing ? 2 : 1;
|
|
4791
|
+
while (i < tagText.length && (tagText[i] === " " || tagText[i] === "\n")) ++i;
|
|
4792
|
+
if (i >= tagText.length || !isNameChar(tagText[i])) return null;
|
|
4793
|
+
const start = i;
|
|
4794
|
+
while (i < tagText.length && isNameChar(tagText[i])) ++i;
|
|
4795
|
+
return { start, end: i };
|
|
4796
|
+
};
|
|
4797
|
+
var tableScopeTags = /* @__PURE__ */ new Set(["table", "thead", "tbody", "tfoot"]);
|
|
4798
|
+
var rowParentTags = /* @__PURE__ */ new Set(["thead", "tbody", "tfoot"]);
|
|
4799
|
+
var tableDirectAllowed = /* @__PURE__ */ new Set([
|
|
4800
|
+
"caption",
|
|
4801
|
+
"colgroup",
|
|
4802
|
+
"thead",
|
|
4803
|
+
"tbody",
|
|
4804
|
+
"tfoot",
|
|
4805
|
+
"tr"
|
|
4806
|
+
]);
|
|
4807
|
+
var preprocess = (template) => {
|
|
4808
|
+
var _a;
|
|
4809
|
+
let i = 0;
|
|
4810
|
+
const out = [];
|
|
4811
|
+
const stack = [];
|
|
4812
|
+
let tableScopeDepth = 0;
|
|
4813
|
+
while (i < template.length) {
|
|
4814
|
+
const lt = template.indexOf("<", i);
|
|
4815
|
+
if (lt === -1) {
|
|
4816
|
+
out.push(template.slice(i));
|
|
4817
|
+
break;
|
|
4818
|
+
}
|
|
4819
|
+
out.push(template.slice(i, lt));
|
|
4820
|
+
if (template.startsWith("<!--", lt)) {
|
|
4821
|
+
const end = template.indexOf("-->", lt + 4);
|
|
4822
|
+
if (end === -1) {
|
|
4823
|
+
out.push(template.slice(lt));
|
|
4824
|
+
break;
|
|
4825
|
+
}
|
|
4826
|
+
out.push(template.slice(lt, end + 3));
|
|
4827
|
+
i = end + 3;
|
|
4828
|
+
continue;
|
|
4829
|
+
}
|
|
4830
|
+
const tagEnd = findTagEnd(template, lt);
|
|
4831
|
+
if (tagEnd === -1) {
|
|
4832
|
+
out.push(template.slice(lt));
|
|
4833
|
+
break;
|
|
4834
|
+
}
|
|
4835
|
+
const rawTag = template.slice(lt, tagEnd + 1);
|
|
4836
|
+
const isClosing = rawTag.startsWith("</");
|
|
4837
|
+
const isSpecial = rawTag.startsWith("<!") || rawTag.startsWith("<?");
|
|
4838
|
+
if (isSpecial) {
|
|
4839
|
+
out.push(rawTag);
|
|
4840
|
+
i = tagEnd + 1;
|
|
4841
|
+
continue;
|
|
4842
|
+
}
|
|
4843
|
+
const range = parseTagNameRange(rawTag, isClosing);
|
|
4844
|
+
if (!range) {
|
|
4845
|
+
out.push(rawTag);
|
|
4846
|
+
i = tagEnd + 1;
|
|
4847
|
+
continue;
|
|
4848
|
+
}
|
|
4849
|
+
const tagName = rawTag.slice(range.start, range.end);
|
|
4850
|
+
if (isClosing) {
|
|
4851
|
+
const top = stack[stack.length - 1];
|
|
4852
|
+
if (top) {
|
|
4853
|
+
stack.pop();
|
|
4854
|
+
out.push(top.replacementHost ? `</${top.replacementHost}>` : rawTag);
|
|
4855
|
+
if (tableScopeTags.has(top.effectiveTag)) --tableScopeDepth;
|
|
4856
|
+
} else {
|
|
4857
|
+
out.push(rawTag);
|
|
4858
|
+
}
|
|
4859
|
+
i = tagEnd + 1;
|
|
4860
|
+
continue;
|
|
4861
|
+
}
|
|
4862
|
+
const selfClosing = rawTag.charCodeAt(rawTag.length - 2) === 47;
|
|
4863
|
+
const parent = stack[stack.length - 1];
|
|
4864
|
+
let replacementHost = null;
|
|
4865
|
+
if (tableScopeDepth === 0) {
|
|
4866
|
+
if (tagName === "tr") replacementHost = "trx";
|
|
4867
|
+
else if (tagName === "td") replacementHost = "tdx";
|
|
4868
|
+
else if (tagName === "th") replacementHost = "thx";
|
|
4869
|
+
} else if (rowParentTags.has((_a = parent == null ? void 0 : parent.effectiveTag) != null ? _a : "")) {
|
|
4870
|
+
replacementHost = tagName === "tr" ? null : "tr";
|
|
4871
|
+
} else if ((parent == null ? void 0 : parent.effectiveTag) === "table") {
|
|
4872
|
+
replacementHost = tableDirectAllowed.has(tagName) ? null : "tr";
|
|
4873
|
+
} else if ((parent == null ? void 0 : parent.effectiveTag) === "tr") {
|
|
4874
|
+
replacementHost = tagName === "td" || tagName === "th" ? null : "td";
|
|
4875
|
+
}
|
|
4876
|
+
if (replacementHost) {
|
|
4877
|
+
const isAlias = replacementHost === "trx" || replacementHost === "tdx" || replacementHost === "thx";
|
|
4878
|
+
out.push(
|
|
4879
|
+
`${rawTag.slice(0, range.start)}${replacementHost} is="${isAlias ? `r-${tagName}` : `regor:${tagName}`}"${rawTag.slice(range.end)}`
|
|
4880
|
+
);
|
|
4881
|
+
} else if (selfClosing && (parent == null ? void 0 : parent.effectiveTag) === "tr") {
|
|
4882
|
+
out.push(`${rawTag.slice(0, rawTag.length - 2)}></${tagName}>`);
|
|
4883
|
+
} else {
|
|
4884
|
+
out.push(rawTag);
|
|
4885
|
+
}
|
|
4886
|
+
if (!selfClosing) {
|
|
4887
|
+
const effectiveTag = replacementHost === "trx" ? "tr" : replacementHost === "tdx" ? "td" : replacementHost === "thx" ? "th" : replacementHost || tagName;
|
|
4888
|
+
stack.push({
|
|
4889
|
+
replacementHost,
|
|
4890
|
+
effectiveTag
|
|
4891
|
+
});
|
|
4892
|
+
if (tableScopeTags.has(effectiveTag)) ++tableScopeDepth;
|
|
4893
|
+
}
|
|
4894
|
+
i = tagEnd + 1;
|
|
4895
|
+
}
|
|
4896
|
+
return out.join("");
|
|
4897
|
+
};
|
|
4898
|
+
|
|
4750
4899
|
// src/app/toFragment.ts
|
|
4751
4900
|
var svgTags = "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";
|
|
4752
4901
|
var svgSet = new Set(svgTags.toUpperCase().split(","));
|
|
@@ -4825,7 +4974,7 @@ var createApp = (context, template = { selector: "#app" }, config) => {
|
|
|
4825
4974
|
}
|
|
4826
4975
|
};
|
|
4827
4976
|
if (template.template) {
|
|
4828
|
-
const element = document.createRange().createContextualFragment(template.template);
|
|
4977
|
+
const element = document.createRange().createContextualFragment(preprocess(template.template));
|
|
4829
4978
|
cleanRoot();
|
|
4830
4979
|
appendChildren(element.childNodes);
|
|
4831
4980
|
template.element = element;
|
|
@@ -4917,7 +5066,7 @@ var createComponent = (template, options = {}) => {
|
|
|
4917
5066
|
element2.remove();
|
|
4918
5067
|
template.element = element2;
|
|
4919
5068
|
} else if (template.template) {
|
|
4920
|
-
const element2 = document.createRange().createContextualFragment(template.template);
|
|
5069
|
+
const element2 = document.createRange().createContextualFragment(preprocess(template.template));
|
|
4921
5070
|
template.element = element2;
|
|
4922
5071
|
} else if (template.json) {
|
|
4923
5072
|
template.element = toFragment(template.json, template.isSVG, options.config);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
var Kr=Object.defineProperty,Wr=Object.defineProperties;var Gr=Object.getOwnPropertyDescriptors;var An=Object.getOwnPropertySymbols;var Jr=Object.prototype.hasOwnProperty,Qr=Object.prototype.propertyIsEnumerable;var it=Math.pow,$t=(t,e,n)=>e in t?Kr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,at=(t,e)=>{for(var n in e||(e={}))Jr.call(e,n)&&$t(t,n,e[n]);if(An)for(var n of An(e))Qr.call(e,n)&&$t(t,n,e[n]);return t},Nn=(t,e)=>Wr(t,Gr(e));var l=(t,e,n)=>$t(t,typeof e!="symbol"?e+"":e,n);var ke=Symbol(":regor");var me=t=>{let e=[t];for(;e.length>0;){let n=e.shift();Xr(n);let r=n.childNodes;if(r)for(let o of r)e.push(o)}},Xr=t=>{let e=t[ke];if(e){for(let n of e.unbinders)n();e.unbinders.splice(0),delete t[ke]}};var q=t=>{t.remove(),setTimeout(()=>me(t),1)};var B=t=>typeof t=="function",P=t=>typeof t=="string",Mn=t=>typeof t=="undefined",te=t=>t==null||typeof t=="undefined",z=t=>typeof t!="string"||!(t!=null&&t.trim()),Yr=Object.prototype.toString,Ft=t=>Yr.call(t),ge=t=>Ft(t)==="[object Map]",Z=t=>Ft(t)==="[object Set]",qt=t=>Ft(t)==="[object Date]",Qe=t=>typeof t=="symbol",T=Array.isArray,A=t=>t!==null&&typeof t=="object";var Ln={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=Ln[t];return new Error(B(n)?n.call(Ln,...e):n)};var ct=[],kn=()=>{let t={onMounted:[],onUnmounted:[]};return ct.push(t),t},Se=t=>{let e=ct[ct.length-1];if(!e&&!t)throw I(2);return e},In=t=>{let e=Se();return t&&Kt(t),ct.pop(),e},zt=Symbol("csp"),Kt=t=>{let e=t,n=e[zt];if(n){let r=Se();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]=Se()},pt=t=>t[zt];var be=t=>{var n,r;let e=(n=pt(t))==null?void 0:n.onUnmounted;e==null||e.forEach(o=>{o()}),(r=t.unmounted)==null||r.call(t)};var Xe=class{constructor(e,n,r,o,s){l(this,"props");l(this,"start");l(this,"end");l(this,"ctx");l(this,"autoProps",!0);l(this,"entangle",!0);l(this,"enableSwitch",!1);l(this,"onAutoPropsAssigned");l(this,"pe");l(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)be(r)}};var we=t=>{let e=t[ke];if(e)return e;let n={unbinders:[],data:{}};return t[ke]=n,n};var j=(t,e)=>{we(t).unbinders.push(e)};var Dn={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=Dn[t],r=B(n)?n.call(Dn,...e):n,o=ft.warning;o&&(P(r)?o(r):o(r,...r.args))},ft={warning:console.warn};var J=(t,e)=>{var n;(n=Se(e))==null||n.onUnmounted.push(t)};var mt=Symbol("ref"),Q=Symbol("sref"),lt=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 dt={},ut={},Un=1,Hn=t=>{let e=(Un++).toString();return dt[e]=t,ut[e]=0,e},Wt=t=>{ut[t]+=1},Gt=t=>{--ut[t]===0&&(delete dt[t],delete ut[t])},_n=t=>dt[t],Jt=()=>Un!==1&&Object.keys(dt).length>0,Ye="r-switch",Zr=t=>{let e=t.filter(r=>Oe(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]},Ie=(t,e)=>{if(!Jt())return;let n=Zr(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)}Ee(e,o)},Xt=Symbol("r-if"),Bn=Symbol("r-else"),Pn=t=>t[Bn]===1,ht=class{constructor(e){l(this,"p");l(this,"B");l(this,"q");l(this,"K");l(this,"z");l(this,"b");l(this,"T");this.p=e,this.B=e.o.f.if,this.q=Ue(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.B),r=Te(e,this.q);for(let o of r)this.x(o);return n}W(e){return e[Xt]?!0:(e[Xt]=!0,Te(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.B);if(!n){M(0,this.B,e);return}e.removeAttribute(this.B),this.L(e,n)}P(e,n,r){let o=De(e),s=e.parentNode,i=document.createComment(`__begin__ :${n}${r!=null?r:""}`);s.insertBefore(i,e),Ie(i,o),o.forEach(c=>{q(c)}),e.remove(),n!=="if"&&(e[Bn]=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.P(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.P(e,"elseif",` => ${o} `),p=this.p.h.C(o),f=p.value,m=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(m)}}L(e,n){let r=e.nextElementSibling,{nodes:o,parent:s,commentBegin:i,commentEnd:a}=this.P(e,"if",` => ${n} `),c=this.p.h.C(n),p=c.value,f=!1,m=this.p.h,u=m.V(),h=()=>{m.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 De=t=>{let e=ce(t)?t.content.childNodes:[t];return Array.from(e).filter(n=>{let r=n==null?void 0:n.tagName;return r!=="SCRIPT"&&r!=="STYLE"})},Ee=(t,e)=>{for(let n of e)Pn(n)||t.G(n)},Te=(t,e)=>{var r;let n=t.querySelectorAll(e);return(r=t.matches)!=null&&r.call(t,e)?[t,...n]:n},ce=t=>t instanceof HTMLTemplateElement,Oe=t=>t.nodeType===Node.ELEMENT_NODE,Ze=t=>t.nodeType===Node.ELEMENT_NODE,jn=t=>t instanceof HTMLSlotElement,ue=t=>ce(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}},Ce=(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})},Vn=(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},Ue=t=>`[${CSS.escape(t)}]`,yt=(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))},eo=/-(\w)/g,V=Yt(t=>t&&t.replace(eo,(e,n)=>n?n.toUpperCase():"")),to=/\B([A-Z])/g,He=Yt(t=>t&&t.replace(to,"-$1").toLowerCase()),et=Yt(t=>t&&t.charAt(0).toUpperCase()+t.slice(1));var gt={};var bt=t=>{var n,r;let e=(n=pt(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{kn();let e=t();Kt(e);let n={context:e,unmount:()=>be(e),[Zt]:1};return n[Zt]=1,n}finally{In()}},$n=t=>A(t)?Zt in t:!1;var Fn={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 qn={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 zn={collectRefObj:!0,onBind:(t,e,n,r,o,s)=>{if(!r)return()=>{};let i=V(r);return O(e.value,()=>{var m;let c=(m=e.refs[0])!=null?m: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 Tt=class{constructor(e){l(this,"p");l(this,"fe");this.p=e,this.fe=e.o.f.inherit}N(e){this.Ke(e)}Ke(e){var m;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(He),...a.map(He)].join(",");if(z(c))return;let p=e.querySelectorAll(c),f=(m=e.matches)!=null&&m.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),oe=new Comment(" end component: "+u.tagName);L.insertBefore(U,u),u.remove();let Ke=n.o.f.props,We=n.o.f.propsOnce,Pt=n.o.f.bind,Ge=(y,w)=>{let C={},K=y.hasAttribute(Ke),$=y.hasAttribute(We);return r.v(w,()=>{r.S(C),K&&n.x(Fn,y,Ke),$&&n.x(qn,y,We);let R=E.props;if(!R||R.length===0)return;R=R.map(V);let _=new Map(R.map(Y=>[Y.toLowerCase(),Y]));for(let Y of R.concat(R.map(He))){let fe=y.getAttribute(Y);fe!==null&&(C[V(Y)]=fe,y.removeAttribute(Y))}let jt=n.J.de(y,!1);for(let[Y,fe]of jt.entries()){let[Vt,wn]=fe.Q;if(!wn)continue;let On=_.get(V(wn).toLowerCase());On&&(Vt!=="."&&Vt!==":"&&Vt!==Pt||n.x(zn,y,Y,!0,On,fe.X))}}),C},ye=[...r.V()],st=()=>{var K;let y=Ge(u,ye),w=new Xe(y,u,ye,U,oe),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:ve,head:k}=st(),se=[...ue(b)],v=se.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(ye,()=>{r.S(ve);let _=Ge(y,r.V());r.v(ye,()=>{r.S(_);let jt=r.V(),Y=Hn(jt);for(let fe of R)Oe(fe)&&(fe.setAttribute(Ye,Y),Wt(Y),j(fe,()=>{Gt(Y)}))})})};if(K){let R=[...ue(K)];for(let _ of R)w.insertBefore(_,y);$(R)}else{if(C!=="default"){for(let _ of[...ue(y)])w.insertBefore(_,y);return}let R=[...ue(u)].filter(_=>!ce(_));for(let _ of R)w.insertBefore(_,y);$(R)}},S=y=>{if(!Oe(y))return;let w=y.querySelectorAll("slot");if(jn(y)){F(y),y.remove();return}for(let C of w)F(C),C.remove()};(()=>{for(let y=0;y<v;++y)se[y]=se[y].cloneNode(!0),h.insertBefore(se[y],d),S(se[y])})(),L.insertBefore(oe,d);let ie=()=>{if(!E.inheritAttrs)return;let y=se.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===Ke||C===We)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(yt(C,n.o),K)}},Le=()=>{for(let y of u.getAttributeNames())!y.startsWith("@")&&!y.startsWith(n.o.f.on)&&u.removeAttribute(y)},Je=()=>{ie(),Le(),r.S(ve),n.ye(u,!1),ve.$emit=k.emit,Ee(n,se),j(u,()=>{be(ve)}),j(U,()=>{me(u)}),bt(ve)};r.v(ye,Je)}}};var nn=class{constructor(e){l(this,"he");l(this,"Q",[]);l(this,"X",[]);l(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]=".")}}},Et=class{constructor(e){l(this,"p");l(this,"be");this.p=e,this.be=e.o.We()}de(e,n){let r=new Map;if(!Ze(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 no=(t,e)=>{for(let n of t){let r=n.cloneNode(!0);e.appendChild(r)}},Ct=class{constructor(e){l(this,"p");l(this,"I");l(this,"Te");this.p=e,this.I=e.o.f.is,this.Te=Ue(this.I)+", [is]"}N(e){let n=e.hasAttribute(this.I),r=Te(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)}P(e,n){let r=De(e),o=e.parentNode,s=document.createComment(`__begin__ dynamic ${n!=null?n:""}`);o.insertBefore(s,e),Ie(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.P(e,` => ${n} `),a=this.p.h.C(n),c=a.value,p=this.p.h,f=p.V(),m={name:""},u=ce(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(m.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));no(u,b),o.insertBefore(b,i),this.p.G(b),m.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 ne=[],Kn=t=>{var e;ne.length!==0&&((e=ne[ne.length-1])==null||e.add(t))},_e=t=>{if(!t)return()=>{};let e={stop:()=>{}};return ro(t,e),J(()=>e.stop(),!0),e.stop},ro=(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(ne.push(s),t(i=>n.push(i)),r)return;for(let i of[...s]){let a=O(i,()=>{o(),_e(t)});n.push(a)}}finally{ne.pop()}},rn=t=>{let e=ne.length,n=e>0&&ne[e-1];try{return n&&ne.push(null),t()}finally{n&&ne.pop()}},on=t=>{try{let e=new Set;return ne.push(e),{value:t(),refs:[...e]}}finally{ne.pop()}};var tt=t=>!!t&&t[lt]===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)||Z(o))for(let s of o)W(s,e,!0);else if(ge(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 oo(t,e,n){Object.defineProperty(t,e,{value:n,enumerable:!1,writable:!0,configurable:!0})}var Be=(t,e,n)=>{n.forEach(function(r){let o=t[r];oo(e,r,function(...i){let a=o.apply(this,i),c=this[Q];for(let p of c)W(p);return a})})},xt=(t,e)=>{Object.defineProperty(t,Symbol.toStringTag,{value:e,writable:!1,enumerable:!1,configurable:!0})};var Wn=Array.prototype,sn=Object.create(Wn),so=["push","pop","shift","unshift","splice","sort","reverse"];Be(Wn,sn,so);var Gn=Map.prototype,Rt=Object.create(Gn),io=["set","clear","delete"];xt(Rt,"Map");Be(Gn,Rt,io);var Jn=Set.prototype,vt=Object.create(Jn),ao=["add","clear","delete"];xt(vt,"Set");Be(Jn,vt,ao);var pe={},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,sn),!0):Z(c)?(Object.setPrototypeOf(c,vt),!0):ge(c)?(Object.setPrototypeOf(c,Rt),!0):!1:!1,r=n(t),o=new Set,s=(c,p)=>{if(pe.stack&&pe.stack.length){pe.stack[pe.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],m=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,m),e._value):(Kn(a),e._value)}switch(c[2]){case 0:{let f=c[3];if(!f)return()=>{};let m=u=>{o.delete(u)};return o.add(f),()=>{m(f)}}case 1:{let f=c[1],m=e._value;s(m,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,Ce(a,!1),r&&i(t),a};var nt=class{constructor(e){l(this,"E",[]);l(this,"H",new Map);l(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"),wt=class wt{constructor(e){l(this,"p");l(this,"b");l(this,"ne");l(this,"T");this.p=e,this.b=e.o.f.for,this.ne=Ue(this.b),this.T=e.o.f.pre}N(e){let n=e.hasAttribute(this.b),r=Te(e,this.ne);for(let o of r)this.Xe(o);return n}W(e){return e[an]?!0:(e[an]=!0,Te(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 te(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 se;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=(se=e.getAttribute(o))!=null?se: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=De(e),f=e.parentNode;if(!f)return;let m=`${this.b} => ${n}`,u=new Comment(`__begin__ ${m}`);f.insertBefore(u,e),Ie(u,p),p.forEach(v=>{q(v)}),e.remove();let h=new Comment(`__end__ ${m}`);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),ee=nt.Ge(S.index,N);return x.v(D,()=>{x.S(S.ctx);let ie=F.previousSibling,Le=[];for(let Je of p){let y=Je.cloneNode(!0);f.insertBefore(y,F),Le.push(y)}for(Ee(d,Le),ie=ie.nextSibling;ie!==F;)ee.items.push(ie),ie=ie.nextSibling}),ee},b=(v,N)=>{let F=k.D(v).items,S=F[F.length-1].nextSibling;for(let ee of F)q(ee);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)},oe=v=>{let N=k.w;for(let F=v;F<N;++F)k.D(F).index(F)},Ke=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,ee=Number.MAX_SAFE_INTEGER,ie=N,Le=this.p.o.forGrowThreshold,Je=()=>k.w<ie+Le;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,ee=Math.min(ee,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}Je()?(k.Je(S-1,E(S,w,k.D(S-1).items[0])),ee=Math.min(ee,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),oe(ee)},We=()=>{st=O(ye,Ke)},Pt=()=>{Ge.stop(),st()},Ge=x.C(r.list),ye=Ge.value,st,ve=0,k=new nt(a);for(let v of this.Re(ye()[0]))k.S(E(ve++,v,h));j(u,Pt),We()}Ze(e){var c,p;let n=wt.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,m)=>{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(m)),d}}}};l(wt,"et",/\{?\[?\(?([^)}\]]+)\)?\]?\}?([^)]+)?\s+\b(?:in|of)\b\s+(.*)\s*$/);var St=wt;var Ot=class{constructor(e){l(this,"h");l(this,"Ce");l(this,"ve");l(this,"Se");l(this,"we");l(this,"J");l(this,"o");l(this,"T");l(this,"Oe");this.h=e,this.o=e.o,this.ve=new St(this),this.Ce=new ht(this),this.Se=new Ct(this),this.we=new Tt(this),this.J=new Et(this),this.T=this.o.f.pre,this.Oe=this.o.f.dynamic}tt(e){let n=ce(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);Ee(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(m=>{this.x(f,m,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(Ye);return f||(p.parentElement?c(p.parentElement):null)};if(Jt()){let p=c(n);if(p){this.h.v(_n(p),()=>{this.L(e,n,a,s,i)});return}}this.L(e,n,a,s,i)}nt(e,n,r){if(e!==gt)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=Vn(o,this.Oe),f;p&&(f=this.h.C(V(p),void 0,void 0,void 0,e.once));let m,u=()=>(m=i.value(),m),h,d=()=>f?(h=f.value()[0],h):(h=o,o),x=()=>{if(!e.onChange)return;let E=O(i.value,b=>{var oe;let L=m,U=h;(oe=e.onChange)==null||oe.call(e,n,u(),L,d(),U,s)});if(a.push(E),f){let b=O(f.value,L=>{var oe;let U=h;(oe=e.onChange)==null||oe.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 Qn="http://www.w3.org/1999/xlink",co={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 po(t){return!!t||t===""}var cn={onChange:(t,e,n,r,o,s)=>{var a;if(r){s&&s.includes("camel")&&(r=V(r)),At(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],m=p[0],u=p[1];At(t,m,u,f)}else if(A(p))for(let f of Object.entries(p)){let m=f[0],u=f[1],h=n==null?void 0:n[c],d=h&&m in h?m:void 0;At(t,m,u,d)}else{let f=n==null?void 0:n[c],m=e[c++],u=e[c];At(t,m,u,f)}}}},At=(t,e,n,r)=>{if(r&&r!==e&&t.removeAttribute(r),te(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:")){te(n)?t.removeAttributeNS(Qn,e.slice(6,e.length)):t.setAttributeNS(Qn,e,n);return}let o=e in co;te(n)||o&&!po(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)Xn(t,s[c],i==null?void 0:i[c])}else Xn(t,s,i)}}},Xn=(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 Yn={onChange:(t,e)=>{let[n,r]=e;B(r)?r(t,n):t.innerHTML=n==null?void 0:n.toString()}};function fo(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=de(t[r],e[r]);return n}function de(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=Qe(t),r=Qe(e),n||r)return t===e;if(n=T(t),r=T(e),n||r)return n&&r?fo(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||!de(t[i],e[i]))return!1}}return String(t)===String(e)}function Nt(t,e){return t.findIndex(n=>de(n,e))}var Zn=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 mn=t=>{if(!g(t))throw I(3,"resume");t(void 0,void 0,4)};var tr={onChange:(t,e)=>{mo(t,e[0])},onBind:(t,e,n,r,o,s)=>lo(t,e,s)},mo=(t,e)=>{let n=sr(t);if(n&&nr(t))T(e)?e=Nt(e,he(t))>-1:Z(e)?e=e.has(he(t)):e=To(t,e),t.checked=e;else if(n&&rr(t))t.checked=de(e,he(t));else if(n||ir(t))or(t)?t.value!==(e==null?void 0:e.toString())&&(t.value=e):t.value!==e&&(t.value=e);else if(ar(t)){let r=t.options,o=r.length,s=t.multiple;for(let i=0;i<o;i++){let a=r[i],c=he(a);if(s)T(e)?a.selected=Nt(e,c)>-1:a.selected=e.has(c);else if(de(he(a),e)){t.selectedIndex!==i&&(t.selectedIndex=i);return}}!s&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}else M(7,t)},rt=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}),nr=t=>t.type==="checkbox",rr=t=>t.type==="radio",or=t=>t.type==="number"||t.type==="range",sr=t=>t.tagName==="INPUT",ir=t=>t.tagName==="TEXTAREA",ar=t=>t.tagName==="SELECT",lo=(t,e,n)=>{let r=e.value,o=rt(n==null?void 0:n.join(",")),s=rt(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&&nr(t)?ho(t,a):c&&rr(t)?Eo(t,a):c||ir(t)?uo(t,i,a,r):ar(t)?Co(t,a,r):(M(7,t),()=>{})},er=/[.,' ·٫]/,uo=(t,e,n,r)=>{let s=e.lazy?"change":"input",i=or(t),a=()=>{!e.trim&&!rt(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,m),t.removeEventListener("change",a),t.removeEventListener("compositionstart",c),t.removeEventListener("compositionend",p),t.removeEventListener("change",p)},m=u=>{let h=u.target;if(!h||h.composing)return;let d=h.value,x=rt(r()[1]);if(i||x.number||x.int){if(x.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 x.trim&&(d=d.trim());n(d)};return t.addEventListener(s,m),t.addEventListener("change",a),t.addEventListener("compositionstart",c),t.addEventListener("compositionend",p),t.addEventListener("change",p),f},ho=(t,e)=>{let n="change",r=()=>{t.removeEventListener(n,o)},o=()=>{let s=he(t),i=t.checked,a=e();if(T(a)){let c=Nt(a,s),p=c!==-1;i&&!p?a.push(s):!i&&p&&a.splice(c,1)}else Z(a)?i?a.add(s):a.delete(s):e(bo(t,i))};return t.addEventListener(n,o),r},he=t=>"_value"in t?t._value:t.value,cr="trueValue",yo="falseValue",pr="true-value",go="false-value",bo=(t,e)=>{let n=e?cr:yo;if(n in t)return t[n];let r=e?pr:go;return t.hasAttribute(r)?t.getAttribute(r):e},To=(t,e)=>{if(cr in t)return de(e,t.trueValue);let r=pr;return t.hasAttribute(r)?de(e,t.getAttribute(r)):de(e,!0)},Eo=(t,e)=>{let n="change",r=()=>{t.removeEventListener(n,o)},o=()=>{let s=he(t);e(s)};return t.addEventListener(n,o),r},Co=(t,e,n)=>{let r="change",o=()=>{t.removeEventListener(r,s)},s=()=>{let a=rt(n()[1]).number,c=Array.prototype.filter.call(t.options,p=>p.selected).map(p=>a?Zn(he(p)):he(p));if(t.multiple){let p=e();try{if(fn(e),Z(p)){p.clear();for(let f of c)p.add(f)}else T(p)?(p.splice(0),p.push(...c)):e(c)}finally{mn(e),W(e)}}else e(c[0])};return t.addEventListener(r,s),o};var xo=["stop","prevent","capture","self","once","left","right","middle","passive"],Ro=t=>{let e={};if(z(t))return;let n=t.split(",");for(let r of xo)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,m;if(o){let u=e.value(),h=H(o.value()[0]);return P(h)?ln(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 ln(t,V(r),()=>e.value()[0],(m=s==null?void 0:s.join(","))!=null?m: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(ln(t,x,D,E))}else M(2,name,t)}return a}},vo=(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]},ln=(t,e,n,r)=>{if(z(e))return M(5,name,t),()=>{};let o=Ro(r),s=o?{capture:o.capture,passive:o.passive,once:o.once}:void 0,i;[e,i]=vo(e,r);let a=f=>{if(!i(f)||!n&&e==="submit"&&(o!=null&&o.prevent))return;let m=n(f);B(m)&&(m=m(f)),B(m)&&m(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 fr={onChange:(t,e,n,r,o,s)=>{if(r){s&&s.includes("camel")&&(r=V(r)),Pe(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];Pe(t,p,f)}else if(A(c))for(let p of Object.entries(c)){let f=p[0],m=p[1];Pe(t,f,m)}else{let p=e[a++],f=e[a];Pe(t,p,f)}}}};function So(t){return!!t||t===""}var Pe=(t,e,n)=>{if(te(e)){M(3,name,t);return}if(e==="innerHTML"||e==="textContent"){let s=[...t.childNodes];setTimeout(()=>s.forEach(me),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=So(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 mr={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 lr={onChange:(t,e)=>{let n=we(t).data,r=n._ord;Mn(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)ur(t,s[c],i==null?void 0:i[c])}else ur(t,s,i)}}},ur=(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 we(t).data)return;r.display=s}},dr=/\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=wo(t,e);dr.test(n)?t.setProperty(He(r),n.replace(dr,""),"important"):t[r]=n}}var hr=["Webkit","Moz","ms"],dn={};function wo(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=et(r);for(let o=0;o<hr.length;o++){let s=hr[o]+r;if(s in t)return dn[e]=s}return e}var X=t=>yr(H(t)),yr=(t,e=new WeakMap)=>{if(!t||!A(t))return t;if(T(t))return t.map(X);if(Z(t)){let r=new Set;for(let o of t.keys())r.add(X(o));return r}if(ge(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=at({},t);e.set(t,n);for(let r of Object.entries(n))n[r[0]]=yr(H(r[1]),e);return n};var gr={onChange:(t,e)=>{var r;let n=e[0];t.textContent=Z(n)?JSON.stringify(X([...n])):ge(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)=>{Pe(t,"value",e[0])}};var je=t=>(t==null?void 0:t[mt])===1;var Ne=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[mt]=1,T(t)){let n=t.length;for(let r=0;r<n;++r){let o=t[r];je(o)||(t[r]=Ne(o))}return e}if(!A(t))return e;for(let n of Object.entries(t)){let r=n[1];if(je(r))continue;let o=n[0];Qe(o)||(t[o]=null,t[o]=Ne(r))}return e};var xe=class xe{constructor(e){l(this,"_",{});l(this,"f",{});l(this,"We",()=>Object.keys(this._).filter(e=>e.length===1||!e.startsWith(":")));l(this,"le",new Map);l(this,"ue",new Map);l(this,"forGrowThreshold",10);l(this,"globalContext");l(this,"useInterpolation",!0);if(this.setDirectives("r-"),e){this.globalContext=e;return}this.globalContext=this.ot()}static getDefault(){var e;return(e=xe.Ae)!=null?e:xe.Ae=new xe}ot(){let e={},n=globalThis;for(let r of xe.rt.split(","))e[r]=n[r];return e.ref=Ne,e.sref=G,e.flatten=X,e}addComponent(...e){for(let n of e){if(!n.defaultName){ft.warning("Registered component's default name is not defined",n);continue}this.le.set(et(n.defaultName),n),this.ue.set(et(n.defaultName).toLocaleUpperCase(),n)}}setDirectives(e){this._={".":fr,":":cn,"@":un,[`${e}on`]:un,[`${e}bind`]:cn,[`${e}html`]:Yn,[`${e}text`]:gr,[`${e}show`]:lr,[`${e}model`]:tr,":style":yn,[`${e}bind:style`]:yn,":class":pn,[`${e}bind:class`]:pn,":ref":mr,":value":br,[`${e}teleport`]:gt},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)}};l(xe,"Ae"),l(xe,"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 re=xe;var Mt=(t,e)=>{if(!t)return;let r=(e!=null?e:re.getDefault()).f,o=/(\{\{[^]*?\}\}|\[\[[^]*?\]\])/g,s=[{start:"{{",end:"}}"},{start:"[[",end:"]]"}];for(let i of Ao(t,r.pre,s))Oo(i,r.text,o,s)},Oo=(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=Tr(p,r);if(f&&z(i[0])&&z(i[2])){let m=t.parentElement;m.setAttribute(e,p.substring(f.start.length,p.length-f.end.length)),m.innerText="";return}}let a=document.createDocumentFragment();for(let p of i){let f=Tr(p,r);if(f){let m=document.createElement("span");m.setAttribute(e,p.substring(f.start.length,p.length-f.end.length)),a.appendChild(m)}else a.appendChild(document.createTextNode(p))}t.replaceWith(a)},Ao=(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 ue(s))o(a)}};return o(t),r},Tr=(t,e)=>e.find(n=>t.startsWith(n.start)&&t.endsWith(n.end));var No=9,Mo=10,Lo=13,ko=32,Re=46,Lt=44,Io=39,Do=34,kt=40,Ve=41,It=91,Dt=93,gn=63,Uo=59,Er=58,Ho=123,Ut=125,Tn=43,_o=45,Cr=96,xr=47,Bo=92,Rr=[2,3],vr=[Tn,_o],Mr={"-":1,"!":1,"~":1,"+":1,new:1},Lr={"=":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},Fe=Nn(at({"=>":2},Lr),{"||":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}),kr=Object.keys(Lr),Po=new Set(kr),Ht=new Set;Ht.add("=>");kr.forEach(t=>Ht.add(t));var jo=new Set(["$","_"]),Sr={true:!0,false:!1,null:null},Vo="this";function Ir(t){return Math.max(0,...Object.keys(t).map(e=>e.length))}var $o=Ir(Mr),Fo=Ir(Fe),qe="Expected ",Me="Unexpected ",Cn="Unclosed ",qo=qe+":",wr=qe+"expression",zo="missing }",Ko=Me+"object property",Wo=Cn+"(",Or=qe+"comma",Ar=Me+"token ",Go=Me+"period",bn=qe+"expression after ",Jo="missing unaryOp argument",Qo=Cn+"[",Xo=qe+"exponent (",Yo="Variable names cannot start with a number (",Zo=Cn+'quote after "';var $e=t=>t>=48&&t<=57,Nr=t=>Fe[t]||0,En=class{constructor(e){l(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]});l(this,"r");l(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 Fe)||jo.has(n)}re(e){return this.U(e)||$e(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===ko||e===No||e===Mo||e===Lo;)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===Uo||r===Lt)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.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,Fo),o=r.length;for(;o>0;){if(r in Fe&&(!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:Nr(n),right_a:Ht.has(n)},i=this.j(),!i)throw this.i(bn+n);let p=[s,o,i];for(;n=this.se();){if(r=Nr(n),r===0){this.e-=n.length;break}o={value:n,prec:r,right_a:Ht.has(n)},c=n;let f=m=>o.right_a&&m.right_a?r>m.prec:r<=m.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($e(o)||o===Re)return this.gt();if(o===Io||o===Do)r=this.bt();else if(o===It)r=this.Tt();else{for(e=this.r.substr(this.e,$o),n=e.length;n>0;){if(Object.prototype.hasOwnProperty.call(Mr,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(Jo);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 Sr?r={type:4,value:Sr[r.name],raw:r.name}:r.name===Vo&&(r={type:5})):o===kt&&(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===Re||n===It||n===kt||n===gn;){let r;if(n===gn){if(this.r.charCodeAt(this.e+1)!==Re)break;r=!0,this.e+=2,this.y(),n=this.l}if(this.e++,n===It){if(e={type:3,computed:!0,object:e,property:this.O()},this.y(),n=this.l,n!==Dt)throw this.i(Qo);this.e++}else n===kt?e={type:6,arguments:this.ke(Ve),callee:e}:(n===Re||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(;$e(this.l);)e+=this.r.charAt(this.e++);if(this.m(Re))for(e+=this.r.charAt(this.e++);$e(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++));$e(this.l);)e+=this.r.charAt(this.e++);if(!$e(this.r.charCodeAt(this.e-1)))throw this.i(Xo+e+this.M+")")}let r=this.l;if(this.U(r))throw this.i(Yo+e+this.M+")");if(r===Re||e.length===1&&e.charCodeAt(0)===Re)throw this.i(Go);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(
|
|
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(xr))return;let n=++this.e,r=!1;for(;this.e<this.r.length;){if(this.l===xr&&!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(It)?r=!0:r&&this.m(Dt)&&(r=!1),this.e+=this.m(Bo)?2:1}throw this.i("Unclosed Regex")}},Dr=t=>new En(t).parse();var es={"=>":(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)=>it(t,e)},ts={"-":t=>-t,"+":t=>+t,"!":t=>!t,"~":t=>~t,new:t=>t},Br=t=>{if(!(t!=null&&t.some(_r)))return t;let e=[];return t.forEach(n=>_r(n)?e.push(...n):e.push(n)),e},Ur=(...t)=>Br(t),xn=(t,e)=>{if(!t)return e;let n=Object.create(e!=null?e:{});return n.$event=t,n},ns={"++":(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]}},rs={"++":(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]--}},Hr={"=":(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(it(r(),n)):t[e]=it(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}},_t=(t,e)=>B(t)?t.bind(e):t,Rn=class{constructor(e,n,r,o,s){l(this,"u");l(this,"Ve");l(this,"Ie");l(this,"De");l(this,"A");l(this,"Ue");l(this,"Be");this.u=T(e)?e:[e],this.Ve=n,this.Ie=r,this.De=o,this.Be=!!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],_t(H(r[o]),r);for(let i of this.u)if(o in i)return this.A=i[o],_t(H(i[o]),i);let s=this.Ve;if(s&&o in s)return this.A=s[o],_t(H(s[o]),s)}5(e,n,r){return this.u[0]}0(e,n,r){return this.He(n,r,Ur,...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,_t(H(i),o)}4(e,n,r){return e.value}6(e,n,r){let o=(i,...a)=>B(i)?i(...Br(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,ts[e.operator],e.argument)}8(e,n,r){let o=es[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,Ur,...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=m=>(m==null?void 0:m.type)!==15,i=(f=this.De)!=null?f:()=>!1,a=n===0&&this.Be,c=m=>this._e(a,e.key,n,xn(m,r)),p=m=>this._e(a,e.value,n,xn(m,r));if(e.shorthand){let m=e.key.name;o[m]=s(e.key)&&i(m,n)?c:c()}else if(e.computed){let m=H(c());o[m]=s(e.value)&&i(m,n)?p:p()}else{let m=e.key.type===4?e.key.value:e.key.name;o[m]=s(e.value)&&i(m,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?ns:rs;if(o.type===2){let a=o.name,c=this.Pe(a,r);return te(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(te(a))return;let c=this.g(e.right,n,r);return Hr[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 Hr[s](i,a,c)}}14(e,n,r){let o=this.g(e.argument,n,r);return T(o)&&(o.s=Pr),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)}},Pr=Symbol("s"),_r=t=>(t==null?void 0:t.s)===Pr,jr=(t,e,n,r,o,s,i)=>new Rn(e,n,r,o,i).eval(t,s);var Vr={},Bt=class{constructor(e,n){l(this,"u");l(this,"o");l(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,m=[],u=(d,x,D,E)=>{try{let b=jr(d,x,f,n,r,E,o);return D&&m.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=Vr[e])!=null?h:Dr("["+e+"]");Vr[e]=d;let x=this.u,D=()=>{m.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 m){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 os="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",ss=new Set(os.toUpperCase().split(",")),is="http://www.w3.org/2000/svg",$r=(t,e)=>{ce(t)?t.content.appendChild(e):t.appendChild(e)},vn=(t,e,n,r)=>{var i;let o=t.t;if(o){let a=n&&ss.has(o.toUpperCase())?document.createElementNS(is,o.toLowerCase()):document.createElement(o),c=t.a;if(c)for(let f of Object.entries(c)){let m=f[0],u=f[1];m.startsWith("#")&&(u=m.substring(1),m="name"),a.setAttribute(yt(m,r),u)}let p=t.c;if(p)for(let f of p)vn(f,a,n,r);$r(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)$r(e,a);else throw new Error("unsupported node type.")}},ze=(t,e,n)=>{n!=null||(n=re.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 as=(t,e={selector:"#app"},n)=>{P(e)&&(e={selector:"#app",template:e}),$n(t)&&(t=t.context);let r=e.element?e.element:e.selector?document.querySelector(e.selector):null;if(!r||!Oe(r))throw I(0);n||(n=re.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=ze(e.json,e.isSVG,n);o(),s(a.childNodes)}return n.useInterpolation&&Mt(r,n),new Sn(t,r,n).x(),j(r,()=>{be(t)}),bt(t),{context:t,unmount:()=>{q(r)},unbind:()=>{me(r)}}},Sn=class{constructor(e,n,r){l(this,"Rt");l(this,"Fe");l(this,"o");l(this,"h");l(this,"p");this.Rt=e,this.Fe=n,this.o=r,this.h=new Bt([e],r),this.p=new Ot(this.h)}x(){this.p.G(this.Fe)}};var ot=t=>{if(T(t))return t.map(o=>ot(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=ue(t);return r.length>0&&(e.c=[...r].map(o=>ot(o))),e};var cs=(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 m=t.element;m.remove(),t.element=m}else if(t.selector){let m=document.querySelector(t.selector);if(!m)throw I(1,t.selector);m.remove(),t.element=m}else if(t.template){let m=document.createRange().createContextualFragment(t.template);t.element=m}else t.json&&(t.element=ze(t.json,t.isSVG,e.config),r=!0);t.element||(t.element=document.createDocumentFragment()),((i=e.useInterpolation)==null||i)&&Mt(t.element,(a=e.config)!=null?a:re.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 m=o.content,u=m?[...m.childNodes]:[...o.childNodes],h=ot(u);t.element=ze(h,!0,e.config)}return{context:n,template:t.element,inheritAttrs:(f=e.inheritAttrs)!=null?f:!0,props:e.props,defaultName:e.defaultName}};var ps=t=>{var e;(e=Se())==null||e.onMounted.push(t)};var fs=t=>{let e,n={},r=(...o)=>{if(o.length<=2&&0 in o)throw I(4);return e&&!n.isStopped?e(...o):(e=ms(t,n),e(...o))};return r[Q]=1,Ce(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},ms=(t,e)=>{var s;let n=(s=e.ref)!=null?s:G(null);e.ref=n,e.isStopped=!1;let r=0,o=_e(()=>{if(r>0){o(),e.isStopped=!0,W(n);return}n(t()),++r});return n.stop=o,n};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=us(t,e,n),r(...s))};return o[Q]=1,Ce(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 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 ds=(t,e)=>{let n={},r,o=(...s)=>{if(s.length<=2&&0 in s)throw I(4);return r&&!n.isStopped?r(...s):(r=hs(t,e,n),r(...s))};return o[Q]=1,Ce(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},hs=(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 ys=t=>(t[lt]=1,t);var gs=(t,e)=>{if(!e)throw I(5);let r=je(t)?Ne: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=_e(o);return J(i,!0),t};var Fr=(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},bs=Fr;var Ts=(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 Es=t=>{if(!g(t))throw I(3,"observerCount");return t(void 0,void 0,2)};var Cs=t=>{qr();try{t()}finally{zr()}},qr=()=>{pe.stack||(pe.stack=[]),pe.stack.push(new Set)},zr=()=>{let t=pe.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 pe.stack;for(let n of e)try{W(n)}catch(r){console.error(r)}};export{Xe as ComponentHead,re as RegorConfig,j as addUnbinder,Cs as batch,on as collectRefs,ls as computeMany,ds as computeRef,fs as computed,as as createApp,cs as createComponent,zr as endBatch,tn as entangle,X as flatten,we as getBindData,Fr as html,je as isDeepRef,tt as isRaw,g as isRef,ys as markRaw,O as observe,Ts as observeMany,Es as observerCount,ps as onMounted,J as onUnmounted,fn as pause,gs as persist,bs as raw,Ne as ref,q as removeNode,mn as resume,rn as silence,G as sref,qr as startBatch,ze as toFragment,ot as toJsonTemplate,W as trigger,me as unbind,H as unref,en as useScope,ft as warningHandler,_e as watchEffect};
|
|
1
|
+
var Jr=Object.defineProperty,Qr=Object.defineProperties;var Xr=Object.getOwnPropertyDescriptors;var Nn=Object.getOwnPropertySymbols;var Yr=Object.prototype.hasOwnProperty,Zr=Object.prototype.propertyIsEnumerable;var it=Math.pow,Ft=(t,e,n)=>e in t?Jr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,at=(t,e)=>{for(var n in e||(e={}))Yr.call(e,n)&&Ft(t,n,e[n]);if(Nn)for(var n of Nn(e))Zr.call(e,n)&&Ft(t,n,e[n]);return t},Mn=(t,e)=>Qr(t,Xr(e));var m=(t,e,n)=>Ft(t,typeof e!="symbol"?e+"":e,n);var ke=Symbol(":regor");var le=t=>{let e=[t];for(;e.length>0;){let n=e.shift();eo(n);let r=n.childNodes;if(r)for(let o of r)e.push(o)}},eo=t=>{let e=t[ke];if(e){for(let n of e.unbinders)n();e.unbinders.splice(0),delete t[ke]}};var q=t=>{t.remove(),setTimeout(()=>le(t),1)};var H=t=>typeof t=="function",_=t=>typeof t=="string",Ln=t=>typeof t=="undefined",te=t=>t==null||typeof t=="undefined",z=t=>typeof t!="string"||!(t!=null&&t.trim()),to=Object.prototype.toString,qt=t=>to.call(t),ge=t=>qt(t)==="[object Map]",Z=t=>qt(t)==="[object Set]",zt=t=>qt(t)==="[object Date]",Qe=t=>typeof t=="symbol",E=Array.isArray,N=t=>t!==null&&typeof t=="object";var kn={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."},D=(t,...e)=>{let n=kn[t];return new Error(H(n)?n.call(kn,...e):n)};var ct=[],In=()=>{let t={onMounted:[],onUnmounted:[]};return ct.push(t),t},Se=t=>{let e=ct[ct.length-1];if(!e&&!t)throw D(2);return e},Dn=t=>{let e=Se();return t&&Wt(t),ct.pop(),e},Kt=Symbol("csp"),Wt=t=>{let e=t,n=e[Kt];if(n){let r=Se();if(n===r)return;r.onMounted.length>0&&n.onMounted.push(...r.onMounted),r.onUnmounted.length>0&&n.onUnmounted.push(...r.onUnmounted);return}e[Kt]=Se()},pt=t=>t[Kt];var be=t=>{var n,r;let e=(n=pt(t))==null?void 0:n.onUnmounted;e==null||e.forEach(o=>{o()}),(r=t.unmounted)==null||r.call(t)};var Xe=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)be(r)}};var we=t=>{let e=t[ke];if(e)return e;let n={unbinders:[],data:{}};return t[ke]=n,n};var B=(t,e)=>{we(t).unbinders.push(e)};var Un={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]})},L=(t,...e)=>{let n=Un[t],r=H(n)?n.call(Un,...e):n,o=ft.warning;o&&(_(r)?o(r):o(r,...r.args))},ft={warning:console.warn};var J=(t,e)=>{var n;(n=Se(e))==null||n.onUnmounted.push(t)};var lt=Symbol("ref"),Q=Symbol("sref"),ut=Symbol("raw");var b=t=>(t==null?void 0:t[Q])===1;var A=(t,e,n)=>{if(!b(t))throw D(3,"observe");n&&e(t());let o=t(void 0,void 0,0,e);return J(o,!0),o};var dt={},mt={},Hn=1,_n=t=>{let e=(Hn++).toString();return dt[e]=t,mt[e]=0,e},Gt=t=>{mt[t]+=1},Jt=t=>{--mt[t]===0&&(delete dt[t],delete mt[t])},Bn=t=>dt[t],Qt=()=>Hn!==1&&Object.keys(dt).length>0,Ye="r-switch",no=t=>{let e=t.filter(r=>Oe(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]},Ie=(t,e)=>{if(!Qt())return;let n=no(e);n.length!==0&&(n.forEach(Gt),B(t,()=>{n.forEach(Jt)}))};var Xt=(t,e,n,r)=>{let o=[];for(let s of t){let i=s.cloneNode(!0);n.insertBefore(i,r),o.push(i)}Ee(e,o)},Yt=Symbol("r-if"),Pn=Symbol("r-else"),jn=t=>t[Pn]===1,ht=class{constructor(e){m(this,"p");m(this,"B");m(this,"K");m(this,"z");m(this,"W");m(this,"b");m(this,"T");this.p=e,this.B=e.o.f.if,this.K=Ue(e.o.f.if),this.z=e.o.f.else,this.W=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.B),r=Te(e,this.K);for(let o of r)this.x(o);return n}G(e){return e[Yt]?!0:(e[Yt]=!0,Te(e,this.K).forEach(n=>n[Yt]=!0),!1)}x(e){if(e.hasAttribute(this.T)||this.G(e)||this.qe(e,this.b))return;let n=e.getAttribute(this.B);if(!n){L(0,this.B,e);return}e.removeAttribute(this.B),this.L(e,n)}P(e,n,r){let o=De(e),s=e.parentNode,i=document.createComment(`__begin__ :${n}${r!=null?r:""}`);s.insertBefore(i,e),Ie(i,o),o.forEach(c=>{q(c)}),e.remove(),n!=="if"&&(e[Pn]=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.z)){e.removeAttribute(this.z);let{nodes:o,parent:s,commentBegin:i,commentEnd:a}=this.P(e,"else");return[{mount:()=>{Xt(o,this.p,s,a)},unmount:()=>{ue(i,a)},isTrue:()=>!0,isMounted:!1}]}else{let o=e.getAttribute(this.W);if(!o)return[];e.removeAttribute(this.W);let{nodes:s,parent:i,commentBegin:a,commentEnd:c}=this.P(e,"elseif",` => ${o} `),p=this.p.h.C(o),f=p.value,l=this.ce(r,n),u=[];B(a,()=>{p.stop();for(let y of u)y();u.length=0});let d=A(f,n);return u.push(d),[{mount:()=>{Xt(s,this.p,i,c)},unmount:()=>{ue(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.P(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||(Xt(o,this.p,s,a),f=!0),d.forEach(T=>{T.unmount(),T.isMounted=!1});else{ue(i,a),f=!1;let T=!1;for(let k of d)!T&&k.isTrue()?(k.isMounted||(k.mount(),k.isMounted=!0),T=!0):(k.unmount(),k.isMounted=!1)}})},d=this.ce(r,h),y=[];B(i,()=>{c.stop();for(let T of y)T();y.length=0}),h();let C=A(p,h);y.push(C)}};var De=t=>{let e=ce(t)?t.content.childNodes:[t];return Array.from(e).filter(n=>{let r=n==null?void 0:n.tagName;return r!=="SCRIPT"&&r!=="STYLE"})},Ee=(t,e)=>{for(let n of e)jn(n)||t.H(n)},Te=(t,e)=>{var r;let n=t.querySelectorAll(e);return(r=t.matches)!=null&&r.call(t,e)?[t,...n]:n},ce=t=>t instanceof HTMLTemplateElement,Oe=t=>t.nodeType===Node.ELEMENT_NODE,Ze=t=>t.nodeType===Node.ELEMENT_NODE,Vn=t=>t instanceof HTMLSlotElement,me=t=>ce(t)?t.content.childNodes:t.childNodes,ue=(t,e)=>{let n=t.nextSibling;for(;n!=null&&n!==e;){let r=n.nextSibling;q(n),n=r}},Ce=(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})},$n=(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},Ue=t=>`[${CSS.escape(t)}]`,yt=(t,e)=>(t.startsWith("@")&&(t=e.f.on+":"+t.slice(1)),t.includes("[")&&(t=t.replace(/[[\]]/g,e.f.dynamic)),t),Zt=t=>{let e=Object.create(null);return n=>e[n]||(e[n]=t(n))},ro=/-(\w)/g,P=Zt(t=>t&&t.replace(ro,(e,n)=>n?n.toUpperCase():"")),oo=/\B([A-Z])/g,He=Zt(t=>t&&t.replace(oo,"-$1").toLowerCase()),et=Zt(t=>t&&t.charAt(0).toUpperCase()+t.slice(1));var gt={};var bt=t=>{var n,r;let e=(n=pt(t))==null?void 0:n.onMounted;e==null||e.forEach(o=>{o()}),(r=t.mounted)==null||r.call(t)};var en=Symbol("scope"),tn=t=>{try{In();let e=t();Wt(e);let n={context:e,unmount:()=>be(e),[en]:1};return n[en]=1,n}finally{Dn()}},Fn=t=>N(t)?en in t:!1;var qn={collectRefObj:!0,onBind:(t,e)=>A(e.value,()=>{let r=e.value(),o=e.context,s=r[0];if(N(s))for(let i of Object.entries(s)){let a=i[0],c=i[1],p=o[a];p!==c&&(b(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(!N(o))return()=>{};for(let s of Object.entries(o)){let i=s[0],a=s[1],c=r[i];c!==a&&(b(c)?c(a):r[i]=a)}return()=>{}}};var Kn={collectRefObj:!0,onBind:(t,e,n,r,o,s)=>{if(!r)return()=>{};let i=P(r);return A(e.value,()=>{var l;let c=(l=e.refs[0])!=null?l:e.value()[0],p=e.context,f=p[r];f!==c&&(b(f)?f(c):p[i]=c)},!0)}};var nn=(t,e)=>{if(t===e)return()=>{};let n=A(t,o=>e(o)),r=A(e,o=>t(o));return e(t()),()=>{n(),r()}};var Tt=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(He),...a.map(He)].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,y=P(u.tagName).toUpperCase(),R=i[y],C=R!=null?R:s.get(y);if(!C)continue;let T=C.template;if(!T)continue;let k=u.parentElement;if(!k)continue;let U=new Comment(" begin component: "+u.tagName),oe=new Comment(" end component: "+u.tagName);k.insertBefore(U,u),u.remove();let Ke=n.o.f.props,We=n.o.f.propsOnce,jt=n.o.f.bind,Ge=(g,O)=>{let x={},K=g.hasAttribute(Ke),$=g.hasAttribute(We);return r.v(O,()=>{r.S(x),K&&n.x(qn,g,Ke),$&&n.x(zn,g,We);let v=C.props;if(!v||v.length===0)return;v=v.map(P);let F=new Map(v.map(Y=>[Y.toLowerCase(),Y]));for(let Y of v.concat(v.map(He))){let fe=g.getAttribute(Y);fe!==null&&(x[P(Y)]=fe,g.removeAttribute(Y))}let Vt=n.J.de(g,!1);for(let[Y,fe]of Vt.entries()){let[$t,On]=fe.Q;if(!On)continue;let An=F.get(P(On).toLowerCase());An&&($t!=="."&&$t!==":"&&$t!==jt||n.x(Kn,g,Y,!0,An,fe.X))}}),x},ye=[...r.V()],st=()=>{var K;let g=Ge(u,ye),O=new Xe(g,u,ye,U,oe),x=tn(()=>{var $;return($=C.context(O))!=null?$:{}}).context;if(O.autoProps){for(let[$,v]of Object.entries(g))if($ in x){let F=x[$];if(F===v)continue;O.entangle&&b(F)&&b(v)&&B(U,nn(v,F))}else x[$]=v;(K=O.onAutoPropsAssigned)==null||K.call(O)}return{componentCtx:x,head:O}},{componentCtx:ve,head:I}=st(),se=[...me(T)],S=se.length,M=u.childNodes.length===0,V=g=>{let O=g.parentElement;if(M){for(let v of[...g.childNodes])O.insertBefore(v,g);return}let x=g.name;z(x)&&(x=g.getAttributeNames().filter(v=>v.startsWith("#"))[0],z(x)?x="default":x=x.substring(1));let K=u.querySelector(`template[name='${x}'], template[\\#${x}]`);!K&&x==="default"&&(K=u.querySelector("template:not([name])"),K&&K.getAttributeNames().filter(v=>v.startsWith("#")).length>0&&(K=null));let $=v=>{I.enableSwitch&&r.v(ye,()=>{r.S(ve);let F=Ge(g,r.V());r.v(ye,()=>{r.S(F);let Vt=r.V(),Y=_n(Vt);for(let fe of v)Oe(fe)&&(fe.setAttribute(Ye,Y),Gt(Y),B(fe,()=>{Jt(Y)}))})})};if(K){let v=[...me(K)];for(let F of v)O.insertBefore(F,g);$(v)}else{if(x!=="default"){for(let F of[...me(g)])O.insertBefore(F,g);return}let v=[...me(u)].filter(F=>!ce(F));for(let F of v)O.insertBefore(F,g);$(v)}},w=g=>{if(!Oe(g))return;let O=g.querySelectorAll("slot");if(Vn(g)){V(g),g.remove();return}for(let x of O)V(x),x.remove()};(()=>{for(let g=0;g<S;++g)se[g]=se[g].cloneNode(!0),h.insertBefore(se[g],d),w(se[g])})(),k.insertBefore(oe,d);let ie=()=>{if(!C.inheritAttrs)return;let g=se.filter(x=>x.nodeType===Node.ELEMENT_NODE);g.length>1&&(g=g.filter(x=>x.hasAttribute(this.fe)));let O=g[0];if(O)for(let x of u.getAttributeNames()){if(x===Ke||x===We)continue;let K=u.getAttribute(x);if(x==="class")O.classList.add(...K.split(" "));else if(x==="style"){let $=O.style,v=u.style;for(let F of v)$.setProperty(F,v.getPropertyValue(F))}else O.setAttribute(yt(x,n.o),K)}},Le=()=>{for(let g of u.getAttributeNames())!g.startsWith("@")&&!g.startsWith(n.o.f.on)&&u.removeAttribute(g)},Je=()=>{ie(),Le(),r.S(ve),n.ye(u,!1),ve.$emit=I.emit,Ee(n,se),B(u,()=>{be(ve)}),B(U,()=>{le(u)}),bt(ve)};r.v(ye,Je)}}};var rn=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]=P(o[i])}s.includes("prop")&&(o[0]=".")}}},Et=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(!Ze(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 rn(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 so=(t,e)=>{for(let n of t){let r=n.cloneNode(!0);e.appendChild(r)}},Ct=class{constructor(e){m(this,"p");m(this,"I");m(this,"Te");this.p=e,this.I=e.o.f.is,this.Te=Ue(this.I)+", [is]"}N(e){let n=e.hasAttribute(this.I),r=Te(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)return;if(!n.startsWith("regor:")){if(!n.startsWith("r-"))return;let r=n.slice(2).trim().toLowerCase();if(!r)return;let o=e.parentNode;if(!o)return;let s=document.createElement(r);for(let i of e.getAttributeNames())i!=="is"&&s.setAttribute(i,e.getAttribute(i));for(;e.firstChild;)s.appendChild(e.firstChild);o.insertBefore(s,e),e.remove(),this.p.H(s);return}n=`'${n.slice(6)}'`,e.removeAttribute("is")}e.removeAttribute(this.I),this.L(e,n)}P(e,n){let r=De(e),o=e.parentNode,s=document.createComment(`__begin__ dynamic ${n!=null?n:""}`);o.insertBefore(s,e),Ie(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.P(e,` => ${n} `),a=this.p.h.C(n),c=a.value,p=this.p.h,f=p.V(),l={name:""},u=ce(e)?r:[...r[0].childNodes],h=()=>{p.v(f,()=>{var k;let C=c()[0];if(N(C)&&(C.name?C=C.name:C=(k=Object.entries(p.me()).filter(U=>U[1]===C)[0])==null?void 0:k[0]),!_(C)||z(C)){ue(s,i);return}if(l.name===C)return;ue(s,i);let T=document.createElement(C);for(let U of e.getAttributeNames())U!==this.I&&T.setAttribute(U,e.getAttribute(U));so(u,T),o.insertBefore(T,i),this.p.H(T),l.name=C})},d=[];B(s,()=>{a.stop();for(let C of d)C();d.length=0}),h();let R=A(c,h);d.push(R)}};var ne=[],Wn=t=>{var e;ne.length!==0&&((e=ne[ne.length-1])==null||e.add(t))},_e=t=>{if(!t)return()=>{};let e={stop:()=>{}};return io(t,e),J(()=>e.stop(),!0),e.stop},io=(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(ne.push(s),t(i=>n.push(i)),r)return;for(let i of[...s]){let a=A(i,()=>{o(),_e(t)});n.push(a)}}finally{ne.pop()}},on=t=>{let e=ne.length,n=e>0&&ne[e-1];try{return n&&ne.push(null),t()}finally{n&&ne.pop()}},sn=t=>{try{let e=new Set;return ne.push(e),{value:t(),refs:[...e]}}finally{ne.pop()}};var tt=t=>!!t&&t[ut]===1;var W=(t,e,n)=>{if(!b(t))return;let r=t;if(r(void 0,e,1),!n)return;let o=r();if(o){if(E(o)||Z(o))for(let s of o)W(s,e,!0);else if(ge(o))for(let s of o)W(s[0],e,!0),W(s[1],e,!0);if(N(o))for(let s in o)W(o[s],e,!0)}};function ao(t,e,n){Object.defineProperty(t,e,{value:n,enumerable:!1,writable:!0,configurable:!0})}var Be=(t,e,n)=>{n.forEach(function(r){let o=t[r];ao(e,r,function(...i){let a=o.apply(this,i),c=this[Q];for(let p of c)W(p);return a})})},xt=(t,e)=>{Object.defineProperty(t,Symbol.toStringTag,{value:e,writable:!1,enumerable:!1,configurable:!0})};var Gn=Array.prototype,an=Object.create(Gn),co=["push","pop","shift","unshift","splice","sort","reverse"];Be(Gn,an,co);var Jn=Map.prototype,Rt=Object.create(Jn),po=["set","clear","delete"];xt(Rt,"Map");Be(Jn,Rt,po);var Qn=Set.prototype,vt=Object.create(Qn),fo=["add","clear","delete"];xt(vt,"Set");Be(Qn,vt,fo);var pe={},G=t=>{if(b(t)||tt(t))return t;let e={auto:!0,_value:t},n=c=>N(c)?Q in c?!0:E(c)?(Object.setPrototypeOf(c,an),!0):Z(c)?(Object.setPrototypeOf(c,vt),!0):ge(c)?(Object.setPrototypeOf(c,Rt),!0):!1:!1,r=n(t),o=new Set,s=(c,p)=>{if(pe.stack&&pe.stack.length){pe.stack[pe.stack.length-1].add(a);return}o.size!==0&&on(()=>{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||b(f)&&(f=f(),e._value===f)?f:(n(f)&&i(f),e._value=f,e.auto&&s(f,l),e._value):(Wn(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,Ce(a,!1),r&&i(t),a};var j=t=>b(t)?t():t;var nt=class{constructor(e){m(this,"E",[]);m(this,"_",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._.set(n,e)}ee(e){var r;let n=this.Y((r=this.E[e])==null?void 0:r.value);n!==void 0&&this._.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._.has(e)}Qe(e){var r;let n=this._.get(e);return(r=n==null?void 0:n.order)!=null?r:-1}};var cn=Symbol("r-for"),wt=class wt{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=Ue(this.b),this.T=e.o.f.pre}N(e){let n=e.hasAttribute(this.b),r=Te(e,this.ne);for(let o of r)this.Xe(o);return n}G(e){return e[cn]?!0:(e[cn]=!0,Te(e,this.ne).forEach(n=>n[cn]=!0),!1)}Xe(e){if(e.hasAttribute(this.T)||this.G(e))return;let n=e.getAttribute(this.b);if(!n){L(0,this.b,e);return}e.removeAttribute(this.b),this.Ye(e,n)}Re(e){return te(e)?[]:(H(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 se;let r=this.Ze(n);if(!(r!=null&&r.list)){L(1,this.b,n,e);return}let o=this.p.o.f.key,s=this.p.o.f.keyBind,i=(se=e.getAttribute(o))!=null?se:e.getAttribute(s);e.removeAttribute(o),e.removeAttribute(s);let a=i?S=>{var M;return j((M=j(S))==null?void 0:M[i])}:S=>S,c=(S,M)=>a(S)===a(M),p=De(e),f=e.parentNode;if(!f)return;let l=`${this.b} => ${n}`,u=new Comment(`__begin__ ${l}`);f.insertBefore(u,e),Ie(u,p),p.forEach(S=>{q(S)}),e.remove();let h=new Comment(`__end__ ${l}`);f.insertBefore(h,u.nextSibling);let d=this.p,y=d.h,R=y.V(),C=(S,M,V)=>{let w=r.createContext(M,S),ee=nt.Ge(w.index,M);return y.v(R,()=>{y.S(w.ctx);let ie=V.previousSibling,Le=[];for(let Je of p){let g=Je.cloneNode(!0);f.insertBefore(g,V),Le.push(g)}for(Ee(d,Le),ie=ie.nextSibling;ie!==V;)ee.items.push(ie),ie=ie.nextSibling}),ee},T=(S,M)=>{let V=I.D(S).items,w=V[V.length-1].nextSibling;for(let ee of V)q(ee);I.te(S,C(S,M,w))},k=(S,M)=>{I.S(C(S,M,h))},U=S=>{for(let M of I.D(S).items)q(M)},oe=S=>{let M=I.w;for(let V=S;V<M;++V)I.D(V).index(V)},Ke=S=>{let M=I.w;H(S)&&(S=S());let V=j(S[0]);if(E(V)&&V.length===0){ue(u,h),I.Ee(0);return}let w=0,ee=Number.MAX_SAFE_INTEGER,ie=M,Le=this.p.o.forGrowThreshold,Je=()=>I.w<ie+Le;for(let O of this.Re(S[0])){let x=()=>{if(w<M){let K=I.D(w++);if(c(K.value,O))return;let $=I.Qe(a(O));if($>=w&&$-w<10){if(--w,ee=Math.min(ee,w),U(w),I.xe(w),--M,$>w+1)for(let v=w;v<$-1&&v<M&&!c(I.D(w).value,O);)++v,U(w),I.xe(w),--M;x();return}Je()?(I.Je(w-1,C(w,O,I.D(w-1).items[0])),ee=Math.min(ee,w-1),++M):T(w-1,O)}else k(w++,O)};x()}let g=w;for(M=I.w;w<M;)U(w++);I.Ee(g),oe(ee)},We=()=>{st=A(ye,Ke)},jt=()=>{Ge.stop(),st()},Ge=y.C(r.list),ye=Ge.value,st,ve=0,I=new nt(a);for(let S of this.Re(ye()[0]))I.S(C(ve++,S,h));B(u,jt),We()}Ze(e){var c,p;let n=wt.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=j(f);if(!a&&r.length===1)u[r[0]]=f;else if(E(h)){let y=0;for(let R of r)u[R]=h[y++]}else for(let y of r)u[y]=h[y];let d={ctx:u,index:G(-1)};return s&&(d.index=u[s.startsWith("#")?s.substring(1):s]=G(l)),d}}}};m(wt,"et",/\{?\[?\(?([^)}\]]+)\)?\]?\}?([^)]+)?\s+\b(?:in|of)\b\s+(.*)\s*$/);var St=wt;var Ot=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 St(this),this.Ce=new ht(this),this.Se=new Ct(this),this.we=new Tt(this),this.J=new Et(this),this.T=this.o.f.pre,this.Oe=this.o.f.dynamic}tt(e){let n=ce(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);Ee(this,i)}}H(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.j;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(Ye);return f||(p.parentElement?c(p.parentElement):null)};if(Qt()){let p=c(n);if(p){this.h.v(Bn(p),()=>{this.L(e,n,a,s,i)});return}}this.L(e,n,a,s,i)}nt(e,n,r){if(e!==gt)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,B(i,()=>{q(n)}),o.appendChild(n)}return!0}L(e,n,r,o,s){var R;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=[];B(n,()=>{i.stop(),f==null||f.stop();for(let C of a)C();a.length=0});let p=$n(o,this.Oe),f;p&&(f=this.h.C(P(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),y=()=>{if(!e.onChange)return;let C=A(i.value,T=>{var oe;let k=l,U=h;(oe=e.onChange)==null||oe.call(e,n,u(),k,d(),U,s)});if(a.push(C),f){let T=A(f.value,k=>{var oe;let U=h;(oe=e.onChange)==null||oe.call(e,n,u(),U,d(),U,s)});a.push(T)}};e.once||y(),e.onBind&&a.push(e.onBind(n,i,r,o,f,s)),(R=e.onChange)==null||R.call(e,n,u(),void 0,d(),void 0,s)}};var Xn="http://www.w3.org/1999/xlink",lo={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 uo(t){return!!t||t===""}var pn={onChange:(t,e,n,r,o,s)=>{var a;if(r){s&&s.includes("camel")&&(r=P(r)),At(t,r,e[0],o);return}let i=e.length;for(let c=0;c<i;++c){let p=e[c];if(E(p)){let f=(a=n==null?void 0:n[c])==null?void 0:a[0],l=p[0],u=p[1];At(t,l,u,f)}else if(N(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;At(t,l,u,d)}else{let f=n==null?void 0:n[c],l=e[c++],u=e[c];At(t,l,u,f)}}}},At=(t,e,n,r)=>{if(r&&r!==e&&t.removeAttribute(r),te(e)){L(3,name,t);return}if(!_(e)){L(6,`Attribute key is not string at ${t.outerHTML}`,e);return}if(e.startsWith("xlink:")){te(n)?t.removeAttributeNS(Xn,e.slice(6,e.length)):t.setAttributeNS(Xn,e,n);return}let o=e in lo;te(n)||o&&!uo(n)?t.removeAttribute(e):t.setAttribute(e,o?"":n)};var fn={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(E(s)){let a=s.length;for(let c=0;c<a;++c)Yn(t,s[c],i==null?void 0:i[c])}else Yn(t,s,i)}}},Yn=(t,e,n)=>{let r=t.classList,o=_(e),s=_(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 Zn={onChange:(t,e)=>{let[n,r]=e;H(r)?r(t,n):t.innerHTML=n==null?void 0:n.toString()}};function mo(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=de(t[r],e[r]);return n}function de(t,e){if(t===e)return!0;let n=zt(t),r=zt(e);if(n||r)return n&&r?t.getTime()===e.getTime():!1;if(n=Qe(t),r=Qe(e),n||r)return t===e;if(n=E(t),r=E(e),n||r)return n&&r?mo(t,e):!1;if(n=N(t),r=N(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||!de(t[i],e[i]))return!1}}return String(t)===String(e)}function Nt(t,e){return t.findIndex(n=>de(n,e))}var er=t=>{let e=parseFloat(t);return isNaN(e)?t:e};var ln=t=>{if(!b(t))throw D(3,"pause");t(void 0,void 0,3)};var un=t=>{if(!b(t))throw D(3,"resume");t(void 0,void 0,4)};var nr={onChange:(t,e)=>{ho(t,e[0])},onBind:(t,e,n,r,o,s)=>yo(t,e,s)},ho=(t,e)=>{let n=ir(t);if(n&&rr(t))E(e)?e=Nt(e,he(t))>-1:Z(e)?e=e.has(he(t)):e=xo(t,e),t.checked=e;else if(n&&or(t))t.checked=de(e,he(t));else if(n||ar(t))sr(t)?t.value!==(e==null?void 0:e.toString())&&(t.value=e):t.value!==e&&(t.value=e);else if(cr(t)){let r=t.options,o=r.length,s=t.multiple;for(let i=0;i<o;i++){let a=r[i],c=he(a);if(s)E(e)?a.selected=Nt(e,c)>-1:a.selected=e.has(c);else if(de(he(a),e)){t.selectedIndex!==i&&(t.selectedIndex=i);return}}!s&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}else L(7,t)},rt=t=>(b(t)&&(t=t()),H(t)&&(t=t()),t?_(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",or=t=>t.type==="radio",sr=t=>t.type==="number"||t.type==="range",ir=t=>t.tagName==="INPUT",ar=t=>t.tagName==="TEXTAREA",cr=t=>t.tagName==="SELECT",yo=(t,e,n)=>{let r=e.value,o=rt(n==null?void 0:n.join(",")),s=rt(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 L(8,t),()=>{};let c=ir(t);return c&&rr(t)?bo(t,a):c&&or(t)?Ro(t,a):c||ar(t)?go(t,i,a,r):cr(t)?vo(t,a,r):(L(7,t),()=>{})},tr=/[.,' ·٫]/,go=(t,e,n,r)=>{let s=e.lazy?"change":"input",i=sr(t),a=()=>{!e.trim&&!rt(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,y=rt(r()[1]);if(i||y.number||y.int){if(y.int)d=parseInt(d);else{if(tr.test(d[d.length-1])&&d.split(tr).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 y.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},bo=(t,e)=>{let n="change",r=()=>{t.removeEventListener(n,o)},o=()=>{let s=he(t),i=t.checked,a=e();if(E(a)){let c=Nt(a,s),p=c!==-1;i&&!p?a.push(s):!i&&p&&a.splice(c,1)}else Z(a)?i?a.add(s):a.delete(s):e(Co(t,i))};return t.addEventListener(n,o),r},he=t=>"_value"in t?t._value:t.value,pr="trueValue",To="falseValue",fr="true-value",Eo="false-value",Co=(t,e)=>{let n=e?pr:To;if(n in t)return t[n];let r=e?fr:Eo;return t.hasAttribute(r)?t.getAttribute(r):e},xo=(t,e)=>{if(pr in t)return de(e,t.trueValue);let r=fr;return t.hasAttribute(r)?de(e,t.getAttribute(r)):de(e,!0)},Ro=(t,e)=>{let n="change",r=()=>{t.removeEventListener(n,o)},o=()=>{let s=he(t);e(s)};return t.addEventListener(n,o),r},vo=(t,e,n)=>{let r="change",o=()=>{t.removeEventListener(r,s)},s=()=>{let a=rt(n()[1]).number,c=Array.prototype.filter.call(t.options,p=>p.selected).map(p=>a?er(he(p)):he(p));if(t.multiple){let p=e();try{if(ln(e),Z(p)){p.clear();for(let f of c)p.add(f)}else E(p)?(p.splice(0),p.push(...c)):e(c)}finally{un(e),W(e)}}else e(c[0])};return t.addEventListener(r,s),o};var So=["stop","prevent","capture","self","once","left","right","middle","passive"],wo=t=>{let e={};if(z(t))return;let n=t.split(",");for(let r of So)e[r]=n.includes(r);return e},dn={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=j(o.value()[0]);return _(h)?mn(t,P(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,P(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(H(h)&&(h=h()),N(h))for(let d of Object.entries(h)){let y=d[0],R=()=>{let T=e.value()[u];return H(T)&&(T=T()),T=T[y],H(T)&&(T=T()),T},C=h[y+"_flags"];i.push(mn(t,y,R,C))}else L(2,name,t)}return a}},Oo=(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 L(5,name,t),()=>{};let o=wo(r),s=o?{capture:o.capture,passive:o.passive,once:o.once}:void 0,i;[e,i]=Oo(e,r);let a=f=>{if(!i(f)||!n&&e==="submit"&&(o!=null&&o.prevent))return;let l=n(f);H(l)&&(l=l(f)),H(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 lr={onChange:(t,e,n,r,o,s)=>{if(r){s&&s.includes("camel")&&(r=P(r)),Pe(t,r,e[0]);return}let i=e.length;for(let a=0;a<i;++a){let c=e[a];if(E(c)){let p=c[0],f=c[1];Pe(t,p,f)}else if(N(c))for(let p of Object.entries(c)){let f=p[0],l=p[1];Pe(t,f,l)}else{let p=e[a++],f=e[a];Pe(t,p,f)}}}};function Ao(t){return!!t||t===""}var Pe=(t,e,n)=>{if(te(e)){L(3,name,t);return}if(e==="innerHTML"||e==="textContent"){let s=[...t.childNodes];setTimeout(()=>s.forEach(le),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=Ao(n):n==null&&s==="string"?(n="",o=!0):s==="number"&&(n=0,o=!0)}try{t[e]=n}catch(s){o||L(4,e,r,n,s)}o&&t.removeAttribute(e)};var ur={once:!0,onBind:(t,e,n)=>{let r=e.value()[0],o=E(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 mr={onChange:(t,e)=>{let n=we(t).data,r=n._ord;Ln(r)&&(r=n._ord=t.style.display),!!e[0]?t.style.display=r:t.style.display="none"}};var gn={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(E(s)){let a=s.length;for(let c=0;c<a;++c)dr(t,s[c],i==null?void 0:i[c])}else dr(t,s,i)}}},dr=(t,e,n)=>{let r=t.style,o=_(e);if(e&&!o){if(n&&!_(n))for(let s in n)e[s]==null&&yn(r,s,"");for(let s in e)yn(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}},hr=/\s*!important$/;function yn(t,e,n){if(E(n))n.forEach(r=>{yn(t,e,r)});else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{let r=No(t,e);hr.test(n)?t.setProperty(He(r),n.replace(hr,""),"important"):t[r]=n}}var yr=["Webkit","Moz","ms"],hn={};function No(t,e){let n=hn[e];if(n)return n;let r=P(e);if(r!=="filter"&&r in t)return hn[e]=r;r=et(r);for(let o=0;o<yr.length;o++){let s=yr[o]+r;if(s in t)return hn[e]=s}return e}var X=t=>gr(j(t)),gr=(t,e=new WeakMap)=>{if(!t||!N(t))return t;if(E(t))return t.map(X);if(Z(t)){let r=new Set;for(let o of t.keys())r.add(X(o));return r}if(ge(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 j(e.get(t));let n=at({},t);e.set(t,n);for(let r of Object.entries(n))n[r[0]]=gr(j(r[1]),e);return n};var br={onChange:(t,e)=>{var r;let n=e[0];t.textContent=Z(n)?JSON.stringify(X([...n])):ge(n)?JSON.stringify(X([...n])):N(n)?JSON.stringify(X(n)):(r=n==null?void 0:n.toString())!=null?r:""}};var Tr={onChange:(t,e)=>{Pe(t,"value",e[0])}};var je=t=>(t==null?void 0:t[lt])===1;var Ne=t=>{if(tt(t))return t;let e;if(b(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,E(t)){let n=t.length;for(let r=0;r<n;++r){let o=t[r];je(o)||(t[r]=Ne(o))}return e}if(!N(t))return e;for(let n of Object.entries(t)){let r=n[1];if(je(r))continue;let o=n[0];Qe(o)||(t[o]=null,t[o]=Ne(r))}return e};var xe=class xe{constructor(e){m(this,"j",{});m(this,"f",{});m(this,"We",()=>Object.keys(this.j).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=xe.Ae)!=null?e:xe.Ae=new xe}ot(){let e={},n=globalThis;for(let r of xe.rt.split(","))e[r]=n[r];return e.ref=Ne,e.sref=G,e.flatten=X,e}addComponent(...e){for(let n of e){if(!n.defaultName){ft.warning("Registered component's default name is not defined",n);continue}this.le.set(et(n.defaultName),n),this.ue.set(et(n.defaultName).toLocaleUpperCase(),n)}}setDirectives(e){this.j={".":lr,":":pn,"@":dn,[`${e}on`]:dn,[`${e}bind`]:pn,[`${e}html`]:Zn,[`${e}text`]:br,[`${e}show`]:mr,[`${e}model`]:nr,":style":gn,[`${e}bind:style`]:gn,":class":fn,[`${e}bind:class`]:fn,":ref":ur,":value":Tr,[`${e}teleport`]:gt},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.j,this.f)}};m(xe,"Ae"),m(xe,"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 re=xe;var Mt=(t,e)=>{if(!t)return;let r=(e!=null?e:re.getDefault()).f,o=/(\{\{[^]*?\}\}|\[\[[^]*?\]\])/g,s=[{start:"{{",end:"}}"},{start:"[[",end:"]]"}];for(let i of Lo(t,r.pre,s))Mo(i,r.text,o,s)},Mo=(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=Er(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=Er(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)},Lo=(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},Er=(t,e)=>e.find(n=>t.startsWith(n.start)&&t.endsWith(n.end));var ko=9,Io=10,Do=13,Uo=32,Re=46,Lt=44,Ho=39,_o=34,kt=40,Ve=41,It=91,Dt=93,bn=63,Bo=59,Cr=58,Po=123,Ut=125,En=43,jo=45,xr=96,Rr=47,Vo=92,vr=[2,3],Sr=[En,jo],Lr={"-":1,"!":1,"~":1,"+":1,new:1},kr={"=":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},Fe=Mn(at({"=>":2},kr),{"||":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(kr),$o=new Set(Ir),Ht=new Set;Ht.add("=>");Ir.forEach(t=>Ht.add(t));var Fo=new Set(["$","_"]),wr={true:!0,false:!1,null:null},qo="this";function Dr(t){return Math.max(0,...Object.keys(t).map(e=>e.length))}var zo=Dr(Lr),Ko=Dr(Fe),qe="Expected ",Me="Unexpected ",xn="Unclosed ",Wo=qe+":",Or=qe+"expression",Go="missing }",Jo=Me+"object property",Qo=xn+"(",Ar=qe+"comma",Nr=Me+"token ",Xo=Me+"period",Tn=qe+"expression after ",Yo="missing unaryOp argument",Zo=xn+"[",es=qe+"exponent (",ts="Variable names cannot start with a number (",ns=xn+'quote after "';var $e=t=>t>=48&&t<=57,Mr=t=>Fe[t]||0,Cn=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 Fe)||Fo.has(n)}re(e){return this.U(e)||$e(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===Uo||e===ko||e===Io||e===Do;)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===Bo||r===Lt)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.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,Ko),o=r.length;for(;o>0;){if(r in Fe&&(!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.$(),!s||(n=this.se(),!n))return s;if(o={value:n,prec:Mr(n),right_a:Ht.has(n)},i=this.$(),!i)throw this.i(Tn+n);let p=[s,o,i];for(;n=this.se();){if(r=Mr(n),r===0){this.e-=n.length;break}o={value:n,prec:r,right_a:Ht.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.$(),!e)throw this.i(Tn+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}$(){let e,n,r;if(this.y(),r=this.k(2,1),r)return this.k(3,0,r);let o=this.l;if($e(o)||o===Re)return this.gt();if(o===Ho||o===_o)r=this.bt();else if(o===It)r=this.Tt();else{for(e=this.r.substr(this.e,zo),n=e.length;n>0;){if(Object.prototype.hasOwnProperty.call(Lr,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.$();if(!s)throw this.i(Yo);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 wr?r={type:4,value:wr[r.name],raw:r.name}:r.name===qo&&(r={type:5})):o===kt&&(r=this.xt())}return r?(r=this.F(r),this.k(3,0,r)):this.k(3,0,!1)}F(e){this.y();let n=this.l;for(;n===Re||n===It||n===kt||n===bn;){let r;if(n===bn){if(this.r.charCodeAt(this.e+1)!==Re)break;r=!0,this.e+=2,this.y(),n=this.l}if(this.e++,n===It){if(e={type:3,computed:!0,object:e,property:this.O()},this.y(),n=this.l,n!==Dt)throw this.i(Zo);this.e++}else n===kt?e={type:6,arguments:this.ke(Ve),callee:e}:(n===Re||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(;$e(this.l);)e+=this.r.charAt(this.e++);if(this.m(Re))for(e+=this.r.charAt(this.e++);$e(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++));$e(this.l);)e+=this.r.charAt(this.e++);if(!$e(this.r.charCodeAt(this.e-1)))throw this.i(es+e+this.M+")")}let r=this.l;if(this.U(r))throw this.i(ts+e+this.M+")");if(r===Re||e.length===1&&e.charCodeAt(0)===Re)throw this.i(Xo);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(ns+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)}}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===Ve&&o&&o>=n.length)throw this.i(Nr+String.fromCharCode(e));break}else if(s===Lt){if(this.e++,o++,o!==n.length){if(e===Ve)throw this.i(Nr+",");if(e===Dt)for(let i=n.length;i<o;i++)n.push(null)}}else{if(n.length!==o&&o!==0)throw this.i(Ar);{let i=this.O();if(!i||i.type===0)throw this.i(Ar);n.push(i)}}}if(!r)throw this.i(qe+String.fromCharCode(e));return n}xt(){this.e++;let e=this.oe(Ve);if(this.m(Ve))return this.e++,e.length===1?e[0]:e.length?{type:1,expressions:e}:!1;throw this.i(Qo)}Tt(){return this.e++,{type:9,elements:this.ke(Dt)}}ft(e){if(this.m(Po)){this.e++;let n=[];for(;!isNaN(this.l);){if(this.y(),this.m(Ut)){this.e++,e.node=this.F({type:10,properties:n});return}let r=this.O();if(!r)break;if(this.y(),r.type===2&&(this.m(Lt)||this.m(Ut)))n.push({type:12,computed:!1,key:r,value:r,shorthand:!0});else if(this.m(Cr)){this.e++;let o=this.O();if(!o)throw this.i(Jo);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(Lt)&&this.e++}throw this.i(Go)}}lt(e){let n=this.l;if(Sr.some(r=>r===n&&r===this.r.charCodeAt(this.e+1))){this.e+=2;let r=e.node={type:13,operator:n===En?"++":"--",argument:this.F(this.ie()),prefix:!0};if(!r.argument||!vr.includes(r.argument.type))throw this.i(Me+r.operator)}}yt(e){if(e.node){let n=this.l;if(Sr.some(r=>r===n&&r===this.r.charCodeAt(this.e+1))){if(!vr.includes(e.node.type))throw this.i(Me+e.node.operator);this.e+=2,e.node={type:13,operator:n===En?"++":"--",argument:e.node,prefix:!1}}}}ut(e){[0,1,2].every(n=>this.r.charCodeAt(this.e+n)===Re)&&(this.e+=3,e.node={type:14,argument:this.O()})}ct(e){if(e.node&&this.m(bn)){this.e++;let n=e.node,r=this.O();if(!r)throw this.i(Or);if(this.y(),this.m(Cr)){this.e++;let o=this.O();if(!o)throw this.i(Or);if(e.node={type:11,test:n,consequent:r,alternate:o},n.operator&&Fe[n.operator]<=.9){let s=n;for(;s.right.operator&&Fe[s.right.operator]<=.9;)s=s.right;e.node.test=s.right,s.right=e.node,e.node=n}}else throw this.i(Wo)}}it(e){if(this.y(),this.m(kt)){let n=this.e;if(this.e++,this.y(),this.m(Ve)){this.e++;let r=this.se();if(r==="=>"){let o=this.Me();if(!o)throw this.i(Tn+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.q(e.node)}q(e){$o.has(e.operator)?(e.type=16,this.q(e.left),this.q(e.right)):e.operator||Object.values(e).forEach(n=>{n&&typeof n=="object"&&this.q(n)})}ht(e){if(!e.node)return;let n=e.node.type;(n===2||n===3)&&this.m(xr)&&(e.node={type:17,tag:e.node,quasi:this.Ne(e)})}Ne(e){if(!this.m(xr))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(Ut)),!this.m(Ut))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(Rr))return;let n=++this.e,r=!1;for(;this.e<this.r.length;){if(this.l===Rr&&!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.F(e.node),e.node}this.m(It)?r=!0:r&&this.m(Dt)&&(r=!1),this.e+=this.m(Vo)?2:1}throw this.i("Unclosed Regex")}},Ur=t=>new Cn(t).parse();var rs={"=>":(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)=>it(t,e)},os={"-":t=>-t,"+":t=>+t,"!":t=>!t,"~":t=>~t,new:t=>t},Pr=t=>{if(!(t!=null&&t.some(Br)))return t;let e=[];return t.forEach(n=>Br(n)?e.push(...n):e.push(n)),e},Hr=(...t)=>Pr(t),Rn=(t,e)=>{if(!t)return e;let n=Object.create(e!=null?e:{});return n.$event=t,n},ss={"++":(t,e)=>{let n=t[e];if(b(n)){let r=n();return n(++r),r}return++t[e]},"--":(t,e)=>{let n=t[e];if(b(n)){let r=n();return n(--r),r}return--t[e]}},is={"++":(t,e)=>{let n=t[e];if(b(n)){let r=n();return n(r+1),r}return t[e]++},"--":(t,e)=>{let n=t[e];if(b(n)){let r=n();return n(r-1),r}return t[e]--}},_r={"=":(t,e,n)=>{let r=t[e];return b(r)?r(n):t[e]=n},"+=":(t,e,n)=>{let r=t[e];return b(r)?r(r()+n):t[e]+=n},"-=":(t,e,n)=>{let r=t[e];return b(r)?r(r()-n):t[e]-=n},"*=":(t,e,n)=>{let r=t[e];return b(r)?r(r()*n):t[e]*=n},"/=":(t,e,n)=>{let r=t[e];return b(r)?r(r()/n):t[e]/=n},"%=":(t,e,n)=>{let r=t[e];return b(r)?r(r()%n):t[e]%=n},"**=":(t,e,n)=>{let r=t[e];return b(r)?r(it(r(),n)):t[e]=it(t[e],n)},"<<=":(t,e,n)=>{let r=t[e];return b(r)?r(r()<<n):t[e]<<=n},">>=":(t,e,n)=>{let r=t[e];return b(r)?r(r()>>n):t[e]>>=n},">>>=":(t,e,n)=>{let r=t[e];return b(r)?r(r()>>>n):t[e]>>>=n},"|=":(t,e,n)=>{let r=t[e];return b(r)?r(r()|n):t[e]|=n},"&=":(t,e,n)=>{let r=t[e];return b(r)?r(r()&n):t[e]&=n},"^=":(t,e,n)=>{let r=t[e];return b(r)?r(r()^n):t[e]^=n}},_t=(t,e)=>H(t)?t.bind(e):t,vn=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,"Be");this.u=E(e)?e:[e],this.Ve=n,this.Ie=r,this.De=o,this.Be=!!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],_t(j(r[o]),r);for(let i of this.u)if(o in i)return this.A=i[o],_t(j(i[o]),i);let s=this.Ve;if(s&&o in s)return this.A=s[o],_t(j(s[o]),s)}5(e,n,r){return this.u[0]}0(e,n,r){return this.He(n,r,Hr,...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,_t(j(i),o)}4(e,n,r){return e.value}6(e,n,r){let o=(i,...a)=>H(i)?i(...Pr(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,os[e.operator],e.argument)}8(e,n,r){let o=rs[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,Hr,...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.Be,c=l=>this._e(a,e.key,n,Rn(l,r)),p=l=>this._e(a,e.value,n,Rn(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=j(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?ss:is;if(o.type===2){let a=o.name,c=this.Pe(a,r);return te(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(te(a))return;let c=this.g(e.right,n,r);return _r[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 _r[s](i,a,c)}}14(e,n,r){let o=this.g(e.argument,n,r);return E(o)&&(o.s=jr),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=j(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)&&b(this.A)}eval(e,n){let{value:r,refs:o}=sn(()=>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,Rn(p,n)):this.g(a,e,n)));return r(...i)}},jr=Symbol("s"),Br=t=>(t==null?void 0:t.s)===jr,Vr=(t,e,n,r,o,s,i)=>new vn(e,n,r,o,i).eval(t,s);var $r={},Bt=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,y,R,C)=>{try{let T=Vr(d,y,f,n,r,C,o);return R&&l.push(...T.refs),{value:T.value,refs:T.refs,ref:T.ref}}catch(T){L(6,`evaluation error: ${e}`,T)}return{value:void 0,refs:[]}};try{let d=(h=$r[e])!=null?h:Ur("["+e+"]");$r[e]=d;let y=this.u,R=()=>{l.splice(0),c();let C=d.elements.map((T,k)=>n!=null&&n(k,-1)?{value:U=>u(T,y,!1,{$event:U}).value,refs:[]}:u(T,y,!0));if(!s)for(let T of l){let k=A(T,R);a.push(k)}i(C.map(T=>T.value)),p.refs=C.map(T=>T.ref)};R()}catch(d){L(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 Fr=t=>{let e=t.charCodeAt(0);return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122||t==="-"||t==="_"||t===":"},as=(t,e)=>{let n="";for(let r=e;r<t.length;++r){let o=t[r];if(n){o===n&&(n="");continue}if(o==='"'||o==="'"){n=o;continue}if(o===">")return r}return-1},cs=(t,e)=>{let n=e?2:1;for(;n<t.length&&(t[n]===" "||t[n]===`
|
|
4
|
+
`);)++n;if(n>=t.length||!Fr(t[n]))return null;let r=n;for(;n<t.length&&Fr(t[n]);)++n;return{start:r,end:n}},qr=new Set(["table","thead","tbody","tfoot"]),ps=new Set(["thead","tbody","tfoot"]),fs=new Set(["caption","colgroup","thead","tbody","tfoot","tr"]),Pt=t=>{var s;let e=0,n=[],r=[],o=0;for(;e<t.length;){let i=t.indexOf("<",e);if(i===-1){n.push(t.slice(e));break}if(n.push(t.slice(e,i)),t.startsWith("<!--",i)){let R=t.indexOf("-->",i+4);if(R===-1){n.push(t.slice(i));break}n.push(t.slice(i,R+3)),e=R+3;continue}let a=as(t,i);if(a===-1){n.push(t.slice(i));break}let c=t.slice(i,a+1),p=c.startsWith("</");if(c.startsWith("<!")||c.startsWith("<?")){n.push(c),e=a+1;continue}let l=cs(c,p);if(!l){n.push(c),e=a+1;continue}let u=c.slice(l.start,l.end);if(p){let R=r[r.length-1];R?(r.pop(),n.push(R.replacementHost?`</${R.replacementHost}>`:c),qr.has(R.effectiveTag)&&--o):n.push(c),e=a+1;continue}let h=c.charCodeAt(c.length-2)===47,d=r[r.length-1],y=null;if(o===0?u==="tr"?y="trx":u==="td"?y="tdx":u==="th"&&(y="thx"):ps.has((s=d==null?void 0:d.effectiveTag)!=null?s:"")?y=u==="tr"?null:"tr":(d==null?void 0:d.effectiveTag)==="table"?y=fs.has(u)?null:"tr":(d==null?void 0:d.effectiveTag)==="tr"&&(y=u==="td"||u==="th"?null:"td"),y){let R=y==="trx"||y==="tdx"||y==="thx";n.push(`${c.slice(0,l.start)}${y} is="${R?`r-${u}`:`regor:${u}`}"${c.slice(l.end)}`)}else h&&(d==null?void 0:d.effectiveTag)==="tr"?n.push(`${c.slice(0,c.length-2)}></${u}>`):n.push(c);if(!h){let R=y==="trx"?"tr":y==="tdx"?"td":y==="thx"?"th":y||u;r.push({replacementHost:y,effectiveTag:R}),qr.has(R)&&++o}e=a+1}return n.join("")};var ls="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",us=new Set(ls.toUpperCase().split(",")),ms="http://www.w3.org/2000/svg",zr=(t,e)=>{ce(t)?t.content.appendChild(e):t.appendChild(e)},Sn=(t,e,n,r)=>{var i;let o=t.t;if(o){let a=n&&us.has(o.toUpperCase())?document.createElementNS(ms,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(yt(l,r),u)}let p=t.c;if(p)for(let f of p)Sn(f,a,n,r);zr(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)zr(e,a);else throw new Error("unsupported node type.")}},ze=(t,e,n)=>{n!=null||(n=re.getDefault());let r=document.createDocumentFragment();if(!E(t))return Sn(t,r,!!e,n),r;for(let o of t)Sn(o,r,!!e,n);return r};var ds=(t,e={selector:"#app"},n)=>{_(e)&&(e={selector:"#app",template:e}),Fn(t)&&(t=t.context);let r=e.element?e.element:e.selector?document.querySelector(e.selector):null;if(!r||!Oe(r))throw D(0);n||(n=re.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(Pt(e.template));o(),s(a.childNodes),e.element=a}else if(e.json){let a=ze(e.json,e.isSVG,n);o(),s(a.childNodes)}return n.useInterpolation&&Mt(r,n),new wn(t,r,n).x(),B(r,()=>{be(t)}),bt(t),{context:t,unmount:()=>{q(r)},unbind:()=>{le(r)}}},wn=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 Bt([e],r),this.p=new Ot(this.h)}x(){this.p.H(this.Fe)}};var ot=t=>{if(E(t))return t.map(o=>ot(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=>ot(o))),e};var hs=(t,e={})=>{var s,i,a,c,p,f;E(e)&&(e={props:e}),_(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 D(1,t.selector);l.remove(),t.element=l}else if(t.template){let l=document.createRange().createContextualFragment(Pt(t.template));t.element=l}else t.json&&(t.element=ze(t.json,t.isSVG,e.config),r=!0);t.element||(t.element=document.createDocumentFragment()),((i=e.useInterpolation)==null||i)&&Mt(t.element,(a=e.config)!=null?a:re.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=o.content,u=l?[...l.childNodes]:[...o.childNodes],h=ot(u);t.element=ze(h,!0,e.config)}return{context:n,template:t.element,inheritAttrs:(f=e.inheritAttrs)!=null?f:!0,props:e.props,defaultName:e.defaultName}};var ys=t=>{var e;(e=Se())==null||e.onMounted.push(t)};var gs=t=>{let e,n={},r=(...o)=>{if(o.length<=2&&0 in o)throw D(4);return e&&!n.isStopped?e(...o):(e=bs(t,n),e(...o))};return r[Q]=1,Ce(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},bs=(t,e)=>{var s;let n=(s=e.ref)!=null?s:G(null);e.ref=n,e.isStopped=!1;let r=0,o=_e(()=>{if(r>0){o(),e.isStopped=!0,W(n);return}n(t()),++r});return n.stop=o,n};var Ts=(t,e)=>{let n={},r,o=(...s)=>{if(s.length<=2&&0 in s)throw D(4);return r&&!n.isStopped?r(...s):(r=Es(t,e,n),r(...s))};return o[Q]=1,Ce(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},Es=(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=A(c,s);i.push(p)}return s(null),r.stop=()=>{i.forEach(c=>{c()})},r};var Cs=(t,e)=>{let n={},r,o=(...s)=>{if(s.length<=2&&0 in s)throw D(4);return r&&!n.isStopped?r(...s):(r=xs(t,e,n),r(...s))};return o[Q]=1,Ce(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},xs=(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=A(t,i=>{if(o>0){r.stop(),n.isStopped=!0,W(r);return}r(e(i)),++o},!0),r};var Rs=t=>(t[ut]=1,t);var vs=(t,e)=>{if(!e)throw D(5);let r=je(t)?Ne: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){L(6,`persist: failed to parse data for key ${e}`,a),o()}else o();let i=_e(o);return J(i,!0),t};var Kr=(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},Ss=Kr;var ws=(t,e,n)=>{let r=[],o=()=>{e(t.map(i=>i()))};for(let i of t)r.push(A(i,o));n&&o();let s=()=>{for(let i of r)i()};return J(s,!0),s};var Os=t=>{if(!b(t))throw D(3,"observerCount");return t(void 0,void 0,2)};var As=t=>{Wr();try{t()}finally{Gr()}},Wr=()=>{pe.stack||(pe.stack=[]),pe.stack.push(new Set)},Gr=()=>{let t=pe.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 pe.stack;for(let n of e)try{W(n)}catch(r){console.error(r)}};export{Xe as ComponentHead,re as RegorConfig,B as addUnbinder,As as batch,sn as collectRefs,Ts as computeMany,Cs as computeRef,gs as computed,ds as createApp,hs as createComponent,Gr as endBatch,nn as entangle,X as flatten,we as getBindData,Kr as html,je as isDeepRef,tt as isRaw,b as isRef,Rs as markRaw,A as observe,ws as observeMany,Os as observerCount,ys as onMounted,J as onUnmounted,ln as pause,vs as persist,Ss as raw,Ne as ref,q as removeNode,un as resume,on as silence,G as sref,Wr as startBatch,ze as toFragment,ot as toJsonTemplate,W as trigger,le as unbind,j as unref,tn as useScope,ft as warningHandler,_e as watchEffect};
|