@tempots/dom 34.1.0 → 34.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -5,11 +5,11 @@ function ze(t, e) {
5
5
  render: e
6
6
  };
7
7
  }
8
- function ve(t) {
8
+ function Se(t) {
9
9
  return t != null && t !== !1 && t !== 0 && t !== "";
10
10
  }
11
11
  function Ye(t) {
12
- return !ve(t);
12
+ return !Se(t);
13
13
  }
14
14
  function Xe(t) {
15
15
  return t == null;
@@ -29,7 +29,7 @@ const w = {
29
29
  * @param fn - The function to map the value.
30
30
  * @returns The mapped value.
31
31
  */
32
- map: (t, e) => m.is(t) ? t.map(e) : e(t),
32
+ map: (t, e) => y.is(t) ? t.map(e) : e(t),
33
33
  /**
34
34
  * Wraps a value or a Signal instance into a Signal.
35
35
  * If the value is already a Signal, it returns the value itself.
@@ -40,7 +40,7 @@ const w = {
40
40
  * @param equals - A function that determines if two values are equal. Defaults to strict equality (===).
41
41
  * @returns A Signal instance.
42
42
  */
43
- toSignal: (t, e) => m.is(t) ? t.derive() : se(t, e),
43
+ toSignal: (t, e) => y.is(t) ? t.derive() : re(t, e),
44
44
  /**
45
45
  * Wraps a value in a `Signal` if it is not already a `Signal`.
46
46
  * If the value is `null` or `undefined`, it returns `null` or `undefined` respectively.
@@ -56,14 +56,14 @@ const w = {
56
56
  * @param value - The value or Signal instance to get the value from.
57
57
  * @returns The value.
58
58
  */
59
- get: (t) => m.is(t) ? t.get() : t,
59
+ get: (t) => y.is(t) ? t.get() : t,
60
60
  /**
61
61
  * Adds a listener to a `Signal` or calls the listener immediately if it is not a `Signal`.
62
62
  * @param value - The value or Signal instance to add the listener to.
63
63
  * @param listener - The listener to call when the value changes.
64
64
  * @returns A function to remove the listener.
65
65
  */
66
- on: (t, e) => m.is(t) ? t.on(e) : (e(t), () => {
66
+ on: (t, e) => y.is(t) ? t.on(e) : (e(t), () => {
67
67
  }),
68
68
  /**
69
69
  * Disposes of a value or a Signal.
@@ -72,7 +72,7 @@ const w = {
72
72
  * @param value - The value or Signal instance to dispose of.
73
73
  */
74
74
  dispose: (t) => {
75
- m.is(t) && t.dispose();
75
+ y.is(t) && t.dispose();
76
76
  },
77
77
  /**
78
78
  * Returns a function that disposes of a value or a Signal.
@@ -95,13 +95,13 @@ const w = {
95
95
  deriveProp: (t, {
96
96
  autoDisposeProp: e = !0,
97
97
  equals: s
98
- } = {}) => m.is(t) ? t.deriveProp({ autoDisposeProp: e, equals: s }) : T(t, s),
98
+ } = {}) => y.is(t) ? t.deriveProp({ autoDisposeProp: e, equals: s }) : D(t, s),
99
99
  /**
100
100
  * Creates a new signal that emits `true` if the value is truthy, `false` otherwise.
101
101
  * @param value - The value or signal to check.
102
102
  * @returns A signal that emits `true` if the value is truthy, `false` otherwise.
103
103
  */
104
- truthy: (t) => w.map(t, ve),
104
+ truthy: (t) => w.map(t, Se),
105
105
  /**
106
106
  * Creates a new signal that emits `true` if the value is falsy, `false` otherwise.
107
107
  * @param value - The value or signal to check.
@@ -120,23 +120,23 @@ const w = {
120
120
  * @returns A signal that emits `true` if the value is not null or undefined, `false` otherwise.
121
121
  */
122
122
  defined: (t) => w.map(t, Qe)
123
- }, Z = (...t) => (e, s) => {
123
+ }, te = (...t) => (e, s) => {
124
124
  if (t.length === 1)
125
125
  return w.toSignal(t[0]).map(e);
126
- const n = t.filter((r) => m.is(r));
127
- return te(
126
+ const n = t.filter((r) => y.is(r));
127
+ return ne(
128
128
  () => e(...t.map((r) => w.get(r))),
129
129
  n,
130
130
  s
131
131
  );
132
- }, ts = (t) => {
132
+ }, ss = (t) => {
133
133
  const e = Object.keys(t);
134
- return Z(...Object.values(t))(
134
+ return te(...Object.values(t))(
135
135
  (...s) => Object.fromEntries(e.map((n, r) => [n, s[r]]))
136
136
  );
137
137
  }, Ze = (...t) => (e, s = {}) => {
138
- const n = t.filter((r) => m.is(r));
139
- return be(
138
+ const n = t.filter((r) => y.is(r));
139
+ return _e(
140
140
  () => e(...t.map(w.get)),
141
141
  n,
142
142
  s
@@ -215,7 +215,7 @@ class q {
215
215
  * @public
216
216
  */
217
217
  prop(e, s) {
218
- const n = ce(() => T(e, s));
218
+ const n = ae(() => D(e, s));
219
219
  return this.track(n), n;
220
220
  }
221
221
  /**
@@ -229,7 +229,7 @@ class q {
229
229
  * @public
230
230
  */
231
231
  computed(e, s, n) {
232
- const r = ce(() => te(e, s, n));
232
+ const r = ae(() => ne(e, s, n));
233
233
  return this.track(r), r;
234
234
  }
235
235
  /**
@@ -243,7 +243,7 @@ class q {
243
243
  * @public
244
244
  */
245
245
  effect(e, s, n) {
246
- return O(this, () => be(e, s, n));
246
+ return k(this, () => _e(e, s, n));
247
247
  }
248
248
  /**
249
249
  * Creates a computed signal with curried signature and tracks it in this scope.
@@ -255,7 +255,7 @@ class q {
255
255
  */
256
256
  computedOf(...e) {
257
257
  return (s, n) => {
258
- const r = ce(() => Z(...e)(s, n));
258
+ const r = ae(() => te(...e)(s, n));
259
259
  return this.track(r), r;
260
260
  };
261
261
  }
@@ -268,39 +268,39 @@ class q {
268
268
  * @public
269
269
  */
270
270
  effectOf(...e) {
271
- return (s, n) => O(this, () => Ze(...e)(s, n));
271
+ return (s, n) => k(this, () => Ze(...e)(s, n));
272
272
  }
273
273
  }
274
- const _ = [], et = (t) => {
275
- _.push(t);
274
+ const A = [], et = (t) => {
275
+ A.push(t);
276
276
  }, tt = () => {
277
- if (_.length === 0)
277
+ if (A.length === 0)
278
278
  throw new Error("Cannot pop from empty scope stack");
279
- _.pop();
280
- }, de = () => _[_.length - 1] ?? null, ss = () => _, ns = () => _[_.length - 2] ?? null, O = (t, e) => {
279
+ A.pop();
280
+ }, de = () => A[A.length - 1] ?? null, ns = () => A, rs = () => A[A.length - 2] ?? null, k = (t, e) => {
281
281
  et(t);
282
282
  try {
283
283
  return e();
284
284
  } finally {
285
285
  tt();
286
286
  }
287
- }, rs = (t) => {
287
+ }, os = (t) => {
288
288
  const e = new q();
289
289
  try {
290
- return O(e, () => t(e));
290
+ return k(e, () => t(e));
291
291
  } finally {
292
292
  e.dispose();
293
293
  }
294
- }, ce = (t) => {
295
- const e = _.slice();
296
- _.length = 0;
294
+ }, ae = (t) => {
295
+ const e = A.slice();
296
+ A.length = 0;
297
297
  try {
298
298
  return t();
299
299
  } finally {
300
- _.length = 0, _.push(...e);
300
+ A.length = 0, A.push(...e);
301
301
  }
302
302
  };
303
- class m {
303
+ class y {
304
304
  /**
305
305
  * Represents a signal with a value of type T.
306
306
  *
@@ -353,7 +353,7 @@ class m {
353
353
  * @returns A Signal that represents the result of the Promise
354
354
  */
355
355
  static ofPromise = (e, s, n, r = (o, i) => o === i) => {
356
- const o = new m(s, r);
356
+ const o = new y(s, r);
357
357
  return e.then((i) => o._setAndNotify(i)).catch((i) => {
358
358
  n != null ? o._setAndNotify(n(i)) : console.error(
359
359
  "Unhandled promise rejection in Signal.ofPromise:",
@@ -558,7 +558,7 @@ class m {
558
558
  * @returns A new computed signal with the transformed value (auto-registered with current scope)
559
559
  */
560
560
  map = (e, s = (n, r) => n === r) => {
561
- const n = new $(() => {
561
+ const n = new R(() => {
562
562
  try {
563
563
  return e(this.get());
564
564
  } catch (r) {
@@ -578,7 +578,7 @@ class m {
578
578
  * @returns A new Signal that emits the values of the resulting Signal.
579
579
  */
580
580
  flatMap = (e, s = (n, r) => n === r) => {
581
- const n = new $(() => {
581
+ const n = new R(() => {
582
582
  try {
583
583
  return e(this.get()).get();
584
584
  } catch (r) {
@@ -616,7 +616,7 @@ class m {
616
616
  }
617
617
  filter = (e, s) => {
618
618
  let n = s ?? this.get();
619
- const r = new $(() => {
619
+ const r = new R(() => {
620
620
  try {
621
621
  const o = this.get();
622
622
  return n = e(o) ? o : n;
@@ -638,7 +638,7 @@ class m {
638
638
  */
639
639
  filterMap = (e, s, n = (r, o) => r === o) => {
640
640
  let r = s;
641
- const o = new $(() => {
641
+ const o = new R(() => {
642
642
  try {
643
643
  const i = this.get();
644
644
  return r = e(i) ?? r;
@@ -662,17 +662,17 @@ class m {
662
662
  * @returns A property that holds the mapped value and can be observed for changes.
663
663
  */
664
664
  mapAsync = (e, s, n, r = (o, i) => o === i) => {
665
- const o = T(s, r);
665
+ const o = D(s, r);
666
666
  let i = 0, l = new AbortController();
667
667
  return o.onDispose(
668
- this.on(async (c) => {
669
- const a = ++i;
668
+ this.on(async (a) => {
669
+ const c = ++i;
670
670
  l.abort(), l = new AbortController();
671
671
  try {
672
- const u = await e(c, { abortSignal: l.signal });
673
- a === i && o.set(u);
672
+ const u = await e(a, { abortSignal: l.signal });
673
+ c === i && o.set(u);
674
674
  } catch (u) {
675
- if (a === i)
675
+ if (c === i)
676
676
  if (n != null)
677
677
  o.set(n(u));
678
678
  else
@@ -712,7 +712,7 @@ class m {
712
712
  deriveProp = ({
713
713
  autoDisposeProp: e = !0,
714
714
  equals: s
715
- } = {}) => this.feedProp(T(this.get(), s), e);
715
+ } = {}) => this.feedProp(D(this.get(), s), e);
716
716
  /**
717
717
  * Derives a new signal from the current signal. Useful to create a new signal that emits the same values as the current signal but can be disposed independently.
718
718
  * @returns A new signal that emits the same values as the current signal.
@@ -742,7 +742,7 @@ class m {
742
742
  };
743
743
  }
744
744
  const st = typeof queueMicrotask == "function" ? queueMicrotask : (t) => Promise.resolve().then(t);
745
- class $ extends m {
745
+ class R extends y {
746
746
  /**
747
747
  * Creates a new Computed signal.
748
748
  *
@@ -825,7 +825,7 @@ class $ extends m {
825
825
  this._disposed || (this._scheduleCount++, this._disposed = !0, this._onDisposeListeners.forEach((e) => e()), this._onDisposeListeners.length = 0, this._derivatives.length = 0);
826
826
  };
827
827
  }
828
- class ee extends m {
828
+ class se extends y {
829
829
  /**
830
830
  * Checks if a value is a Prop.
831
831
  * @param value - The value to check.
@@ -886,7 +886,7 @@ class ee extends m {
886
886
  * @returns A Prop object representing the isomorphism.
887
887
  */
888
888
  iso = (e, s, n = (r, o) => r === o) => {
889
- const r = new ee(e(this.get()), n);
889
+ const r = new se(e(this.get()), n);
890
890
  return r.onDispose(this.on((o) => r.set(e(o)))), r.on((o) => this._setAndNotify(s(o))), r;
891
891
  };
892
892
  /**
@@ -909,10 +909,10 @@ class ee extends m {
909
909
  this._setAndNotify(e);
910
910
  }
911
911
  }
912
- const te = (t, e, s = (n, r) => n === r) => {
913
- const n = new $(t, s);
912
+ const ne = (t, e, s = (n, r) => n === r) => {
913
+ const n = new R(t, s);
914
914
  return e.forEach((r) => r.setDerivative(n)), n;
915
- }, be = (t, e, s = {}) => {
915
+ }, _e = (t, e, s = {}) => {
916
916
  let n = s.once ? () => {
917
917
  o(), t();
918
918
  } : t;
@@ -923,28 +923,28 @@ const te = (t, e, s = (n, r) => n === r) => {
923
923
  i ? l() : i = !0;
924
924
  };
925
925
  }
926
- const r = te(n, e), o = () => {
926
+ const r = ne(n, e), o = () => {
927
927
  r.dispose(), s.abortSignal != null && s.abortSignal.removeEventListener("abort", o);
928
928
  };
929
929
  return s.abortSignal != null && s.abortSignal.addEventListener("abort", o), o;
930
- }, T = (t, e = (s, n) => s === n) => {
931
- const s = new ee(t, e);
930
+ }, D = (t, e = (s, n) => s === n) => {
931
+ const s = new se(t, e);
932
932
  return de()?.track(s), s;
933
- }, se = (t, e = (s, n) => s === n) => new m(t, e), pe = () => (
933
+ }, re = (t, e = (s, n) => s === n) => new y(t, e), pe = () => (
934
934
  /* c8 ignore next */
935
935
  typeof window < "u" ? window : void 0
936
- ), nt = (t, e, s) => t + (e - t) * s, me = 97, rt = (t, e, s) => {
936
+ ), nt = (t, e, s) => t + (e - t) * s, we = 97, rt = (t, e, s) => {
937
937
  const n = Math.max(t.length, e.length);
938
938
  let r = "";
939
939
  for (let o = 0; o < n; o++) {
940
940
  let i = t.charCodeAt(o);
941
- isNaN(i) && (i = me);
941
+ isNaN(i) && (i = we);
942
942
  let l = e.charCodeAt(o);
943
- isNaN(l) && (l = me), r += String.fromCharCode(i + (l - i) * s);
943
+ isNaN(l) && (l = we), r += String.fromCharCode(i + (l - i) * s);
944
944
  }
945
945
  return r;
946
946
  }, ot = (t, e, s) => new Date(t.getTime() + (e.getTime() - t.getTime()) * s), it = (t, e) => e, lt = (t) => typeof t == "number" ? nt : typeof t == "string" ? rt : t instanceof Date ? ot : it;
947
- class Se {
947
+ class Ae {
948
948
  _store = /* @__PURE__ */ new Map();
949
949
  /**
950
950
  * Retrieves the value associated with the specified key from the memory store.
@@ -961,32 +961,32 @@ class Se {
961
961
  this._store.set(e, s);
962
962
  };
963
963
  }
964
- let ae = null, ue = null;
965
- const ct = () => (ae || (ae = new Se()), ae), at = () => (ue || (ue = new Se()), ue), _e = ({
964
+ let ce = null, ue = null;
965
+ const at = () => (ce || (ce = new Ae()), ce), ct = () => (ue || (ue = new Ae()), ue), Te = ({
966
966
  key: t,
967
967
  defaultValue: e,
968
968
  store: s,
969
969
  serialize: n = JSON.stringify,
970
970
  deserialize: r = JSON.parse,
971
- equals: o = (a, u) => a === u,
972
- onLoad: i = (a) => a,
971
+ equals: o = (c, u) => c === u,
972
+ onLoad: i = (c) => c,
973
973
  syncTabs: l = !0,
974
- onKeyChange: c = "load"
974
+ onKeyChange: a = "load"
975
975
  }) => {
976
- let a = w.get(t);
977
- const u = s.getItem(a), h = new ee(
976
+ let c = w.get(t);
977
+ const u = s.getItem(c), h = new se(
978
978
  u != null ? i(r(u)) : typeof e == "function" ? e() : e,
979
979
  o
980
- ), f = pe(), p = l && typeof f?.BroadcastChannel == "function";
981
- let y = !1, v = null, P = null;
980
+ ), p = pe(), d = l && typeof p?.BroadcastChannel == "function";
981
+ let g = !1, v = null, E = null;
982
982
  const b = (S) => {
983
- if (!p) return null;
984
- const M = `tempo:storedProp:${S}`, C = new f.BroadcastChannel(M), I = `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`, L = (W) => {
985
- const A = W.data;
986
- if (!(A == null || typeof A != "object" || A.key !== S || typeof A.value != "string" || A.sourceId != null && A.sourceId === I))
983
+ if (!d) return null;
984
+ const I = `tempo:storedProp:${S}`, x = new p.BroadcastChannel(I), H = `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`, O = (G) => {
985
+ const C = G.data;
986
+ if (!(C == null || typeof C != "object" || C.key !== S || typeof C.value != "string" || C.sourceId != null && C.sourceId === H))
987
987
  try {
988
- y = !0;
989
- const le = i(r(A.value));
988
+ g = !0;
989
+ const le = i(r(C.value));
990
990
  h.set(le);
991
991
  } catch (le) {
992
992
  console.warn(
@@ -994,79 +994,79 @@ const ct = () => (ae || (ae = new Se()), ae), at = () => (ue || (ue = new Se()),
994
994
  le
995
995
  );
996
996
  } finally {
997
- y = !1;
997
+ g = !1;
998
998
  }
999
999
  };
1000
- return C.addEventListener("message", L), h.onDispose(() => {
1001
- C?.removeEventListener("message", L), C?.close();
1002
- }), { channel: C, instanceId: I, handleMessage: L };
1003
- }, x = b(a);
1004
- x && (v = x.channel, P = x.instanceId);
1005
- const F = (S) => {
1006
- const M = a;
1007
- if (M === S) return;
1008
- const C = h.get(), I = n(C);
1009
- if (s.setItem(M, I), v != null && (v.close(), v = null, P = null), a = S, c === "load") {
1010
- const W = s.getItem(S);
1011
- if (W != null)
1000
+ return x.addEventListener("message", O), h.onDispose(() => {
1001
+ x?.removeEventListener("message", O), x?.close();
1002
+ }), { channel: x, instanceId: H, handleMessage: O };
1003
+ }, L = b(c);
1004
+ L && (v = L.channel, E = L.instanceId);
1005
+ const U = (S) => {
1006
+ const I = c;
1007
+ if (I === S) return;
1008
+ const x = h.get(), H = n(x);
1009
+ if (s.setItem(I, H), v != null && (v.close(), v = null, E = null), c = S, a === "load") {
1010
+ const G = s.getItem(S);
1011
+ if (G != null)
1012
1012
  try {
1013
- const A = i(r(W));
1014
- h.set(A);
1015
- } catch (A) {
1013
+ const C = i(r(G));
1014
+ h.set(C);
1015
+ } catch (C) {
1016
1016
  console.warn(
1017
1017
  `Failed to load storedProp from new key "${S}"`,
1018
- A
1018
+ C
1019
1019
  );
1020
1020
  }
1021
1021
  else
1022
- s.setItem(S, I);
1023
- } else c === "migrate" && s.setItem(S, I);
1024
- const L = b(S);
1025
- L && (v = L.channel, P = L.instanceId);
1026
- };
1027
- return m.is(t) && h.onDispose(t.on(F)), h.on((S, M) => {
1028
- const C = n(S);
1029
- s.setItem(a, C), v != null && !y && M !== void 0 && P != null && v.postMessage({
1030
- key: a,
1031
- value: C,
1032
- sourceId: P
1022
+ s.setItem(S, H);
1023
+ } else a === "migrate" && s.setItem(S, H);
1024
+ const O = b(S);
1025
+ O && (v = O.channel, E = O.instanceId);
1026
+ };
1027
+ return y.is(t) && h.onDispose(t.on(U)), h.on((S, I) => {
1028
+ const x = n(S);
1029
+ s.setItem(c, x), v != null && !g && I !== void 0 && E != null && v.postMessage({
1030
+ key: c,
1031
+ value: x,
1032
+ sourceId: E
1033
1033
  });
1034
1034
  }), h;
1035
- }, os = (t) => {
1036
- const e = pe()?.localStorage, s = e && typeof e.getItem == "function" ? e : ct();
1037
- return _e({
1035
+ }, is = (t) => {
1036
+ const e = pe()?.localStorage, s = e && typeof e.getItem == "function" ? e : at();
1037
+ return Te({
1038
1038
  ...t,
1039
1039
  store: s
1040
1040
  });
1041
- }, is = (t) => {
1042
- const e = pe()?.sessionStorage, s = e && typeof e.getItem == "function" ? e : at();
1043
- return _e({
1041
+ }, ls = (t) => {
1042
+ const e = pe()?.sessionStorage, s = e && typeof e.getItem == "function" ? e : ct();
1043
+ return Te({
1044
1044
  ...t,
1045
1045
  store: s
1046
1046
  });
1047
1047
  };
1048
- function ye(t) {
1048
+ function ve(t) {
1049
1049
  return typeof requestAnimationFrame == "function" ? requestAnimationFrame(t) : setTimeout(t, 0);
1050
1050
  }
1051
1051
  const ut = (t, e, s, n) => {
1052
- const r = n?.duration ?? 300, o = n?.easing ?? ((b) => b), i = n?.equals ?? ((b, x) => b === x);
1053
- let l = n?.interpolate, c = t, a = e(), u = performance.now(), h = null, f = !0;
1054
- const p = new $(e, i), y = T(t, i);
1055
- y.onDispose(() => {
1052
+ const r = n?.duration ?? 300, o = n?.easing ?? ((b) => b), i = n?.equals ?? ((b, L) => b === L);
1053
+ let l = n?.interpolate, a = t, c = e(), u = performance.now(), h = null, p = !0;
1054
+ const d = new R(e, i), g = D(t, i);
1055
+ g.onDispose(() => {
1056
1056
  h !== null && cancelAnimationFrame(h);
1057
- }), y.onDispose(p.dispose), s.forEach((b) => {
1058
- b.setDerivative(p), b.onDispose(y.dispose);
1057
+ }), g.onDispose(d.dispose), s.forEach((b) => {
1058
+ b.setDerivative(d), b.onDispose(g.dispose);
1059
1059
  });
1060
1060
  const v = (b) => {
1061
- a = b, u = performance.now(), c = y.value, f && (f = !1, h = ye(P));
1062
- }, P = () => {
1063
- const b = (performance.now() - u) / w.get(r), x = o(b);
1064
- l == null && (l = lt(c));
1065
- let F = l(c, a, x);
1066
- b >= 1 ? (f = !0, F = a) : h = ye(P), y.set(F);
1067
- };
1068
- return p.on(v), y;
1069
- }, ls = (t, e) => {
1061
+ c = b, u = performance.now(), a = g.value, p && (p = !1, h = ve(E));
1062
+ }, E = () => {
1063
+ const b = (performance.now() - u) / w.get(r), L = o(b);
1064
+ l == null && (l = lt(a));
1065
+ let U = l(a, c, L);
1066
+ b >= 1 ? (p = !0, U = c) : h = ve(E), g.set(U);
1067
+ };
1068
+ return d.on(v), g;
1069
+ }, as = (t, e) => {
1070
1070
  const { initialValue: s, ...n } = e ?? {};
1071
1071
  return ut(
1072
1072
  /* c8 ignore next 2 */
@@ -1076,15 +1076,15 @@ const ut = (t, e, s, n) => {
1076
1076
  n
1077
1077
  );
1078
1078
  }, ht = (t, e) => {
1079
- const s = Object.values(t).filter(m.is), n = Object.keys(t);
1080
- return te(() => {
1079
+ const s = Object.values(t).filter(y.is), n = Object.keys(t);
1080
+ return ne(() => {
1081
1081
  const r = {};
1082
1082
  for (const o of n)
1083
1083
  r[o] = w.get(t[o]);
1084
1084
  return e(r);
1085
1085
  }, s);
1086
- }, cs = (t) => ht(t, (e) => e), as = (t, e) => {
1087
- const s = T(t.get());
1086
+ }, cs = (t) => ht(t, (e) => e), us = (t, e) => {
1087
+ const s = D(t.get());
1088
1088
  let n = null;
1089
1089
  const r = t.on(
1090
1090
  (o) => {
@@ -1100,24 +1100,24 @@ const ut = (t, e, s, n) => {
1100
1100
  return s.onDispose(() => {
1101
1101
  r(), n != null && clearTimeout(n);
1102
1102
  }), s;
1103
- }, us = (t) => {
1103
+ }, hs = (t) => {
1104
1104
  let e;
1105
1105
  return t.map((s) => {
1106
1106
  const n = e;
1107
1107
  return e = s, n;
1108
1108
  });
1109
- }, hs = ({
1109
+ }, ds = ({
1110
1110
  size: t = void 0,
1111
1111
  signal: e
1112
1112
  }) => {
1113
1113
  const s = [];
1114
1114
  return e.map((n) => (s.push(n), t != null && s.length > t && s.shift(), s.slice()));
1115
- }, ds = (t) => (...e) => Z(
1115
+ }, ps = (t) => (...e) => te(
1116
1116
  t,
1117
1117
  ...e
1118
1118
  )((s, ...n) => s(...n));
1119
- function ps(...t) {
1120
- return Z(...t)((...e) => {
1119
+ function fs(...t) {
1120
+ return te(...t)((...e) => {
1121
1121
  for (const s of e) if (s != null) return s;
1122
1122
  });
1123
1123
  }
@@ -1169,12 +1169,12 @@ class he {
1169
1169
  this.#e?.dispose(), this.#e = void 0;
1170
1170
  };
1171
1171
  }
1172
- const Ae = /* @__PURE__ */ new Set(["checked", "disabled", "hidden"]), Te = /* @__PURE__ */ new Set(["selected"]), Ee = /* @__PURE__ */ new Set([
1172
+ const Ee = /* @__PURE__ */ new Set(["checked", "disabled", "hidden"]), Ce = /* @__PURE__ */ new Set(["selected"]), De = /* @__PURE__ */ new Set([
1173
1173
  "rowSpan",
1174
1174
  "colSpan",
1175
1175
  "tabIndex",
1176
1176
  "valueAsNumber"
1177
- ]), Ce = /* @__PURE__ */ new Set(["valueAsDate"]), De = /* @__PURE__ */ new Set([
1177
+ ]), Pe = /* @__PURE__ */ new Set(["valueAsDate"]), xe = /* @__PURE__ */ new Set([
1178
1178
  "value",
1179
1179
  "textContent",
1180
1180
  "innerText",
@@ -1182,28 +1182,28 @@ const Ae = /* @__PURE__ */ new Set(["checked", "disabled", "hidden"]), Te = /* @
1182
1182
  "outerHTML",
1183
1183
  "className",
1184
1184
  "classList"
1185
- ]), dt = (t, e) => Te.has(t) ? (s) => {
1185
+ ]), dt = (t, e) => Ce.has(t) ? (s) => {
1186
1186
  s == null || s !== !0 ? e.removeAttribute(t) : e.setAttribute(t, "");
1187
- } : Ae.has(t) ? (s) => {
1188
- s == null ? e[t] = null : e[t] = !!s;
1189
1187
  } : Ee.has(t) ? (s) => {
1188
+ s == null ? e[t] = null : e[t] = !!s;
1189
+ } : De.has(t) ? (s) => {
1190
1190
  s == null ? e[t] = null : e[t] = Number(s);
1191
- } : Ce.has(t) ? (s) => {
1191
+ } : Pe.has(t) ? (s) => {
1192
1192
  s == null ? e[t] = null : e[t] = s;
1193
- } : De.has(t) ? (s) => {
1193
+ } : xe.has(t) ? (s) => {
1194
1194
  s == null ? e[t] = null : e[t] = String(s);
1195
1195
  } : (s) => {
1196
1196
  s == null ? e.removeAttribute(t) : e.setAttribute(t, s);
1197
- }, pt = (t, e) => Te.has(t) ? () => e.hasAttribute(t) : Ae.has(t) ? () => !!e[t] : Ee.has(t) ? () => Number(e[t]) : Ce.has(t) ? () => e[t] : De.has(t) ? () => String(e[t]) : () => e.getAttribute(t), J = (t) => {
1197
+ }, pt = (t, e) => Ce.has(t) ? () => e.hasAttribute(t) : Ee.has(t) ? () => !!e[t] : De.has(t) ? () => Number(e[t]) : Pe.has(t) ? () => e[t] : xe.has(t) ? () => String(e[t]) : () => e.getAttribute(t), z = (t) => {
1198
1198
  const e = t;
1199
1199
  e && e.onblur && (e.onblur = null), !(!t || t.ownerDocument === void 0) && t.parentNode && t.parentNode.removeChild(t);
1200
- }, ft = (t) => Pe(t) || xe(t) ? t : t.parentElement, Pe = (t) => t.nodeType === 1, xe = (t) => t.nodeType === 11;
1201
- class Le extends Error {
1200
+ }, ft = (t) => Le(t) || Oe(t) ? t : t.parentElement, Le = (t) => t.nodeType === 1, Oe = (t) => t.nodeType === 11;
1201
+ class ke extends Error {
1202
1202
  constructor(e) {
1203
1203
  super(`Provider not found: ${e.description}`);
1204
1204
  }
1205
1205
  }
1206
- class R {
1206
+ class j {
1207
1207
  /**
1208
1208
  * Constructs a new `DOMContext` instance.
1209
1209
  *
@@ -1225,7 +1225,7 @@ class R {
1225
1225
  * @returns A new `DOMContext` instance.
1226
1226
  */
1227
1227
  static of(e, s, n) {
1228
- return new R(e.ownerDocument, e, s, n);
1228
+ return new j(e.ownerDocument, e, s, n);
1229
1229
  }
1230
1230
  /**
1231
1231
  * Creates a new DOM element (eg: HTML or SVG) with the specified tag name and namespace.
@@ -1310,7 +1310,12 @@ class R {
1310
1310
  * @param element - The DOM element to use in the new `DOMContext` instance.
1311
1311
  * @returns A new `DOMContext` instance with the provided `element`.
1312
1312
  */
1313
- withElement = (e) => new R(this.document, e, void 0, this.providers);
1313
+ withElement = (e) => new j(
1314
+ e.ownerDocument ?? this.document,
1315
+ e,
1316
+ void 0,
1317
+ this.providers
1318
+ );
1314
1319
  /**
1315
1320
  * Creates a portal to render content in a different part of the DOM tree.
1316
1321
  *
@@ -1367,7 +1372,7 @@ class R {
1367
1372
  * @param reference - The optional `Text` node to use as the reference for the new `DOMContext`.
1368
1373
  * @returns A new `DOMContext` instance with the specified reference.
1369
1374
  */
1370
- withReference = (e) => new R(this.document, this.element, e, this.providers);
1375
+ withReference = (e) => new j(this.document, this.element, e, this.providers);
1371
1376
  /**
1372
1377
  * Sets a provider for the given provider mark.
1373
1378
  *
@@ -1375,7 +1380,7 @@ class R {
1375
1380
  * @param value - The provider to set for the given mark.
1376
1381
  * @returns A new `DOMContext` instance with the specified provider.
1377
1382
  */
1378
- setProvider = (e, s, n) => new R(this.document, this.element, this.reference, {
1383
+ setProvider = (e, s, n) => new j(this.document, this.element, this.reference, {
1379
1384
  ...this.providers,
1380
1385
  [e]: [s, n]
1381
1386
  });
@@ -1388,12 +1393,12 @@ class R {
1388
1393
  */
1389
1394
  getProvider = (e) => {
1390
1395
  if (this.providers[e] === void 0)
1391
- throw new Le(e);
1396
+ throw new ke(e);
1392
1397
  const [s, n] = this.providers[e];
1393
1398
  return { value: s, onUse: n };
1394
1399
  };
1395
1400
  clear = (e) => {
1396
- e && (this.reference !== void 0 ? J(this.reference) : J(this.element));
1401
+ e && (this.reference !== void 0 ? z(this.reference) : z(this.element));
1397
1402
  };
1398
1403
  /**
1399
1404
  * Adds classes to the element.
@@ -1468,23 +1473,23 @@ class R {
1468
1473
  });
1469
1474
  getWindow = () => this.document.defaultView;
1470
1475
  }
1471
- const ne = (t, e) => {
1472
- const s = new q(), n = O(s, () => t.render(e));
1476
+ const B = (t, e) => {
1477
+ const s = new q(), n = k(s, () => t.render(e));
1473
1478
  return (r = !0) => {
1474
1479
  s.dispose(), n(r);
1475
1480
  };
1476
- }, fs = (t, e, { doc: s, clear: n, disposeWithParent: r = !0, providers: o = {} } = {}) => {
1481
+ }, gs = (t, e, { doc: s, clear: n, disposeWithParent: r = !0, providers: o = {} } = {}) => {
1477
1482
  const i = typeof e == "string" ? (s ?? document).querySelector(e) : e;
1478
1483
  if (i === null)
1479
1484
  throw new gt(
1480
1485
  `Cannot find element by selector for render: ${e}`
1481
1486
  );
1482
1487
  n !== !1 && (s ?? i.ownerDocument) != null && (i.nodeType === 1 || i.nodeType === 11) && (i.innerHTML = "");
1483
- const l = ft(i), c = Pe(i) || xe(i) ? void 0 : i, a = R.of(l, c, o), u = ne(t, a);
1488
+ const l = ft(i), a = Le(i) || Oe(i) ? void 0 : i, c = j.of(l, a, o), u = B(t, c);
1484
1489
  let h;
1485
- return r && i.parentElement != null && (h = new MutationObserver((f) => {
1486
- f[0]?.removedNodes.forEach((p) => {
1487
- p === i && (h?.disconnect(), u(i.nodeType !== 1));
1490
+ return r && i.parentElement != null && (h = new MutationObserver((p) => {
1491
+ p[0]?.removedNodes.forEach((d) => {
1492
+ d === i && (h?.disconnect(), u(i.nodeType !== 1));
1488
1493
  });
1489
1494
  }), h.observe(i.parentElement, {
1490
1495
  childList: !0,
@@ -1493,16 +1498,16 @@ const ne = (t, e) => {
1493
1498
  })), () => {
1494
1499
  h?.disconnect(), u(!0);
1495
1500
  };
1496
- }, gs = (t, {
1501
+ }, ms = (t, {
1497
1502
  startUrl: e = "https://example.com",
1498
1503
  selector: s,
1499
1504
  providers: n = {}
1500
1505
  } = {
1501
1506
  selector: "body"
1502
1507
  }) => {
1503
- const r = w.toSignal(e).deriveProp(), o = new He(s, void 0), i = new j(o, void 0, { currentURL: r }, n);
1508
+ const r = w.toSignal(e).deriveProp(), o = new $e(s, void 0), i = new V(o, void 0, { currentURL: r }, n);
1504
1509
  return {
1505
- clear: ne(t(), i),
1510
+ clear: B(t(), i),
1506
1511
  root: o,
1507
1512
  currentURL: r
1508
1513
  };
@@ -1512,8 +1517,8 @@ class gt extends Error {
1512
1517
  super(e);
1513
1518
  }
1514
1519
  }
1515
- const Oe = "data-tts-node", K = "data-tts-class", z = "data-tts-style", Y = "data-tts-html", X = "data-tts-text", Q = "data-tts-attrs";
1516
- class ms {
1520
+ const Me = "data-tts-node", Y = "data-tts-class", X = "data-tts-style", Q = "data-tts-html", Z = "data-tts-text", ee = "data-tts-attrs";
1521
+ class ys {
1517
1522
  /**
1518
1523
  * Selects elements from the headless environment.
1519
1524
  * @param selector - The selector to select elements from. The supported selectors are CSS selectors whose complexity depends on the adapter implementation.
@@ -1595,13 +1600,13 @@ class ms {
1595
1600
  setClass: o,
1596
1601
  getStyles: i,
1597
1602
  setStyles: l,
1598
- appendHTML: c,
1599
- getInnerHTML: a,
1603
+ appendHTML: a,
1604
+ getInnerHTML: c,
1600
1605
  setInnerHTML: u,
1601
1606
  getInnerText: h,
1602
- setInnerText: f
1607
+ setInnerText: p
1603
1608
  }) {
1604
- this.select = e, this.getAttribute = s, this.setAttribute = n, this.getClass = r, this.setClass = o, this.getStyles = i, this.setStyles = l, this.appendHTML = c, this.getInnerHTML = a, this.setInnerHTML = u, this.getInnerText = h, this.setInnerText = f;
1609
+ this.select = e, this.getAttribute = s, this.setAttribute = n, this.getClass = r, this.setClass = o, this.getStyles = i, this.setStyles = l, this.appendHTML = a, this.getInnerHTML = c, this.setInnerHTML = u, this.getInnerText = h, this.setInnerText = p;
1605
1610
  }
1606
1611
  /**
1607
1612
  * Sets the content of the root element from a HeadlessPortal. Generally this will be the same instance that is
@@ -1622,21 +1627,21 @@ class ms {
1622
1627
  if (r.hasChildren() && this.appendHTML(i, r.contentToHTML(s)), r.hasInnerHTML()) {
1623
1628
  if (s) {
1624
1629
  const l = this.getInnerHTML(i);
1625
- l != null && this.setAttribute(i, Y, l);
1630
+ l != null && this.setAttribute(i, Q, l);
1626
1631
  }
1627
1632
  this.setInnerHTML(i, r.getInnerHTML());
1628
1633
  }
1629
1634
  if (r.hasInnerText()) {
1630
1635
  if (s) {
1631
1636
  const l = this.getInnerText(i);
1632
- l != null && this.setAttribute(i, X, l);
1637
+ l != null && this.setAttribute(i, Z, l);
1633
1638
  }
1634
1639
  this.setInnerText(i, r.getInnerText());
1635
1640
  }
1636
1641
  if (r.hasClasses()) {
1637
1642
  if (s) {
1638
1643
  const l = this.getClass(i);
1639
- l != null && this.setAttribute(i, K, l);
1644
+ l != null && this.setAttribute(i, Y, l);
1640
1645
  }
1641
1646
  this.setClass(i, r.getClasses().join(" "));
1642
1647
  }
@@ -1645,7 +1650,7 @@ class ms {
1645
1650
  const l = this.getStyles(i);
1646
1651
  Object.keys(l).length > 0 && this.setAttribute(
1647
1652
  i,
1648
- z,
1653
+ X,
1649
1654
  JSON.stringify(l)
1650
1655
  );
1651
1656
  }
@@ -1654,18 +1659,18 @@ class ms {
1654
1659
  if (r.hasAttributes()) {
1655
1660
  const l = r.getAttributes();
1656
1661
  if (s) {
1657
- const c = [];
1658
- l.forEach(([a]) => {
1659
- const u = this.getAttribute(i, a);
1660
- u != null && c.push([a, u]);
1661
- }), c.length > 0 && this.setAttribute(
1662
+ const a = [];
1663
+ l.forEach(([c]) => {
1664
+ const u = this.getAttribute(i, c);
1665
+ u != null && a.push([c, u]);
1666
+ }), a.length > 0 && this.setAttribute(
1662
1667
  i,
1663
- Q,
1664
- JSON.stringify(Object.fromEntries(c))
1668
+ ee,
1669
+ JSON.stringify(Object.fromEntries(a))
1665
1670
  );
1666
1671
  }
1667
- l.forEach(([c, a]) => {
1668
- this.setAttribute(i, c, a);
1672
+ l.forEach(([a, c]) => {
1673
+ this.setAttribute(i, a, c);
1669
1674
  });
1670
1675
  }
1671
1676
  }
@@ -1673,50 +1678,50 @@ class ms {
1673
1678
  };
1674
1679
  }
1675
1680
  const mt = () => {
1676
- document.querySelectorAll(`[${Oe}]`).forEach(J);
1681
+ document.querySelectorAll(`[${Me}]`).forEach(z);
1677
1682
  }, yt = (t) => {
1678
- const e = t.getAttribute(K);
1679
- t.removeAttribute(K), e != null && t.setAttribute("class", e);
1683
+ const e = t.getAttribute(Y);
1684
+ t.removeAttribute(Y), e != null && t.setAttribute("class", e);
1680
1685
  }, wt = () => {
1681
- document.querySelectorAll(`[${K}]`).forEach((e) => yt(e));
1686
+ document.querySelectorAll(`[${Y}]`).forEach((e) => yt(e));
1682
1687
  }, vt = (t) => {
1683
- const e = t.getAttribute(Y);
1684
- t.removeAttribute(Y), e != null && (t.innerHTML = e);
1688
+ const e = t.getAttribute(Q);
1689
+ t.removeAttribute(Q), e != null && (t.innerHTML = e);
1685
1690
  }, bt = () => {
1686
- document.querySelectorAll(`[${Y}]`).forEach((e) => vt(e));
1691
+ document.querySelectorAll(`[${Q}]`).forEach((e) => vt(e));
1687
1692
  }, St = (t) => {
1688
- const e = t.getAttribute(X);
1689
- t.removeAttribute(X), e != null && (t.innerText = e);
1693
+ const e = t.getAttribute(Z);
1694
+ t.removeAttribute(Z), e != null && (t.innerText = e);
1690
1695
  }, _t = () => {
1691
- document.querySelectorAll(`[${X}]`).forEach((e) => St(e));
1692
- }, ke = (t) => JSON.parse(t.replace(/&quot;/g, '"')), At = (t) => {
1693
- const e = t.getAttribute(z);
1694
- if (t.removeAttribute(z), e != null) {
1695
- const s = ke(e);
1696
+ document.querySelectorAll(`[${Z}]`).forEach((e) => St(e));
1697
+ }, Ie = (t) => JSON.parse(t.replace(/&quot;/g, '"')), At = (t) => {
1698
+ const e = t.getAttribute(X);
1699
+ if (t.removeAttribute(X), e != null) {
1700
+ const s = Ie(e);
1696
1701
  Object.entries(s).forEach(([n, r]) => {
1697
1702
  t.style.setProperty(n, r);
1698
1703
  });
1699
1704
  }
1700
1705
  }, Tt = () => {
1701
- document.querySelectorAll(`[${z}]`).forEach((e) => At(e));
1706
+ document.querySelectorAll(`[${X}]`).forEach((e) => At(e));
1702
1707
  }, Et = (t) => {
1703
- const e = t.getAttribute(Q);
1704
- if (t.removeAttribute(Q), e != null) {
1705
- const s = ke(e);
1708
+ const e = t.getAttribute(ee);
1709
+ if (t.removeAttribute(ee), e != null) {
1710
+ const s = Ie(e);
1706
1711
  Object.entries(s).forEach(([n, r]) => {
1707
1712
  r == null ? t.removeAttribute(n) : t.setAttribute(n, r);
1708
1713
  });
1709
1714
  }
1710
1715
  }, Ct = () => {
1711
- document.querySelectorAll(`[${Q}]`).forEach((e) => Et(e));
1712
- }, ys = () => {
1716
+ document.querySelectorAll(`[${ee}]`).forEach((e) => Et(e));
1717
+ }, ws = () => {
1713
1718
  mt(), wt(), _t(), bt(), Tt(), Ct();
1714
- }, H = Symbol("class"), N = Symbol("style"), U = Symbol("handler"), Me = () => Math.random().toString(36).substring(2, 15), Dt = (t) => t.replace(/<[^>]*>?/g, "");
1715
- class Ie {
1719
+ }, N = Symbol("class"), $ = Symbol("style"), J = Symbol("handler"), He = () => Math.random().toString(36).substring(2, 15), Dt = (t) => t.replace(/<[^>]*>?/g, "");
1720
+ class Ne {
1716
1721
  constructor(e) {
1717
1722
  this.parent = e;
1718
1723
  }
1719
- id = Me();
1724
+ id = He();
1720
1725
  properties = {};
1721
1726
  children = [];
1722
1727
  isElement = () => !0;
@@ -1742,10 +1747,10 @@ class Ie {
1742
1747
  getInnerText = () => this.properties.innerText ?? "";
1743
1748
  hasInnerText = () => this.properties.innerText != null;
1744
1749
  hasChildren = () => this.children.length > 0;
1745
- hasClasses = () => this.properties[H] != null;
1746
- hasStyles = () => this.properties[N] != null;
1750
+ hasClasses = () => this.properties[N] != null;
1751
+ hasStyles = () => this.properties[$] != null;
1747
1752
  hasAttributes = () => Object.keys(this.properties).length > 0;
1748
- hasHandlers = () => this.properties[U] != null;
1753
+ hasHandlers = () => this.properties[J] != null;
1749
1754
  hasRenderableProperties = () => this.hasClasses() || this.hasAttributes() || this.hasStyles();
1750
1755
  getById = (e) => {
1751
1756
  if (this.properties.id === e)
@@ -1757,26 +1762,26 @@ class Ie {
1757
1762
  }
1758
1763
  };
1759
1764
  trigger = (e, s) => {
1760
- ((this.properties[U] ?? {})[e] ?? []).forEach((r) => r(s));
1765
+ ((this.properties[J] ?? {})[e] ?? []).forEach((r) => r(s));
1761
1766
  };
1762
1767
  click = () => {
1763
1768
  this.trigger("click", {});
1764
1769
  };
1765
1770
  on = (e, s, n, r) => {
1766
- const o = this.properties[U] ??= {}, i = r?.once ? (c) => {
1767
- l(), s(c, n);
1768
- } : (c) => s(c, n);
1771
+ const o = this.properties[J] ??= {}, i = r?.once ? (a) => {
1772
+ l(), s(a, n);
1773
+ } : (a) => s(a, n);
1769
1774
  o[e] = [...o[e] ?? [], i];
1770
1775
  const l = () => {
1771
- const c = o[e] ?? [], a = c.indexOf(i);
1772
- a !== -1 && (c.splice(a, 1), c.length === 0 ? (delete o[e], Object.keys(o).length === 0 && delete this.properties[U]) : o[e] = c, r?.signal != null && r.signal.removeEventListener("abort", l));
1776
+ const a = o[e] ?? [], c = a.indexOf(i);
1777
+ c !== -1 && (a.splice(c, 1), a.length === 0 ? (delete o[e], Object.keys(o).length === 0 && delete this.properties[J]) : o[e] = a, r?.signal != null && r.signal.removeEventListener("abort", l));
1773
1778
  };
1774
1779
  return r?.signal != null && r.signal.addEventListener("abort", l), l;
1775
1780
  };
1776
1781
  addClasses = (e) => {
1777
1782
  if (e.length === 0)
1778
1783
  return;
1779
- const s = this.properties[H] ??= [];
1784
+ const s = this.properties[N] ??= [];
1780
1785
  e.forEach((n) => {
1781
1786
  s.includes(n) || s.push(n);
1782
1787
  });
@@ -1784,25 +1789,25 @@ class Ie {
1784
1789
  removeClasses = (e) => {
1785
1790
  if (e.length === 0)
1786
1791
  return;
1787
- const s = this.properties[H] ??= [];
1792
+ const s = this.properties[N] ??= [];
1788
1793
  e.forEach((n) => {
1789
1794
  const r = s.indexOf(n);
1790
1795
  r !== -1 && s.splice(r, 1);
1791
- }), s.length === 0 && delete this.properties[H];
1796
+ }), s.length === 0 && delete this.properties[N];
1792
1797
  };
1793
- getClasses = () => this.properties[H] ?? [];
1798
+ getClasses = () => this.properties[N] ?? [];
1794
1799
  getAttributes = () => Object.entries(this.properties).filter(
1795
1800
  ([e]) => !["innerText", "innerHTML"].includes(e)
1796
1801
  );
1797
1802
  getVisibleAttributes = () => Reflect.ownKeys(this.properties).flatMap(
1798
- (e) => e === H ? [["class", this.getClasses()]] : e === N ? [["style", this.getStyles()]] : typeof e == "string" ? [[e, String(this.properties[e])]] : []
1803
+ (e) => e === N ? [["class", this.getClasses()]] : e === $ ? [["style", this.getStyles()]] : typeof e == "string" ? [[e, String(this.properties[e])]] : []
1799
1804
  );
1800
1805
  setStyle = (e, s) => {
1801
- const n = this.properties[N] ??= {};
1802
- n[e] = s, s === "" && (delete n[e], Object.keys(n).length === 0 && delete this.properties[N]);
1806
+ const n = this.properties[$] ??= {};
1807
+ n[e] = s, s === "" && (delete n[e], Object.keys(n).length === 0 && delete this.properties[$]);
1803
1808
  };
1804
- getStyle = (e) => this.properties[N]?.[e] ?? "";
1805
- getStyles = () => this.properties[N] ?? {};
1809
+ getStyle = (e) => this.properties[$]?.[e] ?? "";
1810
+ getStyles = () => this.properties[$] ?? {};
1806
1811
  makeAccessors = (e) => {
1807
1812
  const s = this.properties;
1808
1813
  return {
@@ -1812,7 +1817,7 @@ class Ie {
1812
1817
  };
1813
1818
  }
1814
1819
  const Pt = (t) => t.replace(/"/g, "&quot;"), xt = (t) => t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
1815
- class Lt extends Ie {
1820
+ class Lt extends Ne {
1816
1821
  constructor(e, s, n) {
1817
1822
  super(n), this.tagName = e, this.namespace = s;
1818
1823
  }
@@ -1820,11 +1825,11 @@ class Lt extends Ie {
1820
1825
  toHTML = (e = !1) => {
1821
1826
  const s = this.children.map((l) => l.toHTML()).join(""), n = this.namespace ? ` xmlns="${this.namespace}"` : "";
1822
1827
  let r = null;
1823
- const o = this.getVisibleAttributes().map(([l, c]) => l === "class" ? ` class="${c.join(" ")}"` : l === "style" ? typeof c == "string" ? ` style="${c}"` : ` style="${Object.entries(c).map(([a, u]) => `${a}: ${u};`).join(" ")}"` : kt.has(l) ? ` ${l}` : l === "innerHTML" ? (r = c, "") : l === "innerText" ? (r = xt(c), "") : ` ${l}="${Pt(c)}"`).join(""), i = e ? ` ${Oe}` : "";
1828
+ const o = this.getVisibleAttributes().map(([l, a]) => l === "class" ? ` class="${a.join(" ")}"` : l === "style" ? typeof a == "string" ? ` style="${a}"` : ` style="${Object.entries(a).map(([c, u]) => `${c}: ${u};`).join(" ")}"` : kt.has(l) ? ` ${l}` : l === "innerHTML" ? (r = a, "") : l === "innerText" ? (r = xt(a), "") : ` ${l}="${Pt(a)}"`).join(""), i = e ? ` ${Me}` : "";
1824
1829
  return Mt.has(this.tagName) && s === "" ? `<${this.tagName}${n}${o}${i} />` : `<${this.tagName}${n}${o}${i}>${r ?? s}</${this.tagName}>`;
1825
1830
  };
1826
1831
  }
1827
- class He extends Ie {
1832
+ class $e extends Ne {
1828
1833
  constructor(e, s) {
1829
1834
  super(s), this.selector = e;
1830
1835
  }
@@ -1836,13 +1841,13 @@ class Ot {
1836
1841
  constructor(e) {
1837
1842
  this.text = e;
1838
1843
  }
1839
- id = Me();
1844
+ id = He();
1840
1845
  isElement = () => !1;
1841
1846
  isText = () => !0;
1842
1847
  getText = () => this.text;
1843
1848
  toHTML = () => this.text;
1844
1849
  }
1845
- class j {
1850
+ class V {
1846
1851
  constructor(e, s, n, r) {
1847
1852
  this.element = e, this.reference = s, this.container = n, this.providers = r;
1848
1853
  }
@@ -1855,7 +1860,7 @@ class j {
1855
1860
  };
1856
1861
  makeChildElement = (e, s) => {
1857
1862
  const n = new Lt(e, s, this.element);
1858
- return this.appendOrInsert(n), new j(
1863
+ return this.appendOrInsert(n), new V(
1859
1864
  n,
1860
1865
  void 0,
1861
1866
  this.container,
@@ -1864,7 +1869,7 @@ class j {
1864
1869
  };
1865
1870
  makeChildText = (e) => {
1866
1871
  const s = new Ot(e);
1867
- return this.appendOrInsert(s), new j(
1872
+ return this.appendOrInsert(s), new V(
1868
1873
  this.element,
1869
1874
  s,
1870
1875
  this.container,
@@ -1877,8 +1882,8 @@ class j {
1877
1882
  getText = () => this.reference?.getText() ?? this.element.getText();
1878
1883
  makeRef = () => this.makeChildText("");
1879
1884
  makePortal = (e) => {
1880
- const s = new He(e, this.element);
1881
- return this.appendOrInsert(s), new j(
1885
+ const s = new $e(e, this.element);
1886
+ return this.appendOrInsert(s), new V(
1882
1887
  s,
1883
1888
  void 0,
1884
1889
  this.container,
@@ -1892,13 +1897,13 @@ class j {
1892
1897
  * @param value - The provider to set for the given mark.
1893
1898
  * @returns A new `DOMContext` instance with the specified provider.
1894
1899
  */
1895
- setProvider = (e, s, n) => new j(this.element, this.reference, this.container, {
1900
+ setProvider = (e, s, n) => new V(this.element, this.reference, this.container, {
1896
1901
  ...this.providers,
1897
1902
  [e]: [s, n]
1898
1903
  });
1899
1904
  getProvider = (e) => {
1900
1905
  if (this.providers[e] === void 0)
1901
- throw new Le(e);
1906
+ throw new ke(e);
1902
1907
  const [s, n] = this.providers[e];
1903
1908
  return { value: s, onUse: n };
1904
1909
  };
@@ -1924,23 +1929,23 @@ const kt = /* @__PURE__ */ new Set([
1924
1929
  "readonly",
1925
1930
  "required",
1926
1931
  "selected"
1927
- ]), Mt = /* @__PURE__ */ new Set(["img", "br", "hr", "input", "link", "meta"]), ws = () => (
1932
+ ]), Mt = /* @__PURE__ */ new Set(["img", "br", "hr", "input", "link", "meta"]), vs = () => (
1928
1933
  /* c8 ignore next */
1929
1934
  typeof window < "u" ? window : void 0
1930
- ), It = Symbol("DOM_RENDERABLE"), g = (t) => ze(It, t), Ne = (t) => g((e) => e.makeChildText(t).clear), $e = (t) => g((e) => {
1935
+ ), It = Symbol("DOM_RENDERABLE"), m = (t) => ze(It, t), Re = (t) => m((e) => e.makeChildText(t).clear), je = (t) => m((e) => {
1931
1936
  const s = e.makeChildText(t.value), n = t.on(s.setText);
1932
1937
  return (r) => {
1933
1938
  n(), s.clear(r);
1934
1939
  };
1935
- }), vs = (t) => m.is(t) ? $e(t) : Ne(t), E = (...t) => g((e) => {
1936
- const s = t.map((n) => d(n).render(e));
1940
+ }), bs = (t) => y.is(t) ? je(t) : Re(t), T = (...t) => m((e) => {
1941
+ const s = t.map((n) => f(n).render(e));
1937
1942
  return (n) => {
1938
1943
  s.forEach((r) => r(n));
1939
1944
  };
1940
- }), D = g(() => () => {
1941
- }), Ht = (t) => g((e) => (e.addClasses(t), (s) => {
1945
+ }), P = m(() => () => {
1946
+ }), Ht = (t) => m((e) => (e.addClasses(t), (s) => {
1942
1947
  s && e.removeClasses(t);
1943
- })), Nt = (t) => g((e) => {
1948
+ })), Nt = (t) => m((e) => {
1944
1949
  let s = [];
1945
1950
  const n = t.on(
1946
1951
  (r) => {
@@ -1951,20 +1956,20 @@ const kt = /* @__PURE__ */ new Set([
1951
1956
  return (r) => {
1952
1957
  n(), r && e.removeClasses(s), s.length = 0;
1953
1958
  };
1954
- }), $t = (t, e) => g((s) => {
1959
+ }), $t = (t, e) => m((s) => {
1955
1960
  const { get: n, set: r } = s.makeAccessors(t), o = n();
1956
1961
  return r(e), (i) => {
1957
1962
  i && r(o);
1958
1963
  };
1959
- }), Rt = (t, e) => g((s) => {
1964
+ }), Rt = (t, e) => m((s) => {
1960
1965
  const { get: n, set: r } = s.makeAccessors(t), o = n(), i = e.on(r, { noAutoDispose: !0 });
1961
1966
  return (l) => {
1962
1967
  i(), l && r(o);
1963
1968
  };
1964
- }), B = (t, e) => m.is(e) ? Rt(t, e) : $t(t, e), jt = (t, e) => t === "class" ? m.is(e) ? Nt(e) : Ht(
1969
+ }), F = (t, e) => y.is(e) ? Rt(t, e) : $t(t, e), jt = (t, e) => t === "class" ? y.is(e) ? Nt(e) : Ht(
1965
1970
  /* c8 ignore next */
1966
1971
  (e ?? "").split(" ").filter((s) => s.length > 0)
1967
- ) : B(t, e), V = new Proxy(
1972
+ ) : F(t, e), _ = new Proxy(
1968
1973
  {},
1969
1974
  {
1970
1975
  /**
@@ -1980,7 +1985,7 @@ const kt = /* @__PURE__ */ new Set([
1980
1985
  */
1981
1986
  get: (t, e) => (s) => jt(e, s)
1982
1987
  }
1983
- ), Vt = (t, e) => B(`data-${t}`, e), bs = new Proxy(
1988
+ ), Vt = (t, e) => F(`data-${t}`, e), Ss = new Proxy(
1984
1989
  {},
1985
1990
  {
1986
1991
  /**
@@ -1993,7 +1998,7 @@ const kt = /* @__PURE__ */ new Set([
1993
1998
  */
1994
1999
  get: (t, e) => (s) => Vt(e, s)
1995
2000
  }
1996
- ), qt = (t, e) => B(`aria-${t}`, e), Ss = new Proxy(
2001
+ ), qt = (t, e) => F(`aria-${t}`, e), _s = new Proxy(
1997
2002
  {},
1998
2003
  {
1999
2004
  /**
@@ -2006,7 +2011,7 @@ const kt = /* @__PURE__ */ new Set([
2006
2011
  */
2007
2012
  get: (t, e) => (s) => qt(e, s)
2008
2013
  }
2009
- ), Bt = (t, e) => B(t, e), _s = new Proxy(
2014
+ ), Bt = (t, e) => F(t, e), As = new Proxy(
2010
2015
  {},
2011
2016
  {
2012
2017
  /**
@@ -2019,7 +2024,7 @@ const kt = /* @__PURE__ */ new Set([
2019
2024
  */
2020
2025
  get: (t, e) => (s) => Bt(e, s)
2021
2026
  }
2022
- ), Ft = (t, e) => B(t, e), As = new Proxy(
2027
+ ), Ft = (t, e) => F(t, e), Ts = new Proxy(
2023
2028
  {},
2024
2029
  {
2025
2030
  /**
@@ -2031,29 +2036,29 @@ const kt = /* @__PURE__ */ new Set([
2031
2036
  */
2032
2037
  get: (t, e) => (s) => Ft(e, s)
2033
2038
  }
2034
- ), d = (t) => {
2039
+ ), f = (t) => {
2035
2040
  if (t == null)
2036
- return D;
2041
+ return P;
2037
2042
  if (Array.isArray(t))
2038
- return E(...t.map(d));
2043
+ return T(...t.map(f));
2039
2044
  if (typeof t == "string")
2040
- return Ne(t);
2041
- if (m.is(t))
2042
- return $e(t);
2045
+ return Re(t);
2046
+ if (y.is(t))
2047
+ return je(t);
2043
2048
  if (typeof t == "object" && "render" in t && "type" in t)
2044
2049
  return t;
2045
2050
  throw new Error(`Unknown type: '${typeof t}' for child: ${t}`);
2046
- }, Re = (t, ...e) => g((s) => {
2047
- const n = s.makeChildElement(t, void 0), r = e.map((o) => d(o).render(n));
2051
+ }, Ve = (t, ...e) => m((s) => {
2052
+ const n = s.makeChildElement(t, void 0), r = e.map((o) => f(o).render(n));
2048
2053
  return (o) => {
2049
2054
  r.forEach((i) => i(!1)), n.clear(o);
2050
2055
  };
2051
- }), re = (t, e, ...s) => g((n) => {
2052
- const r = n.makeChildElement(t, e), o = s.map((i) => d(i).render(r));
2056
+ }), oe = (t, e, ...s) => m((n) => {
2057
+ const r = n.makeChildElement(t, e), o = s.map((i) => f(i).render(r));
2053
2058
  return (i) => {
2054
2059
  o.forEach((l) => l(!1)), r.clear(i);
2055
2060
  };
2056
- }), Ts = new Proxy(
2061
+ }), Wt = new Proxy(
2057
2062
  {},
2058
2063
  {
2059
2064
  /**
@@ -2061,7 +2066,7 @@ const kt = /* @__PURE__ */ new Set([
2061
2066
  * @param tagName - The HTML tag name.
2062
2067
  * @returns A renderable function that creates and appends the HTML element to the DOM.
2063
2068
  */
2064
- get: (t, e) => (...s) => Re(e, s.flatMap(d))
2069
+ get: (t, e) => (...s) => Ve(e, s.flatMap(f))
2065
2070
  }
2066
2071
  ), Es = new Proxy(
2067
2072
  {},
@@ -2071,9 +2076,9 @@ const kt = /* @__PURE__ */ new Set([
2071
2076
  * @param type - The input type name.
2072
2077
  * @returns A renderable function that creates and appends the HTMLInput element to the DOM.
2073
2078
  */
2074
- get: (t, e) => (...s) => Re("input", V.type(e), ...s)
2079
+ get: (t, e) => (...s) => Ve("input", _.type(e), ...s)
2075
2080
  }
2076
- ), je = "http://www.w3.org/2000/svg", Cs = (t, ...e) => re(t, je, ...e), Ds = new Proxy(
2081
+ ), qe = "http://www.w3.org/2000/svg", Cs = (t, ...e) => oe(t, qe, ...e), Ds = new Proxy(
2077
2082
  {},
2078
2083
  {
2079
2084
  /**
@@ -2081,9 +2086,9 @@ const kt = /* @__PURE__ */ new Set([
2081
2086
  * @param tagName - The SVG tag name.
2082
2087
  * @returns A renderable function that creates and appends the SVG element to the DOM.
2083
2088
  */
2084
- get: (t, e) => (...s) => re(e, je, s.flatMap(d))
2089
+ get: (t, e) => (...s) => oe(e, qe, s.flatMap(f))
2085
2090
  }
2086
- ), Ve = "http://www.w3.org/1998/Math/MathML", Ps = (t, ...e) => re(t, Ve, ...e), xs = new Proxy(
2091
+ ), Be = "http://www.w3.org/1998/Math/MathML", Ps = (t, ...e) => oe(t, Be, ...e), xs = new Proxy(
2087
2092
  {},
2088
2093
  {
2089
2094
  /**
@@ -2091,35 +2096,35 @@ const kt = /* @__PURE__ */ new Set([
2091
2096
  * @param tagName - The Math tag name.
2092
2097
  * @returns A renderable function that creates and appends the Math element to the DOM.
2093
2098
  */
2094
- get: (t, e) => (...s) => re(e, Ve, s.flatMap(d))
2099
+ get: (t, e) => (...s) => oe(e, Be, s.flatMap(f))
2095
2100
  }
2096
- ), qe = (t, e) => {
2101
+ ), Fe = (t, e) => {
2097
2102
  if (typeof e == "function")
2098
- return qe(t, { then: e });
2099
- const s = e.pending != null ? d(e.pending()) : D, n = e.then, r = e.error != null ? (o) => d(e.error(o)) : () => D;
2100
- return g((o) => {
2103
+ return Fe(t, { then: e });
2104
+ const s = e.pending != null ? f(e.pending()) : P, n = e.then, r = e.error != null ? (o) => f(e.error(o)) : () => P;
2105
+ return m((o) => {
2101
2106
  let i = !0;
2102
- const l = t(), c = o.makeRef();
2103
- let a = d(s).render(c);
2107
+ const l = t(), a = o.makeRef();
2108
+ let c = f(s).render(a);
2104
2109
  return l.then(
2105
2110
  (u) => {
2106
- i && (a(!0), a = d(n(u)).render(c));
2111
+ i && (c(!0), c = f(n(u)).render(a));
2107
2112
  },
2108
2113
  (u) => {
2109
- i && (a(!0), a = d(r(u)).render(c));
2114
+ i && (c(!0), c = f(r(u)).render(a));
2110
2115
  }
2111
2116
  ), (u) => {
2112
- i = !1, a(u), c.clear(u);
2117
+ i = !1, c(u), a.clear(u);
2113
2118
  };
2114
2119
  });
2115
- }, Ls = (t, e) => qe(() => t, e), Be = (t, e, s) => g((n) => n.on(t, e, s)), Wt = (t) => Be("click", (e, s) => {
2120
+ }, Ls = (t, e) => Fe(() => t, e), We = (t, e, s) => m((n) => n.on(t, e, s)), Ut = (t) => We("click", (e, s) => {
2116
2121
  e.preventDefault();
2117
2122
  const n = e.target;
2118
2123
  setTimeout(() => {
2119
2124
  const r = n.ownerDocument != null ? n?.checked : void 0;
2120
2125
  r != null && t(!r, s);
2121
2126
  }, 0);
2122
- }), oe = new Proxy(
2127
+ }), W = new Proxy(
2123
2128
  {},
2124
2129
  {
2125
2130
  /**
@@ -2127,20 +2132,20 @@ const kt = /* @__PURE__ */ new Set([
2127
2132
  * @param fn - The function to call when the event is triggered.
2128
2133
  * @returns A `Renderable` function that adds the event listener to the element.
2129
2134
  */
2130
- get: (t, e) => (s) => Be(e, s)
2135
+ get: (t, e) => (s) => We(e, s)
2131
2136
  }
2132
- ), Ut = (t, e) => (s) => {
2137
+ ), Gt = (t, e) => (s) => {
2133
2138
  e?.preventDefault === !0 && s.preventDefault(), e?.stopPropagation === !0 && s.stopPropagation(), e?.stopImmediatePropagation === !0 && s.stopImmediatePropagation(), t(s);
2134
- }, k = (t, e) => Ut((s) => {
2139
+ }, M = (t, e) => Gt((s) => {
2135
2140
  const n = s.target;
2136
2141
  t(n, s);
2137
- }, e), Gt = (t, e) => k(
2142
+ }, e), Jt = (t, e) => M(
2138
2143
  (s, n) => t(s.value, n),
2139
2144
  e
2140
- ), Jt = (t, e) => k(
2145
+ ), Kt = (t, e) => M(
2141
2146
  (s, n) => t(s.valueAsNumber, n),
2142
2147
  e
2143
- ), Kt = (t, e) => k((s, n) => {
2148
+ ), zt = (t, e) => M((s, n) => {
2144
2149
  if (s.value === "")
2145
2150
  return;
2146
2151
  const r = s.value.split("-"), o = new Date(
@@ -2149,7 +2154,7 @@ const kt = /* @__PURE__ */ new Set([
2149
2154
  Number(r[2].substring(0, 2))
2150
2155
  );
2151
2156
  t(o, n);
2152
- }, e), Os = (t, e) => k((s, n) => {
2157
+ }, e), Os = (t, e) => M((s, n) => {
2153
2158
  if (s.value === "") {
2154
2159
  t(null, n);
2155
2160
  return;
@@ -2160,7 +2165,7 @@ const kt = /* @__PURE__ */ new Set([
2160
2165
  Number(r[2].substring(0, 2))
2161
2166
  );
2162
2167
  t(o, n);
2163
- }, e), zt = (t, e) => k((s, n) => {
2168
+ }, e), Yt = (t, e) => M((s, n) => {
2164
2169
  if (s.value === "")
2165
2170
  return;
2166
2171
  const r = s.value.split("T"), o = r[0].split("-"), i = new Date(
@@ -2169,7 +2174,7 @@ const kt = /* @__PURE__ */ new Set([
2169
2174
  Number(o[2])
2170
2175
  ), l = r[1].split(":");
2171
2176
  i.setHours(Number(l[0])), i.setMinutes(Number(l[1])), i.setSeconds(Number(l[2])), t(i, n);
2172
- }, e), ks = (t, e) => k((s, n) => {
2177
+ }, e), ks = (t, e) => M((s, n) => {
2173
2178
  if (s.value === "") {
2174
2179
  t(null, n);
2175
2180
  return;
@@ -2185,17 +2190,17 @@ const kt = /* @__PURE__ */ new Set([
2185
2190
  Number(o[2])
2186
2191
  ), l = r[1].split(":");
2187
2192
  i.setHours(Number(l[0] ?? 0)), i.setMinutes(Number(l[1] ?? 0)), i.setSeconds(Number(l[2] ?? 0)), t(i, n);
2188
- }, e), Ms = (t, e) => k((s, n) => {
2193
+ }, e), Ms = (t, e) => M((s, n) => {
2189
2194
  t(s.checked, n);
2190
- }, e), Is = (t, e = "input") => E(V.valueAsDate(t), oe[e](Kt(t.set))), Hs = (t, e = "input") => E(V.valueAsDate(t), oe[e](zt(t.set))), Ns = (t, e = "input") => E(V.valueAsNumber(t), oe[e](Jt(t.set))), $s = (t, e = "input") => E(V.value(t), oe[e](Gt(t.set))), Rs = (t) => E(V.checked(t), Wt(t.set)), fe = (t, e, s) => m.is(t) ? e(t) : s(t), Yt = (t, e, s) => {
2195
+ }, e), Is = (t, e = "input") => T(_.valueAsDate(t), W[e](zt(t.set))), Hs = (t, e = "input") => T(_.valueAsDate(t), W[e](Yt(t.set))), Ns = (t, e = "input") => T(_.valueAsNumber(t), W[e](Kt(t.set))), $s = (t, e = "input") => T(_.value(t), W[e](Jt(t.set))), Rs = (t) => T(_.checked(t), Ut(t.set)), fe = (t, e, s) => y.is(t) ? e(t) : s(t), Xt = (t, e, s) => {
2191
2196
  const n = t.makeRef();
2192
2197
  let r = () => {
2193
2198
  }, o = null;
2194
2199
  const i = e.on(
2195
2200
  (l) => {
2196
- o?.dispose(), r(!0), o = new q(), r = O(
2201
+ o?.dispose(), r(!0), o = new q(), r = k(
2197
2202
  o,
2198
- () => d(s(l)).render(n)
2203
+ () => f(s(l)).render(n)
2199
2204
  );
2200
2205
  },
2201
2206
  { noAutoDispose: !0 }
@@ -2205,43 +2210,43 @@ const kt = /* @__PURE__ */ new Set([
2205
2210
  };
2206
2211
  }, ie = (t, e) => {
2207
2212
  function s(r) {
2208
- return g((o) => {
2213
+ return m((o) => {
2209
2214
  const i = o.makeRef();
2210
- let l, c;
2211
- const a = r.map((f) => Object.keys(f)[0]);
2215
+ let l, a;
2216
+ const c = r.map((p) => Object.keys(p)[0]);
2212
2217
  let u;
2213
- const h = a.on((f) => {
2214
- if (f !== u) {
2215
- u = f, c?.dispose(), l?.(!0), c = r.map((y) => y[f]);
2216
- const p = e[f](c);
2217
- l = d(p).render(i);
2218
+ const h = c.on((p) => {
2219
+ if (p !== u) {
2220
+ u = p, a?.dispose(), l?.(!0), a = r.map((g) => g[p]);
2221
+ const d = e[p](a);
2222
+ l = f(d).render(i);
2218
2223
  }
2219
2224
  });
2220
- return (f) => {
2221
- c?.dispose(), h(), i.clear(f), l?.(f);
2225
+ return (p) => {
2226
+ a?.dispose(), h(), i.clear(p), l?.(p);
2222
2227
  };
2223
2228
  });
2224
2229
  }
2225
2230
  function n(r) {
2226
2231
  const o = Object.keys(r)[0];
2227
- return d(e[o](se(r[o])));
2232
+ return f(e[o](re(r[o])));
2228
2233
  }
2229
2234
  return fe(t, s, n);
2230
- }, Fe = (t, e, s) => ie(
2235
+ }, Ue = (t, e, s) => ie(
2231
2236
  w.map(t, (n) => ({ [n[e]]: n })),
2232
2237
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2233
2238
  s
2234
- ), js = (t, e) => Fe(t, "kind", e), Vs = (t, e) => {
2239
+ ), js = (t, e) => Ue(t, "kind", e), Vs = (t, e) => {
2235
2240
  const s = w.map(t, ([n, r]) => ({
2236
2241
  [n]: r
2237
2242
  }));
2238
2243
  return ie(s, e);
2239
- }, qs = (t, e) => Fe(t, "type", e), Xt = (t, e) => ie(
2244
+ }, qs = (t, e) => Ue(t, "type", e), Qt = (t, e) => ie(
2240
2245
  w.map(t, (s) => ({ [s]: !0 })),
2241
2246
  e
2242
2247
  ), Bs = (t, e = {}) => (s) => {
2243
2248
  const n = e?.firstSeparator ?? t, r = e?.lastSeparator ?? t;
2244
- return Xt(
2249
+ return Qt(
2245
2250
  s.map((o) => o.isFirst ? "first" : o.isLast ? "last" : "other"),
2246
2251
  {
2247
2252
  first: n,
@@ -2249,77 +2254,77 @@ const kt = /* @__PURE__ */ new Set([
2249
2254
  other: t
2250
2255
  }
2251
2256
  );
2252
- }, Fs = (t) => g((e) => (e.appendOrInsert(t), (s) => {
2253
- s && J(t);
2257
+ }, Fs = (t) => m((e) => (e.appendOrInsert(t), (s) => {
2258
+ s && z(t);
2254
2259
  })), Ws = (t, e, s) => {
2255
2260
  function n(o) {
2256
- return g((i) => {
2261
+ return m((i) => {
2257
2262
  const l = i.makeRef();
2258
- let c = () => {
2259
- }, a = !1, u = null;
2260
- const h = o.on((f) => {
2261
- f == null ? (c(!0), c = d(s?.()).render(l), a = !1, u?.dispose(), u = null) : a ? u.set(f) : (u = T(f), c(!0), c = d(
2263
+ let a = () => {
2264
+ }, c = !1, u = null;
2265
+ const h = o.on((p) => {
2266
+ p == null ? (a(!0), a = f(s?.()).render(l), c = !1, u?.dispose(), u = null) : c ? u.set(p) : (u = D(p), a(!0), a = f(
2262
2267
  e(u)
2263
- ).render(l), a = !0);
2268
+ ).render(l), c = !0);
2264
2269
  });
2265
- return (f) => {
2266
- u?.dispose(), h(), c?.(f), l.clear(f);
2270
+ return (p) => {
2271
+ u?.dispose(), h(), a?.(p), l.clear(p);
2267
2272
  };
2268
2273
  });
2269
2274
  }
2270
2275
  function r(o) {
2271
2276
  if (o == null) {
2272
2277
  const i = s?.();
2273
- return i != null ? d(i) : D;
2278
+ return i != null ? f(i) : P;
2274
2279
  }
2275
- return d(e(se(o)));
2280
+ return f(e(re(o)));
2276
2281
  }
2277
2282
  return fe(
2278
2283
  t,
2279
2284
  n,
2280
2285
  r
2281
2286
  );
2282
- }, Us = (...t) => (e, s) => g((n) => {
2287
+ }, Us = (...t) => (e, s) => m((n) => {
2283
2288
  const r = n.makeRef();
2284
2289
  if (t.some(
2285
- (p) => !m.is(p) && p == null
2290
+ (d) => !y.is(d) && d == null
2286
2291
  ))
2287
- return (s != null ? d(s?.()) : D).render(r);
2292
+ return (s != null ? f(s?.()) : P).render(r);
2288
2293
  const i = t.map(() => null), l = t.map(
2289
- (p) => m.is(p) ? p.value != null : p != null
2294
+ (d) => y.is(d) ? d.value != null : d != null
2290
2295
  );
2291
- let c = null;
2292
- const a = T(l.every((p) => p)), u = (p, y) => {
2293
- if (p.value != null) {
2294
- if (i[y] == null) {
2295
- const v = T(p.value);
2296
- i[y] = v;
2296
+ let a = null;
2297
+ const c = D(l.every((d) => d)), u = (d, g) => {
2298
+ if (d.value != null) {
2299
+ if (i[g] == null) {
2300
+ const v = D(d.value);
2301
+ i[g] = v;
2297
2302
  } else
2298
- i[y].value = p.value;
2299
- l[y] = !0;
2303
+ i[g].value = d.value;
2304
+ l[g] = !0;
2300
2305
  } else
2301
- l[y] = !1;
2306
+ l[g] = !1;
2302
2307
  };
2303
2308
  let h = t.length - 1;
2304
- const f = t.map((p, y) => {
2305
- if (!m.is(p)) {
2306
- const v = T(p);
2307
- return i[y] = v, () => {
2309
+ const p = t.map((d, g) => {
2310
+ if (!y.is(d)) {
2311
+ const v = D(d);
2312
+ return i[g] = v, () => {
2308
2313
  };
2309
2314
  }
2310
- return p.on(() => {
2311
- u(p, y), h === 0 ? a.value = l.every((v) => v) : h--;
2315
+ return d.on(() => {
2316
+ u(d, g), h === 0 ? c.value = l.every((v) => v) : h--;
2312
2317
  });
2313
2318
  });
2314
- return a.on((p) => {
2315
- c?.(!0), c = null, p ? c = d(e(...i)).render(r) : c = d(s?.() ?? D).render(r);
2316
- }), (p) => {
2317
- i.forEach((y) => y?.dispose()), a.dispose(), f.forEach((y) => y()), c?.(p), r.clear(p);
2319
+ return c.on((d) => {
2320
+ a?.(!0), a = null, d ? a = f(e(...i)).render(r) : a = f(s?.() ?? P).render(r);
2321
+ }), (d) => {
2322
+ i.forEach((g) => g?.dispose()), c.dispose(), p.forEach((g) => g()), a?.(d), r.clear(d);
2318
2323
  };
2319
- }), We = (t, e, s) => fe(
2324
+ }), Ge = (t, e, s) => fe(
2320
2325
  t,
2321
- (n) => g(
2322
- (r) => Yt(
2326
+ (n) => m(
2327
+ (r) => Xt(
2323
2328
  r,
2324
2329
  n,
2325
2330
  (o) => o ? e() : s?.()
@@ -2328,86 +2333,86 @@ const kt = /* @__PURE__ */ new Set([
2328
2333
  (n) => {
2329
2334
  if (n) {
2330
2335
  const r = e();
2331
- return r != null ? d(r) : D;
2336
+ return r != null ? f(r) : P;
2332
2337
  }
2333
- return d(s?.());
2338
+ return f(s?.());
2334
2339
  }
2335
- ), Gs = (t, e, s) => We(
2340
+ ), Gs = (t, e, s) => Ge(
2336
2341
  w.map(t, (n) => !n),
2337
2342
  e,
2338
2343
  s
2339
- ), Ue = (t, e, s) => {
2344
+ ), Je = (t, e, s) => {
2340
2345
  if (s != null)
2341
- return Ue(t, (n) => {
2346
+ return Je(t, (n) => {
2342
2347
  const r = new he(
2343
2348
  n.index,
2344
2349
  n.total.map((o) => o - 1)
2345
2350
  );
2346
- return E(
2347
- d(e(n)),
2348
- We(
2351
+ return T(
2352
+ f(e(n)),
2353
+ Ge(
2349
2354
  n.isLast,
2350
- () => D,
2355
+ () => P,
2351
2356
  () => s(r)
2352
2357
  )
2353
2358
  );
2354
2359
  });
2355
- if (m.is(t))
2356
- return g((n) => {
2360
+ if (y.is(t))
2361
+ return m((n) => {
2357
2362
  const r = t.derive(), o = n.makeRef(), i = [], l = [];
2358
- return r.on((c) => {
2359
- const a = i.splice(c), u = l.splice(c);
2363
+ return r.on((a) => {
2364
+ const c = i.splice(a), u = l.splice(a);
2360
2365
  for (const h of u)
2361
2366
  h.dispose();
2362
- for (const h of a)
2367
+ for (const h of c)
2363
2368
  h(!0);
2364
- for (let h = i.length; h < c; h++) {
2365
- const f = new he(h, r), p = new q();
2366
- l.push(p), i.push(
2367
- O(
2368
- p,
2369
- () => d(e(f)).render(o)
2369
+ for (let h = i.length; h < a; h++) {
2370
+ const p = new he(h, r), d = new q();
2371
+ l.push(d), i.push(
2372
+ k(
2373
+ d,
2374
+ () => f(e(p)).render(o)
2370
2375
  )
2371
2376
  );
2372
2377
  }
2373
- }), (c) => {
2374
- for (const a of l)
2375
- a.dispose();
2378
+ }), (a) => {
2379
+ for (const c of l)
2380
+ c.dispose();
2376
2381
  l.length = 0, r.dispose();
2377
- for (const a of i)
2378
- a(c);
2379
- i.length = 0, o.clear(c);
2382
+ for (const c of i)
2383
+ c(a);
2384
+ i.length = 0, o.clear(a);
2380
2385
  };
2381
2386
  });
2382
2387
  {
2383
- const n = se(t);
2384
- return E(
2388
+ const n = re(t);
2389
+ return T(
2385
2390
  ...Array.from({ length: t }, (r, o) => o).map((r) => {
2386
2391
  const o = new he(r, n);
2387
- return d(e(o));
2392
+ return f(e(o));
2388
2393
  })
2389
2394
  );
2390
2395
  }
2391
2396
  }, Js = (t, e, s) => {
2392
2397
  const n = w.map(t, (o) => o.length), r = w.toSignal(t);
2393
- return Ue(
2398
+ return Je(
2394
2399
  n,
2395
2400
  (o) => {
2396
2401
  const i = r.map((l) => l[o.index]);
2397
- return d(e(i, o));
2402
+ return f(e(i, o));
2398
2403
  },
2399
2404
  s
2400
2405
  );
2401
- }, Ge = (...t) => g(
2406
+ }, ge = (...t) => m(
2402
2407
  (e) => (s) => t.forEach((n) => {
2403
2408
  typeof n == "function" ? n(s, e) : n.dispose(s, e);
2404
2409
  })
2405
2410
  ), Ks = (t, e) => {
2406
- if (m.is(t)) {
2411
+ if (y.is(t)) {
2407
2412
  const s = t;
2408
- return g((n) => {
2413
+ return m((n) => {
2409
2414
  n = n.makeRef();
2410
- const r = s.map((l) => d(e(l)));
2415
+ const r = s.map((l) => f(e(l)));
2411
2416
  let o = () => {
2412
2417
  };
2413
2418
  const i = r.on((l) => {
@@ -2418,8 +2423,62 @@ const kt = /* @__PURE__ */ new Set([
2418
2423
  };
2419
2424
  });
2420
2425
  }
2421
- return d(e(t));
2422
- }, zs = (t, e, s = () => D) => ie(
2426
+ return f(e(t));
2427
+ }, me = (t) => m((e) => {
2428
+ if (e.isBrowser()) {
2429
+ const s = t(e);
2430
+ if (s != null)
2431
+ return f(s).render(e);
2432
+ }
2433
+ return () => {
2434
+ };
2435
+ });
2436
+ function zs({
2437
+ src: t,
2438
+ name: e,
2439
+ width: s,
2440
+ height: n,
2441
+ sandbox: r,
2442
+ allow: o,
2443
+ referrerpolicy: i,
2444
+ loading: l,
2445
+ onLoad: a
2446
+ } = {}, ...c) {
2447
+ return Wt.iframe(
2448
+ _.src(t),
2449
+ _.name(e),
2450
+ _.width(s != null ? w.map(s, String) : void 0),
2451
+ _.height(n != null ? w.map(n, String) : void 0),
2452
+ _.sandbox(r),
2453
+ _.allow(o),
2454
+ _.referrerpolicy(i),
2455
+ me((u) => {
2456
+ const h = u.element;
2457
+ let p, d = !1;
2458
+ const g = () => {
2459
+ if (d) return;
2460
+ d = !0;
2461
+ const v = h.contentDocument;
2462
+ if (v && (a && a(h), c.length > 0)) {
2463
+ const E = v.body;
2464
+ if (E) {
2465
+ const b = u.withElement(E);
2466
+ p = B(T(...c), b);
2467
+ }
2468
+ }
2469
+ };
2470
+ return l != null && w.on(l, (v) => {
2471
+ h.loading = v;
2472
+ }), (c.length > 0 || a) && (t || setTimeout(g, 0)), T(
2473
+ c.length > 0 || a ? W.load(g) : P,
2474
+ ge(() => {
2475
+ p && p(!1);
2476
+ })
2477
+ );
2478
+ })
2479
+ );
2480
+ }
2481
+ const Ys = (t, e, s = () => P) => ie(
2423
2482
  w.map(
2424
2483
  t,
2425
2484
  (n) => n.length > 0 ? { notEmpty: n } : { whenEmpty: null }
@@ -2428,63 +2487,55 @@ const kt = /* @__PURE__ */ new Set([
2428
2487
  notEmpty: (n) => e(n),
2429
2488
  whenEmpty: () => s()
2430
2489
  }
2431
- ), Ys = (t, e) => g((s) => {
2432
- const n = s.makePortal(t), r = ne(d(e), n);
2490
+ ), Xs = (t, e) => m((s) => {
2491
+ const n = s.makePortal(t), r = B(f(e), n);
2433
2492
  return () => r(!0);
2434
- }), G = /* @__PURE__ */ new Map(), Qt = (t) => ({
2493
+ }), K = /* @__PURE__ */ new Map(), Zt = (t) => ({
2435
2494
  mark: Ke(`Probe(${t.description})`),
2436
2495
  create: ({ callback: e = () => {
2437
2496
  }, timeout: s = 10 } = {}) => {
2438
2497
  const n = (l) => {
2439
- clearTimeout(r), G.delete(t), e(l);
2498
+ clearTimeout(r), K.delete(t), e(l);
2440
2499
  };
2441
- if (G.has(t))
2500
+ if (K.has(t))
2442
2501
  throw new Error(`Probe already exists: ${t.description}`);
2443
2502
  const r = setTimeout(() => n("timeout"), s), o = { counter: 0, timeoutId: r };
2444
- return G.set(t, o), {
2503
+ return K.set(t, o), {
2445
2504
  value: () => {
2446
2505
  clearTimeout(r);
2447
- const l = G.get(t);
2506
+ const l = K.get(t);
2448
2507
  l != null && --l.counter === 0 && n("resolved");
2449
2508
  },
2450
2509
  dispose: () => n("disposed"),
2451
2510
  onUse: () => o.counter++
2452
2511
  };
2453
2512
  }
2454
- }), Xs = Qt(Symbol("GlobalProbe")), Je = (t) => g((e) => {
2455
- if (e.isBrowser()) {
2456
- const s = t(e);
2457
- if (s != null)
2458
- return d(s).render(e);
2459
- }
2460
- return () => {
2461
- };
2462
- });
2463
- function Qs({
2513
+ }), Qs = Zt(Symbol("GlobalProbe"));
2514
+ function Zs({
2464
2515
  mode: t,
2465
2516
  delegatesFocus: e,
2466
2517
  slotAssignment: s,
2467
2518
  clonable: n,
2468
2519
  serializable: r
2469
2520
  }, ...o) {
2470
- return Je((i) => {
2521
+ return me((i) => {
2471
2522
  const l = { mode: t };
2472
2523
  e !== void 0 && (l.delegatesFocus = e), s !== void 0 && (l.slotAssignment = s), n !== void 0 && (l.clonable = n), r !== void 0 && (l.serializable = r);
2473
- const c = i.element.attachShadow(l), a = i.withElement(c), u = ne(E(...o), a);
2474
- return Ge(() => u(!0));
2524
+ const a = i.element.attachShadow(l), c = i.withElement(a), u = B(T(...o), c);
2525
+ return ge(() => u(!0));
2475
2526
  });
2476
2527
  }
2477
- const Zt = (t, e) => g((s) => {
2528
+ const es = (t, e) => m((s) => {
2478
2529
  const n = s.getStyle(t);
2479
2530
  return s.setStyle(t, e), (r) => {
2480
2531
  r && s.setStyle(t, n);
2481
2532
  };
2482
- }), es = (t, e) => g((s) => {
2533
+ }), ts = (t, e) => m((s) => {
2483
2534
  const n = s.getStyle(t), r = e.on((o) => s.setStyle(t, o));
2484
2535
  return (o) => {
2485
2536
  r(), o && s.setStyle(t, n);
2486
2537
  };
2487
- }), we = (t, e) => m.is(e) ? es(t, e) : Zt(t, e), Zs = new Proxy({}, {
2538
+ }), be = (t, e) => y.is(e) ? ts(t, e) : es(t, e), en = new Proxy({}, {
2488
2539
  /**
2489
2540
  * Creates a renderable component for the specified `style` property.
2490
2541
  *
@@ -2493,28 +2544,28 @@ const Zt = (t, e) => g((s) => {
2493
2544
  * @returns The renderable component for the specified attribute.
2494
2545
  *
2495
2546
  */
2496
- get: (t, e) => e === "variable" ? (s, n) => we(s, n) : (s) => we(e, s)
2497
- }), en = (t) => g((e) => {
2547
+ get: (t, e) => e === "variable" ? (s, n) => be(s, n) : (s) => be(e, s)
2548
+ }), tn = (t) => m((e) => {
2498
2549
  const s = t(e);
2499
2550
  return s == null ? () => {
2500
- } : d(s).render(e);
2501
- }), tn = (t) => Je((e) => t(e.element)), sn = (t) => g((e) => {
2551
+ } : f(s).render(e);
2552
+ }), sn = (t) => me((e) => t(e.element)), nn = (t) => m((e) => {
2502
2553
  if (e.isHeadlessDOM()) {
2503
2554
  const s = t(e);
2504
2555
  if (s)
2505
- return d(s).render(e);
2556
+ return f(s).render(e);
2506
2557
  }
2507
2558
  return () => {
2508
2559
  };
2509
- }), nn = (t) => g((e) => {
2510
- const s = new q(), n = O(
2560
+ }), rn = (t) => m((e) => {
2561
+ const s = new q(), n = k(
2511
2562
  s,
2512
- () => d(t(s)).render(e)
2563
+ () => f(t(s)).render(e)
2513
2564
  );
2514
2565
  return (r) => {
2515
2566
  s.dispose(), n(r);
2516
2567
  };
2517
- }), ge = (t) => g((e) => {
2568
+ }), ye = (t) => m((e) => {
2518
2569
  let s = e;
2519
2570
  function n() {
2520
2571
  return s;
@@ -2524,20 +2575,20 @@ const Zt = (t, e) => g((s) => {
2524
2575
  }
2525
2576
  const o = [], i = t({
2526
2577
  use: ({ mark: l }) => {
2527
- const { value: c, onUse: a } = n().getProvider(l);
2528
- return a?.(), c;
2578
+ const { value: a, onUse: c } = n().getProvider(l);
2579
+ return c?.(), a;
2529
2580
  },
2530
- set: ({ mark: l, create: c }, a) => {
2531
- const { value: u, dispose: h, onUse: f } = c(a, n());
2532
- o.push(h), r(n().setProvider(l, u, f));
2581
+ set: ({ mark: l, create: a }, c) => {
2582
+ const { value: u, dispose: h, onUse: p } = a(c, n());
2583
+ o.push(h), r(n().setProvider(l, u, p));
2533
2584
  }
2534
2585
  });
2535
2586
  return i == null ? () => {
2536
- } : E(
2537
- d(i),
2538
- Ge(() => o.forEach((l) => l()))
2587
+ } : T(
2588
+ f(i),
2589
+ ge(() => o.forEach((l) => l()))
2539
2590
  ).render(n());
2540
- }), rn = (t, e, s) => ge(({ set: n }) => (n(t, e), s())), on = (t, e) => ge(({ use: s }) => e(s(t))), ln = (...t) => (e) => ge(({ use: s }) => {
2591
+ }), on = (t, e, s) => ye(({ set: n }) => (n(t, e), s())), ln = (t, e) => ye(({ use: s }) => e(s(t))), an = (...t) => (e) => ye(({ use: s }) => {
2541
2592
  const n = t.map(s);
2542
2593
  return e(...n);
2543
2594
  });
@@ -2550,131 +2601,132 @@ export {
2550
2601
  Hs as BindDateTime,
2551
2602
  Ns as BindNumber,
2552
2603
  $s as BindText,
2553
- R as BrowserContext,
2554
- K as CLASS_PLACEHOLDER_ATTR,
2555
- $ as Computed,
2604
+ j as BrowserContext,
2605
+ Y as CLASS_PLACEHOLDER_ATTR,
2606
+ R as Computed,
2556
2607
  Bs as Conjunction,
2557
2608
  Fs as DOMNode,
2558
2609
  Vt as DataAttr,
2559
2610
  q as DisposalScope,
2560
- Re as El,
2561
- re as ElNS,
2611
+ Ve as El,
2612
+ oe as ElNS,
2562
2613
  he as ElementPosition,
2563
- D as Empty,
2614
+ P as Empty,
2564
2615
  Ws as Ensure,
2565
2616
  Us as EnsureAll,
2566
2617
  Js as ForEach,
2567
- E as Fragment,
2568
- Xs as GlobalProbe,
2569
- ms as HeadlessAdapter,
2570
- j as HeadlessContext,
2618
+ T as Fragment,
2619
+ Qs as GlobalProbe,
2620
+ ys as HeadlessAdapter,
2621
+ V as HeadlessContext,
2571
2622
  Lt as HeadlessElement,
2572
- He as HeadlessPortal,
2623
+ $e as HeadlessPortal,
2573
2624
  Ot as HeadlessText,
2625
+ zs as IFrame,
2574
2626
  Ks as MapSignal,
2575
2627
  Ft as MathAttr,
2576
2628
  Ps as MathEl,
2577
- Se as MemoryStore,
2578
- zs as NotEmpty,
2579
- Wt as OnChecked,
2580
- Ge as OnDispose,
2629
+ Ae as MemoryStore,
2630
+ Ys as NotEmpty,
2631
+ Ut as OnChecked,
2632
+ ge as OnDispose,
2581
2633
  ie as OneOf,
2582
- Fe as OneOfField,
2634
+ Ue as OneOfField,
2583
2635
  js as OneOfKind,
2584
2636
  Vs as OneOfTuple,
2585
2637
  qs as OneOfType,
2586
- Xt as OneOfValue,
2587
- Ys as Portal,
2588
- ee as Prop,
2589
- rn as Provide,
2590
- Le as ProviderNotFoundError,
2638
+ Qt as OneOfValue,
2639
+ Xs as Portal,
2640
+ se as Prop,
2641
+ on as Provide,
2642
+ ke as ProviderNotFoundError,
2591
2643
  gt as RenderingError,
2592
- Ue as Repeat,
2644
+ Je as Repeat,
2593
2645
  Bt as SVGAttr,
2594
2646
  Cs as SVGEl,
2595
- Qs as ShadowRoot,
2596
- m as Signal,
2597
- qe as Task,
2598
- vs as TextNode,
2647
+ Zs as ShadowRoot,
2648
+ y as Signal,
2649
+ Fe as Task,
2650
+ bs as TextNode,
2599
2651
  Gs as Unless,
2600
- on as Use,
2601
- ln as UseMany,
2652
+ ln as Use,
2653
+ an as UseMany,
2602
2654
  w as Value,
2603
- We as When,
2604
- Je as WithBrowserCtx,
2605
- en as WithCtx,
2606
- tn as WithElement,
2607
- sn as WithHeadlessCtx,
2608
- ge as WithProvider,
2609
- nn as WithScope,
2610
- Oe as _NODE_PLACEHOLDER_ATTR,
2655
+ Ge as When,
2656
+ me as WithBrowserCtx,
2657
+ tn as WithCtx,
2658
+ sn as WithElement,
2659
+ nn as WithHeadlessCtx,
2660
+ ye as WithProvider,
2661
+ rn as WithScope,
2662
+ Me as _NODE_PLACEHOLDER_ATTR,
2611
2663
  ft as _getSelfOrParentElement,
2612
- Pe as _isElement,
2613
- xe as _isFragment,
2664
+ Le as _isElement,
2665
+ Oe as _isFragment,
2614
2666
  pt as _makeGetter,
2615
2667
  dt as _makeSetter,
2616
- J as _removeDOMNode,
2617
- $e as _signalText,
2618
- Ne as _staticText,
2619
- ls as animateSignal,
2668
+ z as _removeDOMNode,
2669
+ je as _signalText,
2670
+ Re as _staticText,
2671
+ as as animateSignal,
2620
2672
  ut as animateSignals,
2621
- Ss as aria,
2622
- V as attr,
2623
- ds as bind,
2624
- ps as coalesce,
2625
- te as computed,
2626
- Z as computedOf,
2673
+ _s as aria,
2674
+ _ as attr,
2675
+ ps as bind,
2676
+ fs as coalesce,
2677
+ ne as computed,
2678
+ te as computedOf,
2627
2679
  ht as computedRecord,
2628
2680
  ze as createRenderable,
2629
- bs as dataAttr,
2630
- as as delaySignal,
2631
- be as effect,
2681
+ Ss as dataAttr,
2682
+ us as delaySignal,
2683
+ _e as effect,
2632
2684
  Ze as effectOf,
2633
- Ut as emit,
2685
+ Gt as emit,
2634
2686
  Ms as emitChecked,
2635
- k as emitTarget,
2636
- Gt as emitValue,
2637
- Kt as emitValueAsDate,
2638
- zt as emitValueAsDateTime,
2687
+ M as emitTarget,
2688
+ Jt as emitValue,
2689
+ zt as emitValueAsDate,
2690
+ Yt as emitValueAsDateTime,
2639
2691
  Os as emitValueAsNullableDate,
2640
2692
  ks as emitValueAsNullableDateTime,
2641
- Jt as emitValueAsNumber,
2693
+ Kt as emitValueAsNumber,
2642
2694
  it as endInterpolate,
2643
2695
  de as getCurrentScope,
2644
- ns as getParentScope,
2645
- ss as getScopeStack,
2646
- ws as getWindow,
2696
+ rs as getParentScope,
2697
+ ns as getScopeStack,
2698
+ vs as getWindow,
2647
2699
  lt as guessInterpolate,
2648
- Ts as html,
2700
+ Wt as html,
2649
2701
  Es as input,
2650
2702
  ot as interpolateDate,
2651
2703
  nt as interpolateNumber,
2652
2704
  rt as interpolateString,
2653
- ts as joinSignals,
2654
- os as localStorageProp,
2655
- Qt as makeProbe,
2705
+ ss as joinSignals,
2706
+ is as localStorageProp,
2707
+ Zt as makeProbe,
2656
2708
  Ke as makeProviderMark,
2657
2709
  xs as math,
2658
- As as mathAttr,
2710
+ Ts as mathAttr,
2659
2711
  cs as merge,
2660
- oe as on,
2712
+ W as on,
2661
2713
  tt as popScope,
2662
- us as previousSignal,
2663
- T as prop,
2714
+ hs as previousSignal,
2715
+ D as prop,
2664
2716
  et as pushScope,
2665
- fs as render,
2666
- ne as renderWithContext,
2667
- d as renderableOfTNode,
2668
- ys as restoreTempoPlaceholders,
2669
- gs as runHeadless,
2670
- rs as scoped,
2671
- is as sessionStorageProp,
2672
- se as signal,
2673
- hs as slidingWindowSignal,
2674
- _e as storedProp,
2675
- Zs as style,
2717
+ gs as render,
2718
+ B as renderWithContext,
2719
+ f as renderableOfTNode,
2720
+ ws as restoreTempoPlaceholders,
2721
+ ms as runHeadless,
2722
+ os as scoped,
2723
+ ls as sessionStorageProp,
2724
+ re as signal,
2725
+ ds as slidingWindowSignal,
2726
+ Te as storedProp,
2727
+ en as style,
2676
2728
  Ds as svg,
2677
- _s as svgAttr,
2678
- ce as untracked,
2679
- O as withScope
2729
+ As as svgAttr,
2730
+ ae as untracked,
2731
+ k as withScope
2680
2732
  };