@jasonshimmy/custom-elements-runtime 3.1.0 → 3.1.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.
Files changed (34) hide show
  1. package/dist/custom-elements-runtime.cjs.js +1 -1
  2. package/dist/custom-elements-runtime.es.js +3 -3
  3. package/dist/custom-elements-runtime.jit-css.cjs.js +1 -1
  4. package/dist/custom-elements-runtime.jit-css.es.js +2 -2
  5. package/dist/custom-elements-runtime.router.cjs.js +1 -1
  6. package/dist/custom-elements-runtime.router.es.js +2 -2
  7. package/dist/custom-elements-runtime.ssr-middleware.cjs.js +1 -1
  8. package/dist/custom-elements-runtime.ssr-middleware.cjs.js.map +1 -1
  9. package/dist/custom-elements-runtime.ssr-middleware.es.js +36 -30
  10. package/dist/custom-elements-runtime.ssr-middleware.es.js.map +1 -1
  11. package/dist/custom-elements-runtime.ssr.cjs.js +3 -3
  12. package/dist/custom-elements-runtime.ssr.cjs.js.map +1 -1
  13. package/dist/custom-elements-runtime.ssr.es.js +121 -100
  14. package/dist/custom-elements-runtime.ssr.es.js.map +1 -1
  15. package/dist/{hooks-B50HhrHh.cjs → hooks-x8M4knLc.cjs} +4 -4
  16. package/dist/hooks-x8M4knLc.cjs.map +1 -0
  17. package/dist/{hooks-Cze3o-F7.js → hooks-xWZhQHco.js} +202 -199
  18. package/dist/hooks-xWZhQHco.js.map +1 -0
  19. package/dist/runtime/render.d.ts +0 -11
  20. package/dist/runtime/scheduler.d.ts +12 -0
  21. package/dist/runtime/ssr-context.d.ts +3 -1
  22. package/dist/runtime/ssr-utils.d.ts +9 -0
  23. package/dist/runtime/vdom-ssr-dsd.d.ts +25 -1
  24. package/dist/runtime/vdom-ssr.d.ts +2 -6
  25. package/dist/template-compiler-CTUhEHr8.cjs +22 -0
  26. package/dist/template-compiler-CTUhEHr8.cjs.map +1 -0
  27. package/dist/{template-compiler-DtpNsqE-.js → template-compiler-ZhSg1yPh.js} +902 -922
  28. package/dist/template-compiler-ZhSg1yPh.js.map +1 -0
  29. package/package.json +1 -1
  30. package/dist/hooks-B50HhrHh.cjs.map +0 -1
  31. package/dist/hooks-Cze3o-F7.js.map +0 -1
  32. package/dist/template-compiler-Cshhqxyd.cjs +0 -23
  33. package/dist/template-compiler-Cshhqxyd.cjs.map +0 -1
  34. package/dist/template-compiler-DtpNsqE-.js.map +0 -1
@@ -1,9 +1,9 @@
1
- import { C as z, D as X, l as O, E as Re, F as x, G as F, H as Ge, I as ft, c as Ue, J as Ce, K as Ye, L as Et, M as St, N as Xe, O as Qe, f as Ct, P as kt } from "./hooks-Cze3o-F7.js";
2
- import { resetWhenCounter as et } from "./custom-elements-runtime.directives.es.js";
1
+ import { C as z, D as X, l as O, E as Ie, F as H, G as F, H as Ve, I as at, J as bt, c as Ke, K as Se, L as Ze, M as vt, N as Et, O as Ye, P as Xe, f as St, Q as Ct } from "./hooks-xWZhQHco.js";
2
+ import { resetWhenCounter as Qe } from "./custom-elements-runtime.directives.es.js";
3
3
  import { d as W, a as te } from "./logger-BvkEbVM4.js";
4
- import { s as K, r as Z, T as _t, S as At, a as we, i as Tt } from "./namespace-helpers-D4wC2-qA.js";
5
- import { i as wt, p as Lt, g as Nt, a as $e, m as ke, b as tt, s as Mt } from "./css-utils-Cg4o1MqY.js";
6
- import { getTransitionStyleSheet as he } from "./custom-elements-runtime.transitions.es.js";
4
+ import { s as K, r as Z, T as kt, S as _t, a as Te, i as At } from "./namespace-helpers-D4wC2-qA.js";
5
+ import { i as Tt, p as wt, g as Lt, a as je, m as Ce, b as et, s as Nt } from "./css-utils-Cg4o1MqY.js";
6
+ import { getTransitionStyleSheet as Mt } from "./custom-elements-runtime.transitions.es.js";
7
7
  function jt(e, s, t) {
8
8
  if (t)
9
9
  for (const [r, n] of Object.entries(t)) {
@@ -26,9 +26,9 @@ function $t(e, s, t, r) {
26
26
  if (o === i) return !0;
27
27
  if (typeof o != typeof i || typeof o != "object" || o === null || i === null) return !1;
28
28
  if (Array.isArray(o) && Array.isArray(i))
29
- return o.length !== i.length ? !1 : o.every((d, C) => n(d, i[C]));
30
- const f = o, b = i, y = Object.keys(f || {}), m = Object.keys(b || {});
31
- return y.length !== m.length ? !1 : y.every((d) => n(f[d], b[d]));
29
+ return o.length !== i.length ? !1 : o.every((d, E) => n(d, i[E]));
30
+ const f = o, b = i, g = Object.keys(f || {}), h = Object.keys(b || {});
31
+ return g.length !== h.length ? !1 : g.every((d) => n(f[d], b[d]));
32
32
  }, c = s.get(t);
33
33
  if (c && !n(r, c.oldValue))
34
34
  try {
@@ -45,7 +45,7 @@ function $t(e, s, t, r) {
45
45
  W(`Error in deep watcher for "${o}":`, f);
46
46
  }
47
47
  }
48
- function We(e, s) {
48
+ function Be(e, s) {
49
49
  return s === Boolean ? e === "" || e === "true" : s === Number ? Number(e) : e;
50
50
  }
51
51
  function Pt(e, s, t) {
@@ -55,17 +55,17 @@ function Pt(e, s, t) {
55
55
  if (n.type === Function && typeof e[r] == "function")
56
56
  t[r] = e[r];
57
57
  else if (o !== null)
58
- t[r] = We(o, n.type);
58
+ t[r] = Be(o, n.type);
59
59
  else if (typeof e[r] < "u")
60
60
  try {
61
61
  const i = e[r];
62
62
  if (n.type === String && i && typeof i == "object")
63
63
  try {
64
- t[r] = We(String(i), n.type);
64
+ t[r] = Be(String(i), n.type);
65
65
  } catch {
66
66
  t[r] = i;
67
67
  }
68
- else n.type === Boolean && typeof i == "boolean" || n.type === Number && typeof i == "number" || n.type === Function && typeof i == "function" ? t[r] = i : t[r] = We(String(i), n.type);
68
+ else n.type === Boolean && typeof i == "boolean" || n.type === Number && typeof i == "number" || n.type === Function && typeof i == "function" ? t[r] = i : t[r] = Be(String(i), n.type);
69
69
  } catch {
70
70
  t[r] = e[r];
71
71
  }
@@ -97,9 +97,9 @@ function Ot(e, s, t) {
97
97
  const f = X(c), b = e.getAttribute(f);
98
98
  if (b !== null)
99
99
  return b;
100
- const y = e[c];
101
- let m;
102
- return O(y) || y && typeof y == "object" && "value" in y && !(y instanceof Node) ? m = y.value : m = y, m;
100
+ const g = e[c];
101
+ let h;
102
+ return O(g) || g && typeof g == "object" && "value" in g && !(g instanceof Node) ? h = g.value : h = g, h;
103
103
  } catch {
104
104
  return e[c];
105
105
  }
@@ -114,13 +114,13 @@ function Ot(e, s, t) {
114
114
  }
115
115
  Pt(e, s.props, t);
116
116
  }
117
- function nt(e, s, t, r) {
117
+ function tt(e, s, t, r) {
118
118
  e.onConnected && !t && (e.onConnected(s), r(!0));
119
119
  }
120
- function xt(e, s, t, r, n, c, o, i) {
120
+ function Ht(e, s, t, r, n, c, o, i) {
121
121
  e.onDisconnected && e.onDisconnected(s), t.forEach((f) => f()), r(), n(), c(!1), o(null), i(!1);
122
122
  }
123
- function Ht(e, s, t, r, n) {
123
+ function xt(e, s, t, r, n) {
124
124
  e.onAttributeChanged && e.onAttributeChanged(s, t, r, n);
125
125
  }
126
126
  class Y {
@@ -200,7 +200,7 @@ class Y {
200
200
  })) : [];
201
201
  }
202
202
  }
203
- class ut {
203
+ class lt {
204
204
  map = /* @__PURE__ */ new Map();
205
205
  maxSize;
206
206
  constructor(s) {
@@ -240,7 +240,7 @@ const It = () => {
240
240
  return !1;
241
241
  }
242
242
  })() ? 100 : 500;
243
- }, De = new ut(
243
+ }, We = new lt(
244
244
  It()
245
245
  ), Rt = /* @__PURE__ */ new Set([
246
246
  "true",
@@ -288,7 +288,7 @@ const It = () => {
288
288
  class Bt {
289
289
  // Reuse the LRUCache class (Map-insertion-order O(1) eviction) rather than
290
290
  // maintaining a parallel ad-hoc implementation with Map delete+re-insert.
291
- static cache = new ut(1e3);
291
+ static cache = new lt(1e3);
292
292
  // Dangerous patterns to block
293
293
  static dangerousPatterns = [
294
294
  /constructor/i,
@@ -382,29 +382,29 @@ class Bt {
382
382
  }
383
383
  r.push(s.slice(o));
384
384
  for (const i of r) {
385
- let f = -1, b = 0, y = null;
385
+ let f = -1, b = 0, g = null;
386
386
  for (let j = 0; j < i.length; j++) {
387
- const S = i[j];
388
- if (y) {
389
- if (S === "\\") {
387
+ const C = i[j];
388
+ if (g) {
389
+ if (C === "\\") {
390
390
  j++;
391
391
  continue;
392
392
  }
393
- S === y && (y = null);
394
- } else if (S === '"' || S === "'")
395
- y = S;
396
- else if (S === "(" || S === "[" || S === "{")
393
+ C === g && (g = null);
394
+ } else if (C === '"' || C === "'")
395
+ g = C;
396
+ else if (C === "(" || C === "[" || C === "{")
397
397
  b++;
398
- else if (S === ")" || S === "]" || S === "}")
398
+ else if (C === ")" || C === "]" || C === "}")
399
399
  b--;
400
- else if (S === ":" && b === 0) {
400
+ else if (C === ":" && b === 0) {
401
401
  f = j;
402
402
  break;
403
403
  }
404
404
  }
405
405
  if (f === -1) continue;
406
- const m = i.slice(0, f).trim(), d = i.slice(f + 1).trim(), C = m.replace(/^['"]|['"]$/g, "");
407
- t.push({ key: C, value: d });
406
+ const h = i.slice(0, f).trim(), d = i.slice(f + 1).trim(), E = h.replace(/^['"]|['"]$/g, "");
407
+ t.push({ key: E, value: d });
408
408
  }
409
409
  return t;
410
410
  }
@@ -415,36 +415,36 @@ class Bt {
415
415
  const n = [];
416
416
  r = r.replace(
417
417
  /("[^"\\]*(?:\\.[^"\\]*)*"|'[^'\\]*(?:\\.[^'\\]*)*')/g,
418
- (m) => `<<#${n.push(m) - 1}#>>`
418
+ (h) => `<<#${n.push(h) - 1}#>>`
419
419
  );
420
420
  const c = r.match(/ctx\.[\w.]+/g) || [];
421
- for (const m of c) {
422
- const d = m.slice(4), C = z(t, d);
423
- if (C === void 0) return;
424
- const j = n.push(JSON.stringify(C)) - 1;
425
- r = r.split(m).join(`<<#${j}#>>`);
421
+ for (const h of c) {
422
+ const d = h.slice(4), E = z(t, d);
423
+ if (E === void 0) return;
424
+ const j = n.push(JSON.stringify(E)) - 1;
425
+ r = r.split(h).join(`<<#${j}#>>`);
426
426
  }
427
427
  const o = /\b[a-zA-Z_][a-zA-Z0-9_]*(?:\.[a-zA-Z_][a-zA-Z0-9_]*)+\b/g, i = r.match(o) || [];
428
- for (const m of i) {
429
- if (m.startsWith("ctx.")) continue;
430
- const d = z(t, m);
428
+ for (const h of i) {
429
+ if (h.startsWith("ctx.")) continue;
430
+ const d = z(t, h);
431
431
  if (d === void 0) return;
432
- const C = n.push(JSON.stringify(d)) - 1;
433
- r = r.split(m).join(`<<#${C}#>>`);
432
+ const E = n.push(JSON.stringify(d)) - 1;
433
+ r = r.split(h).join(`<<#${E}#>>`);
434
434
  }
435
435
  const f = /\b([a-zA-Z_][a-zA-Z0-9_]*)\b/g;
436
436
  let b;
437
- const y = /* @__PURE__ */ new Set();
437
+ const g = /* @__PURE__ */ new Set();
438
438
  for (; (b = f.exec(r)) !== null; ) {
439
- const m = b[1];
440
- if (Rt.has(m) || /^[0-9]+$/.test(m) || m === "ctx" || y.has(m)) continue;
441
- y.add(m);
442
- const d = z(t, m);
439
+ const h = b[1];
440
+ if (Rt.has(h) || /^[0-9]+$/.test(h) || h === "ctx" || g.has(h)) continue;
441
+ g.add(h);
442
+ const d = z(t, h);
443
443
  if (d === void 0) return;
444
- const C = JSON.stringify(d), j = n.push(C) - 1;
445
- m.includes(".") ? r = r.split(m).join(`<<#${j}#>>`) : r = r.replace(
444
+ const E = JSON.stringify(d), j = n.push(E) - 1;
445
+ h.includes(".") ? r = r.split(h).join(`<<#${j}#>>`) : r = r.replace(
446
446
  new RegExp(
447
- "\\b" + m.replace(/[.*+?^${}()|[\]\\]/g, "\\$&") + "\\b",
447
+ "\\b" + h.replace(/[.*+?^${}()|[\]\\]/g, "\\$&") + "\\b",
448
448
  "g"
449
449
  ),
450
450
  `<<#${j}#>>`
@@ -452,7 +452,7 @@ class Bt {
452
452
  }
453
453
  r = r.replace(
454
454
  /<<#(\d+)#>>/g,
455
- (m, d) => n[Number(d)]
455
+ (h, d) => n[Number(d)]
456
456
  );
457
457
  try {
458
458
  return this.evaluateBasicExpression(r);
@@ -476,14 +476,14 @@ class Bt {
476
476
  return t[r];
477
477
  }
478
478
  function c(u) {
479
- const g = t[r++];
480
- if (u && !g)
479
+ const m = t[r++];
480
+ if (u && !m)
481
481
  throw new Error(`Unexpected token EOF, expected ${u}`);
482
- if (u && g && g.type !== u && g.value !== u)
482
+ if (u && m && m.type !== u && m.value !== u)
483
483
  throw new Error(
484
- `Unexpected token ${g.type}/${g.value}, expected ${u}`
484
+ `Unexpected token ${m.type}/${m.value}, expected ${u}`
485
485
  );
486
- return g;
486
+ return m;
487
487
  }
488
488
  function o() {
489
489
  return j();
@@ -492,39 +492,39 @@ class Bt {
492
492
  if (typeof u == "number") return u;
493
493
  if (u == null) return NaN;
494
494
  if (typeof u == "boolean") return u ? 1 : 0;
495
- const g = Number(u);
496
- return Number.isNaN(g) ? NaN : g;
495
+ const m = Number(u);
496
+ return Number.isNaN(m) ? NaN : m;
497
497
  }
498
- function f(u, g) {
499
- return typeof u == "string" || typeof g == "string" ? String(u) + String(g) : i(u) + i(g);
498
+ function f(u, m) {
499
+ return typeof u == "string" || typeof m == "string" ? String(u) + String(m) : i(u) + i(m);
500
500
  }
501
- function b(u, g) {
502
- return i(u) - i(g);
501
+ function b(u, m) {
502
+ return i(u) - i(m);
503
503
  }
504
- function y(u, g) {
505
- return i(u) * i(g);
504
+ function g(u, m) {
505
+ return i(u) * i(m);
506
506
  }
507
- function m(u, g) {
508
- return i(u) / i(g);
507
+ function h(u, m) {
508
+ return i(u) / i(m);
509
509
  }
510
- function d(u, g) {
511
- return i(u) % i(g);
510
+ function d(u, m) {
511
+ return i(u) % i(m);
512
512
  }
513
- function C(u, g, l) {
514
- if (typeof g == "number" && typeof l == "number")
513
+ function E(u, m, l) {
514
+ if (typeof m == "number" && typeof l == "number")
515
515
  switch (u) {
516
516
  case ">":
517
- return g > l;
517
+ return m > l;
518
518
  case "<":
519
- return g < l;
519
+ return m < l;
520
520
  case ">=":
521
- return g >= l;
521
+ return m >= l;
522
522
  case "<=":
523
- return g <= l;
523
+ return m <= l;
524
524
  default:
525
525
  return !1;
526
526
  }
527
- const v = String(g), _ = String(l);
527
+ const v = String(m), _ = String(l);
528
528
  switch (u) {
529
529
  case ">":
530
530
  return v > _;
@@ -539,8 +539,8 @@ class Bt {
539
539
  }
540
540
  }
541
541
  function j() {
542
- const u = S(), g = n();
543
- if (g && g.value === "?") {
542
+ const u = C(), m = n();
543
+ if (m && m.value === "?") {
544
544
  c("?");
545
545
  const l = o();
546
546
  c(":");
@@ -549,22 +549,22 @@ class Bt {
549
549
  }
550
550
  return u;
551
551
  }
552
- function S() {
553
- let u = L();
552
+ function C() {
553
+ let u = A();
554
554
  for (; ; ) {
555
- const g = n();
556
- if (!g || g.value !== "||") break;
555
+ const m = n();
556
+ if (!m || m.value !== "||") break;
557
557
  c("OP");
558
- const l = L();
558
+ const l = A();
559
559
  u = u || l;
560
560
  }
561
561
  return u;
562
562
  }
563
- function L() {
563
+ function A() {
564
564
  let u = p();
565
565
  for (; ; ) {
566
- const g = n();
567
- if (!g || g.value !== "&&") break;
566
+ const m = n();
567
+ if (!m || m.value !== "&&") break;
568
568
  c("OP");
569
569
  const l = p();
570
570
  u = u && l;
@@ -572,11 +572,11 @@ class Bt {
572
572
  return u;
573
573
  }
574
574
  function p() {
575
- let u = T();
575
+ let u = L();
576
576
  for (; ; ) {
577
- const g = n();
578
- if (!g || !["==", "!=", "===", "!=="].includes(g.value)) break;
579
- const l = c("OP").value, v = T();
577
+ const m = n();
578
+ if (!m || !["==", "!=", "===", "!=="].includes(m.value)) break;
579
+ const l = c("OP").value, v = L();
580
580
  switch (l) {
581
581
  case "==":
582
582
  u = u == v;
@@ -594,24 +594,24 @@ class Bt {
594
594
  }
595
595
  return u;
596
596
  }
597
- function T() {
597
+ function L() {
598
598
  let u = a();
599
599
  for (; ; ) {
600
- const g = n();
601
- if (!g || ![">", "<", ">=", "<="].includes(g.value)) break;
600
+ const m = n();
601
+ if (!m || ![">", "<", ">=", "<="].includes(m.value)) break;
602
602
  const l = c("OP").value, v = a();
603
603
  switch (l) {
604
604
  case ">":
605
- u = C(">", u, v);
605
+ u = E(">", u, v);
606
606
  break;
607
607
  case "<":
608
- u = C("<", u, v);
608
+ u = E("<", u, v);
609
609
  break;
610
610
  case ">=":
611
- u = C(">=", u, v);
611
+ u = E(">=", u, v);
612
612
  break;
613
613
  case "<=":
614
- u = C("<=", u, v);
614
+ u = E("<=", u, v);
615
615
  break;
616
616
  }
617
617
  }
@@ -620,26 +620,26 @@ class Bt {
620
620
  function a() {
621
621
  let u = k();
622
622
  for (; ; ) {
623
- const g = n();
624
- if (!g || g.value !== "+" && g.value !== "-") break;
623
+ const m = n();
624
+ if (!m || m.value !== "+" && m.value !== "-") break;
625
625
  const l = c("OP").value, v = k();
626
626
  u = l === "+" ? f(u, v) : b(u, v);
627
627
  }
628
628
  return u;
629
629
  }
630
630
  function k() {
631
- let u = h();
631
+ let u = y();
632
632
  for (; ; ) {
633
- const g = n();
634
- if (!g || g.value !== "*" && g.value !== "/" && g.value !== "%")
633
+ const m = n();
634
+ if (!m || m.value !== "*" && m.value !== "/" && m.value !== "%")
635
635
  break;
636
- const l = c("OP").value, v = h();
636
+ const l = c("OP").value, v = y();
637
637
  switch (l) {
638
638
  case "*":
639
- u = y(u, v);
639
+ u = g(u, v);
640
640
  break;
641
641
  case "/":
642
- u = m(u, v);
642
+ u = h(u, v);
643
643
  break;
644
644
  case "%":
645
645
  u = d(u, v);
@@ -648,14 +648,14 @@ class Bt {
648
648
  }
649
649
  return u;
650
650
  }
651
- function h() {
651
+ function y() {
652
652
  const u = n();
653
653
  if (u && u.value === "!")
654
- return c("OP"), !h();
654
+ return c("OP"), !y();
655
655
  if (u && u.value === "-") {
656
656
  c("OP");
657
- const g = h();
658
- return b(0, g);
657
+ const m = y();
658
+ return b(0, m);
659
659
  }
660
660
  return w();
661
661
  }
@@ -670,20 +670,20 @@ class Bt {
670
670
  return c("IDENT"), u.value === "true" ? !0 : u.value === "false" ? !1 : u.value === "null" ? null : void 0;
671
671
  if (u.value === "[") {
672
672
  c("PUNC");
673
- const g = [];
673
+ const m = [];
674
674
  for (; ; ) {
675
675
  const l = n();
676
676
  if (!l || l.value === "]") break;
677
- g.push(o());
677
+ m.push(o());
678
678
  const v = n();
679
679
  v && v.value === "," && c("PUNC");
680
680
  }
681
- return c("PUNC"), g;
681
+ return c("PUNC"), m;
682
682
  }
683
683
  if (u.value === "(") {
684
684
  c("PUNC");
685
- const g = o();
686
- return c("PUNC"), g;
685
+ const m = o();
686
+ return c("PUNC"), m;
687
687
  }
688
688
  throw new Error("Unexpected token in expression");
689
689
  }
@@ -716,10 +716,10 @@ class Bt {
716
716
  return this.cache.size;
717
717
  }
718
718
  }
719
- function Pe(e, s) {
719
+ function $e(e, s) {
720
720
  return Array.isArray(e) && Array.isArray(s) ? JSON.stringify([...e].sort()) !== JSON.stringify([...s].sort()) : e !== s;
721
721
  }
722
- function st(e, s, t, r, n) {
722
+ function nt(e, s, t, r, n) {
723
723
  if (e) {
724
724
  const c = s.value;
725
725
  if (n && typeof c == "object" && c !== null) {
@@ -729,10 +729,10 @@ function st(e, s, t, r, n) {
729
729
  s.value = t;
730
730
  } else {
731
731
  const c = r._state || r;
732
- Re(c, s, t);
732
+ Ie(c, s, t);
733
733
  }
734
734
  }
735
- function Oe(e, s, t, r) {
735
+ function Pe(e, s, t, r) {
736
736
  if (typeof e._requestRender == "function" && e._requestRender(), typeof e._triggerWatchers == "function") {
737
737
  const n = s ? "reactiveState" : t;
738
738
  e._triggerWatchers(n, r);
@@ -750,9 +750,9 @@ function Wt(e, s, t) {
750
750
  });
751
751
  e.dispatchEvent(c), e.dispatchEvent(o);
752
752
  }
753
- function rt(e, s, t, r) {
753
+ function st(e, s, t, r) {
754
754
  const n = t;
755
- if (x(() => {
755
+ if (H(() => {
756
756
  if (typeof e.setAttribute == "function")
757
757
  try {
758
758
  e[s] = n;
@@ -762,13 +762,13 @@ function rt(e, s, t, r) {
762
762
  e[s] = n;
763
763
  }), n == null || typeof n == "string" || typeof n == "number" || typeof n == "boolean") {
764
764
  const c = F(n);
765
- c !== null ? x(() => {
765
+ c !== null ? H(() => {
766
766
  typeof e.setAttribute == "function" && K(
767
767
  e,
768
768
  X(s),
769
769
  String(c)
770
770
  );
771
- }) : x(() => {
771
+ }) : H(() => {
772
772
  typeof e.removeAttribute == "function" && Z(e, X(s));
773
773
  });
774
774
  }
@@ -782,10 +782,10 @@ function Dt(e, s, t, r) {
782
782
  return z(n, s);
783
783
  }
784
784
  }
785
- function Le(e) {
785
+ function we(e) {
786
786
  return e != null && typeof e == "object" && "value" in e;
787
787
  }
788
- function ze(e) {
788
+ function Ue(e) {
789
789
  return e != null && typeof e == "object" && "value" in e ? e.value : e;
790
790
  }
791
791
  function re(e, s, t) {
@@ -800,96 +800,96 @@ function Q(e) {
800
800
  function de(e) {
801
801
  return e != null && typeof e == "object" && "value" in e ? de(e.value) : !(e != null && typeof e == "object" || e === !1 || e === "false" || e === null || e === void 0 || e === 0);
802
802
  }
803
- function dt(e) {
803
+ function ft(e) {
804
804
  return e.substring(2, 3).toLowerCase() + e.substring(3);
805
805
  }
806
- function Fe(e) {
806
+ function ze(e) {
807
807
  return typeof e == "boolean" || e === "true" || e === "false";
808
808
  }
809
809
  function Kt(e, s, t, r, n, c, o, i) {
810
810
  if (!c) return;
811
- const f = s.includes("lazy"), b = s.includes("trim"), y = s.includes("number"), m = () => {
811
+ const f = s.includes("lazy"), b = s.includes("trim"), g = s.includes("number"), h = () => {
812
812
  if (O(e)) {
813
813
  const k = e.value;
814
814
  return i && o && (o instanceof HTMLInputElement || o instanceof HTMLTextAreaElement || o instanceof HTMLSelectElement) && typeof k == "object" && k !== null ? k[i] : k;
815
815
  }
816
816
  const a = c?._state || c;
817
817
  return z(a, e);
818
- }, d = m();
819
- let C = "text";
820
- o instanceof HTMLInputElement ? C = r?.type || o.type || "text" : o instanceof HTMLSelectElement ? C = "select" : o instanceof HTMLTextAreaElement && (C = "textarea");
821
- const j = o instanceof HTMLInputElement || o instanceof HTMLTextAreaElement || o instanceof HTMLSelectElement, L = j ? C === "checkbox" || C === "radio" ? "checked" : "value" : i ?? "modelValue";
822
- if (C === "checkbox")
818
+ }, d = h();
819
+ let E = "text";
820
+ o instanceof HTMLInputElement ? E = r?.type || o.type || "text" : o instanceof HTMLSelectElement ? E = "select" : o instanceof HTMLTextAreaElement && (E = "textarea");
821
+ const j = o instanceof HTMLInputElement || o instanceof HTMLTextAreaElement || o instanceof HTMLSelectElement, A = j ? E === "checkbox" || E === "radio" ? "checked" : "value" : i ?? "modelValue";
822
+ if (E === "checkbox")
823
823
  if (Array.isArray(d))
824
- t[L] = d.includes(
824
+ t[A] = d.includes(
825
825
  String(o?.getAttribute("value") ?? r?.value ?? "")
826
826
  );
827
827
  else {
828
828
  const a = o?.getAttribute("true-value") ?? !0;
829
- t[L] = d === a;
829
+ t[A] = d === a;
830
830
  }
831
- else if (C === "radio")
832
- t[L] = d === (r?.value ?? "");
833
- else if (C === "select")
831
+ else if (E === "radio")
832
+ t[A] = d === (r?.value ?? "");
833
+ else if (E === "select")
834
834
  if (o && o.hasAttribute("multiple") && o instanceof HTMLSelectElement) {
835
835
  const a = Array.isArray(d) ? d.map(String) : [];
836
836
  queueMicrotask(() => {
837
837
  Array.from(o.options).forEach((k) => {
838
838
  k.selected = a.includes(k.value);
839
839
  });
840
- }), t[L] = Array.isArray(d) ? d : [];
840
+ }), t[A] = Array.isArray(d) ? d : [];
841
841
  } else
842
- t[L] = d;
842
+ t[A] = d;
843
843
  else if (!j && O(e))
844
- t[L] = e;
844
+ t[A] = e;
845
845
  else {
846
- t[L] = d;
846
+ t[A] = d;
847
847
  try {
848
- const a = X(L);
848
+ const a = X(A);
849
849
  r && (r[a] = d);
850
850
  } catch {
851
851
  }
852
852
  }
853
- const p = f || C === "checkbox" || C === "radio" || C === "select" ? "change" : "input", T = (a) => {
853
+ const p = f || E === "checkbox" || E === "radio" || E === "select" ? "change" : "input", L = (a) => {
854
854
  if (a.isComposing || n._isComposing)
855
855
  return;
856
- const k = globalThis.process, h = !!k && k.env?.NODE_ENV === "test" || typeof window < "u" && globalThis.__vitest__;
857
- if (a.isTrusted === !1 && !h)
856
+ const k = globalThis.process, y = !!k && k.env?.NODE_ENV === "test" || typeof window < "u" && globalThis.__vitest__;
857
+ if (a.isTrusted === !1 && !y)
858
858
  return;
859
859
  const w = a.target;
860
860
  if (!w || w._modelUpdating)
861
861
  return;
862
- let E = w.value;
863
- if (C === "checkbox") {
864
- const l = m();
862
+ let S = w.value;
863
+ if (E === "checkbox") {
864
+ const l = h();
865
865
  if (Array.isArray(l)) {
866
866
  const v = w.getAttribute("value") ?? "", _ = Array.from(l);
867
867
  if (w.checked)
868
868
  _.includes(v) || _.push(v);
869
869
  else {
870
- const A = _.indexOf(v);
871
- A > -1 && _.splice(A, 1);
870
+ const T = _.indexOf(v);
871
+ T > -1 && _.splice(T, 1);
872
872
  }
873
- E = _;
873
+ S = _;
874
874
  } else {
875
875
  const v = w.getAttribute("true-value") ?? !0, _ = w.getAttribute("false-value") ?? !1;
876
- E = w.checked ? v : _;
876
+ S = w.checked ? v : _;
877
877
  }
878
- } else if (C === "radio")
879
- E = w.getAttribute("value") ?? w.value;
880
- else if (C === "select" && w.multiple)
881
- E = Array.from(w.selectedOptions).map(
878
+ } else if (E === "radio")
879
+ S = w.getAttribute("value") ?? w.value;
880
+ else if (E === "select" && w.multiple)
881
+ S = Array.from(w.selectedOptions).map(
882
882
  (l) => l.value
883
883
  );
884
- else if (b && typeof E == "string" && (E = E.trim()), y) {
885
- const l = Number(E);
886
- isNaN(l) || (E = l);
884
+ else if (b && typeof S == "string" && (S = S.trim()), g) {
885
+ const l = Number(S);
886
+ isNaN(l) || (S = l);
887
887
  }
888
- const u = m();
889
- if (Pe(E, u)) {
888
+ const u = h();
889
+ if ($e(S, u)) {
890
890
  w._modelUpdating = !0;
891
891
  try {
892
- st(O(e), e, E, c, i), Oe(c, O(e), e, E), w && Wt(w, L, E);
892
+ nt(O(e), e, S, c, i), Pe(c, O(e), e, S), w && Wt(w, A, S);
893
893
  } finally {
894
894
  queueMicrotask(
895
895
  () => w._modelUpdating = !1
@@ -902,27 +902,27 @@ function Kt(e, s, t, r, n, c, o, i) {
902
902
  const a = n[p];
903
903
  o && Y.removeListener(o, p, a);
904
904
  }
905
- n[p] = T;
905
+ n[p] = L;
906
906
  } else {
907
- const a = `update:${X(L)}`, k = `update:${L}`;
907
+ const a = `update:${X(A)}`, k = `update:${A}`;
908
908
  if (n[a]) {
909
- const h = n[a];
910
- o && Y.removeListener(o, a, h);
909
+ const y = n[a];
910
+ o && Y.removeListener(o, a, y);
911
911
  }
912
912
  if (n[k]) {
913
- const h = n[k];
914
- o && Y.removeListener(o, k, h);
915
- }
916
- if (n[a] = (h) => {
917
- const w = h.detail;
918
- let E = w !== void 0 ? w : void 0;
919
- if (E === void 0) {
920
- const l = h.target;
913
+ const y = n[k];
914
+ o && Y.removeListener(o, k, y);
915
+ }
916
+ if (n[a] = (y) => {
917
+ const w = y.detail;
918
+ let S = w !== void 0 ? w : void 0;
919
+ if (S === void 0) {
920
+ const l = y.target;
921
921
  if (l && typeof l == "object" && "value" in l)
922
922
  try {
923
- E = l.value;
923
+ S = l.value;
924
924
  } catch {
925
- E = void 0;
925
+ S = void 0;
926
926
  }
927
927
  }
928
928
  const u = Dt(
@@ -931,55 +931,55 @@ function Kt(e, s, t, r, n, c, o, i) {
931
931
  c,
932
932
  i
933
933
  );
934
- if (Pe(E, u)) {
935
- st(O(e), e, E, c, i), Oe(c, O(e), e, E);
936
- const l = h.target;
937
- l && rt(
934
+ if ($e(S, u)) {
935
+ nt(O(e), e, S, c, i), Pe(c, O(e), e, S);
936
+ const l = y.target;
937
+ l && st(
938
938
  l,
939
- L,
940
- O(e) ? e : E,
939
+ A,
940
+ O(e) ? e : S,
941
941
  O(e)
942
942
  );
943
943
  }
944
944
  }, O(e) && typeof e.value == "object" && e.value !== null) {
945
- let h;
945
+ let y;
946
946
  try {
947
- h = Reflect.ownKeys(e.value);
947
+ y = Reflect.ownKeys(e.value);
948
948
  } catch {
949
- h = Object.keys(e.value);
949
+ y = Object.keys(e.value);
950
950
  }
951
- const w = h.filter(
951
+ const w = y.filter(
952
952
  (u) => typeof u == "string" && !String(u).startsWith("_") && u !== "constructor"
953
- ), E = new Set(
953
+ ), S = new Set(
954
954
  w.map((u) => `update:${X(u)}`)
955
955
  );
956
956
  for (const u of Object.keys(n))
957
- u.startsWith("update:") && u !== a && u !== k && !E.has(u) && (o && Y.removeListener(o, u, n[u]), delete n[u]);
957
+ u.startsWith("update:") && u !== a && u !== k && !S.has(u) && (o && Y.removeListener(o, u, n[u]), delete n[u]);
958
958
  for (const u of w) {
959
- const g = String(u), l = `update:${X(g)}`, v = `update:${g}`;
959
+ const m = String(u), l = `update:${X(m)}`, v = `update:${m}`;
960
960
  l !== a && (n[l] && o && (Y.removeListener(o, l, n[l]), delete n[l]), n[l] = (_) => {
961
- const A = _.detail !== void 0 ? _.detail : _.target?.value, N = O(e) ? e.value[g] : z(
961
+ const T = _.detail !== void 0 ? _.detail : _.target?.value, N = O(e) ? e.value[m] : z(
962
962
  c?._state || c,
963
963
  e
964
964
  );
965
- if (!Pe(A, N)) return;
965
+ if (!$e(T, N)) return;
966
966
  if (O(e)) {
967
967
  const M = {
968
968
  ...e.value
969
969
  };
970
- M[g] = A, e.value = M;
970
+ M[m] = T, e.value = M;
971
971
  } else
972
- Re(
972
+ Ie(
973
973
  c?._state || c,
974
974
  e,
975
- A
975
+ T
976
976
  );
977
- Oe(c, O(e), e, A);
978
- const H = _.currentTarget || o || _.target;
979
- H && rt(
980
- H,
981
- L,
982
- O(e) ? e : A,
977
+ Pe(c, O(e), e, T);
978
+ const x = _.currentTarget || o || _.target;
979
+ x && st(
980
+ x,
981
+ A,
982
+ O(e) ? e : T,
983
983
  O(e)
984
984
  );
985
985
  }, n[v] = n[l]);
@@ -987,20 +987,20 @@ function Kt(e, s, t, r, n, c, o, i) {
987
987
  }
988
988
  n[k] = n[a];
989
989
  }
990
- (C === "text" || C === "textarea") && (n.compositionstart = () => n._isComposing = !0, n.compositionend = (a) => {
990
+ (E === "text" || E === "textarea") && (n.compositionstart = () => n._isComposing = !0, n.compositionend = (a) => {
991
991
  n._isComposing = !1;
992
992
  const k = a.target;
993
993
  k && queueMicrotask(() => {
994
- const h = k.value, w = c?._state || c, E = z(w, e);
995
- let u = h;
996
- if (b && (u = u.trim()), y) {
994
+ const y = k.value, w = c?._state || c, S = z(w, e);
995
+ let u = y;
996
+ if (b && (u = u.trim()), g) {
997
997
  const l = Number(u);
998
998
  isNaN(l) || (u = l);
999
999
  }
1000
- if (Pe(u, E)) {
1000
+ if ($e(u, S)) {
1001
1001
  k._modelUpdating = !0;
1002
1002
  try {
1003
- Re(w, e, u), Oe(c, O(e), e, u);
1003
+ Ie(w, e, u), Pe(c, O(e), e, u);
1004
1004
  } finally {
1005
1005
  queueMicrotask(
1006
1006
  () => k._modelUpdating = !1
@@ -1029,7 +1029,7 @@ function Ut(e, s, t, r, n) {
1029
1029
  else if (typeof e == "string") {
1030
1030
  if (!r) return;
1031
1031
  try {
1032
- const c = je(e, r);
1032
+ const c = Me(e, r);
1033
1033
  if (typeof c == "object" && c !== null) {
1034
1034
  for (const [o, i] of Object.entries(c))
1035
1035
  if (o.startsWith("data-") || o.startsWith("aria-") || o === "class")
@@ -1063,7 +1063,7 @@ function zt(e, s, t) {
1063
1063
  let r;
1064
1064
  if (typeof e == "string") {
1065
1065
  if (!t) return;
1066
- r = je(e, t);
1066
+ r = Me(e, t);
1067
1067
  } else
1068
1068
  r = e;
1069
1069
  const n = String(s.style || "");
@@ -1084,14 +1084,14 @@ function zt(e, s, t) {
1084
1084
  c = "display: none";
1085
1085
  c !== n && (c ? s.style = c : s.style = void 0);
1086
1086
  }
1087
- function je(e, s) {
1087
+ function Me(e, s) {
1088
1088
  return Bt.evaluate(e, s);
1089
1089
  }
1090
1090
  function Ft(e, s, t, r) {
1091
1091
  let n;
1092
1092
  if (typeof e == "string") {
1093
1093
  if (!t) return;
1094
- n = je(e, t);
1094
+ n = Me(e, t);
1095
1095
  } else
1096
1096
  n = e;
1097
1097
  try {
@@ -1111,8 +1111,8 @@ function Ft(e, s, t, r) {
1111
1111
  else if (Array.isArray(n))
1112
1112
  c = n.filter(Boolean);
1113
1113
  else if (typeof n == "object" && n !== null)
1114
- for (const [b, y] of Object.entries(n))
1115
- y && c.push(b);
1114
+ for (const [b, g] of Object.entries(n))
1115
+ g && c.push(b);
1116
1116
  const o = c.join(" "), i = r && r.class || s.class || "", f = i ? `${i} ${o}`.trim() : o.trim();
1117
1117
  f ? s.class = f : s.class = void 0;
1118
1118
  }
@@ -1120,7 +1120,7 @@ function qt(e, s, t) {
1120
1120
  let r;
1121
1121
  if (typeof e == "string") {
1122
1122
  if (!t) return;
1123
- r = je(e, t);
1123
+ r = Me(e, t);
1124
1124
  } else
1125
1125
  r = e;
1126
1126
  let n = "";
@@ -1133,7 +1133,7 @@ function qt(e, s, t) {
1133
1133
  const b = i.replace(
1134
1134
  /[A-Z]/g,
1135
1135
  (d) => `-${d.toLowerCase()}`
1136
- ), y = [
1136
+ ), g = [
1137
1137
  "width",
1138
1138
  "height",
1139
1139
  "top",
@@ -1159,8 +1159,8 @@ function qt(e, s, t) {
1159
1159
  "min-height",
1160
1160
  "max-height"
1161
1161
  ];
1162
- let m = String(f);
1163
- typeof f == "number" && y.includes(b) && (m = `${f}px`), o.push(`${b}: ${m}`);
1162
+ let h = String(f);
1163
+ typeof f == "number" && g.includes(b) && (h = `${f}px`), o.push(`${b}: ${h}`);
1164
1164
  }
1165
1165
  n = o.join("; ") + (o.length > 0 ? ";" : "");
1166
1166
  }
@@ -1169,24 +1169,24 @@ function qt(e, s, t) {
1169
1169
  }
1170
1170
  function Vt(e, s, t) {
1171
1171
  let r = e;
1172
- typeof e == "string" && t && (r = je(e, t)), O(r) ? s.reactiveRef = r : s.ref = r;
1172
+ typeof e == "string" && t && (r = Me(e, t)), O(r) ? s.reactiveRef = r : s.ref = r;
1173
1173
  }
1174
- function pt(e, s, t, r) {
1174
+ function ut(e, s, t, r) {
1175
1175
  const n = {}, c = { ...r || {} }, o = {};
1176
1176
  for (const [i, f] of Object.entries(e)) {
1177
- const { value: b, modifiers: y, arg: m } = f;
1177
+ const { value: b, modifiers: g, arg: h } = f;
1178
1178
  if (i === "model" || i.startsWith("model:")) {
1179
- const d = i.split(":"), C = d.length > 1 ? d[1] : m;
1179
+ const d = i.split(":"), E = d.length > 1 ? d[1] : h;
1180
1180
  Kt(
1181
1181
  b,
1182
1182
  // Pass the original value (could be string or reactive state object)
1183
- y,
1183
+ g,
1184
1184
  n,
1185
1185
  c,
1186
1186
  o,
1187
1187
  s,
1188
1188
  t,
1189
- C
1189
+ E
1190
1190
  );
1191
1191
  continue;
1192
1192
  }
@@ -1211,29 +1211,29 @@ function pt(e, s, t, r) {
1211
1211
  try {
1212
1212
  if (Object.prototype.hasOwnProperty.call(n, "disabled") && t && Q(t)) {
1213
1213
  const f = n.disabled, b = f && typeof f == "object" && "value" in f;
1214
- let y = !1;
1214
+ let g = !1;
1215
1215
  try {
1216
- y = O(f);
1216
+ g = O(f);
1217
1217
  } catch {
1218
- y = !1;
1218
+ g = !1;
1219
1219
  }
1220
- !b && !y && (c.disabled = f, delete n.disabled);
1220
+ !b && !g && (c.disabled = f, delete n.disabled);
1221
1221
  }
1222
1222
  } catch {
1223
1223
  }
1224
1224
  return { props: n, attrs: c, listeners: o };
1225
1225
  }
1226
- function me(e) {
1226
+ function ye(e) {
1227
1227
  return e ? e.split(/\s+/).filter(Boolean) : [];
1228
1228
  }
1229
- function ge(e, s) {
1229
+ function me(e, s) {
1230
1230
  if (s.length === 0) return;
1231
1231
  const t = s.filter(
1232
1232
  (r) => r && !e.classList.contains(r)
1233
1233
  );
1234
1234
  t.length > 0 && e.classList.add(...t);
1235
1235
  }
1236
- function ye(e, s) {
1236
+ function he(e, s) {
1237
1237
  if (s.length === 0) return;
1238
1238
  const t = s.filter(Boolean);
1239
1239
  t.length > 0 && e.classList.remove(...t);
@@ -1245,7 +1245,7 @@ function Gt(e) {
1245
1245
  };
1246
1246
  return n(t) + n(r);
1247
1247
  }
1248
- function ht(e, s) {
1248
+ function dt(e, s) {
1249
1249
  return new Promise((t) => {
1250
1250
  const r = s ?? Gt(e);
1251
1251
  if (r <= 0) {
@@ -1259,32 +1259,32 @@ function ht(e, s) {
1259
1259
  e.addEventListener("transitionend", o), e.addEventListener("transitioncancel", o), setTimeout(c, r + 50);
1260
1260
  });
1261
1261
  }
1262
- async function _e(e, s) {
1262
+ async function ke(e, s) {
1263
1263
  const { classes: t, hooks: r, css: n, duration: c } = s;
1264
1264
  if (r?.onBeforeEnter)
1265
1265
  try {
1266
1266
  r.onBeforeEnter(e);
1267
- } catch (m) {
1268
- W("Transition onBeforeEnter error:", m);
1267
+ } catch (h) {
1268
+ W("Transition onBeforeEnter error:", h);
1269
1269
  }
1270
1270
  if (!n)
1271
- return r?.onEnter ? new Promise((m) => {
1271
+ return r?.onEnter ? new Promise((h) => {
1272
1272
  const d = r.onEnter;
1273
1273
  typeof d == "function" ? d(e, () => {
1274
1274
  if (r?.onAfterEnter)
1275
1275
  try {
1276
1276
  r.onAfterEnter(e);
1277
- } catch (C) {
1278
- W("Transition onAfterEnter error:", C);
1277
+ } catch (E) {
1278
+ W("Transition onAfterEnter error:", E);
1279
1279
  }
1280
- m();
1281
- }) : m();
1280
+ h();
1281
+ }) : h();
1282
1282
  }) : void 0;
1283
- const o = me(t?.enterFrom), i = me(t?.enterActive), f = me(t?.enterTo);
1284
- ge(e, o), e.offsetHeight, ge(e, i), e.offsetHeight;
1283
+ const o = ye(t?.enterFrom), i = ye(t?.enterActive), f = ye(t?.enterTo);
1284
+ me(e, o), e.offsetHeight, me(e, i), e.offsetHeight;
1285
1285
  let b;
1286
1286
  if (r?.onEnter) {
1287
- const m = new Promise((d) => {
1287
+ const h = new Promise((d) => {
1288
1288
  b = d;
1289
1289
  });
1290
1290
  try {
@@ -1295,43 +1295,43 @@ async function _e(e, s) {
1295
1295
  } catch (d) {
1296
1296
  W("Transition onEnter error:", d);
1297
1297
  }
1298
- b && await m;
1298
+ b && await h;
1299
1299
  }
1300
- await new Promise((m) => requestAnimationFrame(() => m())), e.offsetHeight, ye(e, o), ge(e, f), e.offsetHeight, await new Promise((m) => requestAnimationFrame(() => m()));
1301
- let y;
1302
- if (typeof c == "number" ? y = c : c && typeof c == "object" && "enter" in c && (y = c.enter), await ht(e, y), ye(e, i), r?.onAfterEnter)
1300
+ await new Promise((h) => requestAnimationFrame(() => h())), e.offsetHeight, he(e, o), me(e, f), e.offsetHeight, await new Promise((h) => requestAnimationFrame(() => h()));
1301
+ let g;
1302
+ if (typeof c == "number" ? g = c : c && typeof c == "object" && "enter" in c && (g = c.enter), await dt(e, g), he(e, i), r?.onAfterEnter)
1303
1303
  try {
1304
1304
  r.onAfterEnter(e);
1305
- } catch (m) {
1306
- W("Transition onAfterEnter error:", m);
1305
+ } catch (h) {
1306
+ W("Transition onAfterEnter error:", h);
1307
1307
  }
1308
1308
  }
1309
- async function Ke(e, s) {
1309
+ async function De(e, s) {
1310
1310
  const { classes: t, hooks: r, css: n, duration: c } = s;
1311
1311
  if (r?.onBeforeLeave)
1312
1312
  try {
1313
1313
  r.onBeforeLeave(e);
1314
- } catch (m) {
1315
- W("Transition onBeforeLeave error:", m);
1314
+ } catch (h) {
1315
+ W("Transition onBeforeLeave error:", h);
1316
1316
  }
1317
1317
  if (!n)
1318
- return r?.onLeave ? new Promise((m) => {
1318
+ return r?.onLeave ? new Promise((h) => {
1319
1319
  const d = r.onLeave;
1320
1320
  typeof d == "function" ? d(e, () => {
1321
1321
  if (r?.onAfterLeave)
1322
1322
  try {
1323
1323
  r.onAfterLeave(e);
1324
- } catch (C) {
1325
- W("Transition onAfterLeave error:", C);
1324
+ } catch (E) {
1325
+ W("Transition onAfterLeave error:", E);
1326
1326
  }
1327
- m();
1328
- }) : m();
1327
+ h();
1328
+ }) : h();
1329
1329
  }) : void 0;
1330
- const o = me(t?.leaveFrom), i = me(t?.leaveActive), f = me(t?.leaveTo);
1331
- ge(e, o), e.offsetHeight, ge(e, i);
1330
+ const o = ye(t?.leaveFrom), i = ye(t?.leaveActive), f = ye(t?.leaveTo);
1331
+ me(e, o), e.offsetHeight, me(e, i);
1332
1332
  let b;
1333
1333
  if (r?.onLeave) {
1334
- const m = new Promise((d) => {
1334
+ const h = new Promise((d) => {
1335
1335
  b = d;
1336
1336
  });
1337
1337
  try {
@@ -1342,21 +1342,21 @@ async function Ke(e, s) {
1342
1342
  } catch (d) {
1343
1343
  W("Transition onLeave error:", d);
1344
1344
  }
1345
- b && await m;
1345
+ b && await h;
1346
1346
  }
1347
- await new Promise((m) => requestAnimationFrame(() => m())), ye(e, o), ge(e, f);
1348
- let y;
1349
- if (typeof c == "number" ? y = c : c && typeof c == "object" && "leave" in c && (y = c.leave), await ht(e, y), ye(e, i), ye(e, f), ye(e, o), r?.onAfterLeave)
1347
+ await new Promise((h) => requestAnimationFrame(() => h())), he(e, o), me(e, f);
1348
+ let g;
1349
+ if (typeof c == "number" ? g = c : c && typeof c == "object" && "leave" in c && (g = c.leave), await dt(e, g), he(e, i), he(e, f), he(e, o), r?.onAfterLeave)
1350
1350
  try {
1351
1351
  r.onAfterLeave(e);
1352
- } catch (m) {
1353
- W("Transition onAfterLeave error:", m);
1352
+ } catch (h) {
1353
+ W("Transition onAfterLeave error:", h);
1354
1354
  }
1355
1355
  }
1356
- const yt = /* @__PURE__ */ new WeakMap(), mt = /* @__PURE__ */ new WeakMap();
1357
- function xe(e) {
1356
+ const pt = /* @__PURE__ */ new WeakMap(), ht = /* @__PURE__ */ new WeakMap();
1357
+ function Oe(e) {
1358
1358
  if (!e) return;
1359
- const s = yt.get(e);
1359
+ const s = pt.get(e);
1360
1360
  if (s !== void 0) return s;
1361
1361
  try {
1362
1362
  const t = e;
@@ -1370,7 +1370,7 @@ function xe(e) {
1370
1370
  }
1371
1371
  function G(e, s) {
1372
1372
  try {
1373
- yt.set(e, s);
1373
+ pt.set(e, s);
1374
1374
  } catch {
1375
1375
  }
1376
1376
  try {
@@ -1387,7 +1387,7 @@ function G(e, s) {
1387
1387
  }
1388
1388
  function Jt(e) {
1389
1389
  if (!e) return;
1390
- const s = mt.get(e);
1390
+ const s = ht.get(e);
1391
1391
  if (s !== void 0) return s;
1392
1392
  try {
1393
1393
  const t = e;
@@ -1398,7 +1398,7 @@ function Jt(e) {
1398
1398
  }
1399
1399
  function Zt(e, s) {
1400
1400
  try {
1401
- mt.set(e, s);
1401
+ ht.set(e, s);
1402
1402
  } catch {
1403
1403
  }
1404
1404
  try {
@@ -1406,7 +1406,7 @@ function Zt(e, s) {
1406
1406
  } catch {
1407
1407
  }
1408
1408
  }
1409
- const Ie = /* @__PURE__ */ new WeakMap();
1409
+ const xe = /* @__PURE__ */ new WeakMap();
1410
1410
  function ue(e, s) {
1411
1411
  if (s) {
1412
1412
  if (e instanceof Element) {
@@ -1424,7 +1424,7 @@ function ue(e, s) {
1424
1424
  }
1425
1425
  }
1426
1426
  }
1427
- function Ae(e, s, t) {
1427
+ function _e(e, s, t) {
1428
1428
  if (typeof e == "string") return;
1429
1429
  const r = e.props?.reactiveRef ?? (e.props?.props && e.props.props.reactiveRef), n = e.props?.ref ?? (e.props?.props && e.props.props.ref);
1430
1430
  if (r)
@@ -1448,14 +1448,14 @@ function Ae(e, s, t) {
1448
1448
  } catch {
1449
1449
  }
1450
1450
  }
1451
- function qe(e, s) {
1451
+ function Fe(e, s) {
1452
1452
  if (Array.isArray(e)) {
1453
1453
  const c = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
1454
1454
  return e.map((i) => {
1455
1455
  if (!i || typeof i != "object") return i;
1456
1456
  let f = i.props?.key ?? i.key;
1457
1457
  if (!f) {
1458
- const m = i.tag || "node", C = [
1458
+ const h = i.tag || "node", E = [
1459
1459
  // attrs (kebab-case)
1460
1460
  i.props?.attrs?.id,
1461
1461
  i.props?.attrs?.name,
@@ -1466,24 +1466,24 @@ function qe(e, s) {
1466
1466
  i.props?.props?.dataKey,
1467
1467
  i.props?.props?.["data-key"]
1468
1468
  ].find((j) => j != null) ?? "";
1469
- f = C ? `${s}:${m}:${C}` : `${s}:${m}`;
1469
+ f = E ? `${s}:${h}:${E}` : `${s}:${h}`;
1470
1470
  }
1471
1471
  let b = f;
1472
1472
  if (c.has(b)) {
1473
- const m = (o.get(b) ?? 1) + 1;
1474
- o.set(b, m), b = `${f}#${m}`;
1473
+ const h = (o.get(b) ?? 1) + 1;
1474
+ o.set(b, h), b = `${f}#${h}`;
1475
1475
  }
1476
1476
  o.set(f, (o.get(f) ?? 0) + 1), c.add(b);
1477
- let y = i.children;
1478
- return Array.isArray(y) && (y = qe(y, b)), { ...i, key: b, children: y };
1477
+ let g = i.children;
1478
+ return Array.isArray(g) && (g = Fe(g, b)), { ...i, key: b, children: g };
1479
1479
  });
1480
1480
  }
1481
1481
  const t = e, r = t.props?.key ?? t.key ?? s;
1482
1482
  let n = t.children;
1483
- return Array.isArray(n) && (n = qe(n, r)), { ...t, key: r, children: n };
1483
+ return Array.isArray(n) && (n = Fe(n, r)), { ...t, key: r, children: n };
1484
1484
  }
1485
- function it(e, s, t, r) {
1486
- const n = t.directives ?? {}, c = t.attrs ? { ...t.attrs } : {}, o = pt(
1485
+ function rt(e, s, t, r) {
1486
+ const n = t.directives ?? {}, c = t.attrs ? { ...t.attrs } : {}, o = ut(
1487
1487
  n,
1488
1488
  r,
1489
1489
  e,
@@ -1495,102 +1495,102 @@ function it(e, s, t, r) {
1495
1495
  }, f = {
1496
1496
  ...c || {},
1497
1497
  ...o.attrs || {}
1498
- }, b = s.props ?? {}, y = i, m = !!(t?.isCustomElement ?? s?.isCustomElement ?? !1);
1498
+ }, b = s.props ?? {}, g = i, h = !!(t?.isCustomElement ?? s?.isCustomElement ?? !1);
1499
1499
  let d = !1;
1500
- const C = /* @__PURE__ */ new Set();
1501
- for (const a in b) C.add(a);
1502
- for (const a in y) C.add(a);
1503
- for (const a of C) {
1504
- const k = b[a], h = y[a];
1505
- let w = k, E = h;
1506
- if (x(() => {
1507
- O(k) ? w = k.peek() : Le(k) && (w = k.value);
1508
- }), x(() => {
1509
- O(h) ? E = h.peek() : Le(h) && (E = h.value);
1510
- }), !(k === h && w === E))
1500
+ const E = /* @__PURE__ */ new Set();
1501
+ for (const a in b) E.add(a);
1502
+ for (const a in g) E.add(a);
1503
+ for (const a of E) {
1504
+ const k = b[a], y = g[a];
1505
+ let w = k, S = y;
1506
+ if (H(() => {
1507
+ O(k) ? w = k.peek() : we(k) && (w = k.value);
1508
+ }), H(() => {
1509
+ O(y) ? S = y.peek() : we(y) && (S = y.value);
1510
+ }), !(k === y && w === S))
1511
1511
  if (d = !0, a === "value" && (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement || e instanceof HTMLSelectElement)) {
1512
- const u = ze(h), g = u == null ? "" : String(u);
1513
- e.value !== g && (e.value = g);
1512
+ const u = Ue(y), m = u == null ? "" : String(u);
1513
+ e.value !== m && (e.value = m);
1514
1514
  } else if (a === "checked" && e instanceof HTMLInputElement) {
1515
- const u = ze(h);
1515
+ const u = Ue(y);
1516
1516
  e.checked = !!u;
1517
- } else if (a.startsWith("on") && typeof h == "function") {
1518
- const u = dt(a);
1519
- typeof k == "function" && Y.removeListener(e, u, k), typeof h == "function" && Y.addListener(e, u, h);
1517
+ } else if (a.startsWith("on") && typeof y == "function") {
1518
+ const u = ft(a);
1519
+ typeof k == "function" && Y.removeListener(e, u, k), typeof y == "function" && Y.addListener(e, u, y);
1520
1520
  try {
1521
1521
  if (u && u.startsWith("update:")) {
1522
- const g = u.split(":", 2)[1], l = y[g];
1522
+ const m = u.split(":", 2)[1], l = g[m];
1523
1523
  let v = [];
1524
1524
  try {
1525
1525
  if (O(l)) {
1526
- const A = l.value;
1527
- v = A && typeof A == "object" ? Object.keys(A) : [];
1526
+ const T = l.value;
1527
+ v = T && typeof T == "object" ? Object.keys(T) : [];
1528
1528
  } else l && typeof l == "object" && (v = Object.keys(l));
1529
1529
  } catch {
1530
1530
  v = [];
1531
1531
  }
1532
1532
  const _ = v.filter(
1533
- (A) => typeof A == "string" && !A.startsWith("_") && A !== "constructor"
1533
+ (T) => typeof T == "string" && !T.startsWith("_") && T !== "constructor"
1534
1534
  );
1535
- for (const A of _) {
1536
- const N = `update:${A}`, $ = (H) => {
1537
- const M = H.detail !== void 0 ? H.detail : H.target instanceof HTMLInputElement || H.target instanceof HTMLTextAreaElement || H.target instanceof HTMLSelectElement ? H.target.value : void 0, R = { ...O(l) ? l.value || {} : y[g] || {}, [A]: M };
1535
+ for (const T of _) {
1536
+ const N = `update:${T}`, $ = (x) => {
1537
+ const M = x.detail !== void 0 ? x.detail : x.target instanceof HTMLInputElement || x.target instanceof HTMLTextAreaElement || x.target instanceof HTMLSelectElement ? x.target.value : void 0, R = { ...O(l) ? l.value || {} : g[m] || {}, [T]: M };
1538
1538
  try {
1539
- typeof h == "function" && h({
1539
+ typeof y == "function" && y({
1540
1540
  detail: R
1541
1541
  });
1542
1542
  } catch {
1543
1543
  }
1544
1544
  };
1545
- x(() => {
1545
+ H(() => {
1546
1546
  Y.addListener(e, N, $);
1547
1547
  });
1548
1548
  }
1549
1549
  }
1550
1550
  } catch {
1551
1551
  }
1552
- } else if (h == null)
1552
+ } else if (y == null)
1553
1553
  Z(e, a);
1554
1554
  else {
1555
1555
  const u = t?.isCustomElement ?? s?.isCustomElement ?? !1;
1556
1556
  if (u || a in e)
1557
1557
  try {
1558
- e[a] = h, a === "disabled" && h === !1 && !u && Q(e) && Z(e, "disabled");
1558
+ e[a] = y, a === "disabled" && y === !1 && !u && Q(e) && Z(e, "disabled");
1559
1559
  } catch {
1560
1560
  }
1561
1561
  else
1562
- h === !1 && Z(e, a);
1562
+ y === !1 && Z(e, a);
1563
1563
  }
1564
1564
  }
1565
- const j = o.listeners ?? {}, S = Ie.get(e) ?? {};
1566
- for (const [a, k] of Object.entries(S))
1565
+ const j = o.listeners ?? {}, C = xe.get(e) ?? {};
1566
+ for (const [a, k] of Object.entries(C))
1567
1567
  Y.removeListener(e, a, k);
1568
1568
  for (const [a, k] of Object.entries(j))
1569
1569
  Y.addListener(e, a, k);
1570
- Object.keys(j).length > 0 ? Ie.set(e, j) : Ie.delete(e);
1571
- const L = { ...s.attrs ?? {} }, p = f, T = o && o.attrs || {};
1572
- if (Object.prototype.hasOwnProperty.call(T, "class") && typeof e.getAttribute == "function") {
1570
+ Object.keys(j).length > 0 ? xe.set(e, j) : xe.delete(e);
1571
+ const A = { ...s.attrs ?? {} }, p = f, L = o && o.attrs || {};
1572
+ if (Object.prototype.hasOwnProperty.call(L, "class") && typeof e.getAttribute == "function") {
1573
1573
  const a = e.getAttribute("class");
1574
- a !== null && (L.class = a);
1574
+ a !== null && (A.class = a);
1575
1575
  }
1576
- if (Object.prototype.hasOwnProperty.call(T, "style") && typeof e.getAttribute == "function") {
1576
+ if (Object.prototype.hasOwnProperty.call(L, "style") && typeof e.getAttribute == "function") {
1577
1577
  const a = e.getAttribute("style");
1578
- a !== null && (L.style = a);
1578
+ a !== null && (A.style = a);
1579
1579
  }
1580
1580
  try {
1581
- if (Object.prototype.hasOwnProperty.call(T, "class") && T.class === void 0 && typeof e.getAttribute == "function") {
1581
+ if (Object.prototype.hasOwnProperty.call(L, "class") && L.class === void 0 && typeof e.getAttribute == "function") {
1582
1582
  const a = e.getAttribute("class");
1583
- a !== null && (L.class = a);
1583
+ a !== null && (A.class = a);
1584
1584
  }
1585
- if (Object.prototype.hasOwnProperty.call(T, "style") && T.style === void 0 && typeof e.getAttribute == "function") {
1585
+ if (Object.prototype.hasOwnProperty.call(L, "style") && L.style === void 0 && typeof e.getAttribute == "function") {
1586
1586
  const a = e.getAttribute("style");
1587
- a !== null && (L.style = a);
1587
+ a !== null && (A.style = a);
1588
1588
  }
1589
1589
  try {
1590
1590
  if (typeof e.getAttribute == "function") {
1591
1591
  const a = e.getAttribute("class");
1592
1592
  try {
1593
- e instanceof HTMLInputElement && e.type === "text" && a !== null && a !== L.class && (L.class = a);
1593
+ e instanceof HTMLInputElement && e.type === "text" && a !== null && a !== A.class && (A.class = a);
1594
1594
  } catch {
1595
1595
  }
1596
1596
  }
@@ -1598,102 +1598,102 @@ function it(e, s, t, r) {
1598
1598
  }
1599
1599
  } catch {
1600
1600
  }
1601
- for (const a in { ...L, ...p }) {
1602
- const k = L[a], h = p[a];
1603
- let w = k, E = h;
1604
- if (O(k) && (w = k.peek()), O(h) && (E = h.peek()), w !== E)
1605
- if (d = !0, E == null || E === !1)
1606
- x(() => {
1601
+ for (const a in { ...A, ...p }) {
1602
+ const k = A[a], y = p[a];
1603
+ let w = k, S = y;
1604
+ if (O(k) && (w = k.peek()), O(y) && (S = y.peek()), w !== S)
1605
+ if (d = !0, S == null || S === !1)
1606
+ H(() => {
1607
1607
  Z(e, a);
1608
- }), re(s, a, void 0), a === "value" && (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement ? x(() => {
1608
+ }), re(s, a, void 0), a === "value" && (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement ? H(() => {
1609
1609
  e.value = "";
1610
- }) : e instanceof HTMLSelectElement ? x(() => {
1610
+ }) : e instanceof HTMLSelectElement ? H(() => {
1611
1611
  e.value = "";
1612
- }) : e instanceof HTMLProgressElement && x(() => {
1612
+ }) : e instanceof HTMLProgressElement && H(() => {
1613
1613
  e.value = 0;
1614
- })), a === "checked" && e instanceof HTMLInputElement && x(() => {
1614
+ })), a === "checked" && e instanceof HTMLInputElement && H(() => {
1615
1615
  e.checked = !1;
1616
- }), a === "disabled" && Q(e) && x(() => {
1616
+ }), a === "disabled" && Q(e) && H(() => {
1617
1617
  (e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement || e instanceof HTMLButtonElement) && (e.disabled = !1);
1618
1618
  });
1619
1619
  else {
1620
1620
  if (a === "value") {
1621
1621
  if (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement) {
1622
- x(() => {
1623
- e.value = E ?? "";
1622
+ H(() => {
1623
+ e.value = S ?? "";
1624
1624
  });
1625
1625
  continue;
1626
1626
  } else if (e instanceof HTMLSelectElement) {
1627
- x(() => {
1628
- e.value = E ?? "";
1627
+ H(() => {
1628
+ e.value = S ?? "";
1629
1629
  });
1630
1630
  continue;
1631
1631
  } else if (e instanceof HTMLProgressElement) {
1632
- x(() => {
1633
- e.value = Number(E);
1632
+ H(() => {
1633
+ e.value = Number(S);
1634
1634
  });
1635
1635
  continue;
1636
1636
  }
1637
1637
  }
1638
1638
  if (a === "checked" && e instanceof HTMLInputElement) {
1639
- x(() => {
1640
- e.checked = !!E;
1639
+ H(() => {
1640
+ e.checked = !!S;
1641
1641
  });
1642
1642
  continue;
1643
1643
  }
1644
1644
  if (a === "style") {
1645
- const g = F(E);
1646
- g !== null && K(e, a, String(g)), re(s, a, E);
1645
+ const m = F(S);
1646
+ m !== null && K(e, a, String(m)), re(s, a, S);
1647
1647
  continue;
1648
1648
  }
1649
1649
  if (a === "class") {
1650
- const g = F(E);
1651
- g !== null && K(e, a, String(g)), re(s, a, E);
1650
+ const m = F(S);
1651
+ m !== null && K(e, a, String(m)), re(s, a, S);
1652
1652
  continue;
1653
1653
  }
1654
1654
  if (a === "disabled" && Q(e)) {
1655
- x(() => {
1656
- const g = de(E);
1657
- (e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement || e instanceof HTMLButtonElement) && (e.disabled = g);
1658
- }), de(E) ? x(() => {
1655
+ H(() => {
1656
+ const m = de(S);
1657
+ (e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement || e instanceof HTMLButtonElement) && (e.disabled = m);
1658
+ }), de(S) ? H(() => {
1659
1659
  K(e, a, "");
1660
- }) : x(() => {
1660
+ }) : H(() => {
1661
1661
  Z(e, a);
1662
1662
  });
1663
1663
  continue;
1664
1664
  }
1665
1665
  const u = e.namespaceURI === "http://www.w3.org/2000/svg";
1666
- if (m && !u && a.includes("-"))
1667
- if (ft(a)) {
1668
- const g = F(h ?? E);
1669
- if (g !== null) {
1666
+ if (h && !u && a.includes("-"))
1667
+ if (at(a)) {
1668
+ const m = F(y ?? S);
1669
+ if (m !== null) {
1670
1670
  try {
1671
- K(e, a, String(g));
1671
+ K(e, a, String(m));
1672
1672
  } catch {
1673
1673
  }
1674
- re(s, a, E);
1674
+ re(s, a, S);
1675
1675
  }
1676
1676
  } else {
1677
- const g = Ge(a);
1677
+ const m = Ve(a);
1678
1678
  try {
1679
1679
  const l = e;
1680
- l[g] = O(h) ? h : E, re(s, a, E);
1680
+ l[m] = O(y) ? y : S, re(s, a, S);
1681
1681
  } catch {
1682
- const l = F(h ?? E);
1682
+ const l = F(y ?? S);
1683
1683
  l !== null && K(e, a, String(l));
1684
1684
  }
1685
1685
  }
1686
1686
  else if (!u && a in e)
1687
1687
  try {
1688
- const g = e;
1689
- g[a] = O(h) ? h : E, re(s, a, E);
1688
+ const m = e;
1689
+ m[a] = O(y) ? y : S, re(s, a, S);
1690
1690
  } catch {
1691
- const g = F(E);
1692
- g !== null && (K(e, a, String(g)), re(s, a, E));
1691
+ const m = F(S);
1692
+ m !== null && (K(e, a, String(m)), re(s, a, S));
1693
1693
  }
1694
1694
  else {
1695
- const g = F(E);
1696
- g !== null && (K(e, a, String(g)), re(s, a, E));
1695
+ const m = F(S);
1696
+ m !== null && (K(e, a, String(m)), re(s, a, S));
1697
1697
  }
1698
1698
  }
1699
1699
  }
@@ -1705,32 +1705,32 @@ function it(e, s, t, r) {
1705
1705
  const w = Object.prototype.hasOwnProperty.call(
1706
1706
  o.props || {},
1707
1707
  "disabled"
1708
- ), E = a && typeof a == "object" && "value" in a;
1708
+ ), S = a && typeof a == "object" && "value" in a;
1709
1709
  let u = !1;
1710
- x(() => {
1710
+ H(() => {
1711
1711
  u = !!O(a);
1712
1712
  });
1713
- const g = Fe(a);
1714
- u || E || w || g ? k = a : k = f.disabled;
1713
+ const m = ze(a);
1714
+ u || S || w || m ? k = a : k = f.disabled;
1715
1715
  } catch {
1716
1716
  k = f.disabled;
1717
1717
  }
1718
- const h = de(k);
1719
- x(() => {
1720
- (e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement || e instanceof HTMLButtonElement) && (e.disabled = h);
1721
- }), h ? x(() => {
1718
+ const y = de(k);
1719
+ H(() => {
1720
+ (e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement || e instanceof HTMLButtonElement) && (e.disabled = y);
1721
+ }), y ? H(() => {
1722
1722
  K(e, "disabled", "");
1723
- }) : x(() => {
1723
+ }) : H(() => {
1724
1724
  Z(e, "disabled");
1725
1725
  });
1726
1726
  }
1727
1727
  } catch {
1728
1728
  }
1729
- if (m && d) {
1729
+ if (h && d) {
1730
1730
  const a = e;
1731
- x(() => {
1731
+ H(() => {
1732
1732
  a._applyProps?.(a._cfg);
1733
- }), x(() => {
1733
+ }), H(() => {
1734
1734
  typeof a.requestRender == "function" ? a.requestRender() : typeof a._render == "function" && a._render?.(a._cfg);
1735
1735
  });
1736
1736
  }
@@ -1751,84 +1751,84 @@ function J(e, s, t, r = null) {
1751
1751
  ), document.createRange().createContextualFragment(p);
1752
1752
  }
1753
1753
  if (e.tag === "#anchor") {
1754
- const p = e, T = Array.isArray(p.children) ? p.children : [], a = document.createTextNode(""), k = document.createTextNode("");
1754
+ const p = e, L = Array.isArray(p.children) ? p.children : [], a = document.createTextNode(""), k = document.createTextNode("");
1755
1755
  p.key != null && (G(a, `${p.key}:start`), G(k, `${p.key}:end`)), p._startNode = a, p._endNode = k;
1756
- const h = document.createDocumentFragment();
1757
- h.appendChild(a);
1758
- for (const w of T) {
1759
- const E = J(
1756
+ const y = document.createDocumentFragment();
1757
+ y.appendChild(a);
1758
+ for (const w of L) {
1759
+ const S = J(
1760
1760
  w,
1761
1761
  s,
1762
1762
  t,
1763
1763
  // propagate parent namespace (was previously a boolean)
1764
1764
  r
1765
1765
  );
1766
- if (p.key != null && E instanceof Element && !E.hasAttribute("data-anchor-key")) {
1766
+ if (p.key != null && S instanceof Element && !S.hasAttribute("data-anchor-key")) {
1767
1767
  const u = w;
1768
- u && typeof u == "object" && u.key != null || G(E, String(p.key));
1768
+ u && typeof u == "object" && u.key != null || G(S, String(p.key));
1769
1769
  }
1770
- h.appendChild(E);
1770
+ y.appendChild(S);
1771
1771
  }
1772
- return h.appendChild(k), h;
1772
+ return y.appendChild(k), y;
1773
1773
  }
1774
- const n = e && typeof e == "object" && e.props && e.props.attrs ? e.props.attrs : void 0, o = (n && typeof n.xmlns == "string" ? String(n.xmlns) : void 0) ?? r ?? _t[e.tag] ?? null, i = o ? document.createElementNS(o, e.tag) : document.createElement(e.tag);
1774
+ const n = e && typeof e == "object" && e.props && e.props.attrs ? e.props.attrs : void 0, o = (n && typeof n.xmlns == "string" ? String(n.xmlns) : void 0) ?? r ?? kt[e.tag] ?? null, i = o ? document.createElementNS(o, e.tag) : document.createElement(e.tag);
1775
1775
  e.key != null && G(i, e.key), e.props && e.props?._transitionGroup && Zt(
1776
1776
  i,
1777
1777
  e.props?._transitionGroup
1778
1778
  );
1779
- const { props: f = {}, attrs: b = {}, directives: y = {} } = e.props ?? {}, m = pt(
1780
- y,
1779
+ const { props: f = {}, attrs: b = {}, directives: g = {} } = e.props ?? {}, h = ut(
1780
+ g,
1781
1781
  s,
1782
1782
  i instanceof HTMLElement ? i : void 0,
1783
1783
  b
1784
1784
  ), d = {
1785
1785
  ...f,
1786
- ...m.props
1787
- }, C = {
1786
+ ...h.props
1787
+ }, E = {
1788
1788
  ...b,
1789
- ...m.attrs
1789
+ ...h.attrs
1790
1790
  };
1791
1791
  try {
1792
- const p = (C && C.class) ?? (d && d.class) ?? (e.props && e.props.attrs && e.props.attrs.class) ?? (e.props && e.props.props && e.props.props.class), T = F(p);
1793
- if (T !== null) {
1794
- const a = String(T).trim();
1792
+ const p = (E && E.class) ?? (d && d.class) ?? (e.props && e.props.attrs && e.props.attrs.class) ?? (e.props && e.props.props && e.props.props.class), L = F(p);
1793
+ if (L !== null) {
1794
+ const a = String(L).trim();
1795
1795
  a && K(i, "class", a);
1796
1796
  }
1797
1797
  } catch {
1798
1798
  }
1799
1799
  try {
1800
1800
  if (d.disabled !== void 0 && i && Q(i)) {
1801
- const p = d.disabled, T = p && typeof p == "object" && "value" in p;
1801
+ const p = d.disabled, L = p && typeof p == "object" && "value" in p;
1802
1802
  let a = !1;
1803
1803
  try {
1804
1804
  a = O(p);
1805
1805
  } catch {
1806
1806
  a = !1;
1807
1807
  }
1808
- !T && !a && x(() => {
1809
- C.disabled = p, delete d.disabled;
1808
+ !L && !a && H(() => {
1809
+ E.disabled = p, delete d.disabled;
1810
1810
  });
1811
1811
  }
1812
1812
  } catch {
1813
1813
  }
1814
1814
  const j = i.namespaceURI === "http://www.w3.org/2000/svg";
1815
- for (const p in C) {
1816
- const T = C[p];
1815
+ for (const p in E) {
1816
+ const L = E[p];
1817
1817
  if (typeof p != "string" || /\[object Object\]/.test(p))
1818
1818
  continue;
1819
- const a = ze(T);
1819
+ const a = Ue(L);
1820
1820
  if (typeof a == "boolean")
1821
- a ? K(i, p, "") : x(() => {
1821
+ a ? K(i, p, "") : H(() => {
1822
1822
  Z(i, p);
1823
1823
  });
1824
1824
  else if (a != null) {
1825
1825
  if (p === "disabled" && Q(i)) {
1826
- const k = d.disabled, h = Fe(k) ? k : a, w = de(h);
1827
- x(() => {
1826
+ const k = d.disabled, y = ze(k) ? k : a, w = de(y);
1827
+ H(() => {
1828
1828
  i.disabled = w;
1829
- }), w ? x(() => {
1829
+ }), w ? H(() => {
1830
1830
  K(i, p, "");
1831
- }) : x(() => {
1831
+ }) : H(() => {
1832
1832
  Z(i, p);
1833
1833
  });
1834
1834
  continue;
@@ -1855,96 +1855,96 @@ function J(e, s, t, r = null) {
1855
1855
  k !== null && K(i, p, String(k));
1856
1856
  }
1857
1857
  else if ((e.props?.isCustomElement ?? !1) && !j && p.includes("-")) {
1858
- const h = Ge(p);
1858
+ const y = Ve(p);
1859
1859
  try {
1860
- i[h] = a;
1860
+ i[y] = a;
1861
1861
  } catch {
1862
1862
  const w = F(a);
1863
1863
  w !== null && K(i, p, String(w));
1864
1864
  }
1865
1865
  } else {
1866
- const h = F(a);
1867
- h !== null && K(i, p, String(h));
1866
+ const y = F(a);
1867
+ y !== null && K(i, p, String(y));
1868
1868
  }
1869
1869
  }
1870
1870
  }
1871
1871
  for (const p in d) {
1872
- const T = d[p];
1872
+ const L = d[p];
1873
1873
  if (!(typeof p != "string" || /\[object Object\]/.test(p)))
1874
1874
  if (p === "value" && (i instanceof HTMLInputElement || i instanceof HTMLTextAreaElement || i instanceof HTMLSelectElement)) {
1875
- const a = typeof T == "object" && T !== null && Le(T) ? T.value : T;
1876
- x(() => {
1875
+ const a = typeof L == "object" && L !== null && we(L) ? L.value : L;
1876
+ H(() => {
1877
1877
  i.value = String(a ?? "");
1878
1878
  });
1879
- } else if (p.startsWith("on") && typeof T == "function") {
1880
- const a = dt(p), k = a.includes(":") ? (() => {
1881
- const h = a.split(":"), w = h[1];
1879
+ } else if (p.startsWith("on") && typeof L == "function") {
1880
+ const a = ft(p), k = a.includes(":") ? (() => {
1881
+ const y = a.split(":"), w = y[1];
1882
1882
  if (w.includes("-")) {
1883
- const E = w.split("-").map(
1884
- (u, g) => g === 0 ? u : u.charAt(0).toUpperCase() + u.slice(1)
1883
+ const S = w.split("-").map(
1884
+ (u, m) => m === 0 ? u : u.charAt(0).toUpperCase() + u.slice(1)
1885
1885
  ).join("");
1886
- return `${h[0]}:${E}`;
1886
+ return `${y[0]}:${S}`;
1887
1887
  } else {
1888
- const E = w.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1889
- return `${h[0]}:${E}`;
1888
+ const S = w.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1889
+ return `${y[0]}:${S}`;
1890
1890
  }
1891
1891
  })() : a;
1892
- m.listeners && (m.listeners[a] || m.listeners[k]) || Y.addListener(i, a, T);
1892
+ h.listeners && (h.listeners[a] || h.listeners[k]) || Y.addListener(i, a, L);
1893
1893
  } else {
1894
- if (p.startsWith("on") && T === void 0)
1894
+ if (p.startsWith("on") && L === void 0)
1895
1895
  continue;
1896
- if (T == null || T === !1)
1896
+ if (L == null || L === !1)
1897
1897
  Z(i, p);
1898
1898
  else {
1899
- const a = e.props?.isCustomElement ?? !1, k = typeof T == "object" && T !== null && O(T) ? T : Le(T) && typeof T.value < "u" ? T.value : T;
1899
+ const a = e.props?.isCustomElement ?? !1, k = typeof L == "object" && L !== null && O(L) ? L : we(L) && typeof L.value < "u" ? L.value : L;
1900
1900
  if (p === "class" || p === "style") {
1901
1901
  try {
1902
- const h = F(k);
1903
- h !== null && K(i, p, String(h));
1902
+ const y = F(k);
1903
+ y !== null && K(i, p, String(y));
1904
1904
  } catch {
1905
1905
  }
1906
1906
  continue;
1907
1907
  }
1908
1908
  if (a || p in i)
1909
1909
  try {
1910
- const h = typeof T == "object" && T !== null && O(T) ? T : Le(T) ? T.value : T;
1910
+ const y = typeof L == "object" && L !== null && O(L) ? L : we(L) ? L.value : L;
1911
1911
  if (p === "disabled" && Q(i)) {
1912
- const w = d.disabled !== void 0 ? d.disabled : h, E = de(w);
1913
- x(() => {
1914
- i.disabled = E;
1915
- }), E ? x(() => {
1912
+ const w = d.disabled !== void 0 ? d.disabled : y, S = de(w);
1913
+ H(() => {
1914
+ i.disabled = S;
1915
+ }), S ? H(() => {
1916
1916
  K(i, p, "");
1917
- }) : x(() => {
1917
+ }) : H(() => {
1918
1918
  Z(i, p);
1919
1919
  });
1920
1920
  continue;
1921
1921
  }
1922
1922
  try {
1923
1923
  if (typeof i[p] == "boolean") {
1924
- let E = h;
1925
- typeof h == "string" ? h === "false" ? E = !1 : h === "true" ? E = !0 : E = !!h && h !== "" : E = !!h, i[p] = E;
1924
+ let S = y;
1925
+ typeof y == "string" ? y === "false" ? S = !1 : y === "true" ? S = !0 : S = !!y && y !== "" : S = !!y, i[p] = S;
1926
1926
  } else
1927
- i[p] = h;
1927
+ i[p] = y;
1928
1928
  } catch {
1929
- i[p] = h;
1929
+ i[p] = y;
1930
1930
  }
1931
1931
  } catch {
1932
1932
  }
1933
1933
  }
1934
1934
  }
1935
1935
  }
1936
- const S = m.listeners ?? {};
1937
- for (const [p, T] of Object.entries(S))
1938
- Y.addListener(i, p, T);
1939
- Object.keys(S).length > 0 && Ie.set(i, S);
1940
- const L = {
1936
+ const C = h.listeners ?? {};
1937
+ for (const [p, L] of Object.entries(C))
1938
+ Y.addListener(i, p, L);
1939
+ Object.keys(C).length > 0 && xe.set(i, C);
1940
+ const A = {
1941
1941
  ...e,
1942
1942
  props: {
1943
1943
  ...e.props,
1944
- ...m.props
1944
+ ...h.props
1945
1945
  }
1946
1946
  };
1947
- Ae(L, i, t);
1947
+ _e(A, i, t);
1948
1948
  try {
1949
1949
  const p = i;
1950
1950
  if (typeof p._applyProps == "function")
@@ -1956,33 +1956,33 @@ function J(e, s, t, r = null) {
1956
1956
  } catch {
1957
1957
  }
1958
1958
  if (Array.isArray(e.children)) {
1959
- const p = e.tag === "foreignObject" && o === At ? null : i.namespaceURI ?? null;
1960
- for (const T of e.children)
1961
- i.appendChild(J(T, s, t, p));
1959
+ const p = e.tag === "foreignObject" && o === _t ? null : i.namespaceURI ?? null;
1960
+ for (const L of e.children)
1961
+ i.appendChild(J(L, s, t, p));
1962
1962
  } else typeof e.children == "string" && (i.textContent = e.children);
1963
1963
  try {
1964
- if (i instanceof HTMLSelectElement && C && Object.prototype.hasOwnProperty.call(C, "value"))
1964
+ if (i instanceof HTMLSelectElement && E && Object.prototype.hasOwnProperty.call(E, "value"))
1965
1965
  try {
1966
- i.value = String(C.value ?? "");
1966
+ i.value = String(E.value ?? "");
1967
1967
  } catch {
1968
1968
  }
1969
1969
  } catch {
1970
1970
  }
1971
1971
  try {
1972
1972
  if (Q(i)) {
1973
- const p = d.disabled, T = C.disabled, a = p && typeof p == "object" && "value" in p;
1973
+ const p = d.disabled, L = E.disabled, a = p && typeof p == "object" && "value" in p;
1974
1974
  let k = !1;
1975
1975
  try {
1976
1976
  k = !!O(p);
1977
1977
  } catch {
1978
1978
  k = !1;
1979
1979
  }
1980
- const w = k || a || Fe(p) ? p : T, E = de(w);
1981
- x(() => {
1982
- i.disabled = E;
1983
- }), E ? x(() => {
1980
+ const w = k || a || ze(p) ? p : L, S = de(w);
1981
+ H(() => {
1982
+ i.disabled = S;
1983
+ }), S ? H(() => {
1984
1984
  K(i, "disabled", "");
1985
- }) : x(() => {
1985
+ }) : H(() => {
1986
1986
  Z(i, "disabled");
1987
1987
  });
1988
1988
  }
@@ -1997,39 +1997,39 @@ function Yt(e, s, t, r, n) {
1997
1997
  }
1998
1998
  if (!Array.isArray(t)) return;
1999
1999
  const c = e.childNodes, o = [];
2000
- for (let S = 0; S < c.length; S++)
2001
- o.push(c[S]);
2000
+ for (let C = 0; C < c.length; C++)
2001
+ o.push(c[C]);
2002
2002
  const i = Array.isArray(s) ? s : [], f = Jt(e);
2003
2003
  if (f) {
2004
- const S = (a) => {
2004
+ const C = (a) => {
2005
2005
  if (typeof a == "string")
2006
2006
  return a.startsWith("each-") ? a.substring(5) : a;
2007
2007
  if (typeof a == "number") return String(a);
2008
- }, L = [], p = [];
2008
+ }, A = [], p = [];
2009
2009
  for (const a of t)
2010
2010
  if (a && a.tag === "#anchor") {
2011
2011
  const k = Array.isArray(a.children) ? a.children : [];
2012
- for (const h of k) {
2013
- const w = S(
2014
- h.key ?? a.key ?? "unknown"
2012
+ for (const y of k) {
2013
+ const w = C(
2014
+ y.key ?? a.key ?? "unknown"
2015
2015
  );
2016
- L.push({ ...h, key: w });
2016
+ A.push({ ...y, key: w });
2017
2017
  }
2018
- } else a && L.push({ ...a, key: S(a.key) });
2018
+ } else a && A.push({ ...a, key: C(a.key) });
2019
2019
  for (const a of i)
2020
2020
  if (a && a.tag === "#anchor") {
2021
2021
  const k = Array.isArray(a.children) ? a.children : [];
2022
- for (const h of k) {
2023
- const w = S(
2024
- h.key ?? a.key ?? "unknown"
2022
+ for (const y of k) {
2023
+ const w = C(
2024
+ y.key ?? a.key ?? "unknown"
2025
2025
  );
2026
- p.push({ ...h, key: w });
2026
+ p.push({ ...y, key: w });
2027
2027
  }
2028
2028
  } else a && p.push({
2029
2029
  ...a,
2030
- key: S(a.key)
2030
+ key: C(a.key)
2031
2031
  });
2032
- if (L.some((a) => a && a.key != null) || p.some((a) => a && a.key != null)) {
2032
+ if (A.some((a) => a && a.key != null) || p.some((a) => a && a.key != null)) {
2033
2033
  const a = /* @__PURE__ */ new Map(), k = /* @__PURE__ */ new Map();
2034
2034
  for (const l of p)
2035
2035
  if (l && l.key != null) {
@@ -2038,14 +2038,14 @@ function Yt(e, s, t, r, n) {
2038
2038
  }
2039
2039
  for (let l = 0; l < o.length; l++) {
2040
2040
  const v = o[l];
2041
- let _ = xe(v);
2042
- if (_ = S(_), _ != null && v instanceof Element && v.nodeType === Node.ELEMENT_NODE) {
2043
- let A = typeof _ == "string" && _.includes(":") ? _.substring(0, _.lastIndexOf(":")) : _;
2044
- A = String(A), k.set(A, v);
2041
+ let _ = Oe(v);
2042
+ if (_ = C(_), _ != null && v instanceof Element && v.nodeType === Node.ELEMENT_NODE) {
2043
+ let T = typeof _ == "string" && _.includes(":") ? _.substring(0, _.lastIndexOf(":")) : _;
2044
+ T = String(T), k.set(T, v);
2045
2045
  }
2046
2046
  }
2047
- const h = /* @__PURE__ */ new Set(), w = /* @__PURE__ */ new Map(), E = o.length > 0;
2048
- if (f.moveClass && E)
2047
+ const y = /* @__PURE__ */ new Set(), w = /* @__PURE__ */ new Map(), S = o.length > 0;
2048
+ if (f.moveClass && S)
2049
2049
  for (let l = 0; l < o.length; l++) {
2050
2050
  const v = o[l];
2051
2051
  if (v instanceof HTMLElement && v.parentElement) {
@@ -2054,15 +2054,15 @@ function Yt(e, s, t, r, n) {
2054
2054
  }
2055
2055
  }
2056
2056
  const u = [];
2057
- for (const l of L) {
2057
+ for (const l of A) {
2058
2058
  let v = l.key;
2059
2059
  if (v == null) continue;
2060
2060
  v = String(v);
2061
2061
  const _ = a.get(v);
2062
- let A = k.get(v);
2063
- if (A && _) {
2064
- const N = Te(A, _, l, r);
2065
- h.add(A);
2062
+ let T = k.get(v);
2063
+ if (T && _) {
2064
+ const N = Ae(T, _, l, r);
2065
+ y.add(T);
2066
2066
  const $ = String(v);
2067
2067
  G(N, $), u.push({
2068
2068
  node: N,
@@ -2072,61 +2072,61 @@ function Yt(e, s, t, r, n) {
2072
2072
  isNew: !1
2073
2073
  });
2074
2074
  } else {
2075
- A = J(
2075
+ T = J(
2076
2076
  l,
2077
2077
  r,
2078
2078
  void 0,
2079
2079
  e instanceof Element ? e.namespaceURI ?? null : null
2080
- ), G(A, String(v)), e.appendChild(A);
2081
- const N = E || f.appear === !0;
2082
- A instanceof HTMLElement && N && _e(A, f).catch(($) => {
2080
+ ), G(T, String(v)), e.appendChild(T);
2081
+ const N = S || f.appear === !0;
2082
+ T instanceof HTMLElement && N && ke(T, f).catch(($) => {
2083
2083
  W("Enter transition error:", $);
2084
- }), u.push({ node: A, key: v, newVNode: l, isNew: !0 });
2084
+ }), u.push({ node: T, key: v, newVNode: l, isNew: !0 });
2085
2085
  }
2086
2086
  }
2087
- const g = [];
2087
+ const m = [];
2088
2088
  for (let l = 0; l < o.length; l++) {
2089
- const v = o[l], _ = xe(v);
2090
- if (!h.has(v) && _ != null && v instanceof HTMLElement) {
2091
- const N = Ke(v, f).then(() => {
2089
+ const v = o[l], _ = Oe(v);
2090
+ if (!y.has(v) && _ != null && v instanceof HTMLElement) {
2091
+ const N = De(v, f).then(() => {
2092
2092
  e.contains(v) && e.removeChild(v);
2093
2093
  }).catch(($) => {
2094
2094
  W("Leave transition error:", $), e.contains(v) && e.removeChild(v);
2095
2095
  });
2096
- g.push(N);
2096
+ m.push(N);
2097
2097
  }
2098
2098
  }
2099
- if (g.length === 0) {
2099
+ if (m.length === 0) {
2100
2100
  let l = e.firstChild;
2101
2101
  for (const { node: v } of u)
2102
2102
  v !== l && e.insertBefore(v, l), l = v.nextSibling;
2103
2103
  if (f.moveClass && w.size > 0) {
2104
2104
  const v = [];
2105
- for (const { node: _, isNew: A } of u)
2106
- if (!A && _ instanceof HTMLElement) {
2105
+ for (const { node: _, isNew: T } of u)
2106
+ if (!T && _ instanceof HTMLElement) {
2107
2107
  const N = w.get(_);
2108
2108
  if (N) {
2109
- const $ = _.getBoundingClientRect(), H = N.left - $.left, M = N.top - $.top;
2110
- if (H !== 0 || M !== 0) {
2109
+ const $ = _.getBoundingClientRect(), x = N.left - $.left, M = N.top - $.top;
2110
+ if (x !== 0 || M !== 0) {
2111
2111
  const D = f.moveClass.split(/\s+/).filter((R) => R);
2112
- v.push({ node: _, deltaX: H, deltaY: M, moveClasses: D });
2112
+ v.push({ node: _, deltaX: x, deltaY: M, moveClasses: D });
2113
2113
  }
2114
2114
  }
2115
2115
  }
2116
2116
  if (v.length > 0) {
2117
- for (const { node: _, deltaX: A, deltaY: N } of v)
2118
- _.style.transform = `translate(${A}px, ${N}px)`, _.style.transitionProperty = "none";
2117
+ for (const { node: _, deltaX: T, deltaY: N } of v)
2118
+ _.style.transform = `translate(${T}px, ${N}px)`, _.style.transitionProperty = "none";
2119
2119
  e.offsetHeight, requestAnimationFrame(() => {
2120
2120
  requestAnimationFrame(() => {
2121
- for (const { node: _, moveClasses: A } of v)
2122
- for (const N of A)
2121
+ for (const { node: _, moveClasses: T } of v)
2122
+ for (const N of T)
2123
2123
  _.classList.add(N);
2124
2124
  requestAnimationFrame(() => {
2125
- const _ = f.moveClass || "", A = _.match(/duration-(\d+)/), N = A ? `${A[1]}ms` : "300ms", $ = _.match(
2125
+ const _ = f.moveClass || "", T = _.match(/duration-(\d+)/), N = T ? `${T[1]}ms` : "300ms", $ = _.match(
2126
2126
  /ease-(out|in|in-out|linear)/
2127
- ), H = $ ? `ease-${$[1]}` : "ease-out";
2127
+ ), x = $ ? `ease-${$[1]}` : "ease-out";
2128
2128
  for (const { node: M } of v)
2129
- M.style.transition = `transform ${N} ${H}`;
2129
+ M.style.transition = `transform ${N} ${x}`;
2130
2130
  requestAnimationFrame(() => {
2131
2131
  for (const { node: M, moveClasses: D } of v) {
2132
2132
  M.style.removeProperty("transform");
@@ -2152,39 +2152,39 @@ function Yt(e, s, t, r, n) {
2152
2152
  }
2153
2153
  }
2154
2154
  const b = /* @__PURE__ */ new Map();
2155
- for (const S of i)
2156
- S && S.key != null && b.set(S.key, S);
2157
- const y = /* @__PURE__ */ new Map();
2158
- for (let S = 0; S < o.length; S++) {
2159
- const L = o[S], p = xe(L);
2160
- p != null && y.set(p, L);
2161
- }
2162
- const m = /* @__PURE__ */ new Set();
2155
+ for (const C of i)
2156
+ C && C.key != null && b.set(C.key, C);
2157
+ const g = /* @__PURE__ */ new Map();
2158
+ for (let C = 0; C < o.length; C++) {
2159
+ const A = o[C], p = Oe(A);
2160
+ p != null && g.set(p, A);
2161
+ }
2162
+ const h = /* @__PURE__ */ new Set();
2163
2163
  let d = e.firstChild;
2164
- function C(S, L) {
2165
- let p = S;
2166
- for (; p && (m.add(p), p !== L); )
2164
+ function E(C, A) {
2165
+ let p = C;
2166
+ for (; p && (h.add(p), p !== A); )
2167
2167
  p = p.nextSibling;
2168
2168
  }
2169
- function j(S, L, p, T, a, k = !0) {
2170
- const h = [];
2171
- let w = S.nextSibling;
2172
- for (; w && w !== L; )
2173
- h.push(w), w = w.nextSibling;
2174
- const E = Array.isArray(p) ? p : [];
2175
- if (T.some((g) => g && g.key != null) || E.some((g) => g && g.key != null)) {
2176
- const g = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map();
2177
- for (const N of E)
2178
- N && N.key != null && g.set(N.key, N);
2179
- for (const N of h) {
2180
- const $ = xe(N);
2169
+ function j(C, A, p, L, a, k = !0) {
2170
+ const y = [];
2171
+ let w = C.nextSibling;
2172
+ for (; w && w !== A; )
2173
+ y.push(w), w = w.nextSibling;
2174
+ const S = Array.isArray(p) ? p : [];
2175
+ if (L.some((m) => m && m.key != null) || S.some((m) => m && m.key != null)) {
2176
+ const m = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map();
2177
+ for (const N of S)
2178
+ N && N.key != null && m.set(N.key, N);
2179
+ for (const N of y) {
2180
+ const $ = Oe(N);
2181
2181
  $ != null && l.set($, N);
2182
2182
  }
2183
- const v = a && a.state === "visible" && E.length === 0 && T.length > 0, _ = /* @__PURE__ */ new Set();
2184
- let A = S.nextSibling;
2185
- for (const N of T) {
2183
+ const v = a && a.state === "visible" && S.length === 0 && L.length > 0, _ = /* @__PURE__ */ new Set();
2184
+ let T = C.nextSibling;
2185
+ for (const N of L) {
2186
2186
  if (typeof N == "object" && N.tag === "#anchor") {
2187
- const H = N.key, M = `${H}:start`, D = `${H}:end`, R = l.get(M), ee = l.get(D), q = Array.isArray(N.children) ? N.children : [], I = g.get(H);
2187
+ const x = N.key, M = `${x}:start`, D = `${x}:end`, R = l.get(M), ee = l.get(D), q = Array.isArray(N.children) ? N.children : [], I = m.get(x);
2188
2188
  let P, B;
2189
2189
  if (R && ee && e.contains(R))
2190
2190
  P = R, B = ee, j(
@@ -2194,7 +2194,7 @@ function Yt(e, s, t, r, n) {
2194
2194
  q
2195
2195
  );
2196
2196
  else {
2197
- P = document.createTextNode(""), B = document.createTextNode(""), G(P, M), G(B, D), e.insertBefore(P, A);
2197
+ P = document.createTextNode(""), B = document.createTextNode(""), G(P, M), G(B, D), e.insertBefore(P, T);
2198
2198
  for (const pe of q) {
2199
2199
  const oe = J(
2200
2200
  pe,
@@ -2202,67 +2202,67 @@ function Yt(e, s, t, r, n) {
2202
2202
  void 0,
2203
2203
  e instanceof Element ? e.namespaceURI ?? null : null
2204
2204
  );
2205
- e.insertBefore(oe, A), _.add(oe);
2205
+ e.insertBefore(oe, T), _.add(oe);
2206
2206
  }
2207
- e.insertBefore(B, A);
2207
+ e.insertBefore(B, T);
2208
2208
  }
2209
2209
  let U = P;
2210
2210
  for (; U && (_.add(U), U !== B); )
2211
2211
  U = U.nextSibling;
2212
- N._startNode = P, N._endNode = B, A = B.nextSibling;
2212
+ N._startNode = P, N._endNode = B, T = B.nextSibling;
2213
2213
  continue;
2214
2214
  }
2215
2215
  let $;
2216
2216
  if (N.key != null && l.has(N.key)) {
2217
- const H = g.get(N.key);
2218
- $ = Te(
2217
+ const x = m.get(N.key);
2218
+ $ = Ae(
2219
2219
  l.get(N.key),
2220
- H,
2220
+ x,
2221
2221
  N,
2222
2222
  r
2223
- ), _.add($), a && $ instanceof HTMLElement && v && a.appear && _e($, a).catch((M) => {
2223
+ ), _.add($), a && $ instanceof HTMLElement && v && a.appear && ke($, a).catch((M) => {
2224
2224
  W("Transition enter error (appear):", M);
2225
- }), $ !== A && e.contains($) && e.insertBefore($, A);
2225
+ }), $ !== T && e.contains($) && e.insertBefore($, T);
2226
2226
  } else
2227
2227
  $ = J(
2228
2228
  N,
2229
2229
  r,
2230
2230
  void 0,
2231
2231
  e instanceof Element ? e.namespaceURI ?? null : null
2232
- ), e.insertBefore($, A), _.add($), a && $ instanceof HTMLElement && k && _e($, a).catch((H) => {
2233
- W("Transition enter error:", H);
2232
+ ), e.insertBefore($, T), _.add($), a && $ instanceof HTMLElement && k && ke($, a).catch((x) => {
2233
+ W("Transition enter error:", x);
2234
2234
  });
2235
- A = $.nextSibling;
2235
+ T = $.nextSibling;
2236
2236
  }
2237
- for (const N of h)
2238
- !_.has(N) && e.contains(N) && (a && N instanceof HTMLElement && k ? Ke(N, a).then(() => {
2237
+ for (const N of y)
2238
+ !_.has(N) && e.contains(N) && (a && N instanceof HTMLElement && k ? De(N, a).then(() => {
2239
2239
  e.contains(N) && e.removeChild(N);
2240
2240
  }).catch(($) => {
2241
2241
  W("Transition leave error:", $), e.contains(N) && e.removeChild(N);
2242
2242
  }) : e.removeChild(N));
2243
2243
  } else {
2244
- const g = Math.min(
2245
- E.length,
2246
- T.length
2244
+ const m = Math.min(
2245
+ S.length,
2246
+ L.length
2247
2247
  );
2248
- for (let l = 0; l < g; l++) {
2249
- const v = E[l], _ = T[l], A = Te(h[l], v, _, r);
2250
- A !== h[l] && (e.insertBefore(A, h[l]), e.removeChild(h[l]));
2248
+ for (let l = 0; l < m; l++) {
2249
+ const v = S[l], _ = L[l], T = Ae(y[l], v, _, r);
2250
+ T !== y[l] && (e.insertBefore(T, y[l]), e.removeChild(y[l]));
2251
2251
  }
2252
- for (let l = g; l < T.length; l++) {
2252
+ for (let l = m; l < L.length; l++) {
2253
2253
  const v = J(
2254
- T[l],
2254
+ L[l],
2255
2255
  r,
2256
2256
  void 0,
2257
2257
  e instanceof Element ? e.namespaceURI ?? null : null
2258
2258
  );
2259
- e.insertBefore(v, L), a && v instanceof HTMLElement && k && _e(v, a).catch((_) => {
2259
+ e.insertBefore(v, A), a && v instanceof HTMLElement && k && ke(v, a).catch((_) => {
2260
2260
  W("Transition enter error:", _);
2261
2261
  });
2262
2262
  }
2263
- for (let l = g; l < h.length; l++) {
2264
- const v = h[l];
2265
- a && v instanceof HTMLElement && k ? Ke(v, a).then(() => {
2263
+ for (let l = m; l < y.length; l++) {
2264
+ const v = y[l];
2265
+ a && v instanceof HTMLElement && k ? De(v, a).then(() => {
2266
2266
  e.contains(v) && e.removeChild(v);
2267
2267
  }).catch((_) => {
2268
2268
  W("Transition leave error:", _), e.contains(v) && e.removeChild(v);
@@ -2270,15 +2270,15 @@ function Yt(e, s, t, r, n) {
2270
2270
  }
2271
2271
  }
2272
2272
  }
2273
- for (const S of t) {
2274
- let L;
2275
- if (S.tag === "#anchor") {
2276
- const p = S.key, T = `${p}:start`, a = `${p}:end`;
2277
- let k = y.get(T), h = y.get(a);
2278
- const w = Array.isArray(S.children) ? S.children : [];
2279
- if (k || (k = document.createTextNode(""), G(k, T)), h || (h = document.createTextNode(""), G(h, a)), S._startNode = k, S._endNode = h, !e.contains(k) || !e.contains(h)) {
2273
+ for (const C of t) {
2274
+ let A;
2275
+ if (C.tag === "#anchor") {
2276
+ const p = C.key, L = `${p}:start`, a = `${p}:end`;
2277
+ let k = g.get(L), y = g.get(a);
2278
+ const w = Array.isArray(C.children) ? C.children : [];
2279
+ if (k || (k = document.createTextNode(""), G(k, L)), y || (y = document.createTextNode(""), G(y, a)), C._startNode = k, C._endNode = y, !e.contains(k) || !e.contains(y)) {
2280
2280
  e.insertBefore(k, d);
2281
- const E = S._transition, g = !(E && E.state === "visible" && w.length > 0) || E.appear;
2281
+ const S = C._transition, m = !(S && S.state === "visible" && w.length > 0) || S.appear;
2282
2282
  for (const l of w) {
2283
2283
  const v = J(
2284
2284
  l,
@@ -2286,49 +2286,49 @@ function Yt(e, s, t, r, n) {
2286
2286
  n,
2287
2287
  e instanceof Element ? e.namespaceURI ?? null : null
2288
2288
  );
2289
- e.insertBefore(v, d), E && v instanceof HTMLElement && g && _e(v, E).catch((_) => {
2289
+ e.insertBefore(v, d), S && v instanceof HTMLElement && m && ke(v, S).catch((_) => {
2290
2290
  W("Transition enter error:", _);
2291
2291
  });
2292
2292
  }
2293
- e.insertBefore(h, d);
2293
+ e.insertBefore(y, d);
2294
2294
  } else {
2295
- const E = S._transition, g = b.get(p)._transition, l = g && g.state !== E?.state, v = E && E.state === "visible" && w.length > 0 && !l, _ = l || !v || E?.appear === !0;
2295
+ const S = C._transition, m = b.get(p)._transition, l = m && m.state !== S?.state, v = S && S.state === "visible" && w.length > 0 && !l, _ = l || !v || S?.appear === !0;
2296
2296
  j(
2297
2297
  k,
2298
- h,
2298
+ y,
2299
2299
  b.get(p)?.children,
2300
2300
  w,
2301
- E,
2301
+ S,
2302
2302
  _
2303
2303
  );
2304
2304
  }
2305
- C(k, h), d = h.nextSibling;
2305
+ E(k, y), d = y.nextSibling;
2306
2306
  continue;
2307
2307
  }
2308
- if (S.key != null && y.has(S.key)) {
2309
- const p = b.get(S.key);
2310
- L = Te(
2311
- y.get(S.key),
2308
+ if (C.key != null && g.has(C.key)) {
2309
+ const p = b.get(C.key);
2310
+ A = Ae(
2311
+ g.get(C.key),
2312
2312
  p,
2313
- S,
2313
+ C,
2314
2314
  r,
2315
2315
  n
2316
- ), m.add(L), L !== d && e.contains(L) && (d && !e.contains(d) && (d = null), e.insertBefore(L, d));
2316
+ ), h.add(A), A !== d && e.contains(A) && (d && !e.contains(d) && (d = null), e.insertBefore(A, d));
2317
2317
  } else
2318
- L = J(
2319
- S,
2318
+ A = J(
2319
+ C,
2320
2320
  r,
2321
2321
  n,
2322
2322
  e instanceof Element ? e.namespaceURI ?? null : null
2323
- ), d && !e.contains(d) && (d = null), e.insertBefore(L, d), m.add(L);
2324
- d = L.nextSibling;
2323
+ ), d && !e.contains(d) && (d = null), e.insertBefore(A, d), h.add(A);
2324
+ d = A.nextSibling;
2325
2325
  }
2326
- for (let S = 0; S < o.length; S++) {
2327
- const L = o[S];
2328
- !m.has(L) && e.contains(L) && (ue(L, n), e.removeChild(L));
2326
+ for (let C = 0; C < o.length; C++) {
2327
+ const A = o[C];
2328
+ !h.has(A) && e.contains(A) && (ue(A, n), e.removeChild(A));
2329
2329
  }
2330
2330
  }
2331
- function Te(e, s, t, r, n) {
2331
+ function Ae(e, s, t, r, n) {
2332
2332
  if (s && typeof s != "string" && s.props?.ref && n && ue(e, n), s === t) return e;
2333
2333
  if (typeof t == "string") {
2334
2334
  if (e.nodeType === Node.TEXT_NODE)
@@ -2341,18 +2341,18 @@ function Te(e, s, t, r, n) {
2341
2341
  if (t && typeof t != "string" && t.tag === "#anchor") {
2342
2342
  const o = t, i = Array.isArray(o.children) ? o.children : [], f = o._startNode ?? document.createTextNode(""), b = o._endNode ?? document.createTextNode("");
2343
2343
  o.key != null && (G(f, `${o.key}:start`), G(b, `${o.key}:end`)), o._startNode = f, o._endNode = b;
2344
- const y = document.createDocumentFragment();
2345
- y.appendChild(f);
2346
- for (const m of i) {
2344
+ const g = document.createDocumentFragment();
2345
+ g.appendChild(f);
2346
+ for (const h of i) {
2347
2347
  const d = J(
2348
- m,
2348
+ h,
2349
2349
  r,
2350
2350
  n,
2351
2351
  e.parentNode instanceof Element ? e.parentNode.namespaceURI ?? null : null
2352
2352
  );
2353
- y.appendChild(d);
2353
+ g.appendChild(d);
2354
2354
  }
2355
- return y.appendChild(b), e.parentNode?.replaceChild(y, e), f;
2355
+ return g.appendChild(b), e.parentNode?.replaceChild(g, e), f;
2356
2356
  }
2357
2357
  if (!t) {
2358
2358
  ue(e, n);
@@ -2367,17 +2367,17 @@ function Te(e, s, t, r, n) {
2367
2367
  n,
2368
2368
  e.parentNode instanceof Element ? e.parentNode.namespaceURI ?? null : null
2369
2369
  );
2370
- return Ae(t, o, n), e.parentNode?.replaceChild(o, e), o;
2370
+ return _e(t, o, n), e.parentNode?.replaceChild(o, e), o;
2371
2371
  }
2372
2372
  if (t.tag === "#anchor") {
2373
2373
  const o = Array.isArray(t.children) ? t.children : [], i = t._startNode ?? document.createTextNode(""), f = t._endNode ?? document.createTextNode("");
2374
2374
  t.key != null && (G(i, `${t.key}:start`), G(f, `${t.key}:end`)), t._startNode = i, t._endNode = f;
2375
2375
  const b = document.createDocumentFragment();
2376
2376
  b.appendChild(i);
2377
- for (const y of o)
2377
+ for (const g of o)
2378
2378
  b.appendChild(
2379
2379
  J(
2380
- y,
2380
+ g,
2381
2381
  r,
2382
2382
  n,
2383
2383
  e.parentNode instanceof Element ? e.parentNode.namespaceURI ?? null : null
@@ -2387,12 +2387,12 @@ function Te(e, s, t, r, n) {
2387
2387
  }
2388
2388
  if (typeof s != "string" && typeof t != "string" && s.tag === t.tag && s.key === t.key) {
2389
2389
  const o = e;
2390
- return it(o, s.props || {}, t.props || {}, r), Yt(o, s.children, t.children, r, n), Ae(t, o, n), o;
2390
+ return rt(o, s.props || {}, t.props || {}, r), Yt(o, s.children, t.children, r, n), _e(t, o, n), o;
2391
2391
  }
2392
2392
  if (typeof s != "string" && typeof t != "string" && s.tag === t.tag && (s.tag && String(s.tag).includes("-") || t.props && t.props.isCustomElement || s.props && s.props.isCustomElement))
2393
2393
  try {
2394
2394
  const i = e;
2395
- return it(i, s.props || {}, t.props || {}, r), Ae(t, i, n), i;
2395
+ return rt(i, s.props || {}, t.props || {}, r), _e(t, i, n), i;
2396
2396
  } catch {
2397
2397
  }
2398
2398
  ue(e, n);
@@ -2402,7 +2402,7 @@ function Te(e, s, t, r, n) {
2402
2402
  n,
2403
2403
  e.parentNode instanceof Element ? e.parentNode.namespaceURI ?? null : null
2404
2404
  );
2405
- return Ae(t, c, n), e.parentNode?.replaceChild(c, e), c;
2405
+ return _e(t, c, n), e.parentNode?.replaceChild(c, e), c;
2406
2406
  }
2407
2407
  function Xt(e, s, t, r) {
2408
2408
  let n;
@@ -2413,10 +2413,10 @@ function Xt(e, s, t, r) {
2413
2413
  attrs: { "data-anchor-block-root": "", key: "__anchor_root__" }
2414
2414
  },
2415
2415
  children: [n]
2416
- }), n = qe(n, String(n.key ?? "root"));
2416
+ }), n = Fe(n, String(n.key ?? "root"));
2417
2417
  const c = e._prevVNode ?? null, o = e._prevDom ?? e.firstChild ?? null;
2418
2418
  let i;
2419
- c && o ? typeof c != "string" && typeof n != "string" && c.tag === n.tag && c.key === n.key ? i = Te(o, c, n, t, r) : (i = J(
2419
+ c && o ? typeof c != "string" && typeof n != "string" && c.tag === n.tag && c.key === n.key ? i = Ae(o, c, n, t, r) : (i = J(
2420
2420
  n,
2421
2421
  t,
2422
2422
  r,
@@ -2428,11 +2428,11 @@ function Xt(e, s, t, r) {
2428
2428
  e.host instanceof Element ? e.host.namespaceURI ?? null : null
2429
2429
  ), e.firstChild ? e.replaceChild(i, e.firstChild) : e.appendChild(i));
2430
2430
  const f = [];
2431
- for (let y = 0; y < e.childNodes.length; y++) {
2432
- const m = e.childNodes[y];
2433
- m !== i && m.nodeName !== "STYLE" && (ue(m, r), f.push(m));
2431
+ for (let g = 0; g < e.childNodes.length; g++) {
2432
+ const h = e.childNodes[g];
2433
+ h !== i && h.nodeName !== "STYLE" && (ue(h, r), f.push(h));
2434
2434
  }
2435
- f.forEach((y) => e.removeChild(y));
2435
+ f.forEach((g) => e.removeChild(g));
2436
2436
  const b = n && typeof n == "object" && n.props ? {
2437
2437
  ...n,
2438
2438
  props: {
@@ -2443,38 +2443,38 @@ function Xt(e, s, t, r) {
2443
2443
  } : n;
2444
2444
  e._prevVNode = b, e._prevDom = i;
2445
2445
  }
2446
- const Ne = [], ot = /* @__PURE__ */ new WeakMap(), be = /* @__PURE__ */ new WeakMap();
2446
+ const Le = [], it = /* @__PURE__ */ new WeakMap(), ge = /* @__PURE__ */ new WeakMap();
2447
2447
  function Qt(e, s) {
2448
- be.has(e) || be.set(e, /* @__PURE__ */ new Set()), be.get(e).add(s);
2448
+ ge.has(e) || ge.set(e, /* @__PURE__ */ new Set()), ge.get(e).add(s);
2449
2449
  }
2450
2450
  function en(e, s) {
2451
- const t = be.get(e);
2452
- t && (t.delete(s), t.size === 0 && be.delete(e));
2451
+ const t = ge.get(e);
2452
+ t && (t.delete(s), t.size === 0 && ge.delete(e));
2453
2453
  }
2454
2454
  function tn(e, s, t, r, n, c, o, i) {
2455
2455
  if (e) {
2456
- Ne.push(t);
2456
+ Le.push(t);
2457
2457
  try {
2458
2458
  const f = s.render(t);
2459
2459
  if (f instanceof Promise) {
2460
2460
  c(!0);
2461
- const b = e.host.isConnected, y = e, m = y._asyncRenderToken = (y._asyncRenderToken ?? 0) + 1;
2461
+ const b = e.host.isConnected, g = e, h = g._asyncRenderToken = (g._asyncRenderToken ?? 0) + 1;
2462
2462
  f.then((d) => {
2463
- b && !e.host.isConnected || y._asyncRenderToken === m && (c(!1), o(null), ct(e, d, t, r, n), i(e.innerHTML));
2463
+ b && !e.host.isConnected || g._asyncRenderToken === h && (c(!1), o(null), ot(e, d, t, r, n), i(e.innerHTML));
2464
2464
  }).catch((d) => {
2465
- b && !e.host.isConnected || y._asyncRenderToken === m && (c(!1), o(d instanceof Error ? d : new Error(String(d))));
2465
+ b && !e.host.isConnected || g._asyncRenderToken === h && (c(!1), o(d instanceof Error ? d : new Error(String(d))));
2466
2466
  });
2467
2467
  return;
2468
2468
  }
2469
- ct(e, f, t, r, n), i(e.innerHTML);
2469
+ ot(e, f, t, r, n), i(e.innerHTML);
2470
2470
  } catch (f) {
2471
2471
  o(f instanceof Error ? f : new Error(String(f)));
2472
2472
  } finally {
2473
- Ne.pop();
2473
+ Le.pop();
2474
2474
  }
2475
2475
  }
2476
2476
  }
2477
- function ct(e, s, t, r, n) {
2477
+ function ot(e, s, t, r, n) {
2478
2478
  if (e)
2479
2479
  try {
2480
2480
  Xt(
@@ -2489,24 +2489,12 @@ function ct(e, s, t, r, n) {
2489
2489
  }
2490
2490
  function nn(e, s, t, r, n, c, o) {
2491
2491
  c !== null && clearTimeout(c);
2492
- const b = Date.now() - s < 16, y = (() => {
2493
- try {
2494
- return typeof window < "u" && !!window.Cypress;
2495
- } catch {
2496
- return !1;
2497
- }
2498
- })(), m = (() => {
2499
- try {
2500
- return globalThis.process?.env?.NODE_ENV === "test" && !y;
2501
- } catch {
2502
- return !1;
2503
- }
2504
- })(), d = m || y;
2492
+ const b = Date.now() - s < 16, { isVitest: g, isCypress: h, isTest: d } = bt(), E = (g || d) && !h;
2505
2493
  if (b) {
2506
- const S = t + 1;
2507
- n(S);
2508
- const L = d ? 50 : 10, p = d ? 100 : 25, T = m ? 12 : 50;
2509
- if (S === L && !d)
2494
+ const A = t + 1;
2495
+ n(A);
2496
+ const p = d ? 50 : 10, L = d ? 100 : 25, a = E ? 12 : 50;
2497
+ if (A === p && !d)
2510
2498
  te(
2511
2499
  `⚠️ Component rendering frequently. Performance may be impacted.
2512
2500
  Common causes:
@@ -2514,7 +2502,7 @@ Common causes:
2514
2502
  • Event handlers with immediate function calls
2515
2503
  • Missing effect dependencies`
2516
2504
  );
2517
- else if (S === p && !d)
2505
+ else if (A === L && !d)
2518
2506
  te(
2519
2507
  `⚠️ Component is re-rendering rapidly. Applying throttling.
2520
2508
  This might indicate:
@@ -2522,7 +2510,7 @@ This might indicate:
2522
2510
  • State modification during render
2523
2511
  • Missing dependencies in computed/watch`
2524
2512
  );
2525
- else if (S >= T) {
2513
+ else if (A >= a) {
2526
2514
  W(
2527
2515
  `🛑 Infinite render loop detected. Stopping to prevent browser freeze.
2528
2516
  Possible causes:
@@ -2534,27 +2522,27 @@ Possible causes:
2534
2522
  }
2535
2523
  } else
2536
2524
  n(0);
2537
- let C = 0;
2538
- d || (t >= 40 ? C = 500 : t >= 25 ? C = 100 : t >= 15 && (C = 16));
2539
- const j = () => {
2525
+ let j = 0;
2526
+ d || (t >= 40 ? j = 500 : t >= 25 ? j = 100 : t >= 15 && (j = 16));
2527
+ const C = () => {
2540
2528
  r(Date.now());
2541
2529
  try {
2542
2530
  e();
2543
- } catch (S) {
2544
- W("Error during render execution:", S);
2531
+ } catch (A) {
2532
+ W("Error during render execution:", A);
2545
2533
  } finally {
2546
2534
  o(null);
2547
2535
  }
2548
2536
  };
2549
- if (C > 0) {
2550
- const S = setTimeout(j, C);
2551
- o(S);
2552
- } else d ? j() : (o({}), queueMicrotask(j));
2537
+ if (j > 0) {
2538
+ const A = setTimeout(C, j);
2539
+ o(A);
2540
+ } else d ? C() : (o({}), queueMicrotask(C));
2553
2541
  }
2554
2542
  function sn(e, s) {
2555
2543
  let t = s;
2556
2544
  try {
2557
- const r = be.get(e);
2545
+ const r = ge.get(e);
2558
2546
  if (r?.size)
2559
2547
  for (const n of r)
2560
2548
  try {
@@ -2577,10 +2565,10 @@ function sn(e, s) {
2577
2565
  }
2578
2566
  return t;
2579
2567
  }
2580
- function at(e) {
2568
+ function rn(e) {
2581
2569
  return "adoptedStyleSheets" in e && typeof CSSStyleSheet < "u" && "replaceSync" in CSSStyleSheet.prototype;
2582
2570
  }
2583
- function lt(e, s) {
2571
+ function ct(e, s) {
2584
2572
  let t = e.querySelector(
2585
2573
  "style[data-cer-runtime]"
2586
2574
  );
@@ -2590,86 +2578,78 @@ function lt(e, s) {
2590
2578
  } catch {
2591
2579
  }
2592
2580
  }
2593
- function rn(e, s, t, r, n) {
2581
+ function on(e, s, t, r, n) {
2594
2582
  if (!e) return;
2595
2583
  const c = sn(e, t);
2596
- if (ot.get(e) === c)
2584
+ if (it.get(e) === c)
2597
2585
  return;
2598
- ot.set(e, c);
2599
- const i = wt(e) ? Lt(c) : "", f = Nt(), b = s._computedStyle;
2586
+ it.set(e, c);
2587
+ const i = Tt(e) ? wt(c) : "", f = Lt(), b = s._computedStyle, g = rn(e), h = Mt();
2588
+ let d = "";
2589
+ if (!g)
2590
+ try {
2591
+ h?.cssRules && (d = Array.from(h.cssRules).map((A) => A.cssText).join(`
2592
+ `));
2593
+ } catch {
2594
+ d = "";
2595
+ }
2600
2596
  if (!i?.trim() && !b && !f) {
2601
- if (n(null), at(e))
2597
+ if (n(null), g)
2602
2598
  e.adoptedStyleSheets = [
2603
- $e(),
2604
- he()
2599
+ je(),
2600
+ h
2605
2601
  ];
2606
2602
  else {
2607
- const p = ke(tt), T = he();
2608
- let a = "";
2609
- try {
2610
- T?.cssRules && (a = Array.from(T.cssRules).map((h) => h.cssText).join(`
2611
- `));
2612
- } catch {
2613
- a = "";
2614
- }
2615
- const k = ke(`${p}
2616
- ${a}`);
2617
- lt(e, k);
2603
+ const A = Ce(et), p = Ce(`${A}
2604
+ ${d}`);
2605
+ ct(e, p);
2618
2606
  try {
2619
- e.adoptedStyleSheets = [$e(), he()];
2607
+ e.adoptedStyleSheets = [je(), h];
2620
2608
  } catch {
2621
2609
  }
2622
2610
  }
2623
2611
  return;
2624
2612
  }
2625
- let y = "";
2626
- if (b && (y += b + `
2627
- `), i && (y += i + `
2628
- `), y = Mt(y), y = ke(y), at(e)) {
2629
- let L = r;
2630
- L || (L = new CSSStyleSheet());
2613
+ let E = "";
2614
+ if (b && (E += b + `
2615
+ `), i && (E += i + `
2616
+ `), E = Nt(E), E = Ce(E), g) {
2617
+ let A = r;
2618
+ A || (A = new CSSStyleSheet());
2631
2619
  try {
2632
- L.replaceSync(y);
2633
- const p = [$e(), he()];
2634
- f && p.push(f), p.push(L), e.adoptedStyleSheets = p, n(L);
2620
+ A.replaceSync(E);
2621
+ const p = [je(), h];
2622
+ f && p.push(f), p.push(A), e.adoptedStyleSheets = p, n(A);
2635
2623
  return;
2636
2624
  } catch {
2637
2625
  }
2638
2626
  }
2639
- const d = ke(tt), C = he();
2640
- let j = "";
2641
- try {
2642
- C?.cssRules && (j = Array.from(C.cssRules).map((L) => L.cssText).join(`
2643
- `));
2644
- } catch {
2645
- j = "";
2646
- }
2647
- const S = ke(`${d}
2648
- ${j}
2649
- ${y}`);
2650
- lt(e, S);
2627
+ const j = Ce(et), C = Ce(`${j}
2628
+ ${d}
2629
+ ${E}`);
2630
+ ct(e, C);
2651
2631
  try {
2652
- const L = [
2653
- $e(),
2654
- he()
2632
+ const A = [
2633
+ je(),
2634
+ h
2655
2635
  ];
2656
- if (f && L.push(f), typeof CSSStyleSheet < "u")
2636
+ if (f && A.push(f), typeof CSSStyleSheet < "u")
2657
2637
  try {
2658
2638
  const p = new CSSStyleSheet();
2659
- p.replaceSync(y), L.push(p);
2639
+ p.replaceSync(E), A.push(p);
2660
2640
  } catch {
2661
- L.push({
2641
+ A.push({
2662
2642
  cssRules: [],
2663
2643
  replaceSync: () => {
2664
2644
  }
2665
2645
  });
2666
2646
  }
2667
- e.adoptedStyleSheets = L;
2647
+ e.adoptedStyleSheets = A;
2668
2648
  } catch {
2669
2649
  }
2670
2650
  n(null);
2671
2651
  }
2672
- function on(e, s) {
2652
+ function cn(e, s) {
2673
2653
  if (!s.render)
2674
2654
  throw new Error("Component must have a render function");
2675
2655
  return typeof window > "u" ? class {
@@ -2718,7 +2698,7 @@ function on(e, s) {
2718
2698
  _templateLoading = !1;
2719
2699
  _templateError = null;
2720
2700
  constructor() {
2721
- super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this._cfg = we.get(e) || s, this._componentId = `${e}-${crypto.randomUUID()}`;
2701
+ super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this._cfg = Te.get(e) || s, this._componentId = `${e}-${crypto.randomUUID()}`;
2722
2702
  const t = this._initContext(s), r = (c, o, i) => {
2723
2703
  Object.defineProperty(c, o, {
2724
2704
  value: i,
@@ -2739,7 +2719,7 @@ function on(e, s) {
2739
2719
  t,
2740
2720
  "_triggerWatchers",
2741
2721
  (c, o) => this._triggerWatchers(c, o)
2742
- ), this.context = t, x(() => {
2722
+ ), this.context = t, H(() => {
2743
2723
  r(t, "_host", this);
2744
2724
  }), r(
2745
2725
  this.context,
@@ -2752,19 +2732,19 @@ function on(e, s) {
2752
2732
  ...i || {}
2753
2733
  }, b = new CustomEvent(c, f);
2754
2734
  this.dispatchEvent(b);
2755
- const y = c.indexOf(":");
2756
- if (y > 0) {
2757
- const m = c.substring(0, y), d = c.substring(y + 1), C = d.includes("-") ? `${m}:${d.split("-").map(
2758
- (j, S) => S === 0 ? j : j.charAt(0).toUpperCase() + j.slice(1)
2759
- ).join("")}` : `${m}:${d.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase()}`;
2760
- C !== c && x(() => {
2761
- this.dispatchEvent(new CustomEvent(C, f));
2735
+ const g = c.indexOf(":");
2736
+ if (g > 0) {
2737
+ const h = c.substring(0, g), d = c.substring(g + 1), E = d.includes("-") ? `${h}:${d.split("-").map(
2738
+ (j, C) => C === 0 ? j : j.charAt(0).toUpperCase() + j.slice(1)
2739
+ ).join("")}` : `${h}:${d.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase()}`;
2740
+ E !== c && H(() => {
2741
+ this.dispatchEvent(new CustomEvent(E, f));
2762
2742
  });
2763
2743
  }
2764
2744
  return !b.defaultPrevented;
2765
2745
  }
2766
2746
  );
2767
- const n = we.get(e) || s;
2747
+ const n = Te.get(e) || s;
2768
2748
  for (const c in n) {
2769
2749
  const o = n[c];
2770
2750
  typeof o == "function" && (this.context[c] = (...i) => o(...i, this.context));
@@ -2806,7 +2786,7 @@ function on(e, s) {
2806
2786
  ).observe(this);
2807
2787
  return;
2808
2788
  }
2809
- this._applyProps(s), this._requestRender(), nt(s, this.context, this._mounted, (n) => {
2789
+ this._applyProps(s), this._requestRender(), tt(s, this.context, this._mounted, (n) => {
2810
2790
  this._mounted = n;
2811
2791
  });
2812
2792
  }
@@ -2815,7 +2795,7 @@ function on(e, s) {
2815
2795
  /** Execute the standard hydration sequence (used by deferred strategies). */
2816
2796
  _hydrateNow(t) {
2817
2797
  this._runLogicWithinErrorBoundary(t, () => {
2818
- this._applyProps(t), this._requestRender(), nt(t, this.context, this._mounted, (r) => {
2798
+ this._applyProps(t), this._requestRender(), tt(t, this.context, this._mounted, (r) => {
2819
2799
  this._mounted = r;
2820
2800
  });
2821
2801
  });
@@ -2823,7 +2803,7 @@ function on(e, s) {
2823
2803
  disconnectedCallback() {
2824
2804
  this._runLogicWithinErrorBoundary(s, () => {
2825
2805
  const t = this.getRootNode();
2826
- t && t !== document && "host" in t && en(t, this), xt(
2806
+ t && t !== document && "host" in t && en(t, this), Ht(
2827
2807
  s,
2828
2808
  this.context,
2829
2809
  this._listeners,
@@ -2842,12 +2822,12 @@ function on(e, s) {
2842
2822
  (r) => {
2843
2823
  this._mounted = r;
2844
2824
  }
2845
- ), Ue.cleanup(this._componentId);
2825
+ ), Ke.cleanup(this._componentId);
2846
2826
  });
2847
2827
  }
2848
2828
  attributeChangedCallback(t, r, n) {
2849
2829
  this._runLogicWithinErrorBoundary(s, () => {
2850
- this._applyProps(s), r !== n && this._requestRender(), Ht(s, t, r, n, this.context);
2830
+ this._applyProps(s), r !== n && this._requestRender(), xt(s, t, r, n, this.context);
2851
2831
  });
2852
2832
  }
2853
2833
  static get observedAttributes() {
@@ -2879,7 +2859,7 @@ function on(e, s) {
2879
2859
  }
2880
2860
  _requestRender() {
2881
2861
  this._runLogicWithinErrorBoundary(this._cfg, () => {
2882
- Ce(() => {
2862
+ Se(() => {
2883
2863
  nn(
2884
2864
  () => this._render(this._cfg),
2885
2865
  this._lastRenderTime,
@@ -2901,7 +2881,7 @@ function on(e, s) {
2901
2881
  // --- Style ---
2902
2882
  _applyStyle(t, r) {
2903
2883
  this._runLogicWithinErrorBoundary(t, () => {
2904
- rn(
2884
+ on(
2905
2885
  this.shadowRoot,
2906
2886
  this.context,
2907
2887
  r,
@@ -2963,8 +2943,8 @@ function on(e, s) {
2963
2943
  if (Array.isArray(c))
2964
2944
  return new Proxy(c, {
2965
2945
  get(i, f, b) {
2966
- const y = Reflect.get(i, f, b);
2967
- return typeof y == "function" && typeof f == "string" && [
2946
+ const g = Reflect.get(i, f, b);
2947
+ return typeof g == "function" && typeof f == "string" && [
2968
2948
  "push",
2969
2949
  "pop",
2970
2950
  "shift",
@@ -2973,28 +2953,28 @@ function on(e, s) {
2973
2953
  "sort",
2974
2954
  "reverse"
2975
2955
  ].includes(f) ? function(...d) {
2976
- const C = y.apply(i, d);
2956
+ const E = g.apply(i, d);
2977
2957
  if (!n._initializing) {
2978
2958
  const j = o || "root";
2979
- n._triggerWatchers(j, i), Ce(
2959
+ n._triggerWatchers(j, i), Se(
2980
2960
  () => n._render(t),
2981
2961
  n._componentId
2982
2962
  );
2983
2963
  }
2984
- return C;
2985
- } : y;
2964
+ return E;
2965
+ } : g;
2986
2966
  },
2987
2967
  set(i, f, b) {
2988
2968
  if (i[String(f)] = b, !n._initializing) {
2989
- const y = o ? `${o}.${String(f)}` : String(f);
2990
- n._triggerWatchers(y, b), Ce(() => n._render(t), n._componentId);
2969
+ const g = o ? `${o}.${String(f)}` : String(f);
2970
+ n._triggerWatchers(g, b), Se(() => n._render(t), n._componentId);
2991
2971
  }
2992
2972
  return !0;
2993
2973
  },
2994
2974
  deleteProperty(i, f) {
2995
2975
  if (delete i[String(f)], !n._initializing) {
2996
2976
  const b = o ? `${o}.${String(f)}` : String(f);
2997
- n._triggerWatchers(b, void 0), Ce(() => n._render(t), n._componentId);
2977
+ n._triggerWatchers(b, void 0), Se(() => n._render(t), n._componentId);
2998
2978
  }
2999
2979
  return !0;
3000
2980
  }
@@ -3008,11 +2988,11 @@ function on(e, s) {
3008
2988
  }
3009
2989
  return new Proxy(c, {
3010
2990
  set(i, f, b) {
3011
- const y = o ? `${o}.${String(f)}` : String(f);
3012
- return i[String(f)] = r(b, y), n._initializing || (n._triggerWatchers(
3013
- y,
2991
+ const g = o ? `${o}.${String(f)}` : String(f);
2992
+ return i[String(f)] = r(b, g), n._initializing || (n._triggerWatchers(
2993
+ g,
3014
2994
  i[String(f)]
3015
- ), Ce(() => n._render(t), n._componentId)), !0;
2995
+ ), Se(() => n._render(t), n._componentId)), !0;
3016
2996
  },
3017
2997
  get(i, f, b) {
3018
2998
  return Reflect.get(i, f, b);
@@ -3067,8 +3047,8 @@ function He(e, s, t, r) {
3067
3047
  );
3068
3048
  }
3069
3049
  }
3070
- function bn(e, s, t) {
3071
- Tt();
3050
+ function vn(e, s, t) {
3051
+ At();
3072
3052
  let r = X(e);
3073
3053
  r.includes("-") || (r = `cer-${r}`);
3074
3054
  const n = {}, c = {
@@ -3096,8 +3076,8 @@ function bn(e, s, t) {
3096
3076
  if (n.onAttributeChanged)
3097
3077
  try {
3098
3078
  n.onAttributeChanged(o, i, f, b);
3099
- } catch (y) {
3100
- W(`[${r}] Error in onAttributeChanged lifecycle hook:`, y);
3079
+ } catch (g) {
3080
+ W(`[${r}] Error in onAttributeChanged lifecycle hook:`, g);
3101
3081
  }
3102
3082
  },
3103
3083
  onError: (o, i) => {
@@ -3110,7 +3090,7 @@ function bn(e, s, t) {
3110
3090
  },
3111
3091
  render: (o) => {
3112
3092
  const i = o, f = i._componentId || `${r}-${crypto.randomUUID()}`;
3113
- Ue.setCurrentComponent(f, () => {
3093
+ Ke.setCurrentComponent(f, () => {
3114
3094
  o.requestRender && o.requestRender();
3115
3095
  });
3116
3096
  try {
@@ -3124,92 +3104,92 @@ function bn(e, s, t) {
3124
3104
  writable: !0,
3125
3105
  enumerable: !1,
3126
3106
  configurable: !0
3127
- }), Ye(o), et();
3107
+ }), Ze(o), Qe();
3128
3108
  let b;
3129
3109
  try {
3130
3110
  b = s();
3131
- } catch (y) {
3111
+ } catch (g) {
3132
3112
  try {
3133
3113
  const d = i._hookCallbacks?.onError;
3134
3114
  if (Array.isArray(d))
3135
- for (const C of d)
3115
+ for (const E of d)
3136
3116
  try {
3137
- C(y);
3117
+ E(g);
3138
3118
  } catch {
3139
3119
  }
3140
3120
  else if (typeof d == "function")
3141
3121
  try {
3142
- d(y);
3122
+ d(g);
3143
3123
  } catch {
3144
3124
  }
3145
3125
  } catch {
3146
3126
  }
3147
3127
  try {
3148
- const m = i._host;
3149
- if (m?.parentElement) {
3150
- let d = m.parentElement;
3128
+ const h = i._host;
3129
+ if (h?.parentElement) {
3130
+ let d = h.parentElement;
3151
3131
  for (; d; ) {
3152
3132
  if (d.tagName.toLowerCase() === "cer-error-boundary") {
3153
3133
  d._cerHandleChildError?.(
3154
- y
3134
+ g
3155
3135
  );
3156
3136
  break;
3157
3137
  }
3158
- let C = d.parentElement;
3159
- if (!C) {
3138
+ let E = d.parentElement;
3139
+ if (!E) {
3160
3140
  const j = d.getRootNode();
3161
- j instanceof ShadowRoot && (C = j.host.parentElement);
3141
+ j instanceof ShadowRoot && (E = j.host.parentElement);
3162
3142
  }
3163
- d = C;
3143
+ d = E;
3164
3144
  }
3165
3145
  }
3166
3146
  } catch {
3167
3147
  }
3168
- throw y;
3148
+ throw g;
3169
3149
  }
3170
3150
  if (i._hookCallbacks) {
3171
- const y = i._hookCallbacks;
3172
- if (y.onConnected) {
3173
- const m = y.onConnected;
3151
+ const g = i._hookCallbacks;
3152
+ if (g.onConnected) {
3153
+ const h = g.onConnected;
3174
3154
  n.onConnected = (d) => {
3175
- He(r, "useOnConnected", m, [d]);
3155
+ He(r, "useOnConnected", h, [d]);
3176
3156
  };
3177
3157
  }
3178
- if (y.onDisconnected) {
3179
- const m = y.onDisconnected;
3158
+ if (g.onDisconnected) {
3159
+ const h = g.onDisconnected;
3180
3160
  n.onDisconnected = (d) => {
3181
- He(r, "useOnDisconnected", m, [d]);
3161
+ He(r, "useOnDisconnected", h, [d]);
3182
3162
  };
3183
3163
  }
3184
- if (y.onAttributeChanged) {
3185
- const m = y.onAttributeChanged;
3186
- n.onAttributeChanged = (d, C, j, S) => {
3187
- He(r, "useOnAttributeChanged", m, [d, C, j, S]);
3164
+ if (g.onAttributeChanged) {
3165
+ const h = g.onAttributeChanged;
3166
+ n.onAttributeChanged = (d, E, j, C) => {
3167
+ He(r, "useOnAttributeChanged", h, [d, E, j, C]);
3188
3168
  };
3189
3169
  }
3190
- if (y.onError) {
3191
- const m = y.onError;
3170
+ if (g.onError) {
3171
+ const h = g.onError;
3192
3172
  n.onError = (d) => {
3193
- He(r, "useOnError", m, [d]);
3173
+ He(r, "useOnError", h, [d]);
3194
3174
  };
3195
3175
  }
3196
- if (y.props && !Object.keys(c.props ?? {}).length) {
3197
- const m = y.props;
3176
+ if (g.props && !Object.keys(c.props ?? {}).length) {
3177
+ const h = g.props;
3198
3178
  c.props = Object.fromEntries(
3199
- Object.entries(m).map(([d, C]) => [
3179
+ Object.entries(h).map(([d, E]) => [
3200
3180
  d,
3201
- { type: typeof C == "boolean" ? Boolean : typeof C == "number" ? Number : typeof C == "string" ? String : Function, default: C }
3181
+ { type: typeof E == "boolean" ? Boolean : typeof E == "number" ? Number : typeof E == "string" ? String : Function, default: E }
3202
3182
  ])
3203
- ), we.set(r, c);
3183
+ ), Te.set(r, c);
3204
3184
  }
3205
3185
  }
3206
3186
  return b;
3207
3187
  } finally {
3208
- Xe(), Ue.clearCurrentComponent();
3188
+ Ye(), Ke.clearCurrentComponent();
3209
3189
  }
3210
3190
  }
3211
3191
  };
3212
- if (we.set(r, c), typeof window < "u") {
3192
+ if (Te.set(r, c), typeof window < "u") {
3213
3193
  try {
3214
3194
  const o = {
3215
3195
  _hookCallbacks: {},
@@ -3217,16 +3197,16 @@ function bn(e, s, t) {
3217
3197
  },
3218
3198
  emit: () => !0
3219
3199
  };
3220
- Ye(o), Et(), et();
3200
+ Ze(o), vt(), Qe();
3221
3201
  try {
3222
3202
  s();
3223
3203
  } catch (i) {
3224
3204
  try {
3225
3205
  const b = o?._hookCallbacks?.onError;
3226
3206
  if (Array.isArray(b))
3227
- for (const y of b)
3207
+ for (const g of b)
3228
3208
  try {
3229
- y(i);
3209
+ g(i);
3230
3210
  } catch {
3231
3211
  }
3232
3212
  else if (typeof b == "function")
@@ -3244,7 +3224,7 @@ function bn(e, s, t) {
3244
3224
  }
3245
3225
  throw i;
3246
3226
  } finally {
3247
- St(), Xe();
3227
+ Et(), Ye();
3248
3228
  }
3249
3229
  if (o._hookCallbacks?.props) {
3250
3230
  const i = o._hookCallbacks.props;
@@ -3253,13 +3233,13 @@ function bn(e, s, t) {
3253
3233
  f,
3254
3234
  { type: typeof b == "boolean" ? Boolean : typeof b == "number" ? Number : typeof b == "string" ? String : Function, default: b }
3255
3235
  ])
3256
- ), we.set(r, c);
3236
+ ), Te.set(r, c);
3257
3237
  }
3258
3238
  } catch {
3259
3239
  }
3260
3240
  typeof customElements < "u" && !customElements.get(r) && customElements.define(
3261
3241
  r,
3262
- on(r, c)
3242
+ cn(r, c)
3263
3243
  );
3264
3244
  }
3265
3245
  }
@@ -3267,16 +3247,16 @@ function ie(e, s = {}, t, r) {
3267
3247
  const n = r ?? s.key;
3268
3248
  return { tag: e, key: n, props: s, children: t };
3269
3249
  }
3270
- function Me(e) {
3250
+ function Ne(e) {
3271
3251
  return !!e && typeof e == "object" && (e.type === "AnchorBlock" || e.tag === "#anchor");
3272
3252
  }
3273
3253
  function fe(e) {
3274
- return typeof e == "object" && e !== null && "tag" in e && !Me(e);
3254
+ return typeof e == "object" && e !== null && "tag" in e && !Ne(e);
3275
3255
  }
3276
- function cn(e, s) {
3256
+ function an(e, s) {
3277
3257
  return e.key != null ? e : { ...e, key: s };
3278
3258
  }
3279
- function an(e, s) {
3259
+ function ln(e, s) {
3280
3260
  if (e == null) {
3281
3261
  te(
3282
3262
  `⚠️ Event handler for '@${s}' is ${e}. This will prevent the event from working. Use a function reference instead: @${s}="\${functionName}"`
@@ -3289,25 +3269,25 @@ function an(e, s) {
3289
3269
  `💡 Tip: If your event handler function returns undefined, make sure you're passing the function reference, not calling it. Use @${s}="\${fn}" not @${s}="\${fn()}"`
3290
3270
  );
3291
3271
  }
3292
- function ln(e, s = [], t = {}) {
3272
+ function fn(e, s = [], t = {}) {
3293
3273
  const r = {}, n = {}, c = {}, o = [], i = /([:@#]?)([a-zA-Z0-9-:.]+)(?:\s*=\s*("([^"\\]*(\\.[^"\\]*)*)"|'([^'\\]*(\\.[^'\\]*)*)'|([^\s>]+)))?/g;
3294
3274
  let f;
3295
3275
  for (; f = i.exec(e); ) {
3296
- const b = f[1], y = f[2];
3297
- let m = "";
3276
+ const b = f[1], g = f[2];
3277
+ let h = "";
3298
3278
  for (let p = 3; p < f.length; p++)
3299
3279
  if (f[p] !== void 0) {
3300
- m = f[p];
3280
+ h = f[p];
3301
3281
  break;
3302
3282
  }
3303
- m.length >= 2 && (m[0] === '"' && m[m.length - 1] === '"' || m[0] === "'" && m[m.length - 1] === "'") && (m = m.slice(1, -1));
3304
- const d = !/=/.test(f[0]), C = m.match(/^{{(\d+)}}$/), j = !C && /{{(\d+)}}/.test(m);
3305
- let S = d ? !0 : C ? s[Number(C[1])] ?? null : j ? m.replace(
3283
+ h.length >= 2 && (h[0] === '"' && h[h.length - 1] === '"' || h[0] === "'" && h[h.length - 1] === "'") && (h = h.slice(1, -1));
3284
+ const d = !/=/.test(f[0]), E = h.match(/^{{(\d+)}}$/), j = !E && /{{(\d+)}}/.test(h);
3285
+ let C = d ? !0 : E ? s[Number(E[1])] ?? null : j ? h.replace(
3306
3286
  /{{(\d+)}}/g,
3307
- (p, T) => String(s[Number(T)] ?? "")
3308
- ) : m;
3309
- !C && !j && (S === "true" ? S = !0 : S === "false" ? S = !1 : S === "null" ? S = null : isNaN(Number(S)) || (S = Number(S)));
3310
- const L = [
3287
+ (p, L) => String(s[Number(L)] ?? "")
3288
+ ) : h;
3289
+ !E && !j && (C === "true" ? C = !0 : C === "false" ? C = !1 : C === "null" ? C = null : isNaN(Number(C)) || (C = Number(C)));
3290
+ const A = [
3311
3291
  "model",
3312
3292
  "bind",
3313
3293
  "show",
@@ -3317,49 +3297,49 @@ function ln(e, s = [], t = {}) {
3317
3297
  "when"
3318
3298
  ];
3319
3299
  if (b === ":") {
3320
- const [p, T] = y.split(":"), [a, ...k] = p.split(".");
3321
- if (L.includes(a)) {
3322
- const h = [...k], w = a === "model" && T ? `model:${T}` : a;
3300
+ const [p, L] = g.split(":"), [a, ...k] = p.split(".");
3301
+ if (A.includes(a)) {
3302
+ const y = [...k], w = a === "model" && L ? `model:${L}` : a;
3323
3303
  c[w] = {
3324
- value: S,
3325
- modifiers: h,
3326
- arg: T
3304
+ value: C,
3305
+ modifiers: y,
3306
+ arg: L
3327
3307
  };
3328
- } else if (y === "disabled") {
3329
- let h = S;
3330
- h && O(h) && (h = h.value);
3331
- const w = typeof h;
3332
- if (h === "" || w === "boolean" || w === "string" && (h === "true" || h === "false") || h == null || w === "number")
3333
- r[y] = h;
3308
+ } else if (g === "disabled") {
3309
+ let y = C;
3310
+ y && O(y) && (y = y.value);
3311
+ const w = typeof y;
3312
+ if (y === "" || w === "boolean" || w === "string" && (y === "true" || y === "false") || y == null || w === "number")
3313
+ r[g] = y;
3334
3314
  else {
3335
- let g = S;
3336
- g && O(g) && (g = g.value), n[y] = g;
3315
+ let m = C;
3316
+ m && O(m) && (m = m.value), n[g] = m;
3337
3317
  }
3338
- o.push(y);
3318
+ o.push(g);
3339
3319
  } else {
3340
- let h = S;
3341
- h && O(h) && (h = h.value), n[y] = h, o.push(y);
3320
+ let y = C;
3321
+ y && O(y) && (y = y.value), n[g] = y, o.push(g);
3342
3322
  }
3343
3323
  } else if (b === "@") {
3344
- const [p, ...T] = y.split("."), a = T;
3345
- an(S, p);
3346
- const k = typeof S == "function" ? S : typeof t[S] == "function" ? t[S] : void 0;
3324
+ const [p, ...L] = g.split("."), a = L;
3325
+ ln(C, p);
3326
+ const k = typeof C == "function" ? C : typeof t[C] == "function" ? t[C] : void 0;
3347
3327
  if (k) {
3348
- const h = (E) => {
3349
- if (a.includes("prevent") && E.preventDefault(), a.includes("stop") && E.stopPropagation(), !(a.includes("self") && E.target !== E.currentTarget))
3350
- return a.includes("once") && E.currentTarget?.removeEventListener(
3328
+ const y = (S) => {
3329
+ if (a.includes("prevent") && S.preventDefault(), a.includes("stop") && S.stopPropagation(), !(a.includes("self") && S.target !== S.currentTarget))
3330
+ return a.includes("once") && S.currentTarget?.removeEventListener(
3351
3331
  p,
3352
- h
3353
- ), k(E);
3332
+ y
3333
+ ), k(S);
3354
3334
  }, w = "on" + p.charAt(0).toUpperCase() + p.slice(1);
3355
- r[w] = h;
3335
+ r[w] = y;
3356
3336
  }
3357
- } else y === "ref" ? r.ref = S : n[y] = S;
3337
+ } else g === "ref" ? r.ref = C : n[g] = C;
3358
3338
  }
3359
3339
  return { props: r, attrs: n, directives: c, bound: o };
3360
3340
  }
3361
- function Ve(e) {
3362
- if (!fe(e) || Me(e))
3341
+ function qe(e) {
3342
+ if (!fe(e) || Ne(e))
3363
3343
  return e;
3364
3344
  const s = e.props?.directives;
3365
3345
  if (s && s.when) {
@@ -3372,7 +3352,7 @@ function Ve(e) {
3372
3352
  props: c
3373
3353
  };
3374
3354
  return Array.isArray(o.children) && (o.children = o.children.map(
3375
- (f) => typeof f == "object" && f !== null ? Ve(f) : f
3355
+ (f) => typeof f == "object" && f !== null ? qe(f) : f
3376
3356
  )), {
3377
3357
  tag: "#anchor",
3378
3358
  key: e.key != null ? `when-${e.key}` : `when-${e.tag}`,
@@ -3381,7 +3361,7 @@ function Ve(e) {
3381
3361
  }
3382
3362
  if (Array.isArray(e.children)) {
3383
3363
  const t = e.children.map(
3384
- (r) => typeof r == "object" && r !== null ? Ve(r) : r
3364
+ (r) => typeof r == "object" && r !== null ? qe(r) : r
3385
3365
  );
3386
3366
  return {
3387
3367
  ...e,
@@ -3390,25 +3370,25 @@ function Ve(e) {
3390
3370
  }
3391
3371
  return e;
3392
3372
  }
3393
- function fn(e, s, t) {
3394
- const r = Ne.length > 0 ? Ne[Ne.length - 1] : void 0, n = t ?? r, c = !t && s.length === 0, o = c ? e.join("<!--TEMPLATE_DELIM-->") : null;
3373
+ function un(e, s, t) {
3374
+ const r = Le.length > 0 ? Le[Le.length - 1] : void 0, n = t ?? r, c = !t && s.length === 0, o = c ? e.join("<!--TEMPLATE_DELIM-->") : null;
3395
3375
  if (c && o) {
3396
- const l = De.get(o);
3376
+ const l = We.get(o);
3397
3377
  if (l) return l;
3398
3378
  }
3399
3379
  function i(l, v) {
3400
3380
  return ie("#text", {}, l, v);
3401
3381
  }
3402
3382
  function f(l, v, _ = !1) {
3403
- let A = typeof l == "string" ? Ct(l) : l;
3404
- return !_ && typeof A == "string" && /[\r\n]/.test(A) && (A = A.replace(/\s+/g, " ")), ie("#text", {}, A, v);
3383
+ let T = typeof l == "string" ? St(l) : l;
3384
+ return !_ && typeof T == "string" && /[\r\n]/.test(T) && (T = T.replace(/\s+/g, " ")), ie("#text", {}, T, v);
3405
3385
  }
3406
3386
  let b = "";
3407
3387
  for (let l = 0; l < e.length; l++)
3408
3388
  b += e[l], l < s.length && (b += `{{${l}}}`);
3409
- const y = /<!--[\s\S]*?-->|<\/?([a-zA-Z0-9-]+)((?:\s+[^\s=>/]+(?:\s*=\s*(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|[^\s>]+))?)*)\s*\/?>|{{(\d+)}}|([^<]+)/g, m = [];
3410
- let d, C = [], j = null, S = {}, L, p = 0;
3411
- const T = [], a = /* @__PURE__ */ new Set([
3389
+ const g = /<!--[\s\S]*?-->|<\/?([a-zA-Z0-9-]+)((?:\s+[^\s=>/]+(?:\s*=\s*(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|[^\s>]+))?)*)\s*\/?>|{{(\d+)}}|([^<]+)/g, h = [];
3390
+ let d, E = [], j = null, C = {}, A, p = 0;
3391
+ const L = [], a = /* @__PURE__ */ new Set([
3412
3392
  "pre",
3413
3393
  "code",
3414
3394
  "textarea",
@@ -3418,73 +3398,73 @@ function fn(e, s, t) {
3418
3398
  function k() {
3419
3399
  if (j && a.has(j.toLowerCase()))
3420
3400
  return !0;
3421
- for (const l of m)
3401
+ for (const l of h)
3422
3402
  if (a.has(l.tag.toLowerCase()))
3423
3403
  return !0;
3424
3404
  return !1;
3425
3405
  }
3426
- function h(l) {
3427
- if (!l || typeof l != "object" || Me(l)) return;
3428
- const v = l, _ = S;
3406
+ function y(l) {
3407
+ if (!l || typeof l != "object" || Ne(l)) return;
3408
+ const v = l, _ = C;
3429
3409
  if (v.props || v.attrs) {
3430
- const A = v;
3431
- A.props && (_.props || (_.props = {}), Object.assign(_.props, A.props)), A.attrs && (_.attrs || (_.attrs = {}), Object.keys(A.attrs).forEach((N) => {
3410
+ const T = v;
3411
+ T.props && (_.props || (_.props = {}), Object.assign(_.props, T.props)), T.attrs && (_.attrs || (_.attrs = {}), Object.keys(T.attrs).forEach((N) => {
3432
3412
  if (N === "style" && _.attrs.style) {
3433
- const $ = String(_.attrs.style).replace(/;?\s*$/, ""), H = String(A.attrs.style).replace(/^;?\s*/, "");
3434
- _.attrs.style = $ + "; " + H;
3413
+ const $ = String(_.attrs.style).replace(/;?\s*$/, ""), x = String(T.attrs.style).replace(/^;?\s*/, "");
3414
+ _.attrs.style = $ + "; " + x;
3435
3415
  } else if (N === "class" && _.attrs.class) {
3436
- const $ = String(_.attrs.class).trim().split(/\s+/).filter(Boolean), H = String(A.attrs.class).trim().split(/\s+/).filter(Boolean), M = [
3437
- .../* @__PURE__ */ new Set([...$, ...H])
3416
+ const $ = String(_.attrs.class).trim().split(/\s+/).filter(Boolean), x = String(T.attrs.class).trim().split(/\s+/).filter(Boolean), M = [
3417
+ .../* @__PURE__ */ new Set([...$, ...x])
3438
3418
  ];
3439
3419
  _.attrs.class = M.join(" ");
3440
3420
  } else
3441
- _.attrs[N] = A.attrs[N];
3421
+ _.attrs[N] = T.attrs[N];
3442
3422
  }));
3443
3423
  } else
3444
3424
  _.props || (_.props = {}), Object.assign(_.props, v);
3445
3425
  }
3446
3426
  function w(l, v) {
3447
- const _ = j ? C : T;
3448
- if (Me(l)) {
3449
- const A = l.key ?? v, N = l.children;
3427
+ const _ = j ? E : L;
3428
+ if (Ne(l)) {
3429
+ const T = l.key ?? v, N = l.children;
3450
3430
  _.push({
3451
3431
  ...l,
3452
- key: A,
3432
+ key: T,
3453
3433
  children: N
3454
3434
  });
3455
3435
  return;
3456
3436
  }
3457
3437
  if (fe(l)) {
3458
- _.push(cn(l, void 0));
3438
+ _.push(an(l, void 0));
3459
3439
  return;
3460
3440
  }
3461
3441
  if (Array.isArray(l)) {
3462
3442
  if (l.length === 0) return;
3463
- for (let A = 0; A < l.length; A++) {
3464
- const N = l[A];
3465
- Me(N) || fe(N) || Array.isArray(N) ? w(N, `${v}-${A}`) : N !== null && typeof N == "object" ? Qe(N) ? _.push(
3443
+ for (let T = 0; T < l.length; T++) {
3444
+ const N = l[T];
3445
+ Ne(N) || fe(N) || Array.isArray(N) ? w(N, `${v}-${T}`) : N !== null && typeof N == "object" ? Xe(N) ? _.push(
3466
3446
  ie(
3467
3447
  "#raw",
3468
3448
  {},
3469
3449
  N.__rawHTML,
3470
- `${v}-${A}`
3450
+ `${v}-${T}`
3471
3451
  )
3472
- ) : h(N) : _.push(i(String(N), `${v}-${A}`));
3452
+ ) : y(N) : _.push(i(String(N), `${v}-${T}`));
3473
3453
  }
3474
3454
  return;
3475
3455
  }
3476
3456
  if (l !== null && typeof l == "object") {
3477
- if (Qe(l)) {
3478
- const A = l.__rawHTML ?? "";
3479
- _.push(ie("#raw", {}, A, v));
3457
+ if (Xe(l)) {
3458
+ const T = l.__rawHTML ?? "";
3459
+ _.push(ie("#raw", {}, T, v));
3480
3460
  return;
3481
3461
  }
3482
- h(l);
3462
+ y(l);
3483
3463
  return;
3484
3464
  }
3485
3465
  _.push(i(String(l), v));
3486
3466
  }
3487
- const E = /* @__PURE__ */ new Set([
3467
+ const S = /* @__PURE__ */ new Set([
3488
3468
  "area",
3489
3469
  "base",
3490
3470
  "br",
@@ -3500,22 +3480,22 @@ function fn(e, s, t) {
3500
3480
  "track",
3501
3481
  "wbr"
3502
3482
  ]);
3503
- for (; d = y.exec(b); )
3483
+ for (; d = g.exec(b); )
3504
3484
  if (!(d[0].startsWith("<!--") && d[0].endsWith("-->"))) {
3505
3485
  if (d[1]) {
3506
- const l = d[1], v = d[0][1] === "/", _ = d[0][d[0].length - 2] === "/" || E.has(l), {
3507
- props: A,
3486
+ const l = d[1], v = d[0][1] === "/", _ = d[0][d[0].length - 2] === "/" || S.has(l), {
3487
+ props: T,
3508
3488
  attrs: N,
3509
3489
  directives: $,
3510
- bound: H
3511
- } = ln(
3490
+ bound: x
3491
+ } = fn(
3512
3492
  d[2] || "",
3513
3493
  s,
3514
3494
  n ?? {}
3515
3495
  ), M = { props: {}, attrs: {} };
3516
- for (const D in A) M.props[D] = A[D];
3496
+ for (const D in T) M.props[D] = T[D];
3517
3497
  for (const D in N) M.attrs[D] = N[D];
3518
- M.attrs && Object.prototype.hasOwnProperty.call(M.attrs, "key") && !(M.props && Object.prototype.hasOwnProperty.call(M.props, "key")) && x(() => {
3498
+ M.attrs && Object.prototype.hasOwnProperty.call(M.attrs, "key") && !(M.props && Object.prototype.hasOwnProperty.call(M.props, "key")) && H(() => {
3519
3499
  M.props.key = M.attrs.key;
3520
3500
  });
3521
3501
  try {
@@ -3546,7 +3526,7 @@ function fn(e, s, t) {
3546
3526
  }, R = l.toLowerCase(), ee = D[R] ?? [];
3547
3527
  if (M.attrs) {
3548
3528
  for (const I of ee)
3549
- if (H && H.includes(I) && I in M.attrs && !(M.props && I in M.props)) {
3529
+ if (x && x.includes(I) && I in M.attrs && !(M.props && I in M.props)) {
3550
3530
  let P = M.attrs[I];
3551
3531
  if (P && O(P))
3552
3532
  P = P.value, M.props[I] = P, delete M.attrs[I];
@@ -3568,12 +3548,12 @@ function fn(e, s, t) {
3568
3548
  }
3569
3549
  }
3570
3550
  if (l.includes("-") || !!n?.__customElements?.has?.(l)) {
3571
- if (M.isCustomElement = !0, H && M.attrs) {
3551
+ if (M.isCustomElement = !0, x && M.attrs) {
3572
3552
  const I = /* @__PURE__ */ new Set(["id", "name", "data-key", "key"]);
3573
- for (const P of H)
3553
+ for (const P of x)
3574
3554
  if (P in M.attrs && !(M.props && P in M.props)) {
3575
- const B = P.includes("-") ? Ge(P) : P, U = M.attrs[P];
3576
- if (M.props[B] = U, I.has(P) || ft(P))
3555
+ const B = P.includes("-") ? Ve(P) : P, U = M.attrs[P];
3556
+ if (M.props[B] = U, I.has(P) || at(P))
3577
3557
  try {
3578
3558
  const oe = F(M.attrs[P]);
3579
3559
  oe === null ? delete M.attrs[P] : M.attrs[P] = oe;
@@ -3602,11 +3582,11 @@ function fn(e, s, t) {
3602
3582
  if (!!(l.includes("-") || I || ee))
3603
3583
  for (const U of Object.keys($)) {
3604
3584
  if (U !== "model" && !U.startsWith("model:")) continue;
3605
- const pe = $[U], oe = pe.arg ?? (U.includes(":") ? U.split(":", 2)[1] : void 0), V = pe.value, Be = oe ?? "modelValue", Je = z, gt = Re, ve = n?._state || n;
3585
+ const pe = $[U], oe = pe.arg ?? (U.includes(":") ? U.split(":", 2)[1] : void 0), V = pe.value, Re = oe ?? "modelValue", Ge = z, yt = Ie, be = n?._state || n;
3606
3586
  let se;
3607
- if (typeof V == "string" && ve)
3608
- se = Je(
3609
- ve,
3587
+ if (typeof V == "string" && be)
3588
+ se = Ge(
3589
+ be,
3610
3590
  V
3611
3591
  );
3612
3592
  else if (se = V, O(V))
@@ -3614,20 +3594,20 @@ function fn(e, s, t) {
3614
3594
  V.value;
3615
3595
  } catch {
3616
3596
  }
3617
- M.props[Be] = se;
3597
+ M.props[Re] = se;
3618
3598
  try {
3619
- const ce = X(Be);
3599
+ const ce = X(Re);
3620
3600
  M.attrs || (M.attrs = {}), se != null && (typeof se == "string" || typeof se == "number" || typeof se == "boolean") && (M.attrs[ce] = se);
3621
3601
  } catch {
3622
3602
  }
3623
3603
  M.isCustomElement = !0;
3624
- const Ze = `update:${X(Be)}`.replace(
3604
+ const Je = `update:${X(Re)}`.replace(
3625
3605
  /-([a-z])/g,
3626
3606
  (ce, ne) => ne.toUpperCase()
3627
- ), bt = "on" + Ze.charAt(0).toUpperCase() + Ze.slice(1);
3628
- M.props[bt] = function(ce) {
3607
+ ), mt = "on" + Je.charAt(0).toUpperCase() + Je.slice(1);
3608
+ M.props[mt] = function(ce) {
3629
3609
  const ne = ce.detail !== void 0 ? ce.detail : ce.target ? ce.target.value : void 0;
3630
- if (ve)
3610
+ if (be)
3631
3611
  if (V && O(V)) {
3632
3612
  const ae = V.value;
3633
3613
  if (Array.isArray(ne) && Array.isArray(ae) ? JSON.stringify([...ne].sort()) !== JSON.stringify([...ae].sort()) : ne !== ae) {
@@ -3635,28 +3615,28 @@ function fn(e, s, t) {
3635
3615
  try {
3636
3616
  const le = n;
3637
3617
  if (le) {
3638
- const Ee = le.requestRender, Se = le._requestRender;
3639
- typeof Ee == "function" ? Ee() : typeof Se == "function" && Se();
3618
+ const ve = le.requestRender, Ee = le._requestRender;
3619
+ typeof ve == "function" ? ve() : typeof Ee == "function" && Ee();
3640
3620
  }
3641
3621
  } catch {
3642
3622
  }
3643
3623
  }
3644
3624
  } else {
3645
- const ae = Je(
3646
- ve || {},
3625
+ const ae = Ge(
3626
+ be || {},
3647
3627
  typeof V == "string" ? V : String(V)
3648
3628
  );
3649
3629
  if (Array.isArray(ne) && Array.isArray(ae) ? JSON.stringify([...ne].sort()) !== JSON.stringify([...ae].sort()) : ne !== ae) {
3650
- gt(
3651
- ve || {},
3630
+ yt(
3631
+ be || {},
3652
3632
  typeof V == "string" ? V : String(V),
3653
3633
  ne
3654
3634
  );
3655
3635
  try {
3656
3636
  const le = n;
3657
3637
  if (le) {
3658
- const Ee = le.requestRender, Se = le._requestRender;
3659
- typeof Ee == "function" ? Ee() : typeof Se == "function" && Se();
3638
+ const ve = le.requestRender, Ee = le._requestRender;
3639
+ typeof ve == "function" ? ve() : typeof Ee == "function" && Ee();
3660
3640
  }
3661
3641
  } catch {
3662
3642
  }
@@ -3667,78 +3647,78 @@ function fn(e, s, t) {
3667
3647
  } catch {
3668
3648
  }
3669
3649
  if (Object.keys($).length > 0 && (M.directives = { ...$ }), v) {
3670
- const D = C.some(
3650
+ const D = E.some(
3671
3651
  (I) => typeof I == "object" && I.tag !== "#text"
3672
3652
  );
3673
- let R = C;
3674
- if (D && C.length > 0) {
3653
+ let R = E;
3654
+ if (D && E.length > 0) {
3675
3655
  let I = 0;
3676
- for (; I < C.length; ) {
3677
- const B = C[I];
3656
+ for (; I < E.length; ) {
3657
+ const B = E[I];
3678
3658
  if (!fe(B) || B.tag !== "#text" || typeof B.children != "string" || B.children.trim() !== "")
3679
3659
  break;
3680
3660
  I++;
3681
3661
  }
3682
- let P = C.length - 1;
3662
+ let P = E.length - 1;
3683
3663
  for (; P >= 0; ) {
3684
- const B = C[P];
3664
+ const B = E[P];
3685
3665
  if (!fe(B) || B.tag !== "#text" || typeof B.children != "string" || B.children.trim() !== "")
3686
3666
  break;
3687
3667
  P--;
3688
3668
  }
3689
- I === 0 && P === C.length - 1 ? R = C : I > P ? R = [] : R = C.slice(I, P + 1);
3669
+ I === 0 && P === E.length - 1 ? R = E : I > P ? R = [] : R = E.slice(I, P + 1);
3690
3670
  }
3691
3671
  const ee = ie(
3692
3672
  j,
3693
- S,
3673
+ C,
3694
3674
  R.length === 1 && fe(R[0]) && R[0].tag === "#text" ? typeof R[0].children == "string" ? R[0].children : "" : R.length ? R : void 0,
3695
- L
3696
- ), q = m.pop();
3697
- q ? (j = q.tag, S = q.props, L = q.key, C = q.children, C.push(ee)) : (T.push(ee), j = null, S = {}, L = void 0, C = []);
3698
- } else _ ? j ? C.push(ie(l, M, void 0, void 0)) : T.push(ie(l, M, void 0, void 0)) : (j && m.push({
3675
+ A
3676
+ ), q = h.pop();
3677
+ q ? (j = q.tag, C = q.props, A = q.key, E = q.children, E.push(ee)) : (L.push(ee), j = null, C = {}, A = void 0, E = []);
3678
+ } else _ ? j ? E.push(ie(l, M, void 0, void 0)) : L.push(ie(l, M, void 0, void 0)) : (j && h.push({
3699
3679
  tag: j,
3700
- props: S,
3701
- children: C,
3702
- key: L
3703
- }), j = l, S = M, C = []);
3680
+ props: C,
3681
+ children: E,
3682
+ key: A
3683
+ }), j = l, C = M, E = []);
3704
3684
  } else if (typeof d[3] < "u") {
3705
3685
  const l = Number(d[3]), v = s[l], _ = `interp-${l}`;
3706
3686
  w(v, _);
3707
3687
  } else if (d[4]) {
3708
- const l = d[4], v = j ? C : T, _ = l.split(/({{\d+}})/);
3709
- for (const A of _) {
3710
- if (!A) continue;
3711
- const N = A.match(/^{{(\d+)}}$/);
3688
+ const l = d[4], v = j ? E : L, _ = l.split(/({{\d+}})/);
3689
+ for (const T of _) {
3690
+ if (!T) continue;
3691
+ const N = T.match(/^{{(\d+)}}$/);
3712
3692
  if (N) {
3713
- const $ = Number(N[1]), H = s[$], M = `interp-${$}`;
3714
- w(H, M);
3693
+ const $ = Number(N[1]), x = s[$], M = `interp-${$}`;
3694
+ w(x, M);
3715
3695
  } else {
3716
- const $ = `text-${p++}`, H = k();
3717
- v.push(f(A, $, H));
3696
+ const $ = `text-${p++}`, x = k();
3697
+ v.push(f(T, $, x));
3718
3698
  }
3719
3699
  }
3720
3700
  }
3721
3701
  }
3722
- const g = T.filter((l) => fe(l) && l.tag === "#text" ? typeof l.children == "string" && l.children.trim() !== "" : !0).map(
3723
- (l) => Ve(l)
3702
+ const m = L.filter((l) => fe(l) && l.tag === "#text" ? typeof l.children == "string" && l.children.trim() !== "" : !0).map(
3703
+ (l) => qe(l)
3724
3704
  );
3725
- if (g.length === 1) {
3726
- const l = g[0];
3727
- return c && o && De.set(o, l), l;
3728
- } else if (g.length > 1) {
3729
- const l = g;
3730
- return c && o && De.set(o, l), l;
3705
+ if (m.length === 1) {
3706
+ const l = m[0];
3707
+ return c && o && We.set(o, l), l;
3708
+ } else if (m.length > 1) {
3709
+ const l = m;
3710
+ return c && o && We.set(o, l), l;
3731
3711
  }
3732
3712
  return ie("div", {}, "", "fallback-root");
3733
3713
  }
3734
- function vn(e, ...s) {
3735
- if (kt()) return [];
3714
+ function En(e, ...s) {
3715
+ if (Ct()) return [];
3736
3716
  const t = s[s.length - 1], r = typeof t == "object" && t && !Array.isArray(t) ? t : void 0;
3737
- return fn(e, s, r);
3717
+ return un(e, s, r);
3738
3718
  }
3739
3719
  export {
3740
- bn as c,
3741
- vn as h,
3720
+ vn as c,
3721
+ En as h,
3742
3722
  Xt as v
3743
3723
  };
3744
- //# sourceMappingURL=template-compiler-DtpNsqE-.js.map
3724
+ //# sourceMappingURL=template-compiler-ZhSg1yPh.js.map