@jasonshimmy/custom-elements-runtime 2.7.0 → 2.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,9 @@
1
- import { j as K, t as J, i as P, k as We, m as x, o as V, p as U, q, T as St, v as Xe, S as Ct, x as dt, y as _e, z as Y, A as kt, B as tt, a as nt, C as rt, d as _t } from "./namespace-helpers-DhLBqt-7.js";
1
+ import { j as K, t as J, i as P, k as We, m as x, o as V, p as U, q, T as Ct, v as Xe, S as kt, x as pt, y as _e, z as Y, A as _t, B as tt, a as nt, C as rt, d as At } from "./namespace-helpers-DhLBqt-7.js";
2
2
  import { a as ee, d as B } from "./logger-BvkEbVM4.js";
3
- import { j as At, g as wt, a as Re, b as ye, m as Ae, s as Tt, d as st } from "./transitions-DMJXs_tY.js";
3
+ import { resetWhenCounter as st } from "./custom-elements-runtime.directives.es.js";
4
+ import { j as wt, g as Tt, a as Re, b as ye, m as Ae, s as Lt, d as ot } from "./transitions-DMJXs_tY.js";
4
5
  const ge = /* @__PURE__ */ new Map(), Ke = /* @__PURE__ */ Symbol.for("cer.registry");
5
- function Lt() {
6
+ function Nt() {
6
7
  if (!(typeof window > "u" && typeof document > "u" && typeof navigator > "u"))
7
8
  try {
8
9
  const n = globalThis;
@@ -14,58 +15,58 @@ function Lt() {
14
15
  ee("Could not initialize global registry:", n);
15
16
  }
16
17
  }
17
- function Nt(e, n, t) {
18
+ function Ot(e, n, t) {
18
19
  if (t)
19
20
  for (const [s, r] of Object.entries(t)) {
20
- let o, i = {};
21
- if (Array.isArray(r) ? (o = r[0], i = r[1] || {}) : o = r, n.set(s, {
22
- callback: o,
23
- options: i,
21
+ let i, o = {};
22
+ if (Array.isArray(r) ? (i = r[0], o = r[1] || {}) : i = r, n.set(s, {
23
+ callback: i,
24
+ options: o,
24
25
  oldValue: K(e, s)
25
- }), i.immediate)
26
+ }), o.immediate)
26
27
  try {
27
28
  const c = K(e, s);
28
- o(c, void 0, e);
29
+ i(c, void 0, e);
29
30
  } catch (c) {
30
31
  B(`Error in immediate watcher for "${s}":`, c);
31
32
  }
32
33
  }
33
34
  }
34
- function Ot(e, n, t, s) {
35
- const r = (i, c) => {
36
- if (i === c) return !0;
37
- if (typeof i != typeof c || typeof i != "object" || i === null || c === null) return !1;
38
- if (Array.isArray(i) && Array.isArray(c))
39
- return i.length !== c.length ? !1 : i.every((d, k) => r(d, c[k]));
40
- const f = i, u = c, h = Object.keys(f || {}), p = Object.keys(u || {});
35
+ function jt(e, n, t, s) {
36
+ const r = (o, c) => {
37
+ if (o === c) return !0;
38
+ if (typeof o != typeof c || typeof o != "object" || o === null || c === null) return !1;
39
+ if (Array.isArray(o) && Array.isArray(c))
40
+ return o.length !== c.length ? !1 : o.every((d, k) => r(d, c[k]));
41
+ const f = o, u = c, h = Object.keys(f || {}), p = Object.keys(u || {});
41
42
  return h.length !== p.length ? !1 : h.every((d) => r(f[d], u[d]));
42
- }, o = n.get(t);
43
- if (o && !r(s, o.oldValue))
43
+ }, i = n.get(t);
44
+ if (i && !r(s, i.oldValue))
44
45
  try {
45
- o.callback(s, o.oldValue, e), o.oldValue = s;
46
- } catch (i) {
47
- B(`Error in watcher for "${t}":`, i);
46
+ i.callback(s, i.oldValue, e), i.oldValue = s;
47
+ } catch (o) {
48
+ B(`Error in watcher for "${t}":`, o);
48
49
  }
49
- for (const [i, c] of n.entries())
50
- if (c.options.deep && t.startsWith(i + "."))
50
+ for (const [o, c] of n.entries())
51
+ if (c.options.deep && t.startsWith(o + "."))
51
52
  try {
52
- const f = K(e, i);
53
+ const f = K(e, o);
53
54
  r(f, c.oldValue) || (c.callback(f, c.oldValue, e), c.oldValue = f);
54
55
  } catch (f) {
55
- B(`Error in deep watcher for "${i}":`, f);
56
+ B(`Error in deep watcher for "${o}":`, f);
56
57
  }
57
58
  }
58
59
  function Ve(e, n) {
59
60
  return n === Boolean ? e === "" || e === "true" : n === Number ? Number(e) : e;
60
61
  }
61
- function jt(e, n, t) {
62
+ function Mt(e, n, t) {
62
63
  if (n)
63
64
  for (const s in n) {
64
- const r = n[s], o = J(s), i = e.getAttribute(o);
65
+ const r = n[s], i = J(s), o = e.getAttribute(i);
65
66
  if (r.type === Function && typeof e[s] == "function")
66
67
  t[s] = e[s];
67
- else if (i !== null)
68
- t[s] = Ve(i, r.type);
68
+ else if (o !== null)
69
+ t[s] = Ve(o, r.type);
69
70
  else if (typeof e[s] < "u")
70
71
  try {
71
72
  const c = e[s];
@@ -82,7 +83,7 @@ function jt(e, n, t) {
82
83
  else "default" in r && r.default !== void 0 && (t[s] = r.default);
83
84
  }
84
85
  }
85
- function Mt(e, n, t) {
86
+ function Pt(e, n, t) {
86
87
  if (!n.props) {
87
88
  try {
88
89
  const s = t?._hookCallbacks?.props || {}, r = Array.from(
@@ -91,27 +92,27 @@ function Mt(e, n, t) {
91
92
  ...Object.keys(s || {})
92
93
  ])
93
94
  );
94
- for (const o of r) {
95
- if (typeof o != "string" || o.startsWith("_")) continue;
96
- const i = Object.getOwnPropertyDescriptor(t, o);
95
+ for (const i of r) {
96
+ if (typeof i != "string" || i.startsWith("_")) continue;
97
+ const o = Object.getOwnPropertyDescriptor(t, i);
97
98
  if (!(!Object.prototype.hasOwnProperty.call(
98
99
  s,
99
- o
100
- ) && i && (i.get || i.set || !i.configurable)))
100
+ i
101
+ ) && o && (o.get || o.set || !o.configurable)))
101
102
  try {
102
- Object.defineProperty(t, o, {
103
+ Object.defineProperty(t, i, {
103
104
  enumerable: !0,
104
105
  configurable: !0,
105
106
  get() {
106
107
  try {
107
- const f = J(o), u = e.getAttribute(f);
108
+ const f = J(i), u = e.getAttribute(f);
108
109
  if (u !== null)
109
110
  return u;
110
- const h = e[o];
111
+ const h = e[i];
111
112
  let p;
112
113
  return P(h) || h && typeof h == "object" && "value" in h && !(h instanceof Node) ? p = h.value : p = h, p;
113
114
  } catch {
114
- return e[o];
115
+ return e[i];
115
116
  }
116
117
  }
117
118
  });
@@ -122,15 +123,15 @@ function Mt(e, n, t) {
122
123
  }
123
124
  return;
124
125
  }
125
- jt(e, n.props, t);
126
+ Mt(e, n.props, t);
126
127
  }
127
- function Pt(e, n, t, s) {
128
+ function $t(e, n, t, s) {
128
129
  e.onConnected && !t && (e.onConnected(n), s(!0));
129
130
  }
130
- function $t(e, n, t, s, r, o, i, c) {
131
- e.onDisconnected && e.onDisconnected(n), t.forEach((f) => f()), s(), r(), o(!1), i(null), c(!1);
131
+ function xt(e, n, t, s, r, i, o, c) {
132
+ e.onDisconnected && e.onDisconnected(n), t.forEach((f) => f()), s(), r(), i(!1), o(null), c(!1);
132
133
  }
133
- function xt(e, n, t, s, r) {
134
+ function Rt(e, n, t, s, r) {
134
135
  e.onAttributeChanged && e.onAttributeChanged(n, t, s, r);
135
136
  }
136
137
  class ne {
@@ -140,7 +141,7 @@ class ne {
140
141
  */
141
142
  static addListener(n, t, s, r) {
142
143
  n.addEventListener(t, s, r);
143
- const i = {
144
+ const o = {
144
145
  event: t,
145
146
  handler: s,
146
147
  wrapper: s,
@@ -150,19 +151,19 @@ class ne {
150
151
  };
151
152
  this.cleanupFunctions.has(n) || this.cleanupFunctions.set(n, []);
152
153
  const c = this.cleanupFunctions.get(n);
153
- c.push(i), c.__metaList = c;
154
+ c.push(o), c.__metaList = c;
154
155
  }
155
156
  /**
156
157
  * Remove a specific event listener
157
158
  */
158
159
  static removeListener(n, t, s, r) {
159
160
  n.removeEventListener(t, s, r);
160
- const o = this.cleanupFunctions.get(n);
161
- if (o)
162
- for (let i = 0; i < o.length; i++) {
163
- const c = o[i];
161
+ const i = this.cleanupFunctions.get(n);
162
+ if (i)
163
+ for (let o = 0; o < i.length; o++) {
164
+ const c = i[o];
164
165
  if (c.event === t && c.handler === s) {
165
- o.splice(i, 1), o.length === 0 && this.cleanupFunctions.delete(n);
166
+ i.splice(o, 1), i.length === 0 && this.cleanupFunctions.delete(n);
166
167
  return;
167
168
  }
168
169
  }
@@ -212,7 +213,7 @@ class ne {
212
213
  })) : [];
213
214
  }
214
215
  }
215
- class Rt {
216
+ class Ht {
216
217
  static cache = /* @__PURE__ */ new Map();
217
218
  static maxCacheSize = 1e3;
218
219
  // Dangerous patterns to block
@@ -248,8 +249,8 @@ class Rt {
248
249
  }
249
250
  const r = this.createEvaluator(n);
250
251
  if (this.cache.size >= this.maxCacheSize) {
251
- const o = this.cache.keys().next().value;
252
- o && this.cache.delete(o);
252
+ const i = this.cache.keys().next().value;
253
+ i && this.cache.delete(i);
253
254
  }
254
255
  if (this.cache.set(n, r), !r.isSecure) {
255
256
  ee("Blocked dangerous expression:", n);
@@ -287,26 +288,26 @@ class Rt {
287
288
  static createObjectEvaluator(n) {
288
289
  const t = n.trim().slice(1, -1), s = this.parseObjectProperties(t);
289
290
  return (r) => {
290
- const o = {};
291
- for (const { key: i, value: c } of s)
291
+ const i = {};
292
+ for (const { key: o, value: c } of s)
292
293
  try {
293
294
  if (c.startsWith("ctx.")) {
294
295
  const f = c.slice(4);
295
- o[i] = K(r, f);
296
+ i[o] = K(r, f);
296
297
  } else
297
- o[i] = this.evaluateSimpleValue(c, r);
298
+ i[o] = this.evaluateSimpleValue(c, r);
298
299
  } catch {
299
- o[i] = void 0;
300
+ i[o] = void 0;
300
301
  }
301
- return o;
302
+ return i;
302
303
  };
303
304
  }
304
305
  static parseObjectProperties(n) {
305
306
  const t = [], s = n.split(",");
306
307
  for (const r of s) {
307
- const o = r.indexOf(":");
308
- if (o === -1) continue;
309
- const i = r.slice(0, o).trim(), c = r.slice(o + 1).trim(), f = i.replace(/^['"]|['"]$/g, "");
308
+ const i = r.indexOf(":");
309
+ if (i === -1) continue;
310
+ const o = r.slice(0, i).trim(), c = r.slice(i + 1).trim(), f = o.replace(/^['"]|['"]$/g, "");
310
311
  t.push({ key: f, value: c });
311
312
  }
312
313
  return t;
@@ -320,8 +321,8 @@ class Rt {
320
321
  /("[^"\\]*(?:\\.[^"\\]*)*"|'[^'\\]*(?:\\.[^'\\]*)*')/g,
321
322
  (p) => `<<#${r.push(p) - 1}#>>`
322
323
  );
323
- const o = s.match(/ctx\.[\w.]+/g) || [];
324
- for (const p of o) {
324
+ const i = s.match(/ctx\.[\w.]+/g) || [];
325
+ for (const p of i) {
325
326
  const d = p.slice(4), k = K(t, d);
326
327
  if (k === void 0) return;
327
328
  const j = r.push(JSON.stringify(k)) - 1;
@@ -330,7 +331,7 @@ class Rt {
330
331
  `<<#${j}#>>`
331
332
  );
332
333
  }
333
- const i = /\b[a-zA-Z_][a-zA-Z0-9_]*(?:\.[a-zA-Z_][a-zA-Z0-9_]*)+\b/g, c = s.match(i) || [];
334
+ const o = /\b[a-zA-Z_][a-zA-Z0-9_]*(?:\.[a-zA-Z_][a-zA-Z0-9_]*)+\b/g, c = s.match(o) || [];
334
335
  for (const p of c) {
335
336
  if (p.startsWith("ctx.")) continue;
336
337
  const d = K(t, p);
@@ -387,7 +388,7 @@ class Rt {
387
388
  function r() {
388
389
  return t[s];
389
390
  }
390
- function o(g) {
391
+ function i(g) {
391
392
  const _ = t[s++];
392
393
  if (g && !_)
393
394
  throw new Error(`Unexpected token EOF, expected ${g}`);
@@ -397,7 +398,7 @@ class Rt {
397
398
  );
398
399
  return _;
399
400
  }
400
- function i() {
401
+ function o() {
401
402
  return j();
402
403
  }
403
404
  function c(g) {
@@ -453,10 +454,10 @@ class Rt {
453
454
  function j() {
454
455
  const g = A(), _ = r();
455
456
  if (_ && _.value === "?") {
456
- o("?");
457
- const l = i();
458
- o(":");
459
- const y = i();
457
+ i("?");
458
+ const l = o();
459
+ i(":");
460
+ const y = o();
460
461
  return g ? l : y;
461
462
  }
462
463
  return g;
@@ -466,7 +467,7 @@ class Rt {
466
467
  for (; ; ) {
467
468
  const _ = r();
468
469
  if (!_ || _.value !== "||") break;
469
- o("OP");
470
+ i("OP");
470
471
  const l = a();
471
472
  g = g || l;
472
473
  }
@@ -477,7 +478,7 @@ class Rt {
477
478
  for (; ; ) {
478
479
  const _ = r();
479
480
  if (!_ || _.value !== "&&") break;
480
- o("OP");
481
+ i("OP");
481
482
  const l = b();
482
483
  g = g && l;
483
484
  }
@@ -488,7 +489,7 @@ class Rt {
488
489
  for (; ; ) {
489
490
  const _ = r();
490
491
  if (!_ || !["==", "!=", "===", "!=="].includes(_.value)) break;
491
- const l = o("OP").value, y = E();
492
+ const l = i("OP").value, y = E();
492
493
  switch (l) {
493
494
  case "==":
494
495
  g = g == y;
@@ -511,7 +512,7 @@ class Rt {
511
512
  for (; ; ) {
512
513
  const _ = r();
513
514
  if (!_ || ![">", "<", ">=", "<="].includes(_.value)) break;
514
- const l = o("OP").value, y = m();
515
+ const l = i("OP").value, y = m();
515
516
  switch (l) {
516
517
  case ">":
517
518
  g = k(">", g, y);
@@ -534,7 +535,7 @@ class Rt {
534
535
  for (; ; ) {
535
536
  const _ = r();
536
537
  if (!_ || _.value !== "+" && _.value !== "-") break;
537
- const l = o("OP").value, y = v();
538
+ const l = i("OP").value, y = v();
538
539
  g = l === "+" ? f(g, y) : u(g, y);
539
540
  }
540
541
  return g;
@@ -545,7 +546,7 @@ class Rt {
545
546
  const _ = r();
546
547
  if (!_ || _.value !== "*" && _.value !== "/" && _.value !== "%")
547
548
  break;
548
- const l = o("OP").value, y = S();
549
+ const l = i("OP").value, y = S();
549
550
  switch (l) {
550
551
  case "*":
551
552
  g = h(g, y);
@@ -563,9 +564,9 @@ class Rt {
563
564
  function S() {
564
565
  const g = r();
565
566
  if (g && g.value === "!")
566
- return o("OP"), !S();
567
+ return i("OP"), !S();
567
568
  if (g && g.value === "-") {
568
- o("OP");
569
+ i("OP");
569
570
  const _ = S();
570
571
  return u(0, _);
571
572
  }
@@ -575,39 +576,39 @@ class Rt {
575
576
  const g = r();
576
577
  if (g) {
577
578
  if (g.type === "NUMBER")
578
- return o("NUMBER"), Number(g.value);
579
+ return i("NUMBER"), Number(g.value);
579
580
  if (g.type === "STRING")
580
- return o("STRING"), g.value.slice(1, -1);
581
+ return i("STRING"), g.value.slice(1, -1);
581
582
  if (g.type === "IDENT")
582
- return o("IDENT"), g.value === "true" ? !0 : g.value === "false" ? !1 : g.value === "null" ? null : void 0;
583
+ return i("IDENT"), g.value === "true" ? !0 : g.value === "false" ? !1 : g.value === "null" ? null : void 0;
583
584
  if (g.value === "[") {
584
- o("PUNC");
585
+ i("PUNC");
585
586
  const _ = [];
586
587
  for (; ; ) {
587
588
  const l = r();
588
589
  if (!l || l.value === "]") break;
589
- _.push(i());
590
+ _.push(o());
590
591
  const y = r();
591
- y && y.value === "," && o("PUNC");
592
+ y && y.value === "," && i("PUNC");
592
593
  }
593
- return o("PUNC"), _;
594
+ return i("PUNC"), _;
594
595
  }
595
596
  if (g.value === "(") {
596
- o("PUNC");
597
- const _ = i();
598
- return o("PUNC"), _;
597
+ i("PUNC");
598
+ const _ = o();
599
+ return i("PUNC"), _;
599
600
  }
600
601
  throw new Error("Unexpected token in expression");
601
602
  }
602
603
  }
603
- return i();
604
+ return o();
604
605
  }
605
606
  static tokenize(n) {
606
607
  const t = [], s = /\s*(=>|===|!==|==|!=|>=|<=|\|\||&&|[()?:,[\]]|\+|-|\*|\/|%|>|<|!|\d+\.?\d*|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|[a-zA-Z_][a-zA-Z0-9_]*|\S)\s*/g;
607
608
  let r;
608
609
  for (; (r = s.exec(n)) !== null; ) {
609
- const o = r[1];
610
- o && (/^\d/.test(o) ? t.push({ type: "NUMBER", value: o }) : /^"/.test(o) || /^'/.test(o) ? t.push({ type: "STRING", value: o }) : /^[a-zA-Z_]/.test(o) ? t.push({ type: "IDENT", value: o }) : /^[()?:,[\]]$/.test(o) ? t.push({ type: "PUNC", value: o }) : t.push({ type: "OP", value: o }));
610
+ const i = r[1];
611
+ i && (/^\d/.test(i) ? t.push({ type: "NUMBER", value: i }) : /^"/.test(i) || /^'/.test(i) ? t.push({ type: "STRING", value: i }) : /^[a-zA-Z_]/.test(i) ? t.push({ type: "IDENT", value: i }) : /^[()?:,[\]]$/.test(i) ? t.push({ type: "PUNC", value: i }) : t.push({ type: "OP", value: i }));
611
612
  }
612
613
  return t;
613
614
  }
@@ -633,15 +634,15 @@ function He(e, n) {
633
634
  }
634
635
  function it(e, n, t, s, r) {
635
636
  if (e) {
636
- const o = n.value;
637
- if (r && typeof o == "object" && o !== null) {
638
- const i = { ...o };
639
- i[r] = t, n.value = i;
637
+ const i = n.value;
638
+ if (r && typeof i == "object" && i !== null) {
639
+ const o = { ...i };
640
+ o[r] = t, n.value = o;
640
641
  } else
641
642
  n.value = t;
642
643
  } else {
643
- const o = s._state || s;
644
- We(o, n, t);
644
+ const i = s._state || s;
645
+ We(i, n, t);
645
646
  }
646
647
  }
647
648
  function Ie(e, n, t, s) {
@@ -650,19 +651,19 @@ function Ie(e, n, t, s) {
650
651
  e._triggerWatchers(r, s);
651
652
  }
652
653
  }
653
- function Ht(e, n, t) {
654
- const s = `update:${J(n)}`, r = `update:${n}`, o = new CustomEvent(s, {
654
+ function It(e, n, t) {
655
+ const s = `update:${J(n)}`, r = `update:${n}`, i = new CustomEvent(s, {
655
656
  detail: t,
656
657
  bubbles: !0,
657
658
  cancelable: !0
658
- }), i = new CustomEvent(r, {
659
+ }), o = new CustomEvent(r, {
659
660
  detail: t,
660
661
  bubbles: !0,
661
662
  cancelable: !0
662
663
  });
663
- e.dispatchEvent(o), e.dispatchEvent(i);
664
+ e.dispatchEvent(i), e.dispatchEvent(o);
664
665
  }
665
- function ot(e, n, t, s) {
666
+ function ct(e, n, t, s) {
666
667
  const r = t;
667
668
  if (x(() => {
668
669
  if (typeof e.setAttribute == "function")
@@ -673,19 +674,19 @@ function ot(e, n, t, s) {
673
674
  else
674
675
  e[n] = r;
675
676
  }), r == null || typeof r == "string" || typeof r == "number" || typeof r == "boolean") {
676
- const o = V(r);
677
- o !== null ? x(() => {
677
+ const i = V(r);
678
+ i !== null ? x(() => {
678
679
  typeof e.setAttribute == "function" && U(
679
680
  e,
680
681
  J(n),
681
- String(o)
682
+ String(i)
682
683
  );
683
684
  }) : x(() => {
684
685
  typeof e.removeAttribute == "function" && q(e, J(n));
685
686
  });
686
687
  }
687
688
  }
688
- function It(e, n, t, s) {
689
+ function Dt(e, n, t, s) {
689
690
  if (e) {
690
691
  const r = n.value;
691
692
  return s && typeof r == "object" && r !== null ? r[s] : r;
@@ -700,7 +701,7 @@ function Ne(e) {
700
701
  function Ge(e) {
701
702
  return e != null && typeof e == "object" && "value" in e ? e.value : e;
702
703
  }
703
- function ie(e, n, t) {
704
+ function oe(e, n, t) {
704
705
  if (!e) return;
705
706
  e.attrs || (e.attrs = {});
706
707
  const s = e.attrs;
@@ -712,41 +713,41 @@ function Q(e) {
712
713
  function pe(e) {
713
714
  return e != null && typeof e == "object" && "value" in e ? pe(e.value) : !(e != null && typeof e == "object" || e === !1 || e === "false" || e === null || e === void 0 || e === 0);
714
715
  }
715
- function pt(e) {
716
+ function ht(e) {
716
717
  return e.substring(2, 3).toLowerCase() + e.substring(3);
717
718
  }
718
719
  function Ze(e) {
719
720
  return typeof e == "boolean" || e === "true" || e === "false";
720
721
  }
721
- function Dt(e, n, t, s, r, o, i, c) {
722
- if (!o) return;
722
+ function Bt(e, n, t, s, r, i, o, c) {
723
+ if (!i) return;
723
724
  const f = n.includes("lazy"), u = n.includes("trim"), h = n.includes("number"), p = () => {
724
725
  if (P(e)) {
725
726
  const v = e.value;
726
- return c && i && (i instanceof HTMLInputElement || i instanceof HTMLTextAreaElement || i instanceof HTMLSelectElement) && typeof v == "object" && v !== null ? v[c] : v;
727
+ return c && o && (o instanceof HTMLInputElement || o instanceof HTMLTextAreaElement || o instanceof HTMLSelectElement) && typeof v == "object" && v !== null ? v[c] : v;
727
728
  }
728
- const m = o?._state || o;
729
+ const m = i?._state || i;
729
730
  return K(m, e);
730
731
  }, d = p();
731
732
  let k = "text";
732
- i instanceof HTMLInputElement ? k = s?.type || i.type || "text" : i instanceof HTMLSelectElement ? k = "select" : i instanceof HTMLTextAreaElement && (k = "textarea");
733
- const j = i instanceof HTMLInputElement || i instanceof HTMLTextAreaElement || i instanceof HTMLSelectElement, a = j ? k === "checkbox" || k === "radio" ? "checked" : "value" : c ?? "modelValue";
733
+ o instanceof HTMLInputElement ? k = s?.type || o.type || "text" : o instanceof HTMLSelectElement ? k = "select" : o instanceof HTMLTextAreaElement && (k = "textarea");
734
+ const j = o instanceof HTMLInputElement || o instanceof HTMLTextAreaElement || o instanceof HTMLSelectElement, a = j ? k === "checkbox" || k === "radio" ? "checked" : "value" : c ?? "modelValue";
734
735
  if (k === "checkbox")
735
736
  if (Array.isArray(d))
736
737
  t[a] = d.includes(
737
- String(i?.getAttribute("value") ?? s?.value ?? "")
738
+ String(o?.getAttribute("value") ?? s?.value ?? "")
738
739
  );
739
740
  else {
740
- const m = i?.getAttribute("true-value") ?? !0;
741
+ const m = o?.getAttribute("true-value") ?? !0;
741
742
  t[a] = d === m;
742
743
  }
743
744
  else if (k === "radio")
744
745
  t[a] = d === (s?.value ?? "");
745
746
  else if (k === "select")
746
- if (i && i.hasAttribute("multiple") && i instanceof HTMLSelectElement) {
747
+ if (o && o.hasAttribute("multiple") && o instanceof HTMLSelectElement) {
747
748
  const m = Array.isArray(d) ? d.map(String) : [];
748
749
  setTimeout(() => {
749
- Array.from(i.options).forEach((v) => {
750
+ Array.from(o.options).forEach((v) => {
750
751
  v.selected = m.includes(v.value);
751
752
  });
752
753
  }, 0), t[a] = Array.isArray(d) ? d : [];
@@ -801,7 +802,7 @@ function Dt(e, n, t, s, r, o, i, c) {
801
802
  if (He(T, g)) {
802
803
  C._modelUpdating = !0;
803
804
  try {
804
- it(P(e), e, T, o, c), Ie(o, P(e), e, T), C && Ht(C, a, T);
805
+ it(P(e), e, T, i, c), Ie(i, P(e), e, T), C && It(C, a, T);
805
806
  } finally {
806
807
  setTimeout(
807
808
  () => C._modelUpdating = !1,
@@ -813,18 +814,18 @@ function Dt(e, n, t, s, r, o, i, c) {
813
814
  if (j) {
814
815
  if (r[b]) {
815
816
  const m = r[b];
816
- i && ne.removeListener(i, b, m);
817
+ o && ne.removeListener(o, b, m);
817
818
  }
818
819
  r[b] = E;
819
820
  } else {
820
821
  const m = `update:${J(a)}`, v = `update:${a}`;
821
822
  if (r[m]) {
822
823
  const S = r[m];
823
- i && ne.removeListener(i, m, S);
824
+ o && ne.removeListener(o, m, S);
824
825
  }
825
826
  if (r[v]) {
826
827
  const S = r[v];
827
- i && ne.removeListener(i, v, S);
828
+ o && ne.removeListener(o, v, S);
828
829
  }
829
830
  if (r[m] = (S) => {
830
831
  const C = S.detail;
@@ -838,16 +839,16 @@ function Dt(e, n, t, s, r, o, i, c) {
838
839
  T = void 0;
839
840
  }
840
841
  }
841
- const g = It(
842
+ const g = Dt(
842
843
  P(e),
843
844
  e,
844
- o,
845
+ i,
845
846
  c
846
847
  );
847
848
  if (He(T, g)) {
848
- it(P(e), e, T, o, c), Ie(o, P(e), e, T);
849
+ it(P(e), e, T, i, c), Ie(i, P(e), e, T);
849
850
  const l = S.target;
850
- l && ot(
851
+ l && ct(
851
852
  l,
852
853
  a,
853
854
  P(e) ? e : T,
@@ -868,7 +869,7 @@ function Dt(e, n, t, s, r, o, i, c) {
868
869
  const g = String(T), _ = `update:${J(g)}`, l = `update:${g}`;
869
870
  r[_] || (r[_] = (y) => {
870
871
  const w = y.detail !== void 0 ? y.detail : y.target?.value, L = P(e) ? e.value[g] : K(
871
- o?._state || o,
872
+ i?._state || i,
872
873
  e
873
874
  );
874
875
  if (!He(w, L)) return;
@@ -879,13 +880,13 @@ function Dt(e, n, t, s, r, o, i, c) {
879
880
  D[g] = w, e.value = D;
880
881
  } else
881
882
  We(
882
- o?._state || o,
883
+ i?._state || i,
883
884
  e,
884
885
  w
885
886
  );
886
- Ie(o, P(e), e, w);
887
- const M = y.currentTarget || i || y.target;
888
- M && ot(
887
+ Ie(i, P(e), e, w);
888
+ const M = y.currentTarget || o || y.target;
889
+ M && ct(
889
890
  M,
890
891
  a,
891
892
  P(e) ? e : w,
@@ -900,7 +901,7 @@ function Dt(e, n, t, s, r, o, i, c) {
900
901
  r._isComposing = !1;
901
902
  const v = m.target;
902
903
  v && setTimeout(() => {
903
- const S = v.value, C = o?._state || o, T = K(C, e);
904
+ const S = v.value, C = i?._state || i, T = K(C, e);
904
905
  let g = S;
905
906
  if (u && (g = g.trim()), h) {
906
907
  const l = Number(g);
@@ -909,7 +910,7 @@ function Dt(e, n, t, s, r, o, i, c) {
909
910
  if (He(g, T)) {
910
911
  v._modelUpdating = !0;
911
912
  try {
912
- We(C, e, g), Ie(o, P(e), e, g);
913
+ We(C, e, g), Ie(i, P(e), e, g);
913
914
  } finally {
914
915
  setTimeout(
915
916
  () => v._modelUpdating = !1,
@@ -920,31 +921,31 @@ function Dt(e, n, t, s, r, o, i, c) {
920
921
  }, 0);
921
922
  });
922
923
  }
923
- function Bt(e, n, t, s, r) {
924
+ function Wt(e, n, t, s, r) {
924
925
  if (typeof e == "object" && e !== null)
925
- for (const [o, i] of Object.entries(e))
926
- if (o.startsWith("data-") || o.startsWith("aria-") || o === "class")
927
- t[o] = i;
928
- else if (o === "disabled" && r && Q(r)) {
929
- const c = i && typeof i == "object" && "value" in i;
926
+ for (const [i, o] of Object.entries(e))
927
+ if (i.startsWith("data-") || i.startsWith("aria-") || i === "class")
928
+ t[i] = o;
929
+ else if (i === "disabled" && r && Q(r)) {
930
+ const c = o && typeof o == "object" && "value" in o;
930
931
  (() => {
931
932
  try {
932
- return P(i);
933
+ return P(o);
933
934
  } catch {
934
935
  return !1;
935
936
  }
936
- })() || c ? n[o] = i : t[o] = i;
937
+ })() || c ? n[i] = o : t[i] = o;
937
938
  } else
938
- n[o] = i;
939
+ n[i] = o;
939
940
  else if (typeof e == "string") {
940
941
  if (!s) return;
941
942
  try {
942
- const o = Pe(e, s);
943
- if (typeof o == "object" && o !== null) {
944
- for (const [i, c] of Object.entries(o))
945
- if (i.startsWith("data-") || i.startsWith("aria-") || i === "class")
946
- t[i] = c;
947
- else if (i === "disabled" && r && Q(r)) {
943
+ const i = Pe(e, s);
944
+ if (typeof i == "object" && i !== null) {
945
+ for (const [o, c] of Object.entries(i))
946
+ if (o.startsWith("data-") || o.startsWith("aria-") || o === "class")
947
+ t[o] = c;
948
+ else if (o === "disabled" && r && Q(r)) {
948
949
  const f = c && typeof c == "object" && "value" in c;
949
950
  (() => {
950
951
  try {
@@ -952,24 +953,24 @@ function Bt(e, n, t, s, r) {
952
953
  } catch {
953
954
  return !1;
954
955
  }
955
- })() || f ? n[i] = c : t[i] = c;
956
+ })() || f ? n[o] = c : t[o] = c;
956
957
  } else
957
- n[i] = c;
958
+ n[o] = c;
958
959
  return;
959
960
  } else {
960
- t[e] = o;
961
+ t[e] = i;
961
962
  return;
962
963
  }
963
964
  } catch {
964
- const o = K(
965
+ const i = K(
965
966
  s,
966
967
  e
967
968
  );
968
- t[e] = o;
969
+ t[e] = i;
969
970
  }
970
971
  }
971
972
  }
972
- function Wt(e, n, t) {
973
+ function Ut(e, n, t) {
973
974
  let s;
974
975
  if (typeof e == "string") {
975
976
  if (!t) return;
@@ -977,27 +978,27 @@ function Wt(e, n, t) {
977
978
  } else
978
979
  s = e;
979
980
  const r = String(n.style || "");
980
- let o = r;
981
+ let i = r;
981
982
  if (s) {
982
983
  if (r) {
983
- const i = String(r).split(";").map((f) => f.trim()).filter(Boolean), c = i.findIndex(
984
+ const o = String(r).split(";").map((f) => f.trim()).filter(Boolean), c = o.findIndex(
984
985
  (f) => f.startsWith("display:")
985
986
  );
986
- c >= 0 && i[c] === "display: none" && (i.splice(c, 1), o = i.length > 0 ? i.join("; ") + ";" : "");
987
+ c >= 0 && o[c] === "display: none" && (o.splice(c, 1), i = o.length > 0 ? o.join("; ") + ";" : "");
987
988
  }
988
989
  } else if (r) {
989
- const i = String(r).split(";").filter(Boolean), c = i.findIndex(
990
+ const o = String(r).split(";").filter(Boolean), c = o.findIndex(
990
991
  (f) => f.trim().startsWith("display:")
991
992
  );
992
- c >= 0 ? i[c] = "display: none" : i.push("display: none"), o = i.join("; ");
993
+ c >= 0 ? o[c] = "display: none" : o.push("display: none"), i = o.join("; ");
993
994
  } else
994
- o = "display: none";
995
- o !== r && (o ? n.style = o : n.style = void 0);
995
+ i = "display: none";
996
+ i !== r && (i ? n.style = i : n.style = void 0);
996
997
  }
997
998
  function Pe(e, n) {
998
- return Rt.evaluate(e, n);
999
+ return Ht.evaluate(e, n);
999
1000
  }
1000
- function Ut(e, n, t, s) {
1001
+ function zt(e, n, t, s) {
1001
1002
  let r;
1002
1003
  if (typeof e == "string") {
1003
1004
  if (!t) return;
@@ -1015,18 +1016,18 @@ function Ut(e, n, t, s) {
1015
1016
  }
1016
1017
  } catch {
1017
1018
  }
1018
- let o = [];
1019
+ let i = [];
1019
1020
  if (typeof r == "string")
1020
- o = [r];
1021
+ i = [r];
1021
1022
  else if (Array.isArray(r))
1022
- o = r.filter(Boolean);
1023
+ i = r.filter(Boolean);
1023
1024
  else if (typeof r == "object" && r !== null)
1024
1025
  for (const [u, h] of Object.entries(r))
1025
- h && o.push(u);
1026
- const i = o.join(" "), c = s && s.class || n.class || "", f = c ? `${c} ${i}`.trim() : i.trim();
1026
+ h && i.push(u);
1027
+ const o = i.join(" "), c = s && s.class || n.class || "", f = c ? `${c} ${o}`.trim() : o.trim();
1027
1028
  f ? n.class = f : n.class = void 0;
1028
1029
  }
1029
- function zt(e, n, t) {
1030
+ function Kt(e, n, t) {
1030
1031
  let s;
1031
1032
  if (typeof e == "string") {
1032
1033
  if (!t) return;
@@ -1037,7 +1038,7 @@ function zt(e, n, t) {
1037
1038
  if (typeof s == "string")
1038
1039
  r = s;
1039
1040
  else if (s && typeof s == "object") {
1040
- const i = [];
1041
+ const o = [];
1041
1042
  for (const [c, f] of Object.entries(s))
1042
1043
  if (f != null && f !== "") {
1043
1044
  const u = c.replace(
@@ -1070,30 +1071,30 @@ function zt(e, n, t) {
1070
1071
  "max-height"
1071
1072
  ];
1072
1073
  let p = String(f);
1073
- typeof f == "number" && h.includes(u) && (p = `${f}px`), i.push(`${u}: ${p}`);
1074
+ typeof f == "number" && h.includes(u) && (p = `${f}px`), o.push(`${u}: ${p}`);
1074
1075
  }
1075
- r = i.join("; ") + (i.length > 0 ? ";" : "");
1076
+ r = o.join("; ") + (o.length > 0 ? ";" : "");
1076
1077
  }
1077
- const o = String(n.style || "");
1078
- n.style = o + (o && !o.endsWith(";") ? "; " : "") + r;
1078
+ const i = String(n.style || "");
1079
+ n.style = i + (i && !i.endsWith(";") ? "; " : "") + r;
1079
1080
  }
1080
- function Kt(e, n, t) {
1081
+ function Vt(e, n, t) {
1081
1082
  let s = e;
1082
1083
  typeof e == "string" && t && (s = Pe(e, t)), P(s) ? n.reactiveRef = s : n.ref = s;
1083
1084
  }
1084
- function ht(e, n, t, s) {
1085
- const r = {}, o = { ...s || {} }, i = {};
1085
+ function yt(e, n, t, s) {
1086
+ const r = {}, i = { ...s || {} }, o = {};
1086
1087
  for (const [c, f] of Object.entries(e)) {
1087
1088
  const { value: u, modifiers: h, arg: p } = f;
1088
1089
  if (c === "model" || c.startsWith("model:")) {
1089
1090
  const d = c.split(":"), k = d.length > 1 ? d[1] : p;
1090
- Dt(
1091
+ Bt(
1091
1092
  u,
1092
1093
  // Pass the original value (could be string or reactive state object)
1093
1094
  h,
1094
1095
  r,
1095
- o,
1096
1096
  i,
1097
+ o,
1097
1098
  n,
1098
1099
  t,
1099
1100
  k
@@ -1102,19 +1103,19 @@ function ht(e, n, t, s) {
1102
1103
  }
1103
1104
  switch (c) {
1104
1105
  case "bind":
1105
- Bt(u, r, o, n, t);
1106
+ Wt(u, r, i, n, t);
1106
1107
  break;
1107
1108
  case "show":
1108
- Wt(u, o, n);
1109
+ Ut(u, i, n);
1109
1110
  break;
1110
1111
  case "class":
1111
- Ut(u, o, n, s);
1112
+ zt(u, i, n, s);
1112
1113
  break;
1113
1114
  case "style":
1114
- zt(u, o, n);
1115
+ Kt(u, i, n);
1115
1116
  break;
1116
1117
  case "ref":
1117
- Kt(u, r, n);
1118
+ Vt(u, r, n);
1118
1119
  break;
1119
1120
  }
1120
1121
  }
@@ -1129,7 +1130,7 @@ function ht(e, n, t, s) {
1129
1130
  }
1130
1131
  if (!u && !h)
1131
1132
  try {
1132
- o.disabled = f, delete r.disabled;
1133
+ i.disabled = f, delete r.disabled;
1133
1134
  const p = globalThis;
1134
1135
  p.__VDOM_DISABLED_PROMOTIONS || (p.__VDOM_DISABLED_PROMOTIONS = []), p.__VDOM_DISABLED_PROMOTIONS.push({
1135
1136
  phase: "bind-directive:postfix-move",
@@ -1144,7 +1145,7 @@ function ht(e, n, t, s) {
1144
1145
  }
1145
1146
  } catch {
1146
1147
  }
1147
- return { props: r, attrs: o, listeners: i };
1148
+ return { props: r, attrs: i, listeners: o };
1148
1149
  }
1149
1150
  function be(e) {
1150
1151
  return e ? e.split(/\s+/).filter(Boolean) : [];
@@ -1161,29 +1162,29 @@ function me(e, n) {
1161
1162
  const t = n.filter(Boolean);
1162
1163
  t.length > 0 && e.classList.remove(...t);
1163
1164
  }
1164
- function Vt(e) {
1165
- const n = window.getComputedStyle(e), t = n.transitionDuration || "0s", s = n.transitionDelay || "0s", r = (o) => {
1166
- const i = parseFloat(o);
1167
- return o.includes("ms") ? i : i * 1e3;
1165
+ function Ft(e) {
1166
+ const n = window.getComputedStyle(e), t = n.transitionDuration || "0s", s = n.transitionDelay || "0s", r = (i) => {
1167
+ const o = parseFloat(i);
1168
+ return i.includes("ms") ? o : o * 1e3;
1168
1169
  };
1169
1170
  return r(t) + r(s);
1170
1171
  }
1171
- function yt(e, n) {
1172
+ function mt(e, n) {
1172
1173
  return new Promise((t) => {
1173
- const s = n ?? Vt(e);
1174
+ const s = n ?? Ft(e);
1174
1175
  if (s <= 0) {
1175
1176
  t();
1176
1177
  return;
1177
1178
  }
1178
1179
  let r = !1;
1179
- const o = () => {
1180
- r || (r = !0, e.removeEventListener("transitionend", i), e.removeEventListener("transitioncancel", i), t());
1181
- }, i = () => o();
1182
- e.addEventListener("transitionend", i), e.addEventListener("transitioncancel", i), setTimeout(o, s + 50);
1180
+ const i = () => {
1181
+ r || (r = !0, e.removeEventListener("transitionend", o), e.removeEventListener("transitioncancel", o), t());
1182
+ }, o = () => i();
1183
+ e.addEventListener("transitionend", o), e.addEventListener("transitioncancel", o), setTimeout(i, s + 50);
1183
1184
  });
1184
1185
  }
1185
1186
  async function we(e, n) {
1186
- const { classes: t, hooks: s, css: r, duration: o } = n;
1187
+ const { classes: t, hooks: s, css: r, duration: i } = n;
1187
1188
  if (s?.onBeforeEnter)
1188
1189
  try {
1189
1190
  s.onBeforeEnter(e);
@@ -1203,8 +1204,8 @@ async function we(e, n) {
1203
1204
  p();
1204
1205
  }) : p();
1205
1206
  }) : void 0;
1206
- const i = be(t?.enterFrom), c = be(t?.enterActive), f = be(t?.enterTo);
1207
- ve(e, i), e.offsetHeight, ve(e, c), e.offsetHeight;
1207
+ const o = be(t?.enterFrom), c = be(t?.enterActive), f = be(t?.enterTo);
1208
+ ve(e, o), e.offsetHeight, ve(e, c), e.offsetHeight;
1208
1209
  let u;
1209
1210
  if (s?.onEnter) {
1210
1211
  const p = new Promise((d) => {
@@ -1220,9 +1221,9 @@ async function we(e, n) {
1220
1221
  }
1221
1222
  u && await p;
1222
1223
  }
1223
- await new Promise((p) => requestAnimationFrame(() => p())), e.offsetHeight, me(e, i), ve(e, f), e.offsetHeight, await new Promise((p) => requestAnimationFrame(() => p()));
1224
+ await new Promise((p) => requestAnimationFrame(() => p())), e.offsetHeight, me(e, o), ve(e, f), e.offsetHeight, await new Promise((p) => requestAnimationFrame(() => p()));
1224
1225
  let h;
1225
- if (typeof o == "number" ? h = o : o && typeof o == "object" && "enter" in o && (h = o.enter), await yt(e, h), me(e, c), s?.onAfterEnter)
1226
+ if (typeof i == "number" ? h = i : i && typeof i == "object" && "enter" in i && (h = i.enter), await mt(e, h), me(e, c), s?.onAfterEnter)
1226
1227
  try {
1227
1228
  s.onAfterEnter(e);
1228
1229
  } catch (p) {
@@ -1230,7 +1231,7 @@ async function we(e, n) {
1230
1231
  }
1231
1232
  }
1232
1233
  async function Fe(e, n) {
1233
- const { classes: t, hooks: s, css: r, duration: o } = n;
1234
+ const { classes: t, hooks: s, css: r, duration: i } = n;
1234
1235
  if (s?.onBeforeLeave)
1235
1236
  try {
1236
1237
  s.onBeforeLeave(e);
@@ -1250,8 +1251,8 @@ async function Fe(e, n) {
1250
1251
  p();
1251
1252
  }) : p();
1252
1253
  }) : void 0;
1253
- const i = be(t?.leaveFrom), c = be(t?.leaveActive), f = be(t?.leaveTo);
1254
- ve(e, i), e.offsetHeight, ve(e, c);
1254
+ const o = be(t?.leaveFrom), c = be(t?.leaveActive), f = be(t?.leaveTo);
1255
+ ve(e, o), e.offsetHeight, ve(e, c);
1255
1256
  let u;
1256
1257
  if (s?.onLeave) {
1257
1258
  const p = new Promise((d) => {
@@ -1267,19 +1268,19 @@ async function Fe(e, n) {
1267
1268
  }
1268
1269
  u && await p;
1269
1270
  }
1270
- await new Promise((p) => requestAnimationFrame(() => p())), me(e, i), ve(e, f);
1271
+ await new Promise((p) => requestAnimationFrame(() => p())), me(e, o), ve(e, f);
1271
1272
  let h;
1272
- if (typeof o == "number" ? h = o : o && typeof o == "object" && "leave" in o && (h = o.leave), await yt(e, h), me(e, c), me(e, f), me(e, i), s?.onAfterLeave)
1273
+ if (typeof i == "number" ? h = i : i && typeof i == "object" && "leave" in i && (h = i.leave), await mt(e, h), me(e, c), me(e, f), me(e, o), s?.onAfterLeave)
1273
1274
  try {
1274
1275
  s.onAfterLeave(e);
1275
1276
  } catch (p) {
1276
1277
  B("Transition onAfterLeave error:", p);
1277
1278
  }
1278
1279
  }
1279
- const mt = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap();
1280
+ const gt = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap();
1280
1281
  function De(e) {
1281
1282
  if (!e) return;
1282
- const n = mt.get(e);
1283
+ const n = gt.get(e);
1283
1284
  if (n !== void 0) return n;
1284
1285
  try {
1285
1286
  const t = e;
@@ -1293,7 +1294,7 @@ function De(e) {
1293
1294
  }
1294
1295
  function G(e, n) {
1295
1296
  try {
1296
- mt.set(e, n);
1297
+ gt.set(e, n);
1297
1298
  } catch {
1298
1299
  }
1299
1300
  try {
@@ -1308,9 +1309,9 @@ function G(e, n) {
1308
1309
  } catch {
1309
1310
  }
1310
1311
  }
1311
- function Ft(e) {
1312
+ function qt(e) {
1312
1313
  if (!e) return;
1313
- const n = gt.get(e);
1314
+ const n = bt.get(e);
1314
1315
  if (n !== void 0) return n;
1315
1316
  try {
1316
1317
  const t = e;
@@ -1319,9 +1320,9 @@ function Ft(e) {
1319
1320
  } catch {
1320
1321
  }
1321
1322
  }
1322
- function qt(e, n) {
1323
+ function Gt(e, n) {
1323
1324
  try {
1324
- gt.set(e, n);
1325
+ bt.set(e, n);
1325
1326
  } catch {
1326
1327
  }
1327
1328
  try {
@@ -1357,64 +1358,64 @@ function Te(e, n, t) {
1357
1358
  s(n);
1358
1359
  else if (typeof s == "string" && t)
1359
1360
  try {
1360
- const o = String(s);
1361
- t[o] = n;
1361
+ const i = String(s);
1362
+ t[i] = n;
1362
1363
  } catch {
1363
1364
  }
1364
1365
  } catch {
1365
1366
  }
1366
1367
  else if (r && t)
1367
1368
  try {
1368
- const o = String(r);
1369
- t[o] = n;
1369
+ const i = String(r);
1370
+ t[i] = n;
1370
1371
  } catch {
1371
1372
  }
1372
1373
  }
1373
1374
  function Je(e, n) {
1374
1375
  if (Array.isArray(e)) {
1375
- const o = /* @__PURE__ */ new Set();
1376
- return e.map((i) => {
1377
- if (!i || typeof i != "object") return i;
1378
- let c = i.props?.key ?? i.key;
1376
+ const i = /* @__PURE__ */ new Set();
1377
+ return e.map((o) => {
1378
+ if (!o || typeof o != "object") return o;
1379
+ let c = o.props?.key ?? o.key;
1379
1380
  if (!c) {
1380
- const p = i.tag || "node", k = [
1381
+ const p = o.tag || "node", k = [
1381
1382
  // attrs (kebab-case)
1382
- i.props?.attrs?.id,
1383
- i.props?.attrs?.name,
1384
- i.props?.attrs?.["data-key"],
1383
+ o.props?.attrs?.id,
1384
+ o.props?.attrs?.name,
1385
+ o.props?.attrs?.["data-key"],
1385
1386
  // promoted JS props (camelCase or original)
1386
- i.props?.props?.id,
1387
- i.props?.props?.name,
1388
- i.props?.props?.dataKey,
1389
- i.props?.props?.["data-key"]
1387
+ o.props?.props?.id,
1388
+ o.props?.props?.name,
1389
+ o.props?.props?.dataKey,
1390
+ o.props?.props?.["data-key"]
1390
1391
  ].find((j) => j != null) ?? "";
1391
1392
  c = k ? `${n}:${p}:${k}` : `${n}:${p}`;
1392
1393
  }
1393
1394
  let f = c, u = 1;
1394
- for (; o.has(f); )
1395
+ for (; i.has(f); )
1395
1396
  f = `${c}#${u++}`;
1396
- o.add(f);
1397
- let h = i.children;
1398
- return Array.isArray(h) && (h = Je(h, f)), { ...i, key: f, children: h };
1397
+ i.add(f);
1398
+ let h = o.children;
1399
+ return Array.isArray(h) && (h = Je(h, f)), { ...o, key: f, children: h };
1399
1400
  });
1400
1401
  }
1401
1402
  const t = e, s = t.props?.key ?? t.key ?? n;
1402
1403
  let r = t.children;
1403
1404
  return Array.isArray(r) && (r = Je(r, s)), { ...t, key: s, children: r };
1404
1405
  }
1405
- function ct(e, n, t, s) {
1406
- const r = t.directives ?? {}, o = t.attrs ? { ...t.attrs } : {}, i = ht(
1406
+ function at(e, n, t, s) {
1407
+ const r = t.directives ?? {}, i = t.attrs ? { ...t.attrs } : {}, o = yt(
1407
1408
  r,
1408
1409
  s,
1409
1410
  e,
1410
- o
1411
+ i
1411
1412
  ), c = {
1412
1413
  ...n.props || {},
1413
1414
  ...t.props || {},
1414
- ...i.props || {}
1415
+ ...o.props || {}
1415
1416
  }, f = {
1416
- ...o || {},
1417
- ...i.attrs || {}
1417
+ ...i || {},
1418
+ ...o.attrs || {}
1418
1419
  }, u = n.props ?? {}, h = c, p = !!(t?.isCustomElement ?? n?.isCustomElement ?? !1);
1419
1420
  let d = !1;
1420
1421
  for (const a in { ...u, ...h }) {
@@ -1432,7 +1433,7 @@ function ct(e, n, t, s) {
1432
1433
  const S = Ge(E);
1433
1434
  e.checked = !!S;
1434
1435
  } else if (a.startsWith("on") && typeof E == "function") {
1435
- const S = pt(a);
1436
+ const S = ht(a);
1436
1437
  typeof b == "function" && ne.removeListener(e, S, b), typeof E == "function" && ne.addListener(e, S, E);
1437
1438
  try {
1438
1439
  if (S && S.startsWith("update:")) {
@@ -1480,7 +1481,7 @@ function ct(e, n, t, s) {
1480
1481
  }
1481
1482
  }
1482
1483
  for (const [a, b] of Object.entries(
1483
- i.listeners || {}
1484
+ o.listeners || {}
1484
1485
  )) {
1485
1486
  ne.addListener(e, a, b);
1486
1487
  try {
@@ -1493,7 +1494,7 @@ function ct(e, n, t, s) {
1493
1494
  } catch {
1494
1495
  }
1495
1496
  }
1496
- const k = { ...n.attrs ?? {} }, j = f, A = i && i.attrs || {};
1497
+ const k = { ...n.attrs ?? {} }, j = f, A = o && o.attrs || {};
1497
1498
  if (Object.prototype.hasOwnProperty.call(A, "class") && typeof e.getAttribute == "function") {
1498
1499
  const a = e.getAttribute("class");
1499
1500
  a !== null && (k.class = a);
@@ -1530,7 +1531,7 @@ function ct(e, n, t, s) {
1530
1531
  if (d = !0, v == null || v === !1)
1531
1532
  x(() => {
1532
1533
  q(e, a);
1533
- }), ie(n, a, void 0), a === "value" && (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement ? x(() => {
1534
+ }), oe(n, a, void 0), a === "value" && (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement ? x(() => {
1534
1535
  e.value = "";
1535
1536
  }) : e instanceof HTMLSelectElement ? x(() => {
1536
1537
  e.value = "";
@@ -1568,12 +1569,12 @@ function ct(e, n, t, s) {
1568
1569
  }
1569
1570
  if (a === "style") {
1570
1571
  const C = V(v);
1571
- C !== null && U(e, a, String(C)), ie(n, a, v);
1572
+ C !== null && U(e, a, String(C)), oe(n, a, v);
1572
1573
  continue;
1573
1574
  }
1574
1575
  if (a === "class") {
1575
1576
  const C = V(v);
1576
- C !== null && U(e, a, String(C)), ie(n, a, v);
1577
+ C !== null && U(e, a, String(C)), oe(n, a, v);
1577
1578
  continue;
1578
1579
  }
1579
1580
  if (a === "disabled" && Q(e)) {
@@ -1589,20 +1590,20 @@ function ct(e, n, t, s) {
1589
1590
  }
1590
1591
  const S = e.namespaceURI === "http://www.w3.org/2000/svg";
1591
1592
  if (p && !S && a.includes("-"))
1592
- if (dt(a)) {
1593
+ if (pt(a)) {
1593
1594
  const C = V(E ?? v);
1594
1595
  if (C !== null) {
1595
1596
  try {
1596
1597
  U(e, a, String(C));
1597
1598
  } catch {
1598
1599
  }
1599
- ie(n, a, v);
1600
+ oe(n, a, v);
1600
1601
  }
1601
1602
  } else {
1602
1603
  const C = Xe(a);
1603
1604
  try {
1604
1605
  const T = e;
1605
- T[C] = P(E) ? E : v, ie(n, a, v);
1606
+ T[C] = P(E) ? E : v, oe(n, a, v);
1606
1607
  } catch {
1607
1608
  const T = V(E ?? v);
1608
1609
  T !== null && U(e, a, String(T));
@@ -1611,14 +1612,14 @@ function ct(e, n, t, s) {
1611
1612
  else if (!S && a in e)
1612
1613
  try {
1613
1614
  const C = e;
1614
- C[a] = P(E) ? E : v, ie(n, a, v);
1615
+ C[a] = P(E) ? E : v, oe(n, a, v);
1615
1616
  } catch {
1616
1617
  const C = V(v);
1617
- C !== null && (U(e, a, String(C)), ie(n, a, v));
1618
+ C !== null && (U(e, a, String(C)), oe(n, a, v));
1618
1619
  }
1619
1620
  else {
1620
1621
  const C = V(v);
1621
- C !== null && (U(e, a, String(C)), ie(n, a, v));
1622
+ C !== null && (U(e, a, String(C)), oe(n, a, v));
1622
1623
  }
1623
1624
  }
1624
1625
  }
@@ -1628,7 +1629,7 @@ function ct(e, n, t, s) {
1628
1629
  let b;
1629
1630
  try {
1630
1631
  const m = Object.prototype.hasOwnProperty.call(
1631
- i.props || {},
1632
+ o.props || {},
1632
1633
  "disabled"
1633
1634
  ), v = a && typeof a == "object" && "value" in a;
1634
1635
  let S = !1;
@@ -1694,12 +1695,12 @@ function Z(e, n, t, s = null) {
1694
1695
  }
1695
1696
  return v.appendChild(m), v;
1696
1697
  }
1697
- const r = e && typeof e == "object" && e.props && e.props.attrs ? e.props.attrs : void 0, i = (r && typeof r.xmlns == "string" ? String(r.xmlns) : void 0) ?? s ?? St[e.tag] ?? null, c = i ? document.createElementNS(i, e.tag) : document.createElement(e.tag);
1698
- e.key != null && G(c, e.key), e.props && e.props?._transitionGroup && qt(
1698
+ const r = e && typeof e == "object" && e.props && e.props.attrs ? e.props.attrs : void 0, o = (r && typeof r.xmlns == "string" ? String(r.xmlns) : void 0) ?? s ?? Ct[e.tag] ?? null, c = o ? document.createElementNS(o, e.tag) : document.createElement(e.tag);
1699
+ e.key != null && G(c, e.key), e.props && e.props?._transitionGroup && Gt(
1699
1700
  c,
1700
1701
  e.props?._transitionGroup
1701
1702
  );
1702
- const { props: f = {}, attrs: u = {}, directives: h = {} } = e.props ?? {}, p = ht(
1703
+ const { props: f = {}, attrs: u = {}, directives: h = {} } = e.props ?? {}, p = yt(
1703
1704
  h,
1704
1705
  n,
1705
1706
  c instanceof HTMLElement ? c : void 0,
@@ -1772,7 +1773,7 @@ function Z(e, n, t, s = null) {
1772
1773
  }
1773
1774
  else if (!j && a in c)
1774
1775
  try {
1775
- c[a] = E, a === "disabled" && E === !1 && Q(c) && q(c, "disabled"), ie(e.props, a, E);
1776
+ c[a] = E, a === "disabled" && E === !1 && Q(c) && q(c, "disabled"), oe(e.props, a, E);
1776
1777
  } catch {
1777
1778
  const m = V(E);
1778
1779
  m !== null && U(c, a, String(m));
@@ -1800,7 +1801,7 @@ function Z(e, n, t, s = null) {
1800
1801
  c.value = String(E ?? "");
1801
1802
  });
1802
1803
  } else if (a.startsWith("on") && typeof b == "function") {
1803
- const E = pt(a), m = E.includes(":") ? (() => {
1804
+ const E = ht(a), m = E.includes(":") ? (() => {
1804
1805
  const v = E.split(":"), S = v[1];
1805
1806
  if (S.includes("-")) {
1806
1807
  const C = S.split("-").map(
@@ -1879,7 +1880,7 @@ function Z(e, n, t, s = null) {
1879
1880
  } catch {
1880
1881
  }
1881
1882
  if (Array.isArray(e.children)) {
1882
- const a = e.tag === "foreignObject" && i === Ct ? null : c.namespaceURI ?? null;
1883
+ const a = e.tag === "foreignObject" && o === kt ? null : c.namespaceURI ?? null;
1883
1884
  for (const b of e.children)
1884
1885
  c.appendChild(Z(b, n, t, a));
1885
1886
  } else typeof e.children == "string" && (c.textContent = e.children);
@@ -1913,16 +1914,16 @@ function Z(e, n, t, s = null) {
1913
1914
  }
1914
1915
  return c;
1915
1916
  }
1916
- function Gt(e, n, t, s, r) {
1917
+ function Zt(e, n, t, s, r) {
1917
1918
  if (typeof t == "string") {
1918
1919
  e.textContent !== t && (e.textContent = t);
1919
1920
  return;
1920
1921
  }
1921
1922
  if (!Array.isArray(t)) return;
1922
- const o = e.childNodes, i = [];
1923
- for (let A = 0; A < o.length; A++)
1924
- i.push(o[A]);
1925
- const c = Array.isArray(n) ? n : [], f = Ft(e);
1923
+ const i = e.childNodes, o = [];
1924
+ for (let A = 0; A < i.length; A++)
1925
+ o.push(i[A]);
1926
+ const c = Array.isArray(n) ? n : [], f = qt(e);
1926
1927
  if (f) {
1927
1928
  const A = (m) => {
1928
1929
  if (typeof m == "string")
@@ -1959,18 +1960,18 @@ function Gt(e, n, t, s, r) {
1959
1960
  const y = String(l.key);
1960
1961
  m.set(y, l);
1961
1962
  }
1962
- for (let l = 0; l < i.length; l++) {
1963
- const y = i[l];
1963
+ for (let l = 0; l < o.length; l++) {
1964
+ const y = o[l];
1964
1965
  let w = De(y);
1965
1966
  if (w = A(w), w != null && y instanceof Element && y.nodeType === Node.ELEMENT_NODE) {
1966
1967
  let L = typeof w == "string" && w.includes(":") ? w.substring(0, w.lastIndexOf(":")) : w;
1967
1968
  L = String(L), v.set(L, y);
1968
1969
  }
1969
1970
  }
1970
- const S = /* @__PURE__ */ new Set(), C = /* @__PURE__ */ new Map(), T = i.length > 0;
1971
+ const S = /* @__PURE__ */ new Set(), C = /* @__PURE__ */ new Map(), T = o.length > 0;
1971
1972
  if (f.moveClass && T)
1972
- for (let l = 0; l < i.length; l++) {
1973
- const y = i[l];
1973
+ for (let l = 0; l < o.length; l++) {
1974
+ const y = o[l];
1974
1975
  if (y instanceof HTMLElement && y.parentElement) {
1975
1976
  const w = y.getBoundingClientRect();
1976
1977
  C.set(y, w);
@@ -2008,8 +2009,8 @@ function Gt(e, n, t, s, r) {
2008
2009
  }
2009
2010
  }
2010
2011
  const _ = [];
2011
- for (let l = 0; l < i.length; l++) {
2012
- const y = i[l], w = De(y);
2012
+ for (let l = 0; l < o.length; l++) {
2013
+ const y = o[l], w = De(y);
2013
2014
  if (!S.has(y) && w != null && y instanceof HTMLElement) {
2014
2015
  const N = Fe(y, f).then(() => {
2015
2016
  e.contains(y) && e.removeChild(y);
@@ -2054,8 +2055,8 @@ function Gt(e, n, t, s, r) {
2054
2055
  for (const { node: O, moveClasses: z } of y) {
2055
2056
  O.style.removeProperty("transform");
2056
2057
  const I = () => {
2057
- for (const oe of z)
2058
- O.classList.remove(oe);
2058
+ for (const ie of z)
2059
+ O.classList.remove(ie);
2059
2060
  O.style.removeProperty("transition"), O.removeEventListener("transitionend", I), O.removeEventListener("transitioncancel", I);
2060
2061
  };
2061
2062
  O.addEventListener("transitionend", I, {
@@ -2078,8 +2079,8 @@ function Gt(e, n, t, s, r) {
2078
2079
  for (const A of c)
2079
2080
  A && A.key != null && u.set(A.key, A);
2080
2081
  const h = /* @__PURE__ */ new Map();
2081
- for (let A = 0; A < i.length; A++) {
2082
- const a = i[A], b = De(a);
2082
+ for (let A = 0; A < o.length; A++) {
2083
+ const a = o[A], b = De(a);
2083
2084
  b != null && h.set(b, a);
2084
2085
  }
2085
2086
  const p = /* @__PURE__ */ new Set();
@@ -2217,8 +2218,8 @@ function Gt(e, n, t, s, r) {
2217
2218
  ), d && !e.contains(d) && (d = null), e.insertBefore(a, d), p.add(a);
2218
2219
  d = a.nextSibling;
2219
2220
  }
2220
- for (let A = 0; A < i.length; A++) {
2221
- const a = i[A];
2221
+ for (let A = 0; A < o.length; A++) {
2222
+ const a = o[A];
2222
2223
  !p.has(a) && e.contains(a) && (de(a, r), e.removeChild(a));
2223
2224
  }
2224
2225
  }
@@ -2228,13 +2229,13 @@ function Le(e, n, t, s, r) {
2228
2229
  if (e.nodeType === Node.TEXT_NODE)
2229
2230
  return e.textContent !== t && (e.textContent = t), e;
2230
2231
  {
2231
- const i = document.createTextNode(t);
2232
- return e.parentNode?.replaceChild(i, e), i;
2232
+ const o = document.createTextNode(t);
2233
+ return e.parentNode?.replaceChild(o, e), o;
2233
2234
  }
2234
2235
  }
2235
2236
  if (t && typeof t != "string" && t.tag === "#anchor") {
2236
- const i = t, c = Array.isArray(i.children) ? i.children : [], f = i._startNode ?? document.createTextNode(""), u = i._endNode ?? document.createTextNode("");
2237
- i.key != null && (G(f, `${i.key}:start`), G(u, `${i.key}:end`)), i._startNode = f, i._endNode = u;
2237
+ const o = t, c = Array.isArray(o.children) ? o.children : [], f = o._startNode ?? document.createTextNode(""), u = o._endNode ?? document.createTextNode("");
2238
+ o.key != null && (G(f, `${o.key}:start`), G(u, `${o.key}:end`)), o._startNode = f, o._endNode = u;
2238
2239
  const h = document.createDocumentFragment();
2239
2240
  h.appendChild(f);
2240
2241
  for (const p of c) {
@@ -2250,25 +2251,25 @@ function Le(e, n, t, s, r) {
2250
2251
  }
2251
2252
  if (!t) {
2252
2253
  de(e, r);
2253
- const i = document.createComment("removed");
2254
- return e.parentNode?.replaceChild(i, e), i;
2254
+ const o = document.createComment("removed");
2255
+ return e.parentNode?.replaceChild(o, e), o;
2255
2256
  }
2256
2257
  if (!n || typeof n == "string") {
2257
2258
  de(e, r);
2258
- const i = Z(
2259
+ const o = Z(
2259
2260
  t,
2260
2261
  s,
2261
2262
  r,
2262
2263
  e.parentNode instanceof Element ? e.parentNode.namespaceURI ?? null : null
2263
2264
  );
2264
- return Te(t, i, r), e.parentNode?.replaceChild(i, e), i;
2265
+ return Te(t, o, r), e.parentNode?.replaceChild(o, e), o;
2265
2266
  }
2266
2267
  if (t.tag === "#anchor") {
2267
- const i = Array.isArray(t.children) ? t.children : [], c = t._startNode ?? document.createTextNode(""), f = t._endNode ?? document.createTextNode("");
2268
+ const o = Array.isArray(t.children) ? t.children : [], c = t._startNode ?? document.createTextNode(""), f = t._endNode ?? document.createTextNode("");
2268
2269
  t.key != null && (G(c, `${t.key}:start`), G(f, `${t.key}:end`)), t._startNode = c, t._endNode = f;
2269
2270
  const u = document.createDocumentFragment();
2270
2271
  u.appendChild(c);
2271
- for (const h of i)
2272
+ for (const h of o)
2272
2273
  u.appendChild(
2273
2274
  Z(
2274
2275
  h,
@@ -2280,25 +2281,25 @@ function Le(e, n, t, s, r) {
2280
2281
  return u.appendChild(f), e.parentNode?.replaceChild(u, e), c;
2281
2282
  }
2282
2283
  if (typeof n != "string" && typeof t != "string" && n.tag === t.tag && n.key === t.key) {
2283
- const i = e;
2284
- return ct(i, n.props || {}, t.props || {}, s), Gt(i, n.children, t.children, s, r), Te(t, i, r), i;
2284
+ const o = e;
2285
+ return at(o, n.props || {}, t.props || {}, s), Zt(o, n.children, t.children, s, r), Te(t, o, r), o;
2285
2286
  }
2286
2287
  if (typeof n != "string" && typeof t != "string" && n.tag === t.tag && (n.tag && String(n.tag).includes("-") || t.props && t.props.isCustomElement || n.props && n.props.isCustomElement))
2287
2288
  try {
2288
2289
  const c = e;
2289
- return ct(c, n.props || {}, t.props || {}, s), Te(t, c, r), c;
2290
+ return at(c, n.props || {}, t.props || {}, s), Te(t, c, r), c;
2290
2291
  } catch {
2291
2292
  }
2292
2293
  de(e, r);
2293
- const o = Z(
2294
+ const i = Z(
2294
2295
  t,
2295
2296
  s,
2296
2297
  r,
2297
2298
  e.parentNode instanceof Element ? e.parentNode.namespaceURI ?? null : null
2298
2299
  );
2299
- return Te(t, o, r), e.parentNode?.replaceChild(o, e), o;
2300
+ return Te(t, i, r), e.parentNode?.replaceChild(i, e), i;
2300
2301
  }
2301
- function Zt(e, n, t, s) {
2302
+ function Jt(e, n, t, s) {
2302
2303
  let r;
2303
2304
  Array.isArray(n) ? n.length === 1 ? (r = n[0], r && typeof r == "object" && r.key == null && (r = { ...r, key: "__root__" })) : r = { tag: "div", key: "__root__", children: n } : (r = n, r && typeof r == "object" && r.key == null && (r = { ...r, key: "__root__" })), r && typeof r == "object" && r.tag === "#anchor" && (r = {
2304
2305
  tag: "div",
@@ -2308,14 +2309,14 @@ function Zt(e, n, t, s) {
2308
2309
  },
2309
2310
  children: [r]
2310
2311
  }), r = Je(r, String(r.key ?? "root"));
2311
- const o = e._prevVNode ?? null, i = e._prevDom ?? e.firstChild ?? null;
2312
+ const i = e._prevVNode ?? null, o = e._prevDom ?? e.firstChild ?? null;
2312
2313
  let c;
2313
- o && i ? typeof o != "string" && typeof r != "string" && o.tag === r.tag && o.key === r.key ? c = Le(i, o, r, t, s) : (c = Z(
2314
+ i && o ? typeof i != "string" && typeof r != "string" && i.tag === r.tag && i.key === r.key ? c = Le(o, i, r, t, s) : (c = Z(
2314
2315
  r,
2315
2316
  t,
2316
2317
  s,
2317
2318
  e.host instanceof Element ? e.host.namespaceURI ?? null : null
2318
- ), e.replaceChild(c, i)) : (c = Z(
2319
+ ), e.replaceChild(c, o)) : (c = Z(
2319
2320
  r,
2320
2321
  t,
2321
2322
  s,
@@ -2337,50 +2338,50 @@ function Zt(e, n, t, s) {
2337
2338
  } : r;
2338
2339
  e._prevVNode = u, e._prevDom = c;
2339
2340
  }
2340
- const Oe = [], at = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap();
2341
- function Jt(e, n) {
2341
+ const Oe = [], lt = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap();
2342
+ function Yt(e, n) {
2342
2343
  Ee.has(e) || Ee.set(e, /* @__PURE__ */ new Set()), Ee.get(e).add(n);
2343
2344
  }
2344
- function Yt(e, n) {
2345
+ function Xt(e, n) {
2345
2346
  const t = Ee.get(e);
2346
2347
  t && (t.delete(n), t.size === 0 && Ee.delete(e));
2347
2348
  }
2348
- function Xt(e, n, t, s, r, o, i, c) {
2349
+ function Qt(e, n, t, s, r, i, o, c) {
2349
2350
  if (e) {
2350
2351
  Oe.push(t);
2351
2352
  try {
2352
2353
  const f = n.render(t);
2353
2354
  if (f instanceof Promise) {
2354
- o(!0), f.then((u) => {
2355
- o(!1), i(null), lt(e, u, t, s, r), c(e.innerHTML);
2355
+ i(!0), f.then((u) => {
2356
+ i(!1), o(null), ft(e, u, t, s, r), c(e.innerHTML);
2356
2357
  }).catch((u) => {
2357
- o(!1), i(u instanceof Error ? u : new Error(String(u)));
2358
+ i(!1), o(u instanceof Error ? u : new Error(String(u)));
2358
2359
  });
2359
2360
  return;
2360
2361
  }
2361
- lt(e, f, t, s, r), c(e.innerHTML);
2362
+ ft(e, f, t, s, r), c(e.innerHTML);
2362
2363
  } catch (f) {
2363
- i(f instanceof Error ? f : new Error(String(f)));
2364
+ o(f instanceof Error ? f : new Error(String(f)));
2364
2365
  } finally {
2365
2366
  Oe.pop();
2366
2367
  }
2367
2368
  }
2368
2369
  }
2369
- function lt(e, n, t, s, r) {
2370
+ function ft(e, n, t, s, r) {
2370
2371
  if (e)
2371
2372
  try {
2372
- Zt(
2373
+ Jt(
2373
2374
  e,
2374
2375
  Array.isArray(n) ? n : [n],
2375
2376
  t,
2376
2377
  s
2377
2378
  ), r(e.innerHTML);
2378
- } catch (o) {
2379
- throw B("Error during VDOM rendering:", o), o;
2379
+ } catch (i) {
2380
+ throw B("Error during VDOM rendering:", i), i;
2380
2381
  }
2381
2382
  }
2382
- function Qt(e, n, t, s, r, o, i) {
2383
- o !== null && clearTimeout(o);
2383
+ function en(e, n, t, s, r, i, o) {
2384
+ i !== null && clearTimeout(i);
2384
2385
  const u = Date.now() - n < 16, h = (() => {
2385
2386
  try {
2386
2387
  return typeof window < "u" && !!window.Cypress;
@@ -2421,7 +2422,7 @@ Possible causes:
2421
2422
  • State updates triggering immediate re-renders
2422
2423
  • Computed values changing during evaluation
2423
2424
  • Circular dependencies in reactive system`
2424
- ), i(null);
2425
+ ), o(null);
2425
2426
  return;
2426
2427
  }
2427
2428
  } else
@@ -2435,33 +2436,33 @@ Possible causes:
2435
2436
  } catch (A) {
2436
2437
  B("Error during render execution:", A);
2437
2438
  } finally {
2438
- i(null);
2439
+ o(null);
2439
2440
  }
2440
2441
  };
2441
2442
  if (k > 0) {
2442
2443
  const A = setTimeout(j, k);
2443
- i(A);
2444
- } else d ? j() : (i({}), queueMicrotask(j));
2444
+ o(A);
2445
+ } else d ? j() : (o({}), queueMicrotask(j));
2445
2446
  }
2446
- function en(e, n) {
2447
+ function tn(e, n) {
2447
2448
  let t = n;
2448
2449
  try {
2449
2450
  const s = Ee.get(e);
2450
2451
  if (s?.size)
2451
2452
  for (const r of s)
2452
2453
  try {
2453
- const o = r.lastHtmlStringForJitCSS;
2454
- o?.trim() && (t += `
2455
- ` + o);
2454
+ const i = r.lastHtmlStringForJitCSS;
2455
+ i?.trim() && (t += `
2456
+ ` + i);
2456
2457
  } catch {
2457
2458
  }
2458
2459
  else {
2459
2460
  const r = e.querySelectorAll("*");
2460
- for (const o of r)
2461
+ for (const i of r)
2461
2462
  try {
2462
- const i = o.lastHtmlStringForJitCSS;
2463
- i?.trim() && (t += `
2464
- ` + i);
2463
+ const o = i.lastHtmlStringForJitCSS;
2464
+ o?.trim() && (t += `
2465
+ ` + o);
2465
2466
  } catch {
2466
2467
  }
2467
2468
  }
@@ -2469,10 +2470,10 @@ function en(e, n) {
2469
2470
  }
2470
2471
  return t;
2471
2472
  }
2472
- function ft(e) {
2473
+ function ut(e) {
2473
2474
  return "adoptedStyleSheets" in e && typeof CSSStyleSheet < "u" && "replaceSync" in CSSStyleSheet.prototype;
2474
2475
  }
2475
- function ut(e, n) {
2476
+ function dt(e, n) {
2476
2477
  let t = e.querySelector(
2477
2478
  "style[data-cer-runtime]"
2478
2479
  );
@@ -2482,21 +2483,21 @@ function ut(e, n) {
2482
2483
  } catch {
2483
2484
  }
2484
2485
  }
2485
- function tn(e, n, t, s, r) {
2486
+ function nn(e, n, t, s, r) {
2486
2487
  if (!e) return;
2487
- const o = en(e, t);
2488
- if (at.get(e) === o)
2488
+ const i = tn(e, t);
2489
+ if (lt.get(e) === i)
2489
2490
  return;
2490
- at.set(e, o);
2491
- const c = At(o), f = wt(), u = n._computedStyle;
2491
+ lt.set(e, i);
2492
+ const c = wt(i), f = Tt(), u = n._computedStyle;
2492
2493
  if (!c?.trim() && !u && !f) {
2493
- if (r(null), ft(e))
2494
+ if (r(null), ut(e))
2494
2495
  e.adoptedStyleSheets = [
2495
2496
  Re(),
2496
2497
  ye()
2497
2498
  ];
2498
2499
  else {
2499
- const b = Ae(st), E = ye();
2500
+ const b = Ae(ot), E = ye();
2500
2501
  let m = "";
2501
2502
  try {
2502
2503
  E?.cssRules && (m = Array.from(E.cssRules).map((S) => S.cssText).join(`
@@ -2506,7 +2507,7 @@ function tn(e, n, t, s, r) {
2506
2507
  }
2507
2508
  const v = Ae(`${b}
2508
2509
  ${m}`);
2509
- ut(e, v);
2510
+ dt(e, v);
2510
2511
  try {
2511
2512
  e.adoptedStyleSheets = [Re(), ye()];
2512
2513
  } catch {
@@ -2517,7 +2518,7 @@ ${m}`);
2517
2518
  let h = "";
2518
2519
  if (u && (h += u + `
2519
2520
  `), c && (h += c + `
2520
- `), h = Tt(h), h = Ae(h), ft(e)) {
2521
+ `), h = Lt(h), h = Ae(h), ut(e)) {
2521
2522
  let a = s;
2522
2523
  a || (a = new CSSStyleSheet());
2523
2524
  try {
@@ -2528,7 +2529,7 @@ ${m}`);
2528
2529
  } catch {
2529
2530
  }
2530
2531
  }
2531
- const d = Ae(st), k = ye();
2532
+ const d = Ae(ot), k = ye();
2532
2533
  let j = "";
2533
2534
  try {
2534
2535
  k?.cssRules && (j = Array.from(k.cssRules).map((a) => a.cssText).join(`
@@ -2539,7 +2540,7 @@ ${m}`);
2539
2540
  const A = Ae(`${d}
2540
2541
  ${j}
2541
2542
  ${h}`);
2542
- ut(e, A);
2543
+ dt(e, A);
2543
2544
  try {
2544
2545
  const a = [
2545
2546
  Re(),
@@ -2561,7 +2562,7 @@ ${h}`);
2561
2562
  }
2562
2563
  r(null);
2563
2564
  }
2564
- function nn(e, n) {
2565
+ function rn(e, n) {
2565
2566
  if (!n.render)
2566
2567
  throw new Error("Component must have a render function");
2567
2568
  return typeof window > "u" ? class {
@@ -2605,8 +2606,8 @@ function nn(e, n) {
2605
2606
  _templateError = null;
2606
2607
  constructor() {
2607
2608
  super(), this.attachShadow({ mode: "open" }), this._cfg = ge.get(e) || n, this._componentId = `${e}-${crypto.randomUUID()}`;
2608
- const t = this._initContext(n), s = (o, i, c) => {
2609
- Object.defineProperty(o, i, {
2609
+ const t = this._initContext(n), s = (i, o, c) => {
2610
+ Object.defineProperty(i, o, {
2610
2611
  value: c,
2611
2612
  writable: !1,
2612
2613
  enumerable: !1,
@@ -2624,26 +2625,26 @@ function nn(e, n) {
2624
2625
  ), s(t, "_componentId", this._componentId), s(
2625
2626
  t,
2626
2627
  "_triggerWatchers",
2627
- (o, i) => this._triggerWatchers(o, i)
2628
+ (i, o) => this._triggerWatchers(i, o)
2628
2629
  ), this.context = t, x(() => {
2629
2630
  s(t, "_host", this);
2630
2631
  }), s(
2631
2632
  this.context,
2632
2633
  "emit",
2633
- (o, i, c) => {
2634
+ (i, o, c) => {
2634
2635
  const f = {
2635
- detail: i,
2636
+ detail: o,
2636
2637
  bubbles: !0,
2637
2638
  composed: !0,
2638
2639
  ...c || {}
2639
- }, u = new CustomEvent(o, f);
2640
+ }, u = new CustomEvent(i, f);
2640
2641
  this.dispatchEvent(u);
2641
- const h = o.indexOf(":");
2642
+ const h = i.indexOf(":");
2642
2643
  if (h > 0) {
2643
- const p = o.substring(0, h), d = o.substring(h + 1), k = d.includes("-") ? `${p}:${d.split("-").map(
2644
+ const p = i.substring(0, h), d = i.substring(h + 1), k = d.includes("-") ? `${p}:${d.split("-").map(
2644
2645
  (j, A) => A === 0 ? j : j.charAt(0).toUpperCase() + j.slice(1)
2645
2646
  ).join("")}` : `${p}:${d.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase()}`;
2646
- k !== o && x(() => {
2647
+ k !== i && x(() => {
2647
2648
  this.dispatchEvent(new CustomEvent(k, f));
2648
2649
  });
2649
2650
  }
@@ -2651,20 +2652,20 @@ function nn(e, n) {
2651
2652
  }
2652
2653
  );
2653
2654
  const r = ge.get(e) || n;
2654
- for (const o in r) {
2655
- const i = r[o];
2656
- typeof i == "function" && (this.context[o] = (...c) => i(...c, this.context));
2655
+ for (const i in r) {
2656
+ const o = r[i];
2657
+ typeof o == "function" && (this.context[i] = (...c) => o(...c, this.context));
2657
2658
  }
2658
2659
  if (r.props)
2659
- for (const o in r.props) {
2660
- let i = this[o];
2661
- Object.defineProperty(this, o, {
2660
+ for (const i in r.props) {
2661
+ let o = this[i];
2662
+ Object.defineProperty(this, i, {
2662
2663
  get() {
2663
- return i;
2664
+ return o;
2664
2665
  },
2665
2666
  set(c) {
2666
- const f = i;
2667
- i = c, this.context[o] = c, this._initializing || (this._applyProps(r), f !== c && this._requestRender());
2667
+ const f = o;
2668
+ o = c, this.context[i] = c, this._initializing || (this._applyProps(r), f !== c && this._requestRender());
2668
2669
  },
2669
2670
  enumerable: !0,
2670
2671
  configurable: !0
@@ -2675,7 +2676,7 @@ function nn(e, n) {
2675
2676
  connectedCallback() {
2676
2677
  this._runLogicWithinErrorBoundary(n, () => {
2677
2678
  const t = this.getRootNode();
2678
- t && t !== document && "host" in t && Jt(t, this), this._applyProps(n), this._requestRender(), Pt(n, this.context, this._mounted, (s) => {
2679
+ t && t !== document && "host" in t && Yt(t, this), this._applyProps(n), this._requestRender(), $t(n, this.context, this._mounted, (s) => {
2679
2680
  this._mounted = s;
2680
2681
  });
2681
2682
  });
@@ -2683,7 +2684,7 @@ function nn(e, n) {
2683
2684
  disconnectedCallback() {
2684
2685
  this._runLogicWithinErrorBoundary(n, () => {
2685
2686
  const t = this.getRootNode();
2686
- t && t !== document && "host" in t && Yt(t, this), $t(
2687
+ t && t !== document && "host" in t && Xt(t, this), xt(
2687
2688
  n,
2688
2689
  this.context,
2689
2690
  this._listeners,
@@ -2707,7 +2708,7 @@ function nn(e, n) {
2707
2708
  }
2708
2709
  attributeChangedCallback(t, s, r) {
2709
2710
  this._runLogicWithinErrorBoundary(n, () => {
2710
- this._applyProps(n), s !== r && this._requestRender(), xt(n, t, s, r, this.context);
2711
+ this._applyProps(n), s !== r && this._requestRender(), Rt(n, t, s, r, this.context);
2711
2712
  });
2712
2713
  }
2713
2714
  static get observedAttributes() {
@@ -2716,7 +2717,7 @@ function nn(e, n) {
2716
2717
  // --- Render ---
2717
2718
  _render(t) {
2718
2719
  this._runLogicWithinErrorBoundary(t, () => {
2719
- Xt(
2720
+ Qt(
2720
2721
  this.shadowRoot,
2721
2722
  t,
2722
2723
  this.context,
@@ -2740,7 +2741,7 @@ function nn(e, n) {
2740
2741
  _requestRender() {
2741
2742
  this._runLogicWithinErrorBoundary(this._cfg, () => {
2742
2743
  _e(() => {
2743
- Qt(
2744
+ en(
2744
2745
  () => this._render(this._cfg),
2745
2746
  this._lastRenderTime,
2746
2747
  this._renderCount,
@@ -2761,7 +2762,7 @@ function nn(e, n) {
2761
2762
  // --- Style ---
2762
2763
  _applyStyle(t, s) {
2763
2764
  this._runLogicWithinErrorBoundary(t, () => {
2764
- tn(
2765
+ nn(
2765
2766
  this.shadowRoot,
2766
2767
  this.context,
2767
2768
  s,
@@ -2780,7 +2781,7 @@ function nn(e, n) {
2780
2781
  } catch (r) {
2781
2782
  this._hasError = !0;
2782
2783
  try {
2783
- const o = this.tagName?.toLowerCase?.() || "<unknown>", i = this._componentId || "<unknown-id>", c = {};
2784
+ const i = this.tagName?.toLowerCase?.() || "<unknown>", o = this._componentId || "<unknown-id>", c = {};
2784
2785
  if (t && t.props)
2785
2786
  for (const f of Object.keys(t.props))
2786
2787
  try {
@@ -2789,30 +2790,30 @@ function nn(e, n) {
2789
2790
  } catch {
2790
2791
  c[f] = "[unreadable]";
2791
2792
  }
2792
- B(`Error rendering component <${o}> (id=${i}):`, r), B("Component props snapshot:", c), ee(
2793
+ B(`Error rendering component <${i}> (id=${o}):`, r), B("Component props snapshot:", c), ee(
2793
2794
  "Common causes: accessing properties of null/undefined inside template interpolations; expensive or throwing expressions inside templates that evaluate eagerly. Fixes: use optional chaining (obj?.prop), guard with ternary, or use the runtime lazy overload: when(cond, () => html`...`)."
2794
2795
  );
2795
2796
  } catch {
2796
2797
  }
2797
2798
  if (t.onError && t.onError(r, this.context), this.tagName.toLowerCase() !== "cer-error-boundary") {
2798
- let o = this.parentElement;
2799
- if (!o) {
2800
- const i = this.getRootNode();
2801
- i instanceof ShadowRoot && (o = i.host.parentElement);
2799
+ let i = this.parentElement;
2800
+ if (!i) {
2801
+ const o = this.getRootNode();
2802
+ o instanceof ShadowRoot && (i = o.host.parentElement);
2802
2803
  }
2803
- for (; o; ) {
2804
- if (o.tagName.toLowerCase() === "cer-error-boundary") {
2805
- o._cerHandleChildError?.(
2804
+ for (; i; ) {
2805
+ if (i.tagName.toLowerCase() === "cer-error-boundary") {
2806
+ i._cerHandleChildError?.(
2806
2807
  r
2807
2808
  );
2808
2809
  break;
2809
2810
  }
2810
- let i = o.parentElement;
2811
- if (!i) {
2812
- const c = o.getRootNode();
2813
- c instanceof ShadowRoot && (i = c.host.parentElement);
2811
+ let o = i.parentElement;
2812
+ if (!o) {
2813
+ const c = i.getRootNode();
2814
+ c instanceof ShadowRoot && (o = c.host.parentElement);
2814
2815
  }
2815
- o = i;
2816
+ i = o;
2816
2817
  }
2817
2818
  }
2818
2819
  }
@@ -2820,9 +2821,9 @@ function nn(e, n) {
2820
2821
  // --- State, props, computed ---
2821
2822
  _initContext(t) {
2822
2823
  try {
2823
- let s = function(o, i = "") {
2824
- if (Array.isArray(o))
2825
- return new Proxy(o, {
2824
+ let s = function(i, o = "") {
2825
+ if (Array.isArray(i))
2826
+ return new Proxy(i, {
2826
2827
  get(c, f, u) {
2827
2828
  const h = Reflect.get(c, f, u);
2828
2829
  return typeof h == "function" && typeof f == "string" && [
@@ -2836,7 +2837,7 @@ function nn(e, n) {
2836
2837
  ].includes(f) ? function(...d) {
2837
2838
  const k = h.apply(c, d);
2838
2839
  if (!r._initializing) {
2839
- const j = i || "root";
2840
+ const j = o || "root";
2840
2841
  r._triggerWatchers(j, c), _e(
2841
2842
  () => r._render(t),
2842
2843
  r._componentId
@@ -2847,29 +2848,29 @@ function nn(e, n) {
2847
2848
  },
2848
2849
  set(c, f, u) {
2849
2850
  if (c[String(f)] = u, !r._initializing) {
2850
- const h = i ? `${i}.${String(f)}` : String(f);
2851
+ const h = o ? `${o}.${String(f)}` : String(f);
2851
2852
  r._triggerWatchers(h, u), _e(() => r._render(t), r._componentId);
2852
2853
  }
2853
2854
  return !0;
2854
2855
  },
2855
2856
  deleteProperty(c, f) {
2856
2857
  if (delete c[String(f)], !r._initializing) {
2857
- const u = i ? `${i}.${String(f)}` : String(f);
2858
+ const u = o ? `${o}.${String(f)}` : String(f);
2858
2859
  r._triggerWatchers(u, void 0), _e(() => r._render(t), r._componentId);
2859
2860
  }
2860
2861
  return !0;
2861
2862
  }
2862
2863
  });
2863
- if (o && typeof o == "object") {
2864
- if (P(o))
2865
- return o;
2866
- for (const c in o) {
2867
- const f = i ? `${i}.${c}` : c;
2868
- o[c] = s(o[c], f);
2864
+ if (i && typeof i == "object") {
2865
+ if (P(i))
2866
+ return i;
2867
+ for (const c in i) {
2868
+ const f = o ? `${o}.${c}` : c;
2869
+ i[c] = s(i[c], f);
2869
2870
  }
2870
- return new Proxy(o, {
2871
+ return new Proxy(i, {
2871
2872
  set(c, f, u) {
2872
- const h = i ? `${i}.${String(f)}` : String(f);
2873
+ const h = o ? `${o}.${String(f)}` : String(f);
2873
2874
  return c[String(f)] = s(u, h), r._initializing || (r._triggerWatchers(
2874
2875
  h,
2875
2876
  c[String(f)]
@@ -2880,16 +2881,16 @@ function nn(e, n) {
2880
2881
  }
2881
2882
  });
2882
2883
  }
2883
- return o;
2884
+ return i;
2884
2885
  };
2885
2886
  const r = this;
2886
2887
  return s({
2887
2888
  // For functional components, state is managed by state() function calls
2888
2889
  // Include prop defaults in initial reactive context so prop updates trigger reactivity
2889
2890
  ...t.props ? Object.fromEntries(
2890
- Object.entries(t.props).map(([o, i]) => [
2891
- o,
2892
- i.default
2891
+ Object.entries(t.props).map(([i, o]) => [
2892
+ i,
2893
+ o.default
2893
2894
  ])
2894
2895
  ) : {}
2895
2896
  });
@@ -2899,7 +2900,7 @@ function nn(e, n) {
2899
2900
  }
2900
2901
  _initWatchers(t) {
2901
2902
  this._runLogicWithinErrorBoundary(t, () => {
2902
- Nt(
2903
+ Ot(
2903
2904
  this.context,
2904
2905
  this._watchers,
2905
2906
  {}
@@ -2908,16 +2909,16 @@ function nn(e, n) {
2908
2909
  });
2909
2910
  }
2910
2911
  _triggerWatchers(t, s) {
2911
- Ot(this.context, this._watchers, t, s);
2912
+ jt(this.context, this._watchers, t, s);
2912
2913
  }
2913
2914
  _applyProps(t) {
2914
2915
  this._runLogicWithinErrorBoundary(t, () => {
2915
- Mt(this, t, this.context);
2916
+ Pt(this, t, this.context);
2916
2917
  });
2917
2918
  }
2918
2919
  };
2919
2920
  }
2920
- function yn() {
2921
+ function gn() {
2921
2922
  return Y();
2922
2923
  }
2923
2924
  let R = null;
@@ -2927,10 +2928,10 @@ function Ue(e) {
2927
2928
  function Be() {
2928
2929
  R = null;
2929
2930
  }
2930
- function mn() {
2931
+ function bn() {
2931
2932
  return R;
2932
2933
  }
2933
- function gn() {
2934
+ function vn() {
2934
2935
  if (!R)
2935
2936
  throw new Error("useEmit must be called during component render");
2936
2937
  if (Y())
@@ -2951,7 +2952,7 @@ function he(e) {
2951
2952
  configurable: !1
2952
2953
  });
2953
2954
  }
2954
- function bn(e) {
2955
+ function En(e) {
2955
2956
  if (!R)
2956
2957
  throw new Error("useOnConnected must be called during component render");
2957
2958
  if (Y()) return;
@@ -2959,7 +2960,7 @@ function bn(e) {
2959
2960
  const n = R._hookCallbacks;
2960
2961
  n.onConnected || (n.onConnected = []), n.onConnected.push(e);
2961
2962
  }
2962
- function vn(e) {
2963
+ function Sn(e) {
2963
2964
  if (!R)
2964
2965
  throw new Error("useOnDisconnected must be called during component render");
2965
2966
  if (Y()) return;
@@ -2967,7 +2968,7 @@ function vn(e) {
2967
2968
  const n = R._hookCallbacks;
2968
2969
  n.onDisconnected || (n.onDisconnected = []), n.onDisconnected.push(e);
2969
2970
  }
2970
- function En(e) {
2971
+ function Cn(e) {
2971
2972
  if (!R)
2972
2973
  throw new Error(
2973
2974
  "useOnAttributeChanged must be called during component render"
@@ -2977,7 +2978,7 @@ function En(e) {
2977
2978
  const n = R._hookCallbacks;
2978
2979
  n.onAttributeChanged || (n.onAttributeChanged = []), n.onAttributeChanged.push(e);
2979
2980
  }
2980
- function Sn(e) {
2981
+ function kn(e) {
2981
2982
  if (!R)
2982
2983
  throw new Error("useOnError must be called during component render");
2983
2984
  if (Y()) return;
@@ -2990,7 +2991,7 @@ function Sn(e) {
2990
2991
  }
2991
2992
  });
2992
2993
  }
2993
- function rn(e) {
2994
+ function sn(e) {
2994
2995
  if (!R)
2995
2996
  throw new Error("useProps must be called during component render");
2996
2997
  he(R);
@@ -3002,29 +3003,29 @@ function rn(e) {
3002
3003
  const t = R;
3003
3004
  try {
3004
3005
  const r = Object.keys(e || {});
3005
- for (const o of r) {
3006
- if (typeof o != "string" || o.startsWith("_")) continue;
3007
- const i = Object.getOwnPropertyDescriptor(t, o);
3008
- if (!(i && !i.configurable))
3006
+ for (const i of r) {
3007
+ if (typeof i != "string" || i.startsWith("_")) continue;
3008
+ const o = Object.getOwnPropertyDescriptor(t, i);
3009
+ if (!(o && !o.configurable))
3009
3010
  try {
3010
- let f = Object.prototype.hasOwnProperty.call(t, o) ? t[o] : void 0;
3011
- Object.defineProperty(t, o, {
3011
+ let f = Object.prototype.hasOwnProperty.call(t, i) ? t[i] : void 0;
3012
+ Object.defineProperty(t, i, {
3012
3013
  configurable: !0,
3013
3014
  enumerable: !0,
3014
3015
  get() {
3015
3016
  try {
3016
3017
  const u = t && t._host;
3017
3018
  if (u) {
3018
- const h = J(o), p = u.getAttribute(h);
3019
+ const h = J(i), p = u.getAttribute(h);
3019
3020
  if (p !== null) {
3020
- const d = typeof e[o];
3021
+ const d = typeof e[i];
3021
3022
  return d === "boolean" ? p === "" || p === "true" : d === "number" ? Number(p) : p;
3022
3023
  }
3023
- if (typeof u[o] < "u") {
3024
- const d = u[o];
3024
+ if (typeof u[i] < "u") {
3025
+ const d = u[i];
3025
3026
  if (P(d) || d && typeof d == "object" && "value" in d && !(d instanceof Node))
3026
3027
  return d.value;
3027
- const k = typeof e[o];
3028
+ const k = typeof e[i];
3028
3029
  if (!(k === "string" && d && typeof d == "object"))
3029
3030
  return k === "boolean" && typeof d == "string" ? d === "" || d === "true" : d;
3030
3031
  }
@@ -3043,31 +3044,31 @@ function rn(e) {
3043
3044
  } catch {
3044
3045
  }
3045
3046
  return new Proxy({}, {
3046
- get(r, o) {
3047
- if (typeof o != "string") return;
3048
- const i = e[o];
3047
+ get(r, i) {
3048
+ if (typeof i != "string") return;
3049
+ const o = e[i];
3049
3050
  try {
3050
3051
  const f = t && t._host;
3051
3052
  if (f) {
3052
3053
  if (f instanceof HTMLElement || typeof f.getAttribute == "function" && typeof f.hasAttribute == "function") {
3053
- const h = o.replace(/([A-Z])/g, "-$1").toLowerCase(), p = f.getAttribute(h);
3054
+ const h = i.replace(/([A-Z])/g, "-$1").toLowerCase(), p = f.getAttribute(h);
3054
3055
  if (p !== null)
3055
- return typeof i == "boolean" ? p === "" || p === "true" : typeof i == "number" ? Number(p) : p;
3056
+ return typeof o == "boolean" ? p === "" || p === "true" : typeof o == "number" ? Number(p) : p;
3056
3057
  }
3057
- const u = f[o];
3058
+ const u = f[i];
3058
3059
  if (typeof u < "u" && u !== "") {
3059
3060
  const h = u && typeof u == "object" && "value" in u && !(u instanceof Node);
3060
- if (!(typeof i == "string" && u && typeof u == "object" && !h && !P(u)))
3061
- return typeof i == "boolean" && i === !1 && u === "" ? i : P(u) || h ? u.value : typeof i == "boolean" && typeof u == "string" ? u === "true" || u !== "" && u !== "false" : typeof i == "number" && typeof u == "string" && !Number.isNaN(Number(u)) ? Number(u) : u;
3061
+ if (!(typeof o == "string" && u && typeof u == "object" && !h && !P(u)))
3062
+ return typeof o == "boolean" && o === !1 && u === "" ? o : P(u) || h ? u.value : typeof o == "boolean" && typeof u == "string" ? u === "true" || u !== "" && u !== "false" : typeof o == "number" && typeof u == "string" && !Number.isNaN(Number(u)) ? Number(u) : u;
3062
3063
  }
3063
3064
  }
3064
3065
  } catch {
3065
3066
  }
3066
- const c = t[o];
3067
- return typeof i == "boolean" && c === "" ? i === !1 ? i : !0 : P(c) || c && typeof c == "object" && "value" in c && !(c instanceof Node) ? c.value : c != null && c !== "" ? typeof i == "boolean" && typeof c == "string" ? c === "true" : typeof i == "number" && typeof c == "string" && !Number.isNaN(Number(c)) ? Number(c) : c : i;
3067
+ const c = t[i];
3068
+ return typeof o == "boolean" && c === "" ? o === !1 ? o : !0 : P(c) || c && typeof c == "object" && "value" in c && !(c instanceof Node) ? c.value : c != null && c !== "" ? typeof o == "boolean" && typeof c == "string" ? c === "true" : typeof o == "number" && typeof c == "string" && !Number.isNaN(Number(c)) ? Number(c) : c : o;
3068
3069
  },
3069
- has(r, o) {
3070
- return typeof o == "string" && (o in t || o in e);
3070
+ has(r, i) {
3071
+ return typeof i == "string" && (i in t || i in e);
3071
3072
  },
3072
3073
  ownKeys() {
3073
3074
  return Array.from(
@@ -3079,7 +3080,7 @@ function rn(e) {
3079
3080
  }
3080
3081
  });
3081
3082
  }
3082
- function Cn(e) {
3083
+ function _n(e) {
3083
3084
  if (!R)
3084
3085
  throw new Error("useStyle must be called during component render");
3085
3086
  if (!Y()) {
@@ -3103,7 +3104,7 @@ function Cn(e) {
3103
3104
  }
3104
3105
  }
3105
3106
  const je = /* @__PURE__ */ Symbol.for("@cer/provides");
3106
- function kn(e, n) {
3107
+ function An(e, n) {
3107
3108
  if (!R)
3108
3109
  throw new Error("provide must be called during component render");
3109
3110
  if (Y()) return;
@@ -3115,7 +3116,7 @@ function kn(e, n) {
3115
3116
  configurable: !0
3116
3117
  }), t[je].set(e, n);
3117
3118
  }
3118
- function _n(e, n) {
3119
+ function wn(e, n) {
3119
3120
  if (!R)
3120
3121
  throw new Error("inject must be called during component render");
3121
3122
  if (Y()) return n;
@@ -3125,18 +3126,18 @@ function _n(e, n) {
3125
3126
  let s = t.parentNode;
3126
3127
  for (s || (s = t.getRootNode()); s; )
3127
3128
  if (s instanceof ShadowRoot) {
3128
- const r = s.host, o = r.context;
3129
- if (o) {
3130
- const c = o[je];
3129
+ const r = s.host, i = r.context;
3130
+ if (i) {
3131
+ const c = i[je];
3131
3132
  if (c?.has(e))
3132
3133
  return c.get(e);
3133
3134
  }
3134
3135
  if (s = r.parentNode ?? r.getRootNode(), s === document || s === r) break;
3135
3136
  } else {
3136
3137
  if (s instanceof Element) {
3137
- const i = s.context;
3138
- if (i) {
3139
- const c = i[je];
3138
+ const o = s.context;
3139
+ if (o) {
3140
+ const c = o[je];
3140
3141
  if (c?.has(e))
3141
3142
  return c.get(e);
3142
3143
  }
@@ -3149,7 +3150,7 @@ function _n(e, n) {
3149
3150
  }
3150
3151
  return n;
3151
3152
  }
3152
- function An(e) {
3153
+ function Tn(e) {
3153
3154
  return (n) => {
3154
3155
  const t = n ?? R;
3155
3156
  if (!t)
@@ -3165,7 +3166,7 @@ function An(e) {
3165
3166
  }
3166
3167
  };
3167
3168
  }
3168
- function wn(e) {
3169
+ function Ln(e) {
3169
3170
  if (!R)
3170
3171
  throw new Error("useExpose must be called during component render");
3171
3172
  if (Y()) return;
@@ -3180,7 +3181,7 @@ function wn(e) {
3180
3181
  } catch {
3181
3182
  }
3182
3183
  }
3183
- function Tn() {
3184
+ function Nn() {
3184
3185
  if (!R)
3185
3186
  throw new Error("useSlots must be called during component render");
3186
3187
  if (Y())
@@ -3219,86 +3220,86 @@ function Tn() {
3219
3220
  }
3220
3221
  };
3221
3222
  }
3222
- function Ln(...e) {
3223
+ function On(...e) {
3223
3224
  if (!R)
3224
3225
  throw new Error("defineModel must be called during component render");
3225
- const n = e.length === 2 ? e[0] : "modelValue", t = e.length === 2 ? e[1] : e.length === 1 ? e[0] : void 0, s = rn({
3226
+ const n = e.length === 2 ? e[0] : "modelValue", t = e.length === 2 ? e[1] : e.length === 1 ? e[0] : void 0, s = sn({
3226
3227
  [n]: t
3227
- }), o = Y() ? null : (() => {
3228
+ }), i = Y() ? null : (() => {
3228
3229
  const c = R.emit;
3229
3230
  return typeof c != "function" ? null : c;
3230
- })(), i = {
3231
+ })(), o = {
3231
3232
  get value() {
3232
3233
  return s[n];
3233
3234
  },
3234
3235
  set value(c) {
3235
- o && o(`update:${n}`, c);
3236
+ i && i(`update:${n}`, c);
3236
3237
  }
3237
3238
  };
3238
3239
  try {
3239
- Object.defineProperty(i, /* @__PURE__ */ Symbol.for("@cer/ReactiveState"), {
3240
+ Object.defineProperty(o, /* @__PURE__ */ Symbol.for("@cer/ReactiveState"), {
3240
3241
  value: !0,
3241
3242
  enumerable: !1,
3242
3243
  configurable: !1
3243
3244
  });
3244
3245
  } catch {
3245
3246
  }
3246
- return i;
3247
+ return o;
3247
3248
  }
3248
- function Nn(e, n) {
3249
- Lt();
3249
+ function jn(e, n) {
3250
+ Nt();
3250
3251
  let t = J(e);
3251
3252
  t.includes("-") || (t = `cer-${t}`);
3252
3253
  const s = {}, r = {
3253
3254
  // Props are accessed via useProps() hook
3254
3255
  props: {},
3255
3256
  // Add lifecycle hooks from the stored functions
3256
- onConnected: (o) => {
3257
+ onConnected: (i) => {
3257
3258
  if (s.onConnected)
3258
3259
  try {
3259
- s.onConnected(o);
3260
+ s.onConnected(i);
3260
3261
  } catch {
3261
3262
  }
3262
3263
  },
3263
- onDisconnected: (o) => {
3264
+ onDisconnected: (i) => {
3264
3265
  if (s.onDisconnected)
3265
3266
  try {
3266
- s.onDisconnected(o);
3267
+ s.onDisconnected(i);
3267
3268
  } catch {
3268
3269
  }
3269
3270
  },
3270
- onAttributeChanged: (o, i, c, f) => {
3271
+ onAttributeChanged: (i, o, c, f) => {
3271
3272
  if (s.onAttributeChanged)
3272
3273
  try {
3273
- s.onAttributeChanged(o, i, c, f);
3274
+ s.onAttributeChanged(i, o, c, f);
3274
3275
  } catch {
3275
3276
  }
3276
3277
  },
3277
- onError: (o, i) => {
3278
- if (s.onError && o)
3278
+ onError: (i, o) => {
3279
+ if (s.onError && i)
3279
3280
  try {
3280
- s.onError(o, i);
3281
+ s.onError(i, o);
3281
3282
  } catch {
3282
3283
  }
3283
3284
  },
3284
- render: (o) => {
3285
- const i = o, c = i._componentId || `${t}-${crypto.randomUUID()}`;
3285
+ render: (i) => {
3286
+ const o = i, c = o._componentId || `${t}-${crypto.randomUUID()}`;
3286
3287
  nt.setCurrentComponent(c, () => {
3287
- o.requestRender && o.requestRender();
3288
+ i.requestRender && i.requestRender();
3288
3289
  });
3289
3290
  try {
3290
- Object.defineProperty(o, "_hookCallbacks", {
3291
+ Object.defineProperty(i, "_hookCallbacks", {
3291
3292
  value: {},
3292
3293
  writable: !0,
3293
3294
  enumerable: !1,
3294
3295
  configurable: !0
3295
- }), Ue(o);
3296
+ }), Ue(i), st();
3296
3297
  let f;
3297
3298
  try {
3298
3299
  f = n();
3299
3300
  } catch (u) {
3300
3301
  try {
3301
- const p = i._hookCallbacks?.onError;
3302
+ const p = o._hookCallbacks?.onError;
3302
3303
  if (Array.isArray(p))
3303
3304
  for (const d of p)
3304
3305
  try {
@@ -3313,7 +3314,7 @@ function Nn(e, n) {
3313
3314
  } catch {
3314
3315
  }
3315
3316
  try {
3316
- const h = i._host;
3317
+ const h = o._host;
3317
3318
  if (h?.parentElement) {
3318
3319
  let p = h.parentElement;
3319
3320
  for (; p; ) {
@@ -3335,8 +3336,8 @@ function Nn(e, n) {
3335
3336
  }
3336
3337
  throw u;
3337
3338
  }
3338
- if (i._hookCallbacks) {
3339
- const u = i._hookCallbacks;
3339
+ if (o._hookCallbacks) {
3340
+ const u = o._hookCallbacks;
3340
3341
  if (u.onConnected) {
3341
3342
  const h = u.onConnected;
3342
3343
  s.onConnected = (p) => {
@@ -3395,43 +3396,43 @@ function Nn(e, n) {
3395
3396
  };
3396
3397
  if (ge.set(t, r), typeof window < "u") {
3397
3398
  try {
3398
- const o = {
3399
+ const i = {
3399
3400
  _hookCallbacks: {},
3400
3401
  requestRender: () => {
3401
3402
  },
3402
3403
  emit: () => !0
3403
3404
  };
3404
- Ue(o), kt();
3405
+ Ue(i), _t(), st();
3405
3406
  try {
3406
3407
  n();
3407
- } catch (i) {
3408
+ } catch (o) {
3408
3409
  try {
3409
- const f = o?._hookCallbacks?.onError;
3410
+ const f = i?._hookCallbacks?.onError;
3410
3411
  if (Array.isArray(f))
3411
3412
  for (const u of f)
3412
3413
  try {
3413
- u(i);
3414
+ u(o);
3414
3415
  } catch {
3415
3416
  }
3416
3417
  else if (typeof f == "function")
3417
3418
  try {
3418
- f(i);
3419
+ f(o);
3419
3420
  } catch {
3420
3421
  }
3421
3422
  B(
3422
3423
  `Error during component discovery render <${t}>:`,
3423
- i
3424
+ o
3424
3425
  ), ee(
3425
3426
  "Error occurred during initial component discovery render. Consider guarding expensive expressions or using lazy factories for directives like when()."
3426
3427
  );
3427
3428
  } catch {
3428
3429
  }
3429
- throw tt(), Be(), i;
3430
+ throw tt(), Be(), o;
3430
3431
  }
3431
- if (tt(), Be(), o._hookCallbacks?.props) {
3432
- const i = o._hookCallbacks.props;
3432
+ if (tt(), Be(), i._hookCallbacks?.props) {
3433
+ const o = i._hookCallbacks.props;
3433
3434
  r.props = Object.fromEntries(
3434
- Object.entries(i).map(([c, f]) => [
3435
+ Object.entries(o).map(([c, f]) => [
3435
3436
  c,
3436
3437
  { type: typeof f == "boolean" ? Boolean : typeof f == "number" ? Number : typeof f == "string" ? String : Function, default: f }
3437
3438
  ])
@@ -3441,7 +3442,7 @@ function Nn(e, n) {
3441
3442
  }
3442
3443
  customElements.get(t) || customElements.define(
3443
3444
  t,
3444
- nn(t, r)
3445
+ rn(t, r)
3445
3446
  );
3446
3447
  }
3447
3448
  }
@@ -3455,10 +3456,10 @@ function Me(e) {
3455
3456
  function ue(e) {
3456
3457
  return typeof e == "object" && e !== null && "tag" in e && !Me(e);
3457
3458
  }
3458
- function sn(e, n) {
3459
+ function on(e, n) {
3459
3460
  return e.key != null ? e : { ...e, key: n };
3460
3461
  }
3461
- class on {
3462
+ class cn {
3462
3463
  map = /* @__PURE__ */ new Map();
3463
3464
  maxSize;
3464
3465
  accessOrder = /* @__PURE__ */ new Map();
@@ -3491,7 +3492,7 @@ class on {
3491
3492
  return this.map.size;
3492
3493
  }
3493
3494
  }
3494
- const cn = () => {
3495
+ const an = () => {
3495
3496
  if (typeof navigator < "u" && "deviceMemory" in navigator) {
3496
3497
  const n = navigator.deviceMemory;
3497
3498
  if (n)
@@ -3504,10 +3505,10 @@ const cn = () => {
3504
3505
  return !1;
3505
3506
  }
3506
3507
  })() ? 100 : 500;
3507
- }, qe = new on(
3508
- cn()
3508
+ }, qe = new cn(
3509
+ an()
3509
3510
  );
3510
- function an(e, n) {
3511
+ function ln(e, n) {
3511
3512
  if (e == null) {
3512
3513
  ee(
3513
3514
  `⚠️ Event handler for '@${n}' is ${e}. This will prevent the event from working. Use a function reference instead: @${n}="\${functionName}"`
@@ -3520,8 +3521,8 @@ function an(e, n) {
3520
3521
  `💡 Tip: If your event handler function returns undefined, make sure you're passing the function reference, not calling it. Use @${n}="\${fn}" not @${n}="\${fn()}"`
3521
3522
  );
3522
3523
  }
3523
- function ln(e, n = [], t = {}) {
3524
- const s = {}, r = {}, o = {}, i = [], c = /([:@#]?)([a-zA-Z0-9-:.]+)(?:\s*=\s*("([^"\\]*(\\.[^"\\]*)*)"|'([^'\\]*(\\.[^'\\]*)*)'|([^\s>]+)))?/g;
3524
+ function fn(e, n = [], t = {}) {
3525
+ const s = {}, r = {}, i = {}, o = [], c = /([:@#]?)([a-zA-Z0-9-:.]+)(?:\s*=\s*("([^"\\]*(\\.[^"\\]*)*)"|'([^'\\]*(\\.[^'\\]*)*)'|([^\s>]+)))?/g;
3525
3526
  let f;
3526
3527
  for (; f = c.exec(e); ) {
3527
3528
  const u = f[1], h = f[2];
@@ -3551,7 +3552,7 @@ function ln(e, n = [], t = {}) {
3551
3552
  const [b, E] = h.split(":"), [m, ...v] = b.split(".");
3552
3553
  if (a.includes(m)) {
3553
3554
  const S = [...v], C = m === "model" && E ? `model:${E}` : m;
3554
- o[C] = {
3555
+ i[C] = {
3555
3556
  value: A,
3556
3557
  modifiers: S,
3557
3558
  arg: E
@@ -3566,14 +3567,14 @@ function ln(e, n = [], t = {}) {
3566
3567
  let _ = A;
3567
3568
  _ && P(_) && (_ = _.value), r[h] = _;
3568
3569
  }
3569
- i.push(h);
3570
+ o.push(h);
3570
3571
  } else {
3571
3572
  let S = A;
3572
- S && P(S) && (S = S.value), r[h] = S, i.push(h);
3573
+ S && P(S) && (S = S.value), r[h] = S, o.push(h);
3573
3574
  }
3574
3575
  } else if (u === "@") {
3575
3576
  const [b, ...E] = h.split("."), m = E;
3576
- an(A, b);
3577
+ ln(A, b);
3577
3578
  const v = typeof A == "function" ? A : typeof t[A] == "function" ? t[A] : void 0;
3578
3579
  if (v) {
3579
3580
  const S = (T) => {
@@ -3587,7 +3588,7 @@ function ln(e, n = [], t = {}) {
3587
3588
  }
3588
3589
  } else h === "ref" ? s.ref = A : r[h] = A;
3589
3590
  }
3590
- return { props: s, attrs: r, directives: o, bound: i };
3591
+ return { props: s, attrs: r, directives: i, bound: o };
3591
3592
  }
3592
3593
  function Ye(e) {
3593
3594
  if (!ue(e) || Me(e))
@@ -3596,18 +3597,18 @@ function Ye(e) {
3596
3597
  if (n && n.when) {
3597
3598
  const t = n.when.value, s = P(t) ? t.value : t, r = { ...n };
3598
3599
  delete r.when;
3599
- const o = { ...e.props };
3600
- Object.keys(r).length > 0 ? o.directives = r : delete o.directives;
3601
- const i = {
3600
+ const i = { ...e.props };
3601
+ Object.keys(r).length > 0 ? i.directives = r : delete i.directives;
3602
+ const o = {
3602
3603
  ...e,
3603
- props: o
3604
+ props: i
3604
3605
  };
3605
- return Array.isArray(i.children) && (i.children = i.children.map(
3606
+ return Array.isArray(o.children) && (o.children = o.children.map(
3606
3607
  (f) => typeof f == "object" && f !== null ? Ye(f) : f
3607
3608
  )), {
3608
3609
  tag: "#anchor",
3609
3610
  key: e.key != null ? `when-${e.key}` : `when-${e.tag}`,
3610
- children: s ? [i] : []
3611
+ children: s ? [o] : []
3611
3612
  };
3612
3613
  }
3613
3614
  if (Array.isArray(e.children)) {
@@ -3621,17 +3622,17 @@ function Ye(e) {
3621
3622
  }
3622
3623
  return e;
3623
3624
  }
3624
- function fn(e, n, t) {
3625
- const s = Oe.length > 0 ? Oe[Oe.length - 1] : void 0, r = t ?? s, o = !t && n.length === 0, i = o ? e.join("<!--TEMPLATE_DELIM-->") : null;
3626
- if (o && i) {
3627
- const l = qe.get(i);
3625
+ function un(e, n, t) {
3626
+ const s = Oe.length > 0 ? Oe[Oe.length - 1] : void 0, r = t ?? s, i = !t && n.length === 0, o = i ? e.join("<!--TEMPLATE_DELIM-->") : null;
3627
+ if (i && o) {
3628
+ const l = qe.get(o);
3628
3629
  if (l) return l;
3629
3630
  }
3630
3631
  function c(l, y) {
3631
3632
  return ce("#text", {}, l, y);
3632
3633
  }
3633
3634
  function f(l, y, w = !1) {
3634
- let L = typeof l == "string" ? _t(l) : l;
3635
+ let L = typeof l == "string" ? At(l) : l;
3635
3636
  return !w && typeof L == "string" && /[\r\n]/.test(L) && (L = L.replace(/\s+/g, " ")), ce("#text", {}, L, y);
3636
3637
  }
3637
3638
  let u = "";
@@ -3686,7 +3687,7 @@ function fn(e, n, t) {
3686
3687
  return;
3687
3688
  }
3688
3689
  if (ue(l)) {
3689
- w.push(sn(l, void 0));
3690
+ w.push(on(l, void 0));
3690
3691
  return;
3691
3692
  }
3692
3693
  if (Array.isArray(l)) {
@@ -3739,7 +3740,7 @@ function fn(e, n, t) {
3739
3740
  attrs: N,
3740
3741
  directives: M,
3741
3742
  bound: D
3742
- } = ln(
3743
+ } = fn(
3743
3744
  d[2] || "",
3744
3745
  n,
3745
3746
  r ?? {}
@@ -3774,9 +3775,9 @@ function fn(e, n, t) {
3774
3775
  audio: ["muted", "autoplay", "controls", "loop"],
3775
3776
  img: ["src", "alt", "width", "height"],
3776
3777
  button: ["type", "name", "value", "autofocus", "form"]
3777
- }, I = l.toLowerCase(), oe = z[I] ?? [];
3778
+ }, I = l.toLowerCase(), ie = z[I] ?? [];
3778
3779
  if (O.attrs) {
3779
- for (const H of oe)
3780
+ for (const H of ie)
3780
3781
  if (D && D.includes(H) && H in O.attrs && !(O.props && H in O.props)) {
3781
3782
  let $ = O.attrs[H];
3782
3783
  if ($ && P($))
@@ -3804,7 +3805,7 @@ function fn(e, n, t) {
3804
3805
  for (const $ of D)
3805
3806
  if ($ in O.attrs && !(O.props && $ in O.props)) {
3806
3807
  const W = $.includes("-") ? Xe($) : $, te = O.attrs[$];
3807
- if (O.props[W] = te, H.has($) || dt($))
3808
+ if (O.props[W] = te, H.has($) || pt($))
3808
3809
  try {
3809
3810
  const xe = V(O.attrs[$]);
3810
3811
  xe === null ? delete O.attrs[$] : O.attrs[$] = xe;
@@ -3829,11 +3830,11 @@ function fn(e, n, t) {
3829
3830
  (z) => z === "model" || z.startsWith("model:")
3830
3831
  ))
3831
3832
  try {
3832
- const I = globalThis[/* @__PURE__ */ Symbol.for("cer.registry")], oe = !!(I && typeof I.has == "function" && I.has(l)), X = r, H = !!(X && (X.__customElements instanceof Set && X.__customElements.has(l) || Array.isArray(X.__isCustomElements) && X.__isCustomElements.includes(l)));
3833
- if (!!(l.includes("-") || H || oe))
3833
+ const I = globalThis[/* @__PURE__ */ Symbol.for("cer.registry")], ie = !!(I && typeof I.has == "function" && I.has(l)), X = r, H = !!(X && (X.__customElements instanceof Set && X.__customElements.has(l) || Array.isArray(X.__isCustomElements) && X.__isCustomElements.includes(l)));
3834
+ if (!!(l.includes("-") || H || ie))
3834
3835
  for (const te of Object.keys(M)) {
3835
3836
  if (te !== "model" && !te.startsWith("model:")) continue;
3836
- const $e = M[te], xe = $e.arg ?? (te.includes(":") ? te.split(":", 2)[1] : void 0), F = $e.value, ze = xe ?? "modelValue", Qe = K, bt = We, Se = r?._state || r;
3837
+ const $e = M[te], xe = $e.arg ?? (te.includes(":") ? te.split(":", 2)[1] : void 0), F = $e.value, ze = xe ?? "modelValue", Qe = K, vt = We, Se = r?._state || r;
3837
3838
  let se;
3838
3839
  if (typeof F == "string" && Se)
3839
3840
  se = Qe(
@@ -3855,8 +3856,8 @@ function fn(e, n, t) {
3855
3856
  const et = `update:${J(ze)}`.replace(
3856
3857
  /-([a-z])/g,
3857
3858
  (ae, re) => re.toUpperCase()
3858
- ), vt = "on" + et.charAt(0).toUpperCase() + et.slice(1);
3859
- O.props[vt] = function(ae) {
3859
+ ), Et = "on" + et.charAt(0).toUpperCase() + et.slice(1);
3860
+ O.props[Et] = function(ae) {
3860
3861
  const re = ae.detail !== void 0 ? ae.detail : ae.target ? ae.target.value : void 0;
3861
3862
  if (Se)
3862
3863
  if (F && P(F)) {
@@ -3878,7 +3879,7 @@ function fn(e, n, t) {
3878
3879
  typeof F == "string" ? F : String(F)
3879
3880
  );
3880
3881
  if (Array.isArray(re) && Array.isArray(le) ? JSON.stringify([...re].sort()) !== JSON.stringify([...le].sort()) : re !== le) {
3881
- bt(
3882
+ vt(
3882
3883
  Se || {},
3883
3884
  typeof F == "string" ? F : String(F),
3884
3885
  re
@@ -3919,13 +3920,13 @@ function fn(e, n, t) {
3919
3920
  }
3920
3921
  H === 0 && $ === k.length - 1 ? I = k : H > $ ? I = [] : I = k.slice(H, $ + 1);
3921
3922
  }
3922
- const oe = ce(
3923
+ const ie = ce(
3923
3924
  j,
3924
3925
  A,
3925
3926
  I.length === 1 && ue(I[0]) && I[0].tag === "#text" ? typeof I[0].children == "string" ? I[0].children : "" : I.length ? I : void 0,
3926
3927
  a
3927
3928
  ), X = p.pop();
3928
- X ? (j = X.tag, A = X.props, a = X.key, k = X.children, k.push(oe)) : (E.push(oe), j = null, A = {}, a = void 0, k = []);
3929
+ X ? (j = X.tag, A = X.props, a = X.key, k = X.children, k.push(ie)) : (E.push(ie), j = null, A = {}, a = void 0, k = []);
3929
3930
  } else w ? j ? k.push(ce(l, O, void 0, void 0)) : E.push(ce(l, O, void 0, void 0)) : (j && p.push({
3930
3931
  tag: j,
3931
3932
  props: A,
@@ -3955,36 +3956,36 @@ function fn(e, n, t) {
3955
3956
  );
3956
3957
  if (_.length === 1) {
3957
3958
  const l = _[0];
3958
- return o && i && qe.set(i, l), l;
3959
+ return i && o && qe.set(o, l), l;
3959
3960
  } else if (_.length > 1) {
3960
3961
  const l = _;
3961
- return o && i && qe.set(i, l), l;
3962
+ return i && o && qe.set(o, l), l;
3962
3963
  }
3963
3964
  return ce("div", {}, "", "fallback-root");
3964
3965
  }
3965
- function On(e, ...n) {
3966
+ function Mn(e, ...n) {
3966
3967
  if (Y()) return [];
3967
3968
  const t = n[n.length - 1], s = typeof t == "object" && t && !Array.isArray(t) ? t : void 0;
3968
- return fn(e, n, s);
3969
+ return un(e, n, s);
3969
3970
  }
3970
3971
  export {
3971
- wn as a,
3972
- rn as b,
3973
- Nn as c,
3974
- An as d,
3975
- Ln as e,
3976
- _n as f,
3977
- mn as g,
3978
- On as h,
3979
- yn as i,
3980
- gn as j,
3981
- En as k,
3982
- bn as l,
3983
- vn as m,
3984
- Tn as n,
3985
- Cn as o,
3986
- kn as p,
3987
- Sn as u,
3988
- Zt as v
3972
+ Ln as a,
3973
+ sn as b,
3974
+ jn as c,
3975
+ Tn as d,
3976
+ On as e,
3977
+ wn as f,
3978
+ bn as g,
3979
+ Mn as h,
3980
+ gn as i,
3981
+ vn as j,
3982
+ Cn as k,
3983
+ En as l,
3984
+ Sn as m,
3985
+ Nn as n,
3986
+ _n as o,
3987
+ An as p,
3988
+ kn as u,
3989
+ Jt as v
3989
3990
  };
3990
- //# sourceMappingURL=template-compiler-D0LrTkNv.js.map
3991
+ //# sourceMappingURL=template-compiler-CVBKYu3j.js.map