@tempots/dom 34.3.0 → 35.0.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
@@ -5,11 +5,11 @@ function Ke(t, e) {
5
5
  render: e
6
6
  };
7
7
  }
8
- function Se(t) {
8
+ function _e(t) {
9
9
  return t != null && t !== !1 && t !== 0 && t !== "";
10
10
  }
11
11
  function Ye(t) {
12
- return !Se(t);
12
+ return !_e(t);
13
13
  }
14
14
  function Xe(t) {
15
15
  return t == null;
@@ -101,7 +101,7 @@ const w = {
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, Se),
104
+ truthy: (t) => w.map(t, _e),
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.
@@ -129,20 +129,20 @@ const w = {
129
129
  n,
130
130
  s
131
131
  );
132
- }, ss = (t) => {
132
+ }, Yt = (t) => {
133
133
  const e = Object.keys(t);
134
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
138
  const n = t.filter((r) => y.is(r));
139
- return _e(
139
+ return Ae(
140
140
  () => e(...t.map(w.get)),
141
141
  n,
142
142
  s
143
143
  );
144
144
  };
145
- class q {
145
+ class J {
146
146
  _signals = /* @__PURE__ */ new Set();
147
147
  _callbacks = [];
148
148
  _disposed = !1;
@@ -188,7 +188,8 @@ class q {
188
188
  try {
189
189
  e();
190
190
  } catch (s) {
191
- console.error("Error in disposal callback:", s);
191
+ const n = s instanceof Error ? s.message : String(s);
192
+ console.error("Error in disposal callback:", n);
192
193
  }
193
194
  this._callbacks.length = 0;
194
195
  for (const e of this._signals)
@@ -243,7 +244,7 @@ class q {
243
244
  * @public
244
245
  */
245
246
  effect(e, s, n) {
246
- return M(this, () => _e(e, s, n));
247
+ return k(this, () => Ae(e, s, n));
247
248
  }
248
249
  /**
249
250
  * Creates a computed signal with curried signature and tracks it in this scope.
@@ -268,36 +269,36 @@ class q {
268
269
  * @public
269
270
  */
270
271
  effectOf(...e) {
271
- return (s, n) => M(this, () => Ze(...e)(s, n));
272
+ return (s, n) => k(this, () => Ze(...e)(s, n));
272
273
  }
273
274
  }
274
- const A = [], et = (t) => {
275
- A.push(t);
275
+ const T = [], et = (t) => {
276
+ T.push(t);
276
277
  }, tt = () => {
277
- if (A.length === 0)
278
+ if (T.length === 0)
278
279
  throw new Error("Cannot pop from empty scope stack");
279
- A.pop();
280
- }, pe = () => A[A.length - 1] ?? null, ns = () => A, rs = () => A[A.length - 2] ?? null, M = (t, e) => {
280
+ T.pop();
281
+ }, pe = () => T[T.length - 1] ?? null, Xt = () => T, Qt = () => T[T.length - 2] ?? null, k = (t, e) => {
281
282
  et(t);
282
283
  try {
283
284
  return e();
284
285
  } finally {
285
286
  tt();
286
287
  }
287
- }, os = (t) => {
288
- const e = new q();
288
+ }, Zt = (t) => {
289
+ const e = new J();
289
290
  try {
290
- return M(e, () => t(e));
291
+ return k(e, () => t(e));
291
292
  } finally {
292
293
  e.dispose();
293
294
  }
294
295
  }, ce = (t) => {
295
- const e = A.slice();
296
- A.length = 0;
296
+ const e = T.slice();
297
+ T.length = 0;
297
298
  try {
298
299
  return t();
299
300
  } finally {
300
- A.length = 0, A.push(...e);
301
+ T.length = 0, T.push(...e);
301
302
  }
302
303
  };
303
304
  class y {
@@ -912,7 +913,7 @@ class se extends y {
912
913
  const ne = (t, e, s = (n, r) => n === r) => {
913
914
  const n = new R(t, s);
914
915
  return e.forEach((r) => r.setDerivative(n)), n;
915
- }, _e = (t, e, s = {}) => {
916
+ }, Ae = (t, e, s = {}) => {
916
917
  let n = s.once ? () => {
917
918
  o(), t();
918
919
  } : t;
@@ -933,14 +934,14 @@ const ne = (t, e, s = (n, r) => n === r) => {
933
934
  }, re = (t, e = (s, n) => s === n) => new y(t, e), oe = () => (
934
935
  /* c8 ignore next */
935
936
  typeof window < "u" ? window : void 0
936
- ), nt = (t, e, s) => t + (e - t) * s, we = 97, rt = (t, e, s) => {
937
+ ), nt = (t, e, s) => t + (e - t) * s, ve = 97, rt = (t, e, s) => {
937
938
  const n = Math.max(t.length, e.length);
938
939
  let r = "";
939
940
  for (let o = 0; o < n; o++) {
940
941
  let i = t.charCodeAt(o);
941
- isNaN(i) && (i = we);
942
+ isNaN(i) && (i = ve);
942
943
  let l = e.charCodeAt(o);
943
- isNaN(l) && (l = we), r += String.fromCharCode(i + (l - i) * s);
944
+ isNaN(l) && (l = ve), r += String.fromCharCode(i + (l - i) * s);
944
945
  }
945
946
  return r;
946
947
  }, 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;
@@ -962,7 +963,7 @@ class Te {
962
963
  };
963
964
  }
964
965
  let ue = null, he = null;
965
- const at = () => (ue || (ue = new Te()), ue), ct = () => (he || (he = new Te()), he), Ae = ({
966
+ const at = () => (ue || (ue = new Te()), ue), ct = () => (he || (he = new Te()), he), Ee = ({
966
967
  key: t,
967
968
  defaultValue: e,
968
969
  store: s,
@@ -977,15 +978,15 @@ const at = () => (ue || (ue = new Te()), ue), ct = () => (he || (he = new Te()),
977
978
  const u = s.getItem(c), d = new se(
978
979
  u != null ? i(r(u)) : typeof e == "function" ? e() : e,
979
980
  o
980
- ), p = oe(), h = l && typeof p?.BroadcastChannel == "function";
981
- let f = !1, v = null, S = null;
981
+ ), f = oe(), h = l && typeof f?.BroadcastChannel == "function";
982
+ let p = !1, v = null, S = null;
982
983
  const b = (_) => {
983
984
  if (!h) return null;
984
- const I = `tempo:storedProp:${_}`, L = new p.BroadcastChannel(I), H = `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`, O = (J) => {
985
- const C = J.data;
985
+ const I = `tempo:storedProp:${_}`, P = new f.BroadcastChannel(I), H = `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`, O = (X) => {
986
+ const C = X.data;
986
987
  if (!(C == null || typeof C != "object" || C.key !== _ || typeof C.value != "string" || C.sourceId != null && C.sourceId === H))
987
988
  try {
988
- f = !0;
989
+ p = !0;
989
990
  const ae = i(r(C.value));
990
991
  d.set(ae);
991
992
  } catch (ae) {
@@ -994,23 +995,23 @@ const at = () => (ue || (ue = new Te()), ue), ct = () => (he || (he = new Te()),
994
995
  ae
995
996
  );
996
997
  } finally {
997
- f = !1;
998
+ p = !1;
998
999
  }
999
1000
  };
1000
- return L.addEventListener("message", O), d.onDispose(() => {
1001
- L?.removeEventListener("message", O), L?.close();
1002
- }), { channel: L, instanceId: H, handleMessage: O };
1003
- }, x = b(c);
1004
- x && (v = x.channel, S = x.instanceId);
1005
- const U = (_) => {
1001
+ return P.addEventListener("message", O), d.onDispose(() => {
1002
+ P?.removeEventListener("message", O), P?.close();
1003
+ }), { channel: P, instanceId: H, handleMessage: O };
1004
+ }, L = b(c);
1005
+ L && (v = L.channel, S = L.instanceId);
1006
+ const Y = (_) => {
1006
1007
  const I = c;
1007
1008
  if (I === _) return;
1008
- const L = d.get(), H = n(L);
1009
+ const P = d.get(), H = n(P);
1009
1010
  if (s.setItem(I, H), v != null && (v.close(), v = null, S = null), c = _, a === "load") {
1010
- const J = s.getItem(_);
1011
- if (J != null)
1011
+ const X = s.getItem(_);
1012
+ if (X != null)
1012
1013
  try {
1013
- const C = i(r(J));
1014
+ const C = i(r(X));
1014
1015
  d.set(C);
1015
1016
  } catch (C) {
1016
1017
  console.warn(
@@ -1024,49 +1025,49 @@ const at = () => (ue || (ue = new Te()), ue), ct = () => (he || (he = new Te()),
1024
1025
  const O = b(_);
1025
1026
  O && (v = O.channel, S = O.instanceId);
1026
1027
  };
1027
- return y.is(t) && d.onDispose(t.on(U)), d.on((_, I) => {
1028
- const L = n(_);
1029
- s.setItem(c, L), v != null && !f && I !== void 0 && S != null && v.postMessage({
1028
+ return y.is(t) && d.onDispose(t.on(Y)), d.on((_, I) => {
1029
+ const P = n(_);
1030
+ s.setItem(c, P), v != null && !p && I !== void 0 && S != null && v.postMessage({
1030
1031
  key: c,
1031
- value: L,
1032
+ value: P,
1032
1033
  sourceId: S
1033
1034
  });
1034
1035
  }), d;
1035
- }, is = (t) => {
1036
+ }, es = (t) => {
1036
1037
  const e = oe()?.localStorage, s = e && typeof e.getItem == "function" ? e : at();
1037
- return Ae({
1038
+ return Ee({
1038
1039
  ...t,
1039
1040
  store: s
1040
1041
  });
1041
- }, ls = (t) => {
1042
+ }, ts = (t) => {
1042
1043
  const e = oe()?.sessionStorage, s = e && typeof e.getItem == "function" ? e : ct();
1043
- return Ae({
1044
+ return Ee({
1044
1045
  ...t,
1045
1046
  store: s
1046
1047
  });
1047
1048
  };
1048
- function ve(t) {
1049
+ function be(t) {
1049
1050
  return typeof requestAnimationFrame == "function" ? requestAnimationFrame(t) : setTimeout(t, 0);
1050
1051
  }
1051
1052
  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, a = t, c = e(), u = performance.now(), d = null, p = !0;
1054
- const h = new R(e, i), f = D(t, i);
1055
- f.onDispose(() => {
1053
+ const r = n?.duration ?? 300, o = n?.easing ?? ((b) => b), i = n?.equals ?? ((b, L) => b === L);
1054
+ let l = n?.interpolate, a = t, c = e(), u = performance.now(), d = null, f = !0;
1055
+ const h = new R(e, i), p = D(t, i);
1056
+ p.onDispose(() => {
1056
1057
  d !== null && cancelAnimationFrame(d);
1057
- }), f.onDispose(h.dispose), s.forEach((b) => {
1058
- b.setDerivative(h), b.onDispose(f.dispose);
1058
+ }), p.onDispose(h.dispose), s.forEach((b) => {
1059
+ b.setDerivative(h), b.onDispose(p.dispose);
1059
1060
  });
1060
1061
  const v = (b) => {
1061
- c = b, u = performance.now(), a = f.value, p && (p = !1, d = ve(S));
1062
+ c = b, u = performance.now(), a = p.value, f && (f = !1, d = be(S));
1062
1063
  }, S = () => {
1063
- const b = (performance.now() - u) / w.get(r), x = o(b);
1064
+ const b = (performance.now() - u) / w.get(r), L = o(b);
1064
1065
  l == null && (l = lt(a));
1065
- let U = l(a, c, x);
1066
- b >= 1 ? (p = !0, U = c) : d = ve(S), f.set(U);
1066
+ let Y = l(a, c, L);
1067
+ b >= 1 ? (f = !0, Y = c) : d = be(S), p.set(Y);
1067
1068
  };
1068
- return h.on(v), f;
1069
- }, as = (t, e) => {
1069
+ return h.on(v), p;
1070
+ }, ss = (t, e) => {
1070
1071
  const { initialValue: s, ...n } = e ?? {};
1071
1072
  return ut(
1072
1073
  /* c8 ignore next 2 */
@@ -1083,7 +1084,7 @@ const ut = (t, e, s, n) => {
1083
1084
  r[o] = w.get(t[o]);
1084
1085
  return e(r);
1085
1086
  }, s);
1086
- }, cs = (t) => ht(t, (e) => e), us = (t, e) => {
1087
+ }, ns = (t) => ht(t, (e) => e), rs = (t, e) => {
1087
1088
  const s = D(t.get());
1088
1089
  let n = null;
1089
1090
  const r = t.on(
@@ -1100,28 +1101,28 @@ const ut = (t, e, s, n) => {
1100
1101
  return s.onDispose(() => {
1101
1102
  r(), n != null && clearTimeout(n);
1102
1103
  }), s;
1103
- }, hs = (t) => {
1104
+ }, os = (t) => {
1104
1105
  let e;
1105
1106
  return t.map((s) => {
1106
1107
  const n = e;
1107
1108
  return e = s, n;
1108
1109
  });
1109
- }, ds = ({
1110
+ }, is = ({
1110
1111
  size: t = void 0,
1111
1112
  signal: e
1112
1113
  }) => {
1113
1114
  const s = [];
1114
1115
  return e.map((n) => (s.push(n), t != null && s.length > t && s.shift(), s.slice()));
1115
- }, ps = (t) => (...e) => te(
1116
+ }, ls = (t) => (...e) => te(
1116
1117
  t,
1117
1118
  ...e
1118
1119
  )((s, ...n) => s(...n));
1119
- function fs(...t) {
1120
+ function as(...t) {
1120
1121
  return te(...t)((...e) => {
1121
1122
  for (const s of e) if (s != null) return s;
1122
1123
  });
1123
1124
  }
1124
- const gs = (t, {
1125
+ const cs = (t, {
1125
1126
  channel: e,
1126
1127
  serialize: s = JSON.stringify,
1127
1128
  deserialize: n = JSON.parse,
@@ -1135,35 +1136,35 @@ const gs = (t, {
1135
1136
  `tempo:syncProp:${e}`
1136
1137
  ), l = `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`;
1137
1138
  let a = !1;
1138
- const c = (p) => {
1139
- const h = p.data;
1139
+ const c = (f) => {
1140
+ const h = f.data;
1140
1141
  if (!(h == null || typeof h != "object" || typeof h.value != "string" || h.sourceId != null && h.sourceId === l))
1141
1142
  try {
1142
1143
  a = !0;
1143
- const f = n(h.value);
1144
- r(t.get(), f) || t.set(f);
1145
- } catch (f) {
1144
+ const p = n(h.value);
1145
+ r(t.get(), p) || t.set(p);
1146
+ } catch (p) {
1146
1147
  console.warn(
1147
1148
  `Failed to sync prop for channel "${e}" via BroadcastChannel`,
1148
- f
1149
+ p
1149
1150
  );
1150
1151
  } finally {
1151
1152
  a = !1;
1152
1153
  }
1153
1154
  };
1154
1155
  i.addEventListener("message", c);
1155
- const u = t.on((p, h) => {
1156
- if (!a && h !== void 0 && !r(p, h))
1156
+ const u = t.on((f, h) => {
1157
+ if (!a && h !== void 0 && !r(f, h))
1157
1158
  try {
1158
- const f = s(p);
1159
+ const p = s(f);
1159
1160
  i.postMessage({
1160
- value: f,
1161
+ value: p,
1161
1162
  sourceId: l
1162
1163
  });
1163
- } catch (f) {
1164
+ } catch (p) {
1164
1165
  console.warn(
1165
1166
  `Failed to serialize prop for channel "${e}" via BroadcastChannel`,
1166
- f
1167
+ p
1167
1168
  );
1168
1169
  }
1169
1170
  }), d = () => {
@@ -1219,35 +1220,36 @@ class de {
1219
1220
  this.#e?.dispose(), this.#e = void 0;
1220
1221
  };
1221
1222
  }
1222
- const Ee = /* @__PURE__ */ new Set(["checked", "disabled", "hidden"]), Ce = /* @__PURE__ */ new Set(["selected"]), De = /* @__PURE__ */ new Set([
1223
+ const Ce = /* @__PURE__ */ new Set(["checked", "disabled", "hidden"]), De = /* @__PURE__ */ new Set(["selected"]), xe = /* @__PURE__ */ new Set([
1223
1224
  "rowSpan",
1224
1225
  "colSpan",
1225
1226
  "tabIndex",
1226
1227
  "valueAsNumber"
1227
- ]), Pe = /* @__PURE__ */ new Set(["valueAsDate"]), xe = /* @__PURE__ */ new Set([
1228
+ ]), Le = /* @__PURE__ */ new Set(["valueAsDate"]), Pe = /* @__PURE__ */ new Set([
1228
1229
  "value",
1229
1230
  "textContent",
1230
1231
  "innerText",
1232
+ // ⚠️ XSS Warning: innerHTML and outerHTML can execute arbitrary scripts if set with untrusted input
1231
1233
  "innerHTML",
1232
1234
  "outerHTML",
1233
1235
  "className",
1234
1236
  "classList"
1235
- ]), dt = (t, e) => Ce.has(t) ? (s) => {
1237
+ ]), dt = (t, e) => De.has(t) ? (s) => {
1236
1238
  s == null || s !== !0 ? e.removeAttribute(t) : e.setAttribute(t, "");
1237
- } : Ee.has(t) ? (s) => {
1239
+ } : Ce.has(t) ? (s) => {
1238
1240
  s == null ? e[t] = null : e[t] = !!s;
1239
- } : De.has(t) ? (s) => {
1241
+ } : xe.has(t) ? (s) => {
1240
1242
  s == null ? e[t] = null : e[t] = Number(s);
1241
- } : Pe.has(t) ? (s) => {
1243
+ } : Le.has(t) ? (s) => {
1242
1244
  s == null ? e[t] = null : e[t] = s;
1243
- } : xe.has(t) ? (s) => {
1245
+ } : Pe.has(t) ? (s) => {
1244
1246
  s == null ? e[t] = null : e[t] = String(s);
1245
1247
  } : (s) => {
1246
1248
  s == null ? e.removeAttribute(t) : e.setAttribute(t, s);
1247
- }, 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), K = (t) => {
1249
+ }, ft = (t, e) => De.has(t) ? () => e.hasAttribute(t) : Ce.has(t) ? () => !!e[t] : xe.has(t) ? () => Number(e[t]) : Le.has(t) ? () => e[t] : Pe.has(t) ? () => String(e[t]) : () => e.getAttribute(t), ee = (t) => {
1248
1250
  const e = t;
1249
1251
  e && e.onblur && (e.onblur = null), !(!t || t.ownerDocument === void 0) && t.parentNode && t.parentNode.removeChild(t);
1250
- }, ft = (t) => Le(t) || Oe(t) ? t : t.parentElement, Le = (t) => t.nodeType === 1, Oe = (t) => t.nodeType === 11;
1252
+ }, pt = (t) => Oe(t) || ke(t) ? t : t.parentElement, Oe = (t) => t.nodeType === 1, ke = (t) => t.nodeType === 11;
1251
1253
  class Me extends Error {
1252
1254
  constructor(e) {
1253
1255
  super(`Provider not found: ${e.description}`);
@@ -1448,7 +1450,7 @@ class j {
1448
1450
  return { value: s, onUse: n };
1449
1451
  };
1450
1452
  clear = (e) => {
1451
- e && (this.reference !== void 0 ? K(this.reference) : K(this.element));
1453
+ e && (this.reference !== void 0 ? ee(this.reference) : ee(this.element));
1452
1454
  };
1453
1455
  /**
1454
1456
  * Adds classes to the element.
@@ -1518,27 +1520,27 @@ class j {
1518
1520
  */
1519
1521
  getStyle = (e) => this.element.style[e];
1520
1522
  makeAccessors = (e) => ({
1521
- get: pt(e, this.element),
1523
+ get: ft(e, this.element),
1522
1524
  set: dt(e, this.element)
1523
1525
  });
1524
1526
  getWindow = () => this.document.defaultView;
1525
1527
  }
1526
- const B = (t, e) => {
1527
- const s = new q(), n = M(s, () => t.render(e));
1528
+ const z = (t, e) => {
1529
+ const s = new J(), n = k(s, () => t.render(e));
1528
1530
  return (r = !0) => {
1529
1531
  s.dispose(), n(r);
1530
1532
  };
1531
- }, ms = (t, e, { doc: s, clear: n, disposeWithParent: r = !0, providers: o = {} } = {}) => {
1533
+ }, us = (t, e, { doc: s, clear: n, disposeWithParent: r = !0, providers: o = {} } = {}) => {
1532
1534
  const i = typeof e == "string" ? (s ?? document).querySelector(e) : e;
1533
1535
  if (i === null)
1534
1536
  throw new gt(
1535
1537
  `Cannot find element by selector for render: ${e}`
1536
1538
  );
1537
1539
  n !== !1 && (s ?? i.ownerDocument) != null && (i.nodeType === 1 || i.nodeType === 11) && (i.innerHTML = "");
1538
- const l = ft(i), a = Le(i) || Oe(i) ? void 0 : i, c = j.of(l, a, o), u = B(t, c);
1540
+ const l = pt(i), a = Oe(i) || ke(i) ? void 0 : i, c = j.of(l, a, o), u = z(t, c);
1539
1541
  let d;
1540
- return r && i.parentElement != null && (d = new MutationObserver((p) => {
1541
- p[0]?.removedNodes.forEach((h) => {
1542
+ return r && i.parentElement != null && (d = new MutationObserver((f) => {
1543
+ f[0]?.removedNodes.forEach((h) => {
1542
1544
  h === i && (d?.disconnect(), u(i.nodeType !== 1));
1543
1545
  });
1544
1546
  }), d.observe(i.parentElement, {
@@ -1548,16 +1550,16 @@ const B = (t, e) => {
1548
1550
  })), () => {
1549
1551
  d?.disconnect(), u(!0);
1550
1552
  };
1551
- }, ys = (t, {
1553
+ }, hs = (t, {
1552
1554
  startUrl: e = "https://example.com",
1553
1555
  selector: s,
1554
1556
  providers: n = {}
1555
1557
  } = {
1556
1558
  selector: "body"
1557
1559
  }) => {
1558
- const r = w.toSignal(e).deriveProp(), o = new Ne(s, void 0), i = new V(o, void 0, { currentURL: r }, n);
1560
+ const r = w.toSignal(e).deriveProp(), o = new $e(s, void 0), i = new V(o, void 0, { currentURL: r }, n);
1559
1561
  return {
1560
- clear: B(t(), i),
1562
+ clear: z(t(), i),
1561
1563
  root: o,
1562
1564
  currentURL: r
1563
1565
  };
@@ -1567,8 +1569,8 @@ class gt extends Error {
1567
1569
  super(e);
1568
1570
  }
1569
1571
  }
1570
- const ke = "data-tts-node", Y = "data-tts-class", X = "data-tts-style", Q = "data-tts-html", Z = "data-tts-text", ee = "data-tts-attrs";
1571
- class ws {
1572
+ const fe = "data-tts-node", B = "data-tts-class", q = "data-tts-style", F = "data-tts-html", W = "data-tts-text", U = "data-tts-attrs";
1573
+ class ds {
1572
1574
  /**
1573
1575
  * Selects elements from the headless environment.
1574
1576
  * @param selector - The selector to select elements from. The supported selectors are CSS selectors whose complexity depends on the adapter implementation.
@@ -1654,9 +1656,9 @@ class ws {
1654
1656
  getInnerHTML: c,
1655
1657
  setInnerHTML: u,
1656
1658
  getInnerText: d,
1657
- setInnerText: p
1659
+ setInnerText: f
1658
1660
  }) {
1659
- 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 = d, this.setInnerText = p;
1661
+ 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 = d, this.setInnerText = f;
1660
1662
  }
1661
1663
  /**
1662
1664
  * Sets the content of the root element from a HeadlessPortal. Generally this will be the same instance that is
@@ -1677,21 +1679,21 @@ class ws {
1677
1679
  if (r.hasChildren() && this.appendHTML(i, r.contentToHTML(s)), r.hasInnerHTML()) {
1678
1680
  if (s) {
1679
1681
  const l = this.getInnerHTML(i);
1680
- l != null && this.setAttribute(i, Q, l);
1682
+ l != null && this.setAttribute(i, F, l);
1681
1683
  }
1682
1684
  this.setInnerHTML(i, r.getInnerHTML());
1683
1685
  }
1684
1686
  if (r.hasInnerText()) {
1685
1687
  if (s) {
1686
1688
  const l = this.getInnerText(i);
1687
- l != null && this.setAttribute(i, Z, l);
1689
+ l != null && this.setAttribute(i, W, l);
1688
1690
  }
1689
1691
  this.setInnerText(i, r.getInnerText());
1690
1692
  }
1691
1693
  if (r.hasClasses()) {
1692
1694
  if (s) {
1693
1695
  const l = this.getClass(i);
1694
- l != null && this.setAttribute(i, Y, l);
1696
+ l != null && this.setAttribute(i, B, l);
1695
1697
  }
1696
1698
  this.setClass(i, r.getClasses().join(" "));
1697
1699
  }
@@ -1700,7 +1702,7 @@ class ws {
1700
1702
  const l = this.getStyles(i);
1701
1703
  Object.keys(l).length > 0 && this.setAttribute(
1702
1704
  i,
1703
- X,
1705
+ q,
1704
1706
  JSON.stringify(l)
1705
1707
  );
1706
1708
  }
@@ -1715,7 +1717,7 @@ class ws {
1715
1717
  u != null && a.push([c, u]);
1716
1718
  }), a.length > 0 && this.setAttribute(
1717
1719
  i,
1718
- ee,
1720
+ U,
1719
1721
  JSON.stringify(Object.fromEntries(a))
1720
1722
  );
1721
1723
  }
@@ -1727,47 +1729,48 @@ class ws {
1727
1729
  });
1728
1730
  };
1729
1731
  }
1730
- const mt = () => {
1731
- document.querySelectorAll(`[${ke}]`).forEach(K);
1732
+ const Ie = (t) => JSON.parse(t.replace(/&quot;/g, '"')), mt = (t) => {
1733
+ const e = t.getAttribute(B);
1734
+ t.removeAttribute(B), e != null && t.setAttribute("class", e);
1732
1735
  }, yt = (t) => {
1733
- const e = t.getAttribute(Y);
1734
- t.removeAttribute(Y), e != null && t.setAttribute("class", e);
1735
- }, wt = () => {
1736
- document.querySelectorAll(`[${Y}]`).forEach((e) => yt(e));
1736
+ const e = t.getAttribute(F);
1737
+ t.removeAttribute(F), e != null && (t.innerHTML = e);
1738
+ }, wt = (t) => {
1739
+ const e = t.getAttribute(W);
1740
+ t.removeAttribute(W), e != null && (t.innerText = e);
1737
1741
  }, vt = (t) => {
1738
- const e = t.getAttribute(Q);
1739
- t.removeAttribute(Q), e != null && (t.innerHTML = e);
1740
- }, bt = () => {
1741
- document.querySelectorAll(`[${Q}]`).forEach((e) => vt(e));
1742
- }, St = (t) => {
1743
- const e = t.getAttribute(Z);
1744
- t.removeAttribute(Z), e != null && (t.innerText = e);
1745
- }, _t = () => {
1746
- document.querySelectorAll(`[${Z}]`).forEach((e) => St(e));
1747
- }, Ie = (t) => JSON.parse(t.replace(/&quot;/g, '"')), Tt = (t) => {
1748
- const e = t.getAttribute(X);
1749
- if (t.removeAttribute(X), e != null) {
1750
- const s = Ie(e);
1751
- Object.entries(s).forEach(([n, r]) => {
1752
- t.style.setProperty(n, r);
1753
- });
1742
+ const e = t.getAttribute(q);
1743
+ if (t.removeAttribute(q), e != null) {
1744
+ const s = Ie(e), n = Object.entries(s);
1745
+ n.length > 0 && (t.style.cssText = n.map(([r, o]) => `${r}: ${o}`).join("; "));
1754
1746
  }
1755
- }, At = () => {
1756
- document.querySelectorAll(`[${X}]`).forEach((e) => Tt(e));
1757
- }, Et = (t) => {
1758
- const e = t.getAttribute(ee);
1759
- if (t.removeAttribute(ee), e != null) {
1747
+ }, bt = (t) => {
1748
+ const e = t.getAttribute(U);
1749
+ if (t.removeAttribute(U), e != null) {
1760
1750
  const s = Ie(e);
1761
1751
  Object.entries(s).forEach(([n, r]) => {
1762
1752
  r == null ? t.removeAttribute(n) : t.setAttribute(n, r);
1763
1753
  });
1764
1754
  }
1765
- }, Ct = () => {
1766
- document.querySelectorAll(`[${ee}]`).forEach((e) => Et(e));
1767
- }, vs = () => {
1768
- mt(), wt(), _t(), bt(), At(), Ct();
1769
- }, $ = Symbol("class"), N = Symbol("style"), z = Symbol("handler"), He = () => Math.random().toString(36).substring(2, 15), Dt = (t) => t.replace(/<[^>]*>?/g, "");
1770
- class $e {
1755
+ }, fs = () => {
1756
+ const e = [
1757
+ fe,
1758
+ B,
1759
+ F,
1760
+ W,
1761
+ q,
1762
+ U
1763
+ ].map((n) => `[${n}]`).join(",");
1764
+ document.querySelectorAll(e).forEach((n) => {
1765
+ const r = n;
1766
+ if (r.hasAttribute(fe)) {
1767
+ ee(r);
1768
+ return;
1769
+ }
1770
+ r.hasAttribute(B) && mt(r), r.hasAttribute(W) && wt(r), r.hasAttribute(F) && yt(r), r.hasAttribute(q) && vt(r), r.hasAttribute(U) && bt(r);
1771
+ });
1772
+ }, N = Symbol("class"), $ = Symbol("style"), Q = Symbol("handler"), He = () => Math.random().toString(36).substring(2, 15), St = (t) => t.replace(/<[^>]*>?/g, "");
1773
+ class Ne {
1771
1774
  constructor(e) {
1772
1775
  this.parent = e;
1773
1776
  }
@@ -1776,7 +1779,7 @@ class $e {
1776
1779
  children = [];
1777
1780
  isElement = () => !0;
1778
1781
  isText = () => !1;
1779
- getText = () => this.properties.innerText != null ? this.properties.innerText : this.properties.innerHTML != null ? Dt(this.properties.innerHTML) : this.children.map((e) => e.getText()).join("");
1782
+ getText = () => this.properties.innerText != null ? this.properties.innerText : this.properties.innerHTML != null ? St(this.properties.innerHTML) : this.children.map((e) => e.getText()).join("");
1780
1783
  removeChild = (e) => {
1781
1784
  const s = this.children.indexOf(e);
1782
1785
  s !== -1 && this.children.splice(s, 1);
@@ -1797,10 +1800,10 @@ class $e {
1797
1800
  getInnerText = () => this.properties.innerText ?? "";
1798
1801
  hasInnerText = () => this.properties.innerText != null;
1799
1802
  hasChildren = () => this.children.length > 0;
1800
- hasClasses = () => this.properties[$] != null;
1801
- hasStyles = () => this.properties[N] != null;
1803
+ hasClasses = () => this.properties[N] != null;
1804
+ hasStyles = () => this.properties[$] != null;
1802
1805
  hasAttributes = () => Object.keys(this.properties).length > 0;
1803
- hasHandlers = () => this.properties[z] != null;
1806
+ hasHandlers = () => this.properties[Q] != null;
1804
1807
  hasRenderableProperties = () => this.hasClasses() || this.hasAttributes() || this.hasStyles();
1805
1808
  getById = (e) => {
1806
1809
  if (this.properties.id === e)
@@ -1812,52 +1815,51 @@ class $e {
1812
1815
  }
1813
1816
  };
1814
1817
  trigger = (e, s) => {
1815
- ((this.properties[z] ?? {})[e] ?? []).forEach((r) => r(s));
1818
+ ((this.properties[Q] ?? {})[e] ?? []).forEach((r) => r(s));
1816
1819
  };
1817
1820
  click = () => {
1818
1821
  this.trigger("click", {});
1819
1822
  };
1820
1823
  on = (e, s, n, r) => {
1821
- const o = this.properties[z] ??= {}, i = r?.once ? (a) => {
1824
+ const o = this.properties[Q] ??= {}, i = r?.once ? (a) => {
1822
1825
  l(), s(a, n);
1823
1826
  } : (a) => s(a, n);
1824
1827
  o[e] = [...o[e] ?? [], i];
1825
1828
  const l = () => {
1826
1829
  const a = o[e] ?? [], c = a.indexOf(i);
1827
- c !== -1 && (a.splice(c, 1), a.length === 0 ? (delete o[e], Object.keys(o).length === 0 && delete this.properties[z]) : o[e] = a, r?.signal != null && r.signal.removeEventListener("abort", l));
1830
+ c !== -1 && (a.splice(c, 1), a.length === 0 ? (delete o[e], Object.keys(o).length === 0 && delete this.properties[Q]) : o[e] = a, r?.signal != null && r.signal.removeEventListener("abort", l));
1828
1831
  };
1829
1832
  return r?.signal != null && r.signal.addEventListener("abort", l), l;
1830
1833
  };
1831
1834
  addClasses = (e) => {
1832
1835
  if (e.length === 0)
1833
1836
  return;
1834
- const s = this.properties[$] ??= [];
1835
- e.forEach((n) => {
1836
- s.includes(n) || s.push(n);
1837
- });
1837
+ const s = this.properties[N] ??= [], n = new Set(s);
1838
+ for (const r of e)
1839
+ n.has(r) || (s.push(r), n.add(r));
1838
1840
  };
1839
1841
  removeClasses = (e) => {
1840
1842
  if (e.length === 0)
1841
1843
  return;
1842
- const s = this.properties[$] ??= [];
1843
- e.forEach((n) => {
1844
- const r = s.indexOf(n);
1845
- r !== -1 && s.splice(r, 1);
1846
- }), s.length === 0 && delete this.properties[$];
1844
+ const s = this.properties[N] ??= [], n = new Set(e);
1845
+ let r = 0;
1846
+ for (let o = 0; o < s.length; o++)
1847
+ n.has(s[o]) || (s[r] = s[o], r++);
1848
+ s.length = r, s.length === 0 && delete this.properties[N];
1847
1849
  };
1848
- getClasses = () => this.properties[$] ?? [];
1850
+ getClasses = () => this.properties[N] ?? [];
1849
1851
  getAttributes = () => Object.entries(this.properties).filter(
1850
1852
  ([e]) => !["innerText", "innerHTML"].includes(e)
1851
1853
  );
1852
1854
  getVisibleAttributes = () => Reflect.ownKeys(this.properties).flatMap(
1853
- (e) => e === $ ? [["class", this.getClasses()]] : e === N ? [["style", this.getStyles()]] : typeof e == "string" ? [[e, String(this.properties[e])]] : []
1855
+ (e) => e === N ? [["class", this.getClasses()]] : e === $ ? [["style", this.getStyles()]] : typeof e == "string" ? [[e, String(this.properties[e])]] : []
1854
1856
  );
1855
1857
  setStyle = (e, s) => {
1856
- const n = this.properties[N] ??= {};
1857
- n[e] = s, s === "" && (delete n[e], Object.keys(n).length === 0 && delete this.properties[N]);
1858
+ const n = this.properties[$] ??= {};
1859
+ n[e] = s, s === "" && (delete n[e], Object.keys(n).length === 0 && delete this.properties[$]);
1858
1860
  };
1859
- getStyle = (e) => this.properties[N]?.[e] ?? "";
1860
- getStyles = () => this.properties[N] ?? {};
1861
+ getStyle = (e) => this.properties[$]?.[e] ?? "";
1862
+ getStyles = () => this.properties[$] ?? {};
1861
1863
  makeAccessors = (e) => {
1862
1864
  const s = this.properties;
1863
1865
  return {
@@ -1866,8 +1868,8 @@ class $e {
1866
1868
  };
1867
1869
  };
1868
1870
  }
1869
- const Pt = (t) => t.replace(/"/g, "&quot;"), xt = (t) => t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
1870
- class Lt extends $e {
1871
+ const _t = (t) => t.replace(/"/g, "&quot;"), At = (t) => t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
1872
+ class Tt extends Ne {
1871
1873
  constructor(e, s, n) {
1872
1874
  super(n), this.tagName = e, this.namespace = s;
1873
1875
  }
@@ -1875,11 +1877,11 @@ class Lt extends $e {
1875
1877
  toHTML = (e = !1) => {
1876
1878
  const s = this.children.map((l) => l.toHTML()).join(""), n = this.namespace ? ` xmlns="${this.namespace}"` : "";
1877
1879
  let r = null;
1878
- 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(" ")}"` : Mt.has(l) ? ` ${l}` : l === "innerHTML" ? (r = a, "") : l === "innerText" ? (r = xt(a), "") : ` ${l}="${Pt(a)}"`).join(""), i = e ? ` ${ke}` : "";
1879
- return kt.has(this.tagName) && s === "" ? `<${this.tagName}${n}${o}${i} />` : `<${this.tagName}${n}${o}${i}>${r ?? s}</${this.tagName}>`;
1880
+ 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(" ")}"` : Ct.has(l) ? ` ${l}` : l === "innerHTML" ? (r = a, "") : l === "innerText" ? (r = At(a), "") : ` ${l}="${_t(a)}"`).join(""), i = e ? ` ${fe}` : "";
1881
+ return Dt.has(this.tagName) && s === "" ? `<${this.tagName}${n}${o}${i} />` : `<${this.tagName}${n}${o}${i}>${r ?? s}</${this.tagName}>`;
1880
1882
  };
1881
1883
  }
1882
- class Ne extends $e {
1884
+ class $e extends Ne {
1883
1885
  constructor(e, s) {
1884
1886
  super(s), this.selector = e;
1885
1887
  }
@@ -1887,7 +1889,7 @@ class Ne extends $e {
1887
1889
  toHTML = () => "";
1888
1890
  contentToHTML = (e = !1) => this.children.map((s) => s.toHTML(e)).join("");
1889
1891
  }
1890
- class Ot {
1892
+ class Et {
1891
1893
  constructor(e) {
1892
1894
  this.text = e;
1893
1895
  }
@@ -1909,7 +1911,7 @@ class V {
1909
1911
  this.element.children.push(e);
1910
1912
  };
1911
1913
  makeChildElement = (e, s) => {
1912
- const n = new Lt(e, s, this.element);
1914
+ const n = new Tt(e, s, this.element);
1913
1915
  return this.appendOrInsert(n), new V(
1914
1916
  n,
1915
1917
  void 0,
@@ -1918,7 +1920,7 @@ class V {
1918
1920
  );
1919
1921
  };
1920
1922
  makeChildText = (e) => {
1921
- const s = new Ot(e);
1923
+ const s = new Et(e);
1922
1924
  return this.appendOrInsert(s), new V(
1923
1925
  this.element,
1924
1926
  s,
@@ -1932,7 +1934,7 @@ class V {
1932
1934
  getText = () => this.reference?.getText() ?? this.element.getText();
1933
1935
  makeRef = () => this.makeChildText("");
1934
1936
  makePortal = (e) => {
1935
- const s = new Ne(e, this.element);
1937
+ const s = new $e(e, this.element);
1936
1938
  return this.appendOrInsert(s), new V(
1937
1939
  s,
1938
1940
  void 0,
@@ -1972,54 +1974,60 @@ class V {
1972
1974
  getStyle = (e) => this.element.getStyle(e);
1973
1975
  makeAccessors = (e) => this.element.makeAccessors(e);
1974
1976
  }
1975
- const Mt = /* @__PURE__ */ new Set([
1977
+ const Ct = /* @__PURE__ */ new Set([
1976
1978
  "checked",
1977
1979
  "disabled",
1978
1980
  "multiple",
1979
1981
  "readonly",
1980
1982
  "required",
1981
1983
  "selected"
1982
- ]), kt = /* @__PURE__ */ new Set(["img", "br", "hr", "input", "link", "meta"]), bs = () => (
1984
+ ]), Dt = /* @__PURE__ */ new Set(["img", "br", "hr", "input", "link", "meta"]), ps = () => (
1983
1985
  /* c8 ignore next */
1984
1986
  typeof window < "u" ? window : void 0
1985
- ), It = Symbol("DOM_RENDERABLE"), m = (t) => Ke(It, t), Re = (t) => m((e) => e.makeChildText(t).clear), je = (t) => m((e) => {
1987
+ ), xt = Symbol("DOM_RENDERABLE"), m = (t) => Ke(xt, t), Re = (t) => m((e) => e.makeChildText(t).clear), je = (t) => m((e) => {
1986
1988
  const s = e.makeChildText(t.value), n = t.on(s.setText);
1987
1989
  return (r) => {
1988
1990
  n(), s.clear(r);
1989
1991
  };
1990
- }), Ss = (t) => y.is(t) ? je(t) : Re(t), E = (...t) => m((e) => {
1992
+ }), gs = (t) => y.is(t) ? je(t) : Re(t), E = (...t) => m((e) => {
1991
1993
  const s = t.map((n) => g(n).render(e));
1992
1994
  return (n) => {
1993
1995
  s.forEach((r) => r(n));
1994
1996
  };
1995
- }), P = m(() => () => {
1996
- }), Ht = (t) => m((e) => (e.addClasses(t), (s) => {
1997
+ }), x = m(() => () => {
1998
+ }), Lt = (t) => m((e) => (e.addClasses(t), (s) => {
1997
1999
  s && e.removeClasses(t);
1998
- })), $t = (t) => m((e) => {
1999
- let s = [];
2000
+ })), Pt = (t) => m((e) => {
2001
+ let s = /* @__PURE__ */ new Set();
2000
2002
  const n = t.on(
2001
2003
  (r) => {
2002
- e.removeClasses(s), s = (r ?? "").split(" ").filter((o) => o.length > 0), e.addClasses(s);
2004
+ const o = (r ?? "").split(" ").filter((c) => c.length > 0), i = new Set(o), l = [];
2005
+ for (const c of s)
2006
+ i.has(c) || l.push(c);
2007
+ const a = [];
2008
+ for (const c of i)
2009
+ s.has(c) || a.push(c);
2010
+ l.length > 0 && e.removeClasses(l), a.length > 0 && e.addClasses(a), s = i;
2003
2011
  },
2004
2012
  { noAutoDispose: !0 }
2005
2013
  );
2006
2014
  return (r) => {
2007
- n(), r && e.removeClasses(s), s.length = 0;
2015
+ n(), r && e.removeClasses(Array.from(s)), s.clear();
2008
2016
  };
2009
- }), Nt = (t, e) => m((s) => {
2017
+ }), Ot = (t, e) => m((s) => {
2010
2018
  const { get: n, set: r } = s.makeAccessors(t), o = n();
2011
2019
  return r(e), (i) => {
2012
2020
  i && r(o);
2013
2021
  };
2014
- }), Rt = (t, e) => m((s) => {
2022
+ }), kt = (t, e) => m((s) => {
2015
2023
  const { get: n, set: r } = s.makeAccessors(t), o = n(), i = e.on(r, { noAutoDispose: !0 });
2016
2024
  return (l) => {
2017
2025
  i(), l && r(o);
2018
2026
  };
2019
- }), F = (t, e) => y.is(e) ? Rt(t, e) : Nt(t, e), jt = (t, e) => t === "class" ? y.is(e) ? $t(e) : Ht(
2027
+ }), G = (t, e) => y.is(e) ? kt(t, e) : Ot(t, e), Mt = (t, e) => t === "class" ? y.is(e) ? Pt(e) : Lt(
2020
2028
  /* c8 ignore next */
2021
2029
  (e ?? "").split(" ").filter((s) => s.length > 0)
2022
- ) : F(t, e), T = new Proxy(
2030
+ ) : G(t, e), A = new Proxy(
2023
2031
  {},
2024
2032
  {
2025
2033
  /**
@@ -2033,9 +2041,9 @@ const Mt = /* @__PURE__ */ new Set([
2033
2041
  * @returns The renderable component for the specified attribute.
2034
2042
  *
2035
2043
  */
2036
- get: (t, e) => (s) => jt(e, s)
2044
+ get: (t, e) => (s) => Mt(e, s)
2037
2045
  }
2038
- ), Vt = (t, e) => F(`data-${t}`, e), _s = new Proxy(
2046
+ ), It = (t, e) => G(`data-${t}`, e), ms = new Proxy(
2039
2047
  {},
2040
2048
  {
2041
2049
  /**
@@ -2046,9 +2054,9 @@ const Mt = /* @__PURE__ */ new Set([
2046
2054
  * @returns The renderable component for the specified attribute.
2047
2055
  *
2048
2056
  */
2049
- get: (t, e) => (s) => Vt(e, s)
2057
+ get: (t, e) => (s) => It(e, s)
2050
2058
  }
2051
- ), qt = (t, e) => F(`aria-${t}`, e), Ts = new Proxy(
2059
+ ), Ht = (t, e) => G(`aria-${t}`, e), ys = new Proxy(
2052
2060
  {},
2053
2061
  {
2054
2062
  /**
@@ -2059,9 +2067,9 @@ const Mt = /* @__PURE__ */ new Set([
2059
2067
  * @returns The renderable component for the specified attribute.
2060
2068
  *
2061
2069
  */
2062
- get: (t, e) => (s) => qt(e, s)
2070
+ get: (t, e) => (s) => Ht(e, s)
2063
2071
  }
2064
- ), Bt = (t, e) => F(t, e), As = new Proxy(
2072
+ ), Nt = (t, e) => G(t, e), ws = new Proxy(
2065
2073
  {},
2066
2074
  {
2067
2075
  /**
@@ -2072,9 +2080,9 @@ const Mt = /* @__PURE__ */ new Set([
2072
2080
  * @returns The renderable component for the specified attribute.
2073
2081
  *
2074
2082
  */
2075
- get: (t, e) => (s) => Bt(e, s)
2083
+ get: (t, e) => (s) => Nt(e, s)
2076
2084
  }
2077
- ), Ft = (t, e) => F(t, e), Es = new Proxy(
2085
+ ), $t = (t, e) => G(t, e), vs = new Proxy(
2078
2086
  {},
2079
2087
  {
2080
2088
  /**
@@ -2084,11 +2092,11 @@ const Mt = /* @__PURE__ */ new Set([
2084
2092
  * @returns The renderable component for the specified attribute.
2085
2093
  *
2086
2094
  */
2087
- get: (t, e) => (s) => Ft(e, s)
2095
+ get: (t, e) => (s) => $t(e, s)
2088
2096
  }
2089
2097
  ), g = (t) => {
2090
2098
  if (t == null)
2091
- return P;
2099
+ return x;
2092
2100
  if (Array.isArray(t))
2093
2101
  return E(...t.map(g));
2094
2102
  if (typeof t == "string")
@@ -2108,7 +2116,7 @@ const Mt = /* @__PURE__ */ new Set([
2108
2116
  return (i) => {
2109
2117
  o.forEach((l) => l(!1)), r.clear(i);
2110
2118
  };
2111
- }), Wt = new Proxy(
2119
+ }), Rt = new Proxy(
2112
2120
  {},
2113
2121
  {
2114
2122
  /**
@@ -2118,7 +2126,7 @@ const Mt = /* @__PURE__ */ new Set([
2118
2126
  */
2119
2127
  get: (t, e) => (...s) => Ve(e, s.flatMap(g))
2120
2128
  }
2121
- ), Cs = new Proxy(
2129
+ ), bs = new Proxy(
2122
2130
  {},
2123
2131
  {
2124
2132
  /**
@@ -2126,9 +2134,9 @@ const Mt = /* @__PURE__ */ new Set([
2126
2134
  * @param type - The input type name.
2127
2135
  * @returns A renderable function that creates and appends the HTMLInput element to the DOM.
2128
2136
  */
2129
- get: (t, e) => (...s) => Ve("input", T.type(e), ...s)
2137
+ get: (t, e) => (...s) => Ve("input", A.type(e), ...s)
2130
2138
  }
2131
- ), qe = "http://www.w3.org/2000/svg", Ds = (t, ...e) => ie(t, qe, ...e), Ps = new Proxy(
2139
+ ), Be = "http://www.w3.org/2000/svg", Ss = (t, ...e) => ie(t, Be, ...e), _s = new Proxy(
2132
2140
  {},
2133
2141
  {
2134
2142
  /**
@@ -2136,9 +2144,9 @@ const Mt = /* @__PURE__ */ new Set([
2136
2144
  * @param tagName - The SVG tag name.
2137
2145
  * @returns A renderable function that creates and appends the SVG element to the DOM.
2138
2146
  */
2139
- get: (t, e) => (...s) => ie(e, qe, s.flatMap(g))
2147
+ get: (t, e) => (...s) => ie(e, Be, s.flatMap(g))
2140
2148
  }
2141
- ), Be = "http://www.w3.org/1998/Math/MathML", xs = (t, ...e) => ie(t, Be, ...e), Ls = new Proxy(
2149
+ ), qe = "http://www.w3.org/1998/Math/MathML", As = (t, ...e) => ie(t, qe, ...e), Ts = new Proxy(
2142
2150
  {},
2143
2151
  {
2144
2152
  /**
@@ -2146,12 +2154,12 @@ const Mt = /* @__PURE__ */ new Set([
2146
2154
  * @param tagName - The Math tag name.
2147
2155
  * @returns A renderable function that creates and appends the Math element to the DOM.
2148
2156
  */
2149
- get: (t, e) => (...s) => ie(e, Be, s.flatMap(g))
2157
+ get: (t, e) => (...s) => ie(e, qe, s.flatMap(g))
2150
2158
  }
2151
2159
  ), Fe = (t, e) => {
2152
2160
  if (typeof e == "function")
2153
2161
  return Fe(t, { then: e });
2154
- const s = e.pending != null ? g(e.pending()) : P, n = e.then, r = e.error != null ? (o) => g(e.error(o)) : () => P;
2162
+ const s = e.pending != null ? g(e.pending()) : x, n = e.then, r = e.error != null ? (o) => g(e.error(o)) : () => x;
2155
2163
  return m((o) => {
2156
2164
  let i = !0;
2157
2165
  const l = t(), a = o.makeRef();
@@ -2167,14 +2175,14 @@ const Mt = /* @__PURE__ */ new Set([
2167
2175
  i = !1, c(u), a.clear(u);
2168
2176
  };
2169
2177
  });
2170
- }, Os = (t, e) => Fe(() => t, e), We = (t, e, s) => m((n) => n.on(t, e, s)), Ut = (t) => We("click", (e, s) => {
2178
+ }, Es = (t, e) => Fe(() => t, e), We = (t, e, s) => m((n) => n.on(t, e, s)), jt = (t) => We("click", (e, s) => {
2171
2179
  e.preventDefault();
2172
2180
  const n = e.target;
2173
2181
  setTimeout(() => {
2174
2182
  const r = n.ownerDocument != null ? n?.checked : void 0;
2175
2183
  r != null && t(!r, s);
2176
2184
  }, 0);
2177
- }), W = new Proxy(
2185
+ }), K = new Proxy(
2178
2186
  {},
2179
2187
  {
2180
2188
  /**
@@ -2184,18 +2192,18 @@ const Mt = /* @__PURE__ */ new Set([
2184
2192
  */
2185
2193
  get: (t, e) => (s) => We(e, s)
2186
2194
  }
2187
- ), Jt = (t, e) => (s) => {
2195
+ ), Vt = (t, e) => (s) => {
2188
2196
  e?.preventDefault === !0 && s.preventDefault(), e?.stopPropagation === !0 && s.stopPropagation(), e?.stopImmediatePropagation === !0 && s.stopImmediatePropagation(), t(s);
2189
- }, k = (t, e) => Jt((s) => {
2197
+ }, M = (t, e) => Vt((s) => {
2190
2198
  const n = s.target;
2191
2199
  t(n, s);
2192
- }, e), zt = (t, e) => k(
2200
+ }, e), Bt = (t, e) => M(
2193
2201
  (s, n) => t(s.value, n),
2194
2202
  e
2195
- ), Gt = (t, e) => k(
2203
+ ), qt = (t, e) => M(
2196
2204
  (s, n) => t(s.valueAsNumber, n),
2197
2205
  e
2198
- ), Kt = (t, e) => k((s, n) => {
2206
+ ), Ft = (t, e) => M((s, n) => {
2199
2207
  if (s.value === "")
2200
2208
  return;
2201
2209
  const r = s.value.split("-"), o = new Date(
@@ -2204,7 +2212,7 @@ const Mt = /* @__PURE__ */ new Set([
2204
2212
  Number(r[2].substring(0, 2))
2205
2213
  );
2206
2214
  t(o, n);
2207
- }, e), Ms = (t, e) => k((s, n) => {
2215
+ }, e), Cs = (t, e) => M((s, n) => {
2208
2216
  if (s.value === "") {
2209
2217
  t(null, n);
2210
2218
  return;
@@ -2215,7 +2223,7 @@ const Mt = /* @__PURE__ */ new Set([
2215
2223
  Number(r[2].substring(0, 2))
2216
2224
  );
2217
2225
  t(o, n);
2218
- }, e), Yt = (t, e) => k((s, n) => {
2226
+ }, e), Wt = (t, e) => M((s, n) => {
2219
2227
  if (s.value === "")
2220
2228
  return;
2221
2229
  const r = s.value.split("T"), o = r[0].split("-"), i = new Date(
@@ -2224,7 +2232,7 @@ const Mt = /* @__PURE__ */ new Set([
2224
2232
  Number(o[2])
2225
2233
  ), l = r[1].split(":");
2226
2234
  i.setHours(Number(l[0])), i.setMinutes(Number(l[1])), i.setSeconds(Number(l[2])), t(i, n);
2227
- }, e), ks = (t, e) => k((s, n) => {
2235
+ }, e), Ds = (t, e) => M((s, n) => {
2228
2236
  if (s.value === "") {
2229
2237
  t(null, n);
2230
2238
  return;
@@ -2240,15 +2248,15 @@ const Mt = /* @__PURE__ */ new Set([
2240
2248
  Number(o[2])
2241
2249
  ), l = r[1].split(":");
2242
2250
  i.setHours(Number(l[0] ?? 0)), i.setMinutes(Number(l[1] ?? 0)), i.setSeconds(Number(l[2] ?? 0)), t(i, n);
2243
- }, e), Is = (t, e) => k((s, n) => {
2251
+ }, e), xs = (t, e) => M((s, n) => {
2244
2252
  t(s.checked, n);
2245
- }, e), Hs = (t, e = "input") => E(T.valueAsDate(t), W[e](Kt(t.set))), $s = (t, e = "input") => E(T.valueAsDate(t), W[e](Yt(t.set))), Ns = (t, e = "input") => E(T.valueAsNumber(t), W[e](Gt(t.set))), Rs = (t, e = "input") => E(T.value(t), W[e](zt(t.set))), js = (t) => E(T.checked(t), Ut(t.set)), fe = (t, e, s) => y.is(t) ? e(t) : s(t), Xt = (t, e, s) => {
2253
+ }, e), Ls = (t, e = "input") => E(A.valueAsDate(t), K[e](Ft(t.set))), Ps = (t, e = "input") => E(A.valueAsDate(t), K[e](Wt(t.set))), Os = (t, e = "input") => E(A.valueAsNumber(t), K[e](qt(t.set))), ks = (t, e = "input") => E(A.value(t), K[e](Bt(t.set))), Ms = (t) => E(A.checked(t), jt(t.set)), ge = (t, e, s) => y.is(t) ? e(t) : s(t), Ut = (t, e, s) => {
2246
2254
  const n = t.makeRef();
2247
2255
  let r = () => {
2248
2256
  }, o = null;
2249
2257
  const i = e.on(
2250
2258
  (l) => {
2251
- o?.dispose(), r(!0), o = new q(), r = M(
2259
+ o?.dispose(), r(!0), o = new J(), r = k(
2252
2260
  o,
2253
2261
  () => g(s(l)).render(n)
2254
2262
  );
@@ -2263,17 +2271,17 @@ const Mt = /* @__PURE__ */ new Set([
2263
2271
  return m((o) => {
2264
2272
  const i = o.makeRef();
2265
2273
  let l, a;
2266
- const c = r.map((p) => Object.keys(p)[0]);
2274
+ const c = r.map((f) => Object.keys(f)[0]);
2267
2275
  let u;
2268
- const d = c.on((p) => {
2269
- if (p !== u) {
2270
- u = p, a?.dispose(), l?.(!0), a = r.map((f) => f[p]);
2271
- const h = e[p](a);
2276
+ const d = c.on((f) => {
2277
+ if (f !== u) {
2278
+ u = f, a?.dispose(), l?.(!0), a = r.map((p) => p[f]);
2279
+ const h = e[f](a);
2272
2280
  l = g(h).render(i);
2273
2281
  }
2274
2282
  });
2275
- return (p) => {
2276
- a?.dispose(), d(), i.clear(p), l?.(p);
2283
+ return (f) => {
2284
+ a?.dispose(), d(), i.clear(f), l?.(f);
2277
2285
  };
2278
2286
  });
2279
2287
  }
@@ -2281,22 +2289,22 @@ const Mt = /* @__PURE__ */ new Set([
2281
2289
  const o = Object.keys(r)[0];
2282
2290
  return g(e[o](re(r[o])));
2283
2291
  }
2284
- return fe(t, s, n);
2292
+ return ge(t, s, n);
2285
2293
  }, Ue = (t, e, s) => le(
2286
2294
  w.map(t, (n) => ({ [n[e]]: n })),
2287
2295
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2288
2296
  s
2289
- ), Vs = (t, e) => Ue(t, "kind", e), qs = (t, e) => {
2297
+ ), Is = (t, e) => Ue(t, "kind", e), Hs = (t, e) => {
2290
2298
  const s = w.map(t, ([n, r]) => ({
2291
2299
  [n]: r
2292
2300
  }));
2293
2301
  return le(s, e);
2294
- }, Bs = (t, e) => Ue(t, "type", e), Qt = (t, e) => le(
2302
+ }, Ns = (t, e) => Ue(t, "type", e), Jt = (t, e) => le(
2295
2303
  w.map(t, (s) => ({ [s]: !0 })),
2296
2304
  e
2297
- ), Fs = (t, e = {}) => (s) => {
2305
+ ), $s = (t, e = {}) => (s) => {
2298
2306
  const n = e?.firstSeparator ?? t, r = e?.lastSeparator ?? t;
2299
- return Qt(
2307
+ return Jt(
2300
2308
  s.map((o) => o.isFirst ? "first" : o.isLast ? "last" : "other"),
2301
2309
  {
2302
2310
  first: n,
@@ -2304,77 +2312,77 @@ const Mt = /* @__PURE__ */ new Set([
2304
2312
  other: t
2305
2313
  }
2306
2314
  );
2307
- }, Ws = (t) => m((e) => (e.appendOrInsert(t), (s) => {
2308
- s && K(t);
2309
- })), Us = (t, e, s) => {
2315
+ }, Rs = (t) => m((e) => (e.appendOrInsert(t), (s) => {
2316
+ s && ee(t);
2317
+ })), js = (t, e, s) => {
2310
2318
  function n(o) {
2311
2319
  return m((i) => {
2312
2320
  const l = i.makeRef();
2313
2321
  let a = () => {
2314
2322
  }, c = !1, u = null;
2315
- const d = o.on((p) => {
2316
- p == null ? (a(!0), a = g(s?.()).render(l), c = !1, u?.dispose(), u = null) : c ? u.set(p) : (u = D(p), a(!0), a = g(
2323
+ const d = o.on((f) => {
2324
+ f == null ? (a(!0), a = g(s?.()).render(l), c = !1, u?.dispose(), u = null) : c ? u.set(f) : (u = D(f), a(!0), a = g(
2317
2325
  e(u)
2318
2326
  ).render(l), c = !0);
2319
2327
  });
2320
- return (p) => {
2321
- u?.dispose(), d(), a?.(p), l.clear(p);
2328
+ return (f) => {
2329
+ u?.dispose(), d(), a?.(f), l.clear(f);
2322
2330
  };
2323
2331
  });
2324
2332
  }
2325
2333
  function r(o) {
2326
2334
  if (o == null) {
2327
2335
  const i = s?.();
2328
- return i != null ? g(i) : P;
2336
+ return i != null ? g(i) : x;
2329
2337
  }
2330
2338
  return g(e(re(o)));
2331
2339
  }
2332
- return fe(
2340
+ return ge(
2333
2341
  t,
2334
2342
  n,
2335
2343
  r
2336
2344
  );
2337
- }, Js = (...t) => (e, s) => m((n) => {
2345
+ }, Vs = (...t) => (e, s) => m((n) => {
2338
2346
  const r = n.makeRef();
2339
2347
  if (t.some(
2340
2348
  (h) => !y.is(h) && h == null
2341
2349
  ))
2342
- return (s != null ? g(s?.()) : P).render(r);
2350
+ return (s != null ? g(s?.()) : x).render(r);
2343
2351
  const i = t.map(() => null), l = t.map(
2344
2352
  (h) => y.is(h) ? h.value != null : h != null
2345
2353
  );
2346
2354
  let a = null;
2347
- const c = D(l.every((h) => h)), u = (h, f) => {
2355
+ const c = D(l.every((h) => h)), u = (h, p) => {
2348
2356
  if (h.value != null) {
2349
- if (i[f] == null) {
2357
+ if (i[p] == null) {
2350
2358
  const v = D(h.value);
2351
- i[f] = v;
2359
+ i[p] = v;
2352
2360
  } else
2353
- i[f].value = h.value;
2354
- l[f] = !0;
2361
+ i[p].value = h.value;
2362
+ l[p] = !0;
2355
2363
  } else
2356
- l[f] = !1;
2364
+ l[p] = !1;
2357
2365
  };
2358
2366
  let d = t.length - 1;
2359
- const p = t.map((h, f) => {
2367
+ const f = t.map((h, p) => {
2360
2368
  if (!y.is(h)) {
2361
2369
  const v = D(h);
2362
- return i[f] = v, () => {
2370
+ return i[p] = v, () => {
2363
2371
  };
2364
2372
  }
2365
2373
  return h.on(() => {
2366
- u(h, f), d === 0 ? c.value = l.every((v) => v) : d--;
2374
+ u(h, p), d === 0 ? c.value = l.every((v) => v) : d--;
2367
2375
  });
2368
2376
  });
2369
2377
  return c.on((h) => {
2370
- a?.(!0), a = null, h ? a = g(e(...i)).render(r) : a = g(s?.() ?? P).render(r);
2378
+ a?.(!0), a = null, h ? a = g(e(...i)).render(r) : a = g(s?.() ?? x).render(r);
2371
2379
  }), (h) => {
2372
- i.forEach((f) => f?.dispose()), c.dispose(), p.forEach((f) => f()), a?.(h), r.clear(h);
2380
+ i.forEach((p) => p?.dispose()), c.dispose(), f.forEach((p) => p()), a?.(h), r.clear(h);
2373
2381
  };
2374
- }), Je = (t, e, s) => fe(
2382
+ }), Je = (t, e, s) => ge(
2375
2383
  t,
2376
2384
  (n) => m(
2377
- (r) => Xt(
2385
+ (r) => Ut(
2378
2386
  r,
2379
2387
  n,
2380
2388
  (o) => o ? e() : s?.()
@@ -2383,11 +2391,11 @@ const Mt = /* @__PURE__ */ new Set([
2383
2391
  (n) => {
2384
2392
  if (n) {
2385
2393
  const r = e();
2386
- return r != null ? g(r) : P;
2394
+ return r != null ? g(r) : x;
2387
2395
  }
2388
2396
  return g(s?.());
2389
2397
  }
2390
- ), zs = (t, e, s) => Je(
2398
+ ), Bs = (t, e, s) => Je(
2391
2399
  w.map(t, (n) => !n),
2392
2400
  e,
2393
2401
  s
@@ -2402,7 +2410,7 @@ const Mt = /* @__PURE__ */ new Set([
2402
2410
  g(e(n)),
2403
2411
  Je(
2404
2412
  n.isLast,
2405
- () => P,
2413
+ () => x,
2406
2414
  () => s(r)
2407
2415
  )
2408
2416
  );
@@ -2417,11 +2425,11 @@ const Mt = /* @__PURE__ */ new Set([
2417
2425
  for (const d of c)
2418
2426
  d(!0);
2419
2427
  for (let d = i.length; d < a; d++) {
2420
- const p = new de(d, r), h = new q();
2428
+ const f = new de(d, r), h = new J();
2421
2429
  l.push(h), i.push(
2422
- M(
2430
+ k(
2423
2431
  h,
2424
- () => g(e(p)).render(o)
2432
+ () => g(e(f)).render(o)
2425
2433
  )
2426
2434
  );
2427
2435
  }
@@ -2443,7 +2451,7 @@ const Mt = /* @__PURE__ */ new Set([
2443
2451
  })
2444
2452
  );
2445
2453
  }
2446
- }, Gs = (t, e, s) => {
2454
+ }, qs = (t, e, s) => {
2447
2455
  const n = w.map(t, (o) => o.length), r = w.toSignal(t);
2448
2456
  return ze(
2449
2457
  n,
@@ -2453,11 +2461,11 @@ const Mt = /* @__PURE__ */ new Set([
2453
2461
  },
2454
2462
  s
2455
2463
  );
2456
- }, ge = (...t) => m(
2464
+ }, me = (...t) => m(
2457
2465
  (e) => (s) => t.forEach((n) => {
2458
2466
  typeof n == "function" ? n(s, e) : n.dispose(s, e);
2459
2467
  })
2460
- ), Ks = (t, e) => {
2468
+ ), Fs = (t, e) => {
2461
2469
  if (y.is(t)) {
2462
2470
  const s = t;
2463
2471
  return m((n) => {
@@ -2474,7 +2482,7 @@ const Mt = /* @__PURE__ */ new Set([
2474
2482
  });
2475
2483
  }
2476
2484
  return g(e(t));
2477
- }, me = (t) => m((e) => {
2485
+ }, ye = (t) => m((e) => {
2478
2486
  if (e.isBrowser()) {
2479
2487
  const s = t(e);
2480
2488
  if (s != null)
@@ -2483,7 +2491,7 @@ const Mt = /* @__PURE__ */ new Set([
2483
2491
  return () => {
2484
2492
  };
2485
2493
  });
2486
- function Ys({
2494
+ function Ws({
2487
2495
  src: t,
2488
2496
  name: e,
2489
2497
  width: s,
@@ -2495,42 +2503,46 @@ function Ys({
2495
2503
  iframeChild: a,
2496
2504
  onLoad: c
2497
2505
  } = {}, ...u) {
2498
- return Wt.iframe(
2499
- T.src(t),
2500
- T.name(e),
2501
- T.width(s != null ? w.map(s, String) : void 0),
2502
- T.height(n != null ? w.map(n, String) : void 0),
2503
- T.sandbox(r),
2504
- T.allow(o),
2505
- T.referrerpolicy(i),
2506
+ return Rt.iframe(
2507
+ A.src(t),
2508
+ A.name(e),
2509
+ A.width(
2510
+ s != null ? w.map(s, String) : void 0
2511
+ ),
2512
+ A.height(
2513
+ n != null ? w.map(n, String) : void 0
2514
+ ),
2515
+ A.sandbox(r),
2516
+ A.allow(o),
2517
+ A.referrerpolicy(i),
2506
2518
  a,
2507
- me((d) => {
2508
- const p = d.element;
2509
- let h, f = !1;
2519
+ ye((d) => {
2520
+ const f = d.element;
2521
+ let h, p = !1;
2510
2522
  const v = () => {
2511
- if (f) return;
2512
- f = !0;
2513
- const S = p.contentDocument;
2514
- if (S && (c && c(p), u.length > 0)) {
2523
+ if (p) return;
2524
+ p = !0;
2525
+ const S = f.contentDocument;
2526
+ if (S && (c && c(f), u.length > 0)) {
2515
2527
  const b = S.body;
2516
2528
  if (b) {
2517
- const x = d.withElement(b);
2518
- h = B(E(...u), x);
2529
+ const L = d.withElement(b);
2530
+ h = z(E(...u), L);
2519
2531
  }
2520
2532
  }
2521
2533
  };
2522
2534
  return l != null && w.on(l, (S) => {
2523
- p.loading = S;
2535
+ f.loading = S;
2524
2536
  }), (u.length > 0 || c) && (t || setTimeout(v, 0)), E(
2525
- u.length > 0 || c ? W.load(v) : P,
2526
- ge(() => {
2537
+ u.length > 0 || c ? K.load(v) : x,
2538
+ me(() => {
2527
2539
  h && h(!1);
2528
2540
  })
2529
2541
  );
2530
2542
  })
2531
2543
  );
2532
2544
  }
2533
- const Xs = (t, e, s = () => P) => le(
2545
+ const Us = (t, e, s = () => x) => le(
2534
2546
  w.map(
2535
2547
  t,
2536
2548
  (n) => n.length > 0 ? { notEmpty: n } : { whenEmpty: null }
@@ -2539,55 +2551,55 @@ const Xs = (t, e, s = () => P) => le(
2539
2551
  notEmpty: (n) => e(n),
2540
2552
  whenEmpty: () => s()
2541
2553
  }
2542
- ), Qs = (t, e) => m((s) => {
2543
- const n = s.makePortal(t), r = B(g(e), n);
2554
+ ), Js = (t, e) => m((s) => {
2555
+ const n = s.makePortal(t), r = z(g(e), n);
2544
2556
  return () => r(!0);
2545
- }), G = /* @__PURE__ */ new Map(), Zt = (t) => ({
2557
+ }), Z = /* @__PURE__ */ new Map(), zt = (t) => ({
2546
2558
  mark: Ge(`Probe(${t.description})`),
2547
2559
  create: ({ callback: e = () => {
2548
2560
  }, timeout: s = 10 } = {}) => {
2549
2561
  const n = (l) => {
2550
- clearTimeout(r), G.delete(t), e(l);
2562
+ clearTimeout(r), Z.delete(t), e(l);
2551
2563
  };
2552
- if (G.has(t))
2564
+ if (Z.has(t))
2553
2565
  throw new Error(`Probe already exists: ${t.description}`);
2554
2566
  const r = setTimeout(() => n("timeout"), s), o = { counter: 0, timeoutId: r };
2555
- return G.set(t, o), {
2567
+ return Z.set(t, o), {
2556
2568
  value: () => {
2557
2569
  clearTimeout(r);
2558
- const l = G.get(t);
2570
+ const l = Z.get(t);
2559
2571
  l != null && --l.counter === 0 && n("resolved");
2560
2572
  },
2561
2573
  dispose: () => n("disposed"),
2562
2574
  onUse: () => o.counter++
2563
2575
  };
2564
2576
  }
2565
- }), Zs = Zt(Symbol("GlobalProbe"));
2566
- function en({
2577
+ }), zs = zt(Symbol("GlobalProbe"));
2578
+ function Gs({
2567
2579
  mode: t,
2568
2580
  delegatesFocus: e,
2569
2581
  slotAssignment: s,
2570
2582
  clonable: n,
2571
2583
  serializable: r
2572
2584
  }, ...o) {
2573
- return me((i) => {
2585
+ return ye((i) => {
2574
2586
  const l = { mode: t };
2575
2587
  e !== void 0 && (l.delegatesFocus = e), s !== void 0 && (l.slotAssignment = s), n !== void 0 && (l.clonable = n), r !== void 0 && (l.serializable = r);
2576
- const a = i.element.attachShadow(l), c = i.withElement(a), u = B(E(...o), c);
2577
- return ge(() => u(!0));
2588
+ const a = i.element.attachShadow(l), c = i.withElement(a), u = z(E(...o), c);
2589
+ return me(() => u(!0));
2578
2590
  });
2579
2591
  }
2580
- const es = (t, e) => m((s) => {
2592
+ const Gt = (t, e) => m((s) => {
2581
2593
  const n = s.getStyle(t);
2582
2594
  return s.setStyle(t, e), (r) => {
2583
2595
  r && s.setStyle(t, n);
2584
2596
  };
2585
- }), ts = (t, e) => m((s) => {
2597
+ }), Kt = (t, e) => m((s) => {
2586
2598
  const n = s.getStyle(t), r = e.on((o) => s.setStyle(t, o));
2587
2599
  return (o) => {
2588
2600
  r(), o && s.setStyle(t, n);
2589
2601
  };
2590
- }), be = (t, e) => y.is(e) ? ts(t, e) : es(t, e), tn = new Proxy({}, {
2602
+ }), Se = (t, e) => y.is(e) ? Kt(t, e) : Gt(t, e), Ks = new Proxy({}, {
2591
2603
  /**
2592
2604
  * Creates a renderable component for the specified `style` property.
2593
2605
  *
@@ -2596,12 +2608,12 @@ const es = (t, e) => m((s) => {
2596
2608
  * @returns The renderable component for the specified attribute.
2597
2609
  *
2598
2610
  */
2599
- get: (t, e) => e === "variable" ? (s, n) => be(s, n) : (s) => be(e, s)
2600
- }), sn = (t) => m((e) => {
2611
+ get: (t, e) => e === "variable" ? (s, n) => Se(s, n) : (s) => Se(e, s)
2612
+ }), Ys = (t) => m((e) => {
2601
2613
  const s = t(e);
2602
2614
  return s == null ? () => {
2603
2615
  } : g(s).render(e);
2604
- }), nn = (t) => me((e) => t(e.element)), rn = (t) => m((e) => {
2616
+ }), Xs = (t) => ye((e) => t(e.element)), Qs = (t) => m((e) => {
2605
2617
  if (e.isHeadlessDOM()) {
2606
2618
  const s = t(e);
2607
2619
  if (s)
@@ -2609,15 +2621,15 @@ const es = (t, e) => m((s) => {
2609
2621
  }
2610
2622
  return () => {
2611
2623
  };
2612
- }), on = (t) => m((e) => {
2613
- const s = new q(), n = M(
2624
+ }), Zs = (t) => m((e) => {
2625
+ const s = new J(), n = k(
2614
2626
  s,
2615
2627
  () => g(t(s)).render(e)
2616
2628
  );
2617
2629
  return (r) => {
2618
2630
  s.dispose(), n(r);
2619
2631
  };
2620
- }), ye = (t) => m((e) => {
2632
+ }), we = (t) => m((e) => {
2621
2633
  let s = e;
2622
2634
  function n() {
2623
2635
  return s;
@@ -2631,155 +2643,155 @@ const es = (t, e) => m((s) => {
2631
2643
  return c?.(), a;
2632
2644
  },
2633
2645
  set: ({ mark: l, create: a }, c) => {
2634
- const { value: u, dispose: d, onUse: p } = a(c, n());
2635
- o.push(d), r(n().setProvider(l, u, p));
2646
+ const { value: u, dispose: d, onUse: f } = a(c, n());
2647
+ o.push(d), r(n().setProvider(l, u, f));
2636
2648
  }
2637
2649
  });
2638
2650
  return i == null ? () => {
2639
2651
  } : E(
2640
2652
  g(i),
2641
- ge(() => o.forEach((l) => l()))
2653
+ me(() => o.forEach((l) => l()))
2642
2654
  ).render(n());
2643
- }), ln = (t, e, s) => ye(({ set: n }) => (n(t, e), s())), an = (t, e) => ye(({ use: s }) => e(s(t))), cn = (...t) => (e) => ye(({ use: s }) => {
2655
+ }), en = (t, e, s) => we(({ set: n }) => (n(t, e), s())), tn = (t, e) => we(({ use: s }) => e(s(t))), sn = (...t) => (e) => we(({ use: s }) => {
2644
2656
  const n = t.map(s);
2645
2657
  return e(...n);
2646
2658
  });
2647
2659
  export {
2648
- qt as Aria,
2649
- Os as Async,
2650
- jt as Attr,
2651
- js as BindChecked,
2652
- Hs as BindDate,
2653
- $s as BindDateTime,
2654
- Ns as BindNumber,
2655
- Rs as BindText,
2660
+ Ht as Aria,
2661
+ Es as Async,
2662
+ Mt as Attr,
2663
+ Ms as BindChecked,
2664
+ Ls as BindDate,
2665
+ Ps as BindDateTime,
2666
+ Os as BindNumber,
2667
+ ks as BindText,
2656
2668
  j as BrowserContext,
2657
- Y as CLASS_PLACEHOLDER_ATTR,
2669
+ B as CLASS_PLACEHOLDER_ATTR,
2658
2670
  R as Computed,
2659
- Fs as Conjunction,
2660
- Ws as DOMNode,
2661
- Vt as DataAttr,
2662
- q as DisposalScope,
2671
+ $s as Conjunction,
2672
+ Rs as DOMNode,
2673
+ It as DataAttr,
2674
+ J as DisposalScope,
2663
2675
  Ve as El,
2664
2676
  ie as ElNS,
2665
2677
  de as ElementPosition,
2666
- P as Empty,
2667
- Us as Ensure,
2668
- Js as EnsureAll,
2669
- Gs as ForEach,
2678
+ x as Empty,
2679
+ js as Ensure,
2680
+ Vs as EnsureAll,
2681
+ qs as ForEach,
2670
2682
  E as Fragment,
2671
- Zs as GlobalProbe,
2672
- ws as HeadlessAdapter,
2683
+ zs as GlobalProbe,
2684
+ ds as HeadlessAdapter,
2673
2685
  V as HeadlessContext,
2674
- Lt as HeadlessElement,
2675
- Ne as HeadlessPortal,
2676
- Ot as HeadlessText,
2677
- Ys as IFrame,
2678
- Ks as MapSignal,
2679
- Ft as MathAttr,
2680
- xs as MathEl,
2686
+ Tt as HeadlessElement,
2687
+ $e as HeadlessPortal,
2688
+ Et as HeadlessText,
2689
+ Ws as IFrame,
2690
+ Fs as MapSignal,
2691
+ $t as MathAttr,
2692
+ As as MathEl,
2681
2693
  Te as MemoryStore,
2682
- Xs as NotEmpty,
2683
- Ut as OnChecked,
2684
- ge as OnDispose,
2694
+ Us as NotEmpty,
2695
+ jt as OnChecked,
2696
+ me as OnDispose,
2685
2697
  le as OneOf,
2686
2698
  Ue as OneOfField,
2687
- Vs as OneOfKind,
2688
- qs as OneOfTuple,
2689
- Bs as OneOfType,
2690
- Qt as OneOfValue,
2691
- Qs as Portal,
2699
+ Is as OneOfKind,
2700
+ Hs as OneOfTuple,
2701
+ Ns as OneOfType,
2702
+ Jt as OneOfValue,
2703
+ Js as Portal,
2692
2704
  se as Prop,
2693
- ln as Provide,
2705
+ en as Provide,
2694
2706
  Me as ProviderNotFoundError,
2695
2707
  gt as RenderingError,
2696
2708
  ze as Repeat,
2697
- Bt as SVGAttr,
2698
- Ds as SVGEl,
2699
- en as ShadowRoot,
2709
+ Nt as SVGAttr,
2710
+ Ss as SVGEl,
2711
+ Gs as ShadowRoot,
2700
2712
  y as Signal,
2701
2713
  Fe as Task,
2702
- Ss as TextNode,
2703
- zs as Unless,
2704
- an as Use,
2705
- cn as UseMany,
2714
+ gs as TextNode,
2715
+ Bs as Unless,
2716
+ tn as Use,
2717
+ sn as UseMany,
2706
2718
  w as Value,
2707
2719
  Je as When,
2708
- me as WithBrowserCtx,
2709
- sn as WithCtx,
2710
- nn as WithElement,
2711
- rn as WithHeadlessCtx,
2712
- ye as WithProvider,
2713
- on as WithScope,
2714
- ke as _NODE_PLACEHOLDER_ATTR,
2715
- ft as _getSelfOrParentElement,
2716
- Le as _isElement,
2717
- Oe as _isFragment,
2718
- pt as _makeGetter,
2720
+ ye as WithBrowserCtx,
2721
+ Ys as WithCtx,
2722
+ Xs as WithElement,
2723
+ Qs as WithHeadlessCtx,
2724
+ we as WithProvider,
2725
+ Zs as WithScope,
2726
+ fe as _NODE_PLACEHOLDER_ATTR,
2727
+ pt as _getSelfOrParentElement,
2728
+ Oe as _isElement,
2729
+ ke as _isFragment,
2730
+ ft as _makeGetter,
2719
2731
  dt as _makeSetter,
2720
- K as _removeDOMNode,
2732
+ ee as _removeDOMNode,
2721
2733
  je as _signalText,
2722
2734
  Re as _staticText,
2723
- as as animateSignal,
2735
+ ss as animateSignal,
2724
2736
  ut as animateSignals,
2725
- Ts as aria,
2726
- T as attr,
2727
- ps as bind,
2728
- fs as coalesce,
2737
+ ys as aria,
2738
+ A as attr,
2739
+ ls as bind,
2740
+ as as coalesce,
2729
2741
  ne as computed,
2730
2742
  te as computedOf,
2731
2743
  ht as computedRecord,
2732
2744
  Ke as createRenderable,
2733
- _s as dataAttr,
2734
- us as delaySignal,
2735
- _e as effect,
2745
+ ms as dataAttr,
2746
+ rs as delaySignal,
2747
+ Ae as effect,
2736
2748
  Ze as effectOf,
2737
- Jt as emit,
2738
- Is as emitChecked,
2739
- k as emitTarget,
2740
- zt as emitValue,
2741
- Kt as emitValueAsDate,
2742
- Yt as emitValueAsDateTime,
2743
- Ms as emitValueAsNullableDate,
2744
- ks as emitValueAsNullableDateTime,
2745
- Gt as emitValueAsNumber,
2749
+ Vt as emit,
2750
+ xs as emitChecked,
2751
+ M as emitTarget,
2752
+ Bt as emitValue,
2753
+ Ft as emitValueAsDate,
2754
+ Wt as emitValueAsDateTime,
2755
+ Cs as emitValueAsNullableDate,
2756
+ Ds as emitValueAsNullableDateTime,
2757
+ qt as emitValueAsNumber,
2746
2758
  it as endInterpolate,
2747
2759
  pe as getCurrentScope,
2748
- rs as getParentScope,
2749
- ns as getScopeStack,
2750
- bs as getWindow,
2760
+ Qt as getParentScope,
2761
+ Xt as getScopeStack,
2762
+ ps as getWindow,
2751
2763
  lt as guessInterpolate,
2752
- Wt as html,
2753
- Cs as input,
2764
+ Rt as html,
2765
+ bs as input,
2754
2766
  ot as interpolateDate,
2755
2767
  nt as interpolateNumber,
2756
2768
  rt as interpolateString,
2757
- ss as joinSignals,
2758
- is as localStorageProp,
2759
- Zt as makeProbe,
2769
+ Yt as joinSignals,
2770
+ es as localStorageProp,
2771
+ zt as makeProbe,
2760
2772
  Ge as makeProviderMark,
2761
- Ls as math,
2762
- Es as mathAttr,
2763
- cs as merge,
2764
- W as on,
2773
+ Ts as math,
2774
+ vs as mathAttr,
2775
+ ns as merge,
2776
+ K as on,
2765
2777
  tt as popScope,
2766
- hs as previousSignal,
2778
+ os as previousSignal,
2767
2779
  D as prop,
2768
2780
  et as pushScope,
2769
- ms as render,
2770
- B as renderWithContext,
2781
+ us as render,
2782
+ z as renderWithContext,
2771
2783
  g as renderableOfTNode,
2772
- vs as restoreTempoPlaceholders,
2773
- ys as runHeadless,
2774
- os as scoped,
2775
- ls as sessionStorageProp,
2784
+ fs as restoreTempoPlaceholders,
2785
+ hs as runHeadless,
2786
+ Zt as scoped,
2787
+ ts as sessionStorageProp,
2776
2788
  re as signal,
2777
- ds as slidingWindowSignal,
2778
- Ae as storedProp,
2779
- tn as style,
2780
- Ps as svg,
2781
- As as svgAttr,
2782
- gs as syncProp,
2789
+ is as slidingWindowSignal,
2790
+ Ee as storedProp,
2791
+ Ks as style,
2792
+ _s as svg,
2793
+ ws as svgAttr,
2794
+ cs as syncProp,
2783
2795
  ce as untracked,
2784
- M as withScope
2796
+ k as withScope
2785
2797
  };