@tempots/dom 10.0.21 → 10.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.cjs +1 -1
  2. package/index.js +384 -377
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -1,31 +1,31 @@
1
- var ze = Object.defineProperty;
2
- var Ve = (t, e, r) => e in t ? ze(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var a = (t, e, r) => Ve(t, typeof e != "symbol" ? e + "" : e, r);
4
- function qe(t, e, r) {
1
+ var Fe = Object.defineProperty;
2
+ var ze = (t, e, r) => e in t ? Fe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
+ var a = (t, e, r) => ze(t, typeof e != "symbol" ? e + "" : e, r);
4
+ function Ve(t, e, r) {
5
5
  return t + (e - t) * r;
6
6
  }
7
- const Q = 97;
8
- function Ze(t, e, r) {
7
+ const G = 97;
8
+ function qe(t, e, r) {
9
9
  const n = Math.max(t.length, e.length);
10
10
  let s = "";
11
11
  for (let i = 0; i < n; i++) {
12
12
  let o = t.charCodeAt(i);
13
- isNaN(o) && (o = Q);
13
+ isNaN(o) && (o = G);
14
14
  let l = e.charCodeAt(i);
15
- isNaN(l) && (l = Q), s += String.fromCharCode(o + (l - o) * r);
15
+ isNaN(l) && (l = G), s += String.fromCharCode(o + (l - o) * r);
16
16
  }
17
17
  return s;
18
18
  }
19
- function Xe(t, e, r) {
19
+ function Ze(t, e, r) {
20
20
  return new Date(t.getTime() + (e.getTime() - t.getTime()) * r);
21
21
  }
22
- function Ye(t, e, r) {
22
+ function Xe(t, e, r) {
23
23
  return e;
24
24
  }
25
- function je(t) {
26
- return typeof t == "number" ? qe : typeof t == "string" ? Ze : t instanceof Date ? Xe : Ye;
25
+ function Ye(t) {
26
+ return typeof t == "number" ? Ve : typeof t == "string" ? qe : t instanceof Date ? Ze : Xe;
27
27
  }
28
- class He {
28
+ class je {
29
29
  constructor(e, r) {
30
30
  this.index = e, this.total = r;
31
31
  }
@@ -42,12 +42,12 @@ class He {
42
42
  return this.index % 2 === 1;
43
43
  }
44
44
  }
45
- const ee = Symbol("isSignal"), te = Symbol("isProp"), re = Symbol("isComputed");
46
- var ue;
47
- ue = ee;
45
+ const Q = Symbol("isSignal"), ee = Symbol("isProp"), te = Symbol("isComputed");
46
+ var oe;
47
+ oe = Q;
48
48
  const E = class E {
49
49
  constructor(e, r) {
50
- a(this, ue, !0);
50
+ a(this, oe, !0);
51
51
  a(this, "_value");
52
52
  a(this, "_derivatives", []);
53
53
  a(this, "_onValueListeners", []);
@@ -70,7 +70,7 @@ const E = class E {
70
70
  this._disposed || (this._disposed = !0, this._onDisposeListeners.forEach((e) => e()), this._onDisposeListeners.length = 0, this._derivatives.length = 0);
71
71
  });
72
72
  a(this, "map", (e, r = (n, s) => n === s) => {
73
- const n = new D(() => {
73
+ const n = new T(() => {
74
74
  try {
75
75
  return e(this.get());
76
76
  } catch (s) {
@@ -80,7 +80,7 @@ const E = class E {
80
80
  return this.setDerivative(n), n;
81
81
  });
82
82
  a(this, "flatMap", (e, r = (n, s) => n === s) => {
83
- const n = new D(() => {
83
+ const n = new T(() => {
84
84
  try {
85
85
  return e(this.get()).get();
86
86
  } catch (s) {
@@ -93,7 +93,7 @@ const E = class E {
93
93
  a(this, "at", (e) => this.map((r) => r[e]));
94
94
  a(this, "filter", (e, r) => {
95
95
  let n = r ?? this.get();
96
- const s = new D(() => {
96
+ const s = new T(() => {
97
97
  try {
98
98
  const i = this.get();
99
99
  return n = e(i) ? i : n;
@@ -105,7 +105,7 @@ const E = class E {
105
105
  });
106
106
  a(this, "filterMap", (e, r, n = (s, i) => s === i) => {
107
107
  let s = r;
108
- const i = new D(() => {
108
+ const i = new T(() => {
109
109
  try {
110
110
  const o = this.get(), l = e(o);
111
111
  return s = l ?? s;
@@ -166,7 +166,7 @@ const E = class E {
166
166
  }), i;
167
167
  }
168
168
  static is(e) {
169
- return e != null && e[ee] === !0;
169
+ return e != null && e[Q] === !0;
170
170
  }
171
171
  static wrap(e, r = (n, s) => n === s) {
172
172
  return E.is(e) ? e : new E(e, r);
@@ -185,12 +185,12 @@ const E = class E {
185
185
  }
186
186
  };
187
187
  let d = E;
188
- const Ke = typeof queueMicrotask == "function" ? queueMicrotask : (t) => Promise.resolve().then(t);
189
- var ae, le;
190
- class D extends (le = d, ae = re, le) {
188
+ const He = typeof queueMicrotask == "function" ? queueMicrotask : (t) => Promise.resolve().then(t);
189
+ var ue, ae;
190
+ class T extends (ae = d, ue = te, ae) {
191
191
  constructor(r, n) {
192
192
  super(void 0, n);
193
- a(this, ae, !0);
193
+ a(this, ue, !0);
194
194
  a(this, "_isDirty", !1);
195
195
  a(this, "setDirty", () => {
196
196
  this._isDirty || this._disposed || (this._isDirty = !0, this._derivatives.forEach((r) => r.setDirty()), this.scheduleNotify());
@@ -198,7 +198,7 @@ class D extends (le = d, ae = re, le) {
198
198
  a(this, "_scheduleCount", 0);
199
199
  a(this, "scheduleNotify", () => {
200
200
  const r = ++this._scheduleCount;
201
- Ke(() => {
201
+ He(() => {
202
202
  this._scheduleCount !== r || this._disposed !== !1 || this._isDirty && (this._isDirty = !1, this._setAndNotify(this._fn(), !1));
203
203
  });
204
204
  });
@@ -206,17 +206,17 @@ class D extends (le = d, ae = re, le) {
206
206
  this._fn = r, this.setDirty();
207
207
  }
208
208
  static is(r) {
209
- return r != null && r[re] === !0;
209
+ return r != null && r[te] === !0;
210
210
  }
211
211
  get value() {
212
212
  return this.get();
213
213
  }
214
214
  }
215
- var ce, fe;
216
- class V extends (fe = d, ce = te, fe) {
215
+ var le, ce;
216
+ class V extends (ce = d, le = ee, ce) {
217
217
  constructor() {
218
218
  super(...arguments);
219
- a(this, ce, !0);
219
+ a(this, le, !0);
220
220
  a(this, "set", (r) => {
221
221
  this._setAndNotify(r, !1);
222
222
  });
@@ -234,7 +234,7 @@ class V extends (fe = d, ce = te, fe) {
234
234
  ));
235
235
  }
236
236
  static is(r) {
237
- return r != null && r[te] === !0;
237
+ return r != null && r[ee] === !0;
238
238
  }
239
239
  get value() {
240
240
  return this.get();
@@ -243,20 +243,20 @@ class V extends (fe = d, ce = te, fe) {
243
243
  this._setAndNotify(r, !1);
244
244
  }
245
245
  }
246
- function k(t, e, r = (n, s) => n === s) {
247
- const n = new D(t, r);
246
+ function U(t, e, r = (n, s) => n === s) {
247
+ const n = new T(t, r);
248
248
  return e.forEach((s) => s.setDerivative(n)), n;
249
249
  }
250
- function qt(t, e) {
251
- return k(t, e).dispose;
250
+ function Vt(t, e) {
251
+ return U(t, e).dispose;
252
252
  }
253
253
  function A(t, e = (r, n) => r === n) {
254
254
  return new V(t, e);
255
255
  }
256
- function Zt(t, e = (r, n) => r === n) {
256
+ function qt(t, e = (r, n) => r === n) {
257
257
  return new d(t, e);
258
258
  }
259
- class he {
259
+ class fe {
260
260
  constructor() {
261
261
  a(this, "_store", /* @__PURE__ */ new Map());
262
262
  a(this, "getItem", (e) => this._store.get(e) ?? null);
@@ -265,7 +265,7 @@ class he {
265
265
  });
266
266
  }
267
267
  }
268
- function de({
268
+ function he({
269
269
  key: t,
270
270
  defaultValue: e,
271
271
  store: r,
@@ -282,52 +282,52 @@ function de({
282
282
  r.setItem(t, n(c));
283
283
  }), u;
284
284
  }
285
- function Xt(t) {
286
- return de({
285
+ function Zt(t) {
286
+ return he({
287
287
  ...t,
288
- store: (window == null ? void 0 : window.localStorage) ?? new he()
288
+ store: (window == null ? void 0 : window.localStorage) ?? new fe()
289
289
  });
290
290
  }
291
- function Yt(t) {
292
- return de({
291
+ function Xt(t) {
292
+ return he({
293
293
  ...t,
294
- store: (window == null ? void 0 : window.sessionStorage) ?? new he()
294
+ store: (window == null ? void 0 : window.sessionStorage) ?? new fe()
295
295
  });
296
296
  }
297
- function ne(t) {
297
+ function re(t) {
298
298
  return typeof requestAnimationFrame == "function" ? requestAnimationFrame(t) : setTimeout(t, 0);
299
299
  }
300
- function Ue(t, e, r, n) {
301
- const s = (n == null ? void 0 : n.duration) ?? 300, i = (n == null ? void 0 : n.easing) ?? ((S) => S), o = (n == null ? void 0 : n.equals) ?? ((S, I) => S === I);
300
+ function Ke(t, e, r, n) {
301
+ const s = (n == null ? void 0 : n.duration) ?? 300, i = (n == null ? void 0 : n.easing) ?? ((v) => v), o = (n == null ? void 0 : n.equals) ?? ((v, I) => v === I);
302
302
  let l = n == null ? void 0 : n.interpolate, u = t, c = e(), p = performance.now(), m = null, h = !0;
303
- const _ = new D(e, o), y = A(t, o);
303
+ const P = new T(e, o), y = A(t, o);
304
304
  y.onDispose(() => {
305
305
  m !== null && cancelAnimationFrame(m);
306
- }), y.onDispose(_.dispose), r.forEach((S) => {
307
- S.setDerivative(_), S.onDispose(y.dispose);
306
+ }), y.onDispose(P.dispose), r.forEach((v) => {
307
+ v.setDerivative(P), v.onDispose(y.dispose);
308
308
  });
309
- const j = (S) => {
310
- c = S, p = performance.now(), u = y.value, h && (h = !1, m = ne(J));
311
- }, J = () => {
312
- const I = (performance.now() - p) / d.unwrap(s), Fe = i(I);
313
- l == null && (l = je(u));
314
- let G = l(u, c, Fe);
315
- I >= 1 ? (h = !0, G = c) : m = ne(J), y.set(G);
309
+ const j = (v) => {
310
+ c = v, p = performance.now(), u = y.value, h && (h = !1, m = re(B));
311
+ }, B = () => {
312
+ const I = (performance.now() - p) / d.unwrap(s), We = i(I);
313
+ l == null && (l = Ye(u));
314
+ let J = l(u, c, We);
315
+ I >= 1 ? (h = !0, J = c) : m = re(B), y.set(J);
316
316
  };
317
- return _.on(j), y;
317
+ return P.on(j), y;
318
318
  }
319
- function jt(t, e) {
319
+ function Yt(t, e) {
320
320
  const { initialValue: r, ...n } = e ?? {};
321
- return Ue(r ?? t.get(), t.get, [t], n);
321
+ return Ke(r ?? t.get(), t.get, [t], n);
322
322
  }
323
- function Ht(t, e) {
323
+ function jt(t, e) {
324
324
  const { signals: r, literals: n } = Object.entries(t).reduce(
325
325
  ({ signals: i, literals: o }, [l, u]) => (d.is(u) ? i.push([l, u]) : o[l] = u, { signals: i, literals: o }),
326
326
  { signals: [], literals: {} }
327
327
  ), s = r.map(([, i]) => i);
328
- return k(() => (r.forEach(([i, o]) => n[i] = o.value), e(n)), s);
328
+ return U(() => (r.forEach(([i, o]) => n[i] = o.value), e(n)), s);
329
329
  }
330
- function se(t) {
330
+ function ne(t) {
331
331
  let e = t.match(/rgba?\((\d+), (\d+), (\d+)(, (\d+))?\)/);
332
332
  return e != null ? [
333
333
  Number(e[1]),
@@ -349,7 +349,7 @@ function se(t) {
349
349
  "hsla"
350
350
  ] : [0, 0, 0, 1, "rgba"]));
351
351
  }
352
- function ie(t) {
352
+ function se(t) {
353
353
  const e = /^(inset\s)?(-?\d+)([a-zA-Z]*)(\s+)(-?\d+)([a-zA-Z]*)(?:\s+(-?\d+)([a-zA-Z]*))?(?:\s+(-?\d+)([a-zA-Z]*))?(?:\s+(-?\d+)([a-zA-Z]*))?(?:\s+)([a-zA-Z0-9(),.]+)$/i, r = t.match(e);
354
354
  if (r == null)
355
355
  return {
@@ -370,93 +370,93 @@ function ie(t) {
370
370
  color: u
371
371
  };
372
372
  }
373
- function ke(t) {
373
+ function Ue(t) {
374
374
  const { inset: e, x: r, y: n, blur: s, spread: i, color: o } = t;
375
375
  return `${e ? "inset " : ""}${r}px ${n}px ${s}px ${i}px ${o}`;
376
376
  }
377
- function Be(t) {
377
+ function ke(t) {
378
378
  return t[4] === "rgba" ? `rgba(${t[0]}, ${t[1]}, ${t[2]}, ${t[3]})` : t[4] === "hex" ? `#${t[0].toString(16).padStart(2, "0")}${t[1].toString(16).padStart(2, "0")}${t[2].toString(16).padStart(2, "0")}` : t[4] === "hsla" ? `hsla(${t[0]}, ${t[1]}%, ${t[2]}%, ${t[3]})` : "";
379
379
  }
380
- function Je(t, e) {
381
- const [r, n, s, i, o] = se(t), [l, u, c, p] = se(e);
380
+ function Be(t, e) {
381
+ const [r, n, s, i, o] = ne(t), [l, u, c, p] = ne(e);
382
382
  return (m) => {
383
- const h = r + (l - r) * m, _ = n + (u - n) * m, y = s + (c - s) * m, j = i + (p - i) * m;
384
- return Be([h, _, y, j, o]);
383
+ const h = r + (l - r) * m, P = n + (u - n) * m, y = s + (c - s) * m, j = i + (p - i) * m;
384
+ return ke([h, P, y, j, o]);
385
385
  };
386
386
  }
387
- function Kt(t, e) {
388
- const r = ie(t), n = ie(e);
387
+ function Ht(t, e) {
388
+ const r = se(t), n = se(e);
389
389
  return (s) => {
390
- const i = r.x + (n.x - r.x) * s, o = r.y + (n.y - r.y) * s, l = r.blur + (n.blur - r.blur) * s, u = r.spread + (n.spread - r.spread) * s, c = me(r.color, n.color)(s);
391
- return ke({ inset: r.inset, x: i, y: o, blur: l, spread: u, color: c });
390
+ const i = r.x + (n.x - r.x) * s, o = r.y + (n.y - r.y) * s, l = r.blur + (n.blur - r.blur) * s, u = r.spread + (n.spread - r.spread) * s, c = pe(r.color, n.color)(s);
391
+ return Ue({ inset: r.inset, x: i, y: o, blur: l, spread: u, color: c });
392
392
  };
393
393
  }
394
- function Ge(t, e) {
394
+ function Je(t, e) {
395
395
  var r, n, s, i, o, l, u, c;
396
396
  return e === "translateX" ? new WebKitCSSMatrix(t.transform).m41 : e === "translateY" ? new WebKitCSSMatrix(t.transform).m42 : e === "translateZ" ? new WebKitCSSMatrix(t.transform).m43 : e === "rotateX" ? new WebKitCSSMatrix(t.transform).m12 : e === "rotateY" ? new WebKitCSSMatrix(t.transform).m21 : e === "rotateZ" ? new WebKitCSSMatrix(t.transform).m31 : e === "scaleX" ? new WebKitCSSMatrix(t.transform).m11 : e === "scaleY" ? new WebKitCSSMatrix(t.transform).m22 : e === "scaleZ" ? new WebKitCSSMatrix(t.transform).m33 : e === "skewX" ? new WebKitCSSMatrix(t.transform).m13 : e === "skewY" ? new WebKitCSSMatrix(t.transform).m23 : Number(e === "grayScale" ? (r = t.filter.match(/grayscale\((\d+)%\)/)) == null ? void 0 : r[1] : e === "sepia" ? (n = t.filter.match(/sepia\((\d+)%\)/)) == null ? void 0 : n[1] : e === "saturate" ? (s = t.filter.match(/saturate\((\d+)%\)/)) == null ? void 0 : s[1] : e === "hueRotate" ? (i = t.filter.match(/hue-rotate\((\d+)deg\)/)) == null ? void 0 : i[1] : e === "invert" ? (o = t.filter.match(/invert\((\d+)%\)/)) == null ? void 0 : o[1] : e === "brightness" ? (l = t.filter.match(/brightness\((\d+)%\)/)) == null ? void 0 : l[1] : e === "contrast" ? (u = t.filter.match(/contrast\((\d+)%\)/)) == null ? void 0 : u[1] : e === "blur" ? (c = t.filter.match(/blur\((\d+)px\)/)) == null ? void 0 : c[1] : t.getPropertyValue(e));
397
397
  }
398
- function Ut(t, e) {
398
+ function Kt(t, e) {
399
399
  const r = {}, n = getComputedStyle(t);
400
400
  for (const [s, i] of Object.entries(e)) {
401
401
  const o = s;
402
- i != null && (r[o] = Ge(n, o));
402
+ i != null && (r[o] = Je(n, o));
403
403
  }
404
404
  return r;
405
405
  }
406
- function R(t, e, r) {
406
+ function x(t, e, r) {
407
407
  r != null && (e === "translateX" ? t.style.transform += ` translateX(${r}px)` : e === "translateY" ? t.style.transform += ` translateY(${r}px)` : e === "translateZ" ? t.style.transform += ` translateZ(${r}px)` : e === "rotateX" ? t.style.transform += ` rotateX(${r}deg)` : e === "rotateY" ? t.style.transform += ` rotateY(${r}deg)` : e === "rotateZ" ? t.style.transform += ` rotateZ(${r}deg)` : e === "scaleX" ? t.style.transform += ` scaleX(${r})` : e === "scaleY" ? t.style.transform += ` scaleY(${r})` : e === "scaleZ" ? t.style.transform += ` scaleZ(${r})` : e === "skewX" ? t.style.transform += ` skewX(${r}deg)` : e === "skewY" ? t.style.transform += ` skewY(${r}deg)` : e === "grayScale" ? t.style.filter += ` grayscale(${r}%)` : e === "sepia" ? t.style.filter += ` sepia(${r}%)` : e === "saturate" ? t.style.filter += ` saturate(${r}%)` : e === "hueRotate" ? t.style.filter += ` hue-rotate(${r}deg)` : e === "invert" ? t.style.filter += ` invert(${r}%)` : e === "brightness" ? t.style.filter += ` brightness(${r}%)` : e === "contrast" ? t.style.filter += ` contrast(${r}%)` : e === "blur" && (t.style.filter += ` blur(${r}px)`), t.style.setProperty(e, String(r)));
408
408
  }
409
409
  const H = /* @__PURE__ */ new Map();
410
- function pe(t, e, r) {
410
+ function de(t, e, r) {
411
411
  if (H.has(r + ":" + t + e))
412
412
  return H.get(t + e);
413
- const n = Je(t, e);
413
+ const n = Be(t, e);
414
414
  return H.set(r + ":" + t + e, n), n;
415
415
  }
416
- function me(t, e) {
417
- return pe(t, e, "c");
416
+ function pe(t, e) {
417
+ return de(t, e, "c");
418
418
  }
419
- function Qe(t, e) {
420
- return pe(t, e, "s");
419
+ function Ge(t, e) {
420
+ return de(t, e, "s");
421
421
  }
422
- function et(t, e, r, n, s) {
422
+ function Qe(t, e, r, n, s) {
423
423
  if (r != null && n != null) {
424
424
  if (typeof r == "number" && typeof n == "number") {
425
425
  const i = r + (n - r) * s;
426
- R(t, e, i);
426
+ x(t, e, i);
427
427
  } else if (e === "boxShadow" || e === "textShadow") {
428
- const i = Qe(
428
+ const i = Ge(
429
429
  r,
430
430
  n
431
431
  )(s);
432
- R(t, e, i);
432
+ x(t, e, i);
433
433
  } else if (e === "color" || e === "backgroundColor" || e === "borderColor" || e === "outlineColor") {
434
- const i = me(
434
+ const i = pe(
435
435
  r,
436
436
  n
437
437
  )(s);
438
- R(t, e, i);
438
+ x(t, e, i);
439
439
  }
440
440
  }
441
441
  }
442
- function kt(t, e, r, n) {
442
+ function Ut(t, e, r, n) {
443
443
  t.style.transform = "", t.style.filter = "";
444
444
  for (const [s, i] of Object.entries(r)) {
445
445
  const o = s;
446
- et(t, o, e[o], i, n);
446
+ Qe(t, o, e[o], i, n);
447
447
  }
448
448
  }
449
- function Bt(t, e) {
449
+ function kt(t, e) {
450
450
  t.style.transform = "", t.style.filter = "";
451
451
  for (const [r, n] of Object.entries(e))
452
- n != null && R(t, r, n);
452
+ n != null && x(t, r, n);
453
453
  }
454
- const ge = /* @__PURE__ */ new Set(["checked", "disabled", "hidden", "selected"]), we = /* @__PURE__ */ new Set([
454
+ const me = /* @__PURE__ */ new Set(["checked", "disabled", "hidden", "selected"]), ge = /* @__PURE__ */ new Set([
455
455
  "rowSpan",
456
456
  "colSpan",
457
457
  "tabIndex",
458
458
  "valueAsNumber"
459
- ]), be = /* @__PURE__ */ new Set(["valueAsDate"]), Se = /* @__PURE__ */ new Set([
459
+ ]), Se = /* @__PURE__ */ new Set(["valueAsDate"]), we = /* @__PURE__ */ new Set([
460
460
  "value",
461
461
  "textContent",
462
462
  "innerText",
@@ -465,7 +465,7 @@ const ge = /* @__PURE__ */ new Set(["checked", "disabled", "hidden", "selected"]
465
465
  "className",
466
466
  "classList"
467
467
  ]), K = /* @__PURE__ */ new Map();
468
- function C(t, e) {
468
+ function M(t, e) {
469
469
  if (K.has(t))
470
470
  return K.get(t);
471
471
  {
@@ -473,38 +473,38 @@ function C(t, e) {
473
473
  return K.set(t, r), r;
474
474
  }
475
475
  }
476
- function tt(t) {
476
+ function et(t) {
477
477
  return (e, r) => {
478
478
  r == null ? e[t] = null : e[t] = !!r;
479
479
  };
480
480
  }
481
- function rt(t) {
481
+ function tt(t) {
482
482
  return (e, r) => {
483
483
  r == null ? e[t] = null : e[t] = Number(r);
484
484
  };
485
485
  }
486
- function nt(t) {
486
+ function rt(t) {
487
487
  return (e, r) => {
488
488
  r == null ? e[t] = null : e[t] = r;
489
489
  };
490
490
  }
491
- function st(t) {
491
+ function nt(t) {
492
492
  return (e, r) => {
493
493
  r == null ? e[t] = null : e[t] = String(r);
494
494
  };
495
495
  }
496
- function it(t) {
496
+ function st(t) {
497
497
  return (e, r) => {
498
498
  r == null ? e.removeAttribute(t) : e.setAttribute(t, r);
499
499
  };
500
500
  }
501
- function ve(t) {
502
- return ge.has(t) ? C(t, tt) : we.has(t) ? C(t, rt) : be.has(t) ? C(t, nt) : Se.has(t) ? C(t, st) : C(t, it);
501
+ function be(t) {
502
+ return me.has(t) ? M(t, et) : ge.has(t) ? M(t, tt) : Se.has(t) ? M(t, rt) : we.has(t) ? M(t, nt) : M(t, st);
503
503
  }
504
- function Ae(t) {
505
- return (e) => ge.has(t) ? !!e[t] : we.has(t) ? Number(e[t]) : be.has(t) ? e[t] : Se.has(t) ? String(e[t]) : e.getAttribute(t);
504
+ function ve(t) {
505
+ return (e) => me.has(t) ? !!e[t] : ge.has(t) ? Number(e[t]) : Se.has(t) ? e[t] : we.has(t) ? String(e[t]) : e.getAttribute(t);
506
506
  }
507
- class v {
507
+ class _ {
508
508
  /**
509
509
  * Constructs a new `DOMContext` instance.
510
510
  *
@@ -552,18 +552,18 @@ class v {
552
552
  * @param document - The `Document` to use for the `DOMContext`.
553
553
  * @returns A new `DOMContext` instance.
554
554
  */
555
- a(this, "withDocument", (e) => new v(e, this.element, this.reference, this.providers, !0));
555
+ a(this, "withDocument", (e) => new _(e, this.element, this.reference, this.providers, !0));
556
556
  /**
557
557
  * Creates a new `DOMContext` instance with the provided `element`.
558
558
  * @param element - The DOM element to use in the new `DOMContext` instance.
559
559
  * @returns A new `DOMContext` instance with the provided `element`.
560
560
  */
561
- a(this, "withElement", (e) => new v(this.document, e, void 0, this.providers, !1));
561
+ a(this, "withElement", (e) => new _(this.document, e, void 0, this.providers, !1));
562
562
  /**
563
563
  * Creates a new `DOMContext` instance with the `isFirstLevel` property set to `true`.
564
564
  * @returns A new `DOMContext` instance with the `isFirstLevel` property set to `true`.
565
565
  */
566
- a(this, "withFirstLevel", () => new v(
566
+ a(this, "withFirstLevel", () => new _(
567
567
  this.document,
568
568
  this.element,
569
569
  this.reference,
@@ -576,7 +576,7 @@ class v {
576
576
  * @param reference - The optional `Text` node to use as the reference for the new `DOMContext`.
577
577
  * @returns A new `DOMContext` instance with the specified reference.
578
578
  */
579
- a(this, "withReference", (e) => new v(
579
+ a(this, "withReference", (e) => new _(
580
580
  this.document,
581
581
  this.element,
582
582
  e,
@@ -589,7 +589,7 @@ class v {
589
589
  * @param value - The value to set for the provider.
590
590
  * @returns A new DOMContext with the updated providers.
591
591
  */
592
- a(this, "withProvider", (e, r) => new v(
592
+ a(this, "withProvider", (e, r) => new _(
593
593
  this.document,
594
594
  this.element,
595
595
  this.reference,
@@ -606,7 +606,7 @@ class v {
606
606
  * @param providers - An object containing the providers to be merged into the existing providers.
607
607
  * @returns A new DOMContext instance with the merged providers.
608
608
  */
609
- a(this, "withProviders", (e) => new v(
609
+ a(this, "withProviders", (e) => new _(
610
610
  this.document,
611
611
  this.element,
612
612
  this.reference,
@@ -638,20 +638,20 @@ class v {
638
638
  * @returns A new `DOMContext` instance.
639
639
  */
640
640
  static of(e, r) {
641
- return new v(e.ownerDocument, e, r, {}, !0);
641
+ return new _(e.ownerDocument, e, r, {}, !0);
642
642
  }
643
643
  }
644
644
  function b(t) {
645
645
  const e = t;
646
646
  e && e.onblur && (e.onblur = null), !(!t || t.ownerDocument === void 0) && t.parentElement && t.parentElement.removeChild(t);
647
647
  }
648
- function ot(t) {
649
- return ye(t) ? t : t.parentElement;
648
+ function it(t) {
649
+ return _e(t) ? t : t.parentElement;
650
650
  }
651
- function ye(t) {
651
+ function _e(t) {
652
652
  return t.nodeType === 1;
653
653
  }
654
- function ut(t, e, r) {
654
+ function ot(t, e, r) {
655
655
  let n = t.target;
656
656
  for (; n != null && !(n instanceof HTMLAnchorElement); )
657
657
  n = n.parentElement;
@@ -666,24 +666,24 @@ function ut(t, e, r) {
666
666
  }
667
667
  return !1;
668
668
  }
669
- const Jt = (t, e = {
669
+ const Bt = (t, e = {
670
670
  checkExtension: !0,
671
671
  checkExternalUrl: !0
672
672
  }) => (r) => {
673
673
  const { checkExtension: n, checkExternalUrl: s } = e;
674
- ut(
674
+ ot(
675
675
  r,
676
676
  n === !0,
677
677
  s === !0
678
678
  ) || t() && r.preventDefault();
679
- }, Ee = (t) => (e) => {
680
- $e(e);
679
+ }, Ae = (t) => (e) => {
680
+ Ne(e);
681
681
  const r = e.createText(t);
682
682
  return e.appendOrInsert(r), (n) => {
683
683
  n && b(r);
684
684
  };
685
- }, _e = (t) => (e) => {
686
- $e(e);
685
+ }, ye = (t) => (e) => {
686
+ Ne(e);
687
687
  const r = e.createText(t.value);
688
688
  e.appendOrInsert(r);
689
689
  const n = t.on((s) => r.data = s);
@@ -691,19 +691,19 @@ const Jt = (t, e = {
691
691
  n(), s && b(r);
692
692
  };
693
693
  };
694
- function Gt(t) {
695
- return d.is(t) ? _e(t) : Ee(t);
694
+ function Jt(t) {
695
+ return d.is(t) ? ye(t) : Ae(t);
696
696
  }
697
- const g = (...t) => (e) => {
697
+ const S = (...t) => (e) => {
698
698
  const r = t.map((n) => f(n)(e));
699
699
  return (n) => {
700
700
  r.forEach((s) => s(n));
701
701
  };
702
702
  }, w = () => () => {
703
- }, at = (t) => (e) => (Me(e), e.element.classList.add(...t), (r) => {
703
+ }, ut = (t) => (e) => (Ce(e), e.element.classList.add(...t), (r) => {
704
704
  r && e.element.classList.remove(...t);
705
- }), lt = (t) => (e) => {
706
- Me(e);
705
+ }), at = (t) => (e) => {
706
+ Ce(e);
707
707
  const r = e.element;
708
708
  let n = [];
709
709
  const s = t.on((i) => {
@@ -713,27 +713,27 @@ const g = (...t) => (e) => {
713
713
  s(), i && n.forEach((o) => r.classList.remove(o)), n.length = 0;
714
714
  };
715
715
  }, q = (t, e) => {
716
- const r = ve(t), n = Ae(t);
716
+ const r = be(t), n = ve(t);
717
717
  return (s) => {
718
- Ce(s, t);
718
+ Te(s, t);
719
719
  const i = n(s.element);
720
720
  return r(s.element, e), (o) => {
721
721
  o && r(s.element, i);
722
722
  };
723
723
  };
724
724
  }, Z = (t, e) => {
725
- const r = ve(t), n = Ae(t);
725
+ const r = be(t), n = ve(t);
726
726
  return (s) => {
727
- Ce(s, t);
727
+ Te(s, t);
728
728
  const i = n(s.element);
729
729
  return e.on((o) => r(s.element, o)), (o) => {
730
730
  o && r(s.element, i);
731
731
  };
732
732
  };
733
- }, P = new Proxy(
733
+ }, D = new Proxy(
734
734
  {},
735
735
  {
736
- get: (t, e) => e === "class" ? (r) => d.is(r) ? lt(r) : at(
736
+ get: (t, e) => e === "class" ? (r) => d.is(r) ? at(r) : ut(
737
737
  (r ?? "").split(" ").filter((n) => n.length > 0)
738
738
  ) : (r) => d.is(r) ? Z(
739
739
  e,
@@ -743,7 +743,7 @@ const g = (...t) => (e) => {
743
743
  r
744
744
  )
745
745
  }
746
- ), Qt = new Proxy(
746
+ ), Gt = new Proxy(
747
747
  {},
748
748
  {
749
749
  get: (t, e) => (r) => d.is(r) ? Z(
@@ -754,7 +754,7 @@ const g = (...t) => (e) => {
754
754
  r
755
755
  )
756
756
  }
757
- ), er = new Proxy(
757
+ ), Qt = new Proxy(
758
758
  {},
759
759
  {
760
760
  get: (t, e) => (r) => d.is(r) ? Z(
@@ -765,7 +765,7 @@ const g = (...t) => (e) => {
765
765
  r
766
766
  )
767
767
  }
768
- ), tr = new Proxy(
768
+ ), er = new Proxy(
769
769
  {},
770
770
  {
771
771
  get: (t, e) => (r) => d.is(r) ? Z(
@@ -778,114 +778,121 @@ const g = (...t) => (e) => {
778
778
  }
779
779
  );
780
780
  function f(t) {
781
- return t == null ? w : Array.isArray(t) ? g(...t.map(f)) : typeof t == "string" ? Ee(t) : d.is(t) ? _e(t) : t;
781
+ return t == null ? w : Array.isArray(t) ? S(...t.map(f)) : typeof t == "string" ? Ae(t) : d.is(t) ? ye(t) : t;
782
782
  }
783
- function Pe(t, ...e) {
783
+ function Ee(t, ...e) {
784
784
  return (r) => {
785
785
  const n = r.createElement(t, void 0);
786
- r.isFirstLevel && T.isSSR() && Ne(n), r.appendOrInsert(n), r = r.withElement(n);
786
+ r.isFirstLevel && C.isSSR() && Me(n), r.appendOrInsert(n), r = r.withElement(n);
787
787
  const s = e.map((i) => f(i)(r));
788
788
  return (i) => {
789
789
  s.forEach((o) => o(!1)), i && b(n);
790
790
  };
791
791
  };
792
792
  }
793
- function De(t, e, ...r) {
793
+ function Pe(t, e, ...r) {
794
794
  return (n) => {
795
795
  const s = n.createElement(t, e);
796
- n.isFirstLevel && T.isSSR() && Ne(s), n.appendOrInsert(s), n = n.withElement(s);
796
+ n.isFirstLevel && C.isSSR() && Me(s), n.appendOrInsert(s), n = n.withElement(s);
797
797
  const i = r.map((o) => f(o)(n));
798
798
  return (o) => {
799
799
  i.forEach((l) => l(!1)), o && b(s);
800
800
  };
801
801
  };
802
802
  }
803
- const rr = new Proxy(
803
+ const tr = new Proxy(
804
804
  {},
805
805
  {
806
- get: (t, e) => (...r) => Pe(e, r.flatMap(f))
806
+ get: (t, e) => (...r) => Ee(e, r.flatMap(f))
807
807
  }
808
- ), nr = new Proxy(
808
+ ), rr = new Proxy(
809
809
  {},
810
810
  {
811
- get: (t, e) => (...r) => Pe("input", P.type(e), ...r)
811
+ get: (t, e) => (...r) => Ee("input", D.type(e), ...r)
812
812
  }
813
- ), ct = "http://www.w3.org/2000/svg", sr = new Proxy(
813
+ ), lt = "http://www.w3.org/2000/svg", nr = new Proxy(
814
814
  {},
815
815
  {
816
- get: (t, e) => (...r) => De(e, ct, r.flatMap(f))
816
+ get: (t, e) => (...r) => Pe(e, lt, r.flatMap(f))
817
817
  }
818
- ), ft = "http://www.w3.org/1998/Math/MathML", ir = new Proxy(
818
+ ), ct = "http://www.w3.org/1998/Math/MathML", sr = new Proxy(
819
819
  {},
820
820
  {
821
- get: (t, e) => (...r) => De(e, ft, r.flatMap(f))
821
+ get: (t, e) => (...r) => Pe(e, ct, r.flatMap(f))
822
822
  }
823
- ), M = "data-tempo-attr", x = "data-tempo-class", Te = "data-tempo-node", W = "data-tempo-text";
824
- function ht(t, e) {
823
+ ), N = "data-tempo-attr", W = "data-tempo-class", De = "data-tempo-node", F = "data-tempo-text";
824
+ function ft(t, e) {
825
825
  const r = t.getAttribute(e);
826
826
  if (r != null) {
827
- const n = t.getAttribute(M) ?? "{}", s = { ...JSON.parse(n), name: r };
828
- t.setAttribute(M, JSON.stringify(s));
827
+ const n = t.getAttribute(N) ?? "{}", s = { ...JSON.parse(n), name: r };
828
+ t.setAttribute(N, JSON.stringify(s));
829
829
  }
830
830
  }
831
- function Ce(t, e) {
832
- T.isSSR() && t.isFirstLevel && ht(t.element, e);
831
+ function Te(t, e) {
832
+ C.isSSR() && t.isFirstLevel && ft(t.element, e);
833
833
  }
834
- function dt(t) {
835
- t.querySelectorAll(`[${M}]`).forEach((e) => {
836
- const r = JSON.parse(e.getAttribute(M) ?? "{}");
834
+ function ht(t) {
835
+ t.querySelectorAll(`[${N}]`).forEach((e) => {
836
+ const r = JSON.parse(e.getAttribute(N) ?? "{}");
837
837
  for (const [n, s] of Object.entries(r))
838
838
  e.setAttribute(n, s);
839
- e.removeAttribute(M);
839
+ e.removeAttribute(N);
840
840
  });
841
841
  }
842
- function pt(t) {
843
- t.setAttribute(x, t.className);
842
+ function dt(t) {
843
+ t.setAttribute(W, t.className);
844
844
  }
845
- function Me(t) {
846
- T.isSSR() && t.isFirstLevel && pt(t.element);
845
+ function Ce(t) {
846
+ C.isSSR() && t.isFirstLevel && dt(t.element);
847
847
  }
848
- function mt(t) {
849
- t.querySelectorAll(`[${x}]`).forEach((e) => {
850
- const r = e.getAttribute(x);
851
- r !== null && (e.className = r, e.removeAttribute(x));
848
+ function pt(t) {
849
+ t.querySelectorAll(`[${W}]`).forEach((e) => {
850
+ const r = e.getAttribute(W);
851
+ r !== null && (e.className = r, e.removeAttribute(W));
852
852
  });
853
853
  }
854
- function Ne(t) {
855
- t.setAttribute(Te, "");
854
+ function Me(t) {
855
+ t.setAttribute(De, "");
856
856
  }
857
- function gt(t) {
858
- t.querySelectorAll(`[${Te}]`).forEach((e) => {
857
+ function mt(t) {
858
+ t.querySelectorAll(`[${De}]`).forEach((e) => {
859
859
  b(e);
860
860
  });
861
861
  }
862
- function wt(t) {
863
- t.setAttribute(W, t.textContent ?? "");
864
- }
865
- function $e(t) {
866
- T.isSSR() && t.isFirstLevel && wt(t.element);
862
+ function gt(t) {
863
+ t.setAttribute(F, t.textContent ?? "");
867
864
  }
868
- function bt(t) {
869
- t.querySelectorAll(`[${W}]`).forEach((e) => {
870
- e.textContent = e.getAttribute(W), e.removeAttribute(W);
871
- });
865
+ function Ne(t) {
866
+ C.isSSR() && t.isFirstLevel && gt(t.element);
872
867
  }
873
868
  function St(t) {
874
- gt(t), mt(t), dt(t), bt(t);
869
+ t.querySelectorAll(`[${F}]`).forEach((e) => {
870
+ e.textContent = e.getAttribute(F), e.removeAttribute(F);
871
+ });
875
872
  }
876
- let F = !1, U = 0;
877
- const or = (t = 30) => (F = !0, new Promise((e, r) => {
873
+ function wt(t) {
874
+ mt(t), pt(t), ht(t), St(t);
875
+ }
876
+ const g = window;
877
+ g.__tempoSSR__ == null && (g.__tempoSSR__ = {
878
+ isSSR: !1,
879
+ counter: 0
880
+ });
881
+ const ir = (t = 30) => (g.__tempoSSR__.isSSR = !0, new Promise((e, r) => {
878
882
  let n;
879
883
  const s = setInterval(() => {
880
- U <= 0 && (clearInterval(s), clearTimeout(n), F = !1, e());
884
+ g.__tempoSSR__.counter <= 0 && (clearInterval(s), clearTimeout(n), g.__tempoSSR__.isSSR = !1, e());
881
885
  }, 30);
882
886
  n = setTimeout(() => {
883
- clearInterval(s), F = !1, r(new Error("SSR Timeout"));
887
+ clearInterval(s), g.__tempoSSR__.isSSR = !1, r(new Error("SSR Timeout"));
884
888
  }, t * 1e3);
885
- })), T = {
886
- useDone: (t) => (U++, f(t(() => U--))),
887
- isSSR: () => F
888
- }, Le = (t, e) => (r) => {
889
+ })), C = {
890
+ useDone: (t) => (g.__tempoSSR__.counter++, f(t(() => g.__tempoSSR__.counter--))),
891
+ isSSR: () => {
892
+ var t;
893
+ return ((t = g == null ? void 0 : g.__tempoSSR__) == null ? void 0 : t.isSSR) === !0;
894
+ }
895
+ }, $e = (t, e) => (r) => {
889
896
  const n = Object.values(t).reduce((s, i) => {
890
897
  const o = r.getProvider(i);
891
898
  if (o == null)
@@ -893,7 +900,7 @@ const or = (t = 30) => (F = !0, new Promise((e, r) => {
893
900
  return s[i] = o, s;
894
901
  }, {});
895
902
  return f(e(n))(r);
896
- }, ur = (t, e) => (r) => {
903
+ }, or = (t, e) => (r) => {
897
904
  const n = [], s = Object.entries(t).reduce(
898
905
  (i, [o, l]) => (n.push(
899
906
  l((u) => (Reflect.set(i, o, u), null))(r)
@@ -903,11 +910,11 @@ const or = (t = 30) => (F = !0, new Promise((e, r) => {
903
910
  return n.push(e(s)(r)), (i) => {
904
911
  n.forEach((o) => o(i));
905
912
  };
906
- }, vt = (t, e) => Le([t], (r) => f(e(r[t]))), ar = (t, e) => Le(t, (r) => f(e(r))), $ = (t) => (e) => (r) => t(r, e);
907
- function At(t) {
913
+ }, bt = (t, e) => $e([t], (r) => f(e(r[t]))), ur = (t, e) => $e(t, (r) => f(e(r))), R = (t) => (e) => (r) => t(r, e);
914
+ function vt(t) {
908
915
  return Symbol(t);
909
916
  }
910
- const Ie = (t, e) => (r) => f(e)(r.withProviders(t)), lr = (...t) => t.length > 0 ? t.reduceRight((e, r) => (n) => e(r(n))) : f, yt = (t, e, r) => Ie({ [t]: e }, f(r)), cr = (t, e) => Ie(t, f(e)), oe = At("Appearance"), fr = {
917
+ const Re = (t, e) => (r) => f(e)(r.withProviders(t)), ar = (...t) => t.length > 0 ? t.reduceRight((e, r) => (n) => e(r(n))) : f, _t = (t, e, r) => Re({ [t]: e }, f(r)), lr = (t, e) => Re(t, f(e)), ie = vt("Appearance"), cr = {
911
918
  /**
912
919
  * Provides a child component with an appearance context, which can be used to
913
920
  * determine the current appearance (light or dark) based on the user's system
@@ -923,9 +930,9 @@ const Ie = (t, e) => (r) => f(e)(r.withProviders(t)), lr = (...t) => t.length >
923
930
  const e = window.matchMedia != null && window.matchMedia("(prefers-color-scheme: dark)").matches, r = A(e ? "dark" : "light"), n = (i) => {
924
931
  r.set(i.matches ? "dark" : "light");
925
932
  }, s = window.matchMedia != null ? window.matchMedia("(prefers-color-scheme: dark)") : void 0;
926
- return s == null || s.addEventListener("change", n), g(
927
- yt(oe, r, t),
928
- $(() => s == null ? void 0 : s.removeEventListener("change", n))
933
+ return s == null || s.addEventListener("change", n), S(
934
+ _t(ie, r, t),
935
+ R(() => s == null ? void 0 : s.removeEventListener("change", n))
929
936
  );
930
937
  },
931
938
  /**
@@ -935,10 +942,10 @@ const Ie = (t, e) => (r) => f(e)(r.withProviders(t)), lr = (...t) => t.length >
935
942
  * @param fn - A function that accepts the `AppearanceType` signal and returns a `Child` element.
936
943
  * @returns The `Child` element returned by the provided function.
937
944
  */
938
- consume: (t) => vt(oe, t)
939
- }, Oe = (t, e) => {
945
+ consume: (t) => bt(ie, t)
946
+ }, Le = (t, e) => {
940
947
  if (typeof e == "function")
941
- return Oe(t, { then: e });
948
+ return Le(t, { then: e });
942
949
  const r = e.pending != null ? f(e.pending) : w, n = e.then, s = e.error != null ? (i) => f(e.error(i)) : () => w;
943
950
  return (i) => {
944
951
  let o = !0;
@@ -956,13 +963,13 @@ const Ie = (t, e) => (r) => f(e)(r.withProviders(t)), lr = (...t) => t.length >
956
963
  o = !1, u(c), c && i.reference && b(i.reference);
957
964
  };
958
965
  };
959
- }, hr = (t, e) => Oe(() => t, e), dr = (t = 10) => (e) => {
966
+ }, fr = (t, e) => Le(() => t, e), hr = (t = 10) => (e) => {
960
967
  const r = setTimeout(() => {
961
968
  var n;
962
969
  (n = e.element) == null || n.focus();
963
970
  }, t);
964
971
  return (n) => clearTimeout(r);
965
- }, pr = (t = 10) => (e) => {
972
+ }, dr = (t = 10) => (e) => {
966
973
  const r = setTimeout(() => {
967
974
  var n;
968
975
  (n = e.element) == null || n.select();
@@ -970,9 +977,9 @@ const Ie = (t, e) => (r) => f(e)(r.withProviders(t)), lr = (...t) => t.length >
970
977
  return (n) => {
971
978
  clearTimeout(r);
972
979
  };
973
- }, Re = (t, e) => (r) => (r.element.addEventListener(t, e), (n) => {
980
+ }, Ie = (t, e) => (r) => (r.element.addEventListener(t, e), (n) => {
974
981
  n && r.element.removeEventListener(t, e);
975
- }), Et = (t) => Re("click", (e) => {
982
+ }), At = (t) => Ie("click", (e) => {
976
983
  e.preventDefault();
977
984
  const r = e.target;
978
985
  setTimeout(() => {
@@ -982,7 +989,7 @@ const Ie = (t, e) => (r) => f(e)(r.withProviders(t)), lr = (...t) => t.length >
982
989
  }), X = new Proxy(
983
990
  {},
984
991
  {
985
- get: (t, e) => (r) => Re(e, r)
992
+ get: (t, e) => (r) => Ie(e, r)
986
993
  }
987
994
  ), Y = {
988
995
  value: (t) => (e) => {
@@ -1029,36 +1036,36 @@ const Ie = (t, e) => (r) => f(e)(r.withProviders(t)), lr = (...t) => t.length >
1029
1036
  e.stopImmediatePropagation(), t();
1030
1037
  }
1031
1038
  };
1032
- function _t(t, e = "input") {
1033
- return g(
1034
- P.valueAsDate(t),
1039
+ function yt(t, e = "input") {
1040
+ return S(
1041
+ D.valueAsDate(t),
1035
1042
  X[e](Y.valueAsDate(t.set))
1036
1043
  );
1037
1044
  }
1038
- function Pt(t, e = "input") {
1039
- return g(
1040
- P.valueAsDate(t),
1045
+ function Et(t, e = "input") {
1046
+ return S(
1047
+ D.valueAsDate(t),
1041
1048
  X[e](Y.valueAsDateTime(t.set))
1042
1049
  );
1043
1050
  }
1044
- function Dt(t, e = "input") {
1045
- return g(
1046
- P.valueAsNumber(t),
1051
+ function Pt(t, e = "input") {
1052
+ return S(
1053
+ D.valueAsNumber(t),
1047
1054
  X[e](Y.valueAsNumber(t.set))
1048
1055
  );
1049
1056
  }
1050
- function Tt(t, e = "input") {
1051
- return g(P.value(t), X[e](Y.value(t.set)));
1057
+ function Dt(t, e = "input") {
1058
+ return S(D.value(t), X[e](Y.value(t.set)));
1052
1059
  }
1053
- function Ct(t) {
1054
- return g(P.checked(t), Et(t.set));
1060
+ function Tt(t) {
1061
+ return S(D.checked(t), At(t.set));
1055
1062
  }
1056
- const mr = {
1057
- date: _t,
1058
- dateTime: Pt,
1059
- number: Dt,
1060
- text: Tt,
1061
- checked: Ct
1063
+ const pr = {
1064
+ date: yt,
1065
+ dateTime: Et,
1066
+ number: Pt,
1067
+ text: Dt,
1068
+ checked: Tt
1062
1069
  }, O = (t, e) => (r) => {
1063
1070
  r = r.makeRef();
1064
1071
  let n, s;
@@ -1094,7 +1101,7 @@ const mr = {
1094
1101
  t.map((r) => ({ [r]: !0 })),
1095
1102
  e
1096
1103
  )
1097
- }, gr = (t, e) => (r) => {
1104
+ }, mr = (t, e) => (r) => {
1098
1105
  const n = (e == null ? void 0 : e.firstSeparator) ?? w, s = (e == null ? void 0 : e.lastSeparator) ?? w;
1099
1106
  return L.value(
1100
1107
  r.map((i) => i.isFirst ? "first" : i.isLast ? "last" : "other"),
@@ -1104,9 +1111,9 @@ const mr = {
1104
1111
  other: () => t
1105
1112
  }
1106
1113
  );
1107
- }, wr = (t) => (e) => t(e)(e), br = (t) => (e) => (e.appendOrInsert(t), (r) => {
1114
+ }, gr = (t) => (e) => t(e)(e), Sr = (t) => (e) => (e.appendOrInsert(t), (r) => {
1108
1115
  r && b(t);
1109
- }), Mt = (t, e, r) => (n) => {
1116
+ }), Ct = (t, e, r) => (n) => {
1110
1117
  n = n.makeRef();
1111
1118
  let s = null, i = !1;
1112
1119
  const o = A(null), l = t.on((u) => {
@@ -1115,10 +1122,10 @@ const mr = {
1115
1122
  return (u) => {
1116
1123
  l(), s == null || s(u), u && n.reference && b(n.reference);
1117
1124
  };
1118
- }, xe = (t, e, r) => r != null ? xe(t, (n) => {
1125
+ }, Oe = (t, e, r) => r != null ? Oe(t, (n) => {
1119
1126
  const s = n.map((i) => i.isLast ? "last" : "other");
1120
- return g(
1121
- $(() => s.dispose()),
1127
+ return S(
1128
+ R(() => s.dispose()),
1122
1129
  f(e(n)),
1123
1130
  L.value(s, {
1124
1131
  last: () => w,
@@ -1129,7 +1136,7 @@ const mr = {
1129
1136
  n = n.makeRef();
1130
1137
  const s = t.map(
1131
1138
  (u) => Array.from({ length: u }, (c, p) => p).map(
1132
- (c) => new He(c, u)
1139
+ (c) => new je(c, u)
1133
1140
  )
1134
1141
  ), i = [], o = [], l = s.on((u) => {
1135
1142
  var p, m;
@@ -1139,18 +1146,18 @@ const mr = {
1139
1146
  for (let h = 0; h < c; h++)
1140
1147
  if (o[h] == null) {
1141
1148
  o[h] = A(u[h]);
1142
- const _ = f(e(o[h]));
1143
- i[h] = _(n);
1149
+ const P = f(e(o[h]));
1150
+ i[h] = P(n);
1144
1151
  } else
1145
1152
  o[h].value = u[h];
1146
1153
  });
1147
1154
  return (u) => {
1148
1155
  l(), u && n.reference && b(n.reference);
1149
1156
  };
1150
- }, Nt = (t, e, r) => r != null ? Nt(t, (n, s) => {
1157
+ }, Mt = (t, e, r) => r != null ? Mt(t, (n, s) => {
1151
1158
  const i = s.map((o) => o.isLast ? "last" : "other");
1152
- return g([
1153
- $(() => i.dispose()),
1159
+ return S([
1160
+ R(() => i.dispose()),
1154
1161
  f(e(n, s)),
1155
1162
  L.value(i, {
1156
1163
  last: () => w,
@@ -1159,52 +1166,52 @@ const mr = {
1159
1166
  ]);
1160
1167
  }) : (n) => {
1161
1168
  const s = t.map((i) => i.length);
1162
- return xe(s, (i) => {
1163
- const o = k(
1169
+ return Oe(s, (i) => {
1170
+ const o = U(
1164
1171
  () => t.value[i.value.index],
1165
1172
  [i, t]
1166
1173
  );
1167
- return g(
1168
- $(() => o.dispose()),
1174
+ return S(
1175
+ R(() => o.dispose()),
1169
1176
  f(e(o, i))
1170
1177
  );
1171
1178
  })(n);
1172
- }, Sr = (t) => {
1179
+ }, wr = (t) => {
1173
1180
  const e = t.element, r = e.style.getPropertyValue(":empty");
1174
1181
  return e.style.setProperty(":empty", "display:none"), (n) => {
1175
1182
  n && e.style.setProperty(":empty", r);
1176
1183
  };
1177
1184
  };
1178
- function We(t, e) {
1185
+ function xe(t, e) {
1179
1186
  const r = t(e);
1180
1187
  return () => r(!0);
1181
1188
  }
1182
- function vr(t, e, { doc: r, clear: n } = {}) {
1189
+ function br(t, e, { doc: r, clear: n } = {}) {
1183
1190
  const s = typeof e == "string" ? (r ?? document).querySelector(e) : e;
1184
1191
  if (s === null)
1185
1192
  throw new Error(`Cannot find element by selector for render: ${e}`);
1186
- n && (r ?? s.ownerDocument) != null && St(r ?? s.ownerDocument);
1187
- const i = ot(s), o = ye(s) ? void 0 : s, l = v.of(i, o);
1188
- return We(t, l);
1193
+ n && (r ?? s.ownerDocument) != null && wt(r ?? s.ownerDocument);
1194
+ const i = it(s), o = _e(s) ? void 0 : s, l = _.of(i, o);
1195
+ return xe(t, l);
1189
1196
  }
1190
- const $t = (t, e) => (r) => {
1197
+ const Nt = (t, e) => (r) => {
1191
1198
  const n = r.document.querySelector(t);
1192
1199
  if (n === null)
1193
1200
  throw new Error(`Cannot find element by selector for portal: ${t}`);
1194
- return We(
1201
+ return xe(
1195
1202
  f(e),
1196
1203
  r.withElement(n).withFirstLevel()
1197
1204
  );
1198
- }, Ar = (t) => $t("head title", P.innerText(t)), Lt = (t) => (e) => t(e.element) ?? (() => {
1199
- }), B = (t, e, r) => Mt(
1205
+ }, vr = (t) => Nt("head title", D.innerText(t)), $t = (t) => (e) => t(e.element) ?? (() => {
1206
+ }), k = (t, e, r) => Ct(
1200
1207
  t.map((n) => n ? !0 : null),
1201
1208
  () => e,
1202
1209
  r != null ? () => r : void 0
1203
- ), yr = (t, e, r) => B(
1210
+ ), _r = (t, e, r) => k(
1204
1211
  t.map((n) => !n),
1205
1212
  e,
1206
1213
  r
1207
- ), It = {
1214
+ ), Rt = {
1208
1215
  partial: {
1209
1216
  root: null,
1210
1217
  rootMargin: "0px",
@@ -1218,33 +1225,33 @@ const $t = (t, e) => (r) => {
1218
1225
  }, z = {
1219
1226
  partial: /* @__PURE__ */ new Map(),
1220
1227
  full: /* @__PURE__ */ new Map()
1221
- }, N = {
1228
+ }, $ = {
1222
1229
  partial: null,
1223
1230
  full: null
1224
1231
  };
1225
- function Ot(t) {
1226
- return N[t] == null && (N[t] = new IntersectionObserver((e) => {
1232
+ function Lt(t) {
1233
+ return $[t] == null && ($[t] = new IntersectionObserver((e) => {
1227
1234
  e.forEach((r) => {
1228
1235
  const n = z[t].get(r.target);
1229
1236
  n == null || n.set(r.isIntersecting);
1230
1237
  });
1231
- }, It[t])), N[t];
1238
+ }, Rt[t])), $[t];
1232
1239
  }
1233
- function Rt(t, e) {
1234
- const r = A(T.isSSR());
1235
- return g(
1236
- Lt((n) => {
1237
- const s = typeof IntersectionObserver < "u" ? Ot(t) : null;
1240
+ function It(t, e) {
1241
+ const r = A(C.isSSR());
1242
+ return S(
1243
+ $t((n) => {
1244
+ const s = typeof IntersectionObserver < "u" ? Lt(t) : null;
1238
1245
  return z[t].set(n, r), s == null || s.observe(n), () => {
1239
1246
  var i;
1240
- s == null || s.unobserve(n), z[t].delete(n), z[t].size === 0 && ((i = N[t]) == null || i.disconnect(), N[t] = null);
1247
+ s == null || s.unobserve(n), z[t].delete(n), z[t].size === 0 && ((i = $[t]) == null || i.disconnect(), $[t] = null);
1241
1248
  };
1242
1249
  }),
1243
- $(r.dispose),
1250
+ R(r.dispose),
1244
1251
  f(e(r))
1245
1252
  );
1246
1253
  }
1247
- const Er = (t, e, r) => Rt(t, (n) => B(n, e, r ?? w)), _r = (t, e) => (r) => {
1254
+ const Ar = (t, e, r) => It(t, (n) => k(n, e, r ?? w)), yr = (t, e) => (r) => {
1248
1255
  r = r.makeRef();
1249
1256
  const n = t.map((o) => f(e(o)));
1250
1257
  let s = () => {
@@ -1256,14 +1263,14 @@ const Er = (t, e, r) => Rt(t, (n) => B(n, e, r ?? w)), _r = (t, e) => (r) => {
1256
1263
  i(), s(o);
1257
1264
  };
1258
1265
  };
1259
- function Pr(t, e, r = w) {
1260
- return B(
1266
+ function Er(t, e, r = w) {
1267
+ return k(
1261
1268
  t.map((n) => n.length > 0),
1262
1269
  e,
1263
1270
  r
1264
1271
  );
1265
1272
  }
1266
- const xt = (t) => (e) => {
1273
+ const Ot = (t) => (e) => {
1267
1274
  const r = e.element, n = A({ width: r.clientWidth, height: r.clientHeight }), s = f(t(n))(e), i = () => {
1268
1275
  n.set({ width: r.clientWidth, height: r.clientHeight });
1269
1276
  };
@@ -1271,7 +1278,7 @@ const xt = (t) => (e) => {
1271
1278
  return typeof ResizeObserver == "function" && (o = new ResizeObserver(i), o.observe(r)), (l) => {
1272
1279
  o == null || o.disconnect(), s(l);
1273
1280
  };
1274
- }, Wt = (t) => (e) => {
1281
+ }, xt = (t) => (e) => {
1275
1282
  const r = A({
1276
1283
  width: (window == null ? void 0 : window.innerWidth) ?? 0,
1277
1284
  height: (window == null ? void 0 : window.innerHeight) ?? 0
@@ -1284,132 +1291,132 @@ const xt = (t) => (e) => {
1284
1291
  return window == null || window.addEventListener("resize", s), (i) => {
1285
1292
  window == null || window.removeEventListener("resize", s), n(i);
1286
1293
  };
1287
- }, Dr = {
1288
- element: xt,
1289
- window: Wt
1290
- }, Ft = (t, e) => (r) => {
1294
+ }, Pr = {
1295
+ element: Ot,
1296
+ window: xt
1297
+ }, Wt = (t, e) => (r) => {
1291
1298
  const n = r.element, s = n.style.getPropertyValue(t);
1292
1299
  return n.style.setProperty(t, e), (i) => {
1293
1300
  i && n.style.setProperty(t, s);
1294
1301
  };
1295
- }, zt = (t, e) => (r) => {
1302
+ }, Ft = (t, e) => (r) => {
1296
1303
  const n = r.element, s = n.style.getPropertyValue(t);
1297
1304
  return e.on((i) => n.style.setProperty(t, i)), (i) => {
1298
1305
  i && n.style.setProperty(t, s);
1299
1306
  };
1300
- }, Tr = new Proxy(
1307
+ }, Dr = new Proxy(
1301
1308
  {},
1302
1309
  {
1303
- get: (t, e) => (r) => d.is(r) ? zt(e, r) : Ft(e, r)
1310
+ get: (t, e) => (r) => d.is(r) ? Ft(e, r) : Wt(e, r)
1304
1311
  }
1305
1312
  );
1306
1313
  export {
1307
- hr as Async,
1308
- dr as AutoFocus,
1309
- pr as AutoSelect,
1310
- D as Computed,
1311
- gr as Conjunction,
1312
- wr as Ctx,
1313
- v as DOMContext,
1314
- br as DOMEl,
1315
- Pe as El,
1316
- De as ElNS,
1314
+ fr as Async,
1315
+ hr as AutoFocus,
1316
+ dr as AutoSelect,
1317
+ T as Computed,
1318
+ mr as Conjunction,
1319
+ gr as Ctx,
1320
+ _ as DOMContext,
1321
+ Sr as DOMEl,
1322
+ Ee as El,
1323
+ Pe as ElNS,
1317
1324
  w as Empty,
1318
- Mt as Ensure,
1319
- Nt as ForEach,
1320
- g as Fragment,
1321
- Ar as HTMLTitle,
1322
- Sr as HiddenWhenEmpty,
1323
- Rt as InViewport,
1324
- _r as MapSignal,
1325
- he as MemoryStore,
1326
- Pr as NotEmpty,
1327
- Et as OnChecked,
1328
- $ as OnDispose,
1329
- Lt as OnMount,
1330
- $t as Portal,
1331
- He as Position,
1325
+ Ct as Ensure,
1326
+ Mt as ForEach,
1327
+ S as Fragment,
1328
+ vr as HTMLTitle,
1329
+ wr as HiddenWhenEmpty,
1330
+ It as InViewport,
1331
+ yr as MapSignal,
1332
+ fe as MemoryStore,
1333
+ Er as NotEmpty,
1334
+ At as OnChecked,
1335
+ R as OnDispose,
1336
+ $t as OnMount,
1337
+ Nt as Portal,
1338
+ je as Position,
1332
1339
  V as Prop,
1333
- lr as Provide,
1334
- xe as Repeat,
1340
+ ar as Provide,
1341
+ Oe as Repeat,
1335
1342
  d as Signal,
1336
- Oe as Task,
1337
- Gt as Text,
1338
- yr as Unless,
1339
- ur as Use,
1340
- vt as UseProvider,
1341
- ar as UseProviders,
1342
- B as When,
1343
- Er as WhenInViewport,
1344
- yt as WithProvider,
1345
- cr as WithProviders,
1346
- Ne as addNodeTracker,
1347
- Ue as animate,
1348
- jt as animateOne,
1349
- fr as appearance,
1350
- oe as appearanceMarker,
1351
- Bt as applyAnimatable,
1352
- R as applyAnimatableProp,
1353
- kt as applyInterpolatedAnimatable,
1354
- et as applyInterpolatedAnimatableProp,
1355
- Qt as aria,
1356
- P as attr,
1357
- mr as bind,
1343
+ Le as Task,
1344
+ Jt as Text,
1345
+ _r as Unless,
1346
+ or as Use,
1347
+ bt as UseProvider,
1348
+ ur as UseProviders,
1349
+ k as When,
1350
+ Ar as WhenInViewport,
1351
+ _t as WithProvider,
1352
+ lr as WithProviders,
1353
+ Me as addNodeTracker,
1354
+ Ke as animate,
1355
+ Yt as animateOne,
1356
+ cr as appearance,
1357
+ ie as appearanceMarker,
1358
+ kt as applyAnimatable,
1359
+ x as applyAnimatableProp,
1360
+ Ut as applyInterpolatedAnimatable,
1361
+ Qe as applyInterpolatedAnimatableProp,
1362
+ Gt as aria,
1363
+ D as attr,
1364
+ pr as bind,
1358
1365
  f as childToMountable,
1359
- St as clearSSR,
1360
- Be as colorChannelsToString,
1361
- k as computed,
1362
- Ht as computedRecord,
1363
- Xe as dateInterpolate,
1364
- qt as effect,
1366
+ wt as clearSSR,
1367
+ ke as colorChannelsToString,
1368
+ U as computed,
1369
+ jt as computedRecord,
1370
+ Ze as dateInterpolate,
1371
+ Vt as effect,
1365
1372
  Y as emit,
1366
- Ye as endInterpolate,
1367
- Ut as getComputedAnimatable,
1368
- Ge as getComputedAnimatableProp,
1369
- ot as getSelfOrParentElement,
1370
- je as guessInterpolate,
1371
- Jt as handleAnchorClick,
1372
- rr as html,
1373
- nr as input,
1374
- Je as interpolateColor,
1375
- Kt as interpolateShadow,
1376
- ye as isElement,
1377
- Ae as makeGetter,
1378
- At as makeProviderMark,
1379
- ve as makeSetter,
1380
- ir as math,
1381
- tr as mathAttr,
1382
- Ce as maybeAddAttributeTracker,
1383
- Me as maybeAddClassTracker,
1384
- $e as maybeAddTextTracker,
1385
- qe as numberInterpolate,
1373
+ Xe as endInterpolate,
1374
+ Kt as getComputedAnimatable,
1375
+ Je as getComputedAnimatableProp,
1376
+ it as getSelfOrParentElement,
1377
+ Ye as guessInterpolate,
1378
+ Bt as handleAnchorClick,
1379
+ tr as html,
1380
+ rr as input,
1381
+ Be as interpolateColor,
1382
+ Ht as interpolateShadow,
1383
+ _e as isElement,
1384
+ ve as makeGetter,
1385
+ vt as makeProviderMark,
1386
+ be as makeSetter,
1387
+ sr as math,
1388
+ er as mathAttr,
1389
+ Te as maybeAddAttributeTracker,
1390
+ Ce as maybeAddClassTracker,
1391
+ Ne as maybeAddTextTracker,
1392
+ Ve as numberInterpolate,
1386
1393
  X as on,
1387
1394
  L as oneof,
1388
- se as parseColorChannels,
1395
+ ne as parseColorChannels,
1389
1396
  A as prop,
1390
- Xt as propOfLocalStorage,
1391
- Yt as propOfSessionStorage,
1392
- de as propOfStorage,
1393
- dt as removeAttributeTrackers,
1394
- mt as removeClassTrackers,
1397
+ Zt as propOfLocalStorage,
1398
+ Xt as propOfSessionStorage,
1399
+ he as propOfStorage,
1400
+ ht as removeAttributeTrackers,
1401
+ pt as removeClassTrackers,
1395
1402
  b as removeDOMNode,
1396
- gt as removeNodeTrackers,
1397
- bt as removeTextTrackers,
1398
- vr as render,
1399
- We as renderWithContext,
1400
- it as setAttribute,
1401
- tt as setBooleanProperty,
1402
- nt as setDateProperty,
1403
- rt as setNumberProperty,
1404
- st as setStringProperty,
1405
- Zt as signal,
1406
- _e as signalText,
1407
- Dr as size,
1408
- T as ssr,
1409
- or as startSSR,
1410
- Ee as staticText,
1411
- Ze as stringInterpolate,
1412
- Tr as style,
1413
- sr as svg,
1414
- er as svgAttr
1403
+ mt as removeNodeTrackers,
1404
+ St as removeTextTrackers,
1405
+ br as render,
1406
+ xe as renderWithContext,
1407
+ st as setAttribute,
1408
+ et as setBooleanProperty,
1409
+ rt as setDateProperty,
1410
+ tt as setNumberProperty,
1411
+ nt as setStringProperty,
1412
+ qt as signal,
1413
+ ye as signalText,
1414
+ Pr as size,
1415
+ C as ssr,
1416
+ ir as startSSR,
1417
+ Ae as staticText,
1418
+ qe as stringInterpolate,
1419
+ Dr as style,
1420
+ nr as svg,
1421
+ Qt as svgAttr
1415
1422
  };