@jasonshimmy/custom-elements-runtime 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- const jt = typeof process < "u" && process.env?.NODE_ENV !== "production";
2
- function N(e, ...t) {
3
- jt && console.error(e, ...t);
1
+ const Lt = typeof process < "u" && process.env?.NODE_ENV !== "production";
2
+ function F(e, ...t) {
3
+ Lt && console.error(e, ...t);
4
4
  }
5
5
  function oe(e, ...t) {
6
- jt && console.warn(e, ...t);
6
+ Lt && console.warn(e, ...t);
7
7
  }
8
8
  class Wt {
9
9
  pendingUpdates = /* @__PURE__ */ new Map();
@@ -26,7 +26,7 @@ class Wt {
26
26
  try {
27
27
  r();
28
28
  } catch (n) {
29
- N("Error in batched update:", n);
29
+ F("Error in batched update:", n);
30
30
  }
31
31
  }
32
32
  /**
@@ -36,12 +36,12 @@ class Wt {
36
36
  return this.pendingUpdates.size;
37
37
  }
38
38
  }
39
- const Ft = new Wt();
40
- function me(e, t) {
41
- Ft.schedule(e, t);
39
+ const zt = new Wt();
40
+ function ye(e, t) {
41
+ zt.schedule(e, t);
42
42
  }
43
- const ht = /* @__PURE__ */ new WeakSet();
44
- class zt {
43
+ const gt = /* @__PURE__ */ new WeakSet();
44
+ class Ut {
45
45
  static cache = /* @__PURE__ */ new WeakMap();
46
46
  static arrayHandlerCache = /* @__PURE__ */ new WeakMap();
47
47
  static objectHandlerCache = /* @__PURE__ */ new WeakMap();
@@ -54,7 +54,7 @@ class zt {
54
54
  return o;
55
55
  const i = n ? this.getOrCreateArrayHandler(r) : this.getOrCreateObjectHandler(r), s = new Proxy(t, i);
56
56
  try {
57
- Lt.markAsProxy(s);
57
+ Pt.markAsProxy(s);
58
58
  } catch {
59
59
  }
60
60
  return this.cache.set(t, s), s;
@@ -78,8 +78,8 @@ class zt {
78
78
  "fill",
79
79
  "copyWithin"
80
80
  ].includes(o) ? function(...a) {
81
- const d = s.apply(n, a);
82
- return t.triggerUpdate(), d;
81
+ const f = s.apply(n, a);
82
+ return t.triggerUpdate(), f;
83
83
  } : s;
84
84
  },
85
85
  set: (n, o, i) => (n[o] = t.makeReactiveValue(i), t.triggerUpdate(), !0),
@@ -125,7 +125,7 @@ class zt {
125
125
  };
126
126
  }
127
127
  }
128
- class Lt {
128
+ class Pt {
129
129
  // Cache a stable reactiveContext object keyed by onUpdate -> makeReactive
130
130
  // This allows handler caches in ReactiveProxyCache to reuse handlers
131
131
  // for identical reactive contexts instead of creating a new context object
@@ -136,7 +136,7 @@ class Lt {
136
136
  */
137
137
  static createReactiveProxy(t, r, n) {
138
138
  try {
139
- if (ht.has(t)) return t;
139
+ if (gt.has(t)) return t;
140
140
  } catch {
141
141
  }
142
142
  const o = Array.isArray(t);
@@ -146,7 +146,7 @@ class Lt {
146
146
  return s || (s = {
147
147
  triggerUpdate: r,
148
148
  makeReactiveValue: n
149
- }, i.set(n, s)), zt.getOrCreateProxy(t, s, o);
149
+ }, i.set(n, s)), Ut.getOrCreateProxy(t, s, o);
150
150
  }
151
151
  /**
152
152
  * Mark an object as a proxy (for optimization)
@@ -154,12 +154,12 @@ class Lt {
154
154
  static markAsProxy(t) {
155
155
  if (t)
156
156
  try {
157
- ht.add(t);
157
+ gt.add(t);
158
158
  } catch {
159
159
  }
160
160
  }
161
161
  }
162
- class Ut {
162
+ class Kt {
163
163
  currentComponent = null;
164
164
  // Consolidated component data: stores dependencies, render function, state index, and last warning time
165
165
  componentData = /* @__PURE__ */ new Map();
@@ -257,7 +257,7 @@ class Ut {
257
257
  const r = t.getDependents();
258
258
  for (const n of r) {
259
259
  const o = this.componentData.get(n);
260
- o && me(o.renderFn, n);
260
+ o && ye(o.renderFn, n);
261
261
  }
262
262
  }
263
263
  /**
@@ -275,7 +275,7 @@ class Ut {
275
275
  o.startsWith(n) && this.stateStorage.delete(o);
276
276
  }
277
277
  }
278
- const J = new Ut();
278
+ const X = new Kt();
279
279
  class Ue {
280
280
  _value;
281
281
  dependents = /* @__PURE__ */ new Set();
@@ -288,15 +288,15 @@ class Ue {
288
288
  }
289
289
  }
290
290
  get value() {
291
- return J.trackDependency(this), this._value;
291
+ return X.trackDependency(this), this._value;
292
292
  }
293
293
  set value(t) {
294
- J.isRenderingComponent() && J.shouldEmitRenderWarning() && oe(
294
+ X.isRenderingComponent() && X.shouldEmitRenderWarning() && oe(
295
295
  `🚨 State modification detected during render! This can cause infinite loops.
296
296
  • Move state updates to event handlers
297
297
  • Use useEffect/watch for side effects
298
298
  • Ensure computed properties don't modify state`
299
- ), this._value = this.makeReactive(t), J.triggerUpdate(this);
299
+ ), this._value = this.makeReactive(t), X.triggerUpdate(this);
300
300
  }
301
301
  addDependent(t) {
302
302
  this.dependents.add(t);
@@ -308,15 +308,15 @@ class Ue {
308
308
  return this.dependents;
309
309
  }
310
310
  makeReactive(t) {
311
- return t === null || typeof t != "object" || t instanceof Node || t instanceof Element || t instanceof HTMLElement ? t : Lt.createReactiveProxy(
311
+ return t === null || typeof t != "object" || t instanceof Node || t instanceof Element || t instanceof HTMLElement ? t : Pt.createReactiveProxy(
312
312
  t,
313
- () => J.triggerUpdate(this),
313
+ () => X.triggerUpdate(this),
314
314
  (r) => this.makeReactive(r)
315
315
  );
316
316
  }
317
317
  }
318
318
  function Wn(e) {
319
- return J.getOrCreateState(e === void 0 ? null : e);
319
+ return X.getOrCreateState(e === void 0 ? null : e);
320
320
  }
321
321
  function R(e) {
322
322
  if (!e || typeof e != "object") return !1;
@@ -327,48 +327,48 @@ function R(e) {
327
327
  return !1;
328
328
  }
329
329
  }
330
- function Fn(e) {
330
+ function zn(e) {
331
331
  const t = new Ue(e());
332
332
  return {
333
333
  get value() {
334
- return J.trackDependency(t), e();
334
+ return X.trackDependency(t), e();
335
335
  }
336
336
  };
337
337
  }
338
- function zn(e, t, r = {}) {
338
+ function Un(e, t, r = {}) {
339
339
  let n = e();
340
340
  r.immediate && t(n, n);
341
341
  const o = `watch-${Math.random().toString(36).substr(2, 9)}`, i = () => {
342
- J.setCurrentComponent(o, i);
342
+ X.setCurrentComponent(o, i);
343
343
  const s = e();
344
- J.clearCurrentComponent(), s !== n && (t(s, n), n = s);
344
+ X.clearCurrentComponent(), s !== n && (t(s, n), n = s);
345
345
  };
346
- return J.setCurrentComponent(o, i), e(), J.clearCurrentComponent(), () => {
347
- J.cleanup(o);
346
+ return X.setCurrentComponent(o, i), e(), X.clearCurrentComponent(), () => {
347
+ X.cleanup(o);
348
348
  };
349
349
  }
350
- const L = (e) => {
350
+ const P = (e) => {
351
351
  try {
352
352
  e();
353
353
  } catch {
354
354
  }
355
- }, Ne = /* @__PURE__ */ new Map(), Ie = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), dt = 500;
356
- function ee(e) {
357
- if (Ne.has(e))
358
- return Ne.get(e);
355
+ }, De = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), Ie = /* @__PURE__ */ new Map(), pt = 500;
356
+ function te(e) {
357
+ if (De.has(e))
358
+ return De.get(e);
359
359
  const t = e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
360
- return Ne.size < dt && Ne.set(e, t), t;
360
+ return De.size < pt && De.set(e, t), t;
361
361
  }
362
- function pt(e) {
363
- if (Ie.has(e))
364
- return Ie.get(e);
362
+ function ht(e) {
363
+ if (He.has(e))
364
+ return He.get(e);
365
365
  const t = e.replace(/-([a-z])/g, (r, n) => n.toUpperCase());
366
- return Ie.size < dt && Ie.set(e, t), t;
366
+ return He.size < pt && He.set(e, t), t;
367
367
  }
368
- function Ce(e) {
368
+ function Ee(e) {
369
369
  if (typeof e == "string") {
370
- if (He.has(e))
371
- return He.get(e);
370
+ if (Ie.has(e))
371
+ return Ie.get(e);
372
372
  const t = e.replace(
373
373
  /[&<>"']/g,
374
374
  (r) => ({
@@ -379,7 +379,7 @@ function Ce(e) {
379
379
  "'": "&#39;"
380
380
  })[r]
381
381
  );
382
- return t !== e && He.size < dt && He.set(e, t), t;
382
+ return t !== e && Ie.size < pt && Ie.set(e, t), t;
383
383
  }
384
384
  return e;
385
385
  }
@@ -390,13 +390,13 @@ function V(e, t) {
390
390
  }
391
391
  return t;
392
392
  }
393
- function Ve(e, t, r) {
393
+ function qe(e, t, r) {
394
394
  const n = String(t).split("."), o = n.pop();
395
395
  if (!o) return;
396
396
  const i = n.reduce((s, c) => (s[c] == null && (s[c] = {}), s[c]), e);
397
397
  R(i[o]) ? i[o].value = r : i[o] = r;
398
398
  }
399
- function Kt(e, t, r) {
399
+ function qt(e, t, r) {
400
400
  if (r)
401
401
  for (const [n, o] of Object.entries(r)) {
402
402
  let i, s = {};
@@ -409,7 +409,7 @@ function Kt(e, t, r) {
409
409
  const c = V(e, n);
410
410
  i(c, void 0, e);
411
411
  } catch (c) {
412
- N(`Error in immediate watcher for "${n}":`, c);
412
+ F(`Error in immediate watcher for "${n}":`, c);
413
413
  }
414
414
  }
415
415
  }
@@ -418,15 +418,15 @@ function Vt(e, t, r, n) {
418
418
  if (s === c) return !0;
419
419
  if (typeof s != typeof c || typeof s != "object" || s === null || c === null) return !1;
420
420
  if (Array.isArray(s) && Array.isArray(c))
421
- return s.length !== c.length ? !1 : s.every((b, y) => o(b, c[y]));
422
- const a = Object.keys(s), d = Object.keys(c);
423
- return a.length !== d.length ? !1 : a.every((b) => o(s[b], c[b]));
421
+ return s.length !== c.length ? !1 : s.every((b, m) => o(b, c[m]));
422
+ const a = Object.keys(s), f = Object.keys(c);
423
+ return a.length !== f.length ? !1 : a.every((b) => o(s[b], c[b]));
424
424
  }, i = t.get(r);
425
425
  if (i && !o(n, i.oldValue))
426
426
  try {
427
427
  i.callback(n, i.oldValue, e), i.oldValue = n;
428
428
  } catch (s) {
429
- N(`Error in watcher for "${r}":`, s);
429
+ F(`Error in watcher for "${r}":`, s);
430
430
  }
431
431
  for (const [s, c] of t.entries())
432
432
  if (c.options.deep && r.startsWith(s + "."))
@@ -434,31 +434,31 @@ function Vt(e, t, r, n) {
434
434
  const a = V(e, s);
435
435
  o(a, c.oldValue) || (c.callback(a, c.oldValue, e), c.oldValue = a);
436
436
  } catch (a) {
437
- N(`Error in deep watcher for "${s}":`, a);
437
+ F(`Error in deep watcher for "${s}":`, a);
438
438
  }
439
439
  }
440
- function gt(e, t) {
440
+ function mt(e, t) {
441
441
  return t === Boolean ? e === "" || e === "true" : t === Number ? Number(e) : e;
442
442
  }
443
- function qt(e, t, r) {
443
+ function Zt(e, t, r) {
444
444
  if (t)
445
445
  for (const n in t) {
446
- const o = t[n], i = ee(n), s = e.getAttribute(i);
446
+ const o = t[n], i = te(n), s = e.getAttribute(i);
447
447
  if (o.type === Function && typeof e[n] == "function")
448
448
  r[n] = e[n];
449
449
  else if (s !== null)
450
- r[n] = gt(s, o.type);
450
+ r[n] = mt(s, o.type);
451
451
  else if (typeof e[n] < "u")
452
452
  try {
453
453
  const c = e[n];
454
- o.type === Boolean && typeof c == "boolean" || o.type === Number && typeof c == "number" || o.type === Function && typeof c == "function" ? r[n] = c : r[n] = gt(String(c), o.type);
454
+ o.type === Boolean && typeof c == "boolean" || o.type === Number && typeof c == "number" || o.type === Function && typeof c == "function" ? r[n] = c : r[n] = mt(String(c), o.type);
455
455
  } catch {
456
456
  r[n] = e[n];
457
457
  }
458
458
  else "default" in o && o.default !== void 0 && (r[n] = o.default);
459
459
  }
460
460
  }
461
- function Zt(e, t, r) {
461
+ function Gt(e, t, r) {
462
462
  if (!t.props) {
463
463
  try {
464
464
  const n = r && r._hookCallbacks && r._hookCallbacks.props || {}, o = Array.from(/* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(n)]));
@@ -472,12 +472,12 @@ function Zt(e, t, r) {
472
472
  configurable: !0,
473
473
  get() {
474
474
  try {
475
- const a = ee(i), d = e.getAttribute(a);
476
- if (d !== null)
477
- return d;
475
+ const a = te(i), f = e.getAttribute(a);
476
+ if (f !== null)
477
+ return f;
478
478
  const b = e[i];
479
- let y;
480
- return R(b) || b && typeof b == "object" && "value" in b && !(b instanceof Node) ? y = b.value : y = b, y;
479
+ let m;
480
+ return R(b) || b && typeof b == "object" && "value" in b && !(b instanceof Node) ? m = b.value : m = b, m;
481
481
  } catch {
482
482
  return e[i];
483
483
  }
@@ -490,15 +490,15 @@ function Zt(e, t, r) {
490
490
  }
491
491
  return;
492
492
  }
493
- qt(e, t.props, r);
493
+ Zt(e, t.props, r);
494
494
  }
495
- function Gt(e, t, r, n) {
495
+ function Jt(e, t, r, n) {
496
496
  e.onConnected && !r && (e.onConnected(t), n(!0));
497
497
  }
498
- function Jt(e, t, r, n, o, i, s, c) {
498
+ function Xt(e, t, r, n, o, i, s, c) {
499
499
  e.onDisconnected && e.onDisconnected(t), r.forEach((a) => a()), n(), o(), i(!1), s(null), c(!1);
500
500
  }
501
- function Xt(e, t, r, n, o) {
501
+ function Yt(e, t, r, n, o) {
502
502
  e.onAttributeChanged && e.onAttributeChanged(t, r, n, o);
503
503
  }
504
504
  class Qt {
@@ -601,35 +601,35 @@ class Qt {
601
601
  try {
602
602
  let n = t;
603
603
  const o = [];
604
- n = n.replace(/("[^"\\]*(?:\\.[^"\\]*)*"|'[^'\\]*(?:\\.[^'\\]*)*')/g, (y) => `<<#${o.push(y) - 1}#>>`);
604
+ n = n.replace(/("[^"\\]*(?:\\.[^"\\]*)*"|'[^'\\]*(?:\\.[^'\\]*)*')/g, (m) => `<<#${o.push(m) - 1}#>>`);
605
605
  const i = n.match(/ctx\.[\w.]+/g) || [];
606
- for (const y of i) {
607
- const p = y.slice(4), x = V(r, p);
608
- if (x === void 0) return;
609
- const u = o.push(JSON.stringify(x)) - 1;
610
- n = n.replace(new RegExp(y.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"), `<<#${u}#>>`);
606
+ for (const m of i) {
607
+ const d = m.slice(4), k = V(r, d);
608
+ if (k === void 0) return;
609
+ const u = o.push(JSON.stringify(k)) - 1;
610
+ n = n.replace(new RegExp(m.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"), `<<#${u}#>>`);
611
611
  }
612
612
  const s = /\b[a-zA-Z_][a-zA-Z0-9_]*(?:\.[a-zA-Z_][a-zA-Z0-9_]*)+\b/g, c = n.match(s) || [];
613
- for (const y of c) {
614
- if (y.startsWith("ctx.")) continue;
615
- const p = V(r, y);
616
- if (p === void 0) return;
617
- const x = o.push(JSON.stringify(p)) - 1;
618
- n = n.replace(new RegExp(y.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"), `<<#${x}#>>`);
613
+ for (const m of c) {
614
+ if (m.startsWith("ctx.")) continue;
615
+ const d = V(r, m);
616
+ if (d === void 0) return;
617
+ const k = o.push(JSON.stringify(d)) - 1;
618
+ n = n.replace(new RegExp(m.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"), `<<#${k}#>>`);
619
619
  }
620
620
  const a = /\b([a-zA-Z_][a-zA-Z0-9_]*)\b/g;
621
- let d;
621
+ let f;
622
622
  const b = /* @__PURE__ */ new Set();
623
- for (; (d = a.exec(n)) !== null; ) {
624
- const y = d[1];
625
- if (["true", "false", "null", "undefined"].includes(y) || /^[0-9]+$/.test(y) || y === "ctx" || b.has(y)) continue;
626
- b.add(y);
627
- const p = V(r, y);
628
- if (p === void 0) return;
629
- const x = JSON.stringify(p), u = o.push(x) - 1;
630
- y.includes(".") ? n = n.replace(new RegExp(y.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"), `<<#${u}#>>`) : n = n.replace(new RegExp("\\b" + y.replace(/[.*+?^${}()|[\]\\]/g, "\\$&") + "\\b", "g"), `<<#${u}#>>`);
623
+ for (; (f = a.exec(n)) !== null; ) {
624
+ const m = f[1];
625
+ if (["true", "false", "null", "undefined"].includes(m) || /^[0-9]+$/.test(m) || m === "ctx" || b.has(m)) continue;
626
+ b.add(m);
627
+ const d = V(r, m);
628
+ if (d === void 0) return;
629
+ const k = JSON.stringify(d), u = o.push(k) - 1;
630
+ m.includes(".") ? n = n.replace(new RegExp(m.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"), `<<#${u}#>>`) : n = n.replace(new RegExp("\\b" + m.replace(/[.*+?^${}()|[\]\\]/g, "\\$&") + "\\b", "g"), `<<#${u}#>>`);
631
631
  }
632
- n = n.replace(/<<#(\d+)#>>/g, (y, p) => o[Number(p)]);
632
+ n = n.replace(/<<#(\d+)#>>/g, (m, d) => o[Number(d)]);
633
633
  try {
634
634
  return this.evaluateBasicExpression(n);
635
635
  } catch {
@@ -652,12 +652,12 @@ class Qt {
652
652
  return r[n];
653
653
  }
654
654
  function i(l) {
655
- const m = r[n++];
656
- if (l && !m)
655
+ const y = r[n++];
656
+ if (l && !y)
657
657
  throw new Error(`Unexpected token EOF, expected ${l}`);
658
- if (l && m && m.type !== l && m.value !== l)
659
- throw new Error(`Unexpected token ${m.type}/${m.value}, expected ${l}`);
660
- return m;
658
+ if (l && y && y.type !== l && y.value !== l)
659
+ throw new Error(`Unexpected token ${y.type}/${y.value}, expected ${l}`);
660
+ return y;
661
661
  }
662
662
  function s() {
663
663
  return c();
@@ -666,103 +666,103 @@ class Qt {
666
666
  let l = a();
667
667
  if (o() && o().value === "?") {
668
668
  i("?");
669
- const m = s();
669
+ const y = s();
670
670
  i(":");
671
- const k = s();
672
- return l ? m : k;
671
+ const w = s();
672
+ return l ? y : w;
673
673
  }
674
674
  return l;
675
675
  }
676
676
  function a() {
677
- let l = d();
677
+ let l = f();
678
678
  for (; o() && o().value === "||"; ) {
679
679
  i("OP");
680
- const m = d();
681
- l = l || m;
680
+ const y = f();
681
+ l = l || y;
682
682
  }
683
683
  return l;
684
684
  }
685
- function d() {
685
+ function f() {
686
686
  let l = b();
687
687
  for (; o() && o().value === "&&"; ) {
688
688
  i("OP");
689
- const m = b();
690
- l = l && m;
689
+ const y = b();
690
+ l = l && y;
691
691
  }
692
692
  return l;
693
693
  }
694
694
  function b() {
695
- let l = y();
695
+ let l = m();
696
696
  for (; o() && ["==", "!=", "===", "!=="].includes(o().value); ) {
697
- const m = i("OP").value, k = y();
698
- switch (m) {
697
+ const y = i("OP").value, w = m();
698
+ switch (y) {
699
699
  case "==":
700
- l = l == k;
700
+ l = l == w;
701
701
  break;
702
702
  case "!=":
703
- l = l != k;
703
+ l = l != w;
704
704
  break;
705
705
  case "===":
706
- l = l === k;
706
+ l = l === w;
707
707
  break;
708
708
  case "!==":
709
- l = l !== k;
709
+ l = l !== w;
710
710
  break;
711
711
  }
712
712
  }
713
713
  return l;
714
714
  }
715
- function y() {
716
- let l = p();
715
+ function m() {
716
+ let l = d();
717
717
  for (; o() && [">", "<", ">=", "<="].includes(o().value); ) {
718
- const m = i("OP").value, k = p();
719
- switch (m) {
718
+ const y = i("OP").value, w = d();
719
+ switch (y) {
720
720
  case ">":
721
- l = l > k;
721
+ l = l > w;
722
722
  break;
723
723
  case "<":
724
- l = l < k;
724
+ l = l < w;
725
725
  break;
726
726
  case ">=":
727
- l = l >= k;
727
+ l = l >= w;
728
728
  break;
729
729
  case "<=":
730
- l = l <= k;
730
+ l = l <= w;
731
731
  break;
732
732
  }
733
733
  }
734
734
  return l;
735
735
  }
736
- function p() {
737
- let l = x();
736
+ function d() {
737
+ let l = k();
738
738
  for (; o() && (o().value === "+" || o().value === "-"); ) {
739
- const m = i("OP").value, k = x();
740
- l = m === "+" ? l + k : l - k;
739
+ const y = i("OP").value, w = k();
740
+ l = y === "+" ? l + w : l - w;
741
741
  }
742
742
  return l;
743
743
  }
744
- function x() {
744
+ function k() {
745
745
  let l = u();
746
746
  for (; o() && (o().value === "*" || o().value === "/" || o().value === "%"); ) {
747
- const m = i("OP").value, k = u();
748
- switch (m) {
747
+ const y = i("OP").value, w = u();
748
+ switch (y) {
749
749
  case "*":
750
- l = l * k;
750
+ l = l * w;
751
751
  break;
752
752
  case "/":
753
- l = l / k;
753
+ l = l / w;
754
754
  break;
755
755
  case "%":
756
- l = l % k;
756
+ l = l % w;
757
757
  break;
758
758
  }
759
759
  }
760
760
  return l;
761
761
  }
762
762
  function u() {
763
- return o() && o().value === "!" ? (i("OP"), !u()) : o() && o().value === "-" ? (i("OP"), -u()) : f();
763
+ return o() && o().value === "!" ? (i("OP"), !u()) : o() && o().value === "-" ? (i("OP"), -u()) : p();
764
764
  }
765
- function f() {
765
+ function p() {
766
766
  const l = o();
767
767
  if (l) {
768
768
  if (l.type === "NUMBER")
@@ -773,15 +773,15 @@ class Qt {
773
773
  return i("IDENT"), l.value === "true" ? !0 : l.value === "false" ? !1 : l.value === "null" ? null : void 0;
774
774
  if (l.value === "[") {
775
775
  i("PUNC");
776
- const m = [];
776
+ const y = [];
777
777
  for (; o() && o().value !== "]"; )
778
- m.push(s()), o() && o().value === "," && i("PUNC");
779
- return i("PUNC"), m;
778
+ y.push(s()), o() && o().value === "," && i("PUNC");
779
+ return i("PUNC"), y;
780
780
  }
781
781
  if (l.value === "(") {
782
782
  i("PUNC");
783
- const m = s();
784
- return i("PUNC"), m;
783
+ const y = s();
784
+ return i("PUNC"), y;
785
785
  }
786
786
  throw new Error("Unexpected token in expression");
787
787
  }
@@ -881,10 +881,10 @@ class re {
881
881
  return r ? r.map((n) => ({ event: n.event, handler: n.handler, wrapper: n.wrapper, options: n.options })) : [];
882
882
  }
883
883
  }
884
- function Be(e, t) {
884
+ function Fe(e, t) {
885
885
  return Array.isArray(e) && Array.isArray(t) ? JSON.stringify([...e].sort()) !== JSON.stringify([...t].sort()) : e !== t;
886
886
  }
887
- function mt(e, t, r, n, o) {
887
+ function yt(e, t, r, n, o) {
888
888
  if (e)
889
889
  if (o && typeof t.value == "object" && t.value !== null) {
890
890
  const i = { ...t.value };
@@ -893,17 +893,17 @@ function mt(e, t, r, n, o) {
893
893
  t.value = r;
894
894
  else {
895
895
  const i = n._state || n;
896
- Ve(i, t, r);
896
+ qe(i, t, r);
897
897
  }
898
898
  }
899
- function We(e, t, r, n) {
899
+ function Be(e, t, r, n) {
900
900
  if (e._requestRender && e._requestRender(), e._triggerWatchers) {
901
901
  const o = t ? "reactiveState" : r;
902
902
  e._triggerWatchers(o, n);
903
903
  }
904
904
  }
905
- function Yt(e, t, r) {
906
- const n = `update:${ee(t)}`, o = `update:${t}`, i = new CustomEvent(n, {
905
+ function en(e, t, r) {
906
+ const n = `update:${te(t)}`, o = `update:${t}`, i = new CustomEvent(n, {
907
907
  detail: r,
908
908
  bubbles: !0,
909
909
  composed: !0
@@ -914,20 +914,20 @@ function Yt(e, t, r) {
914
914
  });
915
915
  e.dispatchEvent(i), e.dispatchEvent(s);
916
916
  }
917
- function yt(e, t, r, n) {
917
+ function bt(e, t, r, n) {
918
918
  const o = r;
919
- L(() => {
919
+ P(() => {
920
920
  e[t] = o;
921
- }), L(() => {
922
- const i = ee(t);
921
+ }), P(() => {
922
+ const i = te(t);
923
923
  typeof o == "boolean" ? o ? e.setAttribute(i, "true") : e.setAttribute(i, "false") : o != null && (typeof o == "string" || typeof o == "number") ? e.setAttribute(i, String(o)) : e.removeAttribute?.(i);
924
- }), L(() => {
924
+ }), P(() => {
925
925
  e._applyProps?.(e._cfg);
926
- }), L(() => {
926
+ }), P(() => {
927
927
  e._requestRender?.();
928
928
  });
929
929
  }
930
- function en(e, t, r, n) {
930
+ function tn(e, t, r, n) {
931
931
  if (e) {
932
932
  const i = t.value;
933
933
  return n && typeof i == "object" && i !== null ? i[n] : i;
@@ -935,21 +935,21 @@ function en(e, t, r, n) {
935
935
  const o = r._state || r;
936
936
  return V(o, t);
937
937
  }
938
- function we(e) {
938
+ function ve(e) {
939
939
  return e ? e.split(/\s+/).filter(Boolean) : [];
940
940
  }
941
- function ve(e, t) {
941
+ function xe(e, t) {
942
942
  if (t.length === 0) return;
943
943
  const r = t.filter((n) => n && !e.classList.contains(n));
944
944
  r.length > 0 && e.classList.add(...r);
945
945
  }
946
- function ye(e, t) {
946
+ function be(e, t) {
947
947
  if (t.length === 0) return;
948
948
  const r = t.filter(Boolean);
949
949
  r.length > 0 && e.classList.remove(...r);
950
950
  }
951
951
  let Ze = !1;
952
- async function tn(e, t, r = 10) {
952
+ async function nn(e, t, r = 10) {
953
953
  if (!Ze) {
954
954
  if (!e.isConnected) {
955
955
  oe("⚠️ Element not connected to DOM, skipping style wait");
@@ -966,16 +966,16 @@ async function tn(e, t, r = 10) {
966
966
  Ze = !0, oe("⚠️ Styles did not load in time for transition, continuing anyway");
967
967
  }
968
968
  }
969
- function nn(e) {
969
+ function rn(e) {
970
970
  const t = window.getComputedStyle(e), r = t.transitionDuration || "0s", n = t.transitionDelay || "0s", o = (i) => {
971
971
  const s = parseFloat(i);
972
972
  return i.includes("ms") ? s : s * 1e3;
973
973
  };
974
974
  return o(r) + o(n);
975
975
  }
976
- function Pt(e, t) {
976
+ function Mt(e, t) {
977
977
  return new Promise((r) => {
978
- const n = t ?? nn(e);
978
+ const n = t ?? rn(e);
979
979
  if (n <= 0) {
980
980
  r();
981
981
  return;
@@ -987,13 +987,13 @@ function Pt(e, t) {
987
987
  e.addEventListener("transitionend", s), e.addEventListener("transitioncancel", s), setTimeout(i, n + 50);
988
988
  });
989
989
  }
990
- async function Ee(e, t) {
990
+ async function _e(e, t) {
991
991
  const { classes: r, hooks: n, css: o, duration: i } = t;
992
992
  if (n?.onBeforeEnter)
993
993
  try {
994
994
  n.onBeforeEnter(e);
995
995
  } catch (u) {
996
- N("Transition onBeforeEnter error:", u);
996
+ F("Transition onBeforeEnter error:", u);
997
997
  }
998
998
  if (!o)
999
999
  return n?.onEnter ? new Promise((u) => {
@@ -1001,37 +1001,37 @@ async function Ee(e, t) {
1001
1001
  if (n?.onAfterEnter)
1002
1002
  try {
1003
1003
  n.onAfterEnter(e);
1004
- } catch (f) {
1005
- N("Transition onAfterEnter error:", f);
1004
+ } catch (p) {
1005
+ F("Transition onAfterEnter error:", p);
1006
1006
  }
1007
1007
  u();
1008
1008
  });
1009
1009
  }) : void 0;
1010
- const s = we(r?.enterFrom), c = we(r?.enterActive), a = we(r?.enterTo);
1011
- ve(e, s), e.offsetHeight, ve(e, c), e.offsetHeight;
1012
- let d;
1010
+ const s = ve(r?.enterFrom), c = ve(r?.enterActive), a = ve(r?.enterTo);
1011
+ xe(e, s), e.offsetHeight, xe(e, c), e.offsetHeight;
1012
+ let f;
1013
1013
  if (n?.onEnter) {
1014
- const u = new Promise((f) => {
1015
- d = f;
1014
+ const u = new Promise((p) => {
1015
+ f = p;
1016
1016
  });
1017
1017
  try {
1018
1018
  n.onEnter(e, () => {
1019
- d && d();
1019
+ f && f();
1020
1020
  });
1021
- } catch (f) {
1022
- N("Transition onEnter error:", f);
1021
+ } catch (p) {
1022
+ F("Transition onEnter error:", p);
1023
1023
  }
1024
- d && await u;
1024
+ f && await u;
1025
1025
  }
1026
1026
  await new Promise((u) => requestAnimationFrame(() => u(void 0))), e.offsetHeight;
1027
- const b = window.getComputedStyle(e), y = b.transform, p = b.opacity;
1028
- ye(e, s), y && y !== "none" && (e.style.transform = y), p && p !== "" && (e.style.opacity = p), e.offsetHeight, await new Promise((u) => requestAnimationFrame(() => u(void 0))), e.style.transform = "", e.style.opacity = "", ve(e, a), e.offsetHeight, await new Promise((u) => requestAnimationFrame(() => u(void 0)));
1029
- let x;
1030
- if (typeof i == "number" ? x = i : i && typeof i == "object" && "enter" in i && (x = i.enter), await Pt(e, x), ye(e, c), n?.onAfterEnter)
1027
+ const b = window.getComputedStyle(e), m = b.transform, d = b.opacity;
1028
+ be(e, s), m && m !== "none" && (e.style.transform = m), d && d !== "" && (e.style.opacity = d), e.offsetHeight, await new Promise((u) => requestAnimationFrame(() => u(void 0))), e.style.transform = "", e.style.opacity = "", xe(e, a), e.offsetHeight, await new Promise((u) => requestAnimationFrame(() => u(void 0)));
1029
+ let k;
1030
+ if (typeof i == "number" ? k = i : i && typeof i == "object" && "enter" in i && (k = i.enter), await Mt(e, k), be(e, c), n?.onAfterEnter)
1031
1031
  try {
1032
1032
  n.onAfterEnter(e);
1033
1033
  } catch (u) {
1034
- N("Transition onAfterEnter error:", u);
1034
+ F("Transition onAfterEnter error:", u);
1035
1035
  }
1036
1036
  }
1037
1037
  async function Ge(e, t) {
@@ -1039,208 +1039,208 @@ async function Ge(e, t) {
1039
1039
  if (n?.onBeforeLeave)
1040
1040
  try {
1041
1041
  n.onBeforeLeave(e);
1042
- } catch (y) {
1043
- N("Transition onBeforeLeave error:", y);
1042
+ } catch (m) {
1043
+ F("Transition onBeforeLeave error:", m);
1044
1044
  }
1045
1045
  if (!o)
1046
- return n?.onLeave ? new Promise((y) => {
1046
+ return n?.onLeave ? new Promise((m) => {
1047
1047
  n.onLeave(e, () => {
1048
1048
  if (n?.onAfterLeave)
1049
1049
  try {
1050
1050
  n.onAfterLeave(e);
1051
- } catch (p) {
1052
- N("Transition onAfterLeave error:", p);
1051
+ } catch (d) {
1052
+ F("Transition onAfterLeave error:", d);
1053
1053
  }
1054
- y();
1054
+ m();
1055
1055
  });
1056
1056
  }) : void 0;
1057
- const s = we(r?.leaveFrom), c = we(r?.leaveActive), a = we(r?.leaveTo);
1058
- ve(e, s), e.offsetHeight, ve(e, c);
1059
- let d;
1057
+ const s = ve(r?.leaveFrom), c = ve(r?.leaveActive), a = ve(r?.leaveTo);
1058
+ xe(e, s), e.offsetHeight, xe(e, c);
1059
+ let f;
1060
1060
  if (n?.onLeave) {
1061
- const y = new Promise((p) => {
1062
- d = p;
1061
+ const m = new Promise((d) => {
1062
+ f = d;
1063
1063
  });
1064
1064
  try {
1065
1065
  n.onLeave(e, () => {
1066
- d && d();
1066
+ f && f();
1067
1067
  });
1068
- } catch (p) {
1069
- N("Transition onLeave error:", p);
1068
+ } catch (d) {
1069
+ F("Transition onLeave error:", d);
1070
1070
  }
1071
- d && await y;
1071
+ f && await m;
1072
1072
  }
1073
- await new Promise((y) => requestAnimationFrame(() => y(void 0))), await tn(e, [...s, ...c]), ye(e, s), ve(e, a);
1073
+ await new Promise((m) => requestAnimationFrame(() => m(void 0))), await nn(e, [...s, ...c]), be(e, s), xe(e, a);
1074
1074
  let b;
1075
- if (typeof i == "number" ? b = i : i && typeof i == "object" && "leave" in i && (b = i.leave), await Pt(e, b), ye(e, c), ye(e, a), ye(e, s), n?.onAfterLeave)
1075
+ if (typeof i == "number" ? b = i : i && typeof i == "object" && "leave" in i && (b = i.leave), await Mt(e, b), be(e, c), be(e, a), be(e, s), n?.onAfterLeave)
1076
1076
  try {
1077
1077
  n.onAfterLeave(e);
1078
- } catch (y) {
1079
- N("Transition onAfterLeave error:", y);
1078
+ } catch (m) {
1079
+ F("Transition onAfterLeave error:", m);
1080
1080
  }
1081
1081
  }
1082
- function Y(e) {
1082
+ function ee(e) {
1083
1083
  return e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement || e instanceof HTMLButtonElement;
1084
1084
  }
1085
1085
  function ke(e) {
1086
1086
  return e === "" ? !0 : typeof e == "string" ? e === "false" ? !1 : e === "true" ? !0 : e !== "" : e && typeof e == "object" ? R(e) || "value" in e ? !!e.value : !1 : !!e;
1087
1087
  }
1088
- function ge(e, t) {
1088
+ function me(e, t) {
1089
1089
  if (!t || !(e instanceof HTMLElement)) return;
1090
1090
  re.cleanup(e);
1091
1091
  for (const n in t)
1092
1092
  t[n] === e && delete t[n];
1093
1093
  const r = e.childNodes;
1094
1094
  for (let n = 0; n < r.length; n++)
1095
- ge(r[n], t);
1095
+ me(r[n], t);
1096
1096
  }
1097
- function Se(e, t, r) {
1097
+ function Te(e, t, r) {
1098
1098
  if (typeof e == "string") return;
1099
1099
  const n = e.props?.reactiveRef ?? (e.props?.props && e.props.props.reactiveRef), o = e.props?.ref ?? (e.props?.props && e.props.props.ref);
1100
1100
  n ? n.value = t : o && r && (r[o] = t);
1101
1101
  }
1102
- function rn(e, t, r, n, o, i, s, c) {
1102
+ function on(e, t, r, n, o, i, s, c) {
1103
1103
  if (!i) return;
1104
- const a = t.includes("lazy"), d = t.includes("trim"), b = t.includes("number"), y = e && typeof e == "object" && "value" in e && typeof e.value < "u", p = () => {
1105
- if (y) {
1106
- const w = e.value;
1107
- return c && s && (s instanceof HTMLInputElement || s instanceof HTMLTextAreaElement || s instanceof HTMLSelectElement) && typeof w == "object" && w !== null ? w[c] : w;
1104
+ const a = t.includes("lazy"), f = t.includes("trim"), b = t.includes("number"), m = e && typeof e == "object" && "value" in e && typeof e.value < "u", d = () => {
1105
+ if (m) {
1106
+ const x = e.value;
1107
+ return c && s && (s instanceof HTMLInputElement || s instanceof HTMLTextAreaElement || s instanceof HTMLSelectElement) && typeof x == "object" && x !== null ? x[c] : x;
1108
1108
  }
1109
1109
  return V(i._state || i, e);
1110
- }, x = p();
1110
+ }, k = d();
1111
1111
  let u = "text";
1112
1112
  s instanceof HTMLInputElement ? u = n?.type || s.type || "text" : s instanceof HTMLSelectElement ? u = "select" : s instanceof HTMLTextAreaElement && (u = "textarea");
1113
- const f = s instanceof HTMLInputElement || s instanceof HTMLTextAreaElement || s instanceof HTMLSelectElement, l = f ? u === "checkbox" || u === "radio" ? "checked" : "value" : c ?? "modelValue";
1113
+ const p = s instanceof HTMLInputElement || s instanceof HTMLTextAreaElement || s instanceof HTMLSelectElement, l = p ? u === "checkbox" || u === "radio" ? "checked" : "value" : c ?? "modelValue";
1114
1114
  if (u === "checkbox")
1115
- if (Array.isArray(x))
1116
- r[l] = x.includes(String(s?.getAttribute("value") ?? n?.value ?? ""));
1115
+ if (Array.isArray(k))
1116
+ r[l] = k.includes(String(s?.getAttribute("value") ?? n?.value ?? ""));
1117
1117
  else {
1118
- const w = s?.getAttribute("true-value") ?? !0;
1119
- r[l] = x === w;
1118
+ const x = s?.getAttribute("true-value") ?? !0;
1119
+ r[l] = k === x;
1120
1120
  }
1121
1121
  else if (u === "radio")
1122
- r[l] = x === (n?.value ?? "");
1122
+ r[l] = k === (n?.value ?? "");
1123
1123
  else if (u === "select")
1124
1124
  if (s && s.hasAttribute("multiple") && s instanceof HTMLSelectElement) {
1125
- const w = Array.isArray(x) ? x.map(String) : [];
1125
+ const x = Array.isArray(k) ? k.map(String) : [];
1126
1126
  setTimeout(() => {
1127
1127
  Array.from(s.options).forEach((_) => {
1128
- _.selected = w.includes(_.value);
1128
+ _.selected = x.includes(_.value);
1129
1129
  });
1130
- }, 0), r[l] = Array.isArray(x) ? x : [];
1130
+ }, 0), r[l] = Array.isArray(k) ? k : [];
1131
1131
  } else
1132
- r[l] = x;
1132
+ r[l] = k;
1133
1133
  else {
1134
- !f && y ? r[l] = e : r[l] = x;
1134
+ !p && m ? r[l] = e : r[l] = k;
1135
1135
  try {
1136
- const w = ee(l);
1137
- n && (n[w] = x);
1136
+ const x = te(l);
1137
+ n && (n[x] = k);
1138
1138
  } catch {
1139
1139
  }
1140
1140
  }
1141
- const m = a || u === "checkbox" || u === "radio" || u === "select" ? "change" : "input", k = (w) => {
1142
- if (w.isComposing || o._isComposing) return;
1141
+ const y = a || u === "checkbox" || u === "radio" || u === "select" ? "change" : "input", w = (x) => {
1142
+ if (x.isComposing || o._isComposing) return;
1143
1143
  const _ = typeof globalThis.process < "u" && globalThis.process.env?.NODE_ENV === "test" || typeof window < "u" && window.__vitest__;
1144
- if (w.isTrusted === !1 && !_) return;
1145
- const C = w.target;
1144
+ if (x.isTrusted === !1 && !_) return;
1145
+ const C = x.target;
1146
1146
  if (!C || C._modelUpdating) return;
1147
- let h = C.value;
1147
+ let g = C.value;
1148
1148
  if (u === "checkbox") {
1149
- const v = p();
1150
- if (Array.isArray(v)) {
1151
- const $ = C.getAttribute("value") ?? "", S = Array.from(v);
1149
+ const $ = d();
1150
+ if (Array.isArray($)) {
1151
+ const v = C.getAttribute("value") ?? "", A = Array.from($);
1152
1152
  if (C.checked)
1153
- S.includes($) || S.push($);
1153
+ A.includes(v) || A.push(v);
1154
1154
  else {
1155
- const P = S.indexOf($);
1156
- P > -1 && S.splice(P, 1);
1155
+ const L = A.indexOf(v);
1156
+ L > -1 && A.splice(L, 1);
1157
1157
  }
1158
- h = S;
1158
+ g = A;
1159
1159
  } else {
1160
- const $ = C.getAttribute("true-value") ?? !0, S = C.getAttribute("false-value") ?? !1;
1161
- h = C.checked ? $ : S;
1160
+ const v = C.getAttribute("true-value") ?? !0, A = C.getAttribute("false-value") ?? !1;
1161
+ g = C.checked ? v : A;
1162
1162
  }
1163
1163
  } else if (u === "radio")
1164
- h = C.getAttribute("value") ?? C.value;
1164
+ g = C.getAttribute("value") ?? C.value;
1165
1165
  else if (u === "select" && C.multiple)
1166
- h = Array.from(C.selectedOptions).map((v) => v.value);
1167
- else if (d && typeof h == "string" && (h = h.trim()), b) {
1168
- const v = Number(h);
1169
- isNaN(v) || (h = v);
1166
+ g = Array.from(C.selectedOptions).map(($) => $.value);
1167
+ else if (f && typeof g == "string" && (g = g.trim()), b) {
1168
+ const $ = Number(g);
1169
+ isNaN($) || (g = $);
1170
1170
  }
1171
- const T = p();
1172
- if (Be(h, T)) {
1171
+ const S = d();
1172
+ if (Fe(g, S)) {
1173
1173
  C._modelUpdating = !0;
1174
1174
  try {
1175
- mt(y, e, h, i, c), We(i, y, e, h), C && Yt(C, l, h);
1175
+ yt(m, e, g, i, c), Be(i, m, e, g), C && en(C, l, g);
1176
1176
  } finally {
1177
1177
  setTimeout(() => C._modelUpdating = !1, 0);
1178
1178
  }
1179
1179
  }
1180
1180
  };
1181
- if (f) {
1182
- if (o[m]) {
1183
- const w = o[m];
1184
- s && re.removeListener(s, m, w);
1181
+ if (p) {
1182
+ if (o[y]) {
1183
+ const x = o[y];
1184
+ s && re.removeListener(s, y, x);
1185
1185
  }
1186
- o[m] = k;
1186
+ o[y] = w;
1187
1187
  } else {
1188
- const w = `update:${ee(l)}`, _ = `update:${l}`;
1189
- if (o[w]) {
1190
- const C = o[w];
1191
- s && re.removeListener(s, w, C);
1188
+ const x = `update:${te(l)}`, _ = `update:${l}`;
1189
+ if (o[x]) {
1190
+ const C = o[x];
1191
+ s && re.removeListener(s, x, C);
1192
1192
  }
1193
1193
  if (o[_]) {
1194
1194
  const C = o[_];
1195
1195
  s && re.removeListener(s, _, C);
1196
1196
  }
1197
- if (o[w] = (C) => {
1198
- const h = C.detail !== void 0 ? C.detail : C.target?.value, T = en(y, e, i, c);
1199
- if (Be(h, T)) {
1200
- mt(y, e, h, i, c), We(i, y, e, h);
1201
- const v = C.target;
1202
- v && yt(v, l, y ? e : h, y);
1197
+ if (o[x] = (C) => {
1198
+ const g = C.detail !== void 0 ? C.detail : C.target?.value, S = tn(m, e, i, c);
1199
+ if (Fe(g, S)) {
1200
+ yt(m, e, g, i, c), Be(i, m, e, g);
1201
+ const $ = C.target;
1202
+ $ && bt($, l, m ? e : g, m);
1203
1203
  }
1204
- }, y && typeof e.value == "object" && e.value !== null) {
1204
+ }, m && typeof e.value == "object" && e.value !== null) {
1205
1205
  let C = [];
1206
1206
  try {
1207
1207
  C = Reflect.ownKeys(e.value);
1208
1208
  } catch {
1209
1209
  C = Object.keys(e.value);
1210
1210
  }
1211
- const h = C.filter((T) => typeof T == "string" && !String(T).startsWith("_") && T !== "constructor");
1212
- for (const T of h) {
1213
- const E = `update:${ee(T)}`, v = `update:${T}`;
1214
- o[E] || (o[E] = ($) => {
1215
- const S = $.detail !== void 0 ? $.detail : $.target?.value, P = y ? e.value[T] : V(i._state || i, e);
1216
- if (!Be(S, P)) return;
1217
- if (y) {
1218
- const F = { ...e.value };
1219
- F[T] = S, e.value = F;
1211
+ const g = C.filter((S) => typeof S == "string" && !String(S).startsWith("_") && S !== "constructor");
1212
+ for (const S of g) {
1213
+ const T = `update:${te(S)}`, $ = `update:${S}`;
1214
+ o[T] || (o[T] = (v) => {
1215
+ const A = v.detail !== void 0 ? v.detail : v.target?.value, L = m ? e.value[S] : V(i._state || i, e);
1216
+ if (!Fe(A, L)) return;
1217
+ if (m) {
1218
+ const M = { ...e.value };
1219
+ M[S] = A, e.value = M;
1220
1220
  } else
1221
- Ve(i._state || i, e, S);
1222
- We(i, y, e, S);
1223
- const j = $.currentTarget || s || $.target;
1224
- j && yt(j, l, y ? e : S, y);
1225
- }, o[v] = o[E]);
1221
+ qe(i._state || i, e, A);
1222
+ Be(i, m, e, A);
1223
+ const O = v.currentTarget || s || v.target;
1224
+ O && bt(O, l, m ? e : A, m);
1225
+ }, o[$] = o[T]);
1226
1226
  }
1227
1227
  }
1228
- o[_] = o[w];
1228
+ o[_] = o[x];
1229
1229
  }
1230
- (u === "text" || u === "textarea") && (o.compositionstart = (() => o._isComposing = !0), o.compositionend = (w) => {
1230
+ (u === "text" || u === "textarea") && (o.compositionstart = (() => o._isComposing = !0), o.compositionend = (x) => {
1231
1231
  o._isComposing = !1;
1232
- const _ = w.target;
1232
+ const _ = x.target;
1233
1233
  _ && setTimeout(() => {
1234
- const C = _.value, h = i._state || i, T = V(h, e);
1235
- let E = C;
1236
- if (d && (E = E.trim()), b) {
1237
- const $ = Number(E);
1238
- isNaN($) || (E = $);
1234
+ const C = _.value, g = i._state || i, S = V(g, e);
1235
+ let T = C;
1236
+ if (f && (T = T.trim()), b) {
1237
+ const v = Number(T);
1238
+ isNaN(v) || (T = v);
1239
1239
  }
1240
- if (Be(E, T)) {
1240
+ if (Fe(T, S)) {
1241
1241
  _._modelUpdating = !0;
1242
1242
  try {
1243
- Ve(h, e, E), We(i, y, e, E);
1243
+ qe(g, e, T), Be(i, m, e, T);
1244
1244
  } finally {
1245
1245
  setTimeout(() => _._modelUpdating = !1, 0);
1246
1246
  }
@@ -1252,12 +1252,12 @@ function Rt(e) {
1252
1252
  const t = e.slice(2);
1253
1253
  return t ? t.charAt(0).toLowerCase() + t.slice(1) : "";
1254
1254
  }
1255
- function on(e, t, r, n, o) {
1255
+ function sn(e, t, r, n, o) {
1256
1256
  if (typeof e == "object" && e !== null)
1257
1257
  for (const [i, s] of Object.entries(e))
1258
1258
  if (i.startsWith("data-") || i.startsWith("aria-") || i === "class")
1259
1259
  r[i] = s;
1260
- else if (i === "disabled" && o && Y(o)) {
1260
+ else if (i === "disabled" && o && ee(o)) {
1261
1261
  const c = s && typeof s == "object" && "value" in s;
1262
1262
  (() => {
1263
1263
  try {
@@ -1276,7 +1276,7 @@ function on(e, t, r, n, o) {
1276
1276
  for (const [s, c] of Object.entries(i))
1277
1277
  if (s.startsWith("data-") || s.startsWith("aria-") || s === "class")
1278
1278
  r[s] = c;
1279
- else if (s === "disabled" && o && Y(o)) {
1279
+ else if (s === "disabled" && o && ee(o)) {
1280
1280
  const a = c && typeof c == "object" && "value" in c;
1281
1281
  (() => {
1282
1282
  try {
@@ -1298,7 +1298,7 @@ function on(e, t, r, n, o) {
1298
1298
  }
1299
1299
  }
1300
1300
  }
1301
- function sn(e, t, r) {
1301
+ function an(e, t, r) {
1302
1302
  let n;
1303
1303
  if (typeof e == "string") {
1304
1304
  if (!r) return;
@@ -1326,7 +1326,7 @@ function sn(e, t, r) {
1326
1326
  function Re(e, t) {
1327
1327
  return Qt.evaluate(e, t);
1328
1328
  }
1329
- function an(e, t, r) {
1329
+ function cn(e, t, r) {
1330
1330
  let n;
1331
1331
  if (typeof e == "string") {
1332
1332
  if (!r) return;
@@ -1344,7 +1344,7 @@ function an(e, t, r) {
1344
1344
  const i = t.class || "", s = o.join(" ");
1345
1345
  t.class = i ? `${i} ${s}`.trim() : s;
1346
1346
  }
1347
- function ct(e) {
1347
+ function lt(e) {
1348
1348
  if (e === !0 || e === !1) return !0;
1349
1349
  if (e == null) return !1;
1350
1350
  if (typeof e === "string") return e === "" || e === "true" || e === "false";
@@ -1357,7 +1357,7 @@ function ct(e) {
1357
1357
  }
1358
1358
  return !1;
1359
1359
  }
1360
- function cn(e, t, r) {
1360
+ function ln(e, t, r) {
1361
1361
  let n;
1362
1362
  if (typeof e == "string") {
1363
1363
  if (!r) return;
@@ -1371,9 +1371,9 @@ function cn(e, t, r) {
1371
1371
  const s = [];
1372
1372
  for (const [c, a] of Object.entries(n))
1373
1373
  if (a != null && a !== "") {
1374
- const d = c.replace(
1374
+ const f = c.replace(
1375
1375
  /[A-Z]/g,
1376
- (p) => `-${p.toLowerCase()}`
1376
+ (d) => `-${d.toLowerCase()}`
1377
1377
  ), b = [
1378
1378
  "width",
1379
1379
  "height",
@@ -1400,26 +1400,26 @@ function cn(e, t, r) {
1400
1400
  "min-height",
1401
1401
  "max-height"
1402
1402
  ];
1403
- let y = String(a);
1404
- typeof a == "number" && b.includes(d) && (y = `${a}px`), s.push(`${d}: ${y}`);
1403
+ let m = String(a);
1404
+ typeof a == "number" && b.includes(f) && (m = `${a}px`), s.push(`${f}: ${m}`);
1405
1405
  }
1406
1406
  o = s.join("; ") + (s.length > 0 ? ";" : "");
1407
1407
  }
1408
1408
  const i = t.style || "";
1409
1409
  t.style = i + (i && !i.endsWith(";") ? "; " : "") + o;
1410
1410
  }
1411
- function ln(e, t, r) {
1411
+ function un(e, t, r) {
1412
1412
  let n = e;
1413
1413
  typeof e == "string" && r && (n = Re(e, r)), R(n) ? t.reactiveRef = n : t.ref = n;
1414
1414
  }
1415
- function Mt(e, t, r, n) {
1415
+ function Nt(e, t, r, n) {
1416
1416
  const o = {}, i = { ...n || {} }, s = {};
1417
1417
  for (const [c, a] of Object.entries(e)) {
1418
- const { value: d, modifiers: b, arg: y } = a;
1418
+ const { value: f, modifiers: b, arg: m } = a;
1419
1419
  if (c === "model" || c.startsWith("model:")) {
1420
- const p = c.split(":"), x = p.length > 1 ? p[1] : y;
1421
- rn(
1422
- d,
1420
+ const d = c.split(":"), k = d.length > 1 ? d[1] : m;
1421
+ on(
1422
+ f,
1423
1423
  // Pass the original value (could be string or reactive state object)
1424
1424
  b,
1425
1425
  o,
@@ -1427,42 +1427,42 @@ function Mt(e, t, r, n) {
1427
1427
  s,
1428
1428
  t,
1429
1429
  r,
1430
- x
1430
+ k
1431
1431
  );
1432
1432
  continue;
1433
1433
  }
1434
1434
  switch (c) {
1435
1435
  case "bind":
1436
- on(d, o, i, t, r);
1436
+ sn(f, o, i, t, r);
1437
1437
  break;
1438
1438
  case "show":
1439
- sn(d, i, t);
1439
+ an(f, i, t);
1440
1440
  break;
1441
1441
  case "class":
1442
- an(d, i, t);
1442
+ cn(f, i, t);
1443
1443
  break;
1444
1444
  case "style":
1445
- cn(d, i, t);
1445
+ ln(f, i, t);
1446
1446
  break;
1447
1447
  case "ref":
1448
- ln(d, o, t);
1448
+ un(f, o, t);
1449
1449
  break;
1450
1450
  }
1451
1451
  }
1452
1452
  try {
1453
- if (Object.prototype.hasOwnProperty.call(o, "disabled") && r && Y(r)) {
1454
- const a = o.disabled, d = a && typeof a == "object" && "value" in a;
1453
+ if (Object.prototype.hasOwnProperty.call(o, "disabled") && r && ee(r)) {
1454
+ const a = o.disabled, f = a && typeof a == "object" && "value" in a;
1455
1455
  let b = !1;
1456
1456
  try {
1457
1457
  b = R(a);
1458
1458
  } catch {
1459
1459
  b = !1;
1460
1460
  }
1461
- if (!d && !b)
1461
+ if (!f && !b)
1462
1462
  try {
1463
1463
  i.disabled = a, delete o.disabled;
1464
- const y = globalThis;
1465
- y.__VDOM_DISABLED_PROMOTIONS || (y.__VDOM_DISABLED_PROMOTIONS = []), y.__VDOM_DISABLED_PROMOTIONS.push({ phase: "bind-directive:postfix-move", location: "attrs", key: "disabled", value: a, time: Date.now(), stack: new Error().stack });
1464
+ const m = globalThis;
1465
+ m.__VDOM_DISABLED_PROMOTIONS || (m.__VDOM_DISABLED_PROMOTIONS = []), m.__VDOM_DISABLED_PROMOTIONS.push({ phase: "bind-directive:postfix-move", location: "attrs", key: "disabled", value: a, time: Date.now(), stack: new Error().stack });
1466
1466
  } catch {
1467
1467
  }
1468
1468
  }
@@ -1470,14 +1470,14 @@ function Mt(e, t, r, n) {
1470
1470
  }
1471
1471
  return { props: o, attrs: i, listeners: s };
1472
1472
  }
1473
- function lt(e, t) {
1473
+ function ut(e, t) {
1474
1474
  if (Array.isArray(e)) {
1475
1475
  const i = /* @__PURE__ */ new Set();
1476
1476
  return e.map((s) => {
1477
1477
  if (!s || typeof s != "object") return s;
1478
1478
  let c = s.props?.key ?? s.key;
1479
1479
  if (!c) {
1480
- const y = s.tag || "node", x = [
1480
+ const m = s.tag || "node", k = [
1481
1481
  // attrs (kebab-case)
1482
1482
  s.props?.attrs?.id,
1483
1483
  s.props?.attrs?.name,
@@ -1488,22 +1488,22 @@ function lt(e, t) {
1488
1488
  s.props?.props?.dataKey,
1489
1489
  s.props?.props?.["data-key"]
1490
1490
  ].find((u) => u != null) ?? "";
1491
- c = x ? `${t}:${y}:${x}` : `${t}:${y}`;
1491
+ c = k ? `${t}:${m}:${k}` : `${t}:${m}`;
1492
1492
  }
1493
- let a = c, d = 1;
1493
+ let a = c, f = 1;
1494
1494
  for (; i.has(a); )
1495
- a = `${c}#${d++}`;
1495
+ a = `${c}#${f++}`;
1496
1496
  i.add(a);
1497
1497
  let b = s.children;
1498
- return Array.isArray(b) && (b = lt(b, a)), { ...s, key: a, children: b };
1498
+ return Array.isArray(b) && (b = ut(b, a)), { ...s, key: a, children: b };
1499
1499
  });
1500
1500
  }
1501
1501
  const r = e;
1502
1502
  let n = r.props?.key ?? r.key ?? t, o = r.children;
1503
- return Array.isArray(o) && (o = lt(o, n)), { ...r, key: n, children: o };
1503
+ return Array.isArray(o) && (o = ut(o, n)), { ...r, key: n, children: o };
1504
1504
  }
1505
- function bt(e, t, r, n) {
1506
- const o = r.directives ?? {}, i = Mt(
1505
+ function wt(e, t, r, n) {
1506
+ const o = r.directives ?? {}, i = Nt(
1507
1507
  o,
1508
1508
  n,
1509
1509
  e,
@@ -1516,170 +1516,170 @@ function bt(e, t, r, n) {
1516
1516
  ...t.attrs,
1517
1517
  ...r.attrs,
1518
1518
  ...i.attrs
1519
- }, a = t.props ?? {}, d = s, b = r?.isCustomElement ?? t?.isCustomElement ?? !1;
1520
- let y = !1;
1521
- for (const u in { ...a, ...d }) {
1522
- const f = a[u], g = d[u];
1523
- let l = f, m = g;
1524
- if (L(() => {
1525
- (R(f) || f && typeof f == "object" && "value" in f) && (l = f.value);
1526
- }), L(() => {
1527
- (R(g) || g && typeof g == "object" && "value" in g) && (m = g.value);
1528
- }), !(f === g && l === m))
1529
- if (y = !0, u === "value" && (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement || e instanceof HTMLSelectElement)) {
1530
- const k = typeof g == "object" && g !== null && R(g) || g && typeof g == "object" && "value" in g ? g.value : g;
1531
- e.value !== k && (e.value = k ?? "");
1519
+ }, a = t.props ?? {}, f = s, b = r?.isCustomElement ?? t?.isCustomElement ?? !1;
1520
+ let m = !1;
1521
+ for (const u in { ...a, ...f }) {
1522
+ const p = a[u], h = f[u];
1523
+ let l = p, y = h;
1524
+ if (P(() => {
1525
+ (R(p) || p && typeof p == "object" && "value" in p) && (l = p.value);
1526
+ }), P(() => {
1527
+ (R(h) || h && typeof h == "object" && "value" in h) && (y = h.value);
1528
+ }), !(p === h && l === y))
1529
+ if (m = !0, u === "value" && (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement || e instanceof HTMLSelectElement)) {
1530
+ const w = typeof h == "object" && h !== null && R(h) || h && typeof h == "object" && "value" in h ? h.value : h;
1531
+ e.value !== w && (e.value = w ?? "");
1532
1532
  } else if (u === "checked" && e instanceof HTMLInputElement) {
1533
- const k = typeof g == "object" && g !== null && R(g) || g && typeof g == "object" && "value" in g ? g.value : g;
1534
- e.checked = !!k;
1535
- } else if (u.startsWith("on") && typeof g == "function") {
1536
- const k = Rt(u);
1537
- typeof f == "function" && re.removeListener(e, k, f), re.addListener(e, k, g);
1533
+ const w = typeof h == "object" && h !== null && R(h) || h && typeof h == "object" && "value" in h ? h.value : h;
1534
+ e.checked = !!w;
1535
+ } else if (u.startsWith("on") && typeof h == "function") {
1536
+ const w = Rt(u);
1537
+ typeof p == "function" && re.removeListener(e, w, p), re.addListener(e, w, h);
1538
1538
  try {
1539
- if (k && k.startsWith("update:")) {
1540
- const w = k.split(":", 2)[1], _ = d[w];
1539
+ if (w && w.startsWith("update:")) {
1540
+ const x = w.split(":", 2)[1], _ = f[x];
1541
1541
  let C = [];
1542
1542
  try {
1543
1543
  if (R(_)) {
1544
- const T = _.value;
1545
- C = T && typeof T == "object" ? Object.keys(T) : [];
1544
+ const S = _.value;
1545
+ C = S && typeof S == "object" ? Object.keys(S) : [];
1546
1546
  } else _ && typeof _ == "object" && (C = Object.keys(_));
1547
1547
  } catch {
1548
1548
  C = [];
1549
1549
  }
1550
- const h = C.filter((T) => typeof T == "string" && !T.startsWith("_") && T !== "constructor");
1551
- for (const T of h) {
1552
- const E = `update:${T}`, v = ($) => {
1553
- const S = $.detail !== void 0 ? $.detail : $.target?.value, A = { ...R(_) ? _.value || {} : d[w] || {}, [T]: S };
1554
- L(() => {
1555
- g({ detail: A });
1550
+ const g = C.filter((S) => typeof S == "string" && !S.startsWith("_") && S !== "constructor");
1551
+ for (const S of g) {
1552
+ const T = `update:${S}`, $ = (v) => {
1553
+ const A = v.detail !== void 0 ? v.detail : v.target?.value, E = { ...R(_) ? _.value || {} : f[x] || {}, [S]: A };
1554
+ P(() => {
1555
+ h({ detail: E });
1556
1556
  });
1557
1557
  };
1558
- L(() => {
1559
- re.addListener(e, E, v);
1558
+ P(() => {
1559
+ re.addListener(e, T, $);
1560
1560
  });
1561
1561
  }
1562
1562
  }
1563
1563
  } catch {
1564
1564
  }
1565
- } else if (g == null)
1565
+ } else if (h == null)
1566
1566
  e.removeAttribute(u);
1567
1567
  else {
1568
- const k = r?.isCustomElement ?? t?.isCustomElement ?? !1;
1569
- if (k || u in e)
1568
+ const w = r?.isCustomElement ?? t?.isCustomElement ?? !1;
1569
+ if (w || u in e)
1570
1570
  try {
1571
- e[u] = g, u === "disabled" && g === !1 && !k && Y(e) && e.removeAttribute("disabled");
1571
+ e[u] = h, u === "disabled" && h === !1 && !w && ee(e) && e.removeAttribute("disabled");
1572
1572
  } catch {
1573
1573
  }
1574
1574
  else
1575
- g === !1 && e.removeAttribute(u);
1575
+ h === !1 && e.removeAttribute(u);
1576
1576
  }
1577
1577
  }
1578
- for (const [u, f] of Object.entries(
1578
+ for (const [u, p] of Object.entries(
1579
1579
  i.listeners || {}
1580
1580
  )) {
1581
- re.addListener(e, u, f);
1581
+ re.addListener(e, u, p);
1582
1582
  try {
1583
- const g = e && e.parentElement;
1584
- g && g !== e && re.addListener(g, u, f);
1583
+ const h = e && e.parentElement;
1584
+ h && h !== e && re.addListener(h, u, p);
1585
1585
  } catch {
1586
1586
  }
1587
1587
  }
1588
- const p = t.attrs ?? {}, x = c;
1589
- for (const u in { ...p, ...x }) {
1590
- const f = p[u], g = x[u];
1591
- let l = f, m = g;
1592
- if (R(f) && (l = f.value), R(g) && (m = g.value), l !== m)
1593
- if (y = !0, m == null || m === !1)
1594
- L(() => {
1588
+ const d = t.attrs ?? {}, k = c;
1589
+ for (const u in { ...d, ...k }) {
1590
+ const p = d[u], h = k[u];
1591
+ let l = p, y = h;
1592
+ if (R(p) && (l = p.value), R(h) && (y = h.value), l !== y)
1593
+ if (m = !0, y == null || y === !1)
1594
+ P(() => {
1595
1595
  e.removeAttribute(u);
1596
- }), u === "value" && (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement ? L(() => {
1596
+ }), u === "value" && (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement ? P(() => {
1597
1597
  e.value = "";
1598
- }) : e instanceof HTMLSelectElement ? L(() => {
1598
+ }) : e instanceof HTMLSelectElement ? P(() => {
1599
1599
  e.value = "";
1600
- }) : e instanceof HTMLProgressElement && L(() => {
1600
+ }) : e instanceof HTMLProgressElement && P(() => {
1601
1601
  e.value = 0;
1602
- })), u === "checked" && e instanceof HTMLInputElement && L(() => {
1602
+ })), u === "checked" && e instanceof HTMLInputElement && P(() => {
1603
1603
  e.checked = !1;
1604
- }), u === "disabled" && Y(e) && L(() => {
1604
+ }), u === "disabled" && ee(e) && P(() => {
1605
1605
  e.disabled = !1;
1606
1606
  });
1607
1607
  else {
1608
1608
  if (u === "value") {
1609
1609
  if (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement) {
1610
- L(() => {
1611
- e.value = m ?? "";
1610
+ P(() => {
1611
+ e.value = y ?? "";
1612
1612
  });
1613
1613
  continue;
1614
1614
  } else if (e instanceof HTMLSelectElement) {
1615
- L(() => {
1616
- e.value = m ?? "";
1615
+ P(() => {
1616
+ e.value = y ?? "";
1617
1617
  });
1618
1618
  continue;
1619
1619
  } else if (e instanceof HTMLProgressElement) {
1620
- L(() => {
1621
- e.value = Number(m);
1620
+ P(() => {
1621
+ e.value = Number(y);
1622
1622
  });
1623
1623
  continue;
1624
1624
  }
1625
1625
  }
1626
1626
  if (u === "checked" && e instanceof HTMLInputElement) {
1627
- L(() => {
1628
- e.checked = !!m;
1627
+ P(() => {
1628
+ e.checked = !!y;
1629
1629
  });
1630
1630
  continue;
1631
1631
  }
1632
1632
  if (u === "style") {
1633
- e.setAttribute(u, String(m));
1633
+ e.setAttribute(u, String(y));
1634
1634
  continue;
1635
1635
  }
1636
- if (u === "disabled" && Y(e)) {
1637
- L(() => {
1638
- e.disabled = ke(m);
1639
- }), ke(m) ? L(() => {
1636
+ if (u === "disabled" && ee(e)) {
1637
+ P(() => {
1638
+ e.disabled = ke(y);
1639
+ }), ke(y) ? P(() => {
1640
1640
  e.setAttribute(u, "");
1641
- }) : L(() => {
1641
+ }) : P(() => {
1642
1642
  e.removeAttribute(u);
1643
1643
  });
1644
1644
  continue;
1645
1645
  }
1646
- const k = e.namespaceURI === "http://www.w3.org/2000/svg";
1647
- if (b && !k && u.includes("-")) {
1648
- const w = pt(u);
1646
+ const w = e.namespaceURI === "http://www.w3.org/2000/svg";
1647
+ if (b && !w && u.includes("-")) {
1648
+ const x = ht(u);
1649
1649
  try {
1650
- R(g) ? e[w] = g : e[w] = m;
1650
+ R(h) ? e[x] = h : e[x] = y;
1651
1651
  } catch {
1652
- e.setAttribute(u, String(m));
1652
+ e.setAttribute(u, String(y));
1653
1653
  }
1654
- } else if (!k && u in e)
1654
+ } else if (!w && u in e)
1655
1655
  try {
1656
- R(g) ? e[u] = g : e[u] = m;
1656
+ R(h) ? e[u] = h : e[u] = y;
1657
1657
  } catch {
1658
- e.setAttribute(u, String(m));
1658
+ e.setAttribute(u, String(y));
1659
1659
  }
1660
1660
  else
1661
- e.setAttribute(u, String(m));
1661
+ e.setAttribute(u, String(y));
1662
1662
  }
1663
1663
  }
1664
1664
  try {
1665
- if (Y(e)) {
1665
+ if (ee(e)) {
1666
1666
  const u = s.disabled;
1667
- let f;
1667
+ let p;
1668
1668
  try {
1669
- const l = Object.prototype.hasOwnProperty.call(i.props || {}, "disabled"), m = u && typeof u == "object" && "value" in u;
1670
- let k = !1;
1671
- L(() => {
1672
- k = !!R(u);
1669
+ const l = Object.prototype.hasOwnProperty.call(i.props || {}, "disabled"), y = u && typeof u == "object" && "value" in u;
1670
+ let w = !1;
1671
+ P(() => {
1672
+ w = !!R(u);
1673
1673
  });
1674
- const w = ct(u);
1675
- k || m || l || w ? f = u : f = c.disabled;
1674
+ const x = lt(u);
1675
+ w || y || l || x ? p = u : p = c.disabled;
1676
1676
  } catch {
1677
- f = c.disabled;
1677
+ p = c.disabled;
1678
1678
  }
1679
- const g = ke(f);
1680
- L(() => {
1681
- e.disabled = g;
1682
- }), L(g ? () => {
1679
+ const h = ke(p);
1680
+ P(() => {
1681
+ e.disabled = h;
1682
+ }), P(h ? () => {
1683
1683
  e.setAttribute("disabled", "");
1684
1684
  } : () => {
1685
1685
  e.removeAttribute("disabled");
@@ -1687,177 +1687,177 @@ function bt(e, t, r, n) {
1687
1687
  }
1688
1688
  } catch {
1689
1689
  }
1690
- b && y && (L(() => {
1690
+ b && m && (P(() => {
1691
1691
  e._applyProps?.(e._cfg);
1692
- }), L(() => {
1692
+ }), P(() => {
1693
1693
  typeof e.requestRender == "function" ? e.requestRender() : typeof e._render == "function" && e._render(e._cfg);
1694
1694
  }));
1695
1695
  }
1696
- function X(e, t, r) {
1696
+ function Y(e, t, r) {
1697
1697
  if (typeof e == "string")
1698
1698
  return document.createTextNode(e);
1699
1699
  if (e.tag === "#text") {
1700
- const p = document.createTextNode(
1700
+ const d = document.createTextNode(
1701
1701
  typeof e.children == "string" ? e.children : ""
1702
1702
  );
1703
- return e.key != null && (p.key = e.key), p;
1703
+ return e.key != null && (d.key = e.key), d;
1704
1704
  }
1705
1705
  if (e.tag === "#anchor") {
1706
- const p = e, x = Array.isArray(p.children) ? p.children : [], u = document.createTextNode(""), f = document.createTextNode("");
1707
- p.key != null && (u.key = `${p.key}:start`, f.key = `${p.key}:end`), p._startNode = u, p._endNode = f;
1708
- const g = document.createDocumentFragment();
1709
- g.appendChild(u);
1710
- for (const l of x) {
1711
- const m = X(l, t);
1712
- if (p.key != null && m instanceof Element && !m.hasAttribute("data-anchor-key")) {
1713
- const k = l;
1714
- k && typeof k == "object" && k.key != null || (m.key = p.key, m.setAttribute("data-anchor-key", String(p.key)));
1706
+ const d = e, k = Array.isArray(d.children) ? d.children : [], u = document.createTextNode(""), p = document.createTextNode("");
1707
+ d.key != null && (u.key = `${d.key}:start`, p.key = `${d.key}:end`), d._startNode = u, d._endNode = p;
1708
+ const h = document.createDocumentFragment();
1709
+ h.appendChild(u);
1710
+ for (const l of k) {
1711
+ const y = Y(l, t);
1712
+ if (d.key != null && y instanceof Element && !y.hasAttribute("data-anchor-key")) {
1713
+ const w = l;
1714
+ w && typeof w == "object" && w.key != null || (y.key = d.key, y.setAttribute("data-anchor-key", String(d.key)));
1715
1715
  }
1716
- g.appendChild(m);
1716
+ h.appendChild(y);
1717
1717
  }
1718
- return g.appendChild(f), g;
1718
+ return h.appendChild(p), h;
1719
1719
  }
1720
1720
  const n = document.createElement(e.tag);
1721
1721
  e.key != null && (n.key = e.key), e.props && e.props._transitionGroup && (n._transitionGroup = e.props._transitionGroup);
1722
- const { props: o = {}, attrs: i = {}, directives: s = {} } = e.props ?? {}, c = Mt(s, t, n, i), a = {
1722
+ const { props: o = {}, attrs: i = {}, directives: s = {} } = e.props ?? {}, c = Nt(s, t, n, i), a = {
1723
1723
  ...o,
1724
1724
  ...c.props
1725
- }, d = {
1725
+ }, f = {
1726
1726
  ...i,
1727
1727
  ...c.attrs
1728
1728
  };
1729
1729
  try {
1730
- if (a.disabled !== void 0 && n && Y(n)) {
1731
- const p = a.disabled, x = p && typeof p == "object" && "value" in p;
1730
+ if (a.disabled !== void 0 && n && ee(n)) {
1731
+ const d = a.disabled, k = d && typeof d == "object" && "value" in d;
1732
1732
  let u = !1;
1733
1733
  try {
1734
- u = R(p);
1734
+ u = R(d);
1735
1735
  } catch {
1736
1736
  u = !1;
1737
1737
  }
1738
- !x && !u && L(() => {
1739
- d.disabled = p, delete a.disabled;
1740
- const f = globalThis;
1741
- f.__VDOM_DISABLED_PROMOTIONS || (f.__VDOM_DISABLED_PROMOTIONS = []), f.__VDOM_DISABLED_PROMOTIONS.push({ phase: "createElement:move-prop-to-attr", location: "attrs", key: "disabled", value: p, time: Date.now(), stack: new Error().stack });
1738
+ !k && !u && P(() => {
1739
+ f.disabled = d, delete a.disabled;
1740
+ const p = globalThis;
1741
+ p.__VDOM_DISABLED_PROMOTIONS || (p.__VDOM_DISABLED_PROMOTIONS = []), p.__VDOM_DISABLED_PROMOTIONS.push({ phase: "createElement:move-prop-to-attr", location: "attrs", key: "disabled", value: d, time: Date.now(), stack: new Error().stack });
1742
1742
  });
1743
1743
  }
1744
1744
  } catch {
1745
1745
  }
1746
1746
  const b = n.namespaceURI === "http://www.w3.org/2000/svg";
1747
- for (const p in d) {
1748
- const x = d[p];
1749
- if (typeof p != "string" || /\[object Object\]/.test(p))
1747
+ for (const d in f) {
1748
+ const k = f[d];
1749
+ if (typeof d != "string" || /\[object Object\]/.test(d))
1750
1750
  continue;
1751
- const u = typeof x == "object" && x !== null && R(x) || x && typeof x == "object" && "value" in x ? x.value : x;
1751
+ const u = typeof k == "object" && k !== null && R(k) || k && typeof k == "object" && "value" in k ? k.value : k;
1752
1752
  if (typeof u == "boolean")
1753
- u ? n.setAttribute(p, "") : L(() => {
1754
- n.removeAttribute(p);
1753
+ u ? n.setAttribute(d, "") : P(() => {
1754
+ n.removeAttribute(d);
1755
1755
  });
1756
1756
  else if (u != null) {
1757
- if (p === "disabled" && Y(n)) {
1758
- const f = a.disabled, g = ct(f) ? f : u, l = ke(g);
1759
- L(() => {
1757
+ if (d === "disabled" && ee(n)) {
1758
+ const p = a.disabled, h = lt(p) ? p : u, l = ke(h);
1759
+ P(() => {
1760
1760
  n.disabled = l;
1761
- }), L(l ? () => {
1762
- n.setAttribute(p, "");
1761
+ }), P(l ? () => {
1762
+ n.setAttribute(d, "");
1763
1763
  } : () => {
1764
- n.removeAttribute(p);
1764
+ n.removeAttribute(d);
1765
1765
  });
1766
1766
  continue;
1767
1767
  }
1768
- if (!b && p === "value" && (n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement || n instanceof HTMLSelectElement || n instanceof HTMLProgressElement))
1768
+ if (!b && d === "value" && (n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement || n instanceof HTMLSelectElement || n instanceof HTMLProgressElement))
1769
1769
  try {
1770
1770
  n instanceof HTMLProgressElement ? n.value = Number(u) : n.value = u ?? "";
1771
1771
  } catch {
1772
- n.setAttribute(p, String(u));
1772
+ n.setAttribute(d, String(u));
1773
1773
  }
1774
- else if (!b && p === "checked" && n instanceof HTMLInputElement)
1774
+ else if (!b && d === "checked" && n instanceof HTMLInputElement)
1775
1775
  try {
1776
1776
  n.checked = !!u;
1777
1777
  } catch {
1778
- n.setAttribute(p, String(u));
1778
+ n.setAttribute(d, String(u));
1779
1779
  }
1780
- else if (!b && p in n)
1780
+ else if (!b && d in n)
1781
1781
  try {
1782
- n[p] = u, p === "disabled" && u === !1 && Y(n) && n.removeAttribute("disabled");
1782
+ n[d] = u, d === "disabled" && u === !1 && ee(n) && n.removeAttribute("disabled");
1783
1783
  } catch {
1784
- n.setAttribute(p, String(u));
1784
+ n.setAttribute(d, String(u));
1785
1785
  }
1786
- else if ((e.props?.isCustomElement ?? !1) && !b && p.includes("-")) {
1787
- const g = pt(p);
1786
+ else if ((e.props?.isCustomElement ?? !1) && !b && d.includes("-")) {
1787
+ const h = ht(d);
1788
1788
  try {
1789
- n[g] = u;
1789
+ n[h] = u;
1790
1790
  } catch {
1791
- n.setAttribute(p, String(u));
1791
+ n.setAttribute(d, String(u));
1792
1792
  }
1793
1793
  } else
1794
- n.setAttribute(p, String(u));
1794
+ n.setAttribute(d, String(u));
1795
1795
  }
1796
1796
  }
1797
- for (const p in a) {
1798
- const x = a[p];
1799
- if (!(typeof p != "string" || /\[object Object\]/.test(p)))
1800
- if (p === "value" && (n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement || n instanceof HTMLSelectElement)) {
1801
- const u = typeof x == "object" && x !== null && typeof x.value < "u" ? x.value : x;
1802
- L(() => {
1797
+ for (const d in a) {
1798
+ const k = a[d];
1799
+ if (!(typeof d != "string" || /\[object Object\]/.test(d)))
1800
+ if (d === "value" && (n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement || n instanceof HTMLSelectElement)) {
1801
+ const u = typeof k == "object" && k !== null && typeof k.value < "u" ? k.value : k;
1802
+ P(() => {
1803
1803
  n.value = u ?? "";
1804
1804
  });
1805
- } else if (p.startsWith("on") && typeof x == "function") {
1806
- const u = Rt(p), f = u.includes(":") ? (() => {
1807
- const g = u.split(":"), l = g[1];
1805
+ } else if (d.startsWith("on") && typeof k == "function") {
1806
+ const u = Rt(d), p = u.includes(":") ? (() => {
1807
+ const h = u.split(":"), l = h[1];
1808
1808
  if (l.includes("-")) {
1809
- const m = l.split("-").map((k, w) => w === 0 ? k : k.charAt(0).toUpperCase() + k.slice(1)).join("");
1810
- return `${g[0]}:${m}`;
1809
+ const y = l.split("-").map((w, x) => x === 0 ? w : w.charAt(0).toUpperCase() + w.slice(1)).join("");
1810
+ return `${h[0]}:${y}`;
1811
1811
  } else {
1812
- const m = l.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1813
- return `${g[0]}:${m}`;
1812
+ const y = l.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1813
+ return `${h[0]}:${y}`;
1814
1814
  }
1815
1815
  })() : u;
1816
- c.listeners && (c.listeners[u] || c.listeners[f]) || re.addListener(n, u, x);
1816
+ c.listeners && (c.listeners[u] || c.listeners[p]) || re.addListener(n, u, k);
1817
1817
  } else {
1818
- if (p.startsWith("on") && x === void 0)
1818
+ if (d.startsWith("on") && k === void 0)
1819
1819
  continue;
1820
- if (x == null || x === !1)
1821
- n.removeAttribute(p);
1822
- else if ((e.props?.isCustomElement ?? !1) || p in n)
1820
+ if (k == null || k === !1)
1821
+ n.removeAttribute(d);
1822
+ else if ((e.props?.isCustomElement ?? !1) || d in n)
1823
1823
  try {
1824
- const f = typeof x == "object" && x !== null && R(x) ? x : typeof x == "object" && x !== null && typeof x.value < "u" ? x.value : x;
1825
- if (p === "disabled" && Y(n)) {
1826
- const g = a.disabled !== void 0 ? a.disabled : f, l = ke(g);
1827
- L(() => {
1824
+ const p = typeof k == "object" && k !== null && R(k) ? k : typeof k == "object" && k !== null && typeof k.value < "u" ? k.value : k;
1825
+ if (d === "disabled" && ee(n)) {
1826
+ const h = a.disabled !== void 0 ? a.disabled : p, l = ke(h);
1827
+ P(() => {
1828
1828
  n.disabled = l;
1829
- }), L(l ? () => {
1830
- n.setAttribute(p, "");
1829
+ }), P(l ? () => {
1830
+ n.setAttribute(d, "");
1831
1831
  } : () => {
1832
- n.removeAttribute(p);
1832
+ n.removeAttribute(d);
1833
1833
  });
1834
1834
  continue;
1835
1835
  }
1836
1836
  try {
1837
- if (typeof n[p] == "boolean") {
1838
- let l = f;
1839
- typeof f == "string" ? f === "false" ? l = !1 : f === "true" ? l = !0 : l = !!f && f !== "" : l = !!f, n[p] = l;
1837
+ if (typeof n[d] == "boolean") {
1838
+ let l = p;
1839
+ typeof p == "string" ? p === "false" ? l = !1 : p === "true" ? l = !0 : l = !!p && p !== "" : l = !!p, n[d] = l;
1840
1840
  } else
1841
- n[p] = f;
1841
+ n[d] = p;
1842
1842
  } catch {
1843
- n[p] = f;
1843
+ n[d] = p;
1844
1844
  }
1845
1845
  } catch {
1846
1846
  }
1847
1847
  }
1848
1848
  }
1849
- for (const [p, x] of Object.entries(
1849
+ for (const [d, k] of Object.entries(
1850
1850
  c.listeners || {}
1851
1851
  ))
1852
- re.addListener(n, p, x);
1853
- const y = {
1852
+ re.addListener(n, d, k);
1853
+ const m = {
1854
1854
  ...e,
1855
1855
  props: {
1856
1856
  ...e.props,
1857
1857
  ...c.props
1858
1858
  }
1859
1859
  };
1860
- Se(y, n, r);
1860
+ Te(m, n, r);
1861
1861
  try {
1862
1862
  if (typeof n._applyProps == "function")
1863
1863
  try {
@@ -1868,30 +1868,30 @@ function X(e, t, r) {
1868
1868
  } catch {
1869
1869
  }
1870
1870
  if (Array.isArray(e.children))
1871
- for (const p of e.children)
1872
- n.appendChild(X(p, t, r));
1871
+ for (const d of e.children)
1872
+ n.appendChild(Y(d, t, r));
1873
1873
  else typeof e.children == "string" && (n.textContent = e.children);
1874
1874
  try {
1875
- if (n instanceof HTMLSelectElement && d && d.hasOwnProperty("value"))
1875
+ if (n instanceof HTMLSelectElement && f && f.hasOwnProperty("value"))
1876
1876
  try {
1877
- n.value = d.value ?? "";
1877
+ n.value = f.value ?? "";
1878
1878
  } catch {
1879
1879
  }
1880
1880
  } catch {
1881
1881
  }
1882
1882
  try {
1883
- if (Y(n)) {
1884
- const p = a.disabled, x = d.disabled, u = p && typeof p == "object" && "value" in p;
1885
- let f = !1;
1883
+ if (ee(n)) {
1884
+ const d = a.disabled, k = f.disabled, u = d && typeof d == "object" && "value" in d;
1885
+ let p = !1;
1886
1886
  try {
1887
- f = !!R(p);
1887
+ p = !!R(d);
1888
1888
  } catch {
1889
- f = !1;
1889
+ p = !1;
1890
1890
  }
1891
- const l = f || u || ct(p) ? p : x, m = ke(l);
1892
- L(() => {
1893
- n.disabled = m;
1894
- }), L(m ? () => {
1891
+ const l = p || u || lt(d) ? d : k, y = ke(l);
1892
+ P(() => {
1893
+ n.disabled = y;
1894
+ }), P(y ? () => {
1895
1895
  n.setAttribute("disabled", "");
1896
1896
  } : () => {
1897
1897
  n.removeAttribute("disabled");
@@ -1901,227 +1901,273 @@ function X(e, t, r) {
1901
1901
  }
1902
1902
  return n;
1903
1903
  }
1904
- function un(e, t, r, n, o) {
1904
+ function fn(e, t, r, n, o) {
1905
1905
  if (typeof r == "string") {
1906
1906
  e.textContent !== r && (e.textContent = r);
1907
1907
  return;
1908
1908
  }
1909
1909
  if (!Array.isArray(r)) return;
1910
1910
  const i = e.childNodes, s = [];
1911
- for (let f = 0; f < i.length; f++)
1912
- s.push(i[f]);
1911
+ for (let p = 0; p < i.length; p++)
1912
+ s.push(i[p]);
1913
1913
  const c = Array.isArray(t) ? t : [], a = e._transitionGroup;
1914
1914
  if (a) {
1915
- const f = e._hasTransitionGroupRendered || !1;
1916
- f || (e._hasTransitionGroupRendered = !0);
1917
- const g = (w) => typeof w == "string" && w.startsWith("each-") ? w.substring(5) : w, l = [], m = [];
1915
+ const p = (w) => typeof w == "string" && w.startsWith("each-") ? w.substring(5) : w, h = [], l = [];
1918
1916
  for (const w of r)
1919
1917
  if (w && w.tag === "#anchor") {
1920
- const _ = Array.isArray(w.children) ? w.children : [];
1921
- for (const C of _) {
1922
- const h = g(C.key || w.key || "unknown");
1923
- l.push({ ...C, key: h });
1918
+ const x = Array.isArray(w.children) ? w.children : [];
1919
+ for (const _ of x) {
1920
+ const C = p(_.key || w.key || "unknown");
1921
+ h.push({ ..._, key: C });
1924
1922
  }
1925
- } else w && l.push({ ...w, key: g(w.key) });
1923
+ } else w && h.push({ ...w, key: p(w.key) });
1926
1924
  for (const w of c)
1927
1925
  if (w && w.tag === "#anchor") {
1928
- const _ = Array.isArray(w.children) ? w.children : [];
1929
- for (const C of _) {
1930
- const h = g(C.key || w.key || "unknown");
1931
- m.push({ ...C, key: h });
1926
+ const x = Array.isArray(w.children) ? w.children : [];
1927
+ for (const _ of x) {
1928
+ const C = p(_.key || w.key || "unknown");
1929
+ l.push({ ..._, key: C });
1932
1930
  }
1933
- } else w && m.push({ ...w, key: g(w.key) });
1934
- if (l.some((w) => w && w.key != null) || m.some((w) => w && w.key != null)) {
1935
- const w = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map();
1936
- for (const E of m)
1937
- if (E && E.key != null) {
1938
- const v = String(E.key);
1939
- w.set(v, E);
1931
+ } else w && l.push({ ...w, key: p(w.key) });
1932
+ if (h.some((w) => w && w.key != null) || l.some((w) => w && w.key != null)) {
1933
+ const w = /* @__PURE__ */ new Map(), x = /* @__PURE__ */ new Map();
1934
+ for (const $ of l)
1935
+ if ($ && $.key != null) {
1936
+ const v = String($.key);
1937
+ w.set(v, $);
1940
1938
  }
1941
- for (let E = 0; E < s.length; E++) {
1942
- const v = s[E];
1943
- let $ = v.key;
1944
- if (!$ && v instanceof Element) {
1945
- const S = v.getAttribute("data-anchor-key");
1946
- S && ($ = S);
1939
+ for (let $ = 0; $ < s.length; $++) {
1940
+ const v = s[$];
1941
+ let A = v.key;
1942
+ if (!A && v instanceof Element) {
1943
+ const L = v.getAttribute("data-anchor-key");
1944
+ L && (A = L);
1947
1945
  }
1948
- if ($ = g($), $ != null && v instanceof Element && v.nodeType === Node.ELEMENT_NODE) {
1949
- let S = typeof $ == "string" && $.includes(":") ? $.substring(0, $.lastIndexOf(":")) : $;
1950
- S = String(S), _.set(S, v);
1946
+ if (A = p(A), A != null && v instanceof Element && v.nodeType === Node.ELEMENT_NODE) {
1947
+ let L = typeof A == "string" && A.includes(":") ? A.substring(0, A.lastIndexOf(":")) : A;
1948
+ L = String(L), x.set(L, v);
1951
1949
  }
1952
1950
  }
1953
- const C = /* @__PURE__ */ new Set(), h = [];
1954
- for (const E of l) {
1955
- let v = E.key;
1951
+ const _ = /* @__PURE__ */ new Set(), C = /* @__PURE__ */ new Map(), g = s.length > 0;
1952
+ if (a.moveClass && g)
1953
+ for (let $ = 0; $ < s.length; $++) {
1954
+ const v = s[$];
1955
+ if (v instanceof HTMLElement && v.parentElement) {
1956
+ const A = v.getBoundingClientRect();
1957
+ C.set(v, A);
1958
+ }
1959
+ }
1960
+ const S = [];
1961
+ for (const $ of h) {
1962
+ let v = $.key;
1956
1963
  if (v == null) continue;
1957
1964
  v = String(v);
1958
- const $ = w.get(v);
1959
- let S = _.get(v);
1960
- if (S && $) {
1961
- const P = Te(S, $, E, n);
1962
- C.add(S);
1963
- const A = String(v);
1964
- P.key = A, P instanceof Element && P.setAttribute("data-anchor-key", A), h.push({ node: P, key: v, newVNode: E, oldVNode: $, isNew: !1 });
1965
+ const A = w.get(v);
1966
+ let L = x.get(v);
1967
+ if (L && A) {
1968
+ const E = Oe(L, A, $, n);
1969
+ _.add(L);
1970
+ const O = String(v);
1971
+ E.key = O, E instanceof Element && E.setAttribute("data-anchor-key", O), S.push({ node: E, key: v, newVNode: $, oldVNode: A, isNew: !1 });
1965
1972
  } else {
1966
- S = X(E, n), S.key = v, S instanceof Element && S.setAttribute("data-anchor-key", String(v)), e.appendChild(S);
1967
- const A = !!f || a.appear === !0;
1968
- S instanceof HTMLElement && A && Ee(S, a).catch((j) => {
1969
- N("Enter transition error:", j);
1970
- }), h.push({ node: S, key: v, newVNode: E, isNew: !0 });
1973
+ L = Y($, n), L.key = v, L instanceof Element && L.setAttribute("data-anchor-key", String(v)), e.appendChild(L);
1974
+ const E = g || a.appear === !0;
1975
+ L instanceof HTMLElement && E && _e(L, a).catch((O) => {
1976
+ F("Enter transition error:", O);
1977
+ }), S.push({ node: L, key: v, newVNode: $, isNew: !0 });
1971
1978
  }
1972
1979
  }
1973
1980
  const T = [];
1974
- for (let E = 0; E < s.length; E++) {
1975
- const v = s[E], $ = v.key;
1976
- if (!C.has(v) && $ != null && v instanceof HTMLElement) {
1977
- const P = Ge(v, a).then(() => {
1981
+ for (let $ = 0; $ < s.length; $++) {
1982
+ const v = s[$], A = v.key;
1983
+ if (!_.has(v) && A != null && v instanceof HTMLElement) {
1984
+ const E = Ge(v, a).then(() => {
1978
1985
  e.contains(v) && e.removeChild(v);
1979
- }).catch((A) => {
1980
- N("Leave transition error:", A), e.contains(v) && e.removeChild(v);
1986
+ }).catch((O) => {
1987
+ F("Leave transition error:", O), e.contains(v) && e.removeChild(v);
1981
1988
  });
1982
- T.push(P);
1989
+ T.push(E);
1990
+ }
1991
+ }
1992
+ if (T.length === 0) {
1993
+ let $ = e.firstChild;
1994
+ for (const { node: v } of S)
1995
+ v !== $ && e.insertBefore(v, $), $ = v.nextSibling;
1996
+ if (a.moveClass && C.size > 0) {
1997
+ const v = [];
1998
+ for (const { node: A, isNew: L } of S)
1999
+ if (!L && A instanceof HTMLElement) {
2000
+ const E = C.get(A);
2001
+ if (E) {
2002
+ const O = A.getBoundingClientRect(), M = E.left - O.left, I = E.top - O.top;
2003
+ if (M !== 0 || I !== 0) {
2004
+ const ue = a.moveClass.split(/\s+/).filter((D) => D);
2005
+ v.push({ node: A, deltaX: M, deltaY: I, moveClasses: ue });
2006
+ }
2007
+ }
2008
+ }
2009
+ if (v.length > 0) {
2010
+ for (const { node: A, deltaX: L, deltaY: E } of v)
2011
+ A.style.transform = `translate(${L}px, ${E}px)`, A.style.transitionProperty = "none";
2012
+ e.offsetHeight, requestAnimationFrame(() => {
2013
+ requestAnimationFrame(() => {
2014
+ for (const { node: A, moveClasses: L } of v)
2015
+ for (const E of L)
2016
+ A.classList.add(E);
2017
+ requestAnimationFrame(() => {
2018
+ const A = a.moveClass || "", L = A.match(/duration-(\d+)/), E = L ? `${L[1]}ms` : "300ms", O = A.match(/ease-(out|in|in-out|linear)/), M = O ? `ease-${O[1]}` : "ease-out";
2019
+ for (const { node: I } of v)
2020
+ I.style.transition = `transform ${E} ${M}`;
2021
+ requestAnimationFrame(() => {
2022
+ for (const { node: I, moveClasses: ue } of v) {
2023
+ I.style.removeProperty("transform");
2024
+ const D = () => {
2025
+ for (const N of ue)
2026
+ I.classList.remove(N);
2027
+ I.style.removeProperty("transition"), I.removeEventListener("transitionend", D), I.removeEventListener("transitioncancel", D);
2028
+ };
2029
+ I.addEventListener("transitionend", D, { once: !0 }), I.addEventListener("transitioncancel", D, { once: !0 });
2030
+ }
2031
+ });
2032
+ });
2033
+ });
2034
+ });
2035
+ }
1983
2036
  }
1984
2037
  }
1985
- requestAnimationFrame(() => {
1986
- if (T.length > 0)
1987
- return;
1988
- let E = e.firstChild;
1989
- for (const { node: v } of h)
1990
- v !== E && e.insertBefore(v, E), E = v.nextSibling;
1991
- });
1992
2038
  return;
1993
2039
  }
1994
2040
  }
1995
- const d = /* @__PURE__ */ new Map();
1996
- for (const f of c)
1997
- f && f.key != null && d.set(f.key, f);
2041
+ const f = /* @__PURE__ */ new Map();
2042
+ for (const p of c)
2043
+ p && p.key != null && f.set(p.key, p);
1998
2044
  const b = /* @__PURE__ */ new Map();
1999
- for (let f = 0; f < s.length; f++) {
2000
- const g = s[f], l = g.key;
2001
- l != null && b.set(l, g);
2002
- }
2003
- const y = /* @__PURE__ */ new Set();
2004
- let p = e.firstChild;
2005
- function x(f, g) {
2006
- let l = f;
2007
- for (; l && (y.add(l), l !== g); )
2045
+ for (let p = 0; p < s.length; p++) {
2046
+ const h = s[p], l = h.key;
2047
+ l != null && b.set(l, h);
2048
+ }
2049
+ const m = /* @__PURE__ */ new Set();
2050
+ let d = e.firstChild;
2051
+ function k(p, h) {
2052
+ let l = p;
2053
+ for (; l && (m.add(l), l !== h); )
2008
2054
  l = l.nextSibling;
2009
2055
  }
2010
- function u(f, g, l, m, k, w = !0) {
2056
+ function u(p, h, l, y, w, x = !0) {
2011
2057
  const _ = [];
2012
- let C = f.nextSibling;
2013
- for (; C && C !== g; )
2058
+ let C = p.nextSibling;
2059
+ for (; C && C !== h; )
2014
2060
  _.push(C), C = C.nextSibling;
2015
- const h = Array.isArray(l) ? l : [];
2016
- if (m.some((E) => E && E.key != null) || h.some((E) => E && E.key != null)) {
2017
- const E = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map();
2018
- for (const A of h)
2019
- A && A.key != null && E.set(A.key, A);
2020
- for (const A of _) {
2021
- const j = A.key;
2022
- j != null && v.set(j, A);
2061
+ const g = Array.isArray(l) ? l : [];
2062
+ if (y.some((T) => T && T.key != null) || g.some((T) => T && T.key != null)) {
2063
+ const T = /* @__PURE__ */ new Map(), $ = /* @__PURE__ */ new Map();
2064
+ for (const E of g)
2065
+ E && E.key != null && T.set(E.key, E);
2066
+ for (const E of _) {
2067
+ const O = E.key;
2068
+ O != null && $.set(O, E);
2023
2069
  }
2024
- const $ = k && k.state === "visible" && h.length === 0 && m.length > 0, S = /* @__PURE__ */ new Set();
2025
- let P = f.nextSibling;
2026
- for (const A of m) {
2027
- let j;
2028
- if (A.key != null && v.has(A.key)) {
2029
- const F = E.get(A.key);
2030
- j = Te(
2031
- v.get(A.key),
2032
- F,
2033
- A,
2070
+ const v = w && w.state === "visible" && g.length === 0 && y.length > 0, A = /* @__PURE__ */ new Set();
2071
+ let L = p.nextSibling;
2072
+ for (const E of y) {
2073
+ let O;
2074
+ if (E.key != null && $.has(E.key)) {
2075
+ const M = T.get(E.key);
2076
+ O = Oe(
2077
+ $.get(E.key),
2078
+ M,
2079
+ E,
2034
2080
  n
2035
- ), S.add(j), k && j instanceof HTMLElement && $ && k.appear && Ee(j, k).catch((te) => {
2036
- N("Transition enter error (appear):", te);
2037
- }), j !== P && e.contains(j) && e.insertBefore(j, P);
2081
+ ), A.add(O), w && O instanceof HTMLElement && v && w.appear && _e(O, w).catch((I) => {
2082
+ F("Transition enter error (appear):", I);
2083
+ }), O !== L && e.contains(O) && e.insertBefore(O, L);
2038
2084
  } else
2039
- j = X(A, n), e.insertBefore(j, P), S.add(j), k && j instanceof HTMLElement && w && Ee(j, k).catch((F) => {
2040
- N("Transition enter error:", F);
2085
+ O = Y(E, n), e.insertBefore(O, L), A.add(O), w && O instanceof HTMLElement && x && _e(O, w).catch((M) => {
2086
+ F("Transition enter error:", M);
2041
2087
  });
2042
- P = j.nextSibling;
2088
+ L = O.nextSibling;
2043
2089
  }
2044
- for (const A of _)
2045
- !S.has(A) && e.contains(A) && (k && A instanceof HTMLElement && w ? Ge(A, k).then(() => {
2046
- e.contains(A) && e.removeChild(A);
2047
- }).catch((j) => {
2048
- N("Transition leave error:", j), e.contains(A) && e.removeChild(A);
2049
- }) : e.removeChild(A));
2090
+ for (const E of _)
2091
+ !A.has(E) && e.contains(E) && (w && E instanceof HTMLElement && x ? Ge(E, w).then(() => {
2092
+ e.contains(E) && e.removeChild(E);
2093
+ }).catch((O) => {
2094
+ F("Transition leave error:", O), e.contains(E) && e.removeChild(E);
2095
+ }) : e.removeChild(E));
2050
2096
  } else {
2051
- const E = Math.min(
2052
- h.length,
2053
- m.length
2097
+ const T = Math.min(
2098
+ g.length,
2099
+ y.length
2054
2100
  );
2055
- for (let v = 0; v < E; v++) {
2056
- const $ = h[v], S = m[v], P = Te(_[v], $, S, n);
2057
- P !== _[v] && (e.insertBefore(P, _[v]), e.removeChild(_[v]));
2101
+ for (let $ = 0; $ < T; $++) {
2102
+ const v = g[$], A = y[$], L = Oe(_[$], v, A, n);
2103
+ L !== _[$] && (e.insertBefore(L, _[$]), e.removeChild(_[$]));
2058
2104
  }
2059
- for (let v = E; v < m.length; v++) {
2060
- const $ = X(m[v], n);
2061
- e.insertBefore($, g), k && $ instanceof HTMLElement && w && Ee($, k).catch((S) => {
2062
- N("Transition enter error:", S);
2105
+ for (let $ = T; $ < y.length; $++) {
2106
+ const v = Y(y[$], n);
2107
+ e.insertBefore(v, h), w && v instanceof HTMLElement && x && _e(v, w).catch((A) => {
2108
+ F("Transition enter error:", A);
2063
2109
  });
2064
2110
  }
2065
- for (let v = E; v < _.length; v++) {
2066
- const $ = _[v];
2067
- k && $ instanceof HTMLElement && w ? Ge($, k).then(() => {
2068
- e.contains($) && e.removeChild($);
2069
- }).catch((S) => {
2070
- N("Transition leave error:", S), e.contains($) && e.removeChild($);
2071
- }) : e.removeChild($);
2111
+ for (let $ = T; $ < _.length; $++) {
2112
+ const v = _[$];
2113
+ w && v instanceof HTMLElement && x ? Ge(v, w).then(() => {
2114
+ e.contains(v) && e.removeChild(v);
2115
+ }).catch((A) => {
2116
+ F("Transition leave error:", A), e.contains(v) && e.removeChild(v);
2117
+ }) : e.removeChild(v);
2072
2118
  }
2073
2119
  }
2074
2120
  }
2075
- for (const f of r) {
2076
- let g;
2077
- if (f.tag === "#anchor") {
2078
- const l = f.key, m = `${l}:start`, k = `${l}:end`;
2079
- let w = b.get(m), _ = b.get(k);
2080
- const C = Array.isArray(f.children) ? f.children : [];
2081
- if (w || (w = document.createTextNode(""), w.key = m), _ || (_ = document.createTextNode(""), _.key = k), f._startNode = w, f._endNode = _, !e.contains(w) || !e.contains(_)) {
2082
- e.insertBefore(w, p);
2083
- const h = f._transition, E = !(h && h.state === "visible" && C.length > 0) || h.appear;
2084
- for (const v of C) {
2085
- const $ = X(v, n);
2086
- e.insertBefore($, p), h && $ instanceof HTMLElement && E && Ee($, h).catch((S) => {
2087
- N("Transition enter error:", S);
2121
+ for (const p of r) {
2122
+ let h;
2123
+ if (p.tag === "#anchor") {
2124
+ const l = p.key, y = `${l}:start`, w = `${l}:end`;
2125
+ let x = b.get(y), _ = b.get(w);
2126
+ const C = Array.isArray(p.children) ? p.children : [];
2127
+ if (x || (x = document.createTextNode(""), x.key = y), _ || (_ = document.createTextNode(""), _.key = w), p._startNode = x, p._endNode = _, !e.contains(x) || !e.contains(_)) {
2128
+ e.insertBefore(x, d);
2129
+ const g = p._transition, T = !(g && g.state === "visible" && C.length > 0) || g.appear;
2130
+ for (const $ of C) {
2131
+ const v = Y($, n);
2132
+ e.insertBefore(v, d), g && v instanceof HTMLElement && T && _e(v, g).catch((A) => {
2133
+ F("Transition enter error:", A);
2088
2134
  });
2089
2135
  }
2090
- e.insertBefore(_, p);
2136
+ e.insertBefore(_, d);
2091
2137
  } else {
2092
- const h = f._transition, E = d.get(l)?._transition, v = E && E.state !== h?.state, $ = h && h.state === "visible" && C.length > 0 && !v, S = v || !$ || h?.appear === !0;
2138
+ const g = p._transition, T = f.get(l)?._transition, $ = T && T.state !== g?.state, v = g && g.state === "visible" && C.length > 0 && !$, A = $ || !v || g?.appear === !0;
2093
2139
  u(
2094
- w,
2140
+ x,
2095
2141
  _,
2096
- d.get(l)?.children,
2142
+ f.get(l)?.children,
2097
2143
  C,
2098
- h,
2099
- S
2144
+ g,
2145
+ A
2100
2146
  );
2101
2147
  }
2102
- x(w, _), p = _.nextSibling;
2148
+ k(x, _), d = _.nextSibling;
2103
2149
  continue;
2104
2150
  }
2105
- if (f.key != null && b.has(f.key)) {
2106
- const l = d.get(f.key);
2107
- g = Te(
2108
- b.get(f.key),
2151
+ if (p.key != null && b.has(p.key)) {
2152
+ const l = f.get(p.key);
2153
+ h = Oe(
2154
+ b.get(p.key),
2109
2155
  l,
2110
- f,
2156
+ p,
2111
2157
  n,
2112
2158
  o
2113
- ), y.add(g), g !== p && e.contains(g) && (p && !e.contains(p) && (p = null), e.insertBefore(g, p));
2159
+ ), m.add(h), h !== d && e.contains(h) && (d && !e.contains(d) && (d = null), e.insertBefore(h, d));
2114
2160
  } else
2115
- g = X(f, n, o), p && !e.contains(p) && (p = null), e.insertBefore(g, p), y.add(g);
2116
- p = g.nextSibling;
2161
+ h = Y(p, n, o), d && !e.contains(d) && (d = null), e.insertBefore(h, d), m.add(h);
2162
+ d = h.nextSibling;
2117
2163
  }
2118
- for (let f = 0; f < s.length; f++) {
2119
- const g = s[f];
2120
- !y.has(g) && e.contains(g) && (ge(g, o), e.removeChild(g));
2164
+ for (let p = 0; p < s.length; p++) {
2165
+ const h = s[p];
2166
+ !m.has(h) && e.contains(h) && (me(h, o), e.removeChild(h));
2121
2167
  }
2122
2168
  }
2123
- function Te(e, t, r, n, o) {
2124
- if (t && typeof t != "string" && t.props?.ref && o && ge(e, o), t === r) return e;
2169
+ function Oe(e, t, r, n, o) {
2170
+ if (t && typeof t != "string" && t.props?.ref && o && me(e, o), t === r) return e;
2125
2171
  if (typeof r == "string") {
2126
2172
  if (e.nodeType === Node.TEXT_NODE)
2127
2173
  return e.textContent !== r && (e.textContent = r), e;
@@ -2131,81 +2177,81 @@ function Te(e, t, r, n, o) {
2131
2177
  }
2132
2178
  }
2133
2179
  if (r && typeof r != "string" && r.tag === "#anchor") {
2134
- const s = r, c = Array.isArray(s.children) ? s.children : [], a = s._startNode ?? document.createTextNode(""), d = s._endNode ?? document.createTextNode("");
2135
- s.key != null && (a.key = `${s.key}:start`, d.key = `${s.key}:end`), s._startNode = a, s._endNode = d;
2180
+ const s = r, c = Array.isArray(s.children) ? s.children : [], a = s._startNode ?? document.createTextNode(""), f = s._endNode ?? document.createTextNode("");
2181
+ s.key != null && (a.key = `${s.key}:start`, f.key = `${s.key}:end`), s._startNode = a, s._endNode = f;
2136
2182
  const b = document.createDocumentFragment();
2137
2183
  b.appendChild(a);
2138
- for (const y of c) {
2139
- const p = X(y, n);
2140
- b.appendChild(p);
2184
+ for (const m of c) {
2185
+ const d = Y(m, n);
2186
+ b.appendChild(d);
2141
2187
  }
2142
- return b.appendChild(d), e.parentNode?.replaceChild(b, e), a;
2188
+ return b.appendChild(f), e.parentNode?.replaceChild(b, e), a;
2143
2189
  }
2144
2190
  if (!r) {
2145
- ge(e, o);
2191
+ me(e, o);
2146
2192
  const s = document.createComment("removed");
2147
2193
  return e.parentNode?.replaceChild(s, e), s;
2148
2194
  }
2149
2195
  if (!t || typeof t == "string") {
2150
- ge(e, o);
2151
- const s = X(r, n, o);
2152
- return Se(r, s, o), e.parentNode?.replaceChild(s, e), s;
2196
+ me(e, o);
2197
+ const s = Y(r, n, o);
2198
+ return Te(r, s, o), e.parentNode?.replaceChild(s, e), s;
2153
2199
  }
2154
2200
  if (r.tag === "#anchor") {
2155
2201
  const s = Array.isArray(r.children) ? r.children : [], c = r._startNode ?? document.createTextNode(""), a = r._endNode ?? document.createTextNode("");
2156
2202
  r.key != null && (c.key = `${r.key}:start`, a.key = `${r.key}:end`), r._startNode = c, r._endNode = a;
2157
- const d = document.createDocumentFragment();
2158
- d.appendChild(c);
2203
+ const f = document.createDocumentFragment();
2204
+ f.appendChild(c);
2159
2205
  for (const b of s)
2160
- d.appendChild(X(b, n));
2161
- return d.appendChild(a), e.parentNode?.replaceChild(d, e), c;
2206
+ f.appendChild(Y(b, n));
2207
+ return f.appendChild(a), e.parentNode?.replaceChild(f, e), c;
2162
2208
  }
2163
2209
  if (typeof t != "string" && typeof r != "string" && t.tag === r.tag && t.key === r.key) {
2164
2210
  const s = e;
2165
- return bt(s, t.props || {}, r.props || {}, n), un(s, t.children, r.children, n, o), Se(r, s, o), s;
2211
+ return wt(s, t.props || {}, r.props || {}, n), fn(s, t.children, r.children, n, o), Te(r, s, o), s;
2166
2212
  }
2167
2213
  if (typeof t != "string" && typeof r != "string" && t.tag === r.tag && (t.tag && String(t.tag).includes("-") || r.props && r.props.isCustomElement || t.props && t.props.isCustomElement))
2168
2214
  try {
2169
2215
  const c = e;
2170
- return bt(c, t.props || {}, r.props || {}, n), Se(r, c, o), c;
2216
+ return wt(c, t.props || {}, r.props || {}, n), Te(r, c, o), c;
2171
2217
  } catch {
2172
2218
  }
2173
- ge(e, o);
2174
- const i = X(r, n, o);
2175
- return Se(r, i, o), e.parentNode?.replaceChild(i, e), i;
2219
+ me(e, o);
2220
+ const i = Y(r, n, o);
2221
+ return Te(r, i, o), e.parentNode?.replaceChild(i, e), i;
2176
2222
  }
2177
- function fn(e, t, r, n) {
2223
+ function dn(e, t, r, n) {
2178
2224
  let o;
2179
2225
  Array.isArray(t) ? t.length === 1 ? (o = t[0], o && typeof o == "object" && o.key == null && (o = { ...o, key: "__root__" })) : o = { tag: "div", key: "__root__", children: t } : (o = t, o && typeof o == "object" && o.key == null && (o = { ...o, key: "__root__" })), o && typeof o == "object" && o.tag === "#anchor" && (o = {
2180
2226
  tag: "div",
2181
2227
  key: "__anchor_root__",
2182
2228
  props: { attrs: { "data-anchor-block-root": "", key: "__anchor_root__" } },
2183
2229
  children: [o]
2184
- }), o = lt(o, String(o.key ?? "root"));
2230
+ }), o = ut(o, String(o.key ?? "root"));
2185
2231
  const i = e._prevVNode ?? null, s = e._prevDom ?? e.firstChild ?? null;
2186
2232
  let c;
2187
- i && s ? typeof i != "string" && typeof o != "string" && i.tag === o.tag && i.key === o.key ? c = Te(s, i, o, r, n) : (c = X(o, r, n), e.replaceChild(c, s)) : (c = X(o, r, n), e.firstChild ? e.replaceChild(c, e.firstChild) : e.appendChild(c));
2233
+ i && s ? typeof i != "string" && typeof o != "string" && i.tag === o.tag && i.key === o.key ? c = Oe(s, i, o, r, n) : (c = Y(o, r, n), e.replaceChild(c, s)) : (c = Y(o, r, n), e.firstChild ? e.replaceChild(c, e.firstChild) : e.appendChild(c));
2188
2234
  const a = [];
2189
- for (let d = 0; d < e.childNodes.length; d++) {
2190
- const b = e.childNodes[d];
2191
- b !== c && b.nodeName !== "STYLE" && (ge(b, n), a.push(b));
2235
+ for (let f = 0; f < e.childNodes.length; f++) {
2236
+ const b = e.childNodes[f];
2237
+ b !== c && b.nodeName !== "STYLE" && (me(b, n), a.push(b));
2192
2238
  }
2193
- a.forEach((d) => e.removeChild(d)), e._prevVNode = o, e._prevDom = c;
2239
+ a.forEach((f) => e.removeChild(f)), e._prevVNode = o, e._prevDom = c;
2194
2240
  }
2195
2241
  function Je(e) {
2196
- if (typeof e == "string") return Ce(e);
2242
+ if (typeof e == "string") return Ee(e);
2197
2243
  if (e.tag === "#text")
2198
- return typeof e.children == "string" ? Ce(e.children) : "";
2244
+ return typeof e.children == "string" ? Ee(e.children) : "";
2199
2245
  if (e.tag === "#anchor")
2200
2246
  return (Array.isArray(e.children) ? e.children.filter(Boolean) : []).map(Je).join("");
2201
2247
  let t = "";
2202
- e.props && e.props.attrs && (t = Object.entries(e.props.attrs).map(([o, i]) => ` ${o}="${Ce(String(i))}"`).join(""));
2248
+ e.props && e.props.attrs && (t = Object.entries(e.props.attrs).map(([o, i]) => ` ${o}="${Ee(String(i))}"`).join(""));
2203
2249
  let r = "";
2204
- e.props && (r = Object.entries(e.props).filter(([o]) => o !== "attrs" && o !== "directives" && o !== "ref" && o !== "key").map(([o, i]) => ` ${o}="${Ce(String(i))}"`).join(""));
2205
- const n = Array.isArray(e.children) ? e.children.filter(Boolean).map(Je).join("") : typeof e.children == "string" ? Ce(e.children) : e.children ? Je(e.children) : "";
2250
+ e.props && (r = Object.entries(e.props).filter(([o]) => o !== "attrs" && o !== "directives" && o !== "ref" && o !== "key").map(([o, i]) => ` ${o}="${Ee(String(i))}"`).join(""));
2251
+ const n = Array.isArray(e.children) ? e.children.filter(Boolean).map(Je).join("") : typeof e.children == "string" ? Ee(e.children) : e.children ? Je(e.children) : "";
2206
2252
  return `<${e.tag}${t}${r}>${n}</${e.tag}>`;
2207
2253
  }
2208
- function dn(e, ...t) {
2254
+ function pn(e, ...t) {
2209
2255
  let r = "";
2210
2256
  for (let n = 0; n < e.length; n++)
2211
2257
  r += e[n], n < t.length && (r += t[n]);
@@ -2214,14 +2260,14 @@ function dn(e, ...t) {
2214
2260
  function Dt(e) {
2215
2261
  return e.replace(/\/\*[\s\S]*?\*\//g, "").replace(/\s+/g, " ").replace(/\s*([{}:;,>+~])\s*/g, "$1").replace(/;}/g, "}").trim();
2216
2262
  }
2217
- let Fe = null;
2218
- function wt() {
2219
- return Fe || (Fe = new CSSStyleSheet(), Fe.replaceSync(Dt(hn))), Fe;
2263
+ let We = null;
2264
+ function vt() {
2265
+ return We || (We = new CSSStyleSheet(), We.replaceSync(Dt(gn))), We;
2220
2266
  }
2221
- function pn(e) {
2267
+ function hn(e) {
2222
2268
  return e.replace(/url\s*\(\s*['"]?javascript:[^)]*\)/gi, "").replace(/<script[\s\S]*?>[\s\S]*?<\/script>/gi, "").replace(/expression\s*\([^)]*\)/gi, "");
2223
2269
  }
2224
- const hn = dn`
2270
+ const gn = pn`
2225
2271
  :host,
2226
2272
  *,
2227
2273
  ::before,
@@ -2332,7 +2378,7 @@ const hn = dn`
2332
2378
  [hidden] {
2333
2379
  display: none;
2334
2380
  }
2335
- `, gn = {
2381
+ `, mn = {
2336
2382
  // Existing semantic colors
2337
2383
  neutral: {
2338
2384
  50: "#fafafa",
@@ -2430,8 +2476,8 @@ const hn = dn`
2430
2476
  black: { DEFAULT: "#000000" },
2431
2477
  transparent: { DEFAULT: "transparent" },
2432
2478
  current: { DEFAULT: "currentColor" }
2433
- }, Nt = Object.fromEntries(
2434
- Object.entries(gn).map(([e, t]) => [
2479
+ }, Ht = Object.fromEntries(
2480
+ Object.entries(mn).map(([e, t]) => [
2435
2481
  e,
2436
2482
  Object.fromEntries(
2437
2483
  Object.entries(t).map(([r, n]) => [
@@ -2440,7 +2486,7 @@ const hn = dn`
2440
2486
  ])
2441
2487
  )
2442
2488
  ])
2443
- ), he = "0.25rem", mn = {
2489
+ ), pe = "0.25rem", yn = {
2444
2490
  "3xs": 64,
2445
2491
  "2xs": 72,
2446
2492
  xs: 80,
@@ -2485,7 +2531,7 @@ const hn = dn`
2485
2531
  gap: ["gap"],
2486
2532
  "gap-x": ["column-gap"],
2487
2533
  "gap-y": ["row-gap"]
2488
- }, yn = () => {
2534
+ }, bn = () => {
2489
2535
  const e = {};
2490
2536
  e["@container"] = "container-type:inline-size;", [
2491
2537
  "block",
@@ -2609,8 +2655,8 @@ const hn = dn`
2609
2655
  ["text-7xl", "4.5rem", "1"],
2610
2656
  ["text-8xl", "6rem", "1"],
2611
2657
  ["text-9xl", "8rem", "1"]
2612
- ].forEach(([a, d, b]) => {
2613
- e[a] = `font-size:${d};line-height:${b};`;
2658
+ ].forEach(([a, f, b]) => {
2659
+ e[a] = `font-size:${f};line-height:${b};`;
2614
2660
  }), [
2615
2661
  ["tracking-tighter", "-0.05em"],
2616
2662
  ["tracking-tight", "-0.025em"],
@@ -2618,8 +2664,8 @@ const hn = dn`
2618
2664
  ["tracking-wide", "0.025em"],
2619
2665
  ["tracking-wider", "0.05em"],
2620
2666
  ["tracking-widest", "0.1em"]
2621
- ].forEach(([a, d]) => {
2622
- e[a] = `letter-spacing:${d};`;
2667
+ ].forEach(([a, f]) => {
2668
+ e[a] = `letter-spacing:${f};`;
2623
2669
  }), [
2624
2670
  ["leading-3", "0.75rem"],
2625
2671
  ["leading-4", "1rem"],
@@ -2635,13 +2681,13 @@ const hn = dn`
2635
2681
  ["leading-normal", "1.5"],
2636
2682
  ["leading-relaxed", "1.625"],
2637
2683
  ["leading-loose", "2"]
2638
- ].forEach(([a, d]) => {
2639
- e[a] = `line-height:${d};`;
2684
+ ].forEach(([a, f]) => {
2685
+ e[a] = `line-height:${f};`;
2640
2686
  });
2641
2687
  const i = [0, 1, 2, 4, 6, 8];
2642
2688
  for (const a of i) {
2643
- const d = `${a}px`;
2644
- e[`border-${a}`] = `border-width:${d};`, e[`border-t-${a}`] = `border-top-width:${d};`, e[`border-r-${a}`] = `border-right-width:${d};`, e[`border-b-${a}`] = `border-bottom-width:${d};`, e[`border-l-${a}`] = `border-left-width:${d};`, e[`border-x-${a}`] = `border-left-width:${d};border-right-width:${d};`, e[`border-y-${a}`] = `border-top-width:${d};border-bottom-width:${d};`;
2689
+ const f = `${a}px`;
2690
+ e[`border-${a}`] = `border-width:${f};`, e[`border-t-${a}`] = `border-top-width:${f};`, e[`border-r-${a}`] = `border-right-width:${f};`, e[`border-b-${a}`] = `border-bottom-width:${f};`, e[`border-l-${a}`] = `border-left-width:${f};`, e[`border-x-${a}`] = `border-left-width:${f};border-right-width:${f};`, e[`border-y-${a}`] = `border-top-width:${f};border-bottom-width:${f};`;
2645
2691
  }
2646
2692
  Object.assign(e, {
2647
2693
  "font-sans": "font-family:var(--font-sans, ui-sans-serif,system-ui,sans-serif);",
@@ -2672,8 +2718,8 @@ const hn = dn`
2672
2718
  "4xl": 32,
2673
2719
  full: 9999
2674
2720
  };
2675
- for (const [a, d] of Object.entries(s)) {
2676
- const b = d === 9999 ? "9999px" : `${d / 16}rem`;
2721
+ for (const [a, f] of Object.entries(s)) {
2722
+ const b = f === 9999 ? "9999px" : `${f / 16}rem`;
2677
2723
  e[`rounded-${a}`] = `border-radius:${b};`, e[`rounded-t-${a}`] = `border-top-left-radius:${b};border-top-right-radius:${b};`, e[`rounded-r-${a}`] = `border-top-right-radius:${b};border-bottom-right-radius:${b};`, e[`rounded-b-${a}`] = `border-bottom-left-radius:${b};border-bottom-right-radius:${b};`, e[`rounded-l-${a}`] = `border-top-left-radius:${b};border-bottom-left-radius:${b};`, e[`rounded-tl-${a}`] = `border-top-left-radius:${b};`, e[`rounded-tr-${a}`] = `border-top-right-radius:${b};`, e[`rounded-br-${a}`] = `border-bottom-right-radius:${b};`, e[`rounded-bl-${a}`] = `border-bottom-left-radius:${b};`;
2678
2724
  }
2679
2725
  Object.assign(e, {
@@ -2740,8 +2786,8 @@ const hn = dn`
2740
2786
  "mx-auto": "margin-inline:auto;",
2741
2787
  "my-auto": "margin-block:auto;"
2742
2788
  });
2743
- for (const [a, d] of Object.entries(mn))
2744
- e[`max-w-${a}`] = `max-width:calc(${he} * ${d});`, e[`min-w-${a}`] = `min-width:calc(${he} * ${d});`, e[`w-${a}`] = `width:calc(${he} * ${d});`, e[`max-h-${a}`] = `max-height:calc(${he} * ${d});`, e[`min-h-${a}`] = `min-height:calc(${he} * ${d});`, e[`h-${a}`] = `height:calc(${he} * ${d});`;
2789
+ for (const [a, f] of Object.entries(yn))
2790
+ e[`max-w-${a}`] = `max-width:calc(${pe} * ${f});`, e[`min-w-${a}`] = `min-width:calc(${pe} * ${f});`, e[`w-${a}`] = `width:calc(${pe} * ${f});`, e[`max-h-${a}`] = `max-height:calc(${pe} * ${f});`, e[`min-h-${a}`] = `min-height:calc(${pe} * ${f});`, e[`h-${a}`] = `height:calc(${pe} * ${f});`;
2745
2791
  Object.assign(e, {
2746
2792
  transition: "transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;",
2747
2793
  "transition-none": "transition-property:none;",
@@ -2858,7 +2904,7 @@ const hn = dn`
2858
2904
  "bg-conic-at-l": "background-image:conic-gradient(from 0deg at left, var(--tw-gradient-stops));",
2859
2905
  "bg-conic-at-tl": "background-image:conic-gradient(from 0deg at top left, var(--tw-gradient-stops));"
2860
2906
  }), e;
2861
- }, Qe = yn();
2907
+ }, Ye = bn();
2862
2908
  function Q(e, t) {
2863
2909
  let r = 0;
2864
2910
  for (let n = 0; n < e.length; n++) {
@@ -2870,7 +2916,7 @@ function Q(e, t) {
2870
2916
  }
2871
2917
  return e + t;
2872
2918
  }
2873
- const bn = {
2919
+ const wn = {
2874
2920
  before: (e, t) => `${e}::before{${t}}`,
2875
2921
  after: (e, t) => `${e}::after{${t}}`,
2876
2922
  hover: (e, t) => `${Q(e, ":hover")}{${t}}`,
@@ -2893,14 +2939,14 @@ const bn = {
2893
2939
  "peer-focus": (e, t) => `.peer:focus ~ ${e}{${t}}`,
2894
2940
  "peer-checked": (e, t) => `.peer:checked ~ ${e}{${t}}`,
2895
2941
  "peer-disabled": (e, t) => `.peer:disabled ~ ${e}{${t}}`
2896
- }, Ye = {
2942
+ }, Qe = {
2897
2943
  sm: "(min-width:640px)",
2898
2944
  md: "(min-width:768px)",
2899
2945
  lg: "(min-width:1024px)",
2900
2946
  xl: "(min-width:1280px)",
2901
2947
  "2xl": "(min-width:1536px)",
2902
2948
  dark: "(prefers-color-scheme: dark)"
2903
- }, vt = {
2949
+ }, xt = {
2904
2950
  xs: "(min-width:20rem)",
2905
2951
  sm: "(min-width:24rem)",
2906
2952
  md: "(min-width:28rem)",
@@ -2931,22 +2977,40 @@ function nt(e) {
2931
2977
  const o = r.slice(0, n), i = r.slice(n + 1);
2932
2978
  if (!Xe[o]) return null;
2933
2979
  if (i.includes("/")) {
2934
- const [a, d] = i.split("/").map((y) => parseFloat(y));
2935
- if (Number.isNaN(a) || Number.isNaN(d) || d === 0)
2980
+ const [a, f] = i.split("/").map((m) => parseFloat(m));
2981
+ if (Number.isNaN(a) || Number.isNaN(f) || f === 0)
2936
2982
  return null;
2937
- const b = a / d * 100;
2938
- return Xe[o].map((y) => `${y}:${b}%;`).join("");
2983
+ const b = a / f * 100;
2984
+ return Xe[o].map((m) => `${m}:${b}%;`).join("");
2939
2985
  }
2940
2986
  const s = parseFloat(i);
2941
2987
  if (Number.isNaN(s)) return null;
2942
2988
  const c = t ? "-" : "";
2943
- return Xe[o].map((a) => `${a}:calc(${c}${he} * ${s});`).join("");
2989
+ return Xe[o].map((a) => `${a}:calc(${c}${pe} * ${s});`).join("");
2990
+ }
2991
+ function rt(e) {
2992
+ const t = e.startsWith("-"), n = (t ? e.slice(1) : e).match(/^space-(x|y)-(.+)$/);
2993
+ if (!n) return null;
2994
+ const [, o, i] = n, s = o === "x";
2995
+ if (i === "reverse")
2996
+ return s ? "--tw-space-x-reverse:1;" : "--tw-space-y-reverse:1;";
2997
+ if (i.includes("/")) {
2998
+ const [b, m] = i.split("/").map((u) => parseFloat(u));
2999
+ if (Number.isNaN(b) || Number.isNaN(m) || m === 0)
3000
+ return null;
3001
+ const d = b / m * 100, k = t ? "-" : "";
3002
+ return s ? `--tw-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${k}${d}% * calc(1 - var(--tw-space-x-reverse)));margin-inline-end:calc(${k}${d}% * var(--tw-space-x-reverse));}` : `--tw-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${k}${d}% * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(${k}${d}% * var(--tw-space-y-reverse));}`;
3003
+ }
3004
+ const c = parseFloat(i);
3005
+ if (Number.isNaN(c)) return null;
3006
+ const f = `calc(${t ? "-" : ""}${pe} * ${c})`;
3007
+ return s ? `--tw-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${f} * calc(1 - var(--tw-space-x-reverse)));margin-inline-end:calc(${f} * var(--tw-space-x-reverse));}` : `--tw-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${f} * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(${f} * var(--tw-space-y-reverse));}`;
2944
3008
  }
2945
3009
  function kt(e) {
2946
3010
  const t = e.replace("#", ""), r = parseInt(t, 16);
2947
3011
  return `${r >> 16 & 255} ${r >> 8 & 255} ${r & 255}`;
2948
3012
  }
2949
- const wn = /^(bg|text|border|decoration|shadow|outline|caret|accent|fill|stroke)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/, vn = {
3013
+ const vn = /^(bg|text|border|decoration|shadow|outline|caret|accent|fill|stroke)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/, xn = {
2950
3014
  bg: "background-color",
2951
3015
  decoration: "text-decoration-color",
2952
3016
  text: "color",
@@ -2958,22 +3022,22 @@ const wn = /^(bg|text|border|decoration|shadow|outline|caret|accent|fill|stroke)
2958
3022
  stroke: "stroke"
2959
3023
  };
2960
3024
  function kn(e) {
2961
- const t = wn.exec(e);
3025
+ const t = vn.exec(e);
2962
3026
  if (!t) return null;
2963
- const [, r, n, o = "DEFAULT"] = t, i = Nt[n]?.[o];
3027
+ const [, r, n, o = "DEFAULT"] = t, i = Ht[n]?.[o];
2964
3028
  if (!i) return null;
2965
3029
  if (r === "shadow") return `--ce-shadow-color:${i};`;
2966
- const s = vn[r];
3030
+ const s = xn[r];
2967
3031
  return s ? `${s}:${i};` : null;
2968
3032
  }
2969
- function xn(e) {
3033
+ function $n(e) {
2970
3034
  const t = e.indexOf("/");
2971
3035
  if (t === -1) return { base: e };
2972
3036
  const r = e.slice(0, t), n = e.slice(t + 1), o = parseInt(n, 10);
2973
3037
  return isNaN(o) || o < 0 || o > 100 ? { base: r } : { base: r, opacity: o / 100 };
2974
3038
  }
2975
- function rt(e) {
2976
- const { base: t, opacity: r } = xn(e), n = kn(t);
3039
+ function ot(e) {
3040
+ const { base: t, opacity: r } = $n(e), n = kn(t);
2977
3041
  if (n && r !== void 0) {
2978
3042
  const i = /#([0-9a-f]{6})/i.exec(n);
2979
3043
  if (i) {
@@ -2995,10 +3059,10 @@ function rt(e) {
2995
3059
  }
2996
3060
  return o;
2997
3061
  }
2998
- function ot(e) {
3062
+ function it(e) {
2999
3063
  const t = /^(from|to|via)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/.exec(e);
3000
3064
  if (!t) return null;
3001
- const [, r, n, o = "DEFAULT"] = t, i = Nt[n]?.[o];
3065
+ const [, r, n, o = "DEFAULT"] = t, i = Ht[n]?.[o];
3002
3066
  if (!i) return null;
3003
3067
  switch (r) {
3004
3068
  case "from":
@@ -3011,7 +3075,7 @@ function ot(e) {
3011
3075
  return null;
3012
3076
  }
3013
3077
  }
3014
- function it(e) {
3078
+ function st(e) {
3015
3079
  const t = /^opacity-(\d{1,3})$/.exec(e);
3016
3080
  if (!t) return null;
3017
3081
  const r = parseInt(t[1], 10);
@@ -3022,8 +3086,8 @@ function Ke(e) {
3022
3086
  const s = e.slice(1, -1).trim(), c = s.indexOf(":");
3023
3087
  if (c === -1) return null;
3024
3088
  const a = s.slice(0, c).trim();
3025
- let d = s.slice(c + 1).trim();
3026
- return /^[a-zA-Z][a-zA-Z0-9-]*$/.test(a) ? (d = d.replace(/_/g, " "), d = d.replace(/url\('\s*([^']*?)\s*'\)/g, 'url("$1")'), d = d.replace(/^'([^']*)'$/g, '"$1"'), `${a}:${d};`) : null;
3089
+ let f = s.slice(c + 1).trim();
3090
+ return /^[a-zA-Z][a-zA-Z0-9-]*$/.test(a) ? (f = f.replace(/_/g, " "), f = f.replace(/url\('\s*([^']*?)\s*'\)/g, 'url("$1")'), f = f.replace(/^'([^']*)'$/g, '"$1"'), `${a}:${f};`) : null;
3027
3091
  }
3028
3092
  const t = e.indexOf("-[");
3029
3093
  if (t <= 0 || !e.endsWith("]")) return null;
@@ -3078,7 +3142,7 @@ function Ke(e) {
3078
3142
  const i = o[r] ?? r.replace(/_/g, "-");
3079
3143
  return i && n ? `${i}:${n};` : null;
3080
3144
  }
3081
- function $n(e) {
3145
+ function Cn(e) {
3082
3146
  if (e.startsWith("[") && e.endsWith("]")) {
3083
3147
  const r = e.slice(1, -1);
3084
3148
  return r.includes("&") ? r : e;
@@ -3090,10 +3154,10 @@ function $n(e) {
3090
3154
  }
3091
3155
  return null;
3092
3156
  }
3093
- function xt(e) {
3157
+ function $t(e) {
3094
3158
  return e.replace(/([!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~])/g, "\\$1");
3095
3159
  }
3096
- function Cn(e) {
3160
+ function En(e) {
3097
3161
  const t = /class\s*=\s*(['"])([\s\S]*?)\1/g, r = [];
3098
3162
  let n;
3099
3163
  for (; n = t.exec(e); ) {
@@ -3102,31 +3166,31 @@ function Cn(e) {
3102
3166
  }
3103
3167
  return r;
3104
3168
  }
3105
- const _e = /* @__PURE__ */ new Map(), En = 16, $t = 1e3;
3169
+ const Ae = /* @__PURE__ */ new Map(), _n = 16, Ct = 1e3;
3106
3170
  function It(e) {
3107
- const t = Date.now(), r = _e.get(e);
3108
- if (r && t - r.timestamp < En)
3171
+ const t = Date.now(), r = Ae.get(e);
3172
+ if (r && t - r.timestamp < _n)
3109
3173
  return r.css;
3110
- const n = Cn(e);
3174
+ const n = En(e);
3111
3175
  if (!n.length) return "";
3112
- const o = new Set(n), i = [[], [], [], []], s = {}, c = (f, g = !1) => {
3113
- const l = g ? `dark|${f}` : f;
3176
+ const o = new Set(n), i = [[], [], [], []], s = {}, c = (p, h = !1) => {
3177
+ const l = h ? `dark|${p}` : p;
3114
3178
  if (l in s) return s[l];
3115
- const m = y(f, g);
3116
- return s[l] = m, m;
3117
- }, a = (f) => {
3118
- const g = f.some((k) => et.includes(k)), l = f.some(
3119
- (k) => k.startsWith("@") && (tt.includes(k.slice(1)) || k.match(/^@\[.+\]$/))
3120
- ), m = f.includes("dark");
3121
- return f.length ? !g && !m && !l ? 1 : m && (g || l) ? 3 : 2 : 0;
3122
- }, d = (f) => {
3123
- const g = [];
3124
- let l = "", m = 0;
3125
- for (let k = 0; k < f.length; k++) {
3126
- const w = f[k];
3127
- w === "[" || w === "(" ? m++ : (w === "]" || w === ")") && m--, w === ":" && m === 0 ? (g.push(l), l = "") : l += w;
3179
+ const y = m(p, h);
3180
+ return s[l] = y, y;
3181
+ }, a = (p) => {
3182
+ const h = p.some((w) => et.includes(w)), l = p.some(
3183
+ (w) => w.startsWith("@") && (tt.includes(w.slice(1)) || w.match(/^@\[.+\]$/))
3184
+ ), y = p.includes("dark");
3185
+ return p.length ? !h && !y && !l ? 1 : y && (h || l) ? 3 : 2 : 0;
3186
+ }, f = (p) => {
3187
+ const h = [];
3188
+ let l = "", y = 0;
3189
+ for (let w = 0; w < p.length; w++) {
3190
+ const x = p[w];
3191
+ x === "[" || x === "(" ? y++ : (x === "]" || x === ")") && y--, x === ":" && y === 0 ? (h.push(l), l = "") : l += x;
3128
3192
  }
3129
- return l && g.push(l), g;
3193
+ return l && h.push(l), h;
3130
3194
  }, b = {
3131
3195
  hover: ":hover",
3132
3196
  focus: ":focus",
@@ -3140,144 +3204,144 @@ function It(e) {
3140
3204
  even: ":nth-child(even)",
3141
3205
  "focus-within": ":focus-within",
3142
3206
  "focus-visible": ":focus-visible"
3143
- }, y = (f, g = !1) => {
3144
- const l = d(f);
3145
- let m = "", k = !1;
3146
- for (const O of l) {
3147
- let D = O;
3148
- if (D.startsWith("!") && (k = !0, D = D.slice(1)), Qe[D] || nt(D) || it(D) || rt(D) || ot(D) || Ke(D)) {
3149
- m = O;
3207
+ }, m = (p, h = !1) => {
3208
+ const l = f(p);
3209
+ let y = "", w = !1;
3210
+ for (const j of l) {
3211
+ let H = j;
3212
+ if (H.startsWith("!") && (w = !0, H = H.slice(1)), Ye[H] || nt(H) || rt(H) || st(H) || ot(H) || it(H) || Ke(H)) {
3213
+ y = j;
3150
3214
  break;
3151
3215
  }
3152
3216
  }
3153
- if (!m) return null;
3154
- const w = m.replace(/^!/, ""), _ = Qe[w] ?? nt(w) ?? it(w) ?? rt(w) ?? ot(w) ?? Ke(w);
3217
+ if (!y) return null;
3218
+ const x = y.replace(/^!/, ""), _ = Ye[x] ?? nt(x) ?? rt(x) ?? st(x) ?? ot(x) ?? it(x) ?? Ke(x);
3155
3219
  if (!_) return null;
3156
- const C = l.indexOf(m);
3157
- let h = C >= 0 ? l.slice(0, C) : [];
3158
- g && (h = h.filter((O) => O !== "dark"));
3159
- const T = `.${xt(f)}`, E = k ? _.replace(/;/g, " !important;") : _, v = "__SUBJECT__";
3160
- let $ = v;
3161
- const S = [];
3162
- for (const O of h)
3163
- O.startsWith("group-") ? ($ = `.group:${O.slice(6)} ${$}`, S.push(O)) : O.startsWith("peer-") && ($ = $.replace(
3164
- v,
3165
- `.peer:${O.slice(5)}~${v}`
3166
- ), S.push(O));
3167
- h = h.filter((O) => !S.includes(O));
3168
- const P = [], A = [];
3169
- let j = null;
3170
- for (const O of h) {
3171
- if (O === "dark" || et.includes(O) || O.startsWith("@") && (tt.includes(O.slice(1)) || O.match(/^@\[.+\]$/)))
3220
+ const C = l.indexOf(y);
3221
+ let g = C >= 0 ? l.slice(0, C) : [];
3222
+ h && (g = g.filter((j) => j !== "dark"));
3223
+ const S = `.${$t(p)}`, T = w ? _.replace(/;/g, " !important;") : _, $ = "__SUBJECT__";
3224
+ let v = $;
3225
+ const A = [];
3226
+ for (const j of g)
3227
+ j.startsWith("group-") ? (v = `.group:${j.slice(6)} ${v}`, A.push(j)) : j.startsWith("peer-") && (v = v.replace(
3228
+ $,
3229
+ `.peer:${j.slice(5)}~${$}`
3230
+ ), A.push(j));
3231
+ g = g.filter((j) => !A.includes(j));
3232
+ const L = [], E = [];
3233
+ let O = null;
3234
+ for (const j of g) {
3235
+ if (j === "dark" || et.includes(j) || j.startsWith("@") && (tt.includes(j.slice(1)) || j.match(/^@\[.+\]$/)))
3172
3236
  continue;
3173
- const D = $n(O);
3174
- if (D) {
3175
- j = D;
3237
+ const H = Cn(j);
3238
+ if (H) {
3239
+ O = H;
3176
3240
  continue;
3177
3241
  }
3178
- const I = b[O];
3179
- if (I) {
3180
- j ? A.push(I) : P.push(I);
3242
+ const B = b[j];
3243
+ if (B) {
3244
+ O ? E.push(B) : L.push(B);
3181
3245
  continue;
3182
3246
  }
3183
- const q = bn[O];
3184
- typeof q == "function" && ($ = q($, E).split("{")[0]);
3247
+ const Z = wn[j];
3248
+ typeof Z == "function" && (v = Z(v, T).split("{")[0]);
3185
3249
  }
3186
- const F = P.join(""), te = A.join("");
3187
- function De(O, D) {
3188
- if (!D) return O;
3189
- let I = 0, q = 0;
3190
- if (O.length && (O[0] === ">" || O[0] === "+" || O[0] === "~" || O[0] === " ")) {
3191
- let W = 1;
3192
- for (; W < O.length && O[W] === " "; ) W++;
3193
- for (; W < O.length; W++) {
3194
- const Z = O[W];
3195
- if (Z === "[" ? I++ : Z === "]" && I > 0 ? I-- : Z === "(" ? q++ : Z === ")" && q > 0 && q--, I === 0 && q === 0 && (O[W] === ">" || O[W] === "+" || O[W] === "~" || O[W] === " "))
3196
- return O.slice(0, W) + D + O.slice(W);
3250
+ const M = L.join(""), I = E.join("");
3251
+ function ue(j, H) {
3252
+ if (!H) return j;
3253
+ let B = 0, Z = 0;
3254
+ if (j.length && (j[0] === ">" || j[0] === "+" || j[0] === "~" || j[0] === " ")) {
3255
+ let z = 1;
3256
+ for (; z < j.length && j[z] === " "; ) z++;
3257
+ for (; z < j.length; z++) {
3258
+ const G = j[z];
3259
+ if (G === "[" ? B++ : G === "]" && B > 0 ? B-- : G === "(" ? Z++ : G === ")" && Z > 0 && Z--, B === 0 && Z === 0 && (j[z] === ">" || j[z] === "+" || j[z] === "~" || j[z] === " "))
3260
+ return j.slice(0, z) + H + j.slice(z);
3197
3261
  }
3198
- return O + D;
3262
+ return j + H;
3199
3263
  }
3200
- for (let W = 0; W < O.length; W++) {
3201
- const Z = O[W];
3202
- if (Z === "[" ? I++ : Z === "]" && I > 0 ? I-- : Z === "(" ? q++ : Z === ")" && q > 0 && q--, I === 0 && q === 0 && (Z === ">" || Z === "+" || Z === "~" || Z === " "))
3203
- return O.slice(0, W) + D + O.slice(W);
3264
+ for (let z = 0; z < j.length; z++) {
3265
+ const G = j[z];
3266
+ if (G === "[" ? B++ : G === "]" && B > 0 ? B-- : G === "(" ? Z++ : G === ")" && Z > 0 && Z--, B === 0 && Z === 0 && (G === ">" || G === "+" || G === "~" || G === " "))
3267
+ return j.slice(0, z) + H + j.slice(z);
3204
3268
  }
3205
- return O + D;
3269
+ return j + H;
3206
3270
  }
3207
- if (j)
3208
- if (j.includes("&")) {
3209
- const O = j.indexOf("&"), D = j.slice(0, O), I = j.slice(O + 1), q = v + F;
3210
- if (P.length === 0)
3211
- $ = $.replace(
3212
- v,
3213
- D + q + te + I
3271
+ if (O)
3272
+ if (O.includes("&")) {
3273
+ const j = O.indexOf("&"), H = O.slice(0, j), B = O.slice(j + 1), Z = $ + M;
3274
+ if (L.length === 0)
3275
+ v = v.replace(
3276
+ $,
3277
+ H + Z + I + B
3214
3278
  );
3215
3279
  else {
3216
- const W = De(I, te);
3217
- $ = $.replace(
3218
- v,
3219
- D + q + W
3280
+ const z = ue(B, I);
3281
+ v = v.replace(
3282
+ $,
3283
+ H + Z + z
3220
3284
  );
3221
3285
  }
3222
3286
  } else
3223
- $ = $.replace(
3224
- v,
3225
- `${j}${v + F}`
3226
- ), te && ($ = $.replace(v, `${v}${te}`));
3287
+ v = v.replace(
3288
+ $,
3289
+ `${O}${$ + M}`
3290
+ ), I && (v = v.replace($, `${$}${I}`));
3227
3291
  else
3228
- $ = $.replace(
3229
- v,
3230
- v + F + te
3292
+ v = v.replace(
3293
+ $,
3294
+ $ + M + I
3231
3295
  );
3232
- $ = $.replace(new RegExp(v, "g"), T);
3233
- let B = `${$}{${E}}`;
3234
- const M = h.filter(
3235
- (O) => et.includes(O)
3236
- ), K = h.filter(
3237
- (O) => O.startsWith("@") && (tt.includes(O.slice(1)) || O.match(/^@\[.+\]$/))
3238
- ), ie = M.length ? M[M.length - 1] : null, ue = K.length ? K[K.length - 1] : null, U = h.includes("dark");
3296
+ v = v.replace(new RegExp($, "g"), S);
3297
+ let D = `${v}{${T}}`;
3298
+ const N = g.filter(
3299
+ (j) => et.includes(j)
3300
+ ), q = g.filter(
3301
+ (j) => j.startsWith("@") && (tt.includes(j.slice(1)) || j.match(/^@\[.+\]$/))
3302
+ ), ie = N.length ? N[N.length - 1] : null, fe = q.length ? q[q.length - 1] : null, K = g.includes("dark");
3239
3303
  let ne = "", ce = "";
3240
- if (U && ie ? ne = `@media (prefers-color-scheme: dark) and ${Ye[ie]}` : U ? ne = "@media (prefers-color-scheme: dark)" : ie && (ne = `@media ${Ye[ie]}`), ue)
3241
- if (ue.startsWith("@[") && ue.endsWith("]")) {
3242
- const O = ue.slice(2, -1);
3243
- if (!/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(O))
3304
+ if (K && ie ? ne = `@media (prefers-color-scheme: dark) and ${Qe[ie]}` : K ? ne = "@media (prefers-color-scheme: dark)" : ie && (ne = `@media ${Qe[ie]}`), fe)
3305
+ if (fe.startsWith("@[") && fe.endsWith("]")) {
3306
+ const j = fe.slice(2, -1);
3307
+ if (!/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(j))
3244
3308
  return null;
3245
- ce = `@container (min-width:${O})`;
3309
+ ce = `@container (min-width:${j})`;
3246
3310
  } else {
3247
- const O = ue.slice(1);
3248
- ce = `@container ${vt[O] || `(min-width:${O})`}`;
3311
+ const j = fe.slice(1);
3312
+ ce = `@container ${xt[j] || `(min-width:${j})`}`;
3249
3313
  }
3250
- return ne && ce ? B = `${ne}${ce}{${B}}` : ne ? B = `${ne}{${B}}` : ce && (B = `${ce}{${B}}`), B;
3314
+ return ne && ce ? D = `${ne}${ce}{${D}}` : ne ? D = `${ne}{${D}}` : ce && (D = `${ce}{${D}}`), D;
3251
3315
  };
3252
- for (const f of o) {
3253
- const g = d(f), l = g.find(
3254
- (C) => Qe[C.replace(/^!/, "")] || nt(C.replace(/^!/, "")) || it(C.replace(/^!/, "")) || rt(C.replace(/^!/, "")) || ot(C.replace(/^!/, "")) || Ke(C.replace(/^!/, ""))
3316
+ for (const p of o) {
3317
+ const h = f(p), l = h.find(
3318
+ (C) => Ye[C.replace(/^!/, "")] || nt(C.replace(/^!/, "")) || rt(C.replace(/^!/, "")) || st(C.replace(/^!/, "")) || ot(C.replace(/^!/, "")) || it(C.replace(/^!/, "")) || Ke(C.replace(/^!/, ""))
3255
3319
  );
3256
3320
  if (!l) continue;
3257
- const m = g.indexOf(l), k = m >= 0 ? g.slice(0, m) : [], w = a(k), _ = c(f);
3258
- _ && i[w].push(_);
3259
- }
3260
- const p = /^(from|via|to)-[a-z]+-?\d{2,3}?$/;
3261
- for (const f of o)
3262
- if (p.test(f)) {
3263
- if (i.flat().join("").includes(`.${xt(f)}`)) continue;
3264
- const l = c(f);
3321
+ const y = h.indexOf(l), w = y >= 0 ? h.slice(0, y) : [], x = a(w), _ = c(p);
3322
+ _ && i[x].push(_);
3323
+ }
3324
+ const d = /^(from|via|to)-[a-z]+-?\d{2,3}?$/;
3325
+ for (const p of o)
3326
+ if (d.test(p)) {
3327
+ if (i.flat().join("").includes(`.${$t(p)}`)) continue;
3328
+ const l = c(p);
3265
3329
  l && i[0].push(l);
3266
3330
  }
3267
- const x = (f) => f.sort((g, l) => {
3268
- const m = (T) => {
3269
- const E = {
3331
+ const k = (p) => p.sort((h, l) => {
3332
+ const y = (S) => {
3333
+ const T = {
3270
3334
  sm: 640,
3271
3335
  md: 768,
3272
3336
  lg: 1024,
3273
3337
  xl: 1280,
3274
3338
  "2xl": 1536
3275
3339
  };
3276
- for (const [v, $] of Object.entries(E))
3277
- if (T.includes(`@media ${Ye[v]}`)) return $;
3340
+ for (const [$, v] of Object.entries(T))
3341
+ if (S.includes(`@media ${Qe[$]}`)) return v;
3278
3342
  return -1;
3279
- }, k = (T) => {
3280
- const E = {
3343
+ }, w = (S) => {
3344
+ const T = {
3281
3345
  xs: 320,
3282
3346
  // 20rem
3283
3347
  sm: 384,
@@ -3301,36 +3365,36 @@ function It(e) {
3301
3365
  "7xl": 1280
3302
3366
  // 80rem
3303
3367
  };
3304
- for (const [v, $] of Object.entries(E))
3305
- if (T.includes(`@container ${vt[v]}`)) return $;
3306
- if (T.includes("@container (min-width:")) {
3307
- const v = /@container \(min-width:(\d+(?:\.\d+)?)(px|rem|em)/.exec(T);
3308
- if (v) {
3309
- const $ = parseFloat(v[1]), S = v[2];
3310
- return S === "rem" || S === "em" ? $ * 16 : $;
3368
+ for (const [$, v] of Object.entries(T))
3369
+ if (S.includes(`@container ${xt[$]}`)) return v;
3370
+ if (S.includes("@container (min-width:")) {
3371
+ const $ = /@container \(min-width:(\d+(?:\.\d+)?)(px|rem|em)/.exec(S);
3372
+ if ($) {
3373
+ const v = parseFloat($[1]), A = $[2];
3374
+ return A === "rem" || A === "em" ? v * 16 : v;
3311
3375
  }
3312
3376
  }
3313
3377
  return -1;
3314
- }, w = m(g), _ = m(l), C = k(g), h = k(l);
3315
- return w >= 0 && _ >= 0 && w !== _ ? w - _ : C >= 0 && h >= 0 && C !== h ? C - h : 0;
3378
+ }, x = y(h), _ = y(l), C = w(h), g = w(l);
3379
+ return x >= 0 && _ >= 0 && x !== _ ? x - _ : C >= 0 && g >= 0 && C !== g ? C - g : 0;
3316
3380
  });
3317
- i[2] = x(i[2]), i[3] = x(i[3]);
3381
+ i[2] = k(i[2]), i[3] = k(i[3]);
3318
3382
  const u = i.flat().join("");
3319
- return _e.size >= $t && Array.from(_e.keys()).slice(
3383
+ return Ae.size >= Ct && Array.from(Ae.keys()).slice(
3320
3384
  0,
3321
- Math.floor($t / 2)
3322
- ).forEach((g) => _e.delete(g)), _e.set(e, { css: u, timestamp: t }), u;
3385
+ Math.floor(Ct / 2)
3386
+ ).forEach((h) => Ae.delete(h)), Ae.set(e, { css: u, timestamp: t }), u;
3323
3387
  }
3324
- function qe(e, t) {
3325
- return z(e ? t : [], "when-block");
3388
+ function Ve(e, t) {
3389
+ return U(e ? t : [], "when-block");
3326
3390
  }
3327
- function Un(e, t) {
3391
+ function Kn(e, t) {
3328
3392
  return e.map((r, n) => {
3329
3393
  const o = typeof r == "object" ? r?.key ?? r?.id ?? `idx-${n}` : String(r);
3330
- return z(t(r, n), `each-${o}`);
3394
+ return U(t(r, n), `each-${o}`);
3331
3395
  });
3332
3396
  }
3333
- function _n() {
3397
+ function An() {
3334
3398
  const e = [];
3335
3399
  return {
3336
3400
  when(t, r) {
@@ -3340,18 +3404,18 @@ function _n() {
3340
3404
  return e.push([!0, t]), this;
3341
3405
  },
3342
3406
  done() {
3343
- return An(...e);
3407
+ return Sn(...e);
3344
3408
  }
3345
3409
  };
3346
3410
  }
3347
- function An(...e) {
3411
+ function Sn(...e) {
3348
3412
  for (let t = 0; t < e.length; t++) {
3349
3413
  const [r, n] = e[t];
3350
- if (r) return [z(n, `whenChain-branch-${t}`)];
3414
+ if (r) return [U(n, `whenChain-branch-${t}`)];
3351
3415
  }
3352
- return [z([], "whenChain-empty")];
3416
+ return [U([], "whenChain-empty")];
3353
3417
  }
3354
- function z(e, t) {
3418
+ function U(e, t) {
3355
3419
  const r = e ? Array.isArray(e) ? e.filter(Boolean) : [e].filter(Boolean) : [];
3356
3420
  return {
3357
3421
  tag: "#anchor",
@@ -3359,7 +3423,7 @@ function z(e, t) {
3359
3423
  children: r
3360
3424
  };
3361
3425
  }
3362
- const Pe = {
3426
+ const Me = {
3363
3427
  /** Simple fade in/out */
3364
3428
  fade: {
3365
3429
  enterFrom: "opacity-0",
@@ -3451,7 +3515,7 @@ const Pe = {
3451
3515
  leaveTo: "rotate-[90deg] opacity-0"
3452
3516
  }
3453
3517
  };
3454
- function Kn(e, t) {
3518
+ function qn(e, t) {
3455
3519
  const {
3456
3520
  preset: r,
3457
3521
  show: n,
@@ -3460,50 +3524,50 @@ function Kn(e, t) {
3460
3524
  appear: s = !1,
3461
3525
  css: c = !0,
3462
3526
  name: a,
3463
- enterFrom: d,
3527
+ enterFrom: f,
3464
3528
  enterActive: b,
3465
- enterTo: y,
3466
- leaveFrom: p,
3467
- leaveActive: x,
3529
+ enterTo: m,
3530
+ leaveFrom: d,
3531
+ leaveActive: k,
3468
3532
  leaveTo: u,
3469
- onBeforeEnter: f,
3470
- onEnter: g,
3533
+ onBeforeEnter: p,
3534
+ onEnter: h,
3471
3535
  onAfterEnter: l,
3472
- onEnterCancelled: m,
3473
- onBeforeLeave: k,
3474
- onLeave: w,
3536
+ onEnterCancelled: y,
3537
+ onBeforeLeave: w,
3538
+ onLeave: x,
3475
3539
  onAfterLeave: _,
3476
3540
  onLeaveCancelled: C
3477
3541
  } = e;
3478
- let h;
3479
- r && Pe[r] ? (h = { ...Pe[r] }, d && (h.enterFrom = d), b && (h.enterActive = b), y && (h.enterTo = y), p && (h.leaveFrom = p), x && (h.leaveActive = x), u && (h.leaveTo = u)) : h = {
3480
- enterFrom: d,
3542
+ let g;
3543
+ r && Me[r] ? (g = { ...Me[r] }, f && (g.enterFrom = f), b && (g.enterActive = b), m && (g.enterTo = m), d && (g.leaveFrom = d), k && (g.leaveActive = k), u && (g.leaveTo = u)) : g = {
3544
+ enterFrom: f,
3481
3545
  enterActive: b,
3482
- enterTo: y,
3483
- leaveFrom: p,
3484
- leaveActive: x,
3546
+ enterTo: m,
3547
+ leaveFrom: d,
3548
+ leaveActive: k,
3485
3549
  leaveTo: u
3486
3550
  };
3487
- const T = a || (r ? `transition-${r}` : "transition"), E = z(n ? t : [], T);
3488
- return E._transition = {
3489
- name: T,
3490
- classes: h,
3551
+ const S = a || (r ? `transition-${r}` : "transition"), T = U(n ? t : [], S);
3552
+ return T._transition = {
3553
+ name: S,
3554
+ classes: g,
3491
3555
  mode: o,
3492
3556
  duration: i,
3493
3557
  appear: s,
3494
3558
  css: c,
3495
3559
  state: n ? "visible" : "hidden",
3496
3560
  hooks: {
3497
- onBeforeEnter: f,
3498
- onEnter: g,
3561
+ onBeforeEnter: p,
3562
+ onEnter: h,
3499
3563
  onAfterEnter: l,
3500
- onEnterCancelled: m,
3501
- onBeforeLeave: k,
3502
- onLeave: w,
3564
+ onEnterCancelled: y,
3565
+ onBeforeLeave: w,
3566
+ onLeave: x,
3503
3567
  onAfterLeave: _,
3504
3568
  onLeaveCancelled: C
3505
3569
  }
3506
- }, E;
3570
+ }, T;
3507
3571
  }
3508
3572
  function Vn(e, t) {
3509
3573
  const {
@@ -3514,87 +3578,93 @@ function Vn(e, t) {
3514
3578
  mode: s = "default",
3515
3579
  duration: c,
3516
3580
  appear: a = !1,
3517
- css: d = !0,
3581
+ css: f = !0,
3518
3582
  name: b,
3519
- enterFrom: y,
3520
- enterActive: p,
3521
- enterTo: x,
3522
- leaveFrom: u,
3523
- leaveActive: f,
3524
- leaveTo: g,
3525
- onBeforeEnter: l,
3526
- onEnter: m,
3527
- onAfterEnter: k,
3528
- onEnterCancelled: w,
3529
- onBeforeLeave: _,
3530
- onLeave: C,
3531
- onAfterLeave: h,
3532
- onLeaveCancelled: T
3583
+ class: m,
3584
+ style: d,
3585
+ enterFrom: k,
3586
+ enterActive: u,
3587
+ enterTo: p,
3588
+ leaveFrom: h,
3589
+ leaveActive: l,
3590
+ leaveTo: y,
3591
+ onBeforeEnter: w,
3592
+ onEnter: x,
3593
+ onAfterEnter: _,
3594
+ onEnterCancelled: C,
3595
+ onBeforeLeave: g,
3596
+ onLeave: S,
3597
+ onAfterLeave: T,
3598
+ onLeaveCancelled: $
3533
3599
  } = e;
3534
- let E;
3535
- o && Pe[o] ? (E = { ...Pe[o] }, y && (E.enterFrom = y), p && (E.enterActive = p), x && (E.enterTo = x), u && (E.leaveFrom = u), f && (E.leaveActive = f), g && (E.leaveTo = g)) : E = {
3536
- enterFrom: y,
3537
- enterActive: p,
3538
- enterTo: x,
3539
- leaveFrom: u,
3540
- leaveActive: f,
3541
- leaveTo: g
3600
+ let v;
3601
+ o && Me[o] ? (v = { ...Me[o] }, k && (v.enterFrom = k), u && (v.enterActive = u), p && (v.enterTo = p), h && (v.leaveFrom = h), l && (v.leaveActive = l), y && (v.leaveTo = y)) : v = {
3602
+ enterFrom: k,
3603
+ enterActive: u,
3604
+ enterTo: p,
3605
+ leaveFrom: h,
3606
+ leaveActive: l,
3607
+ leaveTo: y
3542
3608
  };
3543
- const v = b || (o ? `transition-group-${o}` : "transition-group"), $ = [];
3544
- for (const S of i ? t : [])
3545
- if (S && typeof S == "object" && S.tag === "#anchor") {
3546
- const P = Array.isArray(S.children) ? S.children : [];
3547
- for (const A of P)
3548
- if (A && typeof A == "object") {
3549
- const j = {
3550
- ...A,
3551
- key: S.key || A.key,
3609
+ const A = b || (o ? `transition-group-${o}` : "transition-group"), L = [];
3610
+ for (const E of i ? t : [])
3611
+ if (E && typeof E == "object" && E.tag === "#anchor") {
3612
+ const O = Array.isArray(E.children) ? E.children : [];
3613
+ for (const M of O)
3614
+ if (M && typeof M == "object") {
3615
+ const I = {
3616
+ ...M,
3617
+ key: E.key || M.key,
3552
3618
  props: {
3553
- ...A.props,
3554
- _anchorKey: S.key
3619
+ ...M.props,
3620
+ _anchorKey: E.key
3555
3621
  // Preserve original anchor key
3556
3622
  }
3557
3623
  };
3558
- $.push(j);
3624
+ L.push(I);
3559
3625
  } else
3560
- $.push(A);
3626
+ L.push(M);
3561
3627
  } else
3562
- $.push(S);
3628
+ L.push(E);
3563
3629
  return {
3564
3630
  tag: r,
3565
- children: $,
3566
- key: v,
3631
+ children: L,
3632
+ key: A,
3567
3633
  props: {
3634
+ attrs: {
3635
+ ...m ? { class: m } : {},
3636
+ ...d ? { style: d } : {}
3637
+ },
3568
3638
  _transitionGroup: {
3569
- name: v,
3570
- classes: E,
3639
+ name: A,
3640
+ classes: v,
3571
3641
  moveClass: n,
3572
3642
  mode: s,
3573
3643
  duration: c,
3574
3644
  appear: a,
3575
- css: d,
3645
+ css: f,
3576
3646
  hooks: {
3577
- onBeforeEnter: l,
3578
- onEnter: m,
3579
- onAfterEnter: k,
3580
- onEnterCancelled: w,
3581
- onBeforeLeave: _,
3582
- onLeave: C,
3583
- onAfterLeave: h,
3584
- onLeaveCancelled: T
3647
+ onBeforeEnter: w,
3648
+ onEnter: x,
3649
+ onAfterEnter: _,
3650
+ onEnterCancelled: C,
3651
+ onBeforeLeave: g,
3652
+ onLeave: S,
3653
+ onAfterLeave: T,
3654
+ onLeaveCancelled: $
3585
3655
  }
3586
3656
  }
3587
3657
  }
3588
3658
  };
3589
3659
  }
3590
- function qn(e) {
3660
+ function Zn(e) {
3591
3661
  return { ...e };
3592
3662
  }
3593
3663
  let ze = null;
3594
- function ut() {
3664
+ function ft() {
3595
3665
  if (!ze) {
3596
3666
  const e = [];
3597
- Object.values(Pe).forEach((n) => {
3667
+ Object.values(Me).forEach((n) => {
3598
3668
  n.enterFrom && e.push(n.enterFrom), n.enterActive && e.push(n.enterActive), n.enterTo && e.push(n.enterTo), n.leaveFrom && e.push(n.leaveFrom), n.leaveActive && e.push(n.leaveActive), n.leaveTo && e.push(n.leaveTo);
3599
3669
  });
3600
3670
  const t = `<div class="${e.join(" ")}"></div>`, r = It(t);
@@ -3602,39 +3672,39 @@ function ut() {
3602
3672
  }
3603
3673
  return ze;
3604
3674
  }
3605
- function Sn() {
3606
- ut();
3675
+ function Tn() {
3676
+ ft();
3607
3677
  }
3608
- Sn();
3609
- const je = [];
3610
- function Tn(e, t, r, n, o, i, s, c) {
3678
+ Tn();
3679
+ const Le = [];
3680
+ function On(e, t, r, n, o, i, s, c) {
3611
3681
  if (e) {
3612
- je.push(r);
3682
+ Le.push(r);
3613
3683
  try {
3614
3684
  const a = t.render(r);
3615
3685
  if (a instanceof Promise) {
3616
- i(!0), a.then((d) => {
3617
- i(!1), s(null), Ct(e, d, r, n, o), c(e.innerHTML);
3618
- }).catch((d) => {
3619
- i(!1), s(d);
3686
+ i(!0), a.then((f) => {
3687
+ i(!1), s(null), Et(e, f, r, n, o), c(e.innerHTML);
3688
+ }).catch((f) => {
3689
+ i(!1), s(f);
3620
3690
  });
3621
3691
  return;
3622
3692
  }
3623
- Ct(e, a, r, n, o), c(e.innerHTML);
3693
+ Et(e, a, r, n, o), c(e.innerHTML);
3624
3694
  } finally {
3625
- je.pop();
3695
+ Le.pop();
3626
3696
  }
3627
3697
  }
3628
3698
  }
3629
- function Ct(e, t, r, n, o) {
3630
- e && (fn(
3699
+ function Et(e, t, r, n, o) {
3700
+ e && (dn(
3631
3701
  e,
3632
3702
  Array.isArray(t) ? t : [t],
3633
3703
  r,
3634
3704
  n
3635
3705
  ), o(e.innerHTML));
3636
3706
  }
3637
- function On(e, t, r, n, o, i, s) {
3707
+ function jn(e, t, r, n, o, i, s) {
3638
3708
  if (i !== null && clearTimeout(i), Date.now() - t < 16) {
3639
3709
  if (o(r + 1), r === 15)
3640
3710
  oe(
@@ -3646,7 +3716,7 @@ function On(e, t, r, n, o, i, s) {
3646
3716
  Component rendering will be throttled to prevent browser freeze.`
3647
3717
  );
3648
3718
  else if (r > 20) {
3649
- N(
3719
+ F(
3650
3720
  `🛑 Infinite loop detected in component render:
3651
3721
  • This might be caused by state updates during render
3652
3722
  • Ensure all state modifications are done in event handlers or effects
@@ -3656,41 +3726,41 @@ Stopping runaway component render to prevent browser freeze`
3656
3726
  }
3657
3727
  } else
3658
3728
  o(0);
3659
- const d = setTimeout(() => {
3729
+ const f = setTimeout(() => {
3660
3730
  n(Date.now()), e(), s(null);
3661
3731
  }, r > 10 ? 100 : 0);
3662
- s(d);
3732
+ s(f);
3663
3733
  }
3664
- function jn(e, t, r, n, o) {
3734
+ function Ln(e, t, r, n, o) {
3665
3735
  if (!e) return;
3666
3736
  const i = It(r);
3667
3737
  if ((!i || i.trim() === "") && !t._computedStyle) {
3668
- o(null), e.adoptedStyleSheets = [wt(), ut()];
3738
+ o(null), e.adoptedStyleSheets = [vt(), ft()];
3669
3739
  return;
3670
3740
  }
3671
3741
  let s = "";
3672
3742
  t._computedStyle && (s = t._computedStyle);
3673
- let c = pn(`${s}
3743
+ let c = hn(`${s}
3674
3744
  ${i}
3675
3745
  `);
3676
3746
  c = Dt(c);
3677
3747
  let a = n;
3678
- a || (a = new CSSStyleSheet()), (a.cssRules.length === 0 || a.cssRules.length > 0 && Array.from(a.cssRules).map((b) => b.cssText).join("") !== c) && a.replaceSync(c), e.adoptedStyleSheets = [wt(), ut(), a], o(a);
3748
+ a || (a = new CSSStyleSheet()), (a.cssRules.length === 0 || a.cssRules.length > 0 && Array.from(a.cssRules).map((b) => b.cssText).join("") !== c) && a.replaceSync(c), e.adoptedStyleSheets = [vt(), ft(), a], o(a);
3679
3749
  }
3680
- let H = null;
3681
- function Et(e) {
3682
- H = e;
3750
+ let W = null;
3751
+ function _t(e) {
3752
+ W = e;
3683
3753
  }
3684
- function _t() {
3685
- H = null;
3754
+ function At() {
3755
+ W = null;
3686
3756
  }
3687
- function Zn() {
3688
- if (!H)
3757
+ function Gn() {
3758
+ if (!W)
3689
3759
  throw new Error("useEmit must be called during component render");
3690
- const e = H.emit;
3760
+ const e = W.emit;
3691
3761
  return (t, r) => e(t, r);
3692
3762
  }
3693
- function $e(e) {
3763
+ function Ce(e) {
3694
3764
  e._hookCallbacks || Object.defineProperty(e, "_hookCallbacks", {
3695
3765
  value: {},
3696
3766
  writable: !0,
@@ -3698,34 +3768,34 @@ function $e(e) {
3698
3768
  configurable: !1
3699
3769
  });
3700
3770
  }
3701
- function Gn(e) {
3702
- if (!H)
3771
+ function Jn(e) {
3772
+ if (!W)
3703
3773
  throw new Error("useOnConnected must be called during component render");
3704
- $e(H), H._hookCallbacks.onConnected = e;
3774
+ Ce(W), W._hookCallbacks.onConnected = e;
3705
3775
  }
3706
- function Jn(e) {
3707
- if (!H)
3776
+ function Xn(e) {
3777
+ if (!W)
3708
3778
  throw new Error("useOnDisconnected must be called during component render");
3709
- $e(H), H._hookCallbacks.onDisconnected = e;
3779
+ Ce(W), W._hookCallbacks.onDisconnected = e;
3710
3780
  }
3711
- function Xn(e) {
3712
- if (!H)
3781
+ function Yn(e) {
3782
+ if (!W)
3713
3783
  throw new Error("useOnAttributeChanged must be called during component render");
3714
- $e(H), H._hookCallbacks.onAttributeChanged = e;
3784
+ Ce(W), W._hookCallbacks.onAttributeChanged = e;
3715
3785
  }
3716
3786
  function Qn(e) {
3717
- if (!H)
3787
+ if (!W)
3718
3788
  throw new Error("useOnError must be called during component render");
3719
- $e(H), H._hookCallbacks.onError = e;
3789
+ Ce(W), W._hookCallbacks.onError = e;
3720
3790
  }
3721
- function Yn(e) {
3722
- if (!H)
3791
+ function er(e) {
3792
+ if (!W)
3723
3793
  throw new Error("useProps must be called during component render");
3724
- $e(H), H._hookCallbacks.props = {
3725
- ...H._hookCallbacks.props || {},
3794
+ Ce(W), W._hookCallbacks.props = {
3795
+ ...W._hookCallbacks.props || {},
3726
3796
  ...e
3727
3797
  };
3728
- const t = H;
3798
+ const t = W;
3729
3799
  try {
3730
3800
  const n = Object.keys(e || {});
3731
3801
  for (const o of n) {
@@ -3741,14 +3811,14 @@ function Yn(e) {
3741
3811
  try {
3742
3812
  const a = t && t._host;
3743
3813
  if (a) {
3744
- const d = ee(o), b = a.getAttribute(d);
3814
+ const f = te(o), b = a.getAttribute(f);
3745
3815
  if (b !== null) {
3746
- const y = typeof e[o];
3747
- return y === "boolean" ? b === "" || b === "true" : y === "number" ? Number(b) : b;
3816
+ const m = typeof e[o];
3817
+ return m === "boolean" ? b === "" || b === "true" : m === "number" ? Number(b) : b;
3748
3818
  }
3749
3819
  if (typeof a[o] < "u") {
3750
- const y = a[o];
3751
- return R(y) || y && typeof y == "object" && "value" in y && !(y instanceof Node) ? y.value : typeof e[o] === "boolean" && typeof y == "string" ? y === "" || y === "true" : y;
3820
+ const m = a[o];
3821
+ return R(m) || m && typeof m == "object" && "value" in m && !(m instanceof Node) ? m.value : typeof e[o] === "boolean" && typeof m == "string" ? m === "" || m === "true" : m;
3752
3822
  }
3753
3823
  }
3754
3824
  } catch {
@@ -3772,7 +3842,7 @@ function Yn(e) {
3772
3842
  const c = t && t._host;
3773
3843
  if (c) {
3774
3844
  if (c instanceof HTMLElement || typeof c.getAttribute == "function" && typeof c.hasAttribute == "function") {
3775
- const d = o.replace(/([A-Z])/g, "-$1").toLowerCase(), b = c.getAttribute(d);
3845
+ const f = o.replace(/([A-Z])/g, "-$1").toLowerCase(), b = c.getAttribute(f);
3776
3846
  if (b !== null)
3777
3847
  return typeof i == "boolean" ? b === "" || b === "true" : typeof i == "number" ? Number(b) : b;
3778
3848
  }
@@ -3796,20 +3866,20 @@ function Yn(e) {
3796
3866
  }
3797
3867
  });
3798
3868
  }
3799
- function er(e) {
3800
- if (!H)
3869
+ function tr(e) {
3870
+ if (!W)
3801
3871
  throw new Error("useStyle must be called during component render");
3802
- $e(H);
3872
+ Ce(W);
3803
3873
  try {
3804
3874
  const t = e();
3805
- Object.defineProperty(H, "_computedStyle", {
3875
+ Object.defineProperty(W, "_computedStyle", {
3806
3876
  value: t,
3807
3877
  writable: !0,
3808
3878
  enumerable: !1,
3809
3879
  configurable: !0
3810
3880
  });
3811
3881
  } catch (t) {
3812
- oe("Error in useStyle callback:", t), Object.defineProperty(H, "_computedStyle", {
3882
+ oe("Error in useStyle callback:", t), Object.defineProperty(W, "_computedStyle", {
3813
3883
  value: "",
3814
3884
  writable: !0,
3815
3885
  enumerable: !1,
@@ -3817,12 +3887,12 @@ function er(e) {
3817
3887
  });
3818
3888
  }
3819
3889
  }
3820
- const xe = /* @__PURE__ */ new Map(), At = Symbol.for("cer.registry");
3890
+ const $e = /* @__PURE__ */ new Map(), St = Symbol.for("cer.registry");
3821
3891
  if (typeof window < "u") {
3822
3892
  const e = globalThis;
3823
- e[At] || (e[At] = xe);
3893
+ e[St] || (e[St] = $e);
3824
3894
  }
3825
- function Ln(e, t) {
3895
+ function Pn(e, t) {
3826
3896
  if (!t.render)
3827
3897
  throw new Error("Component must have a render function");
3828
3898
  return typeof window > "u" ? class {
@@ -3865,11 +3935,11 @@ function Ln(e, t) {
3865
3935
  _templateLoading = !1;
3866
3936
  _templateError = null;
3867
3937
  constructor() {
3868
- super(), this.attachShadow({ mode: "open" }), this._cfg = xe.get(e) || t, this._componentId = `${e}-${Math.random().toString(36).substr(2, 9)}`;
3938
+ super(), this.attachShadow({ mode: "open" }), this._cfg = $e.get(e) || t, this._componentId = `${e}-${Math.random().toString(36).substr(2, 9)}`;
3869
3939
  const r = this._initContext(t), n = (i, s, c) => {
3870
3940
  Object.defineProperty(i, s, { value: c, writable: !1, enumerable: !1, configurable: !1 });
3871
3941
  };
3872
- n(r, "refs", this._refs), n(r, "requestRender", () => this.requestRender()), n(r, "_requestRender", () => this._requestRender()), n(r, "_componentId", this._componentId), n(r, "_triggerWatchers", (i, s) => this._triggerWatchers(i, s)), this.context = r, L(() => {
3942
+ n(r, "refs", this._refs), n(r, "requestRender", () => this.requestRender()), n(r, "_requestRender", () => this._requestRender()), n(r, "_componentId", this._componentId), n(r, "_triggerWatchers", (i, s) => this._triggerWatchers(i, s)), this.context = r, P(() => {
3873
3943
  n(r, "_host", this);
3874
3944
  }), n(this.context, "emit", (i, s, c) => {
3875
3945
  const a = {
@@ -3877,18 +3947,18 @@ function Ln(e, t) {
3877
3947
  bubbles: !0,
3878
3948
  composed: !0,
3879
3949
  ...c || {}
3880
- }, d = new CustomEvent(i, a);
3881
- this.dispatchEvent(d);
3950
+ }, f = new CustomEvent(i, a);
3951
+ this.dispatchEvent(f);
3882
3952
  const b = i.indexOf(":");
3883
3953
  if (b > 0) {
3884
- const y = i.substring(0, b), p = i.substring(b + 1), x = p.includes("-") ? `${y}:${p.split("-").map((u, f) => f === 0 ? u : u.charAt(0).toUpperCase() + u.slice(1)).join("")}` : `${y}:${p.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase()}`;
3885
- x !== i && L(() => {
3886
- this.dispatchEvent(new CustomEvent(x, a));
3954
+ const m = i.substring(0, b), d = i.substring(b + 1), k = d.includes("-") ? `${m}:${d.split("-").map((u, p) => p === 0 ? u : u.charAt(0).toUpperCase() + u.slice(1)).join("")}` : `${m}:${d.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase()}`;
3955
+ k !== i && P(() => {
3956
+ this.dispatchEvent(new CustomEvent(k, a));
3887
3957
  });
3888
3958
  }
3889
- return !d.defaultPrevented;
3959
+ return !f.defaultPrevented;
3890
3960
  });
3891
- const o = xe.get(e) || t;
3961
+ const o = $e.get(e) || t;
3892
3962
  for (const i in o) {
3893
3963
  const s = o[i];
3894
3964
  typeof s == "function" && (this.context[i] = (...c) => s(...c, this.context));
@@ -3912,14 +3982,14 @@ function Ln(e, t) {
3912
3982
  }
3913
3983
  connectedCallback() {
3914
3984
  this._runLogicWithinErrorBoundary(t, () => {
3915
- this._applyProps(t), this._requestRender(), Gt(t, this.context, this._mounted, (r) => {
3985
+ this._applyProps(t), this._requestRender(), Jt(t, this.context, this._mounted, (r) => {
3916
3986
  this._mounted = r;
3917
3987
  });
3918
3988
  });
3919
3989
  }
3920
3990
  disconnectedCallback() {
3921
3991
  this._runLogicWithinErrorBoundary(t, () => {
3922
- Jt(
3992
+ Xt(
3923
3993
  t,
3924
3994
  this.context,
3925
3995
  this._listeners,
@@ -3943,16 +4013,16 @@ function Ln(e, t) {
3943
4013
  }
3944
4014
  attributeChangedCallback(r, n, o) {
3945
4015
  this._runLogicWithinErrorBoundary(t, () => {
3946
- this._applyProps(t), n !== o && this._requestRender(), Xt(t, r, n, o, this.context);
4016
+ this._applyProps(t), n !== o && this._requestRender(), Yt(t, r, n, o, this.context);
3947
4017
  });
3948
4018
  }
3949
4019
  static get observedAttributes() {
3950
- return t.props ? Object.keys(t.props).map(ee) : [];
4020
+ return t.props ? Object.keys(t.props).map(te) : [];
3951
4021
  }
3952
4022
  // --- Render ---
3953
4023
  _render(r) {
3954
4024
  this._runLogicWithinErrorBoundary(r, () => {
3955
- Tn(
4025
+ On(
3956
4026
  this.shadowRoot,
3957
4027
  r,
3958
4028
  this.context,
@@ -3975,8 +4045,8 @@ function Ln(e, t) {
3975
4045
  }
3976
4046
  _requestRender() {
3977
4047
  this._runLogicWithinErrorBoundary(this._cfg, () => {
3978
- me(() => {
3979
- On(
4048
+ ye(() => {
4049
+ jn(
3980
4050
  () => this._render(this._cfg),
3981
4051
  this._lastRenderTime,
3982
4052
  this._renderCount,
@@ -3997,7 +4067,7 @@ function Ln(e, t) {
3997
4067
  // --- Style ---
3998
4068
  _applyStyle(r, n) {
3999
4069
  this._runLogicWithinErrorBoundary(r, () => {
4000
- jn(
4070
+ Ln(
4001
4071
  this.shadowRoot,
4002
4072
  this.context,
4003
4073
  n,
@@ -4023,8 +4093,8 @@ function Ln(e, t) {
4023
4093
  let n = function(i, s = "") {
4024
4094
  if (Array.isArray(i))
4025
4095
  return new Proxy(i, {
4026
- get(c, a, d) {
4027
- const b = Reflect.get(c, a, d);
4096
+ get(c, a, f) {
4097
+ const b = Reflect.get(c, a, f);
4028
4098
  return typeof b == "function" && typeof a == "string" && [
4029
4099
  "push",
4030
4100
  "pop",
@@ -4033,29 +4103,29 @@ function Ln(e, t) {
4033
4103
  "splice",
4034
4104
  "sort",
4035
4105
  "reverse"
4036
- ].includes(a) ? function(...p) {
4037
- const x = b.apply(c, p);
4106
+ ].includes(a) ? function(...d) {
4107
+ const k = b.apply(c, d);
4038
4108
  if (!o._initializing) {
4039
4109
  const u = s || "root";
4040
- o._triggerWatchers(u, c), me(
4110
+ o._triggerWatchers(u, c), ye(
4041
4111
  () => o._render(r),
4042
4112
  o._componentId
4043
4113
  );
4044
4114
  }
4045
- return x;
4115
+ return k;
4046
4116
  } : b;
4047
4117
  },
4048
- set(c, a, d) {
4049
- if (c[a] = d, !o._initializing) {
4118
+ set(c, a, f) {
4119
+ if (c[a] = f, !o._initializing) {
4050
4120
  const b = s ? `${s}.${String(a)}` : String(a);
4051
- o._triggerWatchers(b, d), me(() => o._render(r), o._componentId);
4121
+ o._triggerWatchers(b, f), ye(() => o._render(r), o._componentId);
4052
4122
  }
4053
4123
  return !0;
4054
4124
  },
4055
4125
  deleteProperty(c, a) {
4056
4126
  if (delete c[a], !o._initializing) {
4057
- const d = s ? `${s}.${String(a)}` : String(a);
4058
- o._triggerWatchers(d, void 0), me(() => o._render(r), o._componentId);
4127
+ const f = s ? `${s}.${String(a)}` : String(a);
4128
+ o._triggerWatchers(f, void 0), ye(() => o._render(r), o._componentId);
4059
4129
  }
4060
4130
  return !0;
4061
4131
  }
@@ -4068,12 +4138,12 @@ function Ln(e, t) {
4068
4138
  i[c] = n(i[c], a);
4069
4139
  }
4070
4140
  return new Proxy(i, {
4071
- set(c, a, d) {
4141
+ set(c, a, f) {
4072
4142
  const b = s ? `${s}.${String(a)}` : String(a);
4073
- return c[a] = n(d, b), o._initializing || (o._triggerWatchers(b, c[a]), me(() => o._render(r), o._componentId)), !0;
4143
+ return c[a] = n(f, b), o._initializing || (o._triggerWatchers(b, c[a]), ye(() => o._render(r), o._componentId)), !0;
4074
4144
  },
4075
- get(c, a, d) {
4076
- return Reflect.get(c, a, d);
4145
+ get(c, a, f) {
4146
+ return Reflect.get(c, a, f);
4077
4147
  }
4078
4148
  });
4079
4149
  }
@@ -4096,7 +4166,7 @@ function Ln(e, t) {
4096
4166
  }
4097
4167
  _initWatchers(r) {
4098
4168
  this._runLogicWithinErrorBoundary(r, () => {
4099
- Kt(
4169
+ qt(
4100
4170
  this.context,
4101
4171
  this._watchers,
4102
4172
  {}
@@ -4110,7 +4180,7 @@ function Ln(e, t) {
4110
4180
  _applyProps(r) {
4111
4181
  this._runLogicWithinErrorBoundary(r, () => {
4112
4182
  try {
4113
- Zt(this, r, this.context);
4183
+ Gt(this, r, this.context);
4114
4184
  } catch (n) {
4115
4185
  this._hasError = !0, r.onError && r.onError(n, this.context);
4116
4186
  }
@@ -4118,8 +4188,8 @@ function Ln(e, t) {
4118
4188
  }
4119
4189
  };
4120
4190
  }
4121
- function St(e, t) {
4122
- let r = ee(e);
4191
+ function Tt(e, t) {
4192
+ let r = te(e);
4123
4193
  r.includes("-") || (r = `cer-${r}`);
4124
4194
  let n = {};
4125
4195
  const o = {
@@ -4140,49 +4210,49 @@ function St(e, t) {
4140
4210
  },
4141
4211
  render: (i) => {
4142
4212
  const s = i._componentId || `${r}-${Math.random().toString(36).substr(2, 9)}`;
4143
- J.setCurrentComponent(s, () => {
4213
+ X.setCurrentComponent(s, () => {
4144
4214
  i.requestRender && i.requestRender();
4145
4215
  });
4146
4216
  try {
4147
- Et(i);
4217
+ _t(i);
4148
4218
  const c = t();
4149
4219
  if (i._hookCallbacks) {
4150
4220
  const a = i._hookCallbacks;
4151
4221
  if (a.onConnected && (n.onConnected = a.onConnected), a.onDisconnected && (n.onDisconnected = a.onDisconnected), a.onAttributeChanged && (n.onAttributeChanged = a.onAttributeChanged), a.onError && (n.onError = a.onError), a.style && (i._styleCallback = a.style), a.props) {
4152
- const d = a.props;
4222
+ const f = a.props;
4153
4223
  o.props = Object.fromEntries(
4154
- Object.entries(d).map(([b, y]) => [b, { type: typeof y == "boolean" ? Boolean : typeof y == "number" ? Number : typeof y == "string" ? String : Function, default: y }])
4155
- ), xe.set(r, o);
4224
+ Object.entries(f).map(([b, m]) => [b, { type: typeof m == "boolean" ? Boolean : typeof m == "number" ? Number : typeof m == "string" ? String : Function, default: m }])
4225
+ ), $e.set(r, o);
4156
4226
  }
4157
4227
  }
4158
4228
  return c;
4159
4229
  } finally {
4160
- _t(), J.clearCurrentComponent();
4230
+ At(), X.clearCurrentComponent();
4161
4231
  }
4162
4232
  }
4163
4233
  };
4164
- if (xe.set(r, o), typeof window < "u") {
4234
+ if ($e.set(r, o), typeof window < "u") {
4165
4235
  try {
4166
4236
  const i = {
4167
4237
  _hookCallbacks: {},
4168
4238
  requestRender: () => {
4169
4239
  }
4170
4240
  };
4171
- if (Et(i), t(), _t(), i._hookCallbacks?.props) {
4241
+ if (_t(i), t(), At(), i._hookCallbacks?.props) {
4172
4242
  const s = i._hookCallbacks.props;
4173
4243
  o.props = Object.fromEntries(
4174
4244
  Object.entries(s).map(([c, a]) => [c, { type: typeof a == "boolean" ? Boolean : typeof a == "number" ? Number : typeof a == "string" ? String : Function, default: a }])
4175
- ), xe.set(r, o);
4245
+ ), $e.set(r, o);
4176
4246
  }
4177
4247
  } catch {
4178
4248
  }
4179
4249
  customElements.get(r) || customElements.define(
4180
4250
  r,
4181
- Ln(r, o)
4251
+ Pn(r, o)
4182
4252
  );
4183
4253
  }
4184
4254
  }
4185
- class Pn {
4255
+ class Mn {
4186
4256
  map = /* @__PURE__ */ new Map();
4187
4257
  maxSize;
4188
4258
  constructor(t) {
@@ -4206,7 +4276,7 @@ class Pn {
4206
4276
  this.map.clear();
4207
4277
  }
4208
4278
  }
4209
- const st = new Pn(500);
4279
+ const at = new Mn(500);
4210
4280
  function Rn(e, t) {
4211
4281
  if (e == null) {
4212
4282
  oe(
@@ -4220,68 +4290,68 @@ function Rn(e, t) {
4220
4290
  `💡 Tip: If your event handler function returns undefined, make sure you're passing the function reference, not calling it. Use @${t}="\${fn}" not @${t}="\${fn()}"`
4221
4291
  );
4222
4292
  }
4223
- function Ae(e, t = {}, r, n) {
4293
+ function Se(e, t = {}, r, n) {
4224
4294
  const o = n ?? t.key;
4225
4295
  return { tag: e, key: o, props: t, children: r };
4226
4296
  }
4227
- function Le(e) {
4297
+ function Pe(e) {
4228
4298
  return !!e && typeof e == "object" && (e.type === "AnchorBlock" || e.tag === "#anchor");
4229
4299
  }
4230
- function Oe(e) {
4231
- return typeof e == "object" && e !== null && "tag" in e && !Le(e);
4300
+ function je(e) {
4301
+ return typeof e == "object" && e !== null && "tag" in e && !Pe(e);
4232
4302
  }
4233
- function Mn(e, t) {
4303
+ function Nn(e, t) {
4234
4304
  return e.key != null ? e : { ...e, key: t };
4235
4305
  }
4236
4306
  function Dn(e, t = [], r = {}) {
4237
4307
  const n = {}, o = {}, i = {}, s = [], c = /([:@#]?)([a-zA-Z0-9-:\.]+)(?:=("([^"\\]*(\\.[^"\\]*)*)"|'([^'\\]*(\\.[^'\\]*)*)'))?/g;
4238
4308
  let a;
4239
4309
  for (; a = c.exec(e); ) {
4240
- const d = a[1], b = a[2], y = (a[4] || a[6]) ?? "", p = a[3] === void 0 && a[6] === void 0, x = y.match(/^{{(\d+)}}$/);
4241
- let u = p ? !0 : x ? t[Number(x[1])] ?? null : y;
4242
- x || (u === "true" ? u = !0 : u === "false" ? u = !1 : u === "null" ? u = null : isNaN(Number(u)) || (u = Number(u)));
4243
- const f = ["model", "bind", "show", "class", "style", "ref", "when"];
4244
- if (d === ":") {
4245
- const [g, l] = b.split(":"), [m, ...k] = g.split(".");
4246
- if (f.includes(m)) {
4247
- const w = [...k], _ = m === "model" && l ? `model:${l}` : m;
4310
+ const f = a[1], b = a[2], m = (a[4] || a[6]) ?? "", d = a[3] === void 0 && a[6] === void 0, k = m.match(/^{{(\d+)}}$/);
4311
+ let u = d ? !0 : k ? t[Number(k[1])] ?? null : m;
4312
+ k || (u === "true" ? u = !0 : u === "false" ? u = !1 : u === "null" ? u = null : isNaN(Number(u)) || (u = Number(u)));
4313
+ const p = ["model", "bind", "show", "class", "style", "ref", "when"];
4314
+ if (f === ":") {
4315
+ const [h, l] = b.split(":"), [y, ...w] = h.split(".");
4316
+ if (p.includes(y)) {
4317
+ const x = [...w], _ = y === "model" && l ? `model:${l}` : y;
4248
4318
  i[_] = {
4249
4319
  value: u,
4250
- modifiers: w,
4320
+ modifiers: x,
4251
4321
  arg: l
4252
4322
  };
4253
4323
  } else if (b === "disabled") {
4254
- let w = u;
4255
- w && R(w) && (w = w.value);
4256
- const _ = typeof w;
4257
- if (w === "" || _ === "boolean" || _ === "string" && (w === "true" || w === "false") || w == null || _ === "number")
4258
- n[b] = w;
4324
+ let x = u;
4325
+ x && R(x) && (x = x.value);
4326
+ const _ = typeof x;
4327
+ if (x === "" || _ === "boolean" || _ === "string" && (x === "true" || x === "false") || x == null || _ === "number")
4328
+ n[b] = x;
4259
4329
  else {
4260
- let T = u;
4261
- T && R(T) && (T = T.value), o[b] = T;
4330
+ let S = u;
4331
+ S && R(S) && (S = S.value), o[b] = S;
4262
4332
  }
4263
4333
  s.push(b);
4264
4334
  } else {
4265
- let w = u;
4266
- w && R(w) && (w = w.value), o[b] = w, s.push(b);
4335
+ let x = u;
4336
+ x && R(x) && (x = x.value), o[b] = x, s.push(b);
4267
4337
  }
4268
- } else if (d === "@") {
4269
- const [g, ...l] = b.split("."), m = l;
4270
- Rn(u, g);
4271
- const k = typeof u == "function" ? u : typeof r[u] == "function" ? r[u] : void 0;
4272
- if (k) {
4273
- const w = (C) => {
4274
- if (m.includes("prevent") && C.preventDefault(), m.includes("stop") && C.stopPropagation(), !(m.includes("self") && C.target !== C.currentTarget))
4275
- return m.includes("once") && C.currentTarget?.removeEventListener(g, w), k(C);
4276
- }, _ = "on" + g.charAt(0).toUpperCase() + g.slice(1);
4277
- n[_] = w;
4338
+ } else if (f === "@") {
4339
+ const [h, ...l] = b.split("."), y = l;
4340
+ Rn(u, h);
4341
+ const w = typeof u == "function" ? u : typeof r[u] == "function" ? r[u] : void 0;
4342
+ if (w) {
4343
+ const x = (C) => {
4344
+ if (y.includes("prevent") && C.preventDefault(), y.includes("stop") && C.stopPropagation(), !(y.includes("self") && C.target !== C.currentTarget))
4345
+ return y.includes("once") && C.currentTarget?.removeEventListener(h, x), w(C);
4346
+ }, _ = "on" + h.charAt(0).toUpperCase() + h.slice(1);
4347
+ n[_] = x;
4278
4348
  }
4279
4349
  } else b === "ref" ? n.ref = u : o[b] = u;
4280
4350
  }
4281
4351
  return { props: n, attrs: o, directives: i, bound: s };
4282
4352
  }
4283
- function ft(e) {
4284
- if (!Oe(e) || Le(e))
4353
+ function dt(e) {
4354
+ if (!je(e) || Pe(e))
4285
4355
  return e;
4286
4356
  const t = e.props?.directives;
4287
4357
  if (t && t.when) {
@@ -4292,7 +4362,7 @@ function ft(e) {
4292
4362
  props: i
4293
4363
  };
4294
4364
  return Array.isArray(s.children) && (s.children = s.children.map(
4295
- (a) => typeof a == "object" && a !== null ? ft(a) : a
4365
+ (a) => typeof a == "object" && a !== null ? dt(a) : a
4296
4366
  )), {
4297
4367
  tag: "#anchor",
4298
4368
  key: e.key != null ? `when-${e.key}` : `when-${e.tag}`,
@@ -4301,7 +4371,7 @@ function ft(e) {
4301
4371
  }
4302
4372
  if (Array.isArray(e.children)) {
4303
4373
  const r = e.children.map(
4304
- (n) => typeof n == "object" && n !== null ? ft(n) : n
4374
+ (n) => typeof n == "object" && n !== null ? dt(n) : n
4305
4375
  );
4306
4376
  return {
4307
4377
  ...e,
@@ -4310,68 +4380,68 @@ function ft(e) {
4310
4380
  }
4311
4381
  return e;
4312
4382
  }
4313
- function Nn(e, t, r) {
4314
- const n = je.length > 0 ? je[je.length - 1] : void 0, o = r ?? n, i = !r && t.length === 0, s = i ? e.join("<!--TEMPLATE_DELIM-->") : null;
4383
+ function Hn(e, t, r) {
4384
+ const n = Le.length > 0 ? Le[Le.length - 1] : void 0, o = r ?? n, i = !r && t.length === 0, s = i ? e.join("<!--TEMPLATE_DELIM-->") : null;
4315
4385
  if (i && s) {
4316
- const h = st.get(s);
4317
- if (h) return h;
4386
+ const g = at.get(s);
4387
+ if (g) return g;
4318
4388
  }
4319
- function c(h, T) {
4320
- return Ae("#text", {}, h, T);
4389
+ function c(g, S) {
4390
+ return Se("#text", {}, g, S);
4321
4391
  }
4322
4392
  let a = "";
4323
- for (let h = 0; h < e.length; h++)
4324
- a += e[h], h < t.length && (a += `{{${h}}}`);
4325
- const d = /<!--[\s\S]*?-->|<\/?([a-zA-Z0-9-]+)((?:\s+[^\s=>/]+(?:\s*=\s*(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|[^\s>]+))?)*)\s*\/?>|{{(\d+)}}|([^<]+)/g, b = [];
4326
- let y, p = [], x = null, u = {}, f, g = 0, l = [];
4327
- function m(h) {
4328
- !h || typeof h != "object" || Le(h) || (h.props || h.attrs ? (h.props && (u.props || (u.props = {}), Object.assign(u.props, h.props)), h.attrs && (u.attrs || (u.attrs = {}), Object.keys(h.attrs).forEach((T) => {
4329
- if (T === "style" && u.attrs.style) {
4330
- const E = u.attrs.style.replace(
4393
+ for (let g = 0; g < e.length; g++)
4394
+ a += e[g], g < t.length && (a += `{{${g}}}`);
4395
+ const f = /<!--[\s\S]*?-->|<\/?([a-zA-Z0-9-]+)((?:\s+[^\s=>/]+(?:\s*=\s*(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|[^\s>]+))?)*)\s*\/?>|{{(\d+)}}|([^<]+)/g, b = [];
4396
+ let m, d = [], k = null, u = {}, p, h = 0, l = [];
4397
+ function y(g) {
4398
+ !g || typeof g != "object" || Pe(g) || (g.props || g.attrs ? (g.props && (u.props || (u.props = {}), Object.assign(u.props, g.props)), g.attrs && (u.attrs || (u.attrs = {}), Object.keys(g.attrs).forEach((S) => {
4399
+ if (S === "style" && u.attrs.style) {
4400
+ const T = u.attrs.style.replace(
4331
4401
  /;?\s*$/,
4332
4402
  ""
4333
- ), v = h.attrs.style.replace(/^;?\s*/, "");
4334
- u.attrs.style = E + "; " + v;
4335
- } else if (T === "class" && u.attrs.class) {
4336
- const E = u.attrs.class.trim().split(/\s+/).filter(Boolean), v = h.attrs.class.trim().split(/\s+/).filter(Boolean), $ = [
4337
- .../* @__PURE__ */ new Set([...E, ...v])
4403
+ ), $ = g.attrs.style.replace(/^;?\s*/, "");
4404
+ u.attrs.style = T + "; " + $;
4405
+ } else if (S === "class" && u.attrs.class) {
4406
+ const T = u.attrs.class.trim().split(/\s+/).filter(Boolean), $ = g.attrs.class.trim().split(/\s+/).filter(Boolean), v = [
4407
+ .../* @__PURE__ */ new Set([...T, ...$])
4338
4408
  ];
4339
- u.attrs.class = $.join(" ");
4409
+ u.attrs.class = v.join(" ");
4340
4410
  } else
4341
- u.attrs[T] = h.attrs[T];
4342
- }))) : (u.props || (u.props = {}), Object.assign(u.props, h)));
4343
- }
4344
- function k(h, T) {
4345
- const E = x ? p : l;
4346
- if (Le(h)) {
4347
- const v = h.key ?? T;
4348
- let $ = h.children;
4349
- E.push({
4350
- ...h,
4351
- key: v,
4352
- children: $
4411
+ u.attrs[S] = g.attrs[S];
4412
+ }))) : (u.props || (u.props = {}), Object.assign(u.props, g)));
4413
+ }
4414
+ function w(g, S) {
4415
+ const T = k ? d : l;
4416
+ if (Pe(g)) {
4417
+ const $ = g.key ?? S;
4418
+ let v = g.children;
4419
+ T.push({
4420
+ ...g,
4421
+ key: $,
4422
+ children: v
4353
4423
  });
4354
4424
  return;
4355
4425
  }
4356
- if (Oe(h)) {
4357
- E.push(Mn(h, void 0));
4426
+ if (je(g)) {
4427
+ T.push(Nn(g, void 0));
4358
4428
  return;
4359
4429
  }
4360
- if (Array.isArray(h)) {
4361
- if (h.length === 0) return;
4362
- for (let v = 0; v < h.length; v++) {
4363
- const $ = h[v];
4364
- Le($) || Oe($) || Array.isArray($) ? k($, `${T}-${v}`) : $ !== null && typeof $ == "object" ? m($) : E.push(c(String($), `${T}-${v}`));
4430
+ if (Array.isArray(g)) {
4431
+ if (g.length === 0) return;
4432
+ for (let $ = 0; $ < g.length; $++) {
4433
+ const v = g[$];
4434
+ Pe(v) || je(v) || Array.isArray(v) ? w(v, `${S}-${$}`) : v !== null && typeof v == "object" ? y(v) : T.push(c(String(v), `${S}-${$}`));
4365
4435
  }
4366
4436
  return;
4367
4437
  }
4368
- if (h !== null && typeof h == "object") {
4369
- m(h);
4438
+ if (g !== null && typeof g == "object") {
4439
+ y(g);
4370
4440
  return;
4371
4441
  }
4372
- E.push(c(String(h), T));
4442
+ T.push(c(String(g), S));
4373
4443
  }
4374
- const w = /* @__PURE__ */ new Set([
4444
+ const x = /* @__PURE__ */ new Set([
4375
4445
  "area",
4376
4446
  "base",
4377
4447
  "br",
@@ -4387,22 +4457,22 @@ function Nn(e, t, r) {
4387
4457
  "track",
4388
4458
  "wbr"
4389
4459
  ]);
4390
- for (; y = d.exec(a); )
4391
- if (!(y[0].startsWith("<!--") && y[0].endsWith("-->"))) {
4392
- if (y[1]) {
4393
- const h = y[1], T = y[0][1] === "/", E = y[0][y[0].length - 2] === "/" || w.has(h), {
4394
- props: v,
4395
- attrs: $,
4396
- directives: S,
4397
- bound: P
4398
- } = Dn(y[2] || "", t, o), A = { props: {}, attrs: {} };
4399
- for (const j in v) A.props[j] = v[j];
4400
- for (const j in $) A.attrs[j] = $[j];
4401
- A.attrs && Object.prototype.hasOwnProperty.call(A.attrs, "key") && !(A.props && Object.prototype.hasOwnProperty.call(A.props, "key")) && L(() => {
4402
- A.props.key = A.attrs.key;
4460
+ for (; m = f.exec(a); )
4461
+ if (!(m[0].startsWith("<!--") && m[0].endsWith("-->"))) {
4462
+ if (m[1]) {
4463
+ const g = m[1], S = m[0][1] === "/", T = m[0][m[0].length - 2] === "/" || x.has(g), {
4464
+ props: $,
4465
+ attrs: v,
4466
+ directives: A,
4467
+ bound: L
4468
+ } = Dn(m[2] || "", t, o), E = { props: {}, attrs: {} };
4469
+ for (const O in $) E.props[O] = $[O];
4470
+ for (const O in v) E.attrs[O] = v[O];
4471
+ E.attrs && Object.prototype.hasOwnProperty.call(E.attrs, "key") && !(E.props && Object.prototype.hasOwnProperty.call(E.props, "key")) && P(() => {
4472
+ E.props.key = E.attrs.key;
4403
4473
  });
4404
4474
  try {
4405
- const j = {
4475
+ const O = {
4406
4476
  input: ["value", "checked", "readonly", "required", "placeholder", "maxlength", "minlength"],
4407
4477
  textarea: ["value", "readonly", "required", "placeholder", "maxlength", "minlength"],
4408
4478
  select: ["value", "required", "multiple"],
@@ -4411,156 +4481,156 @@ function Nn(e, t, r) {
4411
4481
  audio: ["muted", "autoplay", "controls", "loop"],
4412
4482
  img: ["src", "alt", "width", "height"],
4413
4483
  button: ["type", "name", "value", "autofocus", "form"]
4414
- }, F = h.toLowerCase(), te = j[F] ?? [];
4415
- if (A.attrs) {
4416
- for (const B of te)
4417
- if (P && P.includes(B) && B in A.attrs && !(A.props && B in A.props)) {
4418
- let M = A.attrs[B];
4419
- if (M && R(M))
4420
- M = M.value, A.props[B] = M, delete A.attrs[B];
4484
+ }, M = g.toLowerCase(), I = O[M] ?? [];
4485
+ if (E.attrs) {
4486
+ for (const D of I)
4487
+ if (L && L.includes(D) && D in E.attrs && !(E.props && D in E.props)) {
4488
+ let N = E.attrs[D];
4489
+ if (N && R(N))
4490
+ N = N.value, E.props[D] = N, delete E.attrs[D];
4421
4491
  else {
4422
- const K = typeof M;
4423
- B === "disabled" ? (M === "" || K === "boolean" || K === "string" && (M === "true" || M === "false") || M == null || K === "number") && (A.props[B] = M, L(() => {
4424
- const U = globalThis;
4425
- U.__VDOM_DISABLED_PROMOTIONS || (U.__VDOM_DISABLED_PROMOTIONS = []), U.__VDOM_DISABLED_PROMOTIONS.push({ phase: "compiler-promotion", tag: h, propName: B, value: M, time: Date.now(), stack: new Error().stack });
4426
- }), delete A.attrs[B]) : (M === "" || K === "string" || K === "number" || K === "boolean" || M == null) && (A.props[B] = M, delete A.attrs[B]);
4492
+ const q = typeof N;
4493
+ D === "disabled" ? (N === "" || q === "boolean" || q === "string" && (N === "true" || N === "false") || N == null || q === "number") && (E.props[D] = N, P(() => {
4494
+ const K = globalThis;
4495
+ K.__VDOM_DISABLED_PROMOTIONS || (K.__VDOM_DISABLED_PROMOTIONS = []), K.__VDOM_DISABLED_PROMOTIONS.push({ phase: "compiler-promotion", tag: g, propName: D, value: N, time: Date.now(), stack: new Error().stack });
4496
+ }), delete E.attrs[D]) : (N === "" || q === "string" || q === "number" || q === "boolean" || N == null) && (E.props[D] = N, delete E.attrs[D]);
4427
4497
  }
4428
4498
  }
4429
4499
  }
4430
- if ((h.includes("-") || !!o?.__customElements?.has?.(h)) && (A.isCustomElement = !0, P && A.attrs)) {
4431
- const B = /* @__PURE__ */ new Set(["id", "name", "data-key", "key"]);
4432
- for (const M of P)
4433
- if (M in A.attrs && !(A.props && M in A.props)) {
4434
- const K = M.includes("-") ? pt(M) : M;
4435
- let ie = A.attrs[M];
4436
- A.props[K] = ie, B.has(M) || delete A.attrs[M];
4500
+ if ((g.includes("-") || !!o?.__customElements?.has?.(g)) && (E.isCustomElement = !0, L && E.attrs)) {
4501
+ const D = /* @__PURE__ */ new Set(["id", "name", "data-key", "key"]);
4502
+ for (const N of L)
4503
+ if (N in E.attrs && !(E.props && N in E.props)) {
4504
+ const q = N.includes("-") ? ht(N) : N;
4505
+ let ie = E.attrs[N];
4506
+ E.props[q] = ie, D.has(N) || delete E.attrs[N];
4437
4507
  }
4438
4508
  }
4439
4509
  } catch {
4440
4510
  }
4441
- if (S && Object.keys(S).some((j) => j === "model" || j.startsWith("model:")))
4511
+ if (A && Object.keys(A).some((O) => O === "model" || O.startsWith("model:")))
4442
4512
  try {
4443
- const j = Symbol.for("cer.registry"), F = globalThis[j], te = !!(F && typeof F.has == "function" && F.has(h)), De = !!(o && (o.__customElements instanceof Set && o.__customElements.has(h) || Array.isArray(o.__isCustomElements) && o.__isCustomElements.includes(h)));
4444
- if (!!(h.includes("-") || De || te))
4445
- for (const K of Object.keys(S)) {
4446
- if (K !== "model" && !K.startsWith("model:")) continue;
4447
- const ie = S[K], ue = ie.arg ?? (K.includes(":") ? K.split(":", 2)[1] : void 0), U = ie.value, ne = ue ?? "modelValue", ce = V, O = Ve, D = o ? o._state || o : void 0;
4448
- let I;
4449
- typeof U == "string" && o ? I = ce(D, U) : I = U, A.props[ne] = I;
4513
+ const O = Symbol.for("cer.registry"), M = globalThis[O], I = !!(M && typeof M.has == "function" && M.has(g)), ue = !!(o && (o.__customElements instanceof Set && o.__customElements.has(g) || Array.isArray(o.__isCustomElements) && o.__isCustomElements.includes(g)));
4514
+ if (!!(g.includes("-") || ue || I))
4515
+ for (const q of Object.keys(A)) {
4516
+ if (q !== "model" && !q.startsWith("model:")) continue;
4517
+ const ie = A[q], fe = ie.arg ?? (q.includes(":") ? q.split(":", 2)[1] : void 0), K = ie.value, ne = fe ?? "modelValue", ce = V, j = qe, H = o ? o._state || o : void 0;
4518
+ let B;
4519
+ typeof K == "string" && o ? B = ce(H, K) : B = K, E.props[ne] = B;
4450
4520
  try {
4451
- const fe = ee(ne);
4452
- A.attrs || (A.attrs = {}), I != null && (typeof I == "string" || typeof I == "number" || typeof I == "boolean") && (A.attrs[fe] = I);
4521
+ const de = te(ne);
4522
+ E.attrs || (E.attrs = {}), B != null && (typeof B == "string" || typeof B == "number" || typeof B == "boolean") && (E.attrs[de] = B);
4453
4523
  } catch {
4454
4524
  }
4455
- A.isCustomElement = !0;
4456
- const W = `update:${ee(ne)}`.replace(/-([a-z])/g, (fe, se) => se.toUpperCase()), Z = "on" + W.charAt(0).toUpperCase() + W.slice(1);
4457
- A.props[Z] = function(fe) {
4458
- const se = fe.detail !== void 0 ? fe.detail : fe.target ? fe.target.value : void 0;
4459
- if (D)
4460
- if (U && R(U)) {
4461
- const de = U.value;
4462
- (Array.isArray(se) && Array.isArray(de) ? JSON.stringify([...se].sort()) !== JSON.stringify([...de].sort()) : se !== de) && (U.value = se, o?.requestRender ? o.requestRender() : o?._requestRender && o._requestRender());
4525
+ E.isCustomElement = !0;
4526
+ const z = `update:${te(ne)}`.replace(/-([a-z])/g, (de, se) => se.toUpperCase()), G = "on" + z.charAt(0).toUpperCase() + z.slice(1);
4527
+ E.props[G] = function(de) {
4528
+ const se = de.detail !== void 0 ? de.detail : de.target ? de.target.value : void 0;
4529
+ if (H)
4530
+ if (K && R(K)) {
4531
+ const he = K.value;
4532
+ (Array.isArray(se) && Array.isArray(he) ? JSON.stringify([...se].sort()) !== JSON.stringify([...he].sort()) : se !== he) && (K.value = se, o?.requestRender ? o.requestRender() : o?._requestRender && o._requestRender());
4463
4533
  } else {
4464
- const de = ce(D, typeof U == "string" ? U : String(U));
4465
- (Array.isArray(se) && Array.isArray(de) ? JSON.stringify([...se].sort()) !== JSON.stringify([...de].sort()) : se !== de) && (O(D, typeof U == "string" ? U : String(U), se), o?.requestRender ? o.requestRender() : o?._requestRender && o._requestRender());
4534
+ const he = ce(H, typeof K == "string" ? K : String(K));
4535
+ (Array.isArray(se) && Array.isArray(he) ? JSON.stringify([...se].sort()) !== JSON.stringify([...he].sort()) : se !== he) && (j(H, typeof K == "string" ? K : String(K), se), o?.requestRender ? o.requestRender() : o?._requestRender && o._requestRender());
4466
4536
  }
4467
- }, delete S[K];
4537
+ }, delete A[q];
4468
4538
  }
4469
4539
  } catch {
4470
4540
  }
4471
- if (Object.keys(S).length > 0 && (A.directives = { ...S }), T) {
4472
- const j = Ae(
4473
- x,
4541
+ if (Object.keys(A).length > 0 && (E.directives = { ...A }), S) {
4542
+ const O = Se(
4543
+ k,
4474
4544
  u,
4475
- p.length === 1 && Oe(p[0]) && p[0].tag === "#text" ? typeof p[0].children == "string" ? p[0].children : "" : p.length ? p : void 0,
4476
- f
4477
- ), F = b.pop();
4478
- F ? (x = F.tag, u = F.props, f = F.key, p = F.children, p.push(j)) : (l.push(j), x = null, u = {}, f = void 0, p = []);
4479
- } else E ? x ? p.push(Ae(h, A, void 0, void 0)) : l.push(Ae(h, A, void 0, void 0)) : (x && b.push({
4480
- tag: x,
4545
+ d.length === 1 && je(d[0]) && d[0].tag === "#text" ? typeof d[0].children == "string" ? d[0].children : "" : d.length ? d : void 0,
4546
+ p
4547
+ ), M = b.pop();
4548
+ M ? (k = M.tag, u = M.props, p = M.key, d = M.children, d.push(O)) : (l.push(O), k = null, u = {}, p = void 0, d = []);
4549
+ } else T ? k ? d.push(Se(g, E, void 0, void 0)) : l.push(Se(g, E, void 0, void 0)) : (k && b.push({
4550
+ tag: k,
4481
4551
  props: u,
4482
- children: p,
4483
- key: f
4484
- }), x = h, u = A, p = []);
4485
- } else if (typeof y[3] < "u") {
4486
- const h = Number(y[3]), T = t[h], E = `interp-${h}`;
4487
- k(T, E);
4488
- } else if (y[4]) {
4489
- const h = y[4], T = x ? p : l, E = h.split(/({{\d+}})/);
4490
- for (const v of E) {
4491
- if (!v) continue;
4492
- const $ = v.match(/^{{(\d+)}}$/);
4493
- if ($) {
4494
- const S = Number($[1]), P = t[S], A = `interp-${S}`;
4495
- k(P, A);
4552
+ children: d,
4553
+ key: p
4554
+ }), k = g, u = E, d = []);
4555
+ } else if (typeof m[3] < "u") {
4556
+ const g = Number(m[3]), S = t[g], T = `interp-${g}`;
4557
+ w(S, T);
4558
+ } else if (m[4]) {
4559
+ const g = m[4], S = k ? d : l, T = g.split(/({{\d+}})/);
4560
+ for (const $ of T) {
4561
+ if (!$) continue;
4562
+ const v = $.match(/^{{(\d+)}}$/);
4563
+ if (v) {
4564
+ const A = Number(v[1]), L = t[A], E = `interp-${A}`;
4565
+ w(L, E);
4496
4566
  } else {
4497
- const S = `text-${g++}`;
4498
- T.push(c(v, S));
4567
+ const A = `text-${h++}`;
4568
+ S.push(c($, A));
4499
4569
  }
4500
4570
  }
4501
4571
  }
4502
4572
  }
4503
- const C = l.filter((h) => Oe(h) && h.tag === "#text" ? typeof h.children == "string" && h.children.trim() !== "" : !0).map((h) => ft(h));
4573
+ const C = l.filter((g) => je(g) && g.tag === "#text" ? typeof g.children == "string" && g.children.trim() !== "" : !0).map((g) => dt(g));
4504
4574
  if (C.length === 1) {
4505
- const h = C[0];
4506
- return i && s && st.set(s, h), h;
4575
+ const g = C[0];
4576
+ return i && s && at.set(s, g), g;
4507
4577
  } else if (C.length > 1) {
4508
- const h = C;
4509
- return i && s && st.set(s, h), h;
4578
+ const g = C;
4579
+ return i && s && at.set(s, g), g;
4510
4580
  }
4511
- return Ae("div", {}, "", "fallback-root");
4581
+ return Se("div", {}, "", "fallback-root");
4512
4582
  }
4513
- function pe(e, ...t) {
4583
+ function ge(e, ...t) {
4514
4584
  const r = t[t.length - 1], n = typeof r == "object" && r && !Array.isArray(r) ? r : void 0;
4515
- return Nn(e, t, n);
4516
- }
4517
- function tr(e, t) {
4518
- return qe(!e, t);
4585
+ return Hn(e, t, n);
4519
4586
  }
4520
4587
  function nr(e, t) {
4521
- const r = !e || e.length === 0;
4522
- return qe(r, t);
4588
+ return Ve(!e, t);
4523
4589
  }
4524
4590
  function rr(e, t) {
4591
+ const r = !e || e.length === 0;
4592
+ return Ve(r, t);
4593
+ }
4594
+ function or(e, t) {
4525
4595
  const r = !!(e && e.length > 0);
4526
- return qe(r, t);
4596
+ return Ve(r, t);
4527
4597
  }
4528
- function or(e, t, r) {
4598
+ function ir(e, t, r) {
4529
4599
  const n = [];
4530
4600
  return e.forEach((o, i) => {
4531
4601
  t(o, i) && n.push({ item: o, originalIndex: i });
4532
4602
  }), n.map(({ item: o, originalIndex: i }, s) => {
4533
4603
  const c = typeof o == "object" && o != null ? o?.key ?? o?.id ?? `filtered-${i}` : `filtered-${i}`;
4534
- return z(r(o, i, s), `each-where-${c}`);
4604
+ return U(r(o, i, s), `each-where-${c}`);
4535
4605
  });
4536
4606
  }
4537
- function ir(e, t) {
4607
+ function sr(e, t) {
4538
4608
  const r = e?.length ?? 0;
4539
- return r === 0 && t.empty ? z(t.empty, "switch-length-empty") : r === 1 && t.one ? z(t.one(e[0]), "switch-length-one") : t.exactly?.[r] ? z(t.exactly[r](e), `switch-length-${r}`) : r > 1 && t.many ? z(t.many(e), "switch-length-many") : z([], "switch-length-fallback");
4609
+ return r === 0 && t.empty ? U(t.empty, "switch-length-empty") : r === 1 && t.one ? U(t.one(e[0]), "switch-length-one") : t.exactly?.[r] ? U(t.exactly[r](e), `switch-length-${r}`) : r > 1 && t.many ? U(t.many(e), "switch-length-many") : U([], "switch-length-fallback");
4540
4610
  }
4541
- function sr(e, t, r) {
4611
+ function ar(e, t, r) {
4542
4612
  const n = /* @__PURE__ */ new Map();
4543
4613
  return e.forEach((o) => {
4544
4614
  const i = t(o);
4545
4615
  n.has(i) || n.set(i, []), n.get(i).push(o);
4546
- }), Array.from(n.entries()).map(([o, i], s) => z(
4616
+ }), Array.from(n.entries()).map(([o, i], s) => U(
4547
4617
  r(o, i, s),
4548
4618
  `each-group-${o}`
4549
4619
  ));
4550
4620
  }
4551
- function ar(e, t, r, n) {
4621
+ function cr(e, t, r, n) {
4552
4622
  const o = r * t, i = Math.min(o + t, e.length);
4553
4623
  return e.slice(o, i).map((c, a) => {
4554
- const d = o + a, b = typeof c == "object" && c != null ? c?.key ?? c?.id ?? `page-${d}` : `page-${d}`;
4555
- return z(n(c, d, a), `each-page-${b}`);
4624
+ const f = o + a, b = typeof c == "object" && c != null ? c?.key ?? c?.id ?? `page-${f}` : `page-${f}`;
4625
+ return U(n(c, f, a), `each-page-${b}`);
4556
4626
  });
4557
4627
  }
4558
- function cr(e, t) {
4559
- return e.loading && t.loading ? z(t.loading, "promise-loading") : e.error && t.error ? z(t.error(e.error), "promise-error") : e.data !== void 0 && t.success ? z(t.success(e.data), "promise-success") : t.idle ? z(t.idle, "promise-idle") : z([], "promise-fallback");
4628
+ function lr(e, t) {
4629
+ return e.loading && t.loading ? U(t.loading, "promise-loading") : e.error && t.error ? U(t.error(e.error), "promise-error") : e.data !== void 0 && t.success ? U(t.success(e.data), "promise-success") : t.idle ? U(t.idle, "promise-idle") : U([], "promise-fallback");
4560
4630
  }
4561
- function G(e, t) {
4631
+ function J(e, t) {
4562
4632
  const r = typeof window < "u" && window.matchMedia?.(e)?.matches;
4563
- return qe(!!r, t);
4633
+ return Ve(!!r, t);
4564
4634
  }
4565
4635
  const le = {
4566
4636
  // Responsive breakpoints (matching style.ts)
@@ -4571,43 +4641,43 @@ const le = {
4571
4641
  "2xl": "(min-width:1536px)",
4572
4642
  // Dark mode (matching style.ts)
4573
4643
  dark: "(prefers-color-scheme: dark)"
4574
- }, Ht = ["sm", "md", "lg", "xl", "2xl"], In = {
4644
+ }, Ft = ["sm", "md", "lg", "xl", "2xl"], In = {
4575
4645
  // Breakpoint-based rendering (matching style.ts exactly)
4576
- sm: (e) => G(le.sm, e),
4577
- md: (e) => G(le.md, e),
4578
- lg: (e) => G(le.lg, e),
4579
- xl: (e) => G(le.xl, e),
4580
- "2xl": (e) => G(le["2xl"], e),
4646
+ sm: (e) => J(le.sm, e),
4647
+ md: (e) => J(le.md, e),
4648
+ lg: (e) => J(le.lg, e),
4649
+ xl: (e) => J(le.xl, e),
4650
+ "2xl": (e) => J(le["2xl"], e),
4581
4651
  // Dark mode (matching style.ts)
4582
- dark: (e) => G(le.dark, e),
4583
- light: (e) => G("(prefers-color-scheme: light)", e),
4652
+ dark: (e) => J(le.dark, e),
4653
+ light: (e) => J("(prefers-color-scheme: light)", e),
4584
4654
  // Accessibility and interaction preferences
4585
- touch: (e) => G("(hover: none) and (pointer: coarse)", e),
4586
- mouse: (e) => G("(hover: hover) and (pointer: fine)", e),
4587
- reducedMotion: (e) => G("(prefers-reduced-motion: reduce)", e),
4588
- highContrast: (e) => G("(prefers-contrast: high)", e),
4655
+ touch: (e) => J("(hover: none) and (pointer: coarse)", e),
4656
+ mouse: (e) => J("(hover: hover) and (pointer: fine)", e),
4657
+ reducedMotion: (e) => J("(prefers-reduced-motion: reduce)", e),
4658
+ highContrast: (e) => J("(prefers-contrast: high)", e),
4589
4659
  // Orientation
4590
- portrait: (e) => G("(orientation: portrait)", e),
4591
- landscape: (e) => G("(orientation: landscape)", e)
4660
+ portrait: (e) => J("(orientation: portrait)", e),
4661
+ landscape: (e) => J("(orientation: landscape)", e)
4592
4662
  };
4593
- function lr(e, t) {
4663
+ function ur(e, t) {
4594
4664
  const r = [];
4595
4665
  e.includes("dark") ? r.push(le.dark) : e.includes("light") && r.push("(prefers-color-scheme: light)");
4596
4666
  const n = e.filter(
4597
- (s) => Ht.includes(s)
4667
+ (s) => Ft.includes(s)
4598
4668
  ), o = n[n.length - 1];
4599
4669
  o && o in le && r.push(le[o]);
4600
4670
  const i = r.length > 0 ? r.join(" and ") : "all";
4601
- return G(i, t);
4671
+ return J(i, t);
4602
4672
  }
4603
- function ur(e) {
4673
+ function fr(e) {
4604
4674
  const t = [];
4605
- return e.base && t.push(z(e.base, "responsive-base")), Ht.forEach((r) => {
4675
+ return e.base && t.push(U(e.base, "responsive-base")), Ft.forEach((r) => {
4606
4676
  const n = e[r];
4607
4677
  n && t.push(In[r](n));
4608
4678
  }), t;
4609
4679
  }
4610
- function fr(e) {
4680
+ function dr(e) {
4611
4681
  const t = [];
4612
4682
  let r = null;
4613
4683
  return {
@@ -4625,13 +4695,13 @@ function fr(e) {
4625
4695
  for (let n = 0; n < t.length; n++) {
4626
4696
  const { condition: o, content: i } = t[n];
4627
4697
  if (o(e))
4628
- return z(i, `switch-case-${n}`);
4698
+ return U(i, `switch-case-${n}`);
4629
4699
  }
4630
- return z(r || [], "switch-otherwise");
4700
+ return U(r || [], "switch-otherwise");
4631
4701
  }
4632
4702
  };
4633
4703
  }
4634
- class be extends EventTarget {
4704
+ class we extends EventTarget {
4635
4705
  handlers = {};
4636
4706
  static instance;
4637
4707
  eventCounters = /* @__PURE__ */ new Map();
@@ -4639,7 +4709,7 @@ class be extends EventTarget {
4639
4709
  * Returns the singleton instance of GlobalEventBus
4640
4710
  */
4641
4711
  static getInstance() {
4642
- return be.instance || (be.instance = new be()), be.instance;
4712
+ return we.instance || (we.instance = new we()), we.instance;
4643
4713
  }
4644
4714
  /**
4645
4715
  * Emit a global event with optional data. Includes event storm protection.
@@ -4663,7 +4733,7 @@ class be extends EventTarget {
4663
4733
  try {
4664
4734
  s(r);
4665
4735
  } catch (c) {
4666
- N(`Error in global event handler for "${t}":`, c);
4736
+ F(`Error in global event handler for "${t}":`, c);
4667
4737
  }
4668
4738
  });
4669
4739
  }
@@ -4752,8 +4822,8 @@ class be extends EventTarget {
4752
4822
  this.eventCounters.clear();
4753
4823
  }
4754
4824
  }
4755
- const Me = be.getInstance(), dr = (e, t) => Me.emit(e, t), pr = (e, t) => Me.on(e, t), hr = (e, t) => Me.off(e, t), gr = (e, t) => Me.once(e, t), mr = (e, t, r) => Me.listen(e, t, r);
4756
- function Tt(e) {
4825
+ const Ne = we.getInstance(), pr = (e, t) => Ne.emit(e, t), hr = (e, t) => Ne.on(e, t), gr = (e, t) => Ne.off(e, t), mr = (e, t) => Ne.once(e, t), yr = (e, t, r) => Ne.listen(e, t, r);
4826
+ function Ot(e) {
4757
4827
  let t = { ...e };
4758
4828
  const r = [];
4759
4829
  function n(c) {
@@ -4771,25 +4841,25 @@ function Tt(e) {
4771
4841
  }
4772
4842
  return { subscribe: n, getState: o, setState: i };
4773
4843
  }
4774
- const Ot = (e) => e ? typeof URLSearchParams > "u" ? {} : Object.fromEntries(new URLSearchParams(e)) : {}, ae = (e, t) => {
4844
+ const jt = (e) => e ? typeof URLSearchParams > "u" ? {} : Object.fromEntries(new URLSearchParams(e)) : {}, ae = (e, t) => {
4775
4845
  for (const r of e) {
4776
4846
  const n = [], o = r.path.replace(/:[^/]+/g, (c) => (n.push(c.slice(1)), "([^/]+)")), i = new RegExp(`^${o}$`), s = t.match(i);
4777
4847
  if (s) {
4778
4848
  const c = {};
4779
- return n.forEach((a, d) => {
4780
- c[a] = s[d + 1];
4849
+ return n.forEach((a, f) => {
4850
+ c[a] = s[f + 1];
4781
4851
  }), { route: r, params: c };
4782
4852
  }
4783
4853
  }
4784
4854
  return { route: null, params: {} };
4785
- }, at = {};
4786
- async function Hn(e) {
4855
+ }, ct = {};
4856
+ async function Fn(e) {
4787
4857
  if (e.component) return e.component;
4788
4858
  if (e.load) {
4789
- if (at[e.path]) return at[e.path];
4859
+ if (ct[e.path]) return ct[e.path];
4790
4860
  try {
4791
4861
  const t = await e.load();
4792
- return at[e.path] = t.default, t.default;
4862
+ return ct[e.path] = t.default, t.default;
4793
4863
  } catch {
4794
4864
  throw new Error(`Failed to load component for route: ${e.path}`);
4795
4865
  }
@@ -4798,260 +4868,260 @@ async function Hn(e) {
4798
4868
  }
4799
4869
  function Bn(e) {
4800
4870
  const { routes: t, base: r = "", initialUrl: n } = e;
4801
- let o, i, s, c, a, d, b;
4802
- const y = async (f, g) => {
4803
- const l = t.find((m) => ae([m], f.path).route !== null);
4871
+ let o, i, s, c, a, f, b;
4872
+ const m = async (p, h) => {
4873
+ const l = t.find((y) => ae([y], p.path).route !== null);
4804
4874
  if (l?.beforeEnter)
4805
4875
  try {
4806
- const m = await l.beforeEnter(f, g);
4807
- return typeof m == "string" ? (await u(m, !0), !1) : m !== !1;
4808
- } catch (m) {
4809
- return N("beforeEnter error", m), !1;
4876
+ const y = await l.beforeEnter(p, h);
4877
+ return typeof y == "string" ? (await u(y, !0), !1) : y !== !1;
4878
+ } catch (y) {
4879
+ return F("beforeEnter error", y), !1;
4810
4880
  }
4811
4881
  return !0;
4812
- }, p = async (f, g) => {
4813
- const l = t.find((m) => ae([m], f.path).route !== null);
4882
+ }, d = async (p, h) => {
4883
+ const l = t.find((y) => ae([y], p.path).route !== null);
4814
4884
  if (l?.onEnter)
4815
4885
  try {
4816
- const m = await l.onEnter(f, g);
4817
- return typeof m == "string" ? (await u(m, !0), !1) : m !== !1;
4818
- } catch (m) {
4819
- return N("onEnter error", m), !1;
4886
+ const y = await l.onEnter(p, h);
4887
+ return typeof y == "string" ? (await u(y, !0), !1) : y !== !1;
4888
+ } catch (y) {
4889
+ return F("onEnter error", y), !1;
4820
4890
  }
4821
4891
  return !0;
4822
- }, x = (f, g) => {
4823
- const l = t.find((m) => ae([m], f.path).route !== null);
4892
+ }, k = (p, h) => {
4893
+ const l = t.find((y) => ae([y], p.path).route !== null);
4824
4894
  if (l?.afterEnter)
4825
4895
  try {
4826
- l.afterEnter(f, g);
4827
- } catch (m) {
4828
- N("afterEnter error", m);
4896
+ l.afterEnter(p, h);
4897
+ } catch (y) {
4898
+ F("afterEnter error", y);
4829
4899
  }
4830
- }, u = async (f, g = !1) => {
4900
+ }, u = async (p, h = !1) => {
4831
4901
  try {
4832
4902
  const l = {
4833
- path: f.replace(r, "") || "/",
4903
+ path: p.replace(r, "") || "/",
4834
4904
  query: {}
4835
- }, m = ae(t, l.path);
4836
- if (!m) throw new Error(`No route found for ${l.path}`);
4837
- const k = s.getState(), w = {
4905
+ }, y = ae(t, l.path);
4906
+ if (!y) throw new Error(`No route found for ${l.path}`);
4907
+ const w = s.getState(), x = {
4838
4908
  path: l.path,
4839
- params: m.params,
4909
+ params: y.params,
4840
4910
  query: l.query
4841
4911
  };
4842
- if (!await y(w, k) || !await p(w, k)) return;
4843
- typeof window < "u" && typeof document < "u" && (g ? window.history.replaceState({}, "", r + f) : window.history.pushState({}, "", r + f)), s.setState(w), x(w, k);
4912
+ if (!await m(x, w) || !await d(x, w)) return;
4913
+ typeof window < "u" && typeof document < "u" && (h ? window.history.replaceState({}, "", r + p) : window.history.pushState({}, "", r + p)), s.setState(x), k(x, w);
4844
4914
  } catch (l) {
4845
- N("Navigation error:", l);
4915
+ F("Navigation error:", l);
4846
4916
  }
4847
4917
  };
4848
4918
  if (typeof window < "u" && typeof document < "u" && typeof n > "u") {
4849
4919
  o = () => {
4850
- const g = new URL(window.location.href), l = g.pathname.replace(r, "") || "/", m = Ot(g.search);
4851
- return { path: l, query: m };
4920
+ const h = new URL(window.location.href), l = h.pathname.replace(r, "") || "/", y = jt(h.search);
4921
+ return { path: l, query: y };
4852
4922
  }, i = o();
4853
- const f = ae(t, i.path);
4854
- s = Tt({
4923
+ const p = ae(t, i.path);
4924
+ s = Ot({
4855
4925
  path: i.path,
4856
- params: f.params,
4926
+ params: p.params,
4857
4927
  query: i.query
4858
- }), c = async (g = !1) => {
4928
+ }), c = async (h = !1) => {
4859
4929
  const l = o();
4860
- await u(l.path, g);
4861
- }, window.addEventListener("popstate", () => c(!0)), a = (g) => u(g, !1), d = (g) => u(g, !0), b = () => window.history.back();
4930
+ await u(l.path, h);
4931
+ }, window.addEventListener("popstate", () => c(!0)), a = (h) => u(h, !1), f = (h) => u(h, !0), b = () => window.history.back();
4862
4932
  } else {
4863
4933
  o = () => {
4864
- const l = new URL(n || "/", "http://localhost"), m = l.pathname.replace(r, "") || "/", k = Ot(l.search);
4865
- return { path: m, query: k };
4934
+ const l = new URL(n || "/", "http://localhost"), y = l.pathname.replace(r, "") || "/", w = jt(l.search);
4935
+ return { path: y, query: w };
4866
4936
  }, i = o();
4867
- const f = ae(t, i.path);
4868
- s = Tt({
4937
+ const p = ae(t, i.path);
4938
+ s = Ot({
4869
4939
  path: i.path,
4870
- params: f.params,
4940
+ params: p.params,
4871
4941
  query: i.query
4872
4942
  }), c = async () => {
4873
4943
  const l = o();
4874
- await g(l.path);
4944
+ await h(l.path);
4875
4945
  };
4876
- const g = async (l) => {
4946
+ const h = async (l) => {
4877
4947
  try {
4878
- const m = {
4948
+ const y = {
4879
4949
  path: l.replace(r, "") || "/",
4880
4950
  query: {}
4881
- }, k = ae(t, m.path);
4882
- if (!k) throw new Error(`No route found for ${m.path}`);
4883
- const w = s.getState(), _ = {
4884
- path: m.path,
4885
- params: k.params,
4886
- query: m.query
4887
- }, C = t.find((h) => ae([h], _.path).route !== null);
4951
+ }, w = ae(t, y.path);
4952
+ if (!w) throw new Error(`No route found for ${y.path}`);
4953
+ const x = s.getState(), _ = {
4954
+ path: y.path,
4955
+ params: w.params,
4956
+ query: y.query
4957
+ }, C = t.find((g) => ae([g], _.path).route !== null);
4888
4958
  if (C?.beforeEnter)
4889
4959
  try {
4890
- const h = await C.beforeEnter(_, w);
4891
- if (typeof h == "string") {
4892
- await g(h);
4960
+ const g = await C.beforeEnter(_, x);
4961
+ if (typeof g == "string") {
4962
+ await h(g);
4893
4963
  return;
4894
4964
  }
4895
- if (h === !1) return;
4965
+ if (g === !1) return;
4896
4966
  } catch {
4897
4967
  return;
4898
4968
  }
4899
4969
  if (C?.onEnter)
4900
4970
  try {
4901
- const h = await C.onEnter(_, w);
4902
- if (typeof h == "string") {
4903
- await g(h);
4971
+ const g = await C.onEnter(_, x);
4972
+ if (typeof g == "string") {
4973
+ await h(g);
4904
4974
  return;
4905
4975
  }
4906
- if (h === !1) return;
4976
+ if (g === !1) return;
4907
4977
  } catch {
4908
4978
  return;
4909
4979
  }
4910
4980
  if (s.setState(_), C?.afterEnter)
4911
4981
  try {
4912
- C.afterEnter(_, w);
4982
+ C.afterEnter(_, x);
4913
4983
  } catch {
4914
4984
  }
4915
4985
  } catch {
4916
4986
  }
4917
4987
  };
4918
- a = async (l) => g(l), d = async (l) => g(l), b = () => {
4988
+ a = async (l) => h(l), f = async (l) => h(l), b = () => {
4919
4989
  };
4920
4990
  }
4921
4991
  return {
4922
4992
  store: s,
4923
4993
  push: a,
4924
- replace: d,
4994
+ replace: f,
4925
4995
  back: b,
4926
4996
  subscribe: s.subscribe,
4927
- matchRoute: (f) => ae(t, f),
4997
+ matchRoute: (p) => ae(t, p),
4928
4998
  getCurrent: () => s.getState(),
4929
- resolveRouteComponent: Hn
4999
+ resolveRouteComponent: Fn
4930
5000
  };
4931
5001
  }
4932
- function yr(e, t) {
5002
+ function br(e, t) {
4933
5003
  return ae(e, t);
4934
5004
  }
4935
- function br(e) {
5005
+ function wr(e) {
4936
5006
  const t = Bn(e);
4937
- return St("router-view", (r = {}, n = {}) => {
5007
+ return Tt("router-view", (r = {}, n = {}) => {
4938
5008
  const { onConnected: o } = n;
4939
5009
  if (o && o(() => {
4940
5010
  t && typeof t.subscribe == "function" && t.subscribe(() => {
4941
5011
  });
4942
- }), !t) return pe`<div>Router not initialized.</div>`;
5012
+ }), !t) return ge`<div>Router not initialized.</div>`;
4943
5013
  const i = t.getCurrent(), { path: s } = i, c = t.matchRoute(s);
4944
5014
  return c.route ? t.resolveRouteComponent(c.route).then((a) => {
4945
5015
  if (typeof a == "string")
4946
5016
  return { tag: a, props: {}, children: [] };
4947
5017
  if (typeof a == "function") {
4948
- const d = a();
4949
- return (d instanceof Promise ? d : Promise.resolve(d)).then((y) => typeof y == "string" ? { tag: y, props: {}, children: [] } : y);
5018
+ const f = a();
5019
+ return (f instanceof Promise ? f : Promise.resolve(f)).then((m) => typeof m == "string" ? { tag: m, props: {}, children: [] } : m);
4950
5020
  }
4951
- return pe`<div>Invalid route component</div>`;
4952
- }).catch(() => pe`<div>Invalid route component</div>`) : pe`<div>Not found</div>`;
4953
- }), St("router-link", (r = {}, n = {}) => {
5021
+ return ge`<div>Invalid route component</div>`;
5022
+ }).catch(() => ge`<div>Invalid route component</div>`) : ge`<div>Not found</div>`;
5023
+ }), Tt("router-link", (r = {}, n = {}) => {
4954
5024
  const {
4955
5025
  to: o = "",
4956
5026
  tag: i = "a",
4957
5027
  replace: s = !1,
4958
5028
  exact: c = !1,
4959
5029
  activeClass: a = "active",
4960
- exactActiveClass: d = "exact-active",
5030
+ exactActiveClass: f = "exact-active",
4961
5031
  ariaCurrentValue: b = "page",
4962
- disabled: y = !1,
4963
- external: p = !1,
4964
- class: x = ""
4965
- } = r, u = t.getCurrent(), f = u.path === o, g = c ? f : u && typeof u.path == "string" ? u.path.startsWith(o) : !1, l = f ? `aria-current="${b}"` : "", m = (x || "").split(/\s+/).filter(Boolean), k = {};
4966
- for (const E of m) k[E] = !0;
4967
- const w = {
4968
- ...k,
5032
+ disabled: m = !1,
5033
+ external: d = !1,
5034
+ class: k = ""
5035
+ } = r, u = t.getCurrent(), p = u.path === o, h = c ? p : u && typeof u.path == "string" ? u.path.startsWith(o) : !1, l = p ? `aria-current="${b}"` : "", y = (k || "").split(/\s+/).filter(Boolean), w = {};
5036
+ for (const T of y) w[T] = !0;
5037
+ const x = {
5038
+ ...w,
4969
5039
  // Also include the configurable names (may duplicate the above)
4970
- [a]: g,
4971
- [d]: f
4972
- }, _ = i === "button", C = y ? _ ? 'disabled aria-disabled="true" tabindex="-1"' : 'aria-disabled="true" tabindex="-1"' : "", h = p && (i === "a" || !i) ? 'target="_blank" rel="noopener noreferrer"' : "", T = (E) => {
4973
- if (y) {
4974
- E.preventDefault();
5040
+ [a]: h,
5041
+ [f]: p
5042
+ }, _ = i === "button", C = m ? _ ? 'disabled aria-disabled="true" tabindex="-1"' : 'aria-disabled="true" tabindex="-1"' : "", g = d && (i === "a" || !i) ? 'target="_blank" rel="noopener noreferrer"' : "", S = (T) => {
5043
+ if (m) {
5044
+ T.preventDefault();
4975
5045
  return;
4976
5046
  }
4977
- p && (i === "a" || !i) || (E.preventDefault(), s ? t.replace(o) : t.push(o));
5047
+ d && (i === "a" || !i) || (T.preventDefault(), s ? t.replace(o) : t.push(o));
4978
5048
  };
4979
- return pe`
4980
- ${_n().when(_, pe`
5049
+ return ge`
5050
+ ${An().when(_, ge`
4981
5051
  <button
4982
5052
  part="button"
4983
- :class="${w}"
5053
+ :class="${x}"
4984
5054
  ${l}
4985
5055
  ${C}
4986
- ${h}
4987
- @click="${T}"
5056
+ ${g}
5057
+ @click="${S}"
4988
5058
  ><slot></slot></button>
4989
- `).otherwise(pe`
5059
+ `).otherwise(ge`
4990
5060
  <a
4991
5061
  part="link"
4992
5062
  href="${o}"
4993
- :class="${w}"
5063
+ :class="${x}"
4994
5064
  ${l}
4995
5065
  ${C}
4996
- ${h}
4997
- @click="${T}"
5066
+ ${g}
5067
+ @click="${S}"
4998
5068
  ><slot></slot></a>
4999
5069
  `).done()}
5000
5070
  `;
5001
5071
  }), t;
5002
5072
  }
5003
5073
  export {
5004
- be as GlobalEventBus,
5005
- Kn as Transition,
5074
+ we as GlobalEventBus,
5075
+ qn as Transition,
5006
5076
  Vn as TransitionGroup,
5007
- z as anchorBlock,
5008
- St as component,
5009
- Fn as computed,
5010
- Tt as createStore,
5011
- qn as createTransitionPreset,
5012
- dn as css,
5013
- Un as each,
5014
- sr as eachGroup,
5015
- ar as eachPage,
5016
- or as eachWhere,
5017
- dr as emit,
5018
- Me as eventBus,
5019
- ut as getTransitionStyleSheet,
5020
- pe as html,
5021
- br as initRouter,
5022
- mr as listen,
5023
- _n as match,
5077
+ U as anchorBlock,
5078
+ Tt as component,
5079
+ zn as computed,
5080
+ Ot as createStore,
5081
+ Zn as createTransitionPreset,
5082
+ pn as css,
5083
+ Kn as each,
5084
+ ar as eachGroup,
5085
+ cr as eachPage,
5086
+ ir as eachWhere,
5087
+ pr as emit,
5088
+ Ne as eventBus,
5089
+ ft as getTransitionStyleSheet,
5090
+ ge as html,
5091
+ wr as initRouter,
5092
+ yr as listen,
5093
+ An as match,
5024
5094
  ae as matchRoute,
5025
- yr as matchRouteSSR,
5095
+ br as matchRouteSSR,
5026
5096
  le as mediaVariants,
5027
- hr as off,
5028
- pr as on,
5029
- gr as once,
5030
- Ot as parseQuery,
5097
+ gr as off,
5098
+ hr as on,
5099
+ mr as once,
5100
+ jt as parseQuery,
5031
5101
  Wn as ref,
5032
5102
  Je as renderToString,
5033
- Hn as resolveRouteComponent,
5103
+ Fn as resolveRouteComponent,
5034
5104
  In as responsive,
5035
- Ht as responsiveOrder,
5036
- ur as responsiveSwitch,
5037
- fr as switchOn,
5038
- ir as switchOnLength,
5039
- cr as switchOnPromise,
5040
- Pe as transitionPresets,
5041
- tr as unless,
5042
- Zn as useEmit,
5043
- Xn as useOnAttributeChanged,
5044
- Gn as useOnConnected,
5045
- Jn as useOnDisconnected,
5105
+ Ft as responsiveOrder,
5106
+ fr as responsiveSwitch,
5107
+ dr as switchOn,
5108
+ sr as switchOnLength,
5109
+ lr as switchOnPromise,
5110
+ Me as transitionPresets,
5111
+ nr as unless,
5112
+ Gn as useEmit,
5113
+ Yn as useOnAttributeChanged,
5114
+ Jn as useOnConnected,
5115
+ Xn as useOnDisconnected,
5046
5116
  Qn as useOnError,
5047
- Yn as useProps,
5117
+ er as useProps,
5048
5118
  Bn as useRouter,
5049
- er as useStyle,
5050
- zn as watch,
5051
- qe as when,
5052
- nr as whenEmpty,
5053
- G as whenMedia,
5054
- rr as whenNotEmpty,
5055
- lr as whenVariants
5119
+ tr as useStyle,
5120
+ Un as watch,
5121
+ Ve as when,
5122
+ rr as whenEmpty,
5123
+ J as whenMedia,
5124
+ or as whenNotEmpty,
5125
+ ur as whenVariants
5056
5126
  };
5057
5127
  //# sourceMappingURL=custom-elements-runtime.es.js.map