@tempots/dom 10.0.14 → 10.0.19
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.cjs +1 -1
- package/index.js +330 -344
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var ze = Object.defineProperty;
|
|
2
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
|
|
3
|
+
var a = (t, e, r) => Ve(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
4
|
function qe(t, e, r) {
|
|
5
5
|
return t + (e - t) * r;
|
|
6
6
|
}
|
|
@@ -25,7 +25,7 @@ function Ye(t, e, r) {
|
|
|
25
25
|
function je(t) {
|
|
26
26
|
return typeof t == "number" ? qe : typeof t == "string" ? Ze : t instanceof Date ? Xe : Ye;
|
|
27
27
|
}
|
|
28
|
-
class
|
|
28
|
+
class He {
|
|
29
29
|
constructor(e, r) {
|
|
30
30
|
this.index = e, this.total = r;
|
|
31
31
|
}
|
|
@@ -43,33 +43,33 @@ class ke {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
const ee = Symbol("isSignal"), te = Symbol("isProp"), re = Symbol("isComputed");
|
|
46
|
-
var
|
|
47
|
-
|
|
46
|
+
var ue;
|
|
47
|
+
ue = ee;
|
|
48
48
|
const E = class E {
|
|
49
49
|
constructor(e, r) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
50
|
+
a(this, ue, !0);
|
|
51
|
+
a(this, "_value");
|
|
52
|
+
a(this, "_derivatives", []);
|
|
53
|
+
a(this, "_onValueListeners", []);
|
|
54
|
+
a(this, "_onDisposeListeners", []);
|
|
55
|
+
a(this, "get", () => this._value);
|
|
56
|
+
a(this, "hasListeners", () => this._onValueListeners.length > 0);
|
|
57
|
+
a(this, "on", (e) => (e(this.get()), this._onValueListeners.push(e), () => {
|
|
58
58
|
this._onValueListeners.splice(this._onValueListeners.indexOf(e), 1);
|
|
59
59
|
}));
|
|
60
|
-
|
|
60
|
+
a(this, "_setAndNotify", (e, r) => {
|
|
61
61
|
const n = this.equals(this._value, e);
|
|
62
62
|
n || (this._value = e), (r || !n) && this._onValueListeners.forEach((s) => s(e));
|
|
63
63
|
});
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
a(this, "_disposed", !1);
|
|
65
|
+
a(this, "isDisposed", () => this._disposed);
|
|
66
|
+
a(this, "onDispose", (e) => {
|
|
67
67
|
this._onDisposeListeners.push(e);
|
|
68
68
|
});
|
|
69
|
-
|
|
69
|
+
a(this, "dispose", () => {
|
|
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
73
|
const n = new D(() => {
|
|
74
74
|
try {
|
|
75
75
|
return e(this.get());
|
|
@@ -79,7 +79,7 @@ const E = class E {
|
|
|
79
79
|
}, r);
|
|
80
80
|
return this.setDerivative(n), n;
|
|
81
81
|
});
|
|
82
|
-
|
|
82
|
+
a(this, "flatMap", (e, r = (n, s) => n === s) => {
|
|
83
83
|
const n = new D(() => {
|
|
84
84
|
try {
|
|
85
85
|
return e(this.get()).get();
|
|
@@ -89,9 +89,9 @@ const E = class E {
|
|
|
89
89
|
}, r);
|
|
90
90
|
return this.setDerivative(n), n;
|
|
91
91
|
});
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
a(this, "tap", (e) => this.map((r) => (e(r), r)));
|
|
93
|
+
a(this, "at", (e) => this.map((r) => r[e]));
|
|
94
|
+
a(this, "filter", (e, r) => {
|
|
95
95
|
let n = r ?? this.get();
|
|
96
96
|
const s = new D(() => {
|
|
97
97
|
try {
|
|
@@ -103,7 +103,7 @@ const E = class E {
|
|
|
103
103
|
}, this.equals);
|
|
104
104
|
return this.setDerivative(s), s;
|
|
105
105
|
});
|
|
106
|
-
|
|
106
|
+
a(this, "filterMap", (e, r, n = (s, i) => s === i) => {
|
|
107
107
|
let s = r;
|
|
108
108
|
const i = new D(() => {
|
|
109
109
|
try {
|
|
@@ -115,17 +115,17 @@ const E = class E {
|
|
|
115
115
|
}, n);
|
|
116
116
|
return this.setDerivative(i), i;
|
|
117
117
|
});
|
|
118
|
-
|
|
118
|
+
a(this, "mapAsync", (e, r, n, s = (i, o) => i === o) => {
|
|
119
119
|
const i = A(r, s);
|
|
120
120
|
let o = 0;
|
|
121
121
|
return i.onDispose(
|
|
122
122
|
this.on((l) => {
|
|
123
|
-
const
|
|
123
|
+
const u = ++o;
|
|
124
124
|
try {
|
|
125
125
|
e(l).then((c) => {
|
|
126
|
-
|
|
126
|
+
u === o && i.set(c);
|
|
127
127
|
}).catch((c) => {
|
|
128
|
-
|
|
128
|
+
u === o && (n != null ? i.set(n(c)) : console.error(
|
|
129
129
|
"Unhandled promise rejection in Signal.mapAsync:",
|
|
130
130
|
c
|
|
131
131
|
));
|
|
@@ -136,17 +136,17 @@ const E = class E {
|
|
|
136
136
|
})
|
|
137
137
|
), i;
|
|
138
138
|
});
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
a(this, "mapMaybe", (e, r) => this.map((n) => e(n) ?? r));
|
|
140
|
+
a(this, "feedProp", (e, r = !1) => {
|
|
141
141
|
const n = this.on(e.set);
|
|
142
142
|
return e.onDispose(n), r ? this.onDispose(e.dispose) : this.onDispose(n), e;
|
|
143
143
|
});
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
a(this, "deriveProp", (e = !0) => this.feedProp(A(this.get()), e));
|
|
145
|
+
a(this, "count", () => {
|
|
146
146
|
let e = 0;
|
|
147
147
|
return this.map(() => ++e);
|
|
148
148
|
});
|
|
149
|
-
|
|
149
|
+
a(this, "setDerivative", (e) => {
|
|
150
150
|
this._derivatives.push(e), e.onDispose(() => {
|
|
151
151
|
this._derivatives.splice(
|
|
152
152
|
this._derivatives.indexOf(e),
|
|
@@ -184,25 +184,25 @@ const E = class E {
|
|
|
184
184
|
return this._value;
|
|
185
185
|
}
|
|
186
186
|
};
|
|
187
|
-
let
|
|
188
|
-
const
|
|
189
|
-
var
|
|
190
|
-
class D extends (le =
|
|
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) {
|
|
191
191
|
constructor(r, n) {
|
|
192
192
|
super(void 0, n);
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
193
|
+
a(this, ae, !0);
|
|
194
|
+
a(this, "_isDirty", !1);
|
|
195
|
+
a(this, "setDirty", () => {
|
|
196
196
|
this._isDirty || this._disposed || (this._isDirty = !0, this._derivatives.forEach((r) => r.setDirty()), this.scheduleNotify());
|
|
197
197
|
});
|
|
198
|
-
|
|
199
|
-
|
|
198
|
+
a(this, "_scheduleCount", 0);
|
|
199
|
+
a(this, "scheduleNotify", () => {
|
|
200
200
|
const r = ++this._scheduleCount;
|
|
201
|
-
|
|
201
|
+
Ke(() => {
|
|
202
202
|
this._scheduleCount !== r || this._disposed !== !1 || this._isDirty && (this._isDirty = !1, this._setAndNotify(this._fn(), !1));
|
|
203
203
|
});
|
|
204
204
|
});
|
|
205
|
-
|
|
205
|
+
a(this, "get", () => (this._isDirty && (this._isDirty = !1, this._value = this._fn(), this._setAndNotify(this._value, !0)), this._value));
|
|
206
206
|
this._fn = r, this.setDirty();
|
|
207
207
|
}
|
|
208
208
|
static is(r) {
|
|
@@ -213,22 +213,22 @@ class D extends (le = h, ue = re, le) {
|
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
var ce, fe;
|
|
216
|
-
class V extends (fe =
|
|
216
|
+
class V extends (fe = d, ce = te, fe) {
|
|
217
217
|
constructor() {
|
|
218
218
|
super(...arguments);
|
|
219
|
-
|
|
220
|
-
|
|
219
|
+
a(this, ce, !0);
|
|
220
|
+
a(this, "set", (r) => {
|
|
221
221
|
this._setAndNotify(r, !1);
|
|
222
222
|
});
|
|
223
|
-
|
|
223
|
+
a(this, "update", (r) => {
|
|
224
224
|
this._setAndNotify(r(this.get()), !1);
|
|
225
225
|
});
|
|
226
|
-
|
|
227
|
-
|
|
226
|
+
a(this, "reducer", (r) => (n) => this.update((s) => r(s, n)));
|
|
227
|
+
a(this, "iso", (r, n, s = (i, o) => i === o) => {
|
|
228
228
|
const i = new V(r(this.get()), s);
|
|
229
229
|
return i.onDispose(this.on((o) => i.set(r(o)))), i.on((o) => this._setAndNotify(n(o), !1)), i;
|
|
230
230
|
});
|
|
231
|
-
|
|
231
|
+
a(this, "atProp", (r) => this.iso(
|
|
232
232
|
(n) => n[r],
|
|
233
233
|
(n) => ({ ...this.value, [r]: n })
|
|
234
234
|
));
|
|
@@ -243,89 +243,89 @@ class V extends (fe = h, ce = te, fe) {
|
|
|
243
243
|
this._setAndNotify(r, !1);
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function k(t, e, r = (n, s) => n === s) {
|
|
247
247
|
const n = new D(t, r);
|
|
248
248
|
return e.forEach((s) => s.setDerivative(n)), n;
|
|
249
249
|
}
|
|
250
250
|
function qt(t, e) {
|
|
251
|
-
return
|
|
251
|
+
return k(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
256
|
function Zt(t, e = (r, n) => r === n) {
|
|
257
|
-
return new
|
|
257
|
+
return new d(t, e);
|
|
258
258
|
}
|
|
259
|
-
class
|
|
259
|
+
class he {
|
|
260
260
|
constructor() {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
261
|
+
a(this, "_store", /* @__PURE__ */ new Map());
|
|
262
|
+
a(this, "getItem", (e) => this._store.get(e) ?? null);
|
|
263
|
+
a(this, "setItem", (e, r) => {
|
|
264
264
|
this._store.set(e, r);
|
|
265
265
|
});
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function de({
|
|
269
269
|
key: t,
|
|
270
270
|
defaultValue: e,
|
|
271
271
|
store: r,
|
|
272
272
|
serialize: n = JSON.stringify,
|
|
273
273
|
deserialize: s = JSON.parse,
|
|
274
|
-
equals: i = (l,
|
|
274
|
+
equals: i = (l, u) => l === u,
|
|
275
275
|
onLoad: o = (l) => l
|
|
276
276
|
}) {
|
|
277
|
-
const l = r.getItem(t),
|
|
277
|
+
const l = r.getItem(t), u = new V(
|
|
278
278
|
l != null ? o(s(l)) : typeof e == "function" ? e() : e,
|
|
279
279
|
i
|
|
280
280
|
);
|
|
281
|
-
return
|
|
281
|
+
return u.on((c) => {
|
|
282
282
|
r.setItem(t, n(c));
|
|
283
|
-
}),
|
|
283
|
+
}), u;
|
|
284
284
|
}
|
|
285
285
|
function Xt(t) {
|
|
286
|
-
return
|
|
286
|
+
return de({
|
|
287
287
|
...t,
|
|
288
|
-
store: (window == null ? void 0 : window.localStorage) ?? new
|
|
288
|
+
store: (window == null ? void 0 : window.localStorage) ?? new he()
|
|
289
289
|
});
|
|
290
290
|
}
|
|
291
291
|
function Yt(t) {
|
|
292
|
-
return
|
|
292
|
+
return de({
|
|
293
293
|
...t,
|
|
294
|
-
store: (window == null ? void 0 : window.sessionStorage) ?? new
|
|
294
|
+
store: (window == null ? void 0 : window.sessionStorage) ?? new he()
|
|
295
295
|
});
|
|
296
296
|
}
|
|
297
297
|
function ne(t) {
|
|
298
298
|
return typeof requestAnimationFrame == "function" ? requestAnimationFrame(t) : setTimeout(t, 0);
|
|
299
299
|
}
|
|
300
|
-
function
|
|
301
|
-
const s = (n == null ? void 0 : n.duration) ?? 300, i = (n == null ? void 0 : n.easing) ?? ((
|
|
302
|
-
let l = n == null ? void 0 : n.interpolate,
|
|
303
|
-
const
|
|
304
|
-
|
|
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);
|
|
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);
|
|
304
|
+
y.onDispose(() => {
|
|
305
305
|
m !== null && cancelAnimationFrame(m);
|
|
306
|
-
}),
|
|
307
|
-
|
|
306
|
+
}), y.onDispose(_.dispose), r.forEach((S) => {
|
|
307
|
+
S.setDerivative(_), S.onDispose(y.dispose);
|
|
308
308
|
});
|
|
309
|
-
const j = (
|
|
310
|
-
c =
|
|
309
|
+
const j = (S) => {
|
|
310
|
+
c = S, p = performance.now(), u = y.value, h && (h = !1, m = ne(J));
|
|
311
311
|
}, J = () => {
|
|
312
|
-
const
|
|
313
|
-
l == null && (l = je(
|
|
314
|
-
let G = l(
|
|
315
|
-
|
|
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);
|
|
316
316
|
};
|
|
317
|
-
return
|
|
317
|
+
return _.on(j), y;
|
|
318
318
|
}
|
|
319
319
|
function jt(t, e) {
|
|
320
320
|
const { initialValue: r, ...n } = e ?? {};
|
|
321
|
-
return
|
|
321
|
+
return Ue(r ?? t.get(), t.get, [t], n);
|
|
322
322
|
}
|
|
323
|
-
function
|
|
323
|
+
function Ht(t, e) {
|
|
324
324
|
const { signals: r, literals: n } = Object.entries(t).reduce(
|
|
325
|
-
({ signals: i, literals: o }, [l,
|
|
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
|
|
328
|
+
return k(() => (r.forEach(([i, o]) => n[i] = o.value), e(n)), s);
|
|
329
329
|
}
|
|
330
330
|
function se(t) {
|
|
331
331
|
let e = t.match(/rgba?\((\d+), (\d+), (\d+)(, (\d+))?\)/);
|
|
@@ -360,17 +360,17 @@ function ie(t) {
|
|
|
360
360
|
spread: 0,
|
|
361
361
|
color: "rgba(0, 0, 0, 0)"
|
|
362
362
|
};
|
|
363
|
-
const [, n, s, , , i, , o, , l, ,
|
|
363
|
+
const [, n, s, , , i, , o, , l, , u] = r, c = o != null ? parseInt(o, 10) : 0, p = l != null ? parseInt(l, 10) : 0;
|
|
364
364
|
return {
|
|
365
365
|
inset: !!n,
|
|
366
366
|
x: parseInt(s, 10),
|
|
367
367
|
y: parseInt(i, 10),
|
|
368
368
|
blur: c,
|
|
369
369
|
spread: p,
|
|
370
|
-
color:
|
|
370
|
+
color: u
|
|
371
371
|
};
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function ke(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
|
}
|
|
@@ -378,24 +378,24 @@ function Be(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
380
|
function Je(t, e) {
|
|
381
|
-
const [r, n, s, i, o] = se(t), [l,
|
|
381
|
+
const [r, n, s, i, o] = se(t), [l, u, c, p] = se(e);
|
|
382
382
|
return (m) => {
|
|
383
|
-
const
|
|
384
|
-
return Be([
|
|
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]);
|
|
385
385
|
};
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function Kt(t, e) {
|
|
388
388
|
const r = ie(t), n = ie(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,
|
|
391
|
-
return
|
|
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 });
|
|
392
392
|
};
|
|
393
393
|
}
|
|
394
394
|
function Ge(t, e) {
|
|
395
|
-
var r, n, s, i, o, l,
|
|
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" ? (
|
|
395
|
+
var r, n, s, i, o, l, u, c;
|
|
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
|
|
398
|
+
function Ut(t, e) {
|
|
399
399
|
const r = {}, n = getComputedStyle(t);
|
|
400
400
|
for (const [s, i] of Object.entries(e)) {
|
|
401
401
|
const o = s;
|
|
@@ -403,15 +403,15 @@ function Kt(t, e) {
|
|
|
403
403
|
}
|
|
404
404
|
return r;
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function R(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
|
-
const
|
|
409
|
+
const H = /* @__PURE__ */ new Map();
|
|
410
410
|
function pe(t, e, r) {
|
|
411
|
-
if (
|
|
412
|
-
return
|
|
411
|
+
if (H.has(r + ":" + t + e))
|
|
412
|
+
return H.get(t + e);
|
|
413
413
|
const n = Je(t, e);
|
|
414
|
-
return
|
|
414
|
+
return H.set(r + ":" + t + e, n), n;
|
|
415
415
|
}
|
|
416
416
|
function me(t, e) {
|
|
417
417
|
return pe(t, e, "c");
|
|
@@ -423,23 +423,23 @@ function et(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
|
-
|
|
426
|
+
R(t, e, i);
|
|
427
427
|
} else if (e === "boxShadow" || e === "textShadow") {
|
|
428
428
|
const i = Qe(
|
|
429
429
|
r,
|
|
430
430
|
n
|
|
431
431
|
)(s);
|
|
432
|
-
|
|
432
|
+
R(t, e, i);
|
|
433
433
|
} else if (e === "color" || e === "backgroundColor" || e === "borderColor" || e === "outlineColor") {
|
|
434
434
|
const i = me(
|
|
435
435
|
r,
|
|
436
436
|
n
|
|
437
437
|
)(s);
|
|
438
|
-
|
|
438
|
+
R(t, e, i);
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function kt(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;
|
|
@@ -449,14 +449,14 @@ function Ut(t, e, r, n) {
|
|
|
449
449
|
function Bt(t, e) {
|
|
450
450
|
t.style.transform = "", t.style.filter = "";
|
|
451
451
|
for (const [r, n] of Object.entries(e))
|
|
452
|
-
n != null &&
|
|
452
|
+
n != null && R(t, r, n);
|
|
453
453
|
}
|
|
454
454
|
const ge = /* @__PURE__ */ new Set(["checked", "disabled", "hidden", "selected"]), we = /* @__PURE__ */ new Set([
|
|
455
455
|
"rowSpan",
|
|
456
456
|
"colSpan",
|
|
457
457
|
"tabIndex",
|
|
458
458
|
"valueAsNumber"
|
|
459
|
-
]),
|
|
459
|
+
]), be = /* @__PURE__ */ new Set(["valueAsDate"]), Se = /* @__PURE__ */ new Set([
|
|
460
460
|
"value",
|
|
461
461
|
"textContent",
|
|
462
462
|
"innerText",
|
|
@@ -464,13 +464,13 @@ const ge = /* @__PURE__ */ new Set(["checked", "disabled", "hidden", "selected"]
|
|
|
464
464
|
"outerHTML",
|
|
465
465
|
"className",
|
|
466
466
|
"classList"
|
|
467
|
-
]),
|
|
467
|
+
]), K = /* @__PURE__ */ new Map();
|
|
468
468
|
function C(t, e) {
|
|
469
|
-
if (
|
|
470
|
-
return
|
|
469
|
+
if (K.has(t))
|
|
470
|
+
return K.get(t);
|
|
471
471
|
{
|
|
472
472
|
const r = e(t);
|
|
473
|
-
return
|
|
473
|
+
return K.set(t, r), r;
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
476
|
function tt(t) {
|
|
@@ -499,10 +499,10 @@ function it(t) {
|
|
|
499
499
|
};
|
|
500
500
|
}
|
|
501
501
|
function ve(t) {
|
|
502
|
-
return ge.has(t) ? C(t, tt) : we.has(t) ? C(t, rt) :
|
|
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);
|
|
503
503
|
}
|
|
504
504
|
function Ae(t) {
|
|
505
|
-
return (e) => ge.has(t) ? !!e[t] : we.has(t) ? Number(e[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);
|
|
506
506
|
}
|
|
507
507
|
class v {
|
|
508
508
|
/**
|
|
@@ -522,19 +522,19 @@ class v {
|
|
|
522
522
|
* @param namespace - The namespace URI to create the element in, or `undefined` to create a standard HTML element.
|
|
523
523
|
* @returns The newly created element.
|
|
524
524
|
*/
|
|
525
|
-
|
|
525
|
+
a(this, "createElement", (e, r) => r !== void 0 ? this.document.createElementNS(r, e) : this.document.createElement(e));
|
|
526
526
|
/**
|
|
527
527
|
* Creates a new text node with the specified text content.
|
|
528
528
|
* @param text - The text content for the new text node.
|
|
529
529
|
* @returns A new `Text` node with the specified text content.
|
|
530
530
|
*/
|
|
531
|
-
|
|
531
|
+
a(this, "createText", (e) => this.document.createTextNode(e));
|
|
532
532
|
/**
|
|
533
533
|
* Creates a new `DOMContext` with a reference to a newly created text node.
|
|
534
534
|
* The text node is appended or inserted to the current `DOMContext`.
|
|
535
535
|
* The new `DOMContext` with the reference is returned.
|
|
536
536
|
*/
|
|
537
|
-
|
|
537
|
+
a(this, "makeRef", () => {
|
|
538
538
|
const e = this.createText("");
|
|
539
539
|
return this.appendOrInsert(e), this.withReference(e);
|
|
540
540
|
});
|
|
@@ -543,7 +543,7 @@ class v {
|
|
|
543
543
|
*
|
|
544
544
|
* @param child - The child node to append or insert.
|
|
545
545
|
*/
|
|
546
|
-
|
|
546
|
+
a(this, "appendOrInsert", (e) => {
|
|
547
547
|
this.reference === void 0 ? this.element.appendChild(e) : this.element.insertBefore(e, this.reference);
|
|
548
548
|
});
|
|
549
549
|
/**
|
|
@@ -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
|
-
|
|
555
|
+
a(this, "withDocument", (e) => new v(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
|
-
|
|
561
|
+
a(this, "withElement", (e) => new v(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
|
-
|
|
566
|
+
a(this, "withFirstLevel", () => new v(
|
|
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
|
-
|
|
579
|
+
a(this, "withReference", (e) => new v(
|
|
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
|
-
|
|
592
|
+
a(this, "withProvider", (e, r) => new v(
|
|
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
|
-
|
|
609
|
+
a(this, "withProviders", (e) => new v(
|
|
610
610
|
this.document,
|
|
611
611
|
this.element,
|
|
612
612
|
this.reference,
|
|
@@ -623,7 +623,7 @@ class v {
|
|
|
623
623
|
* @returns The provider for the given mark.
|
|
624
624
|
* @throws {Error} If the provider for the given mark is not found.
|
|
625
625
|
*/
|
|
626
|
-
|
|
626
|
+
a(this, "getProvider", (e) => {
|
|
627
627
|
if (this.providers[e] === void 0)
|
|
628
628
|
throw new Error(`Provider not found: ${e.description}`);
|
|
629
629
|
return this.providers[e];
|
|
@@ -641,7 +641,7 @@ class v {
|
|
|
641
641
|
return new v(e.ownerDocument, e, r, {}, !0);
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
|
-
function
|
|
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
|
}
|
|
@@ -651,7 +651,7 @@ function ot(t) {
|
|
|
651
651
|
function ye(t) {
|
|
652
652
|
return t.nodeType === 1;
|
|
653
653
|
}
|
|
654
|
-
function
|
|
654
|
+
function ut(t, e, r) {
|
|
655
655
|
let n = t.target;
|
|
656
656
|
for (; n != null && !(n instanceof HTMLAnchorElement); )
|
|
657
657
|
n = n.parentElement;
|
|
@@ -660,8 +660,8 @@ function at(t, e, r) {
|
|
|
660
660
|
if (t.button !== 0 || t.ctrlKey || t.metaKey || s.target !== "_self" && s.target !== "" || s.getAttribute("download") != null)
|
|
661
661
|
return !0;
|
|
662
662
|
if (r) {
|
|
663
|
-
const { pathname: i, search: o, hash: l } = s,
|
|
664
|
-
if (s.getAttribute("href") !==
|
|
663
|
+
const { pathname: i, search: o, hash: l } = s, u = i + o + l;
|
|
664
|
+
if (s.getAttribute("href") !== u || e && !/\/[^/.]*$/.test(i))
|
|
665
665
|
return !0;
|
|
666
666
|
}
|
|
667
667
|
return !1;
|
|
@@ -671,28 +671,28 @@ const Jt = (t, e = {
|
|
|
671
671
|
checkExternalUrl: !0
|
|
672
672
|
}) => (r) => {
|
|
673
673
|
const { checkExtension: n, checkExternalUrl: s } = e;
|
|
674
|
-
|
|
674
|
+
ut(
|
|
675
675
|
r,
|
|
676
676
|
n === !0,
|
|
677
677
|
s === !0
|
|
678
678
|
) || t() && r.preventDefault();
|
|
679
|
-
},
|
|
680
|
-
|
|
679
|
+
}, Ee = (t) => (e) => {
|
|
680
|
+
$e(e);
|
|
681
681
|
const r = e.createText(t);
|
|
682
682
|
return e.appendOrInsert(r), (n) => {
|
|
683
|
-
n &&
|
|
683
|
+
n && b(r);
|
|
684
684
|
};
|
|
685
|
-
},
|
|
686
|
-
|
|
685
|
+
}, _e = (t) => (e) => {
|
|
686
|
+
$e(e);
|
|
687
687
|
const r = e.createText(t.value);
|
|
688
688
|
e.appendOrInsert(r);
|
|
689
689
|
const n = t.on((s) => r.data = s);
|
|
690
690
|
return (s) => {
|
|
691
|
-
n(), s &&
|
|
691
|
+
n(), s && b(r);
|
|
692
692
|
};
|
|
693
693
|
};
|
|
694
694
|
function Gt(t) {
|
|
695
|
-
return
|
|
695
|
+
return d.is(t) ? _e(t) : Ee(t);
|
|
696
696
|
}
|
|
697
697
|
const g = (...t) => (e) => {
|
|
698
698
|
const r = t.map((n) => f(n)(e));
|
|
@@ -700,10 +700,10 @@ const g = (...t) => (e) => {
|
|
|
700
700
|
r.forEach((s) => s(n));
|
|
701
701
|
};
|
|
702
702
|
}, w = () => () => {
|
|
703
|
-
},
|
|
703
|
+
}, at = (t) => (e) => (Me(e), e.element.classList.add(...t), (r) => {
|
|
704
704
|
r && e.element.classList.remove(...t);
|
|
705
705
|
}), lt = (t) => (e) => {
|
|
706
|
-
|
|
706
|
+
Me(e);
|
|
707
707
|
const r = e.element;
|
|
708
708
|
let n = [];
|
|
709
709
|
const s = t.on((i) => {
|
|
@@ -733,9 +733,9 @@ const g = (...t) => (e) => {
|
|
|
733
733
|
}, P = new Proxy(
|
|
734
734
|
{},
|
|
735
735
|
{
|
|
736
|
-
get: (t, e) => e === "class" ? (r) =>
|
|
736
|
+
get: (t, e) => e === "class" ? (r) => d.is(r) ? lt(r) : at(
|
|
737
737
|
(r ?? "").split(" ").filter((n) => n.length > 0)
|
|
738
|
-
) : (r) =>
|
|
738
|
+
) : (r) => d.is(r) ? Z(
|
|
739
739
|
e,
|
|
740
740
|
r
|
|
741
741
|
) : q(
|
|
@@ -746,7 +746,7 @@ const g = (...t) => (e) => {
|
|
|
746
746
|
), Qt = new Proxy(
|
|
747
747
|
{},
|
|
748
748
|
{
|
|
749
|
-
get: (t, e) => (r) =>
|
|
749
|
+
get: (t, e) => (r) => d.is(r) ? Z(
|
|
750
750
|
`aria-${e}`,
|
|
751
751
|
r
|
|
752
752
|
) : q(
|
|
@@ -757,7 +757,7 @@ const g = (...t) => (e) => {
|
|
|
757
757
|
), er = new Proxy(
|
|
758
758
|
{},
|
|
759
759
|
{
|
|
760
|
-
get: (t, e) => (r) =>
|
|
760
|
+
get: (t, e) => (r) => d.is(r) ? Z(
|
|
761
761
|
e,
|
|
762
762
|
r
|
|
763
763
|
) : q(
|
|
@@ -768,7 +768,7 @@ const g = (...t) => (e) => {
|
|
|
768
768
|
), tr = new Proxy(
|
|
769
769
|
{},
|
|
770
770
|
{
|
|
771
|
-
get: (t, e) => (r) =>
|
|
771
|
+
get: (t, e) => (r) => d.is(r) ? Z(
|
|
772
772
|
e,
|
|
773
773
|
r
|
|
774
774
|
) : q(
|
|
@@ -778,78 +778,72 @@ 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" ?
|
|
781
|
+
return t == null ? w : Array.isArray(t) ? g(...t.map(f)) : typeof t == "string" ? Ee(t) : d.is(t) ? _e(t) : t;
|
|
782
782
|
}
|
|
783
|
-
function
|
|
783
|
+
function Pe(t, ...e) {
|
|
784
784
|
return (r) => {
|
|
785
785
|
const n = r.createElement(t, void 0);
|
|
786
|
-
r.isFirstLevel &&
|
|
786
|
+
r.isFirstLevel && T.isSSR() && Ne(n), r.appendOrInsert(n), r = r.withElement(n);
|
|
787
787
|
const s = e.map((i) => f(i)(r));
|
|
788
788
|
return (i) => {
|
|
789
|
-
s.forEach((o) => o(!1)), i &&
|
|
789
|
+
s.forEach((o) => o(!1)), i && b(n);
|
|
790
790
|
};
|
|
791
791
|
};
|
|
792
792
|
}
|
|
793
|
-
function
|
|
793
|
+
function De(t, e, ...r) {
|
|
794
794
|
return (n) => {
|
|
795
795
|
const s = n.createElement(t, e);
|
|
796
|
-
n.isFirstLevel &&
|
|
796
|
+
n.isFirstLevel && T.isSSR() && Ne(s), n.appendOrInsert(s), n = n.withElement(s);
|
|
797
797
|
const i = r.map((o) => f(o)(n));
|
|
798
798
|
return (o) => {
|
|
799
|
-
i.forEach((l) => l(!1)), o &&
|
|
799
|
+
i.forEach((l) => l(!1)), o && b(s);
|
|
800
800
|
};
|
|
801
801
|
};
|
|
802
802
|
}
|
|
803
803
|
const rr = new Proxy(
|
|
804
804
|
{},
|
|
805
805
|
{
|
|
806
|
-
get: (t, e) => (...r) =>
|
|
806
|
+
get: (t, e) => (...r) => Pe(e, r.flatMap(f))
|
|
807
807
|
}
|
|
808
808
|
), nr = new Proxy(
|
|
809
809
|
{},
|
|
810
810
|
{
|
|
811
|
-
get: (t, e) => (...r) =>
|
|
811
|
+
get: (t, e) => (...r) => Pe("input", P.type(e), ...r)
|
|
812
812
|
}
|
|
813
813
|
), ct = "http://www.w3.org/2000/svg", sr = new Proxy(
|
|
814
814
|
{},
|
|
815
815
|
{
|
|
816
|
-
get: (t, e) => (...r) =>
|
|
816
|
+
get: (t, e) => (...r) => De(e, ct, r.flatMap(f))
|
|
817
817
|
}
|
|
818
818
|
), ft = "http://www.w3.org/1998/Math/MathML", ir = new Proxy(
|
|
819
819
|
{},
|
|
820
820
|
{
|
|
821
|
-
get: (t, e) => (...r) =>
|
|
821
|
+
get: (t, e) => (...r) => De(e, ft, r.flatMap(f))
|
|
822
822
|
}
|
|
823
|
-
),
|
|
824
|
-
function
|
|
823
|
+
), M = "data-tempo-attr", x = "data-tempo-class", Te = "data-tempo-node", W = "data-tempo-text";
|
|
824
|
+
function ht(t, e) {
|
|
825
825
|
const r = t.getAttribute(e);
|
|
826
826
|
if (r != null) {
|
|
827
|
-
const n = t.getAttribute(
|
|
828
|
-
t.setAttribute(
|
|
827
|
+
const n = t.getAttribute(M) ?? "{}", s = { ...JSON.parse(n), name: r };
|
|
828
|
+
t.setAttribute(M, JSON.stringify(s));
|
|
829
829
|
}
|
|
830
830
|
}
|
|
831
831
|
function Ce(t, e) {
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
})
|
|
836
|
-
}
|
|
837
|
-
function ht(t) {
|
|
838
|
-
t.querySelectorAll(`[${L}]`).forEach((e) => {
|
|
839
|
-
const r = JSON.parse(e.getAttribute(L) ?? "{}");
|
|
832
|
+
T.isSSR() && t.isFirstLevel && ht(t.element, e);
|
|
833
|
+
}
|
|
834
|
+
function dt(t) {
|
|
835
|
+
t.querySelectorAll(`[${M}]`).forEach((e) => {
|
|
836
|
+
const r = JSON.parse(e.getAttribute(M) ?? "{}");
|
|
840
837
|
for (const [n, s] of Object.entries(r))
|
|
841
838
|
e.setAttribute(n, s);
|
|
842
|
-
e.removeAttribute(
|
|
839
|
+
e.removeAttribute(M);
|
|
843
840
|
});
|
|
844
841
|
}
|
|
845
842
|
function pt(t) {
|
|
846
843
|
t.setAttribute(x, t.className);
|
|
847
844
|
}
|
|
848
|
-
function
|
|
849
|
-
|
|
850
|
-
isSSR: y.isSSR(),
|
|
851
|
-
isFirstLevel: t.isFirstLevel
|
|
852
|
-
}), y.isSSR() && t.isFirstLevel && pt(t.element);
|
|
845
|
+
function Me(t) {
|
|
846
|
+
T.isSSR() && t.isFirstLevel && pt(t.element);
|
|
853
847
|
}
|
|
854
848
|
function mt(t) {
|
|
855
849
|
t.querySelectorAll(`[${x}]`).forEach((e) => {
|
|
@@ -857,49 +851,41 @@ function mt(t) {
|
|
|
857
851
|
r !== null && (e.className = r, e.removeAttribute(x));
|
|
858
852
|
});
|
|
859
853
|
}
|
|
860
|
-
function
|
|
861
|
-
t.setAttribute(
|
|
854
|
+
function Ne(t) {
|
|
855
|
+
t.setAttribute(Te, "");
|
|
862
856
|
}
|
|
863
857
|
function gt(t) {
|
|
864
|
-
t.querySelectorAll(`[${
|
|
865
|
-
|
|
858
|
+
t.querySelectorAll(`[${Te}]`).forEach((e) => {
|
|
859
|
+
b(e);
|
|
866
860
|
});
|
|
867
861
|
}
|
|
868
862
|
function wt(t) {
|
|
869
|
-
t.setAttribute(
|
|
863
|
+
t.setAttribute(W, t.textContent ?? "");
|
|
870
864
|
}
|
|
871
|
-
function
|
|
872
|
-
|
|
873
|
-
isSSR: y.isSSR(),
|
|
874
|
-
isFirstLevel: t.isFirstLevel
|
|
875
|
-
}), y.isSSR() && t.isFirstLevel && wt(t.element);
|
|
876
|
-
}
|
|
877
|
-
function St(t) {
|
|
878
|
-
t.querySelectorAll(`[${F}]`).forEach((e) => {
|
|
879
|
-
e.textContent = e.getAttribute(F), e.removeAttribute(F);
|
|
880
|
-
});
|
|
865
|
+
function $e(t) {
|
|
866
|
+
T.isSSR() && t.isFirstLevel && wt(t.element);
|
|
881
867
|
}
|
|
882
868
|
function bt(t) {
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
const W = "__tempo__is_ssr__";
|
|
886
|
-
let K = 0;
|
|
887
|
-
const or = (t = 30) => {
|
|
888
|
-
const e = window;
|
|
889
|
-
return e[W] = !0, new Promise((r, n) => {
|
|
890
|
-
let s;
|
|
891
|
-
const i = setInterval(() => {
|
|
892
|
-
K <= 0 && (clearInterval(i), clearTimeout(s), e[W] = !1, r());
|
|
893
|
-
}, 500);
|
|
894
|
-
s = setTimeout(() => {
|
|
895
|
-
clearInterval(i), e[W] = !1, n(new Error("SSR Timeout"));
|
|
896
|
-
}, t * 1e3);
|
|
869
|
+
t.querySelectorAll(`[${W}]`).forEach((e) => {
|
|
870
|
+
e.textContent = e.getAttribute(W), e.removeAttribute(W);
|
|
897
871
|
});
|
|
898
|
-
}
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
872
|
+
}
|
|
873
|
+
function St(t) {
|
|
874
|
+
gt(t), mt(t), dt(t), bt(t);
|
|
875
|
+
}
|
|
876
|
+
let F = !1, U = 0;
|
|
877
|
+
const or = (t = 30) => (F = !0, new Promise((e, r) => {
|
|
878
|
+
let n;
|
|
879
|
+
const s = setInterval(() => {
|
|
880
|
+
U <= 0 && (clearInterval(s), clearTimeout(n), F = !1, e());
|
|
881
|
+
}, 500);
|
|
882
|
+
n = setTimeout(() => {
|
|
883
|
+
clearInterval(s), F = !1, r(new Error("SSR Timeout"));
|
|
884
|
+
}, t * 1e3);
|
|
885
|
+
})), T = {
|
|
886
|
+
useDone: (t) => (U++, f(t(() => U--))),
|
|
887
|
+
isSSR: () => F
|
|
888
|
+
}, Le = (t, e) => (r) => {
|
|
903
889
|
const n = Object.values(t).reduce((s, i) => {
|
|
904
890
|
const o = r.getProvider(i);
|
|
905
891
|
if (o == null)
|
|
@@ -907,21 +893,21 @@ const or = (t = 30) => {
|
|
|
907
893
|
return s[i] = o, s;
|
|
908
894
|
}, {});
|
|
909
895
|
return f(e(n))(r);
|
|
910
|
-
},
|
|
896
|
+
}, ur = (t, e) => (r) => {
|
|
911
897
|
const n = [], s = Object.entries(t).reduce(
|
|
912
898
|
(i, [o, l]) => (n.push(
|
|
913
|
-
l((
|
|
899
|
+
l((u) => (Reflect.set(i, o, u), null))(r)
|
|
914
900
|
), i),
|
|
915
901
|
{}
|
|
916
902
|
);
|
|
917
903
|
return n.push(e(s)(r)), (i) => {
|
|
918
904
|
n.forEach((o) => o(i));
|
|
919
905
|
};
|
|
920
|
-
}, vt = (t, e) =>
|
|
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);
|
|
921
907
|
function At(t) {
|
|
922
908
|
return Symbol(t);
|
|
923
909
|
}
|
|
924
|
-
const
|
|
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 = {
|
|
925
911
|
/**
|
|
926
912
|
* Provides a child component with an appearance context, which can be used to
|
|
927
913
|
* determine the current appearance (light or dark) based on the user's system
|
|
@@ -939,7 +925,7 @@ const Re = (t, e) => (r) => f(e)(r.withProviders(t)), lr = (...t) => t.length >
|
|
|
939
925
|
}, s = window.matchMedia != null ? window.matchMedia("(prefers-color-scheme: dark)") : void 0;
|
|
940
926
|
return s == null || s.addEventListener("change", n), g(
|
|
941
927
|
yt(oe, r, t),
|
|
942
|
-
|
|
928
|
+
$(() => s == null ? void 0 : s.removeEventListener("change", n))
|
|
943
929
|
);
|
|
944
930
|
},
|
|
945
931
|
/**
|
|
@@ -950,27 +936,27 @@ const Re = (t, e) => (r) => f(e)(r.withProviders(t)), lr = (...t) => t.length >
|
|
|
950
936
|
* @returns The `Child` element returned by the provided function.
|
|
951
937
|
*/
|
|
952
938
|
consume: (t) => vt(oe, t)
|
|
953
|
-
},
|
|
939
|
+
}, Oe = (t, e) => {
|
|
954
940
|
if (typeof e == "function")
|
|
955
|
-
return
|
|
941
|
+
return Oe(t, { then: e });
|
|
956
942
|
const r = e.pending != null ? f(e.pending) : w, n = e.then, s = e.error != null ? (i) => f(e.error(i)) : () => w;
|
|
957
943
|
return (i) => {
|
|
958
944
|
let o = !0;
|
|
959
945
|
const l = t();
|
|
960
946
|
i = i.makeRef();
|
|
961
|
-
let
|
|
947
|
+
let u = f(r)(i);
|
|
962
948
|
return l.then(
|
|
963
949
|
(c) => {
|
|
964
|
-
o && (
|
|
950
|
+
o && (u(!0), u = f(n(c))(i));
|
|
965
951
|
},
|
|
966
952
|
(c) => {
|
|
967
|
-
o && (
|
|
953
|
+
o && (u(!0), u = f(s(c))(i));
|
|
968
954
|
}
|
|
969
955
|
), (c) => {
|
|
970
|
-
o = !1,
|
|
956
|
+
o = !1, u(c), c && i.reference && b(i.reference);
|
|
971
957
|
};
|
|
972
958
|
};
|
|
973
|
-
},
|
|
959
|
+
}, hr = (t, e) => Oe(() => t, e), dr = (t = 10) => (e) => {
|
|
974
960
|
const r = setTimeout(() => {
|
|
975
961
|
var n;
|
|
976
962
|
(n = e.element) == null || n.focus();
|
|
@@ -984,9 +970,9 @@ const Re = (t, e) => (r) => f(e)(r.withProviders(t)), lr = (...t) => t.length >
|
|
|
984
970
|
return (n) => {
|
|
985
971
|
clearTimeout(r);
|
|
986
972
|
};
|
|
987
|
-
},
|
|
973
|
+
}, Re = (t, e) => (r) => (r.element.addEventListener(t, e), (n) => {
|
|
988
974
|
n && r.element.removeEventListener(t, e);
|
|
989
|
-
}),
|
|
975
|
+
}), Et = (t) => Re("click", (e) => {
|
|
990
976
|
e.preventDefault();
|
|
991
977
|
const r = e.target;
|
|
992
978
|
setTimeout(() => {
|
|
@@ -996,7 +982,7 @@ const Re = (t, e) => (r) => f(e)(r.withProviders(t)), lr = (...t) => t.length >
|
|
|
996
982
|
}), X = new Proxy(
|
|
997
983
|
{},
|
|
998
984
|
{
|
|
999
|
-
get: (t, e) => (r) =>
|
|
985
|
+
get: (t, e) => (r) => Re(e, r)
|
|
1000
986
|
}
|
|
1001
987
|
), Y = {
|
|
1002
988
|
value: (t) => (e) => {
|
|
@@ -1043,74 +1029,74 @@ const Re = (t, e) => (r) => f(e)(r.withProviders(t)), lr = (...t) => t.length >
|
|
|
1043
1029
|
e.stopImmediatePropagation(), t();
|
|
1044
1030
|
}
|
|
1045
1031
|
};
|
|
1046
|
-
function
|
|
1032
|
+
function _t(t, e = "input") {
|
|
1047
1033
|
return g(
|
|
1048
1034
|
P.valueAsDate(t),
|
|
1049
1035
|
X[e](Y.valueAsDate(t.set))
|
|
1050
1036
|
);
|
|
1051
1037
|
}
|
|
1052
|
-
function
|
|
1038
|
+
function Pt(t, e = "input") {
|
|
1053
1039
|
return g(
|
|
1054
1040
|
P.valueAsDate(t),
|
|
1055
1041
|
X[e](Y.valueAsDateTime(t.set))
|
|
1056
1042
|
);
|
|
1057
1043
|
}
|
|
1058
|
-
function
|
|
1044
|
+
function Dt(t, e = "input") {
|
|
1059
1045
|
return g(
|
|
1060
1046
|
P.valueAsNumber(t),
|
|
1061
1047
|
X[e](Y.valueAsNumber(t.set))
|
|
1062
1048
|
);
|
|
1063
1049
|
}
|
|
1064
|
-
function
|
|
1050
|
+
function Tt(t, e = "input") {
|
|
1065
1051
|
return g(P.value(t), X[e](Y.value(t.set)));
|
|
1066
1052
|
}
|
|
1067
1053
|
function Ct(t) {
|
|
1068
|
-
return g(P.checked(t),
|
|
1054
|
+
return g(P.checked(t), Et(t.set));
|
|
1069
1055
|
}
|
|
1070
1056
|
const mr = {
|
|
1071
|
-
date:
|
|
1072
|
-
dateTime:
|
|
1073
|
-
number:
|
|
1074
|
-
text:
|
|
1057
|
+
date: _t,
|
|
1058
|
+
dateTime: Pt,
|
|
1059
|
+
number: Dt,
|
|
1060
|
+
text: Tt,
|
|
1075
1061
|
checked: Ct
|
|
1076
|
-
},
|
|
1062
|
+
}, O = (t, e) => (r) => {
|
|
1077
1063
|
r = r.makeRef();
|
|
1078
1064
|
let n, s;
|
|
1079
|
-
const i = t.map((
|
|
1065
|
+
const i = t.map((u) => Object.keys(u)[0]);
|
|
1080
1066
|
let o;
|
|
1081
|
-
const l = i.on((
|
|
1082
|
-
if (
|
|
1083
|
-
s == null || s.dispose(), n == null || n(!0), s = t.map((p) => p[
|
|
1084
|
-
const c = e[
|
|
1085
|
-
n = f(c)(r), o =
|
|
1067
|
+
const l = i.on((u) => {
|
|
1068
|
+
if (u !== o) {
|
|
1069
|
+
s == null || s.dispose(), n == null || n(!0), s = t.map((p) => p[u]);
|
|
1070
|
+
const c = e[u](s);
|
|
1071
|
+
n = f(c)(r), o = u;
|
|
1086
1072
|
}
|
|
1087
1073
|
});
|
|
1088
|
-
return (
|
|
1089
|
-
l(),
|
|
1074
|
+
return (u) => {
|
|
1075
|
+
l(), u && r.reference != null && b(r.reference), n == null || n(!0);
|
|
1090
1076
|
};
|
|
1091
|
-
},
|
|
1092
|
-
bool: (t, e) =>
|
|
1077
|
+
}, L = {
|
|
1078
|
+
bool: (t, e) => O(
|
|
1093
1079
|
t.map((r) => r ? { true: !0 } : { false: !0 }),
|
|
1094
1080
|
e
|
|
1095
1081
|
),
|
|
1096
|
-
field: (t, e, r) =>
|
|
1082
|
+
field: (t, e, r) => O(
|
|
1097
1083
|
t.map((n) => ({ [n[e]]: n })),
|
|
1098
1084
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1099
1085
|
r
|
|
1100
1086
|
),
|
|
1101
|
-
kind: (t, e) =>
|
|
1087
|
+
kind: (t, e) => L.field(t, "kind", e),
|
|
1102
1088
|
tuple: (t, e) => {
|
|
1103
1089
|
const r = t.map(([n, s]) => ({ [n]: s }));
|
|
1104
|
-
return
|
|
1090
|
+
return O(r, e);
|
|
1105
1091
|
},
|
|
1106
|
-
type: (t, e) =>
|
|
1107
|
-
value: (t, e) =>
|
|
1092
|
+
type: (t, e) => L.field(t, "type", e),
|
|
1093
|
+
value: (t, e) => O(
|
|
1108
1094
|
t.map((r) => ({ [r]: !0 })),
|
|
1109
1095
|
e
|
|
1110
1096
|
)
|
|
1111
1097
|
}, gr = (t, e) => (r) => {
|
|
1112
1098
|
const n = (e == null ? void 0 : e.firstSeparator) ?? w, s = (e == null ? void 0 : e.lastSeparator) ?? w;
|
|
1113
|
-
return
|
|
1099
|
+
return L.value(
|
|
1114
1100
|
r.map((i) => i.isFirst ? "first" : i.isLast ? "last" : "other"),
|
|
1115
1101
|
{
|
|
1116
1102
|
first: () => n,
|
|
@@ -1118,23 +1104,23 @@ const mr = {
|
|
|
1118
1104
|
other: () => t
|
|
1119
1105
|
}
|
|
1120
1106
|
);
|
|
1121
|
-
}, wr = (t) => (e) => t(e)(e),
|
|
1122
|
-
r &&
|
|
1123
|
-
}),
|
|
1107
|
+
}, wr = (t) => (e) => t(e)(e), br = (t) => (e) => (e.appendOrInsert(t), (r) => {
|
|
1108
|
+
r && b(t);
|
|
1109
|
+
}), Mt = (t, e, r) => (n) => {
|
|
1124
1110
|
n = n.makeRef();
|
|
1125
1111
|
let s = null, i = !1;
|
|
1126
|
-
const o = A(null), l = t.on((
|
|
1127
|
-
|
|
1112
|
+
const o = A(null), l = t.on((u) => {
|
|
1113
|
+
u == null ? (s == null || s(!0), s = f((r == null ? void 0 : r()) ?? w)(n), i = !1) : (o.value = u, i || (s == null || s(!0), s = f(e(o))(n), i = !0));
|
|
1128
1114
|
});
|
|
1129
|
-
return (
|
|
1130
|
-
l(), s == null || s(
|
|
1115
|
+
return (u) => {
|
|
1116
|
+
l(), s == null || s(u), u && n.reference && b(n.reference);
|
|
1131
1117
|
};
|
|
1132
1118
|
}, xe = (t, e, r) => r != null ? xe(t, (n) => {
|
|
1133
1119
|
const s = n.map((i) => i.isLast ? "last" : "other");
|
|
1134
1120
|
return g(
|
|
1135
|
-
|
|
1121
|
+
$(() => s.dispose()),
|
|
1136
1122
|
f(e(n)),
|
|
1137
|
-
|
|
1123
|
+
L.value(s, {
|
|
1138
1124
|
last: () => w,
|
|
1139
1125
|
other: () => r(n)
|
|
1140
1126
|
})
|
|
@@ -1142,31 +1128,31 @@ const mr = {
|
|
|
1142
1128
|
}) : (n) => {
|
|
1143
1129
|
n = n.makeRef();
|
|
1144
1130
|
const s = t.map(
|
|
1145
|
-
(
|
|
1146
|
-
(c) => new
|
|
1131
|
+
(u) => Array.from({ length: u }, (c, p) => p).map(
|
|
1132
|
+
(c) => new He(c, u)
|
|
1147
1133
|
)
|
|
1148
|
-
), i = [], o = [], l = s.on((
|
|
1134
|
+
), i = [], o = [], l = s.on((u) => {
|
|
1149
1135
|
var p, m;
|
|
1150
|
-
const c =
|
|
1136
|
+
const c = u.length;
|
|
1151
1137
|
for (; c < i.length; )
|
|
1152
1138
|
(p = i.pop()) == null || p(!0), (m = o.pop()) == null || m.dispose();
|
|
1153
|
-
for (let
|
|
1154
|
-
if (o[
|
|
1155
|
-
o[
|
|
1156
|
-
const
|
|
1157
|
-
i[
|
|
1139
|
+
for (let h = 0; h < c; h++)
|
|
1140
|
+
if (o[h] == null) {
|
|
1141
|
+
o[h] = A(u[h]);
|
|
1142
|
+
const _ = f(e(o[h]));
|
|
1143
|
+
i[h] = _(n);
|
|
1158
1144
|
} else
|
|
1159
|
-
o[
|
|
1145
|
+
o[h].value = u[h];
|
|
1160
1146
|
});
|
|
1161
|
-
return (
|
|
1162
|
-
l(),
|
|
1147
|
+
return (u) => {
|
|
1148
|
+
l(), u && n.reference && b(n.reference);
|
|
1163
1149
|
};
|
|
1164
|
-
},
|
|
1150
|
+
}, Nt = (t, e, r) => r != null ? Nt(t, (n, s) => {
|
|
1165
1151
|
const i = s.map((o) => o.isLast ? "last" : "other");
|
|
1166
1152
|
return g([
|
|
1167
|
-
|
|
1153
|
+
$(() => i.dispose()),
|
|
1168
1154
|
f(e(n, s)),
|
|
1169
|
-
|
|
1155
|
+
L.value(i, {
|
|
1170
1156
|
last: () => w,
|
|
1171
1157
|
other: () => r(s)
|
|
1172
1158
|
})
|
|
@@ -1174,22 +1160,22 @@ const mr = {
|
|
|
1174
1160
|
}) : (n) => {
|
|
1175
1161
|
const s = t.map((i) => i.length);
|
|
1176
1162
|
return xe(s, (i) => {
|
|
1177
|
-
const o =
|
|
1163
|
+
const o = k(
|
|
1178
1164
|
() => t.value[i.value.index],
|
|
1179
1165
|
[i, t]
|
|
1180
1166
|
);
|
|
1181
1167
|
return g(
|
|
1182
|
-
|
|
1168
|
+
$(() => o.dispose()),
|
|
1183
1169
|
f(e(o, i))
|
|
1184
1170
|
);
|
|
1185
1171
|
})(n);
|
|
1186
|
-
},
|
|
1172
|
+
}, Sr = (t) => {
|
|
1187
1173
|
const e = t.element, r = e.style.getPropertyValue(":empty");
|
|
1188
1174
|
return e.style.setProperty(":empty", "display:none"), (n) => {
|
|
1189
1175
|
n && e.style.setProperty(":empty", r);
|
|
1190
1176
|
};
|
|
1191
1177
|
};
|
|
1192
|
-
function
|
|
1178
|
+
function We(t, e) {
|
|
1193
1179
|
const r = t(e);
|
|
1194
1180
|
return () => r(!0);
|
|
1195
1181
|
}
|
|
@@ -1197,20 +1183,20 @@ function vr(t, e, { doc: r, clear: n } = {}) {
|
|
|
1197
1183
|
const s = typeof e == "string" ? (r ?? document).querySelector(e) : e;
|
|
1198
1184
|
if (s === null)
|
|
1199
1185
|
throw new Error(`Cannot find element by selector for render: ${e}`);
|
|
1200
|
-
n && (r ?? s.ownerDocument) != null &&
|
|
1186
|
+
n && (r ?? s.ownerDocument) != null && St(r ?? s.ownerDocument);
|
|
1201
1187
|
const i = ot(s), o = ye(s) ? void 0 : s, l = v.of(i, o);
|
|
1202
|
-
return
|
|
1188
|
+
return We(t, l);
|
|
1203
1189
|
}
|
|
1204
|
-
const
|
|
1190
|
+
const $t = (t, e) => (r) => {
|
|
1205
1191
|
const n = r.document.querySelector(t);
|
|
1206
1192
|
if (n === null)
|
|
1207
1193
|
throw new Error(`Cannot find element by selector for portal: ${t}`);
|
|
1208
|
-
return
|
|
1194
|
+
return We(
|
|
1209
1195
|
f(e),
|
|
1210
1196
|
r.withElement(n).withFirstLevel()
|
|
1211
1197
|
);
|
|
1212
|
-
}, Ar = (t) =>
|
|
1213
|
-
}), B = (t, e, r) =>
|
|
1198
|
+
}, Ar = (t) => $t("head title", P.innerText(t)), Lt = (t) => (e) => t(e.element) ?? (() => {
|
|
1199
|
+
}), B = (t, e, r) => Mt(
|
|
1214
1200
|
t.map((n) => n ? !0 : null),
|
|
1215
1201
|
() => e,
|
|
1216
1202
|
r != null ? () => r : void 0
|
|
@@ -1218,7 +1204,7 @@ const Nt = (t, e) => (r) => {
|
|
|
1218
1204
|
t.map((n) => !n),
|
|
1219
1205
|
e,
|
|
1220
1206
|
r
|
|
1221
|
-
),
|
|
1207
|
+
), It = {
|
|
1222
1208
|
partial: {
|
|
1223
1209
|
root: null,
|
|
1224
1210
|
rootMargin: "0px",
|
|
@@ -1232,33 +1218,33 @@ const Nt = (t, e) => (r) => {
|
|
|
1232
1218
|
}, z = {
|
|
1233
1219
|
partial: /* @__PURE__ */ new Map(),
|
|
1234
1220
|
full: /* @__PURE__ */ new Map()
|
|
1235
|
-
},
|
|
1221
|
+
}, N = {
|
|
1236
1222
|
partial: null,
|
|
1237
1223
|
full: null
|
|
1238
1224
|
};
|
|
1239
|
-
function
|
|
1240
|
-
return
|
|
1225
|
+
function Ot(t) {
|
|
1226
|
+
return N[t] == null && (N[t] = new IntersectionObserver((e) => {
|
|
1241
1227
|
e.forEach((r) => {
|
|
1242
1228
|
const n = z[t].get(r.target);
|
|
1243
1229
|
n == null || n.set(r.isIntersecting);
|
|
1244
1230
|
});
|
|
1245
|
-
},
|
|
1231
|
+
}, It[t])), N[t];
|
|
1246
1232
|
}
|
|
1247
|
-
function
|
|
1248
|
-
const r = A(
|
|
1233
|
+
function Rt(t, e) {
|
|
1234
|
+
const r = A(T.isSSR());
|
|
1249
1235
|
return g(
|
|
1250
|
-
|
|
1251
|
-
const s = typeof IntersectionObserver < "u" ?
|
|
1236
|
+
Lt((n) => {
|
|
1237
|
+
const s = typeof IntersectionObserver < "u" ? Ot(t) : null;
|
|
1252
1238
|
return z[t].set(n, r), s == null || s.observe(n), () => {
|
|
1253
1239
|
var i;
|
|
1254
|
-
s == null || s.unobserve(n), z[t].delete(n), z[t].size === 0 && ((i =
|
|
1240
|
+
s == null || s.unobserve(n), z[t].delete(n), z[t].size === 0 && ((i = N[t]) == null || i.disconnect(), N[t] = null);
|
|
1255
1241
|
};
|
|
1256
1242
|
}),
|
|
1257
|
-
|
|
1243
|
+
$(r.dispose),
|
|
1258
1244
|
f(e(r))
|
|
1259
1245
|
);
|
|
1260
1246
|
}
|
|
1261
|
-
const
|
|
1247
|
+
const Er = (t, e, r) => Rt(t, (n) => B(n, e, r ?? w)), _r = (t, e) => (r) => {
|
|
1262
1248
|
r = r.makeRef();
|
|
1263
1249
|
const n = t.map((o) => f(e(o)));
|
|
1264
1250
|
let s = () => {
|
|
@@ -1270,7 +1256,7 @@ const _r = (t, e, r) => Ot(t, (n) => B(n, e, r ?? w)), Er = (t, e) => (r) => {
|
|
|
1270
1256
|
i(), s(o);
|
|
1271
1257
|
};
|
|
1272
1258
|
};
|
|
1273
|
-
function
|
|
1259
|
+
function Pr(t, e, r = w) {
|
|
1274
1260
|
return B(
|
|
1275
1261
|
t.map((n) => n.length > 0),
|
|
1276
1262
|
e,
|
|
@@ -1285,7 +1271,7 @@ const xt = (t) => (e) => {
|
|
|
1285
1271
|
return typeof ResizeObserver == "function" && (o = new ResizeObserver(i), o.observe(r)), (l) => {
|
|
1286
1272
|
o == null || o.disconnect(), s(l);
|
|
1287
1273
|
};
|
|
1288
|
-
},
|
|
1274
|
+
}, Wt = (t) => (e) => {
|
|
1289
1275
|
const r = A({
|
|
1290
1276
|
width: (window == null ? void 0 : window.innerWidth) ?? 0,
|
|
1291
1277
|
height: (window == null ? void 0 : window.innerHeight) ?? 0
|
|
@@ -1298,10 +1284,10 @@ const xt = (t) => (e) => {
|
|
|
1298
1284
|
return window == null || window.addEventListener("resize", s), (i) => {
|
|
1299
1285
|
window == null || window.removeEventListener("resize", s), n(i);
|
|
1300
1286
|
};
|
|
1301
|
-
},
|
|
1287
|
+
}, Dr = {
|
|
1302
1288
|
element: xt,
|
|
1303
|
-
window:
|
|
1304
|
-
},
|
|
1289
|
+
window: Wt
|
|
1290
|
+
}, Ft = (t, e) => (r) => {
|
|
1305
1291
|
const n = r.element, s = n.style.getPropertyValue(t);
|
|
1306
1292
|
return n.style.setProperty(t, e), (i) => {
|
|
1307
1293
|
i && n.style.setProperty(t, s);
|
|
@@ -1311,74 +1297,74 @@ const xt = (t) => (e) => {
|
|
|
1311
1297
|
return e.on((i) => n.style.setProperty(t, i)), (i) => {
|
|
1312
1298
|
i && n.style.setProperty(t, s);
|
|
1313
1299
|
};
|
|
1314
|
-
},
|
|
1300
|
+
}, Tr = new Proxy(
|
|
1315
1301
|
{},
|
|
1316
1302
|
{
|
|
1317
|
-
get: (t, e) => (r) =>
|
|
1303
|
+
get: (t, e) => (r) => d.is(r) ? zt(e, r) : Ft(e, r)
|
|
1318
1304
|
}
|
|
1319
1305
|
);
|
|
1320
1306
|
export {
|
|
1321
|
-
|
|
1322
|
-
|
|
1307
|
+
hr as Async,
|
|
1308
|
+
dr as AutoFocus,
|
|
1323
1309
|
pr as AutoSelect,
|
|
1324
1310
|
D as Computed,
|
|
1325
1311
|
gr as Conjunction,
|
|
1326
1312
|
wr as Ctx,
|
|
1327
1313
|
v as DOMContext,
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1314
|
+
br as DOMEl,
|
|
1315
|
+
Pe as El,
|
|
1316
|
+
De as ElNS,
|
|
1331
1317
|
w as Empty,
|
|
1332
|
-
|
|
1333
|
-
|
|
1318
|
+
Mt as Ensure,
|
|
1319
|
+
Nt as ForEach,
|
|
1334
1320
|
g as Fragment,
|
|
1335
1321
|
Ar as HTMLTitle,
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
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,
|
|
1346
1332
|
V as Prop,
|
|
1347
1333
|
lr as Provide,
|
|
1348
1334
|
xe as Repeat,
|
|
1349
|
-
|
|
1350
|
-
|
|
1335
|
+
d as Signal,
|
|
1336
|
+
Oe as Task,
|
|
1351
1337
|
Gt as Text,
|
|
1352
1338
|
yr as Unless,
|
|
1353
|
-
|
|
1339
|
+
ur as Use,
|
|
1354
1340
|
vt as UseProvider,
|
|
1355
|
-
|
|
1341
|
+
ar as UseProviders,
|
|
1356
1342
|
B as When,
|
|
1357
|
-
|
|
1343
|
+
Er as WhenInViewport,
|
|
1358
1344
|
yt as WithProvider,
|
|
1359
1345
|
cr as WithProviders,
|
|
1360
|
-
|
|
1361
|
-
|
|
1346
|
+
Ne as addNodeTracker,
|
|
1347
|
+
Ue as animate,
|
|
1362
1348
|
jt as animateOne,
|
|
1363
1349
|
fr as appearance,
|
|
1364
1350
|
oe as appearanceMarker,
|
|
1365
1351
|
Bt as applyAnimatable,
|
|
1366
|
-
|
|
1367
|
-
|
|
1352
|
+
R as applyAnimatableProp,
|
|
1353
|
+
kt as applyInterpolatedAnimatable,
|
|
1368
1354
|
et as applyInterpolatedAnimatableProp,
|
|
1369
1355
|
Qt as aria,
|
|
1370
1356
|
P as attr,
|
|
1371
1357
|
mr as bind,
|
|
1372
1358
|
f as childToMountable,
|
|
1373
|
-
|
|
1359
|
+
St as clearSSR,
|
|
1374
1360
|
Be as colorChannelsToString,
|
|
1375
|
-
|
|
1376
|
-
|
|
1361
|
+
k as computed,
|
|
1362
|
+
Ht as computedRecord,
|
|
1377
1363
|
Xe as dateInterpolate,
|
|
1378
1364
|
qt as effect,
|
|
1379
1365
|
Y as emit,
|
|
1380
1366
|
Ye as endInterpolate,
|
|
1381
|
-
|
|
1367
|
+
Ut as getComputedAnimatable,
|
|
1382
1368
|
Ge as getComputedAnimatableProp,
|
|
1383
1369
|
ot as getSelfOrParentElement,
|
|
1384
1370
|
je as guessInterpolate,
|
|
@@ -1386,7 +1372,7 @@ export {
|
|
|
1386
1372
|
rr as html,
|
|
1387
1373
|
nr as input,
|
|
1388
1374
|
Je as interpolateColor,
|
|
1389
|
-
|
|
1375
|
+
Kt as interpolateShadow,
|
|
1390
1376
|
ye as isElement,
|
|
1391
1377
|
Ae as makeGetter,
|
|
1392
1378
|
At as makeProviderMark,
|
|
@@ -1394,36 +1380,36 @@ export {
|
|
|
1394
1380
|
ir as math,
|
|
1395
1381
|
tr as mathAttr,
|
|
1396
1382
|
Ce as maybeAddAttributeTracker,
|
|
1397
|
-
|
|
1398
|
-
|
|
1383
|
+
Me as maybeAddClassTracker,
|
|
1384
|
+
$e as maybeAddTextTracker,
|
|
1399
1385
|
qe as numberInterpolate,
|
|
1400
1386
|
X as on,
|
|
1401
|
-
|
|
1387
|
+
L as oneof,
|
|
1402
1388
|
se as parseColorChannels,
|
|
1403
1389
|
A as prop,
|
|
1404
1390
|
Xt as propOfLocalStorage,
|
|
1405
1391
|
Yt as propOfSessionStorage,
|
|
1406
|
-
|
|
1407
|
-
|
|
1392
|
+
de as propOfStorage,
|
|
1393
|
+
dt as removeAttributeTrackers,
|
|
1408
1394
|
mt as removeClassTrackers,
|
|
1409
|
-
|
|
1395
|
+
b as removeDOMNode,
|
|
1410
1396
|
gt as removeNodeTrackers,
|
|
1411
|
-
|
|
1397
|
+
bt as removeTextTrackers,
|
|
1412
1398
|
vr as render,
|
|
1413
|
-
|
|
1399
|
+
We as renderWithContext,
|
|
1414
1400
|
it as setAttribute,
|
|
1415
1401
|
tt as setBooleanProperty,
|
|
1416
1402
|
nt as setDateProperty,
|
|
1417
1403
|
rt as setNumberProperty,
|
|
1418
1404
|
st as setStringProperty,
|
|
1419
1405
|
Zt as signal,
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1406
|
+
_e as signalText,
|
|
1407
|
+
Dr as size,
|
|
1408
|
+
T as ssr,
|
|
1423
1409
|
or as startSSR,
|
|
1424
|
-
|
|
1410
|
+
Ee as staticText,
|
|
1425
1411
|
Ze as stringInterpolate,
|
|
1426
|
-
|
|
1412
|
+
Tr as style,
|
|
1427
1413
|
sr as svg,
|
|
1428
1414
|
er as svgAttr
|
|
1429
1415
|
};
|