regor 1.0.1 → 1.0.2
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 +24 -2
- package/dist/regor.d.ts +31 -3
- package/dist/regor.es2015.cjs.js +32 -26
- package/dist/regor.es2015.cjs.prod.js +3 -3
- package/dist/regor.es2015.esm.js +32 -26
- package/dist/regor.es2015.esm.prod.js +3 -3
- package/dist/regor.es2015.iife.js +32 -26
- package/dist/regor.es2015.iife.prod.js +3 -3
- package/dist/regor.es2019.cjs.js +32 -26
- package/dist/regor.es2019.cjs.prod.js +3 -3
- package/dist/regor.es2019.esm.js +32 -26
- package/dist/regor.es2019.esm.prod.js +3 -3
- package/dist/regor.es2019.iife.js +32 -26
- package/dist/regor.es2019.iife.prod.js +3 -3
- package/dist/regor.es2022.cjs.js +32 -26
- package/dist/regor.es2022.cjs.prod.js +3 -3
- package/dist/regor.es2022.esm.js +32 -26
- package/dist/regor.es2022.esm.prod.js +3 -3
- package/dist/regor.es2022.iife.js +32 -26
- package/dist/regor.es2022.iife.prod.js +3 -3
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
Regor is a powerful UI framework designed to streamline the development of HTML5-based applications for both web and desktop environments. With a template syntax that closely follows Vue.js, transitioning from VueJS to Regor is seamless for developers familiar with Vue.
|
|
6
6
|
|
|
7
|
+
### [](https://www.npmjs.com/package/regor)
|
|
8
|
+
|
|
7
9
|
## Key Features
|
|
8
10
|
|
|
9
11
|
- **Simplicity:** Develop UIs without a Virtual DOM for a more straightforward implementation and easier debugging.
|
|
@@ -53,7 +55,6 @@ interface MyComponent {
|
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
const myComponent = createComponent<MyComponent>(
|
|
56
|
-
'MyComponent',
|
|
57
58
|
(head) => ({
|
|
58
59
|
message: head.props.message,
|
|
59
60
|
count: ref(0),
|
|
@@ -80,6 +81,27 @@ HTML:
|
|
|
80
81
|
</div>
|
|
81
82
|
```
|
|
82
83
|
|
|
84
|
+
define composables:
|
|
85
|
+
|
|
86
|
+
```ts
|
|
87
|
+
import { ref, onMounted, onUnmounted, type Ref } from 'regor'
|
|
88
|
+
|
|
89
|
+
export const useMouse = (): { x: Ref<number>; y: Ref<number> } => {
|
|
90
|
+
const x = ref(0)
|
|
91
|
+
const y = ref(0)
|
|
92
|
+
|
|
93
|
+
const update = (event: MouseEvent): void => {
|
|
94
|
+
x(event.pageX)
|
|
95
|
+
y(event.pageY)
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
onMounted(() => window.addEventListener('mousemove', update))
|
|
99
|
+
onUnmounted(() => window.removeEventListener('mousemove', update))
|
|
100
|
+
|
|
101
|
+
return { x, y }
|
|
102
|
+
}
|
|
103
|
+
```
|
|
104
|
+
|
|
83
105
|
## Installation
|
|
84
106
|
|
|
85
107
|
`yarn add regor`
|
|
@@ -124,7 +146,7 @@ These directives empower you to create dynamic and interactive user interfaces,
|
|
|
124
146
|
**App / Component Template Functions**
|
|
125
147
|
|
|
126
148
|
- **createApp:** Similar to Vue's `createApp`, it initializes a Regor application instance.
|
|
127
|
-
- **createComponent:** Creates a Regor component instance
|
|
149
|
+
- **createComponent:** Creates a Regor component instance.
|
|
128
150
|
- **toFragment:** Converts a JSON template to a DOM element fragment.
|
|
129
151
|
- **toJsonTemplate:** Converts a DOM element to a JSON template.
|
|
130
152
|
|
package/dist/regor.d.ts
CHANGED
|
@@ -161,12 +161,36 @@ export interface App<TRegorContext extends IRegorContext> {
|
|
|
161
161
|
unmount: () => void;
|
|
162
162
|
unbind: () => void;
|
|
163
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
* Represents a component in the Regor framework.
|
|
166
|
+
*
|
|
167
|
+
* @typeparam TProps - The type of props accepted by the component.
|
|
168
|
+
*/
|
|
164
169
|
export interface Component<TProps = Record<any, any>> {
|
|
165
|
-
|
|
170
|
+
/**
|
|
171
|
+
* A function that returns the Regor context associated with the component.
|
|
172
|
+
*
|
|
173
|
+
* @param head - Provides information on component mount.
|
|
174
|
+
* @returns The Regor context.
|
|
175
|
+
*/
|
|
166
176
|
context: (head: ComponentHead<TProps>) => IRegorContext;
|
|
167
|
-
|
|
177
|
+
/**
|
|
178
|
+
* The template for the component.
|
|
179
|
+
*/
|
|
180
|
+
template: Node;
|
|
181
|
+
/**
|
|
182
|
+
* Indicates whether the component'^s content should inherit attributes from its parent.
|
|
183
|
+
*/
|
|
168
184
|
inheritAttrs?: boolean;
|
|
185
|
+
/**
|
|
186
|
+
* An array of prop names accepted by the component.
|
|
187
|
+
*/
|
|
169
188
|
props?: string[];
|
|
189
|
+
/**
|
|
190
|
+
* The default name of the component when registered in the RegorConfig using the addComponent method.
|
|
191
|
+
* This property is not required if the component is used through app or component context.
|
|
192
|
+
*/
|
|
193
|
+
defaultName?: string;
|
|
170
194
|
}
|
|
171
195
|
export type OnMounted = () => void;
|
|
172
196
|
export type OnUnmounted = () => void;
|
|
@@ -182,6 +206,10 @@ export interface CreateComponentOptions {
|
|
|
182
206
|
* It is not required to define propFoo3 and propFoo4 in the props list because it uses :props binding. :props binding enables binding to any property of component regardless it is explicitly defined in props list.
|
|
183
207
|
*/
|
|
184
208
|
props?: string[];
|
|
209
|
+
/** The default name of the component.
|
|
210
|
+
* It is required if the component is registered using the Regor config.addComponent method.
|
|
211
|
+
* It is not required if the component being registered in app or component scope. */
|
|
212
|
+
defaultName?: string;
|
|
185
213
|
}
|
|
186
214
|
export interface Scope<TRegorContext> {
|
|
187
215
|
context: TRegorContext;
|
|
@@ -189,7 +217,7 @@ export interface Scope<TRegorContext> {
|
|
|
189
217
|
[ScopeSymbol]: true;
|
|
190
218
|
}
|
|
191
219
|
export declare const createApp: <TRegorContext extends IRegorContext>(context: TRegorContext | Scope<TRegorContext>, template?: Template, config?: RegorConfig) => App<TRegorContext>;
|
|
192
|
-
export declare const createComponent: <TProps = Record<any, any>>(
|
|
220
|
+
export declare const createComponent: <TProps = Record<any, any>>(context: (head: ComponentHead<TProps>) => IRegorContext, template: Template, options?: CreateComponentOptions) => Component<TProps>;
|
|
193
221
|
export declare const toFragment: (json: JSONTemplate | JSONTemplate[], isSVG?: boolean, config?: RegorConfig) => DocumentFragment;
|
|
194
222
|
export declare const toJsonTemplate: (node: Element | Element[]) => JSONTemplate | JSONTemplate[];
|
|
195
223
|
export declare const addUnbinder: (node: Node, unbinder: Unbinder) => void;
|
package/dist/regor.es2015.cjs.js
CHANGED
|
@@ -1615,7 +1615,7 @@ var ComponentBinder = class {
|
|
|
1615
1615
|
const registeredComponent = contextComponent != null ? contextComponent : registeredComponentsUpperCase.get(tagName);
|
|
1616
1616
|
if (!registeredComponent)
|
|
1617
1617
|
continue;
|
|
1618
|
-
const templateElement = registeredComponent.template
|
|
1618
|
+
const templateElement = registeredComponent.template;
|
|
1619
1619
|
if (!templateElement)
|
|
1620
1620
|
continue;
|
|
1621
1621
|
const componentParent = component.parentElement;
|
|
@@ -1653,7 +1653,7 @@ var ComponentBinder = class {
|
|
|
1653
1653
|
}
|
|
1654
1654
|
const map = binder.__directiveCollector.__collect(component2, false);
|
|
1655
1655
|
for (const [attrName, item] of map.entries()) {
|
|
1656
|
-
const [name2, option] = item.
|
|
1656
|
+
const [name2, option] = item.__terms;
|
|
1657
1657
|
if (!option)
|
|
1658
1658
|
continue;
|
|
1659
1659
|
if (!definedProps.includes(camelize(option)))
|
|
@@ -1666,7 +1666,7 @@ var ComponentBinder = class {
|
|
|
1666
1666
|
attrName,
|
|
1667
1667
|
true,
|
|
1668
1668
|
option,
|
|
1669
|
-
item.
|
|
1669
|
+
item.__flags
|
|
1670
1670
|
);
|
|
1671
1671
|
}
|
|
1672
1672
|
});
|
|
@@ -1863,27 +1863,27 @@ var ComponentBinder = class {
|
|
|
1863
1863
|
// src/bind/DirectiveCollector.ts
|
|
1864
1864
|
var DirectiveElement = class {
|
|
1865
1865
|
constructor(name2) {
|
|
1866
|
-
__publicField(this, "
|
|
1866
|
+
__publicField(this, "__name");
|
|
1867
1867
|
// r-on @click @submit r-on:click.prevent @submit.prevent @[event-name].self.camel :src :className.prop .class-name.camel r-if r-for key
|
|
1868
1868
|
/** Contains: ['@', 'submit'], ['r-on', 'click'], ['@', '[dynamicKey]'] */
|
|
1869
|
-
__publicField(this, "
|
|
1869
|
+
__publicField(this, "__terms", []);
|
|
1870
1870
|
/** Contains directive flags. ['camel', 'prevent',...] */
|
|
1871
|
-
__publicField(this, "
|
|
1872
|
-
__publicField(this, "
|
|
1873
|
-
this.
|
|
1871
|
+
__publicField(this, "__flags", []);
|
|
1872
|
+
__publicField(this, "__elements", []);
|
|
1873
|
+
this.__name = name2;
|
|
1874
1874
|
this.__parse();
|
|
1875
1875
|
}
|
|
1876
1876
|
__parse() {
|
|
1877
|
-
let name2 = this.
|
|
1877
|
+
let name2 = this.__name;
|
|
1878
1878
|
const isPropShortcut = name2.startsWith(".");
|
|
1879
1879
|
if (isPropShortcut)
|
|
1880
1880
|
name2 = ":" + name2.slice(1);
|
|
1881
1881
|
const firstFlagIndex = name2.indexOf(".");
|
|
1882
|
-
const terms = this.
|
|
1882
|
+
const terms = this.__terms = (firstFlagIndex < 0 ? name2 : name2.substring(0, firstFlagIndex)).split(/[:@]/);
|
|
1883
1883
|
if (isNullOrWhitespace(terms[0]))
|
|
1884
1884
|
terms[0] = isPropShortcut ? "." : name2[0];
|
|
1885
1885
|
if (firstFlagIndex >= 0) {
|
|
1886
|
-
const flags = this.
|
|
1886
|
+
const flags = this.__flags = name2.slice(firstFlagIndex + 1).split(".");
|
|
1887
1887
|
if (flags.includes("camel")) {
|
|
1888
1888
|
const index = terms.length - 1;
|
|
1889
1889
|
terms[index] = camelize(terms[index]);
|
|
@@ -1912,7 +1912,7 @@ var DirectiveCollector = class {
|
|
|
1912
1912
|
if (!map.has(name2))
|
|
1913
1913
|
map.set(name2, new DirectiveElement(name2));
|
|
1914
1914
|
const item = map.get(name2);
|
|
1915
|
-
item.
|
|
1915
|
+
item.__elements.push(node);
|
|
1916
1916
|
}
|
|
1917
1917
|
};
|
|
1918
1918
|
processNode(element);
|
|
@@ -1988,14 +1988,14 @@ var Binder = class {
|
|
|
1988
1988
|
const map = this.__directiveCollector.__collect(element, isRecursive);
|
|
1989
1989
|
const directiveMap = this.__config.__directiveMap;
|
|
1990
1990
|
for (const [attribute, item] of map.entries()) {
|
|
1991
|
-
const [name2, option] = item.
|
|
1991
|
+
const [name2, option] = item.__terms;
|
|
1992
1992
|
const directive = (_a = directiveMap[attribute]) != null ? _a : directiveMap[name2];
|
|
1993
1993
|
if (!directive) {
|
|
1994
1994
|
console.error("directive not found:", name2);
|
|
1995
1995
|
continue;
|
|
1996
1996
|
}
|
|
1997
|
-
item.
|
|
1998
|
-
this.__bind(directive, el, attribute, false, option, item.
|
|
1997
|
+
item.__elements.forEach((el) => {
|
|
1998
|
+
this.__bind(directive, el, attribute, false, option, item.__flags);
|
|
1999
1999
|
});
|
|
2000
2000
|
}
|
|
2001
2001
|
}
|
|
@@ -4802,9 +4802,16 @@ var _RegorConfig = class _RegorConfig {
|
|
|
4802
4802
|
}
|
|
4803
4803
|
addComponent(...components) {
|
|
4804
4804
|
for (const component of components) {
|
|
4805
|
-
|
|
4805
|
+
if (!component.defaultName) {
|
|
4806
|
+
warningHandler.warning(
|
|
4807
|
+
"Registered component's default name is not defined",
|
|
4808
|
+
component
|
|
4809
|
+
);
|
|
4810
|
+
continue;
|
|
4811
|
+
}
|
|
4812
|
+
this.__components.set(capitalize(component.defaultName), component);
|
|
4806
4813
|
this.__componentsUpperCase.set(
|
|
4807
|
-
capitalize(component.
|
|
4814
|
+
capitalize(component.defaultName).toLocaleUpperCase(),
|
|
4808
4815
|
component
|
|
4809
4816
|
);
|
|
4810
4817
|
}
|
|
@@ -4885,10 +4892,9 @@ var interpolateTextNode = (textNode, textDirective2) => {
|
|
|
4885
4892
|
if (((_a = textNode.parentElement) == null ? void 0 : _a.childNodes.length) === 1 && parts.length === 3) {
|
|
4886
4893
|
const part = parts[1];
|
|
4887
4894
|
if (isNullOrWhitespace(parts[0]) && isNullOrWhitespace(parts[2]) && part.startsWith("{{") && part.endsWith("}}")) {
|
|
4888
|
-
textNode.parentElement
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
);
|
|
4895
|
+
const parent = textNode.parentElement;
|
|
4896
|
+
parent.setAttribute(textDirective2, part.substring(2, part.length - 2));
|
|
4897
|
+
parent.innerText = "";
|
|
4892
4898
|
return;
|
|
4893
4899
|
}
|
|
4894
4900
|
}
|
|
@@ -5086,7 +5092,7 @@ var toJsonTemplate = (node) => {
|
|
|
5086
5092
|
};
|
|
5087
5093
|
|
|
5088
5094
|
// src/app/createComponent.ts
|
|
5089
|
-
var createComponent = (
|
|
5095
|
+
var createComponent = (context, template, options = {}) => {
|
|
5090
5096
|
var _a, _b, _c, _d;
|
|
5091
5097
|
let svgHandled = false;
|
|
5092
5098
|
if (template.element) {
|
|
@@ -5096,7 +5102,7 @@ var createComponent = (name2, context, template, options = {}) => {
|
|
|
5096
5102
|
} else if (template.selector) {
|
|
5097
5103
|
const element2 = document.querySelector(template.selector);
|
|
5098
5104
|
if (!element2)
|
|
5099
|
-
throw getError(1 /* ComponentTemplateNotFound */,
|
|
5105
|
+
throw getError(1 /* ComponentTemplateNotFound */, name);
|
|
5100
5106
|
element2.remove();
|
|
5101
5107
|
template.element = element2;
|
|
5102
5108
|
} else if (template.html) {
|
|
@@ -5118,11 +5124,11 @@ var createComponent = (name2, context, template, options = {}) => {
|
|
|
5118
5124
|
template.element = toFragment(json, true, options.config);
|
|
5119
5125
|
}
|
|
5120
5126
|
return {
|
|
5121
|
-
name: name2,
|
|
5122
5127
|
context,
|
|
5123
|
-
template,
|
|
5128
|
+
template: template.element,
|
|
5124
5129
|
inheritAttrs: (_d = options.inheritAttrs) != null ? _d : true,
|
|
5125
|
-
props: options.props
|
|
5130
|
+
props: options.props,
|
|
5131
|
+
defaultName: options.defaultName
|
|
5126
5132
|
};
|
|
5127
5133
|
};
|
|
5128
5134
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";var st=Object.defineProperty,to=Object.defineProperties,no=Object.getOwnPropertyDescriptor,ro=Object.getOwnPropertyDescriptors,oo=Object.getOwnPropertyNames,On=Object.getOwnPropertySymbols;var An=Object.prototype.hasOwnProperty,so=Object.prototype.propertyIsEnumerable;var it=Math.pow,Wt=(t,e,n)=>e in t?st(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,at=(t,e)=>{for(var n in e||(e={}))An.call(e,n)&&Wt(t,n,e[n]);if(On)for(var n of On(e))so.call(e,n)&&Wt(t,n,e[n]);return t},Nn=(t,e)=>to(t,ro(e));var io=(t,e)=>{for(var n in e)st(t,n,{get:e[n],enumerable:!0})},ao=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of oo(e))!An.call(t,o)&&o!==n&&st(t,o,{get:()=>e[o],enumerable:!(r=no(e,o))||r.enumerable});return t};var co=t=>ao(st({},"__esModule",{value:!0}),t);var m=(t,e,n)=>(Wt(t,typeof e!="symbol"?e+"":e,n),n);var vs={};io(vs,{ComponentHead:()=>$e,RegorConfig:()=>ie,addUnbinder:()=>D,batch:()=>Zr,collectRefs:()=>gt,computeMany:()=>Kr,computeRef:()=>Wr,computed:()=>zr,createApp:()=>Fr,createComponent:()=>qr,endBatch:()=>wn,entangle:()=>St,flatten:()=>Q,getBindData:()=>ye,html:()=>vn,isDeepRef:()=>Le,isRaw:()=>je,isRef:()=>y,markRaw:()=>Gr,observe:()=>S,observeMany:()=>Xr,observerCount:()=>Yr,onMounted:()=>eo,onUnmounted:()=>G,pause:()=>Vt,persist:()=>Jr,raw:()=>Qr,ref:()=>Re,removeNode:()=>j,resume:()=>$t,silence:()=>yt,sref:()=>z,startBatch:()=>Sn,toFragment:()=>ke,toJsonTemplate:()=>Ge,trigger:()=>F,unbind:()=>oe,unref:()=>P,useScope:()=>vt,warningHandler:()=>Yt,watchEffect:()=>Ae});module.exports=co(vs);var H=t=>typeof t=="function",W=t=>typeof t=="string",Mn=t=>typeof t=="undefined",te=t=>t==null||typeof t=="undefined",$=t=>typeof t!="string"||!(t!=null&&t.trim()),po=Object.prototype.toString,Gt=t=>po.call(t),he=t=>Gt(t)==="[object Map]",Z=t=>Gt(t)==="[object Set]",Jt=t=>Gt(t)==="[object Date]",Qe=t=>typeof t=="symbol",E=Array.isArray,N=t=>t!==null&&typeof t=="object";var Ln={0:"App root element is missing",1:t=>`${t} component template cannot be found.`,2:"Use composables in scope. usage: useScope(() => new MyApp()).",3:t=>`${t} requires ref source argument`,4:"computed is readonly.",5:"ref is readonly."},_=(t,...e)=>{let n=Ln[t];return new Error(H(n)?n.call(Ln,...e):n)};var De=Symbol(":regor");var ye=t=>{let e=t[De];if(e)return e;let n={unbinders:[],data:{}};return t[De]=n,n};var D=(t,e)=>{ye(t).unbinders.push(e)};var ct=[],kn=()=>{let t={onMounted:[],onUnmounted:[]};return ct.push(t),t},we=t=>{let e=ct[ct.length-1];if(!e&&!t)throw _(2);return e},In=t=>{let e=we();return t&&Xt(t),ct.pop(),e},Qt=Symbol("csp"),Xt=t=>{let e=t,n=e[Qt];if(n){let r=we();if(n===r)return;r.onMounted.length>0&&n.onMounted.push(...r.onMounted),r.onUnmounted.length>0&&n.onUnmounted.push(...r.onUnmounted);return}e[Qt]=we()},pt=t=>t[Qt];var G=(t,e)=>{var n;(n=we(e))==null||n.onUnmounted.push(t)};var ft=Symbol("ref"),J=Symbol("sref"),lt=Symbol("raw");var y=t=>(t==null?void 0:t[J])===1;var S=(t,e,n)=>{if(!y(t))throw _(3,"observe");n&&e(t());let o=t(void 0,void 0,0,e);return G(o,!0),o};var oe=t=>{let e=[t];for(;e.length>0;){let n=e.shift();fo(n);let r=n.childNodes;if(r)for(let o of r)e.push(o)}},fo=t=>{let e=t[De];if(e){for(let n of e.unbinders)n();e.unbinders.splice(0),delete t[De]}};var j=t=>{t.remove(),setTimeout(()=>oe(t),1)};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]})},U=(t,...e)=>{let n=Dn[t],r=H(n)?n.call(Dn,...e):n,o=Yt.warning;o&&(W(r)?o(r):o(r,...r.args))},Yt={warning:console.warn};var ut={},mt={},Un=1,Hn=t=>{let e=(Un++).toString();return ut[e]=t,mt[e]=0,e},Zt=t=>{mt[t]+=1},en=t=>{--mt[t]===0&&(delete ut[t],delete mt[t])},_n=t=>ut[t],tn=()=>Un!==1&&Object.keys(ut).length>0,Xe="r-switch",lo=t=>{let e=t.filter(r=>Oe(r)).map(r=>[...r.querySelectorAll("[r-switch]")].map(o=>o.getAttribute(Xe))),n=new Set;return e.forEach(r=>{r.forEach(o=>o&&n.add(o))}),[...n]},Ue=(t,e)=>{if(!tn())return;let n=lo(e);n.length!==0&&(n.forEach(Zt),D(t,()=>{n.forEach(en)}))};var nn=(t,e,n,r)=>{let o=[];for(let s of t){let i=s.cloneNode(!0);n.insertBefore(i,r),o.push(i)}be(e,o)},rn=Symbol("r-if"),Bn=Symbol("r-else"),Pn=t=>t[Bn]===1,dt=class{constructor(e){m(this,"p");m(this,"P");m(this,"q");m(this,"K");m(this,"z");m(this,"b");m(this,"T");this.p=e,this.P=e.o.f.if,this.q=Be(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}He(e,n){let r=e.parentElement;for(;r!==null&&r!==document.documentElement;){if(r.hasAttribute(n))return!0;r=r.parentElement}return!1}M(e){let n=e.hasAttribute(this.P),r=ge(e,this.q);for(let o of r)this.x(o);return n}W(e){return e[rn]?!0:(e[rn]=!0,ge(e,this.q).forEach(n=>n[rn]=!0),!1)}x(e){if(e.hasAttribute(this.T)||this.W(e)||this.He(e,this.b))return;let n=e.getAttribute(this.P);if(!n){U(0,this.P,e);return}e.removeAttribute(this.P),this.k(e,n)}B(e,n,r){let o=_e(e),s=e.parentNode,i=document.createComment(`__begin__ :${n}${r!=null?r:""}`);s.insertBefore(i,e),Ue(i,o),o.forEach(c=>{j(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}}ie(e,n){if(!e)return[];let r=e.nextElementSibling;if(e.hasAttribute(this.K)){e.removeAttribute(this.K);let{nodes:o,parent:s,commentBegin:i,commentEnd:a}=this.B(e,"else");return[{mount:()=>{nn(o,this.p,s,a)},unmount:()=>{pe(i,a)},isTrue:()=>!0,isMounted:!1}]}else{let o=e.getAttribute(this.z);if(!o)return[];e.removeAttribute(this.z);let{nodes:s,parent:i,commentBegin:a,commentEnd:c}=this.B(e,"elseif",` => ${o} `),p=this.p.h.C(o),f=p.value,l=this.ie(r,n),u=[];D(a,()=>{p.stop();for(let C of u)C();u.length=0});let d=S(f,n);return u.push(d),[{mount:()=>{nn(s,this.p,i,c)},unmount:()=>{pe(a,c)},isTrue:()=>!!f()[0],isMounted:!1}].concat(l)}}k(e,n){let r=e.nextElementSibling,{nodes:o,parent:s,commentBegin:i,commentEnd:a}=this.B(e,"if",` => ${n} `),c=this.p.h.C(n),p=c.value,f=!1,l=this.p.h,u=l.V(),h=()=>{l.v(u,()=>{if(p()[0])f||(nn(o,this.p,s,a),f=!0),d.forEach(b=>{b.unmount(),b.isMounted=!1});else{pe(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.ie(r,h),C=[];D(i,()=>{c.stop();for(let b of C)b();C.length=0}),h();let x=S(p,h);C.push(x)}};var _e=t=>{let e=se(t)?t.content.childNodes:[t];return Array.from(e).filter(n=>{let r=n==null?void 0:n.tagName;return r!=="SCRIPT"&&r!=="STYLE"})},be=(t,e)=>{for(let n of e)!Pn(n)&&t.G(n)},ge=(t,e)=>{var r;let n=t.querySelectorAll(e);return(r=t.matches)!=null&&r.call(t,e)?[t,...n]:n},se=t=>t instanceof HTMLTemplateElement,Oe=t=>t.nodeType===Node.ELEMENT_NODE,Ye=t=>t.nodeType===Node.ELEMENT_NODE,jn=t=>t instanceof HTMLSlotElement,fe=t=>se(t)?t.content.childNodes:t.childNodes,pe=(t,e)=>{let n=t.nextSibling;for(;n!=null&&n!==e;){let r=n.nextSibling;j(n),n=r}},Te=(t,e)=>{Object.defineProperty(t,"value",{get(){return t()},set(n){if(e)throw new Error("value is readonly.");return t(n)},enumerable:!0,configurable:!1})},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},Be=t=>`[${CSS.escape(t)}]`,ht=(t,e)=>(t.startsWith("@")&&(t=e.f.on+":"+t.slice(1)),t.includes("[")&&(t=t.replace(/[[\]]/g,e.f.dynamic)),t),on=t=>{let e=Object.create(null);return n=>e[n]||(e[n]=t(n))},mo=/-(\w)/g,B=on(t=>t&&t.replace(mo,(e,n)=>n?n.toUpperCase():"")),uo=/\B([A-Z])/g,Pe=on(t=>t&&t.replace(uo,"-$1").toLowerCase()),Ze=on(t=>t&&t.charAt(0).toUpperCase()+t.slice(1));var ne=[],$n=t=>{var e;ne.length!==0&&((e=ne[ne.length-1])==null||e.add(t))},Ae=t=>{if(!t)return()=>{};let e={stop:()=>{}};return ho(t,e),G(()=>e.stop(),!0),e.stop},ho=(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=S(i,()=>{o(),Ae(t)});n.push(a)}}finally{ne.pop()}},yt=t=>{let e=ne.length,n=e>0&&ne[e-1];try{return n&&ne.push(null),t()}finally{n&&ne.pop()}},gt=t=>{try{let e=new Set;return ne.push(e),{value:t(),refs:[...e]}}finally{ne.pop()}};var je=t=>!!t&&t[lt]===1;var F=(t,e,n)=>{if(!y(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)F(s,e,!0);else if(he(o))for(let s of o)F(s[0],e,!0),F(s[1],e,!0);if(N(o))for(let s in o)F(o[s],e,!0)}};function yo(t,e,n){Object.defineProperty(t,e,{value:n,enumerable:!1,writable:!0,configurable:!0})}var Ve=(t,e,n)=>{n.forEach(function(r){let o=t[r];yo(e,r,function(...i){let a=o.apply(this,i),c=this[J];for(let p of c)F(p);return a})})},bt=(t,e)=>{Object.defineProperty(t,Symbol.toStringTag,{value:e,writable:!1,enumerable:!1,configurable:!0})};var Fn=Array.prototype,sn=Object.create(Fn),go=["push","pop","shift","unshift","splice","sort","reverse"];Ve(Fn,sn,go);var qn=Map.prototype,Tt=Object.create(qn),bo=["set","clear","delete"];bt(Tt,"Map");Ve(qn,Tt,bo);var zn=Set.prototype,Et=Object.create(zn),To=["add","clear","delete"];bt(Et,"Set");Ve(zn,Et,To);var Ne={},z=t=>{if(y(t)||je(t))return t;let e={auto:!0,_value:t},n=c=>N(c)?J in c?!0:E(c)?(Object.setPrototypeOf(c,sn),!0):Z(c)?(Object.setPrototypeOf(c,Et),!0):he(c)?(Object.setPrototypeOf(c,Tt),!0):!1:!1,r=n(t),o=new Set,s=(c,p)=>{if(Ne.set){Ne.set.add(a);return}o.size!==0&&yt(()=>{for(let f of[...o.keys()])o.has(f)&&f(c,p)})},i=c=>{let p=c[J];p||(c[J]=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||y(f)&&(f=f(),e._value===f)?f:(n(f)&&i(f),e._value=f,e.auto&&s(f,l),e._value):($n(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[J]=1,Te(a,!1),r&&i(t),a};var P=t=>y(t)?t():t;var et=class{constructor(e){m(this,"E",[]);m(this,"H",new Map);m(this,"J");this.J=e}get S(){return this.E.length}Q(e){let n=this.J(e.value);n&&this.H.set(n,e)}X(e){var r;let n=this.J((r=this.E[e])==null?void 0:r.value);n&&this.H.delete(n)}static _e(e,n){return{items:[],index:e,value:n,order:-1}}w(e){e.order=this.S,this.E.push(e),this.Q(e)}je(e,n){let r=this.S;for(let o=e;o<r;++o)this.E[o].order=o+1;n.order=e,this.E.splice(e,0,n),this.Q(n)}I(e){return this.E[e]}Y(e,n){this.X(e),this.E[e]=n,this.Q(n),n.order=e}ae(e){this.X(e),this.E.splice(e,1);let n=this.S;for(let r=e;r<n;++r)this.E[r].order=r}pe(e){let n=this.S;for(let r=e;r<n;++r)this.X(r);this.E.splice(e)}bt(e){return this.H.has(e)}Fe(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"),Rt=class Rt{constructor(e){m(this,"p");m(this,"b");m(this,"Z");m(this,"T");this.p=e,this.b=e.o.f.for,this.Z=Be(this.b),this.T=e.o.f.pre}M(e){let n=e.hasAttribute(this.b),r=ge(e,this.Z);for(let o of r)this.$e(o);return n}W(e){return e[an]?!0:(e[an]=!0,ge(e,this.Z).forEach(n=>n[an]=!0),!1)}$e(e){if(e.hasAttribute(this.T)||this.W(e))return;let n=e.getAttribute(this.b);if(!n){U(0,this.b,e);return}e.removeAttribute(this.b),this.qe(e,n)}ce(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))}qe(e,n){var ot;let r=this.Ke(n);if(!(r!=null&&r.list)){U(1,this.b,n,e);return}let o=this.p.o.f.key,s=this.p.o.f.keyBind,i=(ot=e.getAttribute(o))!=null?ot:e.getAttribute(s);e.removeAttribute(o),e.removeAttribute(s);let a=i?v=>{var A;return P((A=P(v))==null?void 0:A[i])}:v=>v,c=(v,A)=>a(v)===a(A),p=_e(e),f=e.parentNode;if(!f)return;let l=`${this.b} => ${n}`,u=new Comment(`__begin__ ${l}`);f.insertBefore(u,e),Ue(u,p),p.forEach(v=>{j(v)}),e.remove();let h=new Comment(`__end__ ${l}`);f.insertBefore(h,u.nextSibling);let d=this.p,C=d.h,I=C.V(),x=(v,A,q)=>{let w=r.createContext(A,v),Y=et._e(w.index,A);return C.v(I,()=>{C.w(w.ctx);let re=q.previousSibling,Ie=[];for(let g of p){let M=g.cloneNode(!0);f.insertBefore(M,q),Ie.push(M)}for(be(d,Ie),re=re.nextSibling;re!==q;)Y.items.push(re),re=re.nextSibling}),Y},b=(v,A)=>{let q=O.I(v).items,w=q[q.length-1].nextSibling;for(let Y of q)j(Y);O.Y(v,x(v,A,w))},L=(v,A)=>{O.w(x(v,A,h))},X=v=>{for(let A of O.I(v).items)j(A)},ee=v=>{let A=O.S;for(let q=v;q<A;++q)O.I(q).index(q)},Je=v=>{let A=O.S;H(v)&&(v=v());let q=P(v[0]);if(E(q)&&q.length===0){pe(u,h),O.pe(0);return}let w=0,Y=Number.MAX_SAFE_INTEGER,re=A,Ie=this.p.o.forGrowThreshold,g=()=>O.S<re+Ie;for(let T of this.ce(v[0])){let V=()=>{if(w<A){let K=O.I(w++);if(c(K.value,T))return;let R=O.Fe(a(T));if(R>=w&&R-w<10){if(--w,Y=Math.min(Y,w),X(w),O.ae(w),--A,R>w+1)for(let k=w;k<R-1&&k<A&&!c(O.I(w).value,T);)++k,X(w),O.ae(w),--A;V();return}g()?(O.je(w-1,x(w,T,O.I(w-1).items[0])),Y=Math.min(Y,w-1),++A):b(w-1,T)}else L(w++,T)};V()}let M=w;for(A=O.S;w<A;)X(w++);O.pe(M),ee(Y)},zt=()=>{de=S(nt,Je)},tt=()=>{ue.stop(),de()},ue=C.C(r.list),nt=ue.value,de,rt=0,O=new et(a);for(let v of this.ce(nt()[0]))O.w(x(rt++,v,h));D(u,tt),zt()}Ke(e){var c,p;let n=Rt.ze.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&&((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=P(f);if(!a&&r.length===1)u[r[0]]=f;else if(E(h)){let C=0;for(let I of r)u[I]=h[C++]}else for(let C of r)u[C]=h[C];let d={ctx:u,index:z(-1)};return s&&(d.index=u[s.substring(1)]=z(l)),d}}}};m(Rt,"ze",/\{?\[?\(?([^)}\]]+)\)?\]?\}?([^)]+)?\s+\b(?:in|of)\b\s+([^\s]+)\s*/);var Ct=Rt;var Eo=(t,e)=>{for(let n of t){let r=n.cloneNode(!0);e.appendChild(r)}},xt=class{constructor(e){m(this,"p");m(this,"D");m(this,"fe");this.p=e,this.D=e.o.f.is,this.fe=Be(this.D)+", [is]"}M(e){let n=e.hasAttribute(this.D),r=ge(e,this.fe);for(let o of r)this.x(o);return n}x(e){let n=e.getAttribute(this.D);if(!n){if(n=e.getAttribute("is"),!n||!n.startsWith("regor:"))return;n=`'${n.slice(6)}'`,e.removeAttribute("is")}e.removeAttribute(this.D),this.k(e,n)}B(e,n){let r=_e(e),o=e.parentNode,s=document.createComment(`__begin__ dynamic ${n!=null?n:""}`);o.insertBefore(s,e),Ue(s,r),r.forEach(a=>{j(a)}),e.remove();let i=document.createComment(`__end__ dynamic ${n!=null?n:""}`);return o.insertBefore(i,s.nextSibling),{nodes:r,parent:o,commentBegin:s,commentEnd:i}}k(e,n){let{nodes:r,parent:o,commentBegin:s,commentEnd:i}=this.B(e,` => ${n} `),a=this.p.h.C(n),c=a.value,p=this.p.h,f=p.V(),l={name:""},u=se(e)?r:[...r[0].childNodes],h=()=>{p.v(f,()=>{let x=c()[0];if(N(x)&&(x=x.name),!W(x)||$(x)){pe(s,i);return}if(l.name===x)return;pe(s,i);let b=document.createElement(x);for(let L of e.getAttributeNames())L!==this.D&&b.setAttribute(L,e.getAttribute(L));Eo(u,b),o.insertBefore(b,i),this.p.G(b),l.name=x})},d=[];D(s,()=>{a.stop();for(let x of d)x();d.length=0}),h();let I=S(c,h);d.push(I)}};var Kn={collectRefObj:!0,onBind:(t,e)=>S(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&&(y(p)?p(c):o[a]=c)}},!0)};var Wn={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&&(y(c)?c(a):r[i]=a)}return()=>{}}};var Ee=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 $e=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,"disableSwitch",!1);m(this,"onAutoPropsAssigned");m(this,"le");m(this,"emit",(e,n)=>{this.le.dispatchEvent(new CustomEvent(e,{detail:n}))});this.props=e,this.le=n,this.ctx=r,this.start=o,this.end=s}unmount(){let e=this.start.nextSibling,n=this.end;for(;e&&e!==n;)j(e),e=e.nextSibling;Ee(this)}};var cn=Symbol("scope"),vt=t=>{try{kn();let e=t();Xt(e);let n={context:e,unmount:()=>Ee(e),[cn]:1};return n[cn]=1,n}finally{In()}},Gn=t=>N(t)?cn in t:!1;var St=(t,e)=>{if(t===e)return()=>{};let n=S(t,o=>e(o)),r=S(e,o=>t(o));return e(t()),()=>{n(),r()}};var wt=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 Jn={collectRefObj:!0,onBind:(t,e,n,r,o,s)=>{if(!r)return()=>{};let i=B(r);return S(e.value,()=>{var l;let c=(l=e.refs[0])!=null?l:e.value()[0],p=e.context,f=p[r];f!==c&&(y(f)?f(c):p[i]=c)},!0)}};var Ot=class{constructor(e){m(this,"p");m(this,"ue");this.p=e,this.ue=e.o.f.inherit}M(e){this.We(e)}We(e){var f;let n=this.p,r=n.h,o=n.o.me,s=n.o.de,i=r.Ge(),a=[...o.keys(),...Object.keys(i),...[...o.keys()].map(Pe),...[...Object.keys(i)].map(Pe)].join(",");if($(a))return;let c=e.querySelectorAll(a),p=(f=e.matches)!=null&&f.call(e,a)?[e,...c]:c;for(let l of p){if(l.hasAttribute(n.T))continue;let u=l.parentNode;if(!u)continue;let h=l.nextSibling,d=B(l.tagName).toUpperCase(),C=i[d],I=C!=null?C:s.get(d);if(!I)continue;let x=I.template.element;if(!x)continue;let b=l.parentElement;if(!b)continue;let L=new Comment(" begin component: "+l.tagName),X=new Comment(" end component: "+l.tagName);b.insertBefore(L,l),l.remove();let ee=n.o.f.props,Je=n.o.f.propsOnce,zt=n.o.f.bind,tt=(g,M)=>{let T={},V=g.hasAttribute(ee),K=g.hasAttribute(Je);return r.v(M,()=>{r.w(T),V&&n.x(Kn,g,ee),K&&n.x(Wn,g,Je);let R=I.props;if(!R||R.length===0)return;R=R.map(B);for(let ve of R.concat(R.map(Pe))){let ae=g.getAttribute(ve);ae!==null&&(T[B(ve)]=ae,g.removeAttribute(ve))}let k=n.ee.ye(g,!1);for(let[ve,ae]of k.entries()){let[Se,Kt]=ae.terms;Kt&&R.includes(B(Kt))&&(Se!=="."&&Se!==":"&&Se!==zt||n.x(Jn,g,ve,!0,Kt,ae.flags))}}),T},ue=[...r.V()],nt=()=>{var V;let g=tt(l,ue),M=new $e(g,l,ue,L,X),T=vt(()=>{var K;return(K=I.context(M))!=null?K:{}}).context;if(M.autoProps){for(let[K,R]of Object.entries(g))if(K in T){let k=T[K];if(k===R)continue;M.entangle&&y(k)&&y(R)?D(L,St(R,k)):y(k)?k(R):T[K]=P(R)}else T[K]=R;(V=M.onAutoPropsAssigned)==null||V.call(M)}return{componentCtx:T,head:M}},{componentCtx:de,head:rt}=nt(),O=[...fe(x)],ot=O.length,v=l.childNodes.length===0,A=g=>{let M=g.parentElement;if(v){for(let R of[...g.childNodes])M.insertBefore(R,g);return}let T=g.name;$(T)&&(T=g.getAttributeNames().filter(R=>R.startsWith("#"))[0],$(T)?T="default":T=T.substring(1));let V=l.querySelector(`template[name='${T}'], template[\\#${T}]`);!V&&T==="default"&&(V=l.querySelector("template:not([name])"),V&&V.getAttributeNames().filter(R=>R.startsWith("#")).length>0&&(V=null));let K=R=>{rt.disableSwitch||r.v(ue,()=>{r.w(de);let k=tt(g,r.V());r.v(ue,()=>{r.w(k);let ve=r.V(),ae=Hn(ve);for(let Se of R)Oe(Se)&&(Se.setAttribute(Xe,ae),Zt(ae),D(Se,()=>{en(ae)}))})})};if(V){let R=[...fe(V)];for(let k of R)M.insertBefore(k,g);K(R)}else{if(T!=="default"){for(let k of[...fe(g)])M.insertBefore(k,g);return}let R=[...fe(l)].filter(k=>!se(k));for(let k of R)M.insertBefore(k,g);K(R)}},q=g=>{if(!Oe(g))return;let M=g.querySelectorAll("slot");if(jn(g)){A(g),g.remove();return}for(let T of M)A(T),T.remove()};(()=>{for(let g=0;g<ot;++g)O[g]=O[g].cloneNode(!0),u.insertBefore(O[g],h),q(O[g])})(),b.insertBefore(X,h);let Y=()=>{if(!I.inheritAttrs)return;let g=O.filter(T=>T.nodeType===Node.ELEMENT_NODE);g.length>1&&(g=g.filter(T=>T.hasAttribute(this.ue)));let M=g[0];if(M)for(let T of l.getAttributeNames()){if(T===ee||T===Je)continue;let V=l.getAttribute(T);if(T==="class")M.classList.add(...V.split(" "));else if(T==="style"){let K=M.style,R=l.style;for(let k of R)K.setProperty(k,R.getPropertyValue(k))}else M.setAttribute(ht(T,n.o),V)}},re=()=>{for(let g of l.getAttributeNames())!g.startsWith("@")&&!g.startsWith(n.o.f.on)&&l.removeAttribute(g)},Ie=()=>{Y(),re(),r.w(de),n.he(l,!1),de.$emit=rt.emit,be(n,O),D(l,()=>{Ee(de)}),D(L,()=>{oe(l)}),wt(de)};r.v(ue,Ie)}}};var pn=class{constructor(e){m(this,"name");m(this,"terms",[]);m(this,"flags",[]);m(this,"elements",[]);this.name=e,this.C()}C(){let e=this.name,n=e.startsWith(".");n&&(e=":"+e.slice(1));let r=e.indexOf("."),o=this.terms=(r<0?e:e.substring(0,r)).split(/[:@]/);if($(o[0])&&(o[0]=n?".":e[0]),r>=0){let s=this.flags=e.slice(r+1).split(".");if(s.includes("camel")){let i=o.length-1;o[i]=B(o[i])}s.includes("prop")&&(o[0]=".")}}},At=class{constructor(e){m(this,"p");m(this,"ge");this.p=e,this.ge=e.o.Je()}ye(e,n){let r=new Map;if(!Ye(e))return r;let o=this.ge,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 pn(p)),r.get(p).elements.push(a)};if(s(e),!n)return r;let i=e.querySelectorAll("*");for(let a of i)s(a);return r}};var Nt={};var Mt=class{constructor(e){m(this,"h");m(this,"be");m(this,"Te");m(this,"xe");m(this,"Ee");m(this,"ee");m(this,"o");m(this,"T");m(this,"Re");this.h=e,this.o=e.o,this.Te=new Ct(this),this.be=new dt(this),this.xe=new xt(this),this.Ee=new Ot(this),this.ee=new At(this),this.T=this.o.f.pre,this.Re=this.o.f.dynamic}Qe(e){let n=se(e)?[e]:e.querySelectorAll("template");for(let r of n){if(r.hasAttribute(this.T))continue;let o=r.parentNode;if(!o)continue;let s=r.nextSibling;if(r.remove(),!r.content)continue;let i=[...r.content.childNodes];for(let a of i)o.insertBefore(a,s);be(this,i)}}G(e){e.nodeType!==Node.ELEMENT_NODE||e.hasAttribute(this.T)||this.be.M(e)||this.Te.M(e)||this.xe.M(e)||(this.Ee.M(e),this.Qe(e),this.he(e,!0))}he(e,n){var s;let r=this.ee.ye(e,n),o=this.o._;for(let[i,a]of r.entries()){let[c,p]=a.terms,f=(s=o[i])!=null?s:o[c];if(!f){console.error("directive not found:",c);continue}a.elements.forEach(l=>{this.x(f,l,i,!1,p,a.flags)})}}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(Xe);return f||(p.parentElement?c(p.parentElement):null)};if(tn()){let p=c(n);if(p){this.h.v(_n(p),()=>{this.k(e,n,a,s,i)});return}}this.k(e,n,a,s,i)}Xe(e,n,r){if(e!==Nt)return!1;if($(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,D(i,()=>{j(n)}),o.appendChild(n)}return!0}k(e,n,r,o,s){var I;if(n.nodeType!==Node.ELEMENT_NODE||r==null||this.Xe(e,n,r))return;let i=this.h.C(r,e.isLazy,e.isLazyKey,e.collectRefObj,e.once),a=[];D(n,()=>{i.stop(),f==null||f.stop();for(let x of a)x();a.length=0});let p=Vn(o,this.Re),f;p&&(f=this.h.C(B(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),C=()=>{if(!e.onChange)return;let x=S(i.value,b=>{var ee;let L=l,X=h;(ee=e.onChange)==null||ee.call(e,n,u(),L,d(),X,s)});if(a.push(x),f){let b=S(f.value,L=>{var ee;let X=h;(ee=e.onChange)==null||ee.call(e,n,u(),X,d(),X,s)});a.push(b)}};e.once||C(),e.onBind&&a.push(e.onBind(n,i,r,o,f,s)),(I=e.onChange)==null||I.call(e,n,u(),void 0,d(),void 0,s)}};var Co=9,Ro=10,xo=13,vo=32,Ce=46,Lt=44,So=39,wo=34,kt=40,Fe=41,It=91,Dt=93,fn=63,Oo=59,Qn=58,Ao=123,Ut=125,mn=43,No=45,Xn=96,Yn=47,Mo=92,Zn=[2,3],er=[mn,No],ir={"-":1,"!":1,"~":1,"+":1,new:1},ar={"=":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},ze=Nn(at({"=>":2},ar),{"||":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}),cr=Object.keys(ar),Lo=new Set(cr),Ht=new Set;Ht.add("=>");cr.forEach(t=>Ht.add(t));var ko=new Set(["$","_"]),tr={true:!0,false:!1,null:null},Io="this";function pr(t){return Math.max(0,...Object.keys(t).map(e=>e.length))}var Do=pr(ir),Uo=pr(ze),Ke="Expected ",Me="Unexpected ",dn="Unclosed ",Ho=Ke+":",nr=Ke+"expression",_o="missing }",Bo=Me+"object property",Po=dn+"(",rr=Ke+"comma",or=Me+"token ",jo=Me+"period",ln=Ke+"expression after ",Vo="missing unaryOp argument",$o=dn+"[",Fo=Ke+"exponent (",qo="Variable names cannot start with a number (",zo=dn+'quote after "';var qe=t=>t>=48&&t<=57,sr=t=>ze[t]||0,un=class{constructor(e){m(this,"Ye",{0:[this.Ze],1:[this.et,this.tt,this.nt],2:[this.rt,this.ot,this.st,this.Ce,this.it],3:[this.at,this.pt,this.ct]});m(this,"r");m(this,"e");this.r=e,this.e=0}get N(){return this.r.charAt(this.e)}get l(){return this.r.charCodeAt(this.e)}u(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 ze)||ko.has(n)}te(e){return this.U(e)||qe(e)}i(e){return new Error(`${e} at character ${this.e}`)}L(e,n,r){let o=this.Ye[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===vo||e===Co||e===Ro||e===xo;)e=n.charCodeAt(++r);this.e=r}parse(){let e=this.ne();return e.length===1?e[0]:{type:0,body:e}}ne(e){let n=[];for(;this.e<this.r.length;){let r=this.l;if(r===Oo||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.N+'"')}}}return n}O(){var n;let e=(n=this.L(0,1))!=null?n:this.ve();return this.y(),this.L(1,0,e)}re(){this.y();let e=this.e,n=this.r,r=n.substr(e,Uo),o=r.length;for(;o>0;){if(r in ze&&(!this.U(this.l)||e+r.length<n.length&&!this.te(n.charCodeAt(e+r.length))))return e+=o,this.e=e,r;r=r.substr(0,--o)}return!1}ve(){let e,n,r,o,s,i,a,c;if(s=this.j(),!s||(n=this.re(),!n))return s;if(o={value:n,prec:sr(n),right_a:Ht.has(n)},i=this.j(),!i)throw this.i(ln+n);let p=[s,o,i];for(;n=this.re();){if(r=sr(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.j(),!e)throw this.i(ln+c);p.push(o,e)}for(a=p.length-1,e=p[a];a>1;)e={type:8,operator:p[a-1].value,left:p[a-2],right:e},a-=2;return e}j(){let e,n,r;if(this.y(),r=this.L(2,1),r)return this.L(3,0,r);let o=this.l;if(qe(o)||o===Ce)return this.ft();if(o===So||o===wo)r=this.lt();else if(o===It)r=this.ut();else{for(e=this.r.substr(this.e,Do),n=e.length;n>0;){if(Object.prototype.hasOwnProperty.call(ir,e)&&(!this.U(this.l)||this.e+e.length<this.r.length&&!this.te(this.r.charCodeAt(this.e+e.length)))){this.e+=n;let s=this.j();if(!s)throw this.i(Vo);return this.L(3,0,{type:7,operator:e,argument:s})}e=e.substr(0,--n)}this.U(o)?(r=this.oe(),r.name in tr?r={type:4,value:tr[r.name],raw:r.name}:r.name===Io&&(r={type:5})):o===kt&&(r=this.mt())}return r?(r=this.F(r),this.L(3,0,r)):this.L(3,0,!1)}F(e){this.y();let n=this.l;for(;n===Ce||n===It||n===kt||n===fn;){let r;if(n===fn){if(this.r.charCodeAt(this.e+1)!==Ce)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($o);this.e++}else n===kt?e={type:6,arguments:this.Se(Fe),callee:e}:(n===Ce||r)&&(r&&this.e--,this.y(),e={type:3,computed:!1,object:e,property:this.oe()});r&&(e.optional=!0),this.y(),n=this.l}return e}ft(){let e="",n;for(;qe(this.l);)e+=this.r.charAt(this.e++);if(this.u(Ce))for(e+=this.r.charAt(this.e++);qe(this.l);)e+=this.r.charAt(this.e++);if(n=this.N,n==="e"||n==="E"){for(e+=this.r.charAt(this.e++),n=this.N,(n==="+"||n==="-")&&(e+=this.r.charAt(this.e++));qe(this.l);)e+=this.r.charAt(this.e++);if(!qe(this.r.charCodeAt(this.e-1)))throw this.i(Fo+e+this.N+")")}let r=this.l;if(this.U(r))throw this.i(qo+e+this.N+")");if(r===Ce||e.length===1&&e.charCodeAt(0)===Ce)throw this.i(jo);return{type:4,value:parseFloat(e),raw:e}}lt(){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(zo+e+'"');return{type:4,value:e,raw:this.r.substring(n,this.e)}}
|
|
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 `")}at(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}it(e){if(!this.u(Yn))return;let n=++this.e,r=!1;for(;this.e<this.r.length;){if(this.l===Yn&&!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.N;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.u(It)?r=!0:r&&this.u(Dt)&&(r=!1),this.e+=this.u(Mo)?2:1}throw this.i("Unclosed Regex")}},fr=t=>new un(t).parse();var Ko={"=>":(t,e)=>{},"=":(t,e)=>{},"*=":(t,e)=>{},"**=":(t,e)=>{},"/=":(t,e)=>{},"%=":(t,e)=>{},"+=":(t,e)=>{},"-=":(t,e)=>{},"<<=":(t,e)=>{},">>=":(t,e)=>{},">>>=":(t,e)=>{},"&=":(t,e)=>{},"^=":(t,e)=>{},"|=":(t,e)=>{},"||":(t,e)=>t()||e(),"??":(t,e)=>{var n;return(n=t())!=null?n:e()},"&&":(t,e)=>t()&&e(),"|":(t,e)=>t|e,"^":(t,e)=>t^e,"&":(t,e)=>t&e,"==":(t,e)=>t==e,"!=":(t,e)=>t!=e,"===":(t,e)=>t===e,"!==":(t,e)=>t!==e,"<":(t,e)=>t<e,">":(t,e)=>t>e,"<=":(t,e)=>t<=e,">=":(t,e)=>t>=e,in:(t,e)=>t in e,"<<":(t,e)=>t<<e,">>":(t,e)=>t>>e,">>>":(t,e)=>t>>>e,"+":(t,e)=>t+e,"-":(t,e)=>t-e,"*":(t,e)=>t*e,"/":(t,e)=>t/e,"%":(t,e)=>t%e,"**":(t,e)=>it(t,e)},Wo={"-":t=>-t,"+":t=>+t,"!":t=>!t,"~":t=>~t,new:t=>t},dr=t=>{if(!(t!=null&&t.some(ur)))return t;let e=[];return t.forEach(n=>ur(n)?e.push(...n):e.push(n)),e},lr=(...t)=>dr(t),hn=(t,e)=>{if(!t)return e;let n=Object.create(e!=null?e:{});return n.$event=t,n},Go={"++":(t,e)=>{let n=t[e];if(y(n)){let r=n();return n(++r),r}return++t[e]},"--":(t,e)=>{let n=t[e];if(y(n)){let r=n();return n(--r),r}return--t[e]}},Jo={"++":(t,e)=>{let n=t[e];if(y(n)){let r=n();return n(r+1),r}return t[e]++},"--":(t,e)=>{let n=t[e];if(y(n)){let r=n();return n(r-1),r}return t[e]--}},mr={"=":(t,e,n)=>{let r=t[e];return y(r)?r(n):t[e]=n},"+=":(t,e,n)=>{let r=t[e];return y(r)?r(r()+n):t[e]+=n},"-=":(t,e,n)=>{let r=t[e];return y(r)?r(r()-n):t[e]-=n},"*=":(t,e,n)=>{let r=t[e];return y(r)?r(r()*n):t[e]*=n},"/=":(t,e,n)=>{let r=t[e];return y(r)?r(r()/n):t[e]/=n},"%=":(t,e,n)=>{let r=t[e];return y(r)?r(r()%n):t[e]%=n},"**=":(t,e,n)=>{let r=t[e];return y(r)?r(it(r(),n)):t[e]=it(t[e],n)},"<<=":(t,e,n)=>{let r=t[e];return y(r)?r(r()<<n):t[e]<<=n},">>=":(t,e,n)=>{let r=t[e];return y(r)?r(r()>>n):t[e]>>=n},">>>=":(t,e,n)=>{let r=t[e];return y(r)?r(r()>>>n):t[e]>>>=n},"|=":(t,e,n)=>{let r=t[e];return y(r)?r(r()|n):t[e]|=n},"&=":(t,e,n)=>{let r=t[e];return y(r)?r(r()&n):t[e]&=n},"^=":(t,e,n)=>{let r=t[e];return y(r)?r(r()^n):t[e]^=n}},_t=(t,e)=>H(t)?t.bind(e):t,yn=class{constructor(e,n,r,o,s){m(this,"m");m(this,"Oe");m(this,"Ae");m(this,"Me");m(this,"A");m(this,"Ne");m(this,"Le");this.m=E(e)?e:[e],this.Oe=n,this.Ae=r,this.Me=o,this.Le=!!s}ke(e,n){if(n&&e in n)return n;for(let r of this.m)if(e in r)return r}2(e,n,r){let o=e.name;if(o==="$root")return this.m[this.m.length-1];if(o==="$parent")return this.m[1];if(o==="$ctx")return[...this.m];if(r&&o in r)return this.A=r[o],_t(P(r[o]),r);for(let i of this.m)if(o in i)return this.A=i[o],_t(P(i[o]),i);let s=this.Oe;if(s&&o in s)return this.A=s[o],_t(P(s[o]),s)}5(e,n,r){return this.m[0]}0(e,n,r){return this.Ve(n,r,lr,...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.se(e,n,r),i=o==null?void 0:o[s];return this.A=i,_t(P(i),o)}4(e,n,r){return e.value}6(e,n,r){let o=(i,...a)=>H(i)?i(...dr(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,Wo[e.operator],e.argument)}8(e,n,r){let o=Ko[e.operator];switch(e.operator){case"||":case"&&":case"??":return o(()=>this.g(e.left,n,r),()=>this.g(e.right,n,r))}return this.R(n,r,o,e.left,e.right)}9(e,n,r){return this.Ve(++n,r,lr,...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.Me)!=null?f:()=>!1,a=n===0&&this.Le,c=l=>this.Ie(a,e.key,n,hn(l,r)),p=l=>this.Ie(a,e.value,n,hn(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=P(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}se(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?Go:Jo;if(o.type===2){let a=o.name,c=this.ke(a,r);return te(c)?void 0:i[s](c,a)}if(o.type===3){let{obj:a,key:c}=this.se(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.ke(i,r);if(te(a))return;let c=this.g(e.right,n,r);return mr[s](a,i,c)}if(o.type===3){let{obj:i,key:a}=this.se(o,n,r),c=this.g(e.right,n,r);return mr[s](i,a,c)}}14(e,n,r){let o=this.g(e.argument,n,r);return E(o)&&(o.s=hr),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=P(this[e.type](e,n,r));return this.Ne=e.type,o}Ie(e,n,r,o){let s=this.g(n,r,o);return e&&this.De()?this.A:s}De(){let e=this.Ne;return(e===2||e===3||e===6)&&y(this.A)}eval(e,n){let{value:r,refs:o}=gt(()=>this.g(e,-1,n)),s={value:r,refs:o};return this.De()&&(s.ref=this.A),s}R(e,n,r,...o){let s=o.map(i=>i&&this.g(i,e,n));return r(...s)}Ve(e,n,r,...o){let s=this.Ae;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,hn(p,n)):this.g(a,e,n)));return r(...i)}},hr=Symbol("s"),ur=t=>(t==null?void 0:t.s)===hr,yr=(t,e,n,r,o,s,i)=>new yn(e,n,r,o,i).eval(t,s);var gr={},Bt=class{constructor(e,n){m(this,"m");m(this,"o");m(this,"Ue",[]);this.m=e,this.o=n}w(e){this.m=[e,...this.m]}Ge(){return this.m.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},{})}C(e,n,r,o,s){var h;let i=z([]),a=[],c=()=>{for(let d of a)d();a.length=0},p={value:i,stop:c,refs:[],context:this.m[0]};if($(e))return p;let f=this.o.globalContext,l=[],u=(d,C,I,x)=>{try{let b=yr(d,C,f,n,r,x,o);return I&&l.push(...b.refs),{value:b.value,refs:b.refs,ref:b.ref}}catch(b){U(6,`evaluation error: ${e}`,b)}return{value:void 0,refs:[]}};try{let d=(h=gr[e])!=null?h:fr("["+e+"]");gr[e]=d;let C=this.m,I=()=>{l.splice(0),c();let x=d.elements.map((b,L)=>n!=null&&n(L,-1)?{value:X=>u(b,C,!1,{$event:X}).value,refs:[]}:u(b,C,!0));if(!s)for(let b of l){let L=S(b,I);a.push(L)}i(x.map(b=>b.value)),p.refs=x.map(b=>b.ref)};I()}catch(d){U(6,`parse error: ${e}`,d)}return p}V(){return this.m}Y(e){this.Ue.push(this.m),this.m=e}v(e,n){try{this.Y(e),n()}finally{this.dt()}}dt(){var e;this.m=(e=this.Ue.pop())!=null?e:[]}};var br="http://www.w3.org/1999/xlink",Qo={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 Xo(t){return!!t||t===""}var gn={onChange:(t,e,n,r,o,s)=>{var a;if(r){s&&s.includes("camel")&&(r=B(r)),Pt(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];Pt(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;Pt(t,l,u,d)}else{let f=n==null?void 0:n[c],l=e[c++],u=e[c];Pt(t,l,u,f)}}}},Pt=(t,e,n,r)=>{if(r&&r!==e&&t.removeAttribute(r),te(e)){U(3,name,t);return}if(!W(e)){U(6,`Attribute key is not string at ${t.outerHTML}`,e);return}if(e.startsWith("xlink:")){te(n)?t.removeAttributeNS(br,e.slice(6,e.length)):t.setAttributeNS(br,e,n);return}let o=e in Qo;te(n)||o&&!Xo(n)?t.removeAttribute(e):t.setAttribute(e,o?"":n)};var Er={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)Tr(t,s[c],i==null?void 0:i[c])}else Tr(t,s,i)}}},Tr=(t,e,n)=>{let r=t.classList,o=W(e),s=W(n);if(e&&!o){if(n&&!s)for(let i in n)i in e||r.remove(i);for(let i in e)e[i]&&r.add(i)}else o?n!==e&&(s&&r.remove(...n==null?void 0:n.split(",")),r.add(...e.split(","))):n&&s&&r.remove(...n==null?void 0:n.split(","))};var Cr={onChange:(t,e)=>{let[n,r]=e;H(r)?r(t,n):t.innerHTML=n==null?void 0:n.toString()}};function Yo(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=le(t[r],e[r]);return n}function le(t,e){if(t===e)return!0;let n=Jt(t),r=Jt(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?Yo(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||!le(t[i],e[i]))return!1}}return String(t)===String(e)}function jt(t,e){return t.findIndex(n=>le(n,e))}var Rr=t=>{let e=parseFloat(t);return isNaN(e)?t:e};var Vt=t=>{if(!y(t))throw _(3,"pause");t(void 0,void 0,3)};var $t=t=>{if(!y(t))throw _(3,"resume");t(void 0,void 0,4)};var Zo=(t,e)=>{let n=Or(t);if(n&&vr(t))E(e)?e=jt(e,me(t))>-1:Z(e)?e=e.has(me(t)):e=is(t,e),t.checked=e;else if(n&&Sr(t))t.checked=le(e,me(t));else if(n||Ar(t))wr(t)?t.value!==(e==null?void 0:e.toString())&&(t.value=e):t.value!==e&&(t.value=e);else if(Nr(t)){let r=t.options,o=r.length,s=t.multiple;for(let i=0;i<o;i++){let a=r[i],c=me(a);if(s)E(e)?a.selected=jt(e,c)>-1:a.selected=e.has(c);else if(le(me(a),e)){t.selectedIndex!==i&&(t.selectedIndex=i);return}}!s&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}else U(7,t)},Ft=t=>(y(t)&&(t=t()),H(t)&&(t=t()),t?W(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}),vr=t=>t.type==="checkbox",Sr=t=>t.type==="radio",wr=t=>t.type==="number"||t.type==="range",Or=t=>t.tagName==="INPUT",Ar=t=>t.tagName==="TEXTAREA",Nr=t=>t.tagName==="SELECT",es=(t,e)=>{let n=e.value,r=Ft(n()[1]),o=e.refs[0];if(!o)return U(8,t),()=>{};let s=Or(t);return s&&vr(t)?ns(t,o):s&&Sr(t)?as(t,o):s||Ar(t)?ts(t,r,o,n):Nr(t)?cs(t,o,n):(U(7,t),()=>{})},Mr={onChange:(t,e)=>{Zo(t,e[0])},onBind:(t,e)=>es(t,e)},xr=/[.,' ·٫]/,ts=(t,e,n,r)=>{let s=e.lazy?"change":"input",i=wr(t),a=()=>{Ft(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,C=Ft(r()[1]);if(i||C.number||C.int){if(C.int)d=parseInt(d);else{if(xr.test(d[d.length-1])&&d.split(xr).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 C.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},ns=(t,e)=>{let n="change",r=()=>{t.removeEventListener(n,o)},o=()=>{let s=me(t),i=t.checked,a=e();if(E(a)){let c=jt(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(ss(t,i))};return t.addEventListener(n,o),r},me=t=>"_value"in t?t._value:t.value,Lr="trueValue",rs="falseValue",kr="true-value",os="false-value",ss=(t,e)=>{let n=e?Lr:rs;if(n in t)return t[n];let r=e?kr:os;return t.hasAttribute(r)?t.getAttribute(r):e},is=(t,e)=>{if(Lr in t)return le(e,t.trueValue);let r=kr;return t.hasAttribute(r)?le(e,t.getAttribute(r)):le(e,!0)},as=(t,e)=>{let n="change",r=()=>{t.removeEventListener(n,o)},o=()=>{let s=me(t);e(s)};return t.addEventListener(n,o),r},cs=(t,e,n)=>{let r="change",o=()=>{t.removeEventListener(r,s)},s=()=>{let a=Ft(n()[1]).number,c=Array.prototype.filter.call(t.options,p=>p.selected).map(p=>a?Rr(me(p)):me(p));if(t.multiple){let p=e();try{if(Vt(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{$t(e),F(e)}}else e(c[0])};return t.addEventListener(r,s),o};var ps=["stop","prevent","capture","self","once","left","right","middle","passive"],fs=t=>{let e={};if($(t))return;let n=t.split(",");for(let r of ps)e[r]=n.includes(r);return e},Tn={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=P(o.value()[0]);return W(h)?bn(t,B(h),()=>e.value()[0],(f=s==null?void 0:s.join(","))!=null?f:u[1]):()=>{}}else if(r){let u=e.value();return bn(t,B(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 C=d[0],I=()=>{let b=e.value()[u];return H(b)&&(b=b()),b=b[C],H(b)&&(b=b()),b},x=h[C+"_flags"];i.push(bn(t,C,I,x))}else U(2,name,t)}return a}},ls=(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]},bn=(t,e,n,r)=>{if($(e))return U(5,name,t),()=>{};let o=fs(r),s=o?{capture:o.capture,passive:o.passive,once:o.once}:void 0,i;[e,i]=ls(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!==1||o.middle&&f.button!==2||o.right&&f.button!==3||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 Ir={onChange:(t,e,n,r,o,s)=>{if(r){s&&s.includes("camel")&&(r=B(r)),We(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];We(t,p,f)}else if(N(c))for(let p of Object.entries(c)){let f=p[0],l=p[1];We(t,f,l)}else{let p=e[a++],f=e[a];We(t,p,f)}}}};function ms(t){return!!t||t===""}var We=(t,e,n)=>{if(te(e)){U(3,name,t);return}if(e==="innerHTML"||e==="textContent"){let s=[...t.childNodes];setTimeout(()=>s.forEach(oe),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=ms(n):n==null&&s==="string"?(n="",o=!0):s==="number"&&(n=0,o=!0)}try{t[e]=n}catch(s){o||U(4,e,r,n,s)}o&&t.removeAttribute(e)};var Dr={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 Ur={onChange:(t,e)=>{let n=ye(t).data,r=n._ord;Mn(r)&&(r=n._ord=t.style.display),!!e[0]?t.style.display=r:t.style.display="none"}};var Pr={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)Hr(t,s[c],i==null?void 0:i[c])}else Hr(t,s,i)}}},Hr=(t,e,n)=>{let r=t.style,o=W(e);if(e&&!o){if(n&&!W(n))for(let s in n)e[s]==null&&Cn(r,s,"");for(let s in e)Cn(r,s,e[s])}else{let s=r.display;if(o?n!==e&&(r.cssText=e):n&&t.removeAttribute("style"),"_ord"in ye(t).data)return;r.display=s}},_r=/\s*!important$/;function Cn(t,e,n){if(E(n))n.forEach(r=>{Cn(t,e,r)});else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{let r=us(t,e);_r.test(n)?t.setProperty(Pe(r),n.replace(_r,""),"important"):t[r]=n}}var Br=["Webkit","Moz","ms"],En={};function us(t,e){let n=En[e];if(n)return n;let r=B(e);if(r!=="filter"&&r in t)return En[e]=r;r=Ze(r);for(let o=0;o<Br.length;o++){let s=Br[o]+r;if(s in t)return En[e]=s}return e}var Q=t=>ds(P(t)),ds=t=>{if(!t||!N(t))return t;if(E(t))return t.map(Q);if(Z(t)){let n=new Set;for(let r of t.keys())n.add(Q(r));return n}if(he(t)){let n=new Map;for(let r of n)n.set(Q(r[0]),Q(r[1]));return n}let e=at({},t);for(let n of Object.entries(e))e[n[0]]=Q(n[1]);return e};var jr={onChange:(t,e)=>{var r;let n=e[0];t.textContent=Z(n)?JSON.stringify(Q([...n])):he(n)?JSON.stringify(Q([...n])):N(n)?JSON.stringify(Q(n)):(r=n==null?void 0:n.toString())!=null?r:""}};var Vr={onChange:(t,e)=>{We(t,"value",e[0])}};var Le=t=>(t==null?void 0:t[ft])===1;var Re=t=>{if(je(t))return t;let e;if(y(t)?(e=t,t=e()):e=z(t),t instanceof Node||t instanceof Date||t instanceof RegExp||t instanceof Promise||t instanceof Error)return e;if(e[ft]=1,E(t)){let n=t.length;for(let r=0;r<n;++r){let o=t[r];Le(o)||(t[r]=Re(o))}return e}if(!N(t))return e;for(let n of Object.entries(t)){let r=n[1];if(Le(r))continue;let o=n[0];Qe(o)||(t[o]=Re(r))}return e};var xe=class xe{constructor(e){m(this,"_",{});m(this,"f",{});m(this,"Je",()=>Object.keys(this._).filter(e=>e.length===1||!e.startsWith(":")));m(this,"me",new Map);m(this,"de",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.ht()}static getDefault(){var e;return(e=xe.Pe)!=null?e:xe.Pe=new xe}ht(){let e={},n=globalThis;for(let r of xe.yt.split(","))e[r]=n[r];return e.ref=Re,e.sref=z,e.flatten=Q,e}addComponent(...e){for(let n of e)this.me.set(Ze(n.name),n),this.de.set(Ze(n.name).toLocaleUpperCase(),n)}setDirectives(e){this._={".":Ir,":":gn,"@":Tn,[`${e}on`]:Tn,[`${e}bind`]:gn,[`${e}html`]:Cr,[`${e}text`]:jr,[`${e}show`]:Ur,[`${e}model`]:Mr,":style":Pr,":class":Er,":ref":Dr,":value":Vr,teleport:Nt},this.f={for:`${e}for`,if:`${e}if`,else:`${e}else`,elseif:`${e}else-if`,pre:`${e}pre`,inherit:`${e}inherit`,text:`${e}text`,props:":props",propsOnce:":props-once",bind:`${e}bind`,on:`${e}on`,keyBind:":key",key:"key",is:":is",teleport:`${e}teleport`,dynamic:"_d_"}}updateDirectives(e){e(this._,this.f)}};m(xe,"Pe"),m(xe,"yt","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 ie=xe;var qt=(t,e)=>{if(!t)return;let n=(e!=null?e:ie.getDefault()).f;for(let r of gs(t,n.pre))ys(r,n.text)},hs=/({{[^]*?}})/g,ys=(t,e)=>{var i;let n=t.textContent;if(!n)return;let r=hs,o=n.split(r);if(o.length<=1)return;if(((i=t.parentElement)==null?void 0:i.childNodes.length)===1&&o.length===3){let a=o[1];if($(o[0])&&$(o[2])&&a.startsWith("{{")&&a.endsWith("}}")){t.parentElement.setAttribute(e,a.substring(2,a.length-2));return}}let s=document.createDocumentFragment();for(let a of o)if(a.startsWith("{{")&&a.endsWith("}}")){let c=document.createElement("span");c.setAttribute(e,a.substring(2,a.length-2)),s.appendChild(c)}else s.appendChild(document.createTextNode(a));t.replaceWith(s)},gs=(t,e)=>{let n=[],r=o=>{var s,i;if(o.nodeType===Node.TEXT_NODE)(s=o.textContent)!=null&&s.includes("{{")&&n.push(o);else{if((i=o==null?void 0:o.hasAttribute)!=null&&i.call(o,e))return;for(let a of fe(o))r(a)}};return r(t),n};var bs="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",Ts=new Set(bs.toUpperCase().split(",")),Es="http://www.w3.org/2000/svg",$r=(t,e)=>{se(t)?t.content.appendChild(e):t.appendChild(e)},Rn=(t,e,n,r)=>{var i;let o=t.t;if(o){let a=n&&Ts.has(o.toUpperCase())?document.createElementNS(Es,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(ht(l,r),u)}let p=t.c;if(p)for(let f of p)Rn(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.")}},ke=(t,e,n)=>{n!=null||(n=ie.getDefault());let r=document.createDocumentFragment();if(!E(t))return Rn(t,r,!!e,n),r;for(let o of t)Rn(o,r,!!e,n);return r};var Fr=(t,e={selector:"#app"},n)=>{Gn(t)&&(t=t.context);let r=e.element?e.element:e.selector?document.querySelector(e.selector):null;if(!r||!Oe(r))throw _(0);n||(n=ie.getDefault());let o=()=>{for(let a of[...r.childNodes])j(a)},s=a=>{for(let c of a)r.appendChild(c)};if(e.html){let a=document.createRange().createContextualFragment(e.html);o(),s(a.childNodes),e.element=a}else if(e.json){let a=ke(e.json,e.isSVG,n);o(),s(a.childNodes)}return n.useInterpolation&&qt(r,n),new xn(t,r,n).x(),D(r,()=>{Ee(t)}),wt(t),{context:t,unmount:()=>{j(r)},unbind:()=>{oe(r)}}},xn=class{constructor(e,n,r){m(this,"gt");m(this,"Be");m(this,"o");m(this,"h");m(this,"p");this.gt=e,this.Be=n,this.o=r,this.h=new Bt([e],r),this.p=new Mt(this.h)}x(){this.p.G(this.Be)}};var Ge=t=>{if(E(t))return t.map(o=>Ge(o));let e={};if(t.tagName)e.t=t.tagName;else return t.nodeType===Node.COMMENT_NODE&&(e.n=Node.COMMENT_NODE),t.textContent&&(e.d=t.textContent),e;let n=t.getAttributeNames();n.length>0&&(e.a=Object.fromEntries(n.map(o=>[o,t.getAttribute(o)])));let r=fe(t);return r.length>0&&(e.c=[...r].map(o=>Ge(o))),e};var qr=(t,e,n,r={})=>{var i,a,c,p;let o=!1;if(n.element){let f=n.element;f.remove(),n.element=f}else if(n.selector){let f=document.querySelector(n.selector);if(!f)throw _(1,t);f.remove(),n.element=f}else if(n.html){let f=document.createRange().createContextualFragment(n.html);n.element=f}else n.json&&(n.element=ke(n.json,n.isSVG,r.config),o=!0);n.element||(n.element=document.createDocumentFragment()),((i=r.useInterpolation)==null||i)&&qt(n.element);let s=n.element;if(!o&&(((c=n.isSVG)!=null?c:Ye(s)&&((a=s.hasAttribute)!=null&&a.call(s,"isSVG")))||Ye(s)&&s.querySelector("[isSVG]"))){let f=n.element.content,l=f?[...f.childNodes]:[...s.childNodes],u=Ge(l);n.element=ke(u,!0,r.config)}return{name:t,context:e,template:n,inheritAttrs:(p=r.inheritAttrs)!=null?p:!0,props:r.props}};var zr=t=>{let e,n={},r=(...o)=>{if(o.length<=2&&0 in o)throw _(4);return e&&!n.isStopped?e(...o):(e=Cs(t,n),e(...o))};return r[J]=1,Te(r,!0),r.stop=()=>{var o,s;return(s=(o=n.ref)==null?void 0:o.stop)==null?void 0:s.call(o)},G(()=>r.stop(),!0),r},Cs=(t,e)=>{var s;let n=(s=e.ref)!=null?s:z(null);e.ref=n,e.isStopped=!1;let r=0,o=Ae(()=>{if(r>0){o(),e.isStopped=!0,F(n);return}n(t()),++r});return n.stop=o,n};var Kr=(t,e)=>{let n={},r,o=(...s)=>{if(s.length<=2&&0 in s)throw _(4);return r&&!n.isStopped?r(...s):(r=Rs(t,e,n),r(...s))};return o[J]=1,Te(o,!0),o.stop=()=>{var s,i;return(i=(s=n.ref)==null?void 0:s.stop)==null?void 0:i.call(s)},G(()=>o.stop(),!0),o},Rs=(t,e,n)=>{var a;let r=(a=n.ref)!=null?a:z(null);n.ref=r,n.isStopped=!1;let o=0,s=c=>{if(o>0){r.stop(),n.isStopped=!0,F(r);return}r(e(...t.map(p=>p()))),++o},i=[];for(let c of t){let p=S(c,s);i.push(p)}return s(null),r.stop=()=>{i.forEach(c=>{c()})},r};var Wr=(t,e)=>{let n={},r,o=(...s)=>{if(s.length<=2&&0 in s)throw _(4);return r&&!n.isStopped?r(...s):(r=xs(t,e,n),r(...s))};return o[J]=1,Te(o,!0),o.stop=()=>{var s,i;return(i=(s=n.ref)==null?void 0:s.stop)==null?void 0:i.call(s)},G(()=>o.stop(),!0),o},xs=(t,e,n)=>{var s;let r=(s=n.ref)!=null?s:z(null);n.ref=r,n.isStopped=!1;let o=0;return r.stop=S(t,i=>{if(o>0){r.stop(),n.isStopped=!0,F(r);return}r(e(i)),++o},!0),r};var Gr=t=>(t[lt]=1,t);var Jr=(t,e)=>{if(!e)throw new Error("persist requires a string key.");let r=Le(t)?Re:a=>a,o=()=>localStorage.setItem(e,JSON.stringify(Q(t()))),s=localStorage.getItem(e);s!=null?t(r(JSON.parse(s))):o();let i=Ae(o);return G(()=>i,!0),t};var vn=(t,...e)=>{let n="";return e.length===0?t.join():(t.forEach((r,o)=>{n+=r+e[o]}),n)},Qr=vn;var Xr=(t,e,n)=>{let r=[],o=()=>{e(t.map(i=>i()))};for(let i of t)r.push(S(i,o));n&&o();let s=()=>{for(let i of r)i()};return G(s,!0),s};var Yr=t=>{if(!y(t))throw _(3,"observe");return t(void 0,void 0,2)};var Zr=t=>{Sn();try{t()}finally{wn()}},Sn=()=>{Ne.set||(Ne.set=new Set)},wn=()=>{let t=Ne.set;if(t){delete Ne.set;for(let e of t)try{F(e)}catch(n){console.error(n)}}};var eo=t=>{var e;(e=we())==null||e.onMounted.push(t)};
|
|
1
|
+
"use strict";var it=Object.defineProperty,to=Object.defineProperties,no=Object.getOwnPropertyDescriptor,ro=Object.getOwnPropertyDescriptors,oo=Object.getOwnPropertyNames,On=Object.getOwnPropertySymbols;var An=Object.prototype.hasOwnProperty,so=Object.prototype.propertyIsEnumerable;var at=Math.pow,Gt=(t,e,n)=>e in t?it(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ct=(t,e)=>{for(var n in e||(e={}))An.call(e,n)&&Gt(t,n,e[n]);if(On)for(var n of On(e))so.call(e,n)&&Gt(t,n,e[n]);return t},Nn=(t,e)=>to(t,ro(e));var io=(t,e)=>{for(var n in e)it(t,n,{get:e[n],enumerable:!0})},ao=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of oo(e))!An.call(t,o)&&o!==n&&it(t,o,{get:()=>e[o],enumerable:!(r=no(e,o))||r.enumerable});return t};var co=t=>ao(it({},"__esModule",{value:!0}),t);var m=(t,e,n)=>(Gt(t,typeof e!="symbol"?e+"":e,n),n);var vs={};io(vs,{ComponentHead:()=>$e,RegorConfig:()=>ie,addUnbinder:()=>D,batch:()=>Zr,collectRefs:()=>bt,computeMany:()=>Kr,computeRef:()=>Wr,computed:()=>zr,createApp:()=>Fr,createComponent:()=>qr,endBatch:()=>wn,entangle:()=>wt,flatten:()=>Q,getBindData:()=>ye,html:()=>vn,isDeepRef:()=>Le,isRaw:()=>je,isRef:()=>y,markRaw:()=>Gr,observe:()=>S,observeMany:()=>Xr,observerCount:()=>Yr,onMounted:()=>eo,onUnmounted:()=>G,pause:()=>$t,persist:()=>Jr,raw:()=>Qr,ref:()=>Re,removeNode:()=>j,resume:()=>Ft,silence:()=>gt,sref:()=>z,startBatch:()=>Sn,toFragment:()=>ke,toJsonTemplate:()=>Ge,trigger:()=>F,unbind:()=>oe,unref:()=>P,useScope:()=>St,warningHandler:()=>Xe,watchEffect:()=>Ae});module.exports=co(vs);var H=t=>typeof t=="function",W=t=>typeof t=="string",Mn=t=>typeof t=="undefined",te=t=>t==null||typeof t=="undefined",$=t=>typeof t!="string"||!(t!=null&&t.trim()),po=Object.prototype.toString,Jt=t=>po.call(t),he=t=>Jt(t)==="[object Map]",Z=t=>Jt(t)==="[object Set]",Qt=t=>Jt(t)==="[object Date]",Qe=t=>typeof t=="symbol",E=Array.isArray,N=t=>t!==null&&typeof t=="object";var Ln={0:"App root element is missing",1:t=>`${t} component template cannot be found.`,2:"Use composables in scope. usage: useScope(() => new MyApp()).",3:t=>`${t} requires ref source argument`,4:"computed is readonly.",5:"ref is readonly."},_=(t,...e)=>{let n=Ln[t];return new Error(H(n)?n.call(Ln,...e):n)};var De=Symbol(":regor");var ye=t=>{let e=t[De];if(e)return e;let n={unbinders:[],data:{}};return t[De]=n,n};var D=(t,e)=>{ye(t).unbinders.push(e)};var pt=[],kn=()=>{let t={onMounted:[],onUnmounted:[]};return pt.push(t),t},we=t=>{let e=pt[pt.length-1];if(!e&&!t)throw _(2);return e},In=t=>{let e=we();return t&&Yt(t),pt.pop(),e},Xt=Symbol("csp"),Yt=t=>{let e=t,n=e[Xt];if(n){let r=we();if(n===r)return;r.onMounted.length>0&&n.onMounted.push(...r.onMounted),r.onUnmounted.length>0&&n.onUnmounted.push(...r.onUnmounted);return}e[Xt]=we()},ft=t=>t[Xt];var G=(t,e)=>{var n;(n=we(e))==null||n.onUnmounted.push(t)};var lt=Symbol("ref"),J=Symbol("sref"),mt=Symbol("raw");var y=t=>(t==null?void 0:t[J])===1;var S=(t,e,n)=>{if(!y(t))throw _(3,"observe");n&&e(t());let o=t(void 0,void 0,0,e);return G(o,!0),o};var oe=t=>{let e=[t];for(;e.length>0;){let n=e.shift();fo(n);let r=n.childNodes;if(r)for(let o of r)e.push(o)}},fo=t=>{let e=t[De];if(e){for(let n of e.unbinders)n();e.unbinders.splice(0),delete t[De]}};var j=t=>{t.remove(),setTimeout(()=>oe(t),1)};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]})},U=(t,...e)=>{let n=Dn[t],r=H(n)?n.call(Dn,...e):n,o=Xe.warning;o&&(W(r)?o(r):o(r,...r.args))},Xe={warning:console.warn};var dt={},ut={},Un=1,Hn=t=>{let e=(Un++).toString();return dt[e]=t,ut[e]=0,e},Zt=t=>{ut[t]+=1},en=t=>{--ut[t]===0&&(delete dt[t],delete ut[t])},_n=t=>dt[t],tn=()=>Un!==1&&Object.keys(dt).length>0,Ye="r-switch",lo=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]},Ue=(t,e)=>{if(!tn())return;let n=lo(e);n.length!==0&&(n.forEach(Zt),D(t,()=>{n.forEach(en)}))};var nn=(t,e,n,r)=>{let o=[];for(let s of t){let i=s.cloneNode(!0);n.insertBefore(i,r),o.push(i)}be(e,o)},rn=Symbol("r-if"),Bn=Symbol("r-else"),Pn=t=>t[Bn]===1,ht=class{constructor(e){m(this,"p");m(this,"P");m(this,"q");m(this,"K");m(this,"z");m(this,"b");m(this,"T");this.p=e,this.P=e.o.f.if,this.q=Be(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}$e(e,n){let r=e.parentElement;for(;r!==null&&r!==document.documentElement;){if(r.hasAttribute(n))return!0;r=r.parentElement}return!1}N(e){let n=e.hasAttribute(this.P),r=ge(e,this.q);for(let o of r)this.x(o);return n}W(e){return e[rn]?!0:(e[rn]=!0,ge(e,this.q).forEach(n=>n[rn]=!0),!1)}x(e){if(e.hasAttribute(this.T)||this.W(e)||this.$e(e,this.b))return;let n=e.getAttribute(this.P);if(!n){U(0,this.P,e);return}e.removeAttribute(this.P),this.k(e,n)}B(e,n,r){let o=_e(e),s=e.parentNode,i=document.createComment(`__begin__ :${n}${r!=null?r:""}`);s.insertBefore(i,e),Ue(i,o),o.forEach(c=>{j(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}}pe(e,n){if(!e)return[];let r=e.nextElementSibling;if(e.hasAttribute(this.K)){e.removeAttribute(this.K);let{nodes:o,parent:s,commentBegin:i,commentEnd:a}=this.B(e,"else");return[{mount:()=>{nn(o,this.p,s,a)},unmount:()=>{pe(i,a)},isTrue:()=>!0,isMounted:!1}]}else{let o=e.getAttribute(this.z);if(!o)return[];e.removeAttribute(this.z);let{nodes:s,parent:i,commentBegin:a,commentEnd:c}=this.B(e,"elseif",` => ${o} `),p=this.p.h.C(o),f=p.value,l=this.pe(r,n),u=[];D(a,()=>{p.stop();for(let C of u)C();u.length=0});let d=S(f,n);return u.push(d),[{mount:()=>{nn(s,this.p,i,c)},unmount:()=>{pe(a,c)},isTrue:()=>!!f()[0],isMounted:!1}].concat(l)}}k(e,n){let r=e.nextElementSibling,{nodes:o,parent:s,commentBegin:i,commentEnd:a}=this.B(e,"if",` => ${n} `),c=this.p.h.C(n),p=c.value,f=!1,l=this.p.h,u=l.V(),h=()=>{l.v(u,()=>{if(p()[0])f||(nn(o,this.p,s,a),f=!0),d.forEach(b=>{b.unmount(),b.isMounted=!1});else{pe(i,a),f=!1;let b=!1;for(let L of d)!b&&L.isTrue()?(L.isMounted||(L.mount(),L.isMounted=!0),b=!0):(L.unmount(),L.isMounted=!1)}})},d=this.pe(r,h),C=[];D(i,()=>{c.stop();for(let b of C)b();C.length=0}),h();let x=S(p,h);C.push(x)}};var _e=t=>{let e=se(t)?t.content.childNodes:[t];return Array.from(e).filter(n=>{let r=n==null?void 0:n.tagName;return r!=="SCRIPT"&&r!=="STYLE"})},be=(t,e)=>{for(let n of e)!Pn(n)&&t.G(n)},ge=(t,e)=>{var r;let n=t.querySelectorAll(e);return(r=t.matches)!=null&&r.call(t,e)?[t,...n]:n},se=t=>t instanceof HTMLTemplateElement,Oe=t=>t.nodeType===Node.ELEMENT_NODE,Ze=t=>t.nodeType===Node.ELEMENT_NODE,jn=t=>t instanceof HTMLSlotElement,fe=t=>se(t)?t.content.childNodes:t.childNodes,pe=(t,e)=>{let n=t.nextSibling;for(;n!=null&&n!==e;){let r=n.nextSibling;j(n),n=r}},Te=(t,e)=>{Object.defineProperty(t,"value",{get(){return t()},set(n){if(e)throw new Error("value is readonly.");return t(n)},enumerable:!0,configurable:!1})},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},Be=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),on=t=>{let e=Object.create(null);return n=>e[n]||(e[n]=t(n))},mo=/-(\w)/g,B=on(t=>t&&t.replace(mo,(e,n)=>n?n.toUpperCase():"")),uo=/\B([A-Z])/g,Pe=on(t=>t&&t.replace(uo,"-$1").toLowerCase()),et=on(t=>t&&t.charAt(0).toUpperCase()+t.slice(1));var ne=[],$n=t=>{var e;ne.length!==0&&((e=ne[ne.length-1])==null||e.add(t))},Ae=t=>{if(!t)return()=>{};let e={stop:()=>{}};return ho(t,e),G(()=>e.stop(),!0),e.stop},ho=(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=S(i,()=>{o(),Ae(t)});n.push(a)}}finally{ne.pop()}},gt=t=>{let e=ne.length,n=e>0&&ne[e-1];try{return n&&ne.push(null),t()}finally{n&&ne.pop()}},bt=t=>{try{let e=new Set;return ne.push(e),{value:t(),refs:[...e]}}finally{ne.pop()}};var je=t=>!!t&&t[mt]===1;var F=(t,e,n)=>{if(!y(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)F(s,e,!0);else if(he(o))for(let s of o)F(s[0],e,!0),F(s[1],e,!0);if(N(o))for(let s in o)F(o[s],e,!0)}};function yo(t,e,n){Object.defineProperty(t,e,{value:n,enumerable:!1,writable:!0,configurable:!0})}var Ve=(t,e,n)=>{n.forEach(function(r){let o=t[r];yo(e,r,function(...i){let a=o.apply(this,i),c=this[J];for(let p of c)F(p);return a})})},Tt=(t,e)=>{Object.defineProperty(t,Symbol.toStringTag,{value:e,writable:!1,enumerable:!1,configurable:!0})};var Fn=Array.prototype,sn=Object.create(Fn),go=["push","pop","shift","unshift","splice","sort","reverse"];Ve(Fn,sn,go);var qn=Map.prototype,Et=Object.create(qn),bo=["set","clear","delete"];Tt(Et,"Map");Ve(qn,Et,bo);var zn=Set.prototype,Ct=Object.create(zn),To=["add","clear","delete"];Tt(Ct,"Set");Ve(zn,Ct,To);var Ne={},z=t=>{if(y(t)||je(t))return t;let e={auto:!0,_value:t},n=c=>N(c)?J in c?!0:E(c)?(Object.setPrototypeOf(c,sn),!0):Z(c)?(Object.setPrototypeOf(c,Ct),!0):he(c)?(Object.setPrototypeOf(c,Et),!0):!1:!1,r=n(t),o=new Set,s=(c,p)=>{if(Ne.set){Ne.set.add(a);return}o.size!==0&>(()=>{for(let f of[...o.keys()])o.has(f)&&f(c,p)})},i=c=>{let p=c[J];p||(c[J]=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||y(f)&&(f=f(),e._value===f)?f:(n(f)&&i(f),e._value=f,e.auto&&s(f,l),e._value):($n(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[J]=1,Te(a,!1),r&&i(t),a};var P=t=>y(t)?t():t;var tt=class{constructor(e){m(this,"E",[]);m(this,"H",new Map);m(this,"J");this.J=e}get S(){return this.E.length}Q(e){let n=this.J(e.value);n&&this.H.set(n,e)}X(e){var r;let n=this.J((r=this.E[e])==null?void 0:r.value);n&&this.H.delete(n)}static qe(e,n){return{items:[],index:e,value:n,order:-1}}w(e){e.order=this.S,this.E.push(e),this.Q(e)}Ke(e,n){let r=this.S;for(let o=e;o<r;++o)this.E[o].order=o+1;n.order=e,this.E.splice(e,0,n),this.Q(n)}I(e){return this.E[e]}Y(e,n){this.X(e),this.E[e]=n,this.Q(n),n.order=e}ce(e){this.X(e),this.E.splice(e,1);let n=this.S;for(let r=e;r<n;++r)this.E[r].order=r}fe(e){let n=this.S;for(let r=e;r<n;++r)this.X(r);this.E.splice(e)}Rt(e){return this.H.has(e)}ze(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"),xt=class xt{constructor(e){m(this,"p");m(this,"b");m(this,"Z");m(this,"T");this.p=e,this.b=e.o.f.for,this.Z=Be(this.b),this.T=e.o.f.pre}N(e){let n=e.hasAttribute(this.b),r=ge(e,this.Z);for(let o of r)this.We(o);return n}W(e){return e[an]?!0:(e[an]=!0,ge(e,this.Z).forEach(n=>n[an]=!0),!1)}We(e){if(e.hasAttribute(this.T)||this.W(e))return;let n=e.getAttribute(this.b);if(!n){U(0,this.b,e);return}e.removeAttribute(this.b),this.Ge(e,n)}le(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))}Ge(e,n){var st;let r=this.Je(n);if(!(r!=null&&r.list)){U(1,this.b,n,e);return}let o=this.p.o.f.key,s=this.p.o.f.keyBind,i=(st=e.getAttribute(o))!=null?st:e.getAttribute(s);e.removeAttribute(o),e.removeAttribute(s);let a=i?v=>{var A;return P((A=P(v))==null?void 0:A[i])}:v=>v,c=(v,A)=>a(v)===a(A),p=_e(e),f=e.parentNode;if(!f)return;let l=`${this.b} => ${n}`,u=new Comment(`__begin__ ${l}`);f.insertBefore(u,e),Ue(u,p),p.forEach(v=>{j(v)}),e.remove();let h=new Comment(`__end__ ${l}`);f.insertBefore(h,u.nextSibling);let d=this.p,C=d.h,I=C.V(),x=(v,A,q)=>{let w=r.createContext(A,v),Y=tt.qe(w.index,A);return C.v(I,()=>{C.w(w.ctx);let re=q.previousSibling,Ie=[];for(let g of p){let M=g.cloneNode(!0);f.insertBefore(M,q),Ie.push(M)}for(be(d,Ie),re=re.nextSibling;re!==q;)Y.items.push(re),re=re.nextSibling}),Y},b=(v,A)=>{let q=O.I(v).items,w=q[q.length-1].nextSibling;for(let Y of q)j(Y);O.Y(v,x(v,A,w))},L=(v,A)=>{O.w(x(v,A,h))},X=v=>{for(let A of O.I(v).items)j(A)},ee=v=>{let A=O.S;for(let q=v;q<A;++q)O.I(q).index(q)},Je=v=>{let A=O.S;H(v)&&(v=v());let q=P(v[0]);if(E(q)&&q.length===0){pe(u,h),O.fe(0);return}let w=0,Y=Number.MAX_SAFE_INTEGER,re=A,Ie=this.p.o.forGrowThreshold,g=()=>O.S<re+Ie;for(let T of this.le(v[0])){let V=()=>{if(w<A){let K=O.I(w++);if(c(K.value,T))return;let R=O.ze(a(T));if(R>=w&&R-w<10){if(--w,Y=Math.min(Y,w),X(w),O.ce(w),--A,R>w+1)for(let k=w;k<R-1&&k<A&&!c(O.I(w).value,T);)++k,X(w),O.ce(w),--A;V();return}g()?(O.Ke(w-1,x(w,T,O.I(w-1).items[0])),Y=Math.min(Y,w-1),++A):b(w-1,T)}else L(w++,T)};V()}let M=w;for(A=O.S;w<A;)X(w++);O.fe(M),ee(Y)},Kt=()=>{de=S(rt,Je)},nt=()=>{ue.stop(),de()},ue=C.C(r.list),rt=ue.value,de,ot=0,O=new tt(a);for(let v of this.le(rt()[0]))O.w(x(ot++,v,h));D(u,nt),Kt()}Je(e){var c,p;let n=xt.Qe.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&&((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=P(f);if(!a&&r.length===1)u[r[0]]=f;else if(E(h)){let C=0;for(let I of r)u[I]=h[C++]}else for(let C of r)u[C]=h[C];let d={ctx:u,index:z(-1)};return s&&(d.index=u[s.substring(1)]=z(l)),d}}}};m(xt,"Qe",/\{?\[?\(?([^)}\]]+)\)?\]?\}?([^)]+)?\s+\b(?:in|of)\b\s+([^\s]+)\s*/);var Rt=xt;var Eo=(t,e)=>{for(let n of t){let r=n.cloneNode(!0);e.appendChild(r)}},vt=class{constructor(e){m(this,"p");m(this,"D");m(this,"ue");this.p=e,this.D=e.o.f.is,this.ue=Be(this.D)+", [is]"}N(e){let n=e.hasAttribute(this.D),r=ge(e,this.ue);for(let o of r)this.x(o);return n}x(e){let n=e.getAttribute(this.D);if(!n){if(n=e.getAttribute("is"),!n||!n.startsWith("regor:"))return;n=`'${n.slice(6)}'`,e.removeAttribute("is")}e.removeAttribute(this.D),this.k(e,n)}B(e,n){let r=_e(e),o=e.parentNode,s=document.createComment(`__begin__ dynamic ${n!=null?n:""}`);o.insertBefore(s,e),Ue(s,r),r.forEach(a=>{j(a)}),e.remove();let i=document.createComment(`__end__ dynamic ${n!=null?n:""}`);return o.insertBefore(i,s.nextSibling),{nodes:r,parent:o,commentBegin:s,commentEnd:i}}k(e,n){let{nodes:r,parent:o,commentBegin:s,commentEnd:i}=this.B(e,` => ${n} `),a=this.p.h.C(n),c=a.value,p=this.p.h,f=p.V(),l={name:""},u=se(e)?r:[...r[0].childNodes],h=()=>{p.v(f,()=>{let x=c()[0];if(N(x)&&(x=x.name),!W(x)||$(x)){pe(s,i);return}if(l.name===x)return;pe(s,i);let b=document.createElement(x);for(let L of e.getAttributeNames())L!==this.D&&b.setAttribute(L,e.getAttribute(L));Eo(u,b),o.insertBefore(b,i),this.p.G(b),l.name=x})},d=[];D(s,()=>{a.stop();for(let x of d)x();d.length=0}),h();let I=S(c,h);d.push(I)}};var Kn={collectRefObj:!0,onBind:(t,e)=>S(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&&(y(p)?p(c):o[a]=c)}},!0)};var Wn={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&&(y(c)?c(a):r[i]=a)}return()=>{}}};var Ee=t=>{var n,r;let e=(n=ft(t))==null?void 0:n.onUnmounted;e==null||e.forEach(o=>{o()}),(r=t.unmounted)==null||r.call(t)};var $e=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,"disableSwitch",!1);m(this,"onAutoPropsAssigned");m(this,"me");m(this,"emit",(e,n)=>{this.me.dispatchEvent(new CustomEvent(e,{detail:n}))});this.props=e,this.me=n,this.ctx=r,this.start=o,this.end=s}unmount(){let e=this.start.nextSibling,n=this.end;for(;e&&e!==n;)j(e),e=e.nextSibling;Ee(this)}};var cn=Symbol("scope"),St=t=>{try{kn();let e=t();Yt(e);let n={context:e,unmount:()=>Ee(e),[cn]:1};return n[cn]=1,n}finally{In()}},Gn=t=>N(t)?cn in t:!1;var wt=(t,e)=>{if(t===e)return()=>{};let n=S(t,o=>e(o)),r=S(e,o=>t(o));return e(t()),()=>{n(),r()}};var Ot=t=>{var n,r;let e=(n=ft(t))==null?void 0:n.onMounted;e==null||e.forEach(o=>{o()}),(r=t.mounted)==null||r.call(t)};var Jn={collectRefObj:!0,onBind:(t,e,n,r,o,s)=>{if(!r)return()=>{};let i=B(r);return S(e.value,()=>{var l;let c=(l=e.refs[0])!=null?l:e.value()[0],p=e.context,f=p[r];f!==c&&(y(f)?f(c):p[i]=c)},!0)}};var At=class{constructor(e){m(this,"p");m(this,"de");this.p=e,this.de=e.o.f.inherit}N(e){this.Xe(e)}Xe(e){var f;let n=this.p,r=n.h,o=n.o.ye,s=n.o.he,i=r.Ye(),a=[...o.keys(),...Object.keys(i),...[...o.keys()].map(Pe),...[...Object.keys(i)].map(Pe)].join(",");if($(a))return;let c=e.querySelectorAll(a),p=(f=e.matches)!=null&&f.call(e,a)?[e,...c]:c;for(let l of p){if(l.hasAttribute(n.T))continue;let u=l.parentNode;if(!u)continue;let h=l.nextSibling,d=B(l.tagName).toUpperCase(),C=i[d],I=C!=null?C:s.get(d);if(!I)continue;let x=I.template;if(!x)continue;let b=l.parentElement;if(!b)continue;let L=new Comment(" begin component: "+l.tagName),X=new Comment(" end component: "+l.tagName);b.insertBefore(L,l),l.remove();let ee=n.o.f.props,Je=n.o.f.propsOnce,Kt=n.o.f.bind,nt=(g,M)=>{let T={},V=g.hasAttribute(ee),K=g.hasAttribute(Je);return r.v(M,()=>{r.w(T),V&&n.x(Kn,g,ee),K&&n.x(Wn,g,Je);let R=I.props;if(!R||R.length===0)return;R=R.map(B);for(let ve of R.concat(R.map(Pe))){let ae=g.getAttribute(ve);ae!==null&&(T[B(ve)]=ae,g.removeAttribute(ve))}let k=n.ee.ge(g,!1);for(let[ve,ae]of k.entries()){let[Se,Wt]=ae.te;Wt&&R.includes(B(Wt))&&(Se!=="."&&Se!==":"&&Se!==Kt||n.x(Jn,g,ve,!0,Wt,ae.ne))}}),T},ue=[...r.V()],rt=()=>{var V;let g=nt(l,ue),M=new $e(g,l,ue,L,X),T=St(()=>{var K;return(K=I.context(M))!=null?K:{}}).context;if(M.autoProps){for(let[K,R]of Object.entries(g))if(K in T){let k=T[K];if(k===R)continue;M.entangle&&y(k)&&y(R)?D(L,wt(R,k)):y(k)?k(R):T[K]=P(R)}else T[K]=R;(V=M.onAutoPropsAssigned)==null||V.call(M)}return{componentCtx:T,head:M}},{componentCtx:de,head:ot}=rt(),O=[...fe(x)],st=O.length,v=l.childNodes.length===0,A=g=>{let M=g.parentElement;if(v){for(let R of[...g.childNodes])M.insertBefore(R,g);return}let T=g.name;$(T)&&(T=g.getAttributeNames().filter(R=>R.startsWith("#"))[0],$(T)?T="default":T=T.substring(1));let V=l.querySelector(`template[name='${T}'], template[\\#${T}]`);!V&&T==="default"&&(V=l.querySelector("template:not([name])"),V&&V.getAttributeNames().filter(R=>R.startsWith("#")).length>0&&(V=null));let K=R=>{ot.disableSwitch||r.v(ue,()=>{r.w(de);let k=nt(g,r.V());r.v(ue,()=>{r.w(k);let ve=r.V(),ae=Hn(ve);for(let Se of R)Oe(Se)&&(Se.setAttribute(Ye,ae),Zt(ae),D(Se,()=>{en(ae)}))})})};if(V){let R=[...fe(V)];for(let k of R)M.insertBefore(k,g);K(R)}else{if(T!=="default"){for(let k of[...fe(g)])M.insertBefore(k,g);return}let R=[...fe(l)].filter(k=>!se(k));for(let k of R)M.insertBefore(k,g);K(R)}},q=g=>{if(!Oe(g))return;let M=g.querySelectorAll("slot");if(jn(g)){A(g),g.remove();return}for(let T of M)A(T),T.remove()};(()=>{for(let g=0;g<st;++g)O[g]=O[g].cloneNode(!0),u.insertBefore(O[g],h),q(O[g])})(),b.insertBefore(X,h);let Y=()=>{if(!I.inheritAttrs)return;let g=O.filter(T=>T.nodeType===Node.ELEMENT_NODE);g.length>1&&(g=g.filter(T=>T.hasAttribute(this.de)));let M=g[0];if(M)for(let T of l.getAttributeNames()){if(T===ee||T===Je)continue;let V=l.getAttribute(T);if(T==="class")M.classList.add(...V.split(" "));else if(T==="style"){let K=M.style,R=l.style;for(let k of R)K.setProperty(k,R.getPropertyValue(k))}else M.setAttribute(yt(T,n.o),V)}},re=()=>{for(let g of l.getAttributeNames())!g.startsWith("@")&&!g.startsWith(n.o.f.on)&&l.removeAttribute(g)},Ie=()=>{Y(),re(),r.w(de),n.be(l,!1),de.$emit=ot.emit,be(n,O),D(l,()=>{Ee(de)}),D(L,()=>{oe(l)}),Ot(de)};r.v(ue,Ie)}}};var pn=class{constructor(e){m(this,"Te");m(this,"te",[]);m(this,"ne",[]);m(this,"xe",[]);this.Te=e,this.C()}C(){let e=this.Te,n=e.startsWith(".");n&&(e=":"+e.slice(1));let r=e.indexOf("."),o=this.te=(r<0?e:e.substring(0,r)).split(/[:@]/);if($(o[0])&&(o[0]=n?".":e[0]),r>=0){let s=this.ne=e.slice(r+1).split(".");if(s.includes("camel")){let i=o.length-1;o[i]=B(o[i])}s.includes("prop")&&(o[0]=".")}}},Nt=class{constructor(e){m(this,"p");m(this,"Ee");this.p=e,this.Ee=e.o.Ze()}ge(e,n){let r=new Map;if(!Ze(e))return r;let o=this.Ee,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 pn(p)),r.get(p).xe.push(a)};if(s(e),!n)return r;let i=e.querySelectorAll("*");for(let a of i)s(a);return r}};var Mt={};var Lt=class{constructor(e){m(this,"h");m(this,"Re");m(this,"Ce");m(this,"ve");m(this,"Se");m(this,"ee");m(this,"o");m(this,"T");m(this,"we");this.h=e,this.o=e.o,this.Ce=new Rt(this),this.Re=new ht(this),this.ve=new vt(this),this.Se=new At(this),this.ee=new Nt(this),this.T=this.o.f.pre,this.we=this.o.f.dynamic}et(e){let n=se(e)?[e]:e.querySelectorAll("template");for(let r of n){if(r.hasAttribute(this.T))continue;let o=r.parentNode;if(!o)continue;let s=r.nextSibling;if(r.remove(),!r.content)continue;let i=[...r.content.childNodes];for(let a of i)o.insertBefore(a,s);be(this,i)}}G(e){e.nodeType!==Node.ELEMENT_NODE||e.hasAttribute(this.T)||this.Re.N(e)||this.Ce.N(e)||this.ve.N(e)||(this.Se.N(e),this.et(e),this.be(e,!0))}be(e,n){var s;let r=this.ee.ge(e,n),o=this.o._;for(let[i,a]of r.entries()){let[c,p]=a.te,f=(s=o[i])!=null?s:o[c];if(!f){console.error("directive not found:",c);continue}a.xe.forEach(l=>{this.x(f,l,i,!1,p,a.ne)})}}x(e,n,r,o,s,i){if(n.hasAttribute(this.T))return;let a=n.getAttribute(r);n.removeAttribute(r);let c=p=>{let f=p.getAttribute(Ye);return f||(p.parentElement?c(p.parentElement):null)};if(tn()){let p=c(n);if(p){this.h.v(_n(p),()=>{this.k(e,n,a,s,i)});return}}this.k(e,n,a,s,i)}tt(e,n,r){if(e!==Mt)return!1;if($(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,D(i,()=>{j(n)}),o.appendChild(n)}return!0}k(e,n,r,o,s){var I;if(n.nodeType!==Node.ELEMENT_NODE||r==null||this.tt(e,n,r))return;let i=this.h.C(r,e.isLazy,e.isLazyKey,e.collectRefObj,e.once),a=[];D(n,()=>{i.stop(),f==null||f.stop();for(let x of a)x();a.length=0});let p=Vn(o,this.we),f;p&&(f=this.h.C(B(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),C=()=>{if(!e.onChange)return;let x=S(i.value,b=>{var ee;let L=l,X=h;(ee=e.onChange)==null||ee.call(e,n,u(),L,d(),X,s)});if(a.push(x),f){let b=S(f.value,L=>{var ee;let X=h;(ee=e.onChange)==null||ee.call(e,n,u(),X,d(),X,s)});a.push(b)}};e.once||C(),e.onBind&&a.push(e.onBind(n,i,r,o,f,s)),(I=e.onChange)==null||I.call(e,n,u(),void 0,d(),void 0,s)}};var Co=9,Ro=10,xo=13,vo=32,Ce=46,kt=44,So=39,wo=34,It=40,Fe=41,Dt=91,Ut=93,fn=63,Oo=59,Qn=58,Ao=123,Ht=125,mn=43,No=45,Xn=96,Yn=47,Mo=92,Zn=[2,3],er=[mn,No],ir={"-":1,"!":1,"~":1,"+":1,new:1},ar={"=":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},ze=Nn(ct({"=>":2},ar),{"||":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}),cr=Object.keys(ar),Lo=new Set(cr),_t=new Set;_t.add("=>");cr.forEach(t=>_t.add(t));var ko=new Set(["$","_"]),tr={true:!0,false:!1,null:null},Io="this";function pr(t){return Math.max(0,...Object.keys(t).map(e=>e.length))}var Do=pr(ir),Uo=pr(ze),Ke="Expected ",Me="Unexpected ",dn="Unclosed ",Ho=Ke+":",nr=Ke+"expression",_o="missing }",Bo=Me+"object property",Po=dn+"(",rr=Ke+"comma",or=Me+"token ",jo=Me+"period",ln=Ke+"expression after ",Vo="missing unaryOp argument",$o=dn+"[",Fo=Ke+"exponent (",qo="Variable names cannot start with a number (",zo=dn+'quote after "';var qe=t=>t>=48&&t<=57,sr=t=>ze[t]||0,un=class{constructor(e){m(this,"nt",{0:[this.rt],1:[this.ot,this.st,this.it],2:[this.at,this.pt,this.ct,this.Oe,this.ft],3:[this.lt,this.ut,this.mt]});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)}u(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 ze)||ko.has(n)}re(e){return this.U(e)||qe(e)}i(e){return new Error(`${e} at character ${this.e}`)}L(e,n,r){let o=this.nt[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===vo||e===Co||e===Ro||e===xo;)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===Oo||r===kt)this.e++;else{let o=this.O();if(o)n.push(o);else if(this.e<this.r.length){if(r===e)break;throw this.i(Me+'"'+this.M+'"')}}}return n}O(){var n;let e=(n=this.L(0,1))!=null?n:this.Ae();return this.y(),this.L(1,0,e)}se(){this.y();let e=this.e,n=this.r,r=n.substr(e,Uo),o=r.length;for(;o>0;){if(r in ze&&(!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}Ae(){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:sr(n),right_a:_t.has(n)},i=this.j(),!i)throw this.i(ln+n);let p=[s,o,i];for(;n=this.se();){if(r=sr(n),r===0){this.e-=n.length;break}o={value:n,prec:r,right_a:_t.has(n)},c=n;let f=l=>o.right_a&&l.right_a?r>l.prec:r<=l.prec;for(;p.length>2&&f(p[p.length-2]);)i=p.pop(),n=p.pop().value,s=p.pop(),e={type:8,operator:n,left:s,right:i},p.push(e);if(e=this.j(),!e)throw this.i(ln+c);p.push(o,e)}for(a=p.length-1,e=p[a];a>1;)e={type:8,operator:p[a-1].value,left:p[a-2],right:e},a-=2;return e}j(){let e,n,r;if(this.y(),r=this.L(2,1),r)return this.L(3,0,r);let o=this.l;if(qe(o)||o===Ce)return this.dt();if(o===So||o===wo)r=this.yt();else if(o===Dt)r=this.ht();else{for(e=this.r.substr(this.e,Do),n=e.length;n>0;){if(Object.prototype.hasOwnProperty.call(ir,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(Vo);return this.L(3,0,{type:7,operator:e,argument:s})}e=e.substr(0,--n)}this.U(o)?(r=this.ie(),r.name in tr?r={type:4,value:tr[r.name],raw:r.name}:r.name===Io&&(r={type:5})):o===It&&(r=this.gt())}return r?(r=this.F(r),this.L(3,0,r)):this.L(3,0,!1)}F(e){this.y();let n=this.l;for(;n===Ce||n===Dt||n===It||n===fn;){let r;if(n===fn){if(this.r.charCodeAt(this.e+1)!==Ce)break;r=!0,this.e+=2,this.y(),n=this.l}if(this.e++,n===Dt){if(e={type:3,computed:!0,object:e,property:this.O()},this.y(),n=this.l,n!==Ut)throw this.i($o);this.e++}else n===It?e={type:6,arguments:this.Ne(Fe),callee:e}:(n===Ce||r)&&(r&&this.e--,this.y(),e={type:3,computed:!1,object:e,property:this.ie()});r&&(e.optional=!0),this.y(),n=this.l}return e}dt(){let e="",n;for(;qe(this.l);)e+=this.r.charAt(this.e++);if(this.u(Ce))for(e+=this.r.charAt(this.e++);qe(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++));qe(this.l);)e+=this.r.charAt(this.e++);if(!qe(this.r.charCodeAt(this.e-1)))throw this.i(Fo+e+this.M+")")}let r=this.l;if(this.U(r))throw this.i(qo+e+this.M+")");if(r===Ce||e.length===1&&e.charCodeAt(0)===Ce)throw this.i(jo);return{type:4,value:parseFloat(e),raw:e}}yt(){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(zo+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)}}Ne(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===Fe&&o&&o>=n.length)throw this.i(or+String.fromCharCode(e));break}else if(s===kt){if(this.e++,o++,o!==n.length){if(e===Fe)throw this.i(or+",");if(e===Ut)for(let i=n.length;i<o;i++)n.push(null)}}else{if(n.length!==o&&o!==0)throw this.i(rr);{let i=this.O();if(!i||i.type===0)throw this.i(rr);n.push(i)}}}if(!r)throw this.i(Ke+String.fromCharCode(e));return n}gt(){this.e++;let e=this.oe(Fe);if(this.u(Fe))return this.e++,e.length===1?e[0]:e.length?{type:1,expressions:e}:!1;throw this.i(Po)}ht(){return this.e++,{type:9,elements:this.Ne(Ut)}}at(e){if(this.u(Ao)){this.e++;let n=[];for(;!isNaN(this.l);){if(this.y(),this.u(Ht)){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.u(kt)||this.u(Ht)))n.push({type:12,computed:!1,key:r,value:r,shorthand:!0});else if(this.u(Qn)){this.e++;let o=this.O();if(!o)throw this.i(Bo);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.u(kt)&&this.e++}throw this.i(_o)}}pt(e){let n=this.l;if(er.some(r=>r===n&&r===this.r.charCodeAt(this.e+1))){this.e+=2;let r=e.node={type:13,operator:n===mn?"++":"--",argument:this.F(this.ie()),prefix:!0};if(!r.argument||!Zn.includes(r.argument.type))throw this.i(Me+r.operator)}}ut(e){if(e.node){let n=this.l;if(er.some(r=>r===n&&r===this.r.charCodeAt(this.e+1))){if(!Zn.includes(e.node.type))throw this.i(Me+e.node.operator);this.e+=2,e.node={type:13,operator:n===mn?"++":"--",argument:e.node,prefix:!1}}}}ct(e){[0,1,2].every(n=>this.r.charCodeAt(this.e+n)===Ce)&&(this.e+=3,e.node={type:14,argument:this.O()})}it(e){if(e.node&&this.u(fn)){this.e++;let n=e.node,r=this.O();if(!r)throw this.i(nr);if(this.y(),this.u(Qn)){this.e++;let o=this.O();if(!o)throw this.i(nr);if(e.node={type:11,test:n,consequent:r,alternate:o},n.operator&&ze[n.operator]<=.9){let s=n;for(;s.right.operator&&ze[s.right.operator]<=.9;)s=s.right;e.node.test=s.right,s.right=e.node,e.node=n}}else throw this.i(Ho)}}rt(e){if(this.y(),this.u(It)){let n=this.e;if(this.e++,this.y(),this.u(Fe)){this.e++;let r=this.se();if(r==="=>"){let o=this.Ae();if(!o)throw this.i(ln+r);e.node={type:15,params:null,body:o};return}}this.e=n}}ot(e){this.Me(e.node)}Me(e){e&&(Object.values(e).forEach(n=>{n&&typeof n=="object"&&this.Me(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))}st(e){e.node&&this.$(e.node)}$(e){Lo.has(e.operator)?(e.type=16,this.$(e.left),this.$(e.right)):e.operator||Object.values(e).forEach(n=>{n&&typeof n=="object"&&this.$(n)})}mt(e){if(!e.node)return;let n=e.node.type;(n===2||n===3)&&this.u(Xn)&&(e.node={type:17,tag:e.node,quasi:this.Oe(e)})}Oe(e){if(!this.u(Xn))return;let n={type:19,quasis:[],expressions:[]},r="",o="",s=!1,i=this.r.length,a=()=>n.quasis.push({type:18,value:{raw:o,cooked:r},tail:s});for(;this.e<i;){let c=this.r.charAt(++this.e);if(c==="`")return this.e+=1,s=!0,a(),e.node=n,n;if(c==="$"&&this.r.charAt(this.e+1)==="{"){if(this.e+=2,a(),o="",r="",n.expressions.push(...this.oe(Ht)),!this.u(Ht))throw this.i("unclosed ${")}else if(c==="\\")switch(o+=c,c=this.r.charAt(++this.e),o+=c,c){case"n":r+=`
|
|
3
|
+
`;break;case"r":r+="\r";break;case"t":r+=" ";break;case"b":r+="\b";break;case"f":r+="\f";break;case"v":r+="\v";break;default:r+=c}else r+=c,o+=c}throw this.i("Unclosed `")}lt(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}ft(e){if(!this.u(Yn))return;let n=++this.e,r=!1;for(;this.e<this.r.length;){if(this.l===Yn&&!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.u(Dt)?r=!0:r&&this.u(Ut)&&(r=!1),this.e+=this.u(Mo)?2:1}throw this.i("Unclosed Regex")}},fr=t=>new un(t).parse();var Ko={"=>":(t,e)=>{},"=":(t,e)=>{},"*=":(t,e)=>{},"**=":(t,e)=>{},"/=":(t,e)=>{},"%=":(t,e)=>{},"+=":(t,e)=>{},"-=":(t,e)=>{},"<<=":(t,e)=>{},">>=":(t,e)=>{},">>>=":(t,e)=>{},"&=":(t,e)=>{},"^=":(t,e)=>{},"|=":(t,e)=>{},"||":(t,e)=>t()||e(),"??":(t,e)=>{var n;return(n=t())!=null?n:e()},"&&":(t,e)=>t()&&e(),"|":(t,e)=>t|e,"^":(t,e)=>t^e,"&":(t,e)=>t&e,"==":(t,e)=>t==e,"!=":(t,e)=>t!=e,"===":(t,e)=>t===e,"!==":(t,e)=>t!==e,"<":(t,e)=>t<e,">":(t,e)=>t>e,"<=":(t,e)=>t<=e,">=":(t,e)=>t>=e,in:(t,e)=>t in e,"<<":(t,e)=>t<<e,">>":(t,e)=>t>>e,">>>":(t,e)=>t>>>e,"+":(t,e)=>t+e,"-":(t,e)=>t-e,"*":(t,e)=>t*e,"/":(t,e)=>t/e,"%":(t,e)=>t%e,"**":(t,e)=>at(t,e)},Wo={"-":t=>-t,"+":t=>+t,"!":t=>!t,"~":t=>~t,new:t=>t},dr=t=>{if(!(t!=null&&t.some(ur)))return t;let e=[];return t.forEach(n=>ur(n)?e.push(...n):e.push(n)),e},lr=(...t)=>dr(t),hn=(t,e)=>{if(!t)return e;let n=Object.create(e!=null?e:{});return n.$event=t,n},Go={"++":(t,e)=>{let n=t[e];if(y(n)){let r=n();return n(++r),r}return++t[e]},"--":(t,e)=>{let n=t[e];if(y(n)){let r=n();return n(--r),r}return--t[e]}},Jo={"++":(t,e)=>{let n=t[e];if(y(n)){let r=n();return n(r+1),r}return t[e]++},"--":(t,e)=>{let n=t[e];if(y(n)){let r=n();return n(r-1),r}return t[e]--}},mr={"=":(t,e,n)=>{let r=t[e];return y(r)?r(n):t[e]=n},"+=":(t,e,n)=>{let r=t[e];return y(r)?r(r()+n):t[e]+=n},"-=":(t,e,n)=>{let r=t[e];return y(r)?r(r()-n):t[e]-=n},"*=":(t,e,n)=>{let r=t[e];return y(r)?r(r()*n):t[e]*=n},"/=":(t,e,n)=>{let r=t[e];return y(r)?r(r()/n):t[e]/=n},"%=":(t,e,n)=>{let r=t[e];return y(r)?r(r()%n):t[e]%=n},"**=":(t,e,n)=>{let r=t[e];return y(r)?r(at(r(),n)):t[e]=at(t[e],n)},"<<=":(t,e,n)=>{let r=t[e];return y(r)?r(r()<<n):t[e]<<=n},">>=":(t,e,n)=>{let r=t[e];return y(r)?r(r()>>n):t[e]>>=n},">>>=":(t,e,n)=>{let r=t[e];return y(r)?r(r()>>>n):t[e]>>>=n},"|=":(t,e,n)=>{let r=t[e];return y(r)?r(r()|n):t[e]|=n},"&=":(t,e,n)=>{let r=t[e];return y(r)?r(r()&n):t[e]&=n},"^=":(t,e,n)=>{let r=t[e];return y(r)?r(r()^n):t[e]^=n}},Bt=(t,e)=>H(t)?t.bind(e):t,yn=class{constructor(e,n,r,o,s){m(this,"m");m(this,"Le");m(this,"ke");m(this,"Ve");m(this,"A");m(this,"Ie");m(this,"De");this.m=E(e)?e:[e],this.Le=n,this.ke=r,this.Ve=o,this.De=!!s}Ue(e,n){if(n&&e in n)return n;for(let r of this.m)if(e in r)return r}2(e,n,r){let o=e.name;if(o==="$root")return this.m[this.m.length-1];if(o==="$parent")return this.m[1];if(o==="$ctx")return[...this.m];if(r&&o in r)return this.A=r[o],Bt(P(r[o]),r);for(let i of this.m)if(o in i)return this.A=i[o],Bt(P(i[o]),i);let s=this.Le;if(s&&o in s)return this.A=s[o],Bt(P(s[o]),s)}5(e,n,r){return this.m[0]}0(e,n,r){return this.Pe(n,r,lr,...e.body)}1(e,n,r){return this.R(n,r,(...o)=>o.pop(),...e.expressions)}3(e,n,r){let{obj:o,key:s}=this.ae(e,n,r),i=o==null?void 0:o[s];return this.A=i,Bt(P(i),o)}4(e,n,r){return e.value}6(e,n,r){let o=(i,...a)=>H(i)?i(...dr(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,Wo[e.operator],e.argument)}8(e,n,r){let o=Ko[e.operator];switch(e.operator){case"||":case"&&":case"??":return o(()=>this.g(e.left,n,r),()=>this.g(e.right,n,r))}return this.R(n,r,o,e.left,e.right)}9(e,n,r){return this.Pe(++n,r,lr,...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.Ve)!=null?f:()=>!1,a=n===0&&this.De,c=l=>this.Be(a,e.key,n,hn(l,r)),p=l=>this.Be(a,e.value,n,hn(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=P(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?Go:Jo;if(o.type===2){let a=o.name,c=this.Ue(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.Ue(i,r);if(te(a))return;let c=this.g(e.right,n,r);return mr[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 mr[s](i,a,c)}}14(e,n,r){let o=this.g(e.argument,n,r);return E(o)&&(o.s=hr),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=P(this[e.type](e,n,r));return this.Ie=e.type,o}Be(e,n,r,o){let s=this.g(n,r,o);return e&&this.He()?this.A:s}He(){let e=this.Ie;return(e===2||e===3||e===6)&&y(this.A)}eval(e,n){let{value:r,refs:o}=bt(()=>this.g(e,-1,n)),s={value:r,refs:o};return this.He()&&(s.ref=this.A),s}R(e,n,r,...o){let s=o.map(i=>i&&this.g(i,e,n));return r(...s)}Pe(e,n,r,...o){let s=this.ke;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,hn(p,n)):this.g(a,e,n)));return r(...i)}},hr=Symbol("s"),ur=t=>(t==null?void 0:t.s)===hr,yr=(t,e,n,r,o,s,i)=>new yn(e,n,r,o,i).eval(t,s);var gr={},Pt=class{constructor(e,n){m(this,"m");m(this,"o");m(this,"_e",[]);this.m=e,this.o=n}w(e){this.m=[e,...this.m]}Ye(){return this.m.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},{})}C(e,n,r,o,s){var h;let i=z([]),a=[],c=()=>{for(let d of a)d();a.length=0},p={value:i,stop:c,refs:[],context:this.m[0]};if($(e))return p;let f=this.o.globalContext,l=[],u=(d,C,I,x)=>{try{let b=yr(d,C,f,n,r,x,o);return I&&l.push(...b.refs),{value:b.value,refs:b.refs,ref:b.ref}}catch(b){U(6,`evaluation error: ${e}`,b)}return{value:void 0,refs:[]}};try{let d=(h=gr[e])!=null?h:fr("["+e+"]");gr[e]=d;let C=this.m,I=()=>{l.splice(0),c();let x=d.elements.map((b,L)=>n!=null&&n(L,-1)?{value:X=>u(b,C,!1,{$event:X}).value,refs:[]}:u(b,C,!0));if(!s)for(let b of l){let L=S(b,I);a.push(L)}i(x.map(b=>b.value)),p.refs=x.map(b=>b.ref)};I()}catch(d){U(6,`parse error: ${e}`,d)}return p}V(){return this.m}Y(e){this._e.push(this.m),this.m=e}v(e,n){try{this.Y(e),n()}finally{this.bt()}}bt(){var e;this.m=(e=this._e.pop())!=null?e:[]}};var br="http://www.w3.org/1999/xlink",Qo={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 Xo(t){return!!t||t===""}var gn={onChange:(t,e,n,r,o,s)=>{var a;if(r){s&&s.includes("camel")&&(r=B(r)),jt(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];jt(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;jt(t,l,u,d)}else{let f=n==null?void 0:n[c],l=e[c++],u=e[c];jt(t,l,u,f)}}}},jt=(t,e,n,r)=>{if(r&&r!==e&&t.removeAttribute(r),te(e)){U(3,name,t);return}if(!W(e)){U(6,`Attribute key is not string at ${t.outerHTML}`,e);return}if(e.startsWith("xlink:")){te(n)?t.removeAttributeNS(br,e.slice(6,e.length)):t.setAttributeNS(br,e,n);return}let o=e in Qo;te(n)||o&&!Xo(n)?t.removeAttribute(e):t.setAttribute(e,o?"":n)};var Er={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)Tr(t,s[c],i==null?void 0:i[c])}else Tr(t,s,i)}}},Tr=(t,e,n)=>{let r=t.classList,o=W(e),s=W(n);if(e&&!o){if(n&&!s)for(let i in n)i in e||r.remove(i);for(let i in e)e[i]&&r.add(i)}else o?n!==e&&(s&&r.remove(...n==null?void 0:n.split(",")),r.add(...e.split(","))):n&&s&&r.remove(...n==null?void 0:n.split(","))};var Cr={onChange:(t,e)=>{let[n,r]=e;H(r)?r(t,n):t.innerHTML=n==null?void 0:n.toString()}};function Yo(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=le(t[r],e[r]);return n}function le(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=E(t),r=E(e),n||r)return n&&r?Yo(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||!le(t[i],e[i]))return!1}}return String(t)===String(e)}function Vt(t,e){return t.findIndex(n=>le(n,e))}var Rr=t=>{let e=parseFloat(t);return isNaN(e)?t:e};var $t=t=>{if(!y(t))throw _(3,"pause");t(void 0,void 0,3)};var Ft=t=>{if(!y(t))throw _(3,"resume");t(void 0,void 0,4)};var Zo=(t,e)=>{let n=Or(t);if(n&&vr(t))E(e)?e=Vt(e,me(t))>-1:Z(e)?e=e.has(me(t)):e=is(t,e),t.checked=e;else if(n&&Sr(t))t.checked=le(e,me(t));else if(n||Ar(t))wr(t)?t.value!==(e==null?void 0:e.toString())&&(t.value=e):t.value!==e&&(t.value=e);else if(Nr(t)){let r=t.options,o=r.length,s=t.multiple;for(let i=0;i<o;i++){let a=r[i],c=me(a);if(s)E(e)?a.selected=Vt(e,c)>-1:a.selected=e.has(c);else if(le(me(a),e)){t.selectedIndex!==i&&(t.selectedIndex=i);return}}!s&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}else U(7,t)},qt=t=>(y(t)&&(t=t()),H(t)&&(t=t()),t?W(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}),vr=t=>t.type==="checkbox",Sr=t=>t.type==="radio",wr=t=>t.type==="number"||t.type==="range",Or=t=>t.tagName==="INPUT",Ar=t=>t.tagName==="TEXTAREA",Nr=t=>t.tagName==="SELECT",es=(t,e)=>{let n=e.value,r=qt(n()[1]),o=e.refs[0];if(!o)return U(8,t),()=>{};let s=Or(t);return s&&vr(t)?ns(t,o):s&&Sr(t)?as(t,o):s||Ar(t)?ts(t,r,o,n):Nr(t)?cs(t,o,n):(U(7,t),()=>{})},Mr={onChange:(t,e)=>{Zo(t,e[0])},onBind:(t,e)=>es(t,e)},xr=/[.,' ·٫]/,ts=(t,e,n,r)=>{let s=e.lazy?"change":"input",i=wr(t),a=()=>{qt(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,C=qt(r()[1]);if(i||C.number||C.int){if(C.int)d=parseInt(d);else{if(xr.test(d[d.length-1])&&d.split(xr).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 C.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},ns=(t,e)=>{let n="change",r=()=>{t.removeEventListener(n,o)},o=()=>{let s=me(t),i=t.checked,a=e();if(E(a)){let c=Vt(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(ss(t,i))};return t.addEventListener(n,o),r},me=t=>"_value"in t?t._value:t.value,Lr="trueValue",rs="falseValue",kr="true-value",os="false-value",ss=(t,e)=>{let n=e?Lr:rs;if(n in t)return t[n];let r=e?kr:os;return t.hasAttribute(r)?t.getAttribute(r):e},is=(t,e)=>{if(Lr in t)return le(e,t.trueValue);let r=kr;return t.hasAttribute(r)?le(e,t.getAttribute(r)):le(e,!0)},as=(t,e)=>{let n="change",r=()=>{t.removeEventListener(n,o)},o=()=>{let s=me(t);e(s)};return t.addEventListener(n,o),r},cs=(t,e,n)=>{let r="change",o=()=>{t.removeEventListener(r,s)},s=()=>{let a=qt(n()[1]).number,c=Array.prototype.filter.call(t.options,p=>p.selected).map(p=>a?Rr(me(p)):me(p));if(t.multiple){let p=e();try{if($t(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{Ft(e),F(e)}}else e(c[0])};return t.addEventListener(r,s),o};var ps=["stop","prevent","capture","self","once","left","right","middle","passive"],fs=t=>{let e={};if($(t))return;let n=t.split(",");for(let r of ps)e[r]=n.includes(r);return e},Tn={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=P(o.value()[0]);return W(h)?bn(t,B(h),()=>e.value()[0],(f=s==null?void 0:s.join(","))!=null?f:u[1]):()=>{}}else if(r){let u=e.value();return bn(t,B(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 C=d[0],I=()=>{let b=e.value()[u];return H(b)&&(b=b()),b=b[C],H(b)&&(b=b()),b},x=h[C+"_flags"];i.push(bn(t,C,I,x))}else U(2,name,t)}return a}},ls=(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]},bn=(t,e,n,r)=>{if($(e))return U(5,name,t),()=>{};let o=fs(r),s=o?{capture:o.capture,passive:o.passive,once:o.once}:void 0,i;[e,i]=ls(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!==1||o.middle&&f.button!==2||o.right&&f.button!==3||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 Ir={onChange:(t,e,n,r,o,s)=>{if(r){s&&s.includes("camel")&&(r=B(r)),We(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];We(t,p,f)}else if(N(c))for(let p of Object.entries(c)){let f=p[0],l=p[1];We(t,f,l)}else{let p=e[a++],f=e[a];We(t,p,f)}}}};function ms(t){return!!t||t===""}var We=(t,e,n)=>{if(te(e)){U(3,name,t);return}if(e==="innerHTML"||e==="textContent"){let s=[...t.childNodes];setTimeout(()=>s.forEach(oe),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=ms(n):n==null&&s==="string"?(n="",o=!0):s==="number"&&(n=0,o=!0)}try{t[e]=n}catch(s){o||U(4,e,r,n,s)}o&&t.removeAttribute(e)};var Dr={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 Ur={onChange:(t,e)=>{let n=ye(t).data,r=n._ord;Mn(r)&&(r=n._ord=t.style.display),!!e[0]?t.style.display=r:t.style.display="none"}};var Pr={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)Hr(t,s[c],i==null?void 0:i[c])}else Hr(t,s,i)}}},Hr=(t,e,n)=>{let r=t.style,o=W(e);if(e&&!o){if(n&&!W(n))for(let s in n)e[s]==null&&Cn(r,s,"");for(let s in e)Cn(r,s,e[s])}else{let s=r.display;if(o?n!==e&&(r.cssText=e):n&&t.removeAttribute("style"),"_ord"in ye(t).data)return;r.display=s}},_r=/\s*!important$/;function Cn(t,e,n){if(E(n))n.forEach(r=>{Cn(t,e,r)});else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{let r=us(t,e);_r.test(n)?t.setProperty(Pe(r),n.replace(_r,""),"important"):t[r]=n}}var Br=["Webkit","Moz","ms"],En={};function us(t,e){let n=En[e];if(n)return n;let r=B(e);if(r!=="filter"&&r in t)return En[e]=r;r=et(r);for(let o=0;o<Br.length;o++){let s=Br[o]+r;if(s in t)return En[e]=s}return e}var Q=t=>ds(P(t)),ds=t=>{if(!t||!N(t))return t;if(E(t))return t.map(Q);if(Z(t)){let n=new Set;for(let r of t.keys())n.add(Q(r));return n}if(he(t)){let n=new Map;for(let r of n)n.set(Q(r[0]),Q(r[1]));return n}let e=ct({},t);for(let n of Object.entries(e))e[n[0]]=Q(n[1]);return e};var jr={onChange:(t,e)=>{var r;let n=e[0];t.textContent=Z(n)?JSON.stringify(Q([...n])):he(n)?JSON.stringify(Q([...n])):N(n)?JSON.stringify(Q(n)):(r=n==null?void 0:n.toString())!=null?r:""}};var Vr={onChange:(t,e)=>{We(t,"value",e[0])}};var Le=t=>(t==null?void 0:t[lt])===1;var Re=t=>{if(je(t))return t;let e;if(y(t)?(e=t,t=e()):e=z(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];Le(o)||(t[r]=Re(o))}return e}if(!N(t))return e;for(let n of Object.entries(t)){let r=n[1];if(Le(r))continue;let o=n[0];Qe(o)||(t[o]=Re(r))}return e};var xe=class xe{constructor(e){m(this,"_",{});m(this,"f",{});m(this,"Ze",()=>Object.keys(this._).filter(e=>e.length===1||!e.startsWith(":")));m(this,"ye",new Map);m(this,"he",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.xt()}static getDefault(){var e;return(e=xe.je)!=null?e:xe.je=new xe}xt(){let e={},n=globalThis;for(let r of xe.Tt.split(","))e[r]=n[r];return e.ref=Re,e.sref=z,e.flatten=Q,e}addComponent(...e){for(let n of e){if(!n.defaultName){Xe.warning("Registered component's default name is not defined",n);continue}this.ye.set(et(n.defaultName),n),this.he.set(et(n.defaultName).toLocaleUpperCase(),n)}}setDirectives(e){this._={".":Ir,":":gn,"@":Tn,[`${e}on`]:Tn,[`${e}bind`]:gn,[`${e}html`]:Cr,[`${e}text`]:jr,[`${e}show`]:Ur,[`${e}model`]:Mr,":style":Pr,":class":Er,":ref":Dr,":value":Vr,teleport:Mt},this.f={for:`${e}for`,if:`${e}if`,else:`${e}else`,elseif:`${e}else-if`,pre:`${e}pre`,inherit:`${e}inherit`,text:`${e}text`,props:":props",propsOnce:":props-once",bind:`${e}bind`,on:`${e}on`,keyBind:":key",key:"key",is:":is",teleport:`${e}teleport`,dynamic:"_d_"}}updateDirectives(e){e(this._,this.f)}};m(xe,"je"),m(xe,"Tt","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 ie=xe;var zt=(t,e)=>{if(!t)return;let n=(e!=null?e:ie.getDefault()).f;for(let r of gs(t,n.pre))ys(r,n.text)},hs=/({{[^]*?}})/g,ys=(t,e)=>{var i;let n=t.textContent;if(!n)return;let r=hs,o=n.split(r);if(o.length<=1)return;if(((i=t.parentElement)==null?void 0:i.childNodes.length)===1&&o.length===3){let a=o[1];if($(o[0])&&$(o[2])&&a.startsWith("{{")&&a.endsWith("}}")){let c=t.parentElement;c.setAttribute(e,a.substring(2,a.length-2)),c.innerText="";return}}let s=document.createDocumentFragment();for(let a of o)if(a.startsWith("{{")&&a.endsWith("}}")){let c=document.createElement("span");c.setAttribute(e,a.substring(2,a.length-2)),s.appendChild(c)}else s.appendChild(document.createTextNode(a));t.replaceWith(s)},gs=(t,e)=>{let n=[],r=o=>{var s,i;if(o.nodeType===Node.TEXT_NODE)(s=o.textContent)!=null&&s.includes("{{")&&n.push(o);else{if((i=o==null?void 0:o.hasAttribute)!=null&&i.call(o,e))return;for(let a of fe(o))r(a)}};return r(t),n};var bs="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",Ts=new Set(bs.toUpperCase().split(",")),Es="http://www.w3.org/2000/svg",$r=(t,e)=>{se(t)?t.content.appendChild(e):t.appendChild(e)},Rn=(t,e,n,r)=>{var i;let o=t.t;if(o){let a=n&&Ts.has(o.toUpperCase())?document.createElementNS(Es,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)Rn(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.")}},ke=(t,e,n)=>{n!=null||(n=ie.getDefault());let r=document.createDocumentFragment();if(!E(t))return Rn(t,r,!!e,n),r;for(let o of t)Rn(o,r,!!e,n);return r};var Fr=(t,e={selector:"#app"},n)=>{Gn(t)&&(t=t.context);let r=e.element?e.element:e.selector?document.querySelector(e.selector):null;if(!r||!Oe(r))throw _(0);n||(n=ie.getDefault());let o=()=>{for(let a of[...r.childNodes])j(a)},s=a=>{for(let c of a)r.appendChild(c)};if(e.html){let a=document.createRange().createContextualFragment(e.html);o(),s(a.childNodes),e.element=a}else if(e.json){let a=ke(e.json,e.isSVG,n);o(),s(a.childNodes)}return n.useInterpolation&&zt(r,n),new xn(t,r,n).x(),D(r,()=>{Ee(t)}),Ot(t),{context:t,unmount:()=>{j(r)},unbind:()=>{oe(r)}}},xn=class{constructor(e,n,r){m(this,"Et");m(this,"Fe");m(this,"o");m(this,"h");m(this,"p");this.Et=e,this.Fe=n,this.o=r,this.h=new Pt([e],r),this.p=new Lt(this.h)}x(){this.p.G(this.Fe)}};var Ge=t=>{if(E(t))return t.map(o=>Ge(o));let e={};if(t.tagName)e.t=t.tagName;else return t.nodeType===Node.COMMENT_NODE&&(e.n=Node.COMMENT_NODE),t.textContent&&(e.d=t.textContent),e;let n=t.getAttributeNames();n.length>0&&(e.a=Object.fromEntries(n.map(o=>[o,t.getAttribute(o)])));let r=fe(t);return r.length>0&&(e.c=[...r].map(o=>Ge(o))),e};var qr=(t,e,n={})=>{var s,i,a,c;let r=!1;if(e.element){let p=e.element;p.remove(),e.element=p}else if(e.selector){let p=document.querySelector(e.selector);if(!p)throw _(1,name);p.remove(),e.element=p}else if(e.html){let p=document.createRange().createContextualFragment(e.html);e.element=p}else e.json&&(e.element=ke(e.json,e.isSVG,n.config),r=!0);e.element||(e.element=document.createDocumentFragment()),((s=n.useInterpolation)==null||s)&&zt(e.element);let o=e.element;if(!r&&(((a=e.isSVG)!=null?a:Ze(o)&&((i=o.hasAttribute)!=null&&i.call(o,"isSVG")))||Ze(o)&&o.querySelector("[isSVG]"))){let p=e.element.content,f=p?[...p.childNodes]:[...o.childNodes],l=Ge(f);e.element=ke(l,!0,n.config)}return{context:t,template:e.element,inheritAttrs:(c=n.inheritAttrs)!=null?c:!0,props:n.props,defaultName:n.defaultName}};var zr=t=>{let e,n={},r=(...o)=>{if(o.length<=2&&0 in o)throw _(4);return e&&!n.isStopped?e(...o):(e=Cs(t,n),e(...o))};return r[J]=1,Te(r,!0),r.stop=()=>{var o,s;return(s=(o=n.ref)==null?void 0:o.stop)==null?void 0:s.call(o)},G(()=>r.stop(),!0),r},Cs=(t,e)=>{var s;let n=(s=e.ref)!=null?s:z(null);e.ref=n,e.isStopped=!1;let r=0,o=Ae(()=>{if(r>0){o(),e.isStopped=!0,F(n);return}n(t()),++r});return n.stop=o,n};var Kr=(t,e)=>{let n={},r,o=(...s)=>{if(s.length<=2&&0 in s)throw _(4);return r&&!n.isStopped?r(...s):(r=Rs(t,e,n),r(...s))};return o[J]=1,Te(o,!0),o.stop=()=>{var s,i;return(i=(s=n.ref)==null?void 0:s.stop)==null?void 0:i.call(s)},G(()=>o.stop(),!0),o},Rs=(t,e,n)=>{var a;let r=(a=n.ref)!=null?a:z(null);n.ref=r,n.isStopped=!1;let o=0,s=c=>{if(o>0){r.stop(),n.isStopped=!0,F(r);return}r(e(...t.map(p=>p()))),++o},i=[];for(let c of t){let p=S(c,s);i.push(p)}return s(null),r.stop=()=>{i.forEach(c=>{c()})},r};var Wr=(t,e)=>{let n={},r,o=(...s)=>{if(s.length<=2&&0 in s)throw _(4);return r&&!n.isStopped?r(...s):(r=xs(t,e,n),r(...s))};return o[J]=1,Te(o,!0),o.stop=()=>{var s,i;return(i=(s=n.ref)==null?void 0:s.stop)==null?void 0:i.call(s)},G(()=>o.stop(),!0),o},xs=(t,e,n)=>{var s;let r=(s=n.ref)!=null?s:z(null);n.ref=r,n.isStopped=!1;let o=0;return r.stop=S(t,i=>{if(o>0){r.stop(),n.isStopped=!0,F(r);return}r(e(i)),++o},!0),r};var Gr=t=>(t[mt]=1,t);var Jr=(t,e)=>{if(!e)throw new Error("persist requires a string key.");let r=Le(t)?Re:a=>a,o=()=>localStorage.setItem(e,JSON.stringify(Q(t()))),s=localStorage.getItem(e);s!=null?t(r(JSON.parse(s))):o();let i=Ae(o);return G(()=>i,!0),t};var vn=(t,...e)=>{let n="";return e.length===0?t.join():(t.forEach((r,o)=>{n+=r+e[o]}),n)},Qr=vn;var Xr=(t,e,n)=>{let r=[],o=()=>{e(t.map(i=>i()))};for(let i of t)r.push(S(i,o));n&&o();let s=()=>{for(let i of r)i()};return G(s,!0),s};var Yr=t=>{if(!y(t))throw _(3,"observe");return t(void 0,void 0,2)};var Zr=t=>{Sn();try{t()}finally{wn()}},Sn=()=>{Ne.set||(Ne.set=new Set)},wn=()=>{let t=Ne.set;if(t){delete Ne.set;for(let e of t)try{F(e)}catch(n){console.error(n)}}};var eo=t=>{var e;(e=we())==null||e.onMounted.push(t)};
|