@tempots/dom 33.0.0 → 33.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -4,7 +4,7 @@ const _ = [], We = (t) => {
4
4
  if (_.length === 0)
5
5
  throw new Error("Cannot pop from empty scope stack");
6
6
  _.pop();
7
- }, ye = () => _[_.length - 1] ?? null, Zt = () => _, zt = () => _[_.length - 2] ?? null, L = (t, e) => {
7
+ }, ue = () => _[_.length - 1] ?? null, Zt = () => _, zt = () => _[_.length - 2] ?? null, P = (t, e) => {
8
8
  We(t);
9
9
  try {
10
10
  return e();
@@ -14,11 +14,11 @@ const _ = [], We = (t) => {
14
14
  }, Kt = (t) => {
15
15
  const e = new j();
16
16
  try {
17
- return L(e, () => t(e));
17
+ return P(e, () => t(e));
18
18
  } finally {
19
19
  e.dispose();
20
20
  }
21
- }, oe = (t) => {
21
+ }, ie = (t) => {
22
22
  const e = _.slice();
23
23
  _.length = 0;
24
24
  try {
@@ -79,14 +79,14 @@ class g {
79
79
  * @param equals - Function to compare two values for equality (defaults to strict equality)
80
80
  * @returns A Signal that represents the result of the Promise
81
81
  */
82
- static ofPromise = (e, s, n, r = (i, o) => i === o) => {
83
- const i = new g(s, r);
84
- return e.then((o) => i._setAndNotify(o)).catch((o) => {
85
- n != null ? i._setAndNotify(n(o)) : console.error(
82
+ static ofPromise = (e, s, n, r = (o, i) => o === i) => {
83
+ const o = new g(s, r);
84
+ return e.then((i) => o._setAndNotify(i)).catch((i) => {
85
+ n != null ? o._setAndNotify(n(i)) : console.error(
86
86
  "Unhandled promise rejection in Signal.ofPromise:",
87
- o
87
+ i
88
88
  );
89
- }), i;
89
+ }), o;
90
90
  };
91
91
  /**
92
92
  * Checks if a value is a Signal.
@@ -140,22 +140,44 @@ class g {
140
140
  * The listener function will be immediately called with the current value of the signal.
141
141
  * Returns a function that can be called to unregister the listener.
142
142
  *
143
+ * When called within a DisposalScope (e.g., inside a renderable), the listener is
144
+ * automatically cleaned up when the scope is disposed. This prevents memory leaks
145
+ * when listening to outer-scope signals from inner scopes.
146
+ *
143
147
  * @param listener - The listener function to be called when the value of the signal changes.
144
148
  * @param options - Options for the listener.
149
+ *
150
+ * @example
151
+ * ```typescript
152
+ * // Automatic cleanup when scope disposes
153
+ * const MyComponent = () => {
154
+ * const outerSignal = prop(0)
155
+ *
156
+ * return html.div(
157
+ * When(someCondition, () => {
158
+ * // This listener is automatically cleaned up when the When() disposes
159
+ * outerSignal.on(value => console.log(value))
160
+ * return html.span('Inner content')
161
+ * })
162
+ * )
163
+ * }
164
+ * ```
145
165
  */
146
166
  on = (e, s = {}) => {
147
167
  s.skipInitial || e(this.get(), void 0);
148
- const n = s.once ? (i, o) => {
149
- r(), e(i, o);
168
+ const n = s.once ? (o, i) => {
169
+ r(), e(o, i);
150
170
  } : e;
151
171
  this._onValueListeners.push(n);
152
172
  const r = () => {
153
- this._onValueListeners.splice(
154
- this._onValueListeners.indexOf(n),
155
- 1
156
- ), s.abortSignal != null && s.abortSignal.removeEventListener("abort", r);
173
+ const o = this._onValueListeners.indexOf(n);
174
+ o !== -1 && this._onValueListeners.splice(o, 1), s.abortSignal != null && s.abortSignal.removeEventListener("abort", r);
157
175
  };
158
- return s.abortSignal != null && s.abortSignal.addEventListener("abort", r), r;
176
+ if (s.abortSignal != null && s.abortSignal.addEventListener("abort", r), !s.noAutoDispose) {
177
+ const o = ue();
178
+ o?.onDispose(r);
179
+ }
180
+ return r;
159
181
  };
160
182
  /**
161
183
  * Registers a listener function to be called whenever the value of the signal changes.
@@ -167,8 +189,8 @@ class g {
167
189
  */
168
190
  onChange = (e, s = {}) => {
169
191
  let n = 0;
170
- const r = (i, o) => {
171
- n++ > 0 && e(i, o);
192
+ const r = (o, i) => {
193
+ n++ > 0 && e(o, i);
172
194
  };
173
195
  return this.on(r, s);
174
196
  };
@@ -199,9 +221,10 @@ class g {
199
221
  };
200
222
  /**
201
223
  * Disposes the signal, releasing any resources associated with it.
224
+ * This clears all listeners, derivatives, and disposal callbacks.
202
225
  */
203
226
  dispose = () => {
204
- this._disposed || (this._disposed = !0, this._onDisposeListeners.forEach((e) => e()), this._onDisposeListeners.length = 0, this._derivatives.length = 0);
227
+ this._disposed || (this._disposed = !0, this._onDisposeListeners.forEach((e) => e()), this._onDisposeListeners.length = 0, this._derivatives.length = 0, this._onValueListeners.length = 0);
205
228
  };
206
229
  /**
207
230
  * Creates a new computed signal by applying a transformation function to this signal's value.
@@ -326,10 +349,10 @@ class g {
326
349
  let n = s ?? this.get();
327
350
  const r = new N(() => {
328
351
  try {
329
- const i = this.get();
330
- return n = e(i) ? i : n;
331
- } catch (i) {
332
- throw console.error("Error in Signal.filter:", i), i;
352
+ const o = this.get();
353
+ return n = e(o) ? o : n;
354
+ } catch (o) {
355
+ throw console.error("Error in Signal.filter:", o), o;
333
356
  }
334
357
  }, this.equals);
335
358
  return this.setDerivative(r), r;
@@ -344,17 +367,17 @@ class g {
344
367
  * @param equals - Optional equality function to determine if two values are equal.
345
368
  * @returns - A new Computed object with the mapped and filtered values.
346
369
  */
347
- filterMap = (e, s, n = (r, i) => r === i) => {
370
+ filterMap = (e, s, n = (r, o) => r === o) => {
348
371
  let r = s;
349
- const i = new N(() => {
372
+ const o = new N(() => {
350
373
  try {
351
- const o = this.get(), l = e(o);
374
+ const i = this.get(), l = e(i);
352
375
  return r = l ?? r;
353
- } catch (o) {
354
- throw console.error("Error in Signal.filterMap:", o), o;
376
+ } catch (i) {
377
+ throw console.error("Error in Signal.filterMap:", i), i;
355
378
  }
356
379
  }, n);
357
- return this.setDerivative(i), i;
380
+ return this.setDerivative(o), o;
358
381
  };
359
382
  /**
360
383
  * Maps the values emitted by the signal to a new value asynchronously using the provided function.
@@ -369,25 +392,25 @@ class g {
369
392
  * @param equals - The equality function to compare the mapped values for equality.
370
393
  * @returns A property that holds the mapped value and can be observed for changes.
371
394
  */
372
- mapAsync = (e, s, n, r = (i, o) => i === o) => {
373
- const i = T(s, r);
374
- let o = 0, l = new AbortController();
375
- return i.onDispose(
395
+ mapAsync = (e, s, n, r = (o, i) => o === i) => {
396
+ const o = A(s, r);
397
+ let i = 0, l = new AbortController();
398
+ return o.onDispose(
376
399
  this.on(async (c) => {
377
- const a = ++o;
400
+ const a = ++i;
378
401
  l.abort(), l = new AbortController();
379
402
  try {
380
403
  const u = await e(c, { abortSignal: l.signal });
381
- a === o && i.set(u);
404
+ a === i && o.set(u);
382
405
  } catch (u) {
383
- if (a === o)
406
+ if (a === i)
384
407
  if (n != null)
385
- i.set(n(u));
408
+ o.set(n(u));
386
409
  else
387
410
  throw u;
388
411
  }
389
412
  })
390
- ), i;
413
+ ), o;
391
414
  };
392
415
  /**
393
416
  * Maps the values of the signal using the provided function `fn`, and returns a new signal
@@ -407,7 +430,7 @@ class g {
407
430
  * @returns The input property.
408
431
  */
409
432
  feedProp = (e, s = !1) => {
410
- const n = this.on(e.set);
433
+ const n = this.on(e.set, { noAutoDispose: !s });
411
434
  return e.onDispose(n), s ? this.onDispose(e.dispose) : this.onDispose(n), e;
412
435
  };
413
436
  /**
@@ -420,7 +443,7 @@ class g {
420
443
  deriveProp = ({
421
444
  autoDisposeProp: e = !0,
422
445
  equals: s
423
- } = {}) => this.feedProp(T(this.get(), s), e);
446
+ } = {}) => this.feedProp(A(this.get(), s), e);
424
447
  /**
425
448
  * 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.
426
449
  * @returns A new signal that emits the same values as the current signal.
@@ -446,7 +469,7 @@ class g {
446
469
  this._derivatives.indexOf(e),
447
470
  1
448
471
  );
449
- }), e.onDispose(this.on(e.setDirty)), this.onDispose(e.dispose);
472
+ }), e.onDispose(this.on(e.setDirty, { noAutoDispose: !0 })), this.onDispose(e.dispose);
450
473
  };
451
474
  }
452
475
  const Ge = typeof queueMicrotask == "function" ? queueMicrotask : (t) => Promise.resolve().then(t);
@@ -477,7 +500,7 @@ class N extends g {
477
500
  */
478
501
  constructor(e, s) {
479
502
  super(void 0, s), this._fn = e, this.setDirty();
480
- const n = ye();
503
+ const n = ue();
481
504
  n?.track(this);
482
505
  }
483
506
  /**
@@ -572,13 +595,13 @@ class Z extends g {
572
595
  */
573
596
  reducer = (e, ...s) => {
574
597
  const n = this;
575
- return function r(i) {
576
- const o = n.value;
577
- n.update((l) => e(l, i)), !n.equals(o, n.value) && s.forEach(
598
+ return function r(o) {
599
+ const i = n.value;
600
+ n.update((l) => e(l, o)), !n.equals(i, n.value) && s.forEach(
578
601
  (l) => l({
579
- previousState: o,
602
+ previousState: i,
580
603
  state: n.value,
581
- action: i,
604
+ action: o,
582
605
  dispatch: r
583
606
  })
584
607
  );
@@ -595,9 +618,9 @@ class Z extends g {
595
618
  * Defaults to a strict equality check (===).
596
619
  * @returns A Prop object representing the isomorphism.
597
620
  */
598
- iso = (e, s, n = (r, i) => r === i) => {
621
+ iso = (e, s, n = (r, o) => r === o) => {
599
622
  const r = new Z(e(this.get()), n);
600
- return r.onDispose(this.on((i) => r.set(e(i)))), r.on((i) => this._setAndNotify(s(i))), r;
623
+ return r.onDispose(this.on((o) => r.set(e(o)))), r.on((o) => this._setAndNotify(s(o))), r;
601
624
  };
602
625
  /**
603
626
  * Returns a `Prop` that represents the value at the specified key of the current value.
@@ -624,21 +647,21 @@ const z = (t, e, s = (n, r) => n === r) => {
624
647
  return e.forEach((r) => r.setDerivative(n)), n;
625
648
  }, Se = (t, e, s = {}) => {
626
649
  let n = s.once ? () => {
627
- i(), t();
650
+ o(), t();
628
651
  } : t;
629
652
  if (s.skipInitial) {
630
- let o = !1;
653
+ let i = !1;
631
654
  const l = n;
632
655
  n = () => {
633
- o ? l() : o = !0;
656
+ i ? l() : i = !0;
634
657
  };
635
658
  }
636
- const r = z(n, e), i = () => {
637
- r.dispose(), s.abortSignal != null && s.abortSignal.removeEventListener("abort", i);
659
+ const r = z(n, e), o = () => {
660
+ r.dispose(), s.abortSignal != null && s.abortSignal.removeEventListener("abort", o);
638
661
  };
639
- return s.abortSignal != null && s.abortSignal.addEventListener("abort", i), i;
640
- }, T = (t, e = (s, n) => s === n) => {
641
- const s = new Z(t, e), n = ye();
662
+ return s.abortSignal != null && s.abortSignal.addEventListener("abort", o), o;
663
+ }, A = (t, e = (s, n) => s === n) => {
664
+ const s = new Z(t, e), n = ue();
642
665
  return n?.track(s), s;
643
666
  }, K = (t, e = (s, n) => s === n) => new g(t, e);
644
667
  function we(t) {
@@ -731,7 +754,7 @@ const y = {
731
754
  deriveProp: (t, {
732
755
  autoDisposeProp: e = !0,
733
756
  equals: s
734
- } = {}) => g.is(t) ? t.deriveProp({ autoDisposeProp: e, equals: s }) : T(t, s),
757
+ } = {}) => g.is(t) ? t.deriveProp({ autoDisposeProp: e, equals: s }) : A(t, s),
735
758
  /**
736
759
  * Creates a new signal that emits `true` if the value is truthy, `false` otherwise.
737
760
  * @param value - The value or signal to check.
@@ -851,7 +874,7 @@ class j {
851
874
  * @public
852
875
  */
853
876
  prop(e, s) {
854
- const n = oe(() => T(e, s));
877
+ const n = ie(() => A(e, s));
855
878
  return this.track(n), n;
856
879
  }
857
880
  /**
@@ -865,7 +888,7 @@ class j {
865
888
  * @public
866
889
  */
867
890
  computed(e, s, n) {
868
- const r = oe(() => z(e, s, n));
891
+ const r = ie(() => z(e, s, n));
869
892
  return this.track(r), r;
870
893
  }
871
894
  /**
@@ -879,7 +902,7 @@ class j {
879
902
  * @public
880
903
  */
881
904
  effect(e, s, n) {
882
- return L(this, () => Se(e, s, n));
905
+ return P(this, () => Se(e, s, n));
883
906
  }
884
907
  /**
885
908
  * Creates a computed signal with curried signature and tracks it in this scope.
@@ -891,7 +914,7 @@ class j {
891
914
  */
892
915
  computedOf(...e) {
893
916
  return (s, n) => {
894
- const r = oe(() => ee(...e)(s, n));
917
+ const r = ie(() => ee(...e)(s, n));
895
918
  return this.track(r), r;
896
919
  };
897
920
  }
@@ -904,17 +927,17 @@ class j {
904
927
  * @public
905
928
  */
906
929
  effectOf(...e) {
907
- return (s, n) => L(this, () => Qe(...e)(s, n));
930
+ return (s, n) => P(this, () => Qe(...e)(s, n));
908
931
  }
909
932
  }
910
- const Ze = (t, e, s) => t + (e - t) * s, pe = 97, ze = (t, e, s) => {
933
+ const Ze = (t, e, s) => t + (e - t) * s, ge = 97, ze = (t, e, s) => {
911
934
  const n = Math.max(t.length, e.length);
912
935
  let r = "";
913
- for (let i = 0; i < n; i++) {
914
- let o = t.charCodeAt(i);
915
- isNaN(o) && (o = pe);
916
- let l = e.charCodeAt(i);
917
- isNaN(l) && (l = pe), r += String.fromCharCode(o + (l - o) * s);
936
+ for (let o = 0; o < n; o++) {
937
+ let i = t.charCodeAt(o);
938
+ isNaN(i) && (i = ge);
939
+ let l = e.charCodeAt(o);
940
+ isNaN(l) && (l = ge), r += String.fromCharCode(i + (l - i) * s);
918
941
  }
919
942
  return r;
920
943
  }, Ke = (t, e, s) => new Date(t.getTime() + (e.getTime() - t.getTime()) * s), et = (t, e) => e, tt = (t) => typeof t == "number" ? Ze : typeof t == "string" ? ze : t instanceof Date ? Ke : et;
@@ -966,7 +989,7 @@ class le {
966
989
  this.#e?.dispose(), this.#e = void 0;
967
990
  };
968
991
  }
969
- const ue = () => (
992
+ const he = () => (
970
993
  /* c8 ignore next */
971
994
  typeof window < "u" ? window : void 0
972
995
  );
@@ -994,49 +1017,49 @@ const st = () => (ce || (ce = new be()), ce), nt = () => (ae || (ae = new be()),
994
1017
  store: s,
995
1018
  serialize: n = JSON.stringify,
996
1019
  deserialize: r = JSON.parse,
997
- equals: i = (a, u) => a === u,
998
- onLoad: o = (a) => a,
1020
+ equals: o = (a, u) => a === u,
1021
+ onLoad: i = (a) => a,
999
1022
  syncTabs: l = !0,
1000
1023
  onKeyChange: c = "load"
1001
1024
  }) => {
1002
1025
  let a = y.get(t);
1003
1026
  const u = s.getItem(a), h = new Z(
1004
- u != null ? o(r(u)) : typeof e == "function" ? e() : e,
1005
- i
1006
- ), p = ue(), d = l && typeof p?.BroadcastChannel == "function";
1027
+ u != null ? i(r(u)) : typeof e == "function" ? e() : e,
1028
+ o
1029
+ ), p = he(), d = l && typeof p?.BroadcastChannel == "function";
1007
1030
  let m = !1, w = null, D = null;
1008
1031
  const b = (S) => {
1009
1032
  if (!d) return null;
1010
- const M = `tempo:storedProp:${S}`, A = new p.BroadcastChannel(M), k = `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`, x = (F) => {
1033
+ const M = `tempo:storedProp:${S}`, T = new p.BroadcastChannel(M), k = `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`, L = (F) => {
1011
1034
  const v = F.data;
1012
1035
  if (!(v == null || typeof v != "object" || v.key !== S || typeof v.value != "string" || v.sourceId != null && v.sourceId === k))
1013
1036
  try {
1014
1037
  m = !0;
1015
- const ie = o(r(v.value));
1016
- h.set(ie);
1017
- } catch (ie) {
1038
+ const oe = i(r(v.value));
1039
+ h.set(oe);
1040
+ } catch (oe) {
1018
1041
  console.warn(
1019
1042
  `Failed to sync storedProp for key "${S}" via BroadcastChannel`,
1020
- ie
1043
+ oe
1021
1044
  );
1022
1045
  } finally {
1023
1046
  m = !1;
1024
1047
  }
1025
1048
  };
1026
- return A.addEventListener("message", x), h.onDispose(() => {
1027
- A?.removeEventListener("message", x), A?.close();
1028
- }), { channel: A, instanceId: k, handleMessage: x };
1029
- }, P = b(a);
1030
- P && (w = P.channel, D = P.instanceId);
1049
+ return T.addEventListener("message", L), h.onDispose(() => {
1050
+ T?.removeEventListener("message", L), T?.close();
1051
+ }), { channel: T, instanceId: k, handleMessage: L };
1052
+ }, x = b(a);
1053
+ x && (w = x.channel, D = x.instanceId);
1031
1054
  const re = (S) => {
1032
1055
  const M = a;
1033
1056
  if (M === S) return;
1034
- const A = h.get(), k = n(A);
1057
+ const T = h.get(), k = n(T);
1035
1058
  if (s.setItem(M, k), w != null && (w.close(), w = null, D = null), a = S, c === "load") {
1036
1059
  const F = s.getItem(S);
1037
1060
  if (F != null)
1038
1061
  try {
1039
- const v = o(r(F));
1062
+ const v = i(r(F));
1040
1063
  h.set(v);
1041
1064
  } catch (v) {
1042
1065
  console.warn(
@@ -1047,49 +1070,49 @@ const st = () => (ce || (ce = new be()), ce), nt = () => (ae || (ae = new be()),
1047
1070
  else
1048
1071
  s.setItem(S, k);
1049
1072
  } else c === "migrate" && s.setItem(S, k);
1050
- const x = b(S);
1051
- x && (w = x.channel, D = x.instanceId);
1073
+ const L = b(S);
1074
+ L && (w = L.channel, D = L.instanceId);
1052
1075
  };
1053
1076
  return g.is(t) && h.onDispose(t.on(re)), h.on((S, M) => {
1054
- const A = n(S);
1055
- s.setItem(a, A), w != null && !m && M !== void 0 && D != null && w.postMessage({
1077
+ const T = n(S);
1078
+ s.setItem(a, T), w != null && !m && M !== void 0 && D != null && w.postMessage({
1056
1079
  key: a,
1057
- value: A,
1080
+ value: T,
1058
1081
  sourceId: D
1059
1082
  });
1060
1083
  }), h;
1061
1084
  }, ts = (t) => {
1062
- const s = ue()?.localStorage, n = s && typeof s.getItem == "function" ? s : st();
1085
+ const s = he()?.localStorage, n = s && typeof s.getItem == "function" ? s : st();
1063
1086
  return _e({
1064
1087
  ...t,
1065
1088
  store: n
1066
1089
  });
1067
1090
  }, ss = (t) => {
1068
- const s = ue()?.sessionStorage, n = s && typeof s.getItem == "function" ? s : nt();
1091
+ const s = he()?.sessionStorage, n = s && typeof s.getItem == "function" ? s : nt();
1069
1092
  return _e({
1070
1093
  ...t,
1071
1094
  store: n
1072
1095
  });
1073
1096
  };
1074
- function ge(t) {
1097
+ function me(t) {
1075
1098
  return typeof requestAnimationFrame == "function" ? requestAnimationFrame(t) : setTimeout(t, 0);
1076
1099
  }
1077
1100
  const rt = (t, e, s, n) => {
1078
- const r = n?.duration ?? 300, i = n?.easing ?? ((b) => b), o = n?.equals ?? ((b, P) => b === P);
1101
+ const r = n?.duration ?? 300, o = n?.easing ?? ((b) => b), i = n?.equals ?? ((b, x) => b === x);
1079
1102
  let l = n?.interpolate, c = t, a = e(), u = performance.now(), h = null, p = !0;
1080
- const d = new N(e, o), m = T(t, o);
1103
+ const d = new N(e, i), m = A(t, i);
1081
1104
  m.onDispose(() => {
1082
1105
  h !== null && cancelAnimationFrame(h);
1083
1106
  }), m.onDispose(d.dispose), s.forEach((b) => {
1084
1107
  b.setDerivative(d), b.onDispose(m.dispose);
1085
1108
  });
1086
1109
  const w = (b) => {
1087
- a = b, u = performance.now(), c = m.value, p && (p = !1, h = ge(D));
1110
+ a = b, u = performance.now(), c = m.value, p && (p = !1, h = me(D));
1088
1111
  }, D = () => {
1089
- const P = (performance.now() - u) / y.get(r), re = i(P);
1112
+ const x = (performance.now() - u) / y.get(r), re = o(x);
1090
1113
  l == null && (l = tt(c));
1091
1114
  let S = l(c, a, re);
1092
- P >= 1 ? (p = !0, S = a) : h = ge(D), m.set(S);
1115
+ x >= 1 ? (p = !0, S = a) : h = me(D), m.set(S);
1093
1116
  };
1094
1117
  return d.on(w), m;
1095
1118
  }, ns = (t, e) => {
@@ -1101,29 +1124,32 @@ const rt = (t, e, s, n) => {
1101
1124
  [t],
1102
1125
  n
1103
1126
  );
1104
- }, it = (t, e) => {
1127
+ }, ot = (t, e) => {
1105
1128
  const s = Object.values(t).filter(g.is), n = Object.keys(t);
1106
1129
  return z(() => {
1107
1130
  const r = {};
1108
- for (const i of n)
1109
- r[i] = y.get(t[i]);
1131
+ for (const o of n)
1132
+ r[o] = y.get(t[o]);
1110
1133
  return e(r);
1111
1134
  }, s);
1112
- }, rs = (t) => it(t, (e) => e), is = (t, e) => {
1113
- const s = T(t.get());
1135
+ }, rs = (t) => ot(t, (e) => e), os = (t, e) => {
1136
+ const s = A(t.get());
1114
1137
  let n = null;
1115
- const r = t.on((i) => {
1116
- n != null && clearTimeout(n), n = setTimeout(
1117
- () => {
1118
- n = null, s.set(i);
1119
- },
1120
- typeof e == "function" ? e(i) : e
1121
- );
1122
- });
1138
+ const r = t.on(
1139
+ (o) => {
1140
+ n != null && clearTimeout(n), n = setTimeout(
1141
+ () => {
1142
+ n = null, s.set(o);
1143
+ },
1144
+ typeof e == "function" ? e(o) : e
1145
+ );
1146
+ },
1147
+ { noAutoDispose: !0 }
1148
+ );
1123
1149
  return s.onDispose(() => {
1124
1150
  r(), n != null && clearTimeout(n);
1125
1151
  }), s;
1126
- }, os = (t) => {
1152
+ }, is = (t) => {
1127
1153
  let e;
1128
1154
  return t.map((s) => {
1129
1155
  const n = e;
@@ -1144,7 +1170,7 @@ function as(...t) {
1144
1170
  for (const s of e) if (s != null) return s;
1145
1171
  });
1146
1172
  }
1147
- const ve = /* @__PURE__ */ new Set(["checked", "disabled", "hidden"]), Te = /* @__PURE__ */ new Set(["selected"]), Ae = /* @__PURE__ */ new Set([
1173
+ const ve = /* @__PURE__ */ new Set(["checked", "disabled", "hidden"]), Ae = /* @__PURE__ */ new Set(["selected"]), Te = /* @__PURE__ */ new Set([
1148
1174
  "rowSpan",
1149
1175
  "colSpan",
1150
1176
  "tabIndex",
@@ -1157,11 +1183,11 @@ const ve = /* @__PURE__ */ new Set(["checked", "disabled", "hidden"]), Te = /* @
1157
1183
  "outerHTML",
1158
1184
  "className",
1159
1185
  "classList"
1160
- ]), ot = (t, e) => Te.has(t) ? (s) => {
1186
+ ]), it = (t, e) => Ae.has(t) ? (s) => {
1161
1187
  s == null || s !== !0 ? e.removeAttribute(t) : e.setAttribute(t, "");
1162
1188
  } : ve.has(t) ? (s) => {
1163
1189
  s == null ? e[t] = null : e[t] = !!s;
1164
- } : Ae.has(t) ? (s) => {
1190
+ } : Te.has(t) ? (s) => {
1165
1191
  s == null ? e[t] = null : e[t] = Number(s);
1166
1192
  } : Ee.has(t) ? (s) => {
1167
1193
  s == null ? e[t] = null : e[t] = s;
@@ -1169,11 +1195,11 @@ const ve = /* @__PURE__ */ new Set(["checked", "disabled", "hidden"]), Te = /* @
1169
1195
  s == null ? e[t] = null : e[t] = String(s);
1170
1196
  } : (s) => {
1171
1197
  s == null ? e.removeAttribute(t) : e.setAttribute(t, s);
1172
- }, lt = (t, e) => Te.has(t) ? () => e.hasAttribute(t) : ve.has(t) ? () => !!e[t] : Ae.has(t) ? () => Number(e[t]) : Ee.has(t) ? () => e[t] : Ce.has(t) ? () => String(e[t]) : () => e.getAttribute(t), U = (t) => {
1198
+ }, lt = (t, e) => Ae.has(t) ? () => e.hasAttribute(t) : ve.has(t) ? () => !!e[t] : Te.has(t) ? () => Number(e[t]) : Ee.has(t) ? () => e[t] : Ce.has(t) ? () => String(e[t]) : () => e.getAttribute(t), U = (t) => {
1173
1199
  const e = t;
1174
1200
  e && e.onblur && (e.onblur = null), !(!t || t.ownerDocument === void 0) && t.parentElement && t.parentElement.removeChild(t);
1175
1201
  }, ct = (t) => De(t) ? t : t.parentElement, De = (t) => t.nodeType === 1;
1176
- class Pe extends Error {
1202
+ class xe extends Error {
1177
1203
  constructor(e) {
1178
1204
  super(`Provider not found: ${e.description}`);
1179
1205
  }
@@ -1363,7 +1389,7 @@ class $ {
1363
1389
  */
1364
1390
  getProvider = (e) => {
1365
1391
  if (this.providers[e] === void 0)
1366
- throw new Pe(e);
1392
+ throw new xe(e);
1367
1393
  const [s, n] = this.providers[e];
1368
1394
  return { value: s, onUse: n };
1369
1395
  };
@@ -1397,9 +1423,9 @@ class $ {
1397
1423
  * @returns A function to remove the event listener.
1398
1424
  */
1399
1425
  on = (e, s, n) => {
1400
- const r = (i) => s(i, this);
1401
- return this.element.addEventListener(e, r, n), (i) => {
1402
- i && this.element.removeEventListener(e, r, n);
1426
+ const r = (o) => s(o, this);
1427
+ return this.element.addEventListener(e, r, n), (o) => {
1428
+ o && this.element.removeEventListener(e, r, n);
1403
1429
  };
1404
1430
  };
1405
1431
  /**
@@ -1439,29 +1465,29 @@ class $ {
1439
1465
  getStyle = (e) => this.element.style[e];
1440
1466
  makeAccessors = (e) => ({
1441
1467
  get: lt(e, this.element),
1442
- set: ot(e, this.element)
1468
+ set: it(e, this.element)
1443
1469
  });
1444
1470
  getWindow = () => this.document.defaultView;
1445
1471
  }
1446
- const at = (t) => Symbol(t), he = (t, e) => {
1447
- const s = new j(), n = L(s, () => t(e));
1472
+ const at = (t) => Symbol(t), fe = (t, e) => {
1473
+ const s = new j(), n = P(s, () => t(e));
1448
1474
  return (r = !0) => {
1449
1475
  s.dispose(), n(r);
1450
1476
  };
1451
- }, us = (t, e, { doc: s, clear: n, disposeWithParent: r = !0, providers: i = {} } = {}) => {
1452
- const o = typeof e == "string" ? (s ?? document).querySelector(e) : e;
1453
- if (o === null)
1477
+ }, us = (t, e, { doc: s, clear: n, disposeWithParent: r = !0, providers: o = {} } = {}) => {
1478
+ const i = typeof e == "string" ? (s ?? document).querySelector(e) : e;
1479
+ if (i === null)
1454
1480
  throw new ut(
1455
1481
  `Cannot find element by selector for render: ${e}`
1456
1482
  );
1457
- n !== !1 && (s ?? o.ownerDocument) != null && o.nodeType === 1 && (o.innerHTML = "");
1458
- const l = ct(o), c = De(o) ? void 0 : o, a = $.of(l, c, i), u = he(t, a);
1483
+ n !== !1 && (s ?? i.ownerDocument) != null && i.nodeType === 1 && (i.innerHTML = "");
1484
+ const l = ct(i), c = De(i) ? void 0 : i, a = $.of(l, c, o), u = fe(t, a);
1459
1485
  let h;
1460
1486
  return r && (h = new MutationObserver((p) => {
1461
1487
  p[0]?.removedNodes.forEach((d) => {
1462
- d === o && (h?.disconnect(), u(o.nodeType !== 1));
1488
+ d === i && (h?.disconnect(), u(i.nodeType !== 1));
1463
1489
  });
1464
- }), h.observe(o.parentElement, {
1490
+ }), h.observe(i.parentElement, {
1465
1491
  childList: !0,
1466
1492
  subtree: !1,
1467
1493
  attributes: !1
@@ -1475,10 +1501,10 @@ const at = (t) => Symbol(t), he = (t, e) => {
1475
1501
  } = {
1476
1502
  selector: "body"
1477
1503
  }) => {
1478
- const r = y.toSignal(e).deriveProp(), i = new ke(s, void 0), o = new R(i, void 0, { currentURL: r }, n);
1504
+ const r = y.toSignal(e).deriveProp(), o = new ke(s, void 0), i = new R(o, void 0, { currentURL: r }, n);
1479
1505
  return {
1480
- clear: he(t(), o),
1481
- root: i,
1506
+ clear: fe(t(), i),
1507
+ root: o,
1482
1508
  currentURL: r
1483
1509
  };
1484
1510
  };
@@ -1487,7 +1513,7 @@ class ut extends Error {
1487
1513
  super(e);
1488
1514
  }
1489
1515
  }
1490
- const xe = "data-tts-node", G = "data-tts-class", J = "data-tts-style", X = "data-tts-html", Y = "data-tts-text", Q = "data-tts-attrs";
1516
+ const Le = "data-tts-node", G = "data-tts-class", J = "data-tts-style", X = "data-tts-html", Y = "data-tts-text", Q = "data-tts-attrs";
1491
1517
  class fs {
1492
1518
  /**
1493
1519
  * Selects elements from the headless environment.
@@ -1567,8 +1593,8 @@ class fs {
1567
1593
  getAttribute: s,
1568
1594
  setAttribute: n,
1569
1595
  getClass: r,
1570
- setClass: i,
1571
- getStyles: o,
1596
+ setClass: o,
1597
+ getStyles: i,
1572
1598
  setStyles: l,
1573
1599
  appendHTML: c,
1574
1600
  getInnerHTML: a,
@@ -1576,7 +1602,7 @@ class fs {
1576
1602
  getInnerText: h,
1577
1603
  setInnerText: p
1578
1604
  }) {
1579
- this.select = e, this.getAttribute = s, this.setAttribute = n, this.getClass = r, this.setClass = i, this.getStyles = o, this.setStyles = l, this.appendHTML = c, this.getInnerHTML = a, this.setInnerHTML = u, this.getInnerText = h, this.setInnerText = p;
1605
+ 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 = p;
1580
1606
  }
1581
1607
  /**
1582
1608
  * Sets the content of the root element from a HeadlessPortal. Generally this will be the same instance that is
@@ -1588,59 +1614,59 @@ class fs {
1588
1614
  */
1589
1615
  setFromRoot = (e, s) => {
1590
1616
  e.getPortals().forEach((r) => {
1591
- const i = typeof r.selector == "string" ? this.select(r.selector) : [r.selector];
1592
- for (const o of i) {
1593
- if (o == null)
1617
+ const o = typeof r.selector == "string" ? this.select(r.selector) : [r.selector];
1618
+ for (const i of o) {
1619
+ if (i == null)
1594
1620
  throw new Error(
1595
1621
  `Cannot find element by selector for render: ${r.selector}`
1596
1622
  );
1597
- if (r.hasChildren() && this.appendHTML(o, r.contentToHTML(s)), r.hasInnerHTML()) {
1623
+ if (r.hasChildren() && this.appendHTML(i, r.contentToHTML(s)), r.hasInnerHTML()) {
1598
1624
  if (s) {
1599
- const l = this.getInnerHTML(o);
1600
- l != null && this.setAttribute(o, X, l);
1625
+ const l = this.getInnerHTML(i);
1626
+ l != null && this.setAttribute(i, X, l);
1601
1627
  }
1602
- this.setInnerHTML(o, r.getInnerHTML());
1628
+ this.setInnerHTML(i, r.getInnerHTML());
1603
1629
  }
1604
1630
  if (r.hasInnerText()) {
1605
1631
  if (s) {
1606
- const l = this.getInnerText(o);
1607
- l != null && this.setAttribute(o, Y, l);
1632
+ const l = this.getInnerText(i);
1633
+ l != null && this.setAttribute(i, Y, l);
1608
1634
  }
1609
- this.setInnerText(o, r.getInnerText());
1635
+ this.setInnerText(i, r.getInnerText());
1610
1636
  }
1611
1637
  if (r.hasClasses()) {
1612
1638
  if (s) {
1613
- const l = this.getClass(o);
1614
- l != null && this.setAttribute(o, G, l);
1639
+ const l = this.getClass(i);
1640
+ l != null && this.setAttribute(i, G, l);
1615
1641
  }
1616
- this.setClass(o, r.getClasses().join(" "));
1642
+ this.setClass(i, r.getClasses().join(" "));
1617
1643
  }
1618
1644
  if (r.hasStyles()) {
1619
1645
  if (s) {
1620
- const l = this.getStyles(o);
1646
+ const l = this.getStyles(i);
1621
1647
  Object.keys(l).length > 0 && this.setAttribute(
1622
- o,
1648
+ i,
1623
1649
  J,
1624
1650
  JSON.stringify(l)
1625
1651
  );
1626
1652
  }
1627
- this.setStyles(o, r.getStyles());
1653
+ this.setStyles(i, r.getStyles());
1628
1654
  }
1629
1655
  if (r.hasAttributes()) {
1630
1656
  const l = r.getAttributes();
1631
1657
  if (s) {
1632
1658
  const c = [];
1633
1659
  l.forEach(([a]) => {
1634
- const u = this.getAttribute(o, a);
1660
+ const u = this.getAttribute(i, a);
1635
1661
  u != null && c.push([a, u]);
1636
1662
  }), c.length > 0 && this.setAttribute(
1637
- o,
1663
+ i,
1638
1664
  Q,
1639
1665
  JSON.stringify(Object.fromEntries(c))
1640
1666
  );
1641
1667
  }
1642
1668
  l.forEach(([c, a]) => {
1643
- this.setAttribute(o, c, a);
1669
+ this.setAttribute(i, c, a);
1644
1670
  });
1645
1671
  }
1646
1672
  }
@@ -1648,7 +1674,7 @@ class fs {
1648
1674
  };
1649
1675
  }
1650
1676
  const ht = () => {
1651
- document.querySelectorAll(`[${xe}]`).forEach(U);
1677
+ document.querySelectorAll(`[${Le}]`).forEach(U);
1652
1678
  }, ft = (t) => {
1653
1679
  const e = t.getAttribute(G);
1654
1680
  t.removeAttribute(G), e != null && t.setAttribute("class", e);
@@ -1664,10 +1690,10 @@ const ht = () => {
1664
1690
  t.removeAttribute(Y), e != null && (t.innerText = e);
1665
1691
  }, yt = () => {
1666
1692
  document.querySelectorAll(`[${Y}]`).forEach((e) => mt(e));
1667
- }, Le = (t) => JSON.parse(t.replace(/&quot;/g, '"')), St = (t) => {
1693
+ }, Pe = (t) => JSON.parse(t.replace(/&quot;/g, '"')), St = (t) => {
1668
1694
  const e = t.getAttribute(J);
1669
1695
  if (t.removeAttribute(J), e != null) {
1670
- const s = Le(e);
1696
+ const s = Pe(e);
1671
1697
  Object.entries(s).forEach(([n, r]) => {
1672
1698
  t.style.setProperty(n, r);
1673
1699
  });
@@ -1677,7 +1703,7 @@ const ht = () => {
1677
1703
  }, bt = (t) => {
1678
1704
  const e = t.getAttribute(Q);
1679
1705
  if (t.removeAttribute(Q), e != null) {
1680
- const s = Le(e);
1706
+ const s = Pe(e);
1681
1707
  Object.entries(s).forEach(([n, r]) => {
1682
1708
  r == null ? t.removeAttribute(n) : t.setAttribute(n, r);
1683
1709
  });
@@ -1738,13 +1764,13 @@ class Me {
1738
1764
  this.trigger("click", {});
1739
1765
  };
1740
1766
  on = (e, s, n, r) => {
1741
- const i = this.properties[B] ??= {}, o = r?.once ? (c) => {
1767
+ const o = this.properties[B] ??= {}, i = r?.once ? (c) => {
1742
1768
  l(), s(c, n);
1743
1769
  } : (c) => s(c, n);
1744
- i[e] = [...i[e] ?? [], o];
1770
+ o[e] = [...o[e] ?? [], i];
1745
1771
  const l = () => {
1746
- const c = i[e] ?? [], a = c.indexOf(o);
1747
- a !== -1 && (c.splice(a, 1), c.length === 0 ? (delete i[e], Object.keys(i).length === 0 && delete this.properties[B]) : i[e] = c, r?.signal != null && r.signal.removeEventListener("abort", l));
1772
+ const c = o[e] ?? [], a = c.indexOf(i);
1773
+ a !== -1 && (c.splice(a, 1), c.length === 0 ? (delete o[e], Object.keys(o).length === 0 && delete this.properties[B]) : o[e] = c, r?.signal != null && r.signal.removeEventListener("abort", l));
1748
1774
  };
1749
1775
  return r?.signal != null && r.signal.addEventListener("abort", l), l;
1750
1776
  };
@@ -1786,7 +1812,7 @@ class Me {
1786
1812
  };
1787
1813
  };
1788
1814
  }
1789
- const Tt = (t) => t.replace(/"/g, "&quot;"), At = (t) => t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
1815
+ const At = (t) => t.replace(/"/g, "&quot;"), Tt = (t) => t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
1790
1816
  class Et extends Me {
1791
1817
  constructor(e, s, n) {
1792
1818
  super(n), this.tagName = e, this.namespace = s;
@@ -1795,8 +1821,8 @@ class Et extends Me {
1795
1821
  toHTML = (e = !1) => {
1796
1822
  const s = this.children.map((l) => l.toHTML()).join(""), n = this.namespace ? ` xmlns="${this.namespace}"` : "";
1797
1823
  let r = null;
1798
- const i = 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(" ")}"` : Dt.has(l) ? ` ${l}` : l === "innerHTML" ? (r = c, "") : l === "innerText" ? (r = At(c), "") : ` ${l}="${Tt(c)}"`).join(""), o = e ? ` ${xe}` : "";
1799
- return Pt.has(this.tagName) && s === "" ? `<${this.tagName}${n}${i}${o} />` : `<${this.tagName}${n}${i}${o}>${r ?? s}</${this.tagName}>`;
1824
+ 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(" ")}"` : Dt.has(l) ? ` ${l}` : l === "innerHTML" ? (r = c, "") : l === "innerText" ? (r = Tt(c), "") : ` ${l}="${At(c)}"`).join(""), i = e ? ` ${Le}` : "";
1825
+ return xt.has(this.tagName) && s === "" ? `<${this.tagName}${n}${o}${i} />` : `<${this.tagName}${n}${o}${i}>${r ?? s}</${this.tagName}>`;
1800
1826
  };
1801
1827
  }
1802
1828
  class ke extends Me {
@@ -1873,7 +1899,7 @@ class R {
1873
1899
  });
1874
1900
  getProvider = (e) => {
1875
1901
  if (this.providers[e] === void 0)
1876
- throw new Pe(e);
1902
+ throw new xe(e);
1877
1903
  const [s, n] = this.providers[e];
1878
1904
  return { value: s, onUse: n };
1879
1905
  };
@@ -1899,7 +1925,7 @@ const Dt = /* @__PURE__ */ new Set([
1899
1925
  "readonly",
1900
1926
  "required",
1901
1927
  "selected"
1902
- ]), Pt = /* @__PURE__ */ new Set(["img", "br", "hr", "input", "link", "meta"]), Ie = (t) => (e) => e.makeChildText(t).clear, He = (t) => (e) => {
1928
+ ]), xt = /* @__PURE__ */ new Set(["img", "br", "hr", "input", "link", "meta"]), Ie = (t) => (e) => e.makeChildText(t).clear, He = (t) => (e) => {
1903
1929
  const s = e.makeChildText(t.value), n = t.on(s.setText);
1904
1930
  return (r) => {
1905
1931
  n(), s.clear(r);
@@ -1910,27 +1936,30 @@ const Dt = /* @__PURE__ */ new Set([
1910
1936
  s.forEach((r) => r(n));
1911
1937
  };
1912
1938
  }, C = () => () => {
1913
- }, xt = (t) => (e) => (e.addClasses(t), (s) => {
1939
+ }, Lt = (t) => (e) => (e.addClasses(t), (s) => {
1914
1940
  s && e.removeClasses(t);
1915
- }), Lt = (t) => (e) => {
1941
+ }), Pt = (t) => (e) => {
1916
1942
  let s = [];
1917
- const n = t.on((r) => {
1918
- e.removeClasses(s), s = (r ?? "").split(" ").filter((i) => i.length > 0), e.addClasses(s);
1919
- });
1943
+ const n = t.on(
1944
+ (r) => {
1945
+ e.removeClasses(s), s = (r ?? "").split(" ").filter((o) => o.length > 0), e.addClasses(s);
1946
+ },
1947
+ { noAutoDispose: !0 }
1948
+ );
1920
1949
  return (r) => {
1921
1950
  n(), r && e.removeClasses(s), s.length = 0;
1922
1951
  };
1923
1952
  }, Ot = (t, e) => (s) => {
1924
- const { get: n, set: r } = s.makeAccessors(t), i = n();
1925
- return r(e), (o) => {
1926
- o && r(i);
1953
+ const { get: n, set: r } = s.makeAccessors(t), o = n();
1954
+ return r(e), (i) => {
1955
+ i && r(o);
1927
1956
  };
1928
1957
  }, Mt = (t, e) => (s) => {
1929
- const { get: n, set: r } = s.makeAccessors(t), i = n(), o = e.on(r);
1958
+ const { get: n, set: r } = s.makeAccessors(t), o = n(), i = e.on(r, { noAutoDispose: !0 });
1930
1959
  return (l) => {
1931
- o(), l && r(i);
1960
+ i(), l && r(o);
1932
1961
  };
1933
- }, q = (t, e) => g.is(e) ? Mt(t, e) : Ot(t, e), kt = (t, e) => t === "class" ? g.is(e) ? Lt(e) : xt(
1962
+ }, q = (t, e) => g.is(e) ? Mt(t, e) : Ot(t, e), kt = (t, e) => t === "class" ? g.is(e) ? Pt(e) : Lt(
1934
1963
  /* c8 ignore next */
1935
1964
  (e ?? "").split(" ").filter((s) => s.length > 0)
1936
1965
  ) : q(t, e), V = new Proxy(
@@ -2013,14 +2042,14 @@ const Dt = /* @__PURE__ */ new Set([
2013
2042
  return t;
2014
2043
  throw new Error(`Unknown type: '${typeof t}' for child: ${t}`);
2015
2044
  }, Ne = (t, ...e) => (s) => {
2016
- const n = s.makeChildElement(t, void 0), r = e.map((i) => f(i)(n));
2017
- return (i) => {
2018
- r.forEach((o) => o(!1)), n.clear(i);
2045
+ const n = s.makeChildElement(t, void 0), r = e.map((o) => f(o)(n));
2046
+ return (o) => {
2047
+ r.forEach((i) => i(!1)), n.clear(o);
2019
2048
  };
2020
2049
  }, te = (t, e, ...s) => (n) => {
2021
- const r = n.makeChildElement(t, e), i = s.map((o) => f(o)(r));
2022
- return (o) => {
2023
- i.forEach((l) => l(!1)), r.clear(o);
2050
+ const r = n.makeChildElement(t, e), o = s.map((i) => f(i)(r));
2051
+ return (i) => {
2052
+ o.forEach((l) => l(!1)), r.clear(i);
2024
2053
  };
2025
2054
  }, ws = new Proxy(
2026
2055
  {},
@@ -2052,7 +2081,7 @@ const Dt = /* @__PURE__ */ new Set([
2052
2081
  */
2053
2082
  get: (t, e) => (...s) => te(e, $e, s.flatMap(f))
2054
2083
  }
2055
- ), Re = "http://www.w3.org/1998/Math/MathML", Ts = (t, ...e) => te(t, Re, ...e), As = new Proxy(
2084
+ ), Re = "http://www.w3.org/1998/Math/MathML", As = (t, ...e) => te(t, Re, ...e), Ts = new Proxy(
2056
2085
  {},
2057
2086
  {
2058
2087
  /**
@@ -2065,20 +2094,20 @@ const Dt = /* @__PURE__ */ new Set([
2065
2094
  ), Ve = (t, e) => {
2066
2095
  if (typeof e == "function")
2067
2096
  return Ve(t, { then: e });
2068
- const s = e.pending != null ? f(e.pending()) : C, n = e.then, r = e.error != null ? (i) => f(e.error(i)) : () => C;
2069
- return (i) => {
2070
- let o = !0;
2071
- const l = t(), c = i.makeRef();
2097
+ const s = e.pending != null ? f(e.pending()) : C, n = e.then, r = e.error != null ? (o) => f(e.error(o)) : () => C;
2098
+ return (o) => {
2099
+ let i = !0;
2100
+ const l = t(), c = o.makeRef();
2072
2101
  let a = f(s)(c);
2073
2102
  return l.then(
2074
2103
  (u) => {
2075
- o && (a(!0), a = f(n(u))(c));
2104
+ i && (a(!0), a = f(n(u))(c));
2076
2105
  },
2077
2106
  (u) => {
2078
- o && (a(!0), a = f(r(u))(c));
2107
+ i && (a(!0), a = f(r(u))(c));
2079
2108
  }
2080
2109
  ), (u) => {
2081
- o = !1, a(u), c.clear(u);
2110
+ i = !1, a(u), c.clear(u);
2082
2111
  };
2083
2112
  };
2084
2113
  }, Es = (t, e) => Ve(() => t, e), je = (t, e, s) => (n) => n.on(t, e, s), Rt = (t) => je("click", (e, s) => {
@@ -2112,32 +2141,32 @@ const Dt = /* @__PURE__ */ new Set([
2112
2141
  ), Ft = (t, e) => O((s, n) => {
2113
2142
  if (s.value === "")
2114
2143
  return;
2115
- const r = s.value.split("-"), i = new Date(
2144
+ const r = s.value.split("-"), o = new Date(
2116
2145
  Number(r[0]),
2117
2146
  Number(r[1]) - 1,
2118
2147
  Number(r[2].substring(0, 2))
2119
2148
  );
2120
- t(i, n);
2149
+ t(o, n);
2121
2150
  }, e), Cs = (t, e) => O((s, n) => {
2122
2151
  if (s.value === "") {
2123
2152
  t(null, n);
2124
2153
  return;
2125
2154
  }
2126
- const r = s.value.split("-"), i = new Date(
2155
+ const r = s.value.split("-"), o = new Date(
2127
2156
  Number(r[0]),
2128
2157
  Number(r[1]) - 1,
2129
2158
  Number(r[2].substring(0, 2))
2130
2159
  );
2131
- t(i, n);
2160
+ t(o, n);
2132
2161
  }, e), Bt = (t, e) => O((s, n) => {
2133
2162
  if (s.value === "")
2134
2163
  return;
2135
- const r = s.value.split("T"), i = r[0].split("-"), o = new Date(
2136
- Number(i[0]),
2137
- Number(i[1]) - 1,
2138
- Number(i[2])
2164
+ const r = s.value.split("T"), o = r[0].split("-"), i = new Date(
2165
+ Number(o[0]),
2166
+ Number(o[1]) - 1,
2167
+ Number(o[2])
2139
2168
  ), l = r[1].split(":");
2140
- o.setHours(Number(l[0])), o.setMinutes(Number(l[1])), o.setSeconds(Number(l[2])), t(o, n);
2169
+ i.setHours(Number(l[0])), i.setMinutes(Number(l[1])), i.setSeconds(Number(l[2])), t(i, n);
2141
2170
  }, e), Ds = (t, e) => O((s, n) => {
2142
2171
  if (s.value === "") {
2143
2172
  t(null, n);
@@ -2148,31 +2177,34 @@ const Dt = /* @__PURE__ */ new Set([
2148
2177
  t(null, n);
2149
2178
  return;
2150
2179
  }
2151
- const i = r[0].split("-"), o = new Date(
2152
- Number(i[0]),
2153
- Number(i[1]) - 1,
2154
- Number(i[2])
2180
+ const o = r[0].split("-"), i = new Date(
2181
+ Number(o[0]),
2182
+ Number(o[1]) - 1,
2183
+ Number(o[2])
2155
2184
  ), l = r[1].split(":");
2156
- o.setHours(Number(l[0] ?? 0)), o.setMinutes(Number(l[1] ?? 0)), o.setSeconds(Number(l[2] ?? 0)), t(o, n);
2157
- }, e), Ps = (t, e) => O((s, n) => {
2185
+ i.setHours(Number(l[0] ?? 0)), i.setMinutes(Number(l[1] ?? 0)), i.setSeconds(Number(l[2] ?? 0)), t(i, n);
2186
+ }, e), xs = (t, e) => O((s, n) => {
2158
2187
  t(s.checked, n);
2159
- }, e), xs = (t, e = "input") => E(V.valueAsDate(t), se[e](Ft(t.set))), Ls = (t, e = "input") => E(V.valueAsDate(t), se[e](Bt(t.set))), Os = (t, e = "input") => E(V.valueAsNumber(t), se[e](qt(t.set))), Ms = (t, e = "input") => E(V.value(t), se[e](jt(t.set))), ks = (t) => E(V.checked(t), Rt(t.set)), fe = (t, e, s) => g.is(t) ? e(t) : s(t), Wt = (t, e, s) => {
2188
+ }, e), Ls = (t, e = "input") => E(V.valueAsDate(t), se[e](Ft(t.set))), Ps = (t, e = "input") => E(V.valueAsDate(t), se[e](Bt(t.set))), Os = (t, e = "input") => E(V.valueAsNumber(t), se[e](qt(t.set))), Ms = (t, e = "input") => E(V.value(t), se[e](jt(t.set))), ks = (t) => E(V.checked(t), Rt(t.set)), de = (t, e, s) => g.is(t) ? e(t) : s(t), Wt = (t, e, s) => {
2160
2189
  const n = t.makeRef();
2161
2190
  let r = () => {
2162
- }, i = null;
2163
- const o = e.on((l) => {
2164
- i?.dispose(), r(!0), i = new j(), r = L(
2165
- i,
2166
- () => f(s(l))(n)
2167
- );
2168
- });
2191
+ }, o = null;
2192
+ const i = e.on(
2193
+ (l) => {
2194
+ o?.dispose(), r(!0), o = new j(), r = P(
2195
+ o,
2196
+ () => f(s(l))(n)
2197
+ );
2198
+ },
2199
+ { noAutoDispose: !0 }
2200
+ );
2169
2201
  return (l) => {
2170
- i?.dispose(), r(l), o(), n.clear(l);
2202
+ o?.dispose(), r(l), i(), n.clear(l);
2171
2203
  };
2172
2204
  }, ne = (t, e) => {
2173
2205
  function s(r) {
2174
- return (i) => {
2175
- const o = i.makeRef();
2206
+ return (o) => {
2207
+ const i = o.makeRef();
2176
2208
  let l, c;
2177
2209
  const a = r.map((p) => Object.keys(p)[0]);
2178
2210
  let u;
@@ -2180,19 +2212,19 @@ const Dt = /* @__PURE__ */ new Set([
2180
2212
  if (p !== u) {
2181
2213
  u = p, c?.dispose(), l?.(!0), c = r.map((m) => m[p]);
2182
2214
  const d = e[p](c);
2183
- l = f(d)(o);
2215
+ l = f(d)(i);
2184
2216
  }
2185
2217
  });
2186
2218
  return (p) => {
2187
- c?.dispose(), h(), o.clear(p), l?.(p);
2219
+ c?.dispose(), h(), i.clear(p), l?.(p);
2188
2220
  };
2189
2221
  };
2190
2222
  }
2191
2223
  function n(r) {
2192
- const i = Object.keys(r)[0];
2193
- return f(e[i](K(r[i])));
2224
+ const o = Object.keys(r)[0];
2225
+ return f(e[o](K(r[o])));
2194
2226
  }
2195
- return fe(t, s, n);
2227
+ return de(t, s, n);
2196
2228
  }, qe = (t, e, s) => ne(
2197
2229
  y.map(t, (n) => ({ [n[e]]: n })),
2198
2230
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -2206,7 +2238,7 @@ const Dt = /* @__PURE__ */ new Set([
2206
2238
  ), $s = (t, e = {}) => (s) => {
2207
2239
  const n = e?.firstSeparator ?? t, r = e?.lastSeparator ?? t;
2208
2240
  return Ut(
2209
- s.map((i) => i.isFirst ? "first" : i.isLast ? "last" : "other"),
2241
+ s.map((o) => o.isFirst ? "first" : o.isLast ? "last" : "other"),
2210
2242
  {
2211
2243
  first: n,
2212
2244
  last: r,
@@ -2216,13 +2248,13 @@ const Dt = /* @__PURE__ */ new Set([
2216
2248
  }, Rs = (t) => (e) => (e.appendOrInsert(t), (s) => {
2217
2249
  s && U(t);
2218
2250
  }), Vs = (t, e, s) => {
2219
- function n(i) {
2220
- return (o) => {
2221
- const l = o.makeRef();
2251
+ function n(o) {
2252
+ return (i) => {
2253
+ const l = i.makeRef();
2222
2254
  let c = () => {
2223
2255
  }, a = !1, u = null;
2224
- const h = i.on((p) => {
2225
- p == null ? (c(!0), c = f(s?.())(l), a = !1, u?.dispose(), u = null) : a ? u.set(p) : (u = T(p), c(!0), c = f(e(u))(
2256
+ const h = o.on((p) => {
2257
+ p == null ? (c(!0), c = f(s?.())(l), a = !1, u?.dispose(), u = null) : a ? u.set(p) : (u = A(p), c(!0), c = f(e(u))(
2226
2258
  l
2227
2259
  ), a = !0);
2228
2260
  });
@@ -2231,14 +2263,14 @@ const Dt = /* @__PURE__ */ new Set([
2231
2263
  };
2232
2264
  };
2233
2265
  }
2234
- function r(i) {
2235
- if (i == null) {
2236
- const o = s?.();
2237
- return o != null ? f(o) : C;
2266
+ function r(o) {
2267
+ if (o == null) {
2268
+ const i = s?.();
2269
+ return i != null ? f(i) : C;
2238
2270
  }
2239
- return f(e(K(i)));
2271
+ return f(e(K(o)));
2240
2272
  }
2241
- return fe(
2273
+ return de(
2242
2274
  t,
2243
2275
  n,
2244
2276
  r
@@ -2251,17 +2283,17 @@ const Dt = /* @__PURE__ */ new Set([
2251
2283
  return (s != null ? f(s?.()) : C)(
2252
2284
  r
2253
2285
  );
2254
- const o = t.map(() => null), l = t.map(
2286
+ const i = t.map(() => null), l = t.map(
2255
2287
  (d) => g.is(d) ? d.value != null : d != null
2256
2288
  );
2257
2289
  let c = null;
2258
- const a = T(l.every((d) => d)), u = (d, m) => {
2290
+ const a = A(l.every((d) => d)), u = (d, m) => {
2259
2291
  if (d.value != null) {
2260
- if (o[m] == null) {
2261
- const w = T(d.value);
2262
- o[m] = w;
2292
+ if (i[m] == null) {
2293
+ const w = A(d.value);
2294
+ i[m] = w;
2263
2295
  } else
2264
- o[m].value = d.value;
2296
+ i[m].value = d.value;
2265
2297
  l[m] = !0;
2266
2298
  } else
2267
2299
  l[m] = !1;
@@ -2269,8 +2301,8 @@ const Dt = /* @__PURE__ */ new Set([
2269
2301
  let h = t.length - 1;
2270
2302
  const p = t.map((d, m) => {
2271
2303
  if (!g.is(d)) {
2272
- const w = T(d);
2273
- return o[m] = w, () => {
2304
+ const w = A(d);
2305
+ return i[m] = w, () => {
2274
2306
  };
2275
2307
  }
2276
2308
  return d.on(() => {
@@ -2278,16 +2310,16 @@ const Dt = /* @__PURE__ */ new Set([
2278
2310
  });
2279
2311
  });
2280
2312
  return a.on((d) => {
2281
- c?.(!0), c = null, d ? c = f(e(...o))(r) : c = f(s?.() ?? C)(r);
2313
+ c?.(!0), c = null, d ? c = f(e(...i))(r) : c = f(s?.() ?? C)(r);
2282
2314
  }), (d) => {
2283
- o.forEach((m) => m?.dispose()), a.dispose(), p.forEach((m) => m()), c?.(d), r.clear(d);
2315
+ i.forEach((m) => m?.dispose()), a.dispose(), p.forEach((m) => m()), c?.(d), r.clear(d);
2284
2316
  };
2285
- }, Fe = (t, e, s) => fe(
2317
+ }, Fe = (t, e, s) => de(
2286
2318
  t,
2287
2319
  (n) => (r) => Wt(
2288
2320
  r,
2289
2321
  n,
2290
- (i) => i ? e() : s?.()
2322
+ (o) => o ? e() : s?.()
2291
2323
  ),
2292
2324
  (n) => {
2293
2325
  if (n) {
@@ -2305,7 +2337,7 @@ const Dt = /* @__PURE__ */ new Set([
2305
2337
  return Be(t, (n) => {
2306
2338
  const r = new le(
2307
2339
  n.index,
2308
- n.total.map((i) => i - 1)
2340
+ n.total.map((o) => o - 1)
2309
2341
  );
2310
2342
  return E(
2311
2343
  f(e(n)),
@@ -2318,44 +2350,44 @@ const Dt = /* @__PURE__ */ new Set([
2318
2350
  });
2319
2351
  if (g.is(t))
2320
2352
  return (n) => {
2321
- const r = t.derive(), i = n.makeRef(), o = [], l = [];
2353
+ const r = t.derive(), o = n.makeRef(), i = [], l = [];
2322
2354
  return r.on((c) => {
2323
- const a = o.splice(c), u = l.splice(c);
2355
+ const a = i.splice(c), u = l.splice(c);
2324
2356
  for (const h of u)
2325
2357
  h.dispose();
2326
2358
  for (const h of a)
2327
2359
  h(!0);
2328
- for (let h = o.length; h < c; h++) {
2360
+ for (let h = i.length; h < c; h++) {
2329
2361
  const p = new le(h, r), d = new j();
2330
- l.push(d), o.push(
2331
- L(d, () => f(e(p))(i))
2362
+ l.push(d), i.push(
2363
+ P(d, () => f(e(p))(o))
2332
2364
  );
2333
2365
  }
2334
2366
  }), (c) => {
2335
2367
  for (const a of l)
2336
2368
  a.dispose();
2337
2369
  l.length = 0, r.dispose();
2338
- for (const a of o)
2370
+ for (const a of i)
2339
2371
  a(c);
2340
- o.length = 0, i.clear(c);
2372
+ i.length = 0, o.clear(c);
2341
2373
  };
2342
2374
  };
2343
2375
  {
2344
2376
  const n = K(t);
2345
2377
  return E(
2346
- ...Array.from({ length: t }, (r, i) => i).map((r) => {
2347
- const i = new le(r, n);
2348
- return f(e(i));
2378
+ ...Array.from({ length: t }, (r, o) => o).map((r) => {
2379
+ const o = new le(r, n);
2380
+ return f(e(o));
2349
2381
  })
2350
2382
  );
2351
2383
  }
2352
2384
  }, Fs = (t, e, s) => {
2353
- const n = y.map(t, (i) => i.length), r = y.toSignal(t);
2385
+ const n = y.map(t, (o) => o.length), r = y.toSignal(t);
2354
2386
  return Be(
2355
2387
  n,
2356
- (i) => {
2357
- const o = r.map((l) => l[i.index]);
2358
- return f(e(o, i));
2388
+ (o) => {
2389
+ const i = r.map((l) => l[o.index]);
2390
+ return f(e(i, o));
2359
2391
  },
2360
2392
  s
2361
2393
  );
@@ -2367,13 +2399,13 @@ const Dt = /* @__PURE__ */ new Set([
2367
2399
  return (n) => {
2368
2400
  n = n.makeRef();
2369
2401
  const r = s.map((l) => f(e(l)));
2370
- let i = () => {
2402
+ let o = () => {
2371
2403
  };
2372
- const o = r.on((l) => {
2373
- i(!0), i = l(n);
2404
+ const i = r.on((l) => {
2405
+ o(!0), o = l(n);
2374
2406
  });
2375
2407
  return (l) => {
2376
- o(), i(l);
2408
+ i(), o(l);
2377
2409
  };
2378
2410
  };
2379
2411
  }
@@ -2388,7 +2420,7 @@ const Dt = /* @__PURE__ */ new Set([
2388
2420
  whenEmpty: () => s()
2389
2421
  }
2390
2422
  ), Us = (t, e) => (s) => {
2391
- const n = s.makePortal(t), r = he(f(e), n);
2423
+ const n = s.makePortal(t), r = fe(f(e), n);
2392
2424
  return () => r(!0);
2393
2425
  }, W = /* @__PURE__ */ new Map(), Jt = (t) => ({
2394
2426
  mark: at(`Probe(${t.description})`),
@@ -2399,15 +2431,15 @@ const Dt = /* @__PURE__ */ new Set([
2399
2431
  };
2400
2432
  if (W.has(t))
2401
2433
  throw new Error(`Probe already exists: ${t.description}`);
2402
- const r = setTimeout(() => n("timeout"), s), i = { counter: 0, timeoutId: r };
2403
- return W.set(t, i), {
2434
+ const r = setTimeout(() => n("timeout"), s), o = { counter: 0, timeoutId: r };
2435
+ return W.set(t, o), {
2404
2436
  value: () => {
2405
2437
  clearTimeout(r);
2406
2438
  const l = W.get(t);
2407
2439
  l != null && --l.counter === 0 && n("resolved");
2408
2440
  },
2409
2441
  dispose: () => n("disposed"),
2410
- onUse: () => i.counter++
2442
+ onUse: () => o.counter++
2411
2443
  };
2412
2444
  }
2413
2445
  }), Gs = Jt(Symbol("GlobalProbe")), Xt = (t, e) => (s) => {
@@ -2416,11 +2448,11 @@ const Dt = /* @__PURE__ */ new Set([
2416
2448
  r && s.setStyle(t, n);
2417
2449
  };
2418
2450
  }, Yt = (t, e) => (s) => {
2419
- const n = s.getStyle(t), r = e.on((i) => s.setStyle(t, i));
2420
- return (i) => {
2421
- r(), i && s.setStyle(t, n);
2451
+ const n = s.getStyle(t), r = e.on((o) => s.setStyle(t, o));
2452
+ return (o) => {
2453
+ r(), o && s.setStyle(t, n);
2422
2454
  };
2423
- }, me = (t, e) => g.is(e) ? Yt(t, e) : Xt(t, e), Js = new Proxy({}, {
2455
+ }, ye = (t, e) => g.is(e) ? Yt(t, e) : Xt(t, e), Js = new Proxy({}, {
2424
2456
  /**
2425
2457
  * Creates a renderable component for the specified `style` property.
2426
2458
  *
@@ -2429,7 +2461,7 @@ const Dt = /* @__PURE__ */ new Set([
2429
2461
  * @returns The renderable component for the specified attribute.
2430
2462
  *
2431
2463
  */
2432
- get: (t, e) => e === "variable" ? (s, n) => me(s, n) : (s) => me(e, s)
2464
+ get: (t, e) => e === "variable" ? (s, n) => ye(s, n) : (s) => ye(e, s)
2433
2465
  }), Qt = (t) => (e) => {
2434
2466
  if (e.isBrowser()) {
2435
2467
  const s = t(e);
@@ -2451,11 +2483,11 @@ const Dt = /* @__PURE__ */ new Set([
2451
2483
  return () => {
2452
2484
  };
2453
2485
  }, Zs = (t) => (e) => {
2454
- const s = new j(), n = L(s, () => f(t(s))(e));
2486
+ const s = new j(), n = P(s, () => f(t(s))(e));
2455
2487
  return (r) => {
2456
2488
  s.dispose(), n(r);
2457
2489
  };
2458
- }, de = (t) => (e) => {
2490
+ }, pe = (t) => (e) => {
2459
2491
  let s = e;
2460
2492
  function n() {
2461
2493
  return s;
@@ -2463,22 +2495,22 @@ const Dt = /* @__PURE__ */ new Set([
2463
2495
  function r(l) {
2464
2496
  s = l;
2465
2497
  }
2466
- const i = [], o = t({
2498
+ const o = [], i = t({
2467
2499
  use: ({ mark: l }) => {
2468
2500
  const { value: c, onUse: a } = n().getProvider(l);
2469
2501
  return a?.(), c;
2470
2502
  },
2471
2503
  set: ({ mark: l, create: c }, a) => {
2472
2504
  const { value: u, dispose: h, onUse: p } = c(a, n());
2473
- i.push(h), r(n().setProvider(l, u, p));
2505
+ o.push(h), r(n().setProvider(l, u, p));
2474
2506
  }
2475
2507
  });
2476
- return o == null ? () => {
2508
+ return i == null ? () => {
2477
2509
  } : E(
2478
- f(o),
2479
- Gt(() => i.forEach((l) => l()))
2510
+ f(i),
2511
+ Gt(() => o.forEach((l) => l()))
2480
2512
  )(n());
2481
- }, zs = (t, e, s) => de(({ set: n }) => (n(t, e), s())), Ks = (t, e) => de(({ use: s }) => e(s(t))), en = (...t) => (e) => de(({ use: s }) => {
2513
+ }, zs = (t, e, s) => pe(({ set: n }) => (n(t, e), s())), Ks = (t, e) => pe(({ use: s }) => e(s(t))), en = (...t) => (e) => pe(({ use: s }) => {
2482
2514
  const n = t.map(s);
2483
2515
  return e(...n);
2484
2516
  });
@@ -2487,8 +2519,8 @@ export {
2487
2519
  Es as Async,
2488
2520
  kt as Attr,
2489
2521
  ks as BindChecked,
2490
- xs as BindDate,
2491
- Ls as BindDateTime,
2522
+ Ls as BindDate,
2523
+ Ps as BindDateTime,
2492
2524
  Os as BindNumber,
2493
2525
  Ms as BindText,
2494
2526
  $ as BrowserContext,
@@ -2514,7 +2546,7 @@ export {
2514
2546
  Ct as HeadlessText,
2515
2547
  Bs as MapSignal,
2516
2548
  $t as MathAttr,
2517
- Ts as MathEl,
2549
+ As as MathEl,
2518
2550
  be as MemoryStore,
2519
2551
  Ws as NotEmpty,
2520
2552
  Rt as OnChecked,
@@ -2528,7 +2560,7 @@ export {
2528
2560
  Us as Portal,
2529
2561
  Z as Prop,
2530
2562
  zs as Provide,
2531
- Pe as ProviderNotFoundError,
2563
+ xe as ProviderNotFoundError,
2532
2564
  ut as RenderingError,
2533
2565
  Be as Repeat,
2534
2566
  Nt as SVGAttr,
@@ -2545,13 +2577,13 @@ export {
2545
2577
  Xs as WithCtx,
2546
2578
  Ys as WithElement,
2547
2579
  Qs as WithHeadlessCtx,
2548
- de as WithProvider,
2580
+ pe as WithProvider,
2549
2581
  Zs as WithScope,
2550
- xe as _NODE_PLACEHOLDER_ATTR,
2582
+ Le as _NODE_PLACEHOLDER_ATTR,
2551
2583
  ct as _getSelfOrParentElement,
2552
2584
  De as _isElement,
2553
2585
  lt as _makeGetter,
2554
- ot as _makeSetter,
2586
+ it as _makeSetter,
2555
2587
  U as _removeDOMNode,
2556
2588
  He as _signalText,
2557
2589
  Ie as _staticText,
@@ -2563,13 +2595,13 @@ export {
2563
2595
  as as coalesce,
2564
2596
  z as computed,
2565
2597
  ee as computedOf,
2566
- it as computedRecord,
2598
+ ot as computedRecord,
2567
2599
  gs as dataAttr,
2568
- is as delaySignal,
2600
+ os as delaySignal,
2569
2601
  Se as effect,
2570
2602
  Qe as effectOf,
2571
2603
  Vt as emit,
2572
- Ps as emitChecked,
2604
+ xs as emitChecked,
2573
2605
  O as emitTarget,
2574
2606
  jt as emitValue,
2575
2607
  Ft as emitValueAsDate,
@@ -2578,10 +2610,10 @@ export {
2578
2610
  Ds as emitValueAsNullableDateTime,
2579
2611
  qt as emitValueAsNumber,
2580
2612
  et as endInterpolate,
2581
- ye as getCurrentScope,
2613
+ ue as getCurrentScope,
2582
2614
  zt as getParentScope,
2583
2615
  Zt as getScopeStack,
2584
- ue as getWindow,
2616
+ he as getWindow,
2585
2617
  tt as guessInterpolate,
2586
2618
  ws as html,
2587
2619
  bs as input,
@@ -2592,16 +2624,16 @@ export {
2592
2624
  ts as localStorageProp,
2593
2625
  Jt as makeProbe,
2594
2626
  at as makeProviderMark,
2595
- As as math,
2627
+ Ts as math,
2596
2628
  Ss as mathAttr,
2597
2629
  rs as merge,
2598
2630
  se as on,
2599
2631
  Ue as popScope,
2600
- os as previousSignal,
2601
- T as prop,
2632
+ is as previousSignal,
2633
+ A as prop,
2602
2634
  We as pushScope,
2603
2635
  us as render,
2604
- he as renderWithContext,
2636
+ fe as renderWithContext,
2605
2637
  f as renderableOfTNode,
2606
2638
  ds as restoreTempoPlaceholders,
2607
2639
  hs as runHeadless,
@@ -2614,6 +2646,6 @@ export {
2614
2646
  Js as style,
2615
2647
  vs as svg,
2616
2648
  ys as svgAttr,
2617
- oe as untracked,
2618
- L as withScope
2649
+ ie as untracked,
2650
+ P as withScope
2619
2651
  };