@tempots/dom 10.0.0 → 10.0.2
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/README.md +1 -6
- package/dom/ssr-tracker.d.ts +12 -0
- package/index.cjs +1 -1
- package/index.js +482 -467
- package/mountable/style.d.ts +0 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var a = (t, e, r) =>
|
|
4
|
-
function
|
|
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) {
|
|
5
5
|
return t + (e - t) * r;
|
|
6
6
|
}
|
|
7
|
-
const
|
|
8
|
-
function
|
|
7
|
+
const Q = 97;
|
|
8
|
+
function Ze(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 =
|
|
14
|
-
let
|
|
15
|
-
isNaN(
|
|
13
|
+
isNaN(o) && (o = Q);
|
|
14
|
+
let l = e.charCodeAt(i);
|
|
15
|
+
isNaN(l) && (l = Q), s += String.fromCharCode(o + (l - o) * r);
|
|
16
16
|
}
|
|
17
17
|
return s;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function Xe(t, e, r) {
|
|
20
20
|
return new Date(t.getTime() + (e.getTime() - t.getTime()) * r);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Ye(t, e, r) {
|
|
23
23
|
return e;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
return typeof t == "number" ?
|
|
25
|
+
function He(t) {
|
|
26
|
+
return typeof t == "number" ? qe : typeof t == "string" ? Ze : t instanceof Date ? Xe : Ye;
|
|
27
27
|
}
|
|
28
|
-
class
|
|
28
|
+
class Ke {
|
|
29
29
|
constructor(e, r) {
|
|
30
30
|
this.index = e, this.total = r;
|
|
31
31
|
}
|
|
@@ -43,11 +43,11 @@ class Ze {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
const ee = Symbol("isSignal"), te = Symbol("isProp"), re = Symbol("isComputed");
|
|
46
|
-
var
|
|
47
|
-
|
|
48
|
-
const
|
|
46
|
+
var ue;
|
|
47
|
+
ue = ee;
|
|
48
|
+
const E = class E {
|
|
49
49
|
constructor(e, r) {
|
|
50
|
-
a(this,
|
|
50
|
+
a(this, ue, !0);
|
|
51
51
|
a(this, "_value");
|
|
52
52
|
a(this, "_derivatives", []);
|
|
53
53
|
a(this, "_onValueListeners", []);
|
|
@@ -70,7 +70,7 @@ const P = class P {
|
|
|
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
|
|
73
|
+
const n = new D(() => {
|
|
74
74
|
try {
|
|
75
75
|
return e(this.get());
|
|
76
76
|
} catch (s) {
|
|
@@ -80,7 +80,7 @@ const P = class P {
|
|
|
80
80
|
return this.setDerivative(n), n;
|
|
81
81
|
});
|
|
82
82
|
a(this, "flatMap", (e, r = (n, s) => n === s) => {
|
|
83
|
-
const n = new
|
|
83
|
+
const n = new D(() => {
|
|
84
84
|
try {
|
|
85
85
|
return e(this.get()).get();
|
|
86
86
|
} catch (s) {
|
|
@@ -93,7 +93,7 @@ const P = class P {
|
|
|
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
|
|
96
|
+
const s = new D(() => {
|
|
97
97
|
try {
|
|
98
98
|
const i = this.get();
|
|
99
99
|
return n = e(i) ? i : n;
|
|
@@ -105,10 +105,10 @@ const P = class P {
|
|
|
105
105
|
});
|
|
106
106
|
a(this, "filterMap", (e, r, n = (s, i) => s === i) => {
|
|
107
107
|
let s = r;
|
|
108
|
-
const i = new
|
|
108
|
+
const i = new D(() => {
|
|
109
109
|
try {
|
|
110
|
-
const o = this.get(),
|
|
111
|
-
return s =
|
|
110
|
+
const o = this.get(), l = e(o);
|
|
111
|
+
return s = l ?? s;
|
|
112
112
|
} catch (o) {
|
|
113
113
|
throw console.error("Error in Signal.filterMap:", o), o;
|
|
114
114
|
}
|
|
@@ -116,16 +116,16 @@ const P = class P {
|
|
|
116
116
|
return this.setDerivative(i), i;
|
|
117
117
|
});
|
|
118
118
|
a(this, "mapAsync", (e, r, n, s = (i, o) => i === o) => {
|
|
119
|
-
const i =
|
|
119
|
+
const i = A(r, s);
|
|
120
120
|
let o = 0;
|
|
121
121
|
return i.onDispose(
|
|
122
|
-
this.on((
|
|
123
|
-
const
|
|
122
|
+
this.on((l) => {
|
|
123
|
+
const u = ++o;
|
|
124
124
|
try {
|
|
125
|
-
e(
|
|
126
|
-
|
|
125
|
+
e(l).then((c) => {
|
|
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
|
));
|
|
@@ -141,7 +141,7 @@ const P = class P {
|
|
|
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
|
-
a(this, "deriveProp", (e = !0) => this.feedProp(
|
|
144
|
+
a(this, "deriveProp", (e = !0) => this.feedProp(A(this.get()), e));
|
|
145
145
|
a(this, "count", () => {
|
|
146
146
|
let e = 0;
|
|
147
147
|
return this.map(() => ++e);
|
|
@@ -157,7 +157,7 @@ const P = class P {
|
|
|
157
157
|
this.equals = r, this._value = e;
|
|
158
158
|
}
|
|
159
159
|
static ofPromise(e, r, n, s = (i, o) => i === o) {
|
|
160
|
-
const i = new
|
|
160
|
+
const i = new E(r, s);
|
|
161
161
|
return e.then((o) => i._setAndNotify(o, !1)).catch((o) => {
|
|
162
162
|
n != null ? i._setAndNotify(n(o), !1) : console.error(
|
|
163
163
|
"Unhandled promise rejection in Signal.ofPromise:",
|
|
@@ -169,25 +169,25 @@ const P = class P {
|
|
|
169
169
|
return e != null && e[ee] === !0;
|
|
170
170
|
}
|
|
171
171
|
static wrap(e, r = (n, s) => n === s) {
|
|
172
|
-
return
|
|
172
|
+
return E.is(e) ? e : new E(e, r);
|
|
173
173
|
}
|
|
174
174
|
static maybeWrap(e) {
|
|
175
|
-
return e == null ? e :
|
|
175
|
+
return e == null ? e : E.wrap(e);
|
|
176
176
|
}
|
|
177
177
|
static unwrap(e) {
|
|
178
|
-
return
|
|
178
|
+
return E.is(e) ? e.get() : e;
|
|
179
179
|
}
|
|
180
180
|
static map(e, r) {
|
|
181
|
-
return
|
|
181
|
+
return E.is(e) ? e.map(r) : r(e);
|
|
182
182
|
}
|
|
183
183
|
get value() {
|
|
184
184
|
return this._value;
|
|
185
185
|
}
|
|
186
186
|
};
|
|
187
|
-
let
|
|
188
|
-
const
|
|
189
|
-
var ae,
|
|
190
|
-
class
|
|
187
|
+
let d = E;
|
|
188
|
+
const je = 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
193
|
a(this, ae, !0);
|
|
@@ -198,7 +198,7 @@ class L extends (ue = p, ae = re, ue) {
|
|
|
198
198
|
a(this, "_scheduleCount", 0);
|
|
199
199
|
a(this, "scheduleNotify", () => {
|
|
200
200
|
const r = ++this._scheduleCount;
|
|
201
|
-
|
|
201
|
+
je(() => {
|
|
202
202
|
this._scheduleCount !== r || this._disposed !== !1 || this._isDirty && (this._isDirty = !1, this._setAndNotify(this._fn(), !1));
|
|
203
203
|
});
|
|
204
204
|
});
|
|
@@ -213,7 +213,7 @@ class L extends (ue = p, ae = re, ue) {
|
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
var ce, fe;
|
|
216
|
-
class
|
|
216
|
+
class V extends (fe = d, ce = te, fe) {
|
|
217
217
|
constructor() {
|
|
218
218
|
super(...arguments);
|
|
219
219
|
a(this, ce, !0);
|
|
@@ -225,7 +225,7 @@ class O extends (fe = p, ce = te, fe) {
|
|
|
225
225
|
});
|
|
226
226
|
a(this, "reducer", (r) => (n) => this.update((s) => r(s, n)));
|
|
227
227
|
a(this, "iso", (r, n, s = (i, o) => i === o) => {
|
|
228
|
-
const i = new
|
|
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(
|
|
@@ -244,17 +244,17 @@ class O extends (fe = p, ce = te, fe) {
|
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
function B(t, e, r = (n, s) => n === s) {
|
|
247
|
-
const n = new
|
|
247
|
+
const n = new D(t, r);
|
|
248
248
|
return e.forEach((s) => s.setDerivative(n)), n;
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function qt(t, e) {
|
|
251
251
|
return B(t, e).dispose;
|
|
252
252
|
}
|
|
253
|
-
function
|
|
254
|
-
return new
|
|
253
|
+
function A(t, e = (r, n) => r === n) {
|
|
254
|
+
return new V(t, e);
|
|
255
255
|
}
|
|
256
|
-
function
|
|
257
|
-
return new
|
|
256
|
+
function Zt(t, e = (r, n) => r === n) {
|
|
257
|
+
return new d(t, e);
|
|
258
258
|
}
|
|
259
259
|
class he {
|
|
260
260
|
constructor() {
|
|
@@ -271,24 +271,24 @@ function de({
|
|
|
271
271
|
store: r,
|
|
272
272
|
serialize: n = JSON.stringify,
|
|
273
273
|
deserialize: s = JSON.parse,
|
|
274
|
-
equals: i = (
|
|
275
|
-
onLoad: o = (
|
|
274
|
+
equals: i = (l, u) => l === u,
|
|
275
|
+
onLoad: o = (l) => l
|
|
276
276
|
}) {
|
|
277
|
-
const
|
|
278
|
-
|
|
277
|
+
const l = r.getItem(t), u = new V(
|
|
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
|
-
function
|
|
285
|
+
function Xt(t) {
|
|
286
286
|
return de({
|
|
287
287
|
...t,
|
|
288
288
|
store: (window == null ? void 0 : window.localStorage) ?? new he()
|
|
289
289
|
});
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function Yt(t) {
|
|
292
292
|
return de({
|
|
293
293
|
...t,
|
|
294
294
|
store: (window == null ? void 0 : window.sessionStorage) ?? new he()
|
|
@@ -297,32 +297,32 @@ function Nt(t) {
|
|
|
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
|
|
303
|
-
const _ = new
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
}),
|
|
307
|
-
|
|
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, L) => S === L);
|
|
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
|
+
m !== null && cancelAnimationFrame(m);
|
|
306
|
+
}), y.onDispose(_.dispose), r.forEach((S) => {
|
|
307
|
+
S.setDerivative(_), S.onDispose(y.dispose);
|
|
308
308
|
});
|
|
309
|
-
const
|
|
310
|
-
c =
|
|
311
|
-
},
|
|
312
|
-
const
|
|
313
|
-
|
|
314
|
-
let
|
|
315
|
-
|
|
309
|
+
const H = (S) => {
|
|
310
|
+
c = S, p = performance.now(), u = y.value, h && (h = !1, m = ne(G));
|
|
311
|
+
}, G = () => {
|
|
312
|
+
const L = (performance.now() - p) / d.unwrap(s), Fe = i(L);
|
|
313
|
+
l == null && (l = He(u));
|
|
314
|
+
let J = l(u, c, Fe);
|
|
315
|
+
L >= 1 ? (h = !0, J = c) : m = ne(G), y.set(J);
|
|
316
316
|
};
|
|
317
|
-
return _.on(
|
|
317
|
+
return _.on(H), y;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function Ht(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 Kt(t, e) {
|
|
324
324
|
const { signals: r, literals: n } = Object.entries(t).reduce(
|
|
325
|
-
({ signals: i, literals: o }, [
|
|
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
328
|
return B(() => (r.forEach(([i, o]) => n[i] = o.value), e(n)), s);
|
|
@@ -360,103 +360,103 @@ function ie(t) {
|
|
|
360
360
|
spread: 0,
|
|
361
361
|
color: "rgba(0, 0, 0, 0)"
|
|
362
362
|
};
|
|
363
|
-
const [, n, s, , , i, , o, ,
|
|
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
|
-
spread:
|
|
370
|
-
color:
|
|
369
|
+
spread: p,
|
|
370
|
+
color: u
|
|
371
371
|
};
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function Be(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
|
|
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
|
|
381
|
-
const [r, n, s, i, o] = se(t), [
|
|
382
|
-
return (
|
|
383
|
-
const
|
|
384
|
-
return
|
|
380
|
+
function Ge(t, e) {
|
|
381
|
+
const [r, n, s, i, o] = se(t), [l, u, c, p] = se(e);
|
|
382
|
+
return (m) => {
|
|
383
|
+
const h = r + (l - r) * m, _ = n + (u - n) * m, y = s + (c - s) * m, H = i + (p - i) * m;
|
|
384
|
+
return ke([h, _, y, H, o]);
|
|
385
385
|
};
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function jt(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,
|
|
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 Be({ inset: r.inset, x: i, y: o, blur: l, spread: u, color: c });
|
|
392
392
|
};
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
var r, n, s, i, o,
|
|
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" ? (
|
|
394
|
+
function Je(t, e) {
|
|
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;
|
|
402
|
-
i != null && (r[o] =
|
|
402
|
+
i != null && (r[o] = Je(n, o));
|
|
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 K = /* @__PURE__ */ new Map();
|
|
410
410
|
function pe(t, e, r) {
|
|
411
|
-
if (
|
|
412
|
-
return
|
|
413
|
-
const n =
|
|
414
|
-
return
|
|
411
|
+
if (K.has(r + ":" + t + e))
|
|
412
|
+
return K.get(t + e);
|
|
413
|
+
const n = Ge(t, e);
|
|
414
|
+
return K.set(r + ":" + t + e, n), n;
|
|
415
415
|
}
|
|
416
416
|
function me(t, e) {
|
|
417
417
|
return pe(t, e, "c");
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function Qe(t, e) {
|
|
420
420
|
return pe(t, e, "s");
|
|
421
421
|
}
|
|
422
|
-
function
|
|
422
|
+
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
|
-
const i =
|
|
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 Bt(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
|
-
|
|
446
|
+
et(t, o, e[o], i, n);
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
|
-
function
|
|
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 &&
|
|
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,47 +464,47 @@ const ge = /* @__PURE__ */ new Set(["checked", "disabled", "hidden", "selected"]
|
|
|
464
464
|
"outerHTML",
|
|
465
465
|
"className",
|
|
466
466
|
"classList"
|
|
467
|
-
]),
|
|
467
|
+
]), j = /* @__PURE__ */ new Map();
|
|
468
468
|
function $(t, e) {
|
|
469
|
-
if (
|
|
470
|
-
return
|
|
469
|
+
if (j.has(t))
|
|
470
|
+
return j.get(t);
|
|
471
471
|
{
|
|
472
472
|
const r = e(t);
|
|
473
|
-
return
|
|
473
|
+
return j.set(t, r), r;
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function tt(t) {
|
|
477
477
|
return (e, r) => {
|
|
478
478
|
r == null ? e[t] = null : e[t] = !!r;
|
|
479
479
|
};
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function rt(t) {
|
|
482
482
|
return (e, r) => {
|
|
483
483
|
r == null ? e[t] = null : e[t] = Number(r);
|
|
484
484
|
};
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function nt(t) {
|
|
487
487
|
return (e, r) => {
|
|
488
488
|
r == null ? e[t] = null : e[t] = r;
|
|
489
489
|
};
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function st(t) {
|
|
492
492
|
return (e, r) => {
|
|
493
493
|
r == null ? e[t] = null : e[t] = String(r);
|
|
494
494
|
};
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function it(t) {
|
|
497
497
|
return (e, r) => {
|
|
498
498
|
r == null ? e.removeAttribute(t) : e.setAttribute(t, r);
|
|
499
499
|
};
|
|
500
500
|
}
|
|
501
|
-
function
|
|
502
|
-
return ge.has(t) ? $(t,
|
|
501
|
+
function ve(t) {
|
|
502
|
+
return ge.has(t) ? $(t, tt) : we.has(t) ? $(t, rt) : be.has(t) ? $(t, nt) : Se.has(t) ? $(t, st) : $(t, it);
|
|
503
503
|
}
|
|
504
|
-
function
|
|
505
|
-
return (e) => ge.has(t) ? !!e[t] : we.has(t) ? Number(e[t]) :
|
|
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);
|
|
506
506
|
}
|
|
507
|
-
class
|
|
507
|
+
class v {
|
|
508
508
|
/**
|
|
509
509
|
* Constructs a new `DOMContext` instance.
|
|
510
510
|
*
|
|
@@ -552,24 +552,18 @@ class b {
|
|
|
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
|
|
556
|
-
e,
|
|
557
|
-
this.element,
|
|
558
|
-
this.reference,
|
|
559
|
-
this.providers,
|
|
560
|
-
!1
|
|
561
|
-
));
|
|
555
|
+
a(this, "withDocument", (e) => new v(e, this.element, this.reference, this.providers, !0));
|
|
562
556
|
/**
|
|
563
557
|
* Creates a new `DOMContext` instance with the provided `element`.
|
|
564
558
|
* @param element - The DOM element to use in the new `DOMContext` instance.
|
|
565
559
|
* @returns A new `DOMContext` instance with the provided `element`.
|
|
566
560
|
*/
|
|
567
|
-
a(this, "withElement", (e) => new
|
|
561
|
+
a(this, "withElement", (e) => new v(this.document, e, void 0, this.providers, !1));
|
|
568
562
|
/**
|
|
569
563
|
* Creates a new `DOMContext` instance with the `isFirstLevel` property set to `true`.
|
|
570
564
|
* @returns A new `DOMContext` instance with the `isFirstLevel` property set to `true`.
|
|
571
565
|
*/
|
|
572
|
-
a(this, "withFirstLevel", () => new
|
|
566
|
+
a(this, "withFirstLevel", () => new v(
|
|
573
567
|
this.document,
|
|
574
568
|
this.element,
|
|
575
569
|
this.reference,
|
|
@@ -582,7 +576,7 @@ class b {
|
|
|
582
576
|
* @param reference - The optional `Text` node to use as the reference for the new `DOMContext`.
|
|
583
577
|
* @returns A new `DOMContext` instance with the specified reference.
|
|
584
578
|
*/
|
|
585
|
-
a(this, "withReference", (e) => new
|
|
579
|
+
a(this, "withReference", (e) => new v(
|
|
586
580
|
this.document,
|
|
587
581
|
this.element,
|
|
588
582
|
e,
|
|
@@ -595,7 +589,7 @@ class b {
|
|
|
595
589
|
* @param value - The value to set for the provider.
|
|
596
590
|
* @returns A new DOMContext with the updated providers.
|
|
597
591
|
*/
|
|
598
|
-
a(this, "withProvider", (e, r) => new
|
|
592
|
+
a(this, "withProvider", (e, r) => new v(
|
|
599
593
|
this.document,
|
|
600
594
|
this.element,
|
|
601
595
|
this.reference,
|
|
@@ -612,7 +606,7 @@ class b {
|
|
|
612
606
|
* @param providers - An object containing the providers to be merged into the existing providers.
|
|
613
607
|
* @returns A new DOMContext instance with the merged providers.
|
|
614
608
|
*/
|
|
615
|
-
a(this, "withProviders", (e) => new
|
|
609
|
+
a(this, "withProviders", (e) => new v(
|
|
616
610
|
this.document,
|
|
617
611
|
this.element,
|
|
618
612
|
this.reference,
|
|
@@ -644,20 +638,20 @@ class b {
|
|
|
644
638
|
* @returns A new `DOMContext` instance.
|
|
645
639
|
*/
|
|
646
640
|
static of(e, r) {
|
|
647
|
-
return new
|
|
641
|
+
return new v(e.ownerDocument, e, r, {}, !0);
|
|
648
642
|
}
|
|
649
643
|
}
|
|
650
|
-
function
|
|
644
|
+
function b(t) {
|
|
651
645
|
const e = t;
|
|
652
646
|
e && e.onblur && (e.onblur = null), !(!t || t.ownerDocument === void 0) && t.parentElement && t.parentElement.removeChild(t);
|
|
653
647
|
}
|
|
654
|
-
function
|
|
655
|
-
return
|
|
648
|
+
function ot(t) {
|
|
649
|
+
return ye(t) ? t : t.parentElement;
|
|
656
650
|
}
|
|
657
|
-
function
|
|
651
|
+
function ye(t) {
|
|
658
652
|
return t.nodeType === 1;
|
|
659
653
|
}
|
|
660
|
-
function
|
|
654
|
+
function ut(t, e, r) {
|
|
661
655
|
let n = t.target;
|
|
662
656
|
for (; n != null && !(n instanceof HTMLAnchorElement); )
|
|
663
657
|
n = n.parentElement;
|
|
@@ -666,55 +660,99 @@ function nt(t, e, r) {
|
|
|
666
660
|
if (t.button !== 0 || t.ctrlKey || t.metaKey || s.target !== "_self" && s.target !== "" || s.getAttribute("download") != null)
|
|
667
661
|
return !0;
|
|
668
662
|
if (r) {
|
|
669
|
-
const { pathname: i, search: o, hash:
|
|
670
|
-
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))
|
|
671
665
|
return !0;
|
|
672
666
|
}
|
|
673
667
|
return !1;
|
|
674
668
|
}
|
|
675
|
-
const
|
|
669
|
+
const Gt = (t, e = {
|
|
676
670
|
checkExtension: !0,
|
|
677
671
|
checkExternalUrl: !0
|
|
678
672
|
}) => (r) => {
|
|
679
673
|
const { checkExtension: n, checkExternalUrl: s } = e;
|
|
680
|
-
|
|
674
|
+
ut(
|
|
681
675
|
r,
|
|
682
676
|
n === !0,
|
|
683
677
|
s === !0
|
|
684
678
|
) || t() && r.preventDefault();
|
|
685
|
-
}, Ee =
|
|
686
|
-
|
|
679
|
+
}, z = "data-tempo-attr", O = "data-tempo-class", Ee = "data-tempo-node", x = "data-tempo-text";
|
|
680
|
+
function at(t, e) {
|
|
681
|
+
const r = t.getAttribute(z);
|
|
682
|
+
r != null && t.setAttribute(`${z}:${e}`, r);
|
|
683
|
+
}
|
|
684
|
+
function _e(t, e) {
|
|
685
|
+
T.isSSR && t.isFirstLevel && at(t.element, e);
|
|
686
|
+
}
|
|
687
|
+
function lt(t) {
|
|
688
|
+
t.querySelectorAll(`[^${z}:]`).forEach((e) => {
|
|
689
|
+
const r = e.getAttributeNames().filter((n) => n.startsWith(`${z}:`));
|
|
690
|
+
for (const n of r) {
|
|
691
|
+
const s = e.getAttribute(n), i = n.split("-").pop();
|
|
692
|
+
e.removeAttribute(n), e.setAttribute(i, s);
|
|
693
|
+
}
|
|
694
|
+
});
|
|
695
|
+
}
|
|
696
|
+
function ct(t) {
|
|
697
|
+
const e = t.className.trim();
|
|
698
|
+
e.length > 0 && t.setAttribute(O, e);
|
|
699
|
+
}
|
|
700
|
+
function Pe(t) {
|
|
701
|
+
T.isSSR && t.isFirstLevel && ct(t.element);
|
|
702
|
+
}
|
|
703
|
+
function ft(t) {
|
|
704
|
+
t.querySelectorAll(`[${O}]`).forEach((e) => {
|
|
705
|
+
const r = e.getAttribute(O);
|
|
706
|
+
r !== null && (e.className = r, e.removeAttribute(O));
|
|
707
|
+
});
|
|
708
|
+
}
|
|
709
|
+
function De(t) {
|
|
710
|
+
t.setAttribute(Ee, "");
|
|
711
|
+
}
|
|
712
|
+
function ht(t) {
|
|
713
|
+
t.querySelectorAll(`[${Ee}]`).forEach((e) => {
|
|
714
|
+
b(e);
|
|
715
|
+
});
|
|
716
|
+
}
|
|
717
|
+
function dt(t) {
|
|
718
|
+
t.setAttribute(x, t.textContent ?? "");
|
|
719
|
+
}
|
|
720
|
+
function Te(t) {
|
|
721
|
+
T.isSSR && t.isFirstLevel && dt(t.element);
|
|
722
|
+
}
|
|
723
|
+
function pt(t) {
|
|
724
|
+
t.querySelectorAll(`[${x}]`).forEach((e) => {
|
|
725
|
+
e.textContent = e.getAttribute(x), e.removeAttribute(x);
|
|
726
|
+
});
|
|
727
|
+
}
|
|
728
|
+
const $e = (t) => (e) => {
|
|
729
|
+
Te(e);
|
|
687
730
|
const r = e.createText(t);
|
|
688
731
|
return e.appendOrInsert(r), (n) => {
|
|
689
|
-
n &&
|
|
732
|
+
n && b(r);
|
|
690
733
|
};
|
|
691
|
-
},
|
|
692
|
-
e
|
|
734
|
+
}, Ce = (t) => (e) => {
|
|
735
|
+
Te(e);
|
|
693
736
|
const r = e.createText(t.value);
|
|
694
737
|
e.appendOrInsert(r);
|
|
695
738
|
const n = t.on((s) => r.data = s);
|
|
696
739
|
return (s) => {
|
|
697
|
-
n(), s &&
|
|
740
|
+
n(), s && b(r);
|
|
698
741
|
};
|
|
699
742
|
};
|
|
700
|
-
function
|
|
701
|
-
return
|
|
743
|
+
function Jt(t) {
|
|
744
|
+
return d.is(t) ? Ce(t) : $e(t);
|
|
702
745
|
}
|
|
703
|
-
const
|
|
746
|
+
const g = (...t) => (e) => {
|
|
704
747
|
const r = t.map((n) => f(n)(e));
|
|
705
748
|
return (n) => {
|
|
706
749
|
r.forEach((s) => s(n));
|
|
707
750
|
};
|
|
708
|
-
},
|
|
709
|
-
},
|
|
710
|
-
function W(t, e) {
|
|
711
|
-
const r = t.getAttribute(H);
|
|
712
|
-
r === null ? t.setAttribute(H, e) : t.setAttribute(H, `${r} ${e}`);
|
|
713
|
-
}
|
|
714
|
-
const st = (t) => (e) => (console.log("className.static", e.isFirstLevel, h.isSSR), e.isFirstLevel && h.isSSR && W(e.element, "class"), e.element.classList.add(...t), (r) => {
|
|
751
|
+
}, w = () => () => {
|
|
752
|
+
}, mt = (t) => (e) => (Pe(e), e.element.classList.add(...t), (r) => {
|
|
715
753
|
r && e.element.classList.remove(...t);
|
|
716
|
-
}),
|
|
717
|
-
|
|
754
|
+
}), gt = (t) => (e) => {
|
|
755
|
+
Pe(e);
|
|
718
756
|
const r = e.element;
|
|
719
757
|
let n = [];
|
|
720
758
|
const s = t.on((i) => {
|
|
@@ -723,149 +761,134 @@ const st = (t) => (e) => (console.log("className.static", e.isFirstLevel, h.isSS
|
|
|
723
761
|
return (i) => {
|
|
724
762
|
s(), i && n.forEach((o) => r.classList.remove(o)), n.length = 0;
|
|
725
763
|
};
|
|
726
|
-
},
|
|
727
|
-
const r =
|
|
764
|
+
}, q = (t, e) => {
|
|
765
|
+
const r = ve(t), n = Ae(t);
|
|
728
766
|
return (s) => {
|
|
729
|
-
|
|
767
|
+
_e(s, t);
|
|
730
768
|
const i = n(s.element);
|
|
731
769
|
return r(s.element, e), (o) => {
|
|
732
770
|
o && r(s.element, i);
|
|
733
771
|
};
|
|
734
772
|
};
|
|
735
|
-
},
|
|
736
|
-
const r =
|
|
773
|
+
}, Z = (t, e) => {
|
|
774
|
+
const r = ve(t), n = Ae(t);
|
|
737
775
|
return (s) => {
|
|
738
|
-
|
|
776
|
+
_e(s, t);
|
|
739
777
|
const i = n(s.element);
|
|
740
778
|
return e.on((o) => r(s.element, o)), (o) => {
|
|
741
779
|
o && r(s.element, i);
|
|
742
780
|
};
|
|
743
781
|
};
|
|
744
|
-
},
|
|
782
|
+
}, P = new Proxy(
|
|
745
783
|
{},
|
|
746
784
|
{
|
|
747
|
-
get: (t, e) => e === "class" ? (r) =>
|
|
785
|
+
get: (t, e) => e === "class" ? (r) => d.is(r) ? gt(r) : mt(
|
|
748
786
|
(r ?? "").split(" ").filter((n) => n.length > 0)
|
|
749
|
-
) : (r) =>
|
|
787
|
+
) : (r) => d.is(r) ? Z(
|
|
750
788
|
e,
|
|
751
789
|
r
|
|
752
|
-
) :
|
|
790
|
+
) : q(
|
|
753
791
|
e,
|
|
754
792
|
r
|
|
755
793
|
)
|
|
756
794
|
}
|
|
757
|
-
),
|
|
795
|
+
), Qt = new Proxy(
|
|
758
796
|
{},
|
|
759
797
|
{
|
|
760
|
-
get: (t, e) => (r) =>
|
|
798
|
+
get: (t, e) => (r) => d.is(r) ? Z(
|
|
761
799
|
`aria-${e}`,
|
|
762
800
|
r
|
|
763
|
-
) :
|
|
801
|
+
) : q(
|
|
764
802
|
`aria-${e}`,
|
|
765
803
|
r
|
|
766
804
|
)
|
|
767
805
|
}
|
|
768
|
-
),
|
|
806
|
+
), er = new Proxy(
|
|
769
807
|
{},
|
|
770
808
|
{
|
|
771
|
-
get: (t, e) => (r) =>
|
|
809
|
+
get: (t, e) => (r) => d.is(r) ? Z(
|
|
772
810
|
e,
|
|
773
811
|
r
|
|
774
|
-
) :
|
|
812
|
+
) : q(
|
|
775
813
|
e,
|
|
776
814
|
r
|
|
777
815
|
)
|
|
778
816
|
}
|
|
779
|
-
),
|
|
817
|
+
), tr = new Proxy(
|
|
780
818
|
{},
|
|
781
819
|
{
|
|
782
|
-
get: (t, e) => (r) =>
|
|
820
|
+
get: (t, e) => (r) => d.is(r) ? Z(
|
|
783
821
|
e,
|
|
784
822
|
r
|
|
785
|
-
) :
|
|
823
|
+
) : q(
|
|
786
824
|
e,
|
|
787
825
|
r
|
|
788
826
|
)
|
|
789
827
|
}
|
|
790
828
|
);
|
|
791
829
|
function f(t) {
|
|
792
|
-
return t == null ?
|
|
830
|
+
return t == null ? w : Array.isArray(t) ? g(...t.map(f)) : typeof t == "string" ? $e(t) : d.is(t) ? Ce(t) : t;
|
|
793
831
|
}
|
|
794
|
-
function
|
|
832
|
+
function Me(t, ...e) {
|
|
795
833
|
return (r) => {
|
|
796
834
|
const n = r.createElement(t, void 0);
|
|
797
|
-
r.
|
|
835
|
+
r.isFirstLevel && T.isSSR && De(n), r.appendOrInsert(n), r = r.withElement(n);
|
|
798
836
|
const s = e.map((i) => f(i)(r));
|
|
799
837
|
return (i) => {
|
|
800
|
-
s.forEach((o) => o(!1)), i &&
|
|
838
|
+
s.forEach((o) => o(!1)), i && b(n);
|
|
801
839
|
};
|
|
802
840
|
};
|
|
803
841
|
}
|
|
804
|
-
function
|
|
842
|
+
function Ne(t, e, ...r) {
|
|
805
843
|
return (n) => {
|
|
806
844
|
const s = n.createElement(t, e);
|
|
807
|
-
n.
|
|
845
|
+
n.isFirstLevel && T.isSSR && De(s), n.appendOrInsert(s), n = n.withElement(s);
|
|
808
846
|
const i = r.map((o) => f(o)(n));
|
|
809
847
|
return (o) => {
|
|
810
|
-
i.forEach((
|
|
848
|
+
i.forEach((l) => l(!1)), o && b(s);
|
|
811
849
|
};
|
|
812
850
|
};
|
|
813
851
|
}
|
|
814
|
-
const
|
|
852
|
+
const rr = new Proxy(
|
|
815
853
|
{},
|
|
816
854
|
{
|
|
817
|
-
get: (t, e) => (...r) =>
|
|
855
|
+
get: (t, e) => (...r) => Me(e, r.flatMap(f))
|
|
818
856
|
}
|
|
819
|
-
),
|
|
857
|
+
), nr = new Proxy(
|
|
820
858
|
{},
|
|
821
859
|
{
|
|
822
|
-
get: (t, e) => (...r) =>
|
|
860
|
+
get: (t, e) => (...r) => Me("input", P.type(e), ...r)
|
|
823
861
|
}
|
|
824
|
-
),
|
|
862
|
+
), wt = "http://www.w3.org/2000/svg", sr = new Proxy(
|
|
825
863
|
{},
|
|
826
864
|
{
|
|
827
|
-
get: (t, e) => (...r) =>
|
|
865
|
+
get: (t, e) => (...r) => Ne(e, wt, r.flatMap(f))
|
|
828
866
|
}
|
|
829
|
-
),
|
|
867
|
+
), bt = "http://www.w3.org/1998/Math/MathML", ir = new Proxy(
|
|
830
868
|
{},
|
|
831
869
|
{
|
|
832
|
-
get: (t, e) => (...r) =>
|
|
870
|
+
get: (t, e) => (...r) => Ne(e, bt, r.flatMap(f))
|
|
833
871
|
}
|
|
834
872
|
);
|
|
835
|
-
let
|
|
836
|
-
function
|
|
837
|
-
t
|
|
838
|
-
const r = e.getAttribute("data-tempo-attrs");
|
|
839
|
-
r !== null && (r.split(" ").forEach((n) => {
|
|
840
|
-
e.removeAttribute(n);
|
|
841
|
-
}), e.removeAttribute("data-tempo-attrs"));
|
|
842
|
-
}), t.querySelectorAll("[data-tempo-node]").forEach((e) => {
|
|
843
|
-
var r;
|
|
844
|
-
(r = e.parentElement) == null || r.removeChild(e), e.removeAttribute("data-tempo-node");
|
|
845
|
-
}), t.querySelectorAll("[data-tempo-text]").forEach((e) => {
|
|
846
|
-
e.textContent = "", e.removeAttribute("data-tempo-text");
|
|
847
|
-
}), t.querySelectorAll("[data-tempo-styles]").forEach((e) => {
|
|
848
|
-
const r = e.getAttribute("data-tempo-styles");
|
|
849
|
-
r !== null && (r.split(" ").forEach((n) => {
|
|
850
|
-
e == null || e.style.removeProperty(n);
|
|
851
|
-
}), e.removeAttribute("data-tempo-styles"));
|
|
852
|
-
});
|
|
873
|
+
let W = !1;
|
|
874
|
+
function St(t) {
|
|
875
|
+
ht(t), ft(t), lt(t), pt(t);
|
|
853
876
|
}
|
|
854
877
|
let U = 0;
|
|
855
|
-
const
|
|
878
|
+
const or = (t = 30) => (W = !0, new Promise((e, r) => {
|
|
856
879
|
let n;
|
|
857
880
|
const s = setInterval(() => {
|
|
858
|
-
U <= 0 && (clearInterval(s), clearTimeout(n),
|
|
859
|
-
},
|
|
881
|
+
U <= 0 && (clearInterval(s), clearTimeout(n), W = !1, e());
|
|
882
|
+
}, 300);
|
|
860
883
|
n = setTimeout(() => {
|
|
861
|
-
clearInterval(s), r(new Error("SSR Timeout"));
|
|
884
|
+
clearInterval(s), W = !1, r(new Error("SSR Timeout"));
|
|
862
885
|
}, t * 1e3);
|
|
863
|
-
})),
|
|
886
|
+
})), T = {
|
|
864
887
|
useDone(t) {
|
|
865
888
|
return U++, f(t(() => U--));
|
|
866
889
|
},
|
|
867
890
|
get isSSR() {
|
|
868
|
-
return
|
|
891
|
+
return W;
|
|
869
892
|
}
|
|
870
893
|
}, Le = (t, e) => (r) => {
|
|
871
894
|
const n = Object.values(t).reduce((s, i) => {
|
|
@@ -875,21 +898,21 @@ const Bt = (t = 30) => (j = !0, new Promise((e, r) => {
|
|
|
875
898
|
return s[i] = o, s;
|
|
876
899
|
}, {});
|
|
877
900
|
return f(e(n))(r);
|
|
878
|
-
},
|
|
901
|
+
}, ur = (t, e) => (r) => {
|
|
879
902
|
const n = [], s = Object.entries(t).reduce(
|
|
880
|
-
(i, [o,
|
|
881
|
-
|
|
903
|
+
(i, [o, l]) => (n.push(
|
|
904
|
+
l((u) => (Reflect.set(i, o, u), null))(r)
|
|
882
905
|
), i),
|
|
883
906
|
{}
|
|
884
907
|
);
|
|
885
908
|
return n.push(e(s)(r)), (i) => {
|
|
886
909
|
n.forEach((o) => o(i));
|
|
887
910
|
};
|
|
888
|
-
},
|
|
889
|
-
function
|
|
911
|
+
}, vt = (t, e) => Le([t], (r) => f(e(r[t]))), ar = (t, e) => Le(t, (r) => f(e(r))), M = (t) => (e) => (r) => t(r, e);
|
|
912
|
+
function At(t) {
|
|
890
913
|
return Symbol(t);
|
|
891
914
|
}
|
|
892
|
-
const
|
|
915
|
+
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 = {
|
|
893
916
|
/**
|
|
894
917
|
* Provides a child component with an appearance context, which can be used to
|
|
895
918
|
* determine the current appearance (light or dark) based on the user's system
|
|
@@ -902,12 +925,12 @@ const $e = (t, e) => (r) => f(e)(r.withProviders(t)), Qt = (...t) => t.length >
|
|
|
902
925
|
* @returns The child component with the appearance context.
|
|
903
926
|
*/
|
|
904
927
|
provide: (t) => {
|
|
905
|
-
const e = window.matchMedia != null && window.matchMedia("(prefers-color-scheme: dark)").matches, r =
|
|
928
|
+
const e = window.matchMedia != null && window.matchMedia("(prefers-color-scheme: dark)").matches, r = A(e ? "dark" : "light"), n = (i) => {
|
|
906
929
|
r.set(i.matches ? "dark" : "light");
|
|
907
930
|
}, s = window.matchMedia != null ? window.matchMedia("(prefers-color-scheme: dark)") : void 0;
|
|
908
|
-
return s == null || s.addEventListener("change", n),
|
|
909
|
-
|
|
910
|
-
|
|
931
|
+
return s == null || s.addEventListener("change", n), g(
|
|
932
|
+
yt(oe, r, t),
|
|
933
|
+
M(() => s == null ? void 0 : s.removeEventListener("change", n))
|
|
911
934
|
);
|
|
912
935
|
},
|
|
913
936
|
/**
|
|
@@ -917,34 +940,34 @@ const $e = (t, e) => (r) => f(e)(r.withProviders(t)), Qt = (...t) => t.length >
|
|
|
917
940
|
* @param fn - A function that accepts the `AppearanceType` signal and returns a `Child` element.
|
|
918
941
|
* @returns The `Child` element returned by the provided function.
|
|
919
942
|
*/
|
|
920
|
-
consume: (t) =>
|
|
921
|
-
},
|
|
943
|
+
consume: (t) => vt(oe, t)
|
|
944
|
+
}, Re = (t, e) => {
|
|
922
945
|
if (typeof e == "function")
|
|
923
|
-
return
|
|
924
|
-
const r = e.pending != null ? f(e.pending) :
|
|
946
|
+
return Re(t, { then: e });
|
|
947
|
+
const r = e.pending != null ? f(e.pending) : w, n = e.then, s = e.error != null ? (i) => f(e.error(i)) : () => w;
|
|
925
948
|
return (i) => {
|
|
926
949
|
let o = !0;
|
|
927
|
-
const
|
|
950
|
+
const l = t();
|
|
928
951
|
i = i.makeRef();
|
|
929
|
-
let
|
|
930
|
-
return
|
|
952
|
+
let u = f(r)(i);
|
|
953
|
+
return l.then(
|
|
931
954
|
(c) => {
|
|
932
|
-
o && (
|
|
955
|
+
o && (u(!0), u = f(n(c))(i));
|
|
933
956
|
},
|
|
934
957
|
(c) => {
|
|
935
|
-
o && (
|
|
958
|
+
o && (u(!0), u = f(s(c))(i));
|
|
936
959
|
}
|
|
937
960
|
), (c) => {
|
|
938
|
-
o = !1,
|
|
961
|
+
o = !1, u(c), c && i.reference && b(i.reference);
|
|
939
962
|
};
|
|
940
963
|
};
|
|
941
|
-
},
|
|
964
|
+
}, hr = (t, e) => Re(() => t, e), dr = (t = 10) => (e) => {
|
|
942
965
|
const r = setTimeout(() => {
|
|
943
966
|
var n;
|
|
944
967
|
(n = e.element) == null || n.focus();
|
|
945
968
|
}, t);
|
|
946
969
|
return (n) => clearTimeout(r);
|
|
947
|
-
},
|
|
970
|
+
}, pr = (t = 10) => (e) => {
|
|
948
971
|
const r = setTimeout(() => {
|
|
949
972
|
var n;
|
|
950
973
|
(n = e.element) == null || n.select();
|
|
@@ -952,21 +975,21 @@ const $e = (t, e) => (r) => f(e)(r.withProviders(t)), Qt = (...t) => t.length >
|
|
|
952
975
|
return (n) => {
|
|
953
976
|
clearTimeout(r);
|
|
954
977
|
};
|
|
955
|
-
},
|
|
978
|
+
}, Oe = (t, e) => (r) => (r.element.addEventListener(t, e), (n) => {
|
|
956
979
|
n && r.element.removeEventListener(t, e);
|
|
957
|
-
}),
|
|
980
|
+
}), Et = (t) => Oe("click", (e) => {
|
|
958
981
|
e.preventDefault();
|
|
959
982
|
const r = e.target;
|
|
960
983
|
setTimeout(() => {
|
|
961
984
|
const n = r.ownerDocument != null ? r == null ? void 0 : r.checked : void 0;
|
|
962
985
|
n != null && t(!n);
|
|
963
986
|
}, 0);
|
|
964
|
-
}),
|
|
987
|
+
}), X = new Proxy(
|
|
965
988
|
{},
|
|
966
989
|
{
|
|
967
|
-
get: (t, e) => (r) =>
|
|
990
|
+
get: (t, e) => (r) => Oe(e, r)
|
|
968
991
|
}
|
|
969
|
-
),
|
|
992
|
+
), Y = {
|
|
970
993
|
value: (t) => (e) => {
|
|
971
994
|
const r = e.target;
|
|
972
995
|
t(r.value);
|
|
@@ -1011,74 +1034,74 @@ const $e = (t, e) => (r) => f(e)(r.withProviders(t)), Qt = (...t) => t.length >
|
|
|
1011
1034
|
e.stopImmediatePropagation(), t();
|
|
1012
1035
|
}
|
|
1013
1036
|
};
|
|
1014
|
-
function
|
|
1015
|
-
return
|
|
1016
|
-
|
|
1017
|
-
|
|
1037
|
+
function _t(t, e = "input") {
|
|
1038
|
+
return g(
|
|
1039
|
+
P.valueAsDate(t),
|
|
1040
|
+
X[e](Y.valueAsDate(t.set))
|
|
1018
1041
|
);
|
|
1019
1042
|
}
|
|
1020
|
-
function
|
|
1021
|
-
return
|
|
1022
|
-
|
|
1023
|
-
|
|
1043
|
+
function Pt(t, e = "input") {
|
|
1044
|
+
return g(
|
|
1045
|
+
P.valueAsDate(t),
|
|
1046
|
+
X[e](Y.valueAsDateTime(t.set))
|
|
1024
1047
|
);
|
|
1025
1048
|
}
|
|
1026
|
-
function
|
|
1027
|
-
return
|
|
1028
|
-
|
|
1029
|
-
|
|
1049
|
+
function Dt(t, e = "input") {
|
|
1050
|
+
return g(
|
|
1051
|
+
P.valueAsNumber(t),
|
|
1052
|
+
X[e](Y.valueAsNumber(t.set))
|
|
1030
1053
|
);
|
|
1031
1054
|
}
|
|
1032
|
-
function
|
|
1033
|
-
return
|
|
1055
|
+
function Tt(t, e = "input") {
|
|
1056
|
+
return g(P.value(t), X[e](Y.value(t.set)));
|
|
1034
1057
|
}
|
|
1035
|
-
function
|
|
1036
|
-
return
|
|
1058
|
+
function $t(t) {
|
|
1059
|
+
return g(P.checked(t), Et(t.set));
|
|
1037
1060
|
}
|
|
1038
|
-
const
|
|
1039
|
-
date:
|
|
1040
|
-
dateTime:
|
|
1041
|
-
number:
|
|
1042
|
-
text:
|
|
1043
|
-
checked:
|
|
1044
|
-
},
|
|
1061
|
+
const mr = {
|
|
1062
|
+
date: _t,
|
|
1063
|
+
dateTime: Pt,
|
|
1064
|
+
number: Dt,
|
|
1065
|
+
text: Tt,
|
|
1066
|
+
checked: $t
|
|
1067
|
+
}, I = (t, e) => (r) => {
|
|
1045
1068
|
r = r.makeRef();
|
|
1046
1069
|
let n, s;
|
|
1047
|
-
const i = t.map((
|
|
1070
|
+
const i = t.map((u) => Object.keys(u)[0]);
|
|
1048
1071
|
let o;
|
|
1049
|
-
const
|
|
1050
|
-
if (
|
|
1051
|
-
s == null || s.dispose(), n == null || n(!0), s = t.map((
|
|
1052
|
-
const c = e[
|
|
1053
|
-
n = f(c)(r), o =
|
|
1072
|
+
const l = i.on((u) => {
|
|
1073
|
+
if (u !== o) {
|
|
1074
|
+
s == null || s.dispose(), n == null || n(!0), s = t.map((p) => p[u]);
|
|
1075
|
+
const c = e[u](s);
|
|
1076
|
+
n = f(c)(r), o = u;
|
|
1054
1077
|
}
|
|
1055
1078
|
});
|
|
1056
|
-
return (
|
|
1057
|
-
|
|
1079
|
+
return (u) => {
|
|
1080
|
+
l(), u && r.reference != null && b(r.reference), n == null || n(!0);
|
|
1058
1081
|
};
|
|
1059
|
-
},
|
|
1060
|
-
bool: (t, e) =>
|
|
1082
|
+
}, N = {
|
|
1083
|
+
bool: (t, e) => I(
|
|
1061
1084
|
t.map((r) => r ? { true: !0 } : { false: !0 }),
|
|
1062
1085
|
e
|
|
1063
1086
|
),
|
|
1064
|
-
field: (t, e, r) =>
|
|
1087
|
+
field: (t, e, r) => I(
|
|
1065
1088
|
t.map((n) => ({ [n[e]]: n })),
|
|
1066
1089
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1067
1090
|
r
|
|
1068
1091
|
),
|
|
1069
|
-
kind: (t, e) =>
|
|
1092
|
+
kind: (t, e) => N.field(t, "kind", e),
|
|
1070
1093
|
tuple: (t, e) => {
|
|
1071
1094
|
const r = t.map(([n, s]) => ({ [n]: s }));
|
|
1072
|
-
return
|
|
1095
|
+
return I(r, e);
|
|
1073
1096
|
},
|
|
1074
|
-
type: (t, e) =>
|
|
1075
|
-
value: (t, e) =>
|
|
1097
|
+
type: (t, e) => N.field(t, "type", e),
|
|
1098
|
+
value: (t, e) => I(
|
|
1076
1099
|
t.map((r) => ({ [r]: !0 })),
|
|
1077
1100
|
e
|
|
1078
1101
|
)
|
|
1079
|
-
},
|
|
1080
|
-
const n = (e == null ? void 0 : e.firstSeparator) ??
|
|
1081
|
-
return
|
|
1102
|
+
}, gr = (t, e) => (r) => {
|
|
1103
|
+
const n = (e == null ? void 0 : e.firstSeparator) ?? w, s = (e == null ? void 0 : e.lastSeparator) ?? w;
|
|
1104
|
+
return N.value(
|
|
1082
1105
|
r.map((i) => i.isFirst ? "first" : i.isLast ? "last" : "other"),
|
|
1083
1106
|
{
|
|
1084
1107
|
first: () => n,
|
|
@@ -1086,107 +1109,107 @@ const sr = {
|
|
|
1086
1109
|
other: () => t
|
|
1087
1110
|
}
|
|
1088
1111
|
);
|
|
1089
|
-
},
|
|
1090
|
-
r &&
|
|
1091
|
-
}),
|
|
1112
|
+
}, wr = (t) => (e) => t(e)(e), br = (t) => (e) => (e.appendOrInsert(t), (r) => {
|
|
1113
|
+
r && b(t);
|
|
1114
|
+
}), Ct = (t, e, r) => (n) => {
|
|
1092
1115
|
n = n.makeRef();
|
|
1093
1116
|
let s = null, i = !1;
|
|
1094
|
-
const o =
|
|
1095
|
-
|
|
1117
|
+
const o = A(null), l = t.on((u) => {
|
|
1118
|
+
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));
|
|
1096
1119
|
});
|
|
1097
|
-
return (
|
|
1098
|
-
|
|
1120
|
+
return (u) => {
|
|
1121
|
+
l(), s == null || s(u), u && n.reference && b(n.reference);
|
|
1099
1122
|
};
|
|
1100
|
-
},
|
|
1123
|
+
}, xe = (t, e, r) => r != null ? xe(t, (n) => {
|
|
1101
1124
|
const s = n.map((i) => i.isLast ? "last" : "other");
|
|
1102
|
-
return
|
|
1103
|
-
|
|
1125
|
+
return g(
|
|
1126
|
+
M(() => s.dispose()),
|
|
1104
1127
|
f(e(n)),
|
|
1105
|
-
|
|
1106
|
-
last: () =>
|
|
1128
|
+
N.value(s, {
|
|
1129
|
+
last: () => w,
|
|
1107
1130
|
other: () => r(n)
|
|
1108
1131
|
})
|
|
1109
1132
|
);
|
|
1110
1133
|
}) : (n) => {
|
|
1111
1134
|
n = n.makeRef();
|
|
1112
1135
|
const s = t.map(
|
|
1113
|
-
(
|
|
1114
|
-
(c) => new
|
|
1136
|
+
(u) => Array.from({ length: u }, (c, p) => p).map(
|
|
1137
|
+
(c) => new Ke(c, u)
|
|
1115
1138
|
)
|
|
1116
|
-
), i = [], o = [],
|
|
1117
|
-
var
|
|
1118
|
-
const c =
|
|
1139
|
+
), i = [], o = [], l = s.on((u) => {
|
|
1140
|
+
var p, m;
|
|
1141
|
+
const c = u.length;
|
|
1119
1142
|
for (; c < i.length; )
|
|
1120
|
-
(
|
|
1121
|
-
for (let
|
|
1122
|
-
if (o[
|
|
1123
|
-
o[
|
|
1124
|
-
const _ = f(e(o[
|
|
1125
|
-
i[
|
|
1143
|
+
(p = i.pop()) == null || p(!0), (m = o.pop()) == null || m.dispose();
|
|
1144
|
+
for (let h = 0; h < c; h++)
|
|
1145
|
+
if (o[h] == null) {
|
|
1146
|
+
o[h] = A(u[h]);
|
|
1147
|
+
const _ = f(e(o[h]));
|
|
1148
|
+
i[h] = _(n);
|
|
1126
1149
|
} else
|
|
1127
|
-
o[
|
|
1150
|
+
o[h].value = u[h];
|
|
1128
1151
|
});
|
|
1129
|
-
return (
|
|
1130
|
-
|
|
1152
|
+
return (u) => {
|
|
1153
|
+
l(), u && n.reference && b(n.reference);
|
|
1131
1154
|
};
|
|
1132
|
-
},
|
|
1155
|
+
}, Mt = (t, e, r) => r != null ? Mt(t, (n, s) => {
|
|
1133
1156
|
const i = s.map((o) => o.isLast ? "last" : "other");
|
|
1134
|
-
return
|
|
1135
|
-
|
|
1157
|
+
return g([
|
|
1158
|
+
M(() => i.dispose()),
|
|
1136
1159
|
f(e(n, s)),
|
|
1137
|
-
|
|
1138
|
-
last: () =>
|
|
1160
|
+
N.value(i, {
|
|
1161
|
+
last: () => w,
|
|
1139
1162
|
other: () => r(s)
|
|
1140
1163
|
})
|
|
1141
1164
|
]);
|
|
1142
1165
|
}) : (n) => {
|
|
1143
1166
|
const s = t.map((i) => i.length);
|
|
1144
|
-
return
|
|
1167
|
+
return xe(s, (i) => {
|
|
1145
1168
|
const o = B(
|
|
1146
1169
|
() => t.value[i.value.index],
|
|
1147
1170
|
[i, t]
|
|
1148
1171
|
);
|
|
1149
|
-
return
|
|
1150
|
-
|
|
1172
|
+
return g(
|
|
1173
|
+
M(() => o.dispose()),
|
|
1151
1174
|
f(e(o, i))
|
|
1152
1175
|
);
|
|
1153
1176
|
})(n);
|
|
1154
|
-
},
|
|
1177
|
+
}, Sr = (t) => {
|
|
1155
1178
|
const e = t.element, r = e.style.getPropertyValue(":empty");
|
|
1156
1179
|
return e.style.setProperty(":empty", "display:none"), (n) => {
|
|
1157
1180
|
n && e.style.setProperty(":empty", r);
|
|
1158
1181
|
};
|
|
1159
1182
|
};
|
|
1160
|
-
function
|
|
1183
|
+
function We(t, e) {
|
|
1161
1184
|
const r = t(e);
|
|
1162
1185
|
return () => r(!0);
|
|
1163
1186
|
}
|
|
1164
|
-
function
|
|
1187
|
+
function vr(t, e, { doc: r, clear: n } = {}) {
|
|
1165
1188
|
const s = typeof e == "string" ? (r ?? document).querySelector(e) : e;
|
|
1166
1189
|
if (s === null)
|
|
1167
1190
|
throw new Error(`Cannot find element by selector for render: ${e}`);
|
|
1168
|
-
n && (r ?? s.ownerDocument) != null &&
|
|
1169
|
-
const i =
|
|
1170
|
-
return
|
|
1191
|
+
n && (r ?? s.ownerDocument) != null && St(r ?? s.ownerDocument);
|
|
1192
|
+
const i = ot(s), o = ye(s) ? void 0 : s, l = v.of(i, o);
|
|
1193
|
+
return We(t, l);
|
|
1171
1194
|
}
|
|
1172
|
-
const
|
|
1195
|
+
const Nt = (t, e) => (r) => {
|
|
1173
1196
|
const n = r.document.querySelector(t);
|
|
1174
1197
|
if (n === null)
|
|
1175
1198
|
throw new Error(`Cannot find element by selector for portal: ${t}`);
|
|
1176
|
-
return
|
|
1199
|
+
return We(
|
|
1177
1200
|
f(e),
|
|
1178
1201
|
r.withElement(n).withFirstLevel()
|
|
1179
1202
|
);
|
|
1180
|
-
},
|
|
1181
|
-
}),
|
|
1203
|
+
}, Ar = (t) => Nt("head title", P.innerText(t)), Lt = (t) => (e) => t(e.element) ?? (() => {
|
|
1204
|
+
}), k = (t, e, r) => Ct(
|
|
1182
1205
|
t.map((n) => n ? !0 : null),
|
|
1183
1206
|
() => e,
|
|
1184
1207
|
r != null ? () => r : void 0
|
|
1185
|
-
),
|
|
1208
|
+
), yr = (t, e, r) => k(
|
|
1186
1209
|
t.map((n) => !n),
|
|
1187
1210
|
e,
|
|
1188
1211
|
r
|
|
1189
|
-
),
|
|
1212
|
+
), It = {
|
|
1190
1213
|
partial: {
|
|
1191
1214
|
root: null,
|
|
1192
1215
|
rootMargin: "0px",
|
|
@@ -1200,33 +1223,33 @@ const bt = (t, e) => (r) => {
|
|
|
1200
1223
|
}, F = {
|
|
1201
1224
|
partial: /* @__PURE__ */ new Map(),
|
|
1202
1225
|
full: /* @__PURE__ */ new Map()
|
|
1203
|
-
},
|
|
1226
|
+
}, C = {
|
|
1204
1227
|
partial: null,
|
|
1205
1228
|
full: null
|
|
1206
1229
|
};
|
|
1207
|
-
function
|
|
1208
|
-
return
|
|
1230
|
+
function Rt(t) {
|
|
1231
|
+
return C[t] == null && (C[t] = new IntersectionObserver((e) => {
|
|
1209
1232
|
e.forEach((r) => {
|
|
1210
1233
|
const n = F[t].get(r.target);
|
|
1211
1234
|
n == null || n.set(r.isIntersecting);
|
|
1212
1235
|
});
|
|
1213
|
-
},
|
|
1236
|
+
}, It[t])), C[t];
|
|
1214
1237
|
}
|
|
1215
|
-
function
|
|
1216
|
-
const r =
|
|
1217
|
-
return
|
|
1218
|
-
|
|
1219
|
-
const s = typeof IntersectionObserver < "u" ?
|
|
1238
|
+
function Ot(t, e) {
|
|
1239
|
+
const r = A(T.isSSR);
|
|
1240
|
+
return g(
|
|
1241
|
+
Lt((n) => {
|
|
1242
|
+
const s = typeof IntersectionObserver < "u" ? Rt(t) : null;
|
|
1220
1243
|
return F[t].set(n, r), s == null || s.observe(n), () => {
|
|
1221
1244
|
var i;
|
|
1222
|
-
s == null || s.unobserve(n), F[t].delete(n), F[t].size === 0 && ((i =
|
|
1245
|
+
s == null || s.unobserve(n), F[t].delete(n), F[t].size === 0 && ((i = C[t]) == null || i.disconnect(), C[t] = null);
|
|
1223
1246
|
};
|
|
1224
1247
|
}),
|
|
1225
|
-
|
|
1248
|
+
M(r.dispose),
|
|
1226
1249
|
f(e(r))
|
|
1227
1250
|
);
|
|
1228
1251
|
}
|
|
1229
|
-
const
|
|
1252
|
+
const Er = (t, e, r) => Ot(t, (n) => k(n, e, r ?? w)), _r = (t, e) => (r) => {
|
|
1230
1253
|
r = r.makeRef();
|
|
1231
1254
|
const n = t.map((o) => f(e(o)));
|
|
1232
1255
|
let s = () => {
|
|
@@ -1238,23 +1261,23 @@ const hr = (t, e, r) => Pt(t, (n) => G(n, e, r ?? S)), dr = (t, e) => (r) => {
|
|
|
1238
1261
|
i(), s(o);
|
|
1239
1262
|
};
|
|
1240
1263
|
};
|
|
1241
|
-
function
|
|
1242
|
-
return
|
|
1264
|
+
function Pr(t, e, r = w) {
|
|
1265
|
+
return k(
|
|
1243
1266
|
t.map((n) => n.length > 0),
|
|
1244
1267
|
e,
|
|
1245
1268
|
r
|
|
1246
1269
|
);
|
|
1247
1270
|
}
|
|
1248
|
-
const
|
|
1249
|
-
const r = e.element, n =
|
|
1271
|
+
const xt = (t) => (e) => {
|
|
1272
|
+
const r = e.element, n = A({ width: r.clientWidth, height: r.clientHeight }), s = f(t(n))(e), i = () => {
|
|
1250
1273
|
n.set({ width: r.clientWidth, height: r.clientHeight });
|
|
1251
1274
|
};
|
|
1252
1275
|
let o;
|
|
1253
|
-
return typeof ResizeObserver == "function" && (o = new ResizeObserver(i), o.observe(r)), (
|
|
1254
|
-
o == null || o.disconnect(), s(
|
|
1276
|
+
return typeof ResizeObserver == "function" && (o = new ResizeObserver(i), o.observe(r)), (l) => {
|
|
1277
|
+
o == null || o.disconnect(), s(l);
|
|
1255
1278
|
};
|
|
1256
|
-
},
|
|
1257
|
-
const r =
|
|
1279
|
+
}, Wt = (t) => (e) => {
|
|
1280
|
+
const r = A({
|
|
1258
1281
|
width: (window == null ? void 0 : window.innerWidth) ?? 0,
|
|
1259
1282
|
height: (window == null ? void 0 : window.innerHeight) ?? 0
|
|
1260
1283
|
}), n = f(t(r))(e), s = () => {
|
|
@@ -1266,132 +1289,124 @@ const _t = (t) => (e) => {
|
|
|
1266
1289
|
return window == null || window.addEventListener("resize", s), (i) => {
|
|
1267
1290
|
window == null || window.removeEventListener("resize", s), n(i);
|
|
1268
1291
|
};
|
|
1269
|
-
},
|
|
1270
|
-
element:
|
|
1271
|
-
window:
|
|
1272
|
-
},
|
|
1273
|
-
function Ne(t, e) {
|
|
1274
|
-
const r = t.getAttribute(K);
|
|
1275
|
-
r === null ? t.setAttribute(K, e) : t.setAttribute(K, `${r} ${e}`);
|
|
1276
|
-
}
|
|
1277
|
-
const Lt = (t, e) => (r) => {
|
|
1278
|
-
r.isFirstLevel && h.isSSR && Ne(r.element, t);
|
|
1292
|
+
}, Dr = {
|
|
1293
|
+
element: xt,
|
|
1294
|
+
window: Wt
|
|
1295
|
+
}, Ft = (t, e) => (r) => {
|
|
1279
1296
|
const n = r.element, s = n.style.getPropertyValue(t);
|
|
1280
1297
|
return n.style.setProperty(t, e), (i) => {
|
|
1281
1298
|
i && n.style.setProperty(t, s);
|
|
1282
1299
|
};
|
|
1283
|
-
},
|
|
1284
|
-
r.isFirstLevel && h.isSSR && Ne(r.element, t);
|
|
1300
|
+
}, zt = (t, e) => (r) => {
|
|
1285
1301
|
const n = r.element, s = n.style.getPropertyValue(t);
|
|
1286
1302
|
return e.on((i) => n.style.setProperty(t, i)), (i) => {
|
|
1287
1303
|
i && n.style.setProperty(t, s);
|
|
1288
1304
|
};
|
|
1289
|
-
},
|
|
1305
|
+
}, Tr = new Proxy(
|
|
1290
1306
|
{},
|
|
1291
1307
|
{
|
|
1292
|
-
get: (t, e) => (r) =>
|
|
1308
|
+
get: (t, e) => (r) => d.is(r) ? zt(e, r) : Ft(e, r)
|
|
1293
1309
|
}
|
|
1294
1310
|
);
|
|
1295
1311
|
export {
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1312
|
+
hr as Async,
|
|
1313
|
+
dr as AutoFocus,
|
|
1314
|
+
pr as AutoSelect,
|
|
1315
|
+
D as Computed,
|
|
1316
|
+
gr as Conjunction,
|
|
1317
|
+
wr as Ctx,
|
|
1318
|
+
v as DOMContext,
|
|
1319
|
+
br as DOMEl,
|
|
1320
|
+
Me as El,
|
|
1321
|
+
Ne as ElNS,
|
|
1322
|
+
w as Empty,
|
|
1323
|
+
Ct as Ensure,
|
|
1324
|
+
Mt as ForEach,
|
|
1325
|
+
g as Fragment,
|
|
1326
|
+
Ar as HTMLTitle,
|
|
1327
|
+
Sr as HiddenWhenEmpty,
|
|
1328
|
+
Ot as InViewport,
|
|
1329
|
+
_r as MapSignal,
|
|
1314
1330
|
he as MemoryStore,
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
er as appearance,
|
|
1331
|
+
Pr as NotEmpty,
|
|
1332
|
+
Et as OnChecked,
|
|
1333
|
+
M as OnDispose,
|
|
1334
|
+
Lt as OnMount,
|
|
1335
|
+
Nt as Portal,
|
|
1336
|
+
Ke as Position,
|
|
1337
|
+
V as Prop,
|
|
1338
|
+
lr as Provide,
|
|
1339
|
+
xe as Repeat,
|
|
1340
|
+
d as Signal,
|
|
1341
|
+
Re as Task,
|
|
1342
|
+
Jt as Text,
|
|
1343
|
+
yr as Unless,
|
|
1344
|
+
ur as Use,
|
|
1345
|
+
vt as UseProvider,
|
|
1346
|
+
ar as UseProviders,
|
|
1347
|
+
k as When,
|
|
1348
|
+
Er as WhenInViewport,
|
|
1349
|
+
yt as WithProvider,
|
|
1350
|
+
cr as WithProviders,
|
|
1351
|
+
Ue as animate,
|
|
1352
|
+
Ht as animateOne,
|
|
1353
|
+
fr as appearance,
|
|
1339
1354
|
oe as appearanceMarker,
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1355
|
+
kt as applyAnimatable,
|
|
1356
|
+
R as applyAnimatableProp,
|
|
1357
|
+
Bt as applyInterpolatedAnimatable,
|
|
1358
|
+
et as applyInterpolatedAnimatableProp,
|
|
1359
|
+
Qt as aria,
|
|
1360
|
+
P as attr,
|
|
1361
|
+
mr as bind,
|
|
1347
1362
|
f as childToMountable,
|
|
1348
|
-
|
|
1349
|
-
|
|
1363
|
+
St as clearSSR,
|
|
1364
|
+
ke as colorChannelsToString,
|
|
1350
1365
|
B as computed,
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1366
|
+
Kt as computedRecord,
|
|
1367
|
+
Xe as dateInterpolate,
|
|
1368
|
+
qt as effect,
|
|
1369
|
+
Y as emit,
|
|
1370
|
+
Ye as endInterpolate,
|
|
1371
|
+
Ut as getComputedAnimatable,
|
|
1372
|
+
Je as getComputedAnimatableProp,
|
|
1373
|
+
ot as getSelfOrParentElement,
|
|
1374
|
+
He as guessInterpolate,
|
|
1375
|
+
Gt as handleAnchorClick,
|
|
1376
|
+
rr as html,
|
|
1377
|
+
nr as input,
|
|
1378
|
+
Ge as interpolateColor,
|
|
1379
|
+
jt as interpolateShadow,
|
|
1380
|
+
ye as isElement,
|
|
1381
|
+
Ae as makeGetter,
|
|
1382
|
+
At as makeProviderMark,
|
|
1383
|
+
ve as makeSetter,
|
|
1384
|
+
ir as math,
|
|
1385
|
+
tr as mathAttr,
|
|
1386
|
+
qe as numberInterpolate,
|
|
1387
|
+
X as on,
|
|
1388
|
+
N as oneof,
|
|
1374
1389
|
se as parseColorChannels,
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1390
|
+
A as prop,
|
|
1391
|
+
Xt as propOfLocalStorage,
|
|
1392
|
+
Yt as propOfSessionStorage,
|
|
1378
1393
|
de as propOfStorage,
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1394
|
+
b as removeDOMNode,
|
|
1395
|
+
vr as render,
|
|
1396
|
+
We as renderWithContext,
|
|
1397
|
+
it as setAttribute,
|
|
1398
|
+
tt as setBooleanProperty,
|
|
1399
|
+
nt as setDateProperty,
|
|
1400
|
+
rt as setNumberProperty,
|
|
1401
|
+
st as setStringProperty,
|
|
1402
|
+
Zt as signal,
|
|
1403
|
+
Ce as signalText,
|
|
1404
|
+
Dr as size,
|
|
1405
|
+
T as ssr,
|
|
1406
|
+
or as startSSR,
|
|
1407
|
+
$e as staticText,
|
|
1408
|
+
Ze as stringInterpolate,
|
|
1409
|
+
Tr as style,
|
|
1410
|
+
sr as svg,
|
|
1411
|
+
er as svgAttr
|
|
1397
1412
|
};
|