@papu1337/builder 0.0.3 → 0.0.5
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 -65
- package/dist/elements/accordion/accordionElement.svelte +101 -0
- package/dist/elements/accordion/accordionElement.svelte.d.ts +7 -0
- package/dist/elements/accordion/settings.d.ts +17 -0
- package/dist/elements/accordion/settings.js +54 -0
- package/dist/elements/badge/badgeElement.svelte +4 -3
- package/dist/elements/badge/settings.d.ts +3 -2
- package/dist/elements/badge/settings.js +20 -30
- package/dist/elements/banner/bannerElement.svelte +38 -10
- package/dist/elements/banner/settings.d.ts +5 -3
- package/dist/elements/banner/settings.js +15 -10
- package/dist/elements/button/buttonElement.svelte +7 -3
- package/dist/elements/button/settings.d.ts +1 -0
- package/dist/elements/button/settings.js +10 -6
- package/dist/elements/ctaCard/ctaCardElement.svelte +132 -0
- package/dist/elements/ctaCard/ctaCardElement.svelte.d.ts +7 -0
- package/dist/elements/ctaCard/settings.d.ts +22 -0
- package/dist/elements/ctaCard/settings.js +64 -0
- package/dist/elements/text/settings.d.ts +11 -6
- package/dist/elements/text/settings.js +48 -4
- package/dist/elements/text/textElement.svelte +7 -2
- package/dist/renderer/registry.js +8 -14
- package/dist/renderer/renderer.vanilla.es.js +1172 -1354
- package/dist/renderer/renderer.vanilla.umd.js +27 -19
- package/dist/settings/base.svelte.js +3 -5
- package/dist/settings/components/ColorSettings.svelte +6 -6
- package/dist/settings/components/ListSettings.svelte +12 -12
- package/dist/settings/components/NumberSettings.svelte +6 -6
- package/dist/settings/components/SelectSettings.svelte +6 -6
- package/dist/settings/components/SettingsGroup.svelte +3 -3
- package/dist/settings/components/TextSettings.svelte +53 -2
- package/dist/settings/components/TranslatableSettings.svelte +15 -15
- package/dist/settings/components/UploadSettings.svelte +6 -6
- package/package.json +4 -4
- package/dist/elements/auth/authElement.svelte +0 -115
- package/dist/elements/auth/authElement.svelte.d.ts +0 -7
- package/dist/elements/auth/settings.d.ts +0 -25
- package/dist/elements/auth/settings.js +0 -63
- package/dist/elements/cards/cardsElement.svelte +0 -136
- package/dist/elements/cards/cardsElement.svelte.d.ts +0 -7
- package/dist/elements/cards/settings.d.ts +0 -14
- package/dist/elements/cards/settings.js +0 -52
- package/dist/elements/divider/dividerElement.svelte +0 -34
- package/dist/elements/divider/dividerElement.svelte.d.ts +0 -7
- package/dist/elements/divider/settings.d.ts +0 -7
- package/dist/elements/divider/settings.js +0 -15
- package/dist/elements/products/productsElement.svelte +0 -283
- package/dist/elements/products/productsElement.svelte.d.ts +0 -7
- package/dist/elements/products/settings.d.ts +0 -16
- package/dist/elements/products/settings.js +0 -56
- package/dist/elements/terms/settings.d.ts +0 -11
- package/dist/elements/terms/settings.js +0 -39
- package/dist/elements/terms/termsElement.svelte +0 -124
- package/dist/elements/terms/termsElement.svelte.d.ts +0 -7
|
@@ -1,70 +1,61 @@
|
|
|
1
|
-
const
|
|
2
|
-
var
|
|
3
|
-
const
|
|
1
|
+
const A = /* @__PURE__ */ Symbol(), Pt = "http://www.w3.org/1999/xhtml", Mn = !1;
|
|
2
|
+
var zt = Array.isArray, Nn = Array.prototype.indexOf, Me = Array.prototype.includes, et = Array.from, In = Object.defineProperty, Ue = Object.getOwnPropertyDescriptor, qn = Object.getOwnPropertyDescriptors, On = Object.prototype, Dn = Array.prototype, Lt = Object.getPrototypeOf, kt = Object.isExtensible;
|
|
3
|
+
const Fn = () => {
|
|
4
4
|
};
|
|
5
|
-
function
|
|
5
|
+
function jn(e) {
|
|
6
6
|
for (var t = 0; t < e.length; t++)
|
|
7
7
|
e[t]();
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function Bt() {
|
|
10
10
|
var e, t, n = new Promise((r, i) => {
|
|
11
11
|
e = r, t = i;
|
|
12
12
|
});
|
|
13
13
|
return { promise: n, resolve: e, reject: t };
|
|
14
14
|
}
|
|
15
|
-
const
|
|
15
|
+
const C = 2, Ne = 4, tt = 8, Ht = 1 << 24, he = 16, Z = 32, Ee = 64, at = 128, z = 512, S = 1024, R = 2048, Q = 4096, D = 8192, K = 16384, Fe = 32768, Tt = 1 << 25, ke = 65536, St = 1 << 17, Pn = 1 << 18, je = 1 << 19, zn = 1 << 20, re = 1 << 25, Te = 65536, ot = 1 << 21, ht = 1 << 22, fe = 1 << 23, rt = /* @__PURE__ */ Symbol("$state"), Ln = /* @__PURE__ */ Symbol(""), ne = new class extends Error {
|
|
16
16
|
name = "StaleReactionError";
|
|
17
17
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
18
18
|
}();
|
|
19
|
-
function
|
|
19
|
+
function Bn() {
|
|
20
20
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Hn(e, t, n) {
|
|
23
23
|
throw new Error("https://svelte.dev/e/each_key_duplicate");
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
27
|
-
}
|
|
28
|
-
function cr() {
|
|
29
|
-
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
30
|
-
}
|
|
31
|
-
function dr(e) {
|
|
32
|
-
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
33
|
-
}
|
|
34
|
-
function vr() {
|
|
25
|
+
function Un() {
|
|
35
26
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
36
27
|
}
|
|
37
|
-
function
|
|
28
|
+
function Vn() {
|
|
38
29
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
39
30
|
}
|
|
40
|
-
function
|
|
31
|
+
function Yn() {
|
|
41
32
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
42
33
|
}
|
|
43
|
-
function
|
|
34
|
+
function Gn() {
|
|
44
35
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
45
36
|
}
|
|
46
|
-
function
|
|
37
|
+
function Kn() {
|
|
47
38
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
48
39
|
}
|
|
49
|
-
function
|
|
40
|
+
function Wn() {
|
|
50
41
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
51
42
|
}
|
|
52
|
-
function
|
|
43
|
+
function Ut(e) {
|
|
53
44
|
return e === this.v;
|
|
54
45
|
}
|
|
55
|
-
function
|
|
46
|
+
function Xn(e, t) {
|
|
56
47
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
57
48
|
}
|
|
58
|
-
function
|
|
59
|
-
return !
|
|
49
|
+
function Vt(e) {
|
|
50
|
+
return !Xn(e, this.v);
|
|
60
51
|
}
|
|
61
|
-
let
|
|
62
|
-
function
|
|
63
|
-
|
|
52
|
+
let Jn = !1, W = null;
|
|
53
|
+
function Ie(e) {
|
|
54
|
+
W = e;
|
|
64
55
|
}
|
|
65
|
-
function
|
|
66
|
-
|
|
67
|
-
p:
|
|
56
|
+
function pe(e, t = !1, n) {
|
|
57
|
+
W = {
|
|
58
|
+
p: W,
|
|
68
59
|
i: !1,
|
|
69
60
|
c: null,
|
|
70
61
|
e: null,
|
|
@@ -72,53 +63,53 @@ function ie(e, t = !1, n) {
|
|
|
72
63
|
x: null,
|
|
73
64
|
r: (
|
|
74
65
|
/** @type {Effect} */
|
|
75
|
-
|
|
66
|
+
m
|
|
76
67
|
),
|
|
77
68
|
l: null
|
|
78
69
|
};
|
|
79
70
|
}
|
|
80
|
-
function
|
|
71
|
+
function ge(e) {
|
|
81
72
|
var t = (
|
|
82
73
|
/** @type {ComponentContext} */
|
|
83
|
-
|
|
74
|
+
W
|
|
84
75
|
), n = t.e;
|
|
85
76
|
if (n !== null) {
|
|
86
77
|
t.e = null;
|
|
87
78
|
for (var r of n)
|
|
88
|
-
|
|
79
|
+
wr(r);
|
|
89
80
|
}
|
|
90
|
-
return t.i = !0,
|
|
81
|
+
return t.i = !0, W = t.p, /** @type {T} */
|
|
91
82
|
{};
|
|
92
83
|
}
|
|
93
|
-
function
|
|
84
|
+
function Yt() {
|
|
94
85
|
return !0;
|
|
95
86
|
}
|
|
96
|
-
let
|
|
97
|
-
function
|
|
98
|
-
var e =
|
|
99
|
-
|
|
87
|
+
let Ce = [];
|
|
88
|
+
function Zn() {
|
|
89
|
+
var e = Ce;
|
|
90
|
+
Ce = [], jn(e);
|
|
100
91
|
}
|
|
101
|
-
function
|
|
102
|
-
if (
|
|
103
|
-
var t =
|
|
92
|
+
function Re(e) {
|
|
93
|
+
if (Ce.length === 0) {
|
|
94
|
+
var t = Ce;
|
|
104
95
|
queueMicrotask(() => {
|
|
105
|
-
t ===
|
|
96
|
+
t === Ce && Zn();
|
|
106
97
|
});
|
|
107
98
|
}
|
|
108
|
-
|
|
99
|
+
Ce.push(e);
|
|
109
100
|
}
|
|
110
|
-
function
|
|
111
|
-
var t =
|
|
101
|
+
function Gt(e) {
|
|
102
|
+
var t = m;
|
|
112
103
|
if (t === null)
|
|
113
|
-
return
|
|
114
|
-
if ((t.f &
|
|
104
|
+
return g.f |= fe, e;
|
|
105
|
+
if ((t.f & Fe) === 0 && (t.f & Ne) === 0)
|
|
115
106
|
throw e;
|
|
116
|
-
|
|
107
|
+
oe(e, t);
|
|
117
108
|
}
|
|
118
|
-
function
|
|
109
|
+
function oe(e, t) {
|
|
119
110
|
for (; t !== null; ) {
|
|
120
|
-
if ((t.f &
|
|
121
|
-
if ((t.f &
|
|
111
|
+
if ((t.f & at) !== 0) {
|
|
112
|
+
if ((t.f & Fe) === 0)
|
|
122
113
|
throw e;
|
|
123
114
|
try {
|
|
124
115
|
t.b.error(e);
|
|
@@ -131,30 +122,30 @@ function me(e, t) {
|
|
|
131
122
|
}
|
|
132
123
|
throw e;
|
|
133
124
|
}
|
|
134
|
-
const
|
|
135
|
-
function
|
|
136
|
-
e.f = e.f &
|
|
125
|
+
const Qn = -7169;
|
|
126
|
+
function E(e, t) {
|
|
127
|
+
e.f = e.f & Qn | t;
|
|
137
128
|
}
|
|
138
|
-
function
|
|
139
|
-
(e.f &
|
|
129
|
+
function pt(e) {
|
|
130
|
+
(e.f & z) !== 0 || e.deps === null ? E(e, S) : E(e, Q);
|
|
140
131
|
}
|
|
141
|
-
function
|
|
132
|
+
function Kt(e) {
|
|
142
133
|
if (e !== null)
|
|
143
134
|
for (const t of e)
|
|
144
|
-
(t.f &
|
|
135
|
+
(t.f & C) === 0 || (t.f & Te) === 0 || (t.f ^= Te, Kt(
|
|
145
136
|
/** @type {Derived} */
|
|
146
137
|
t.deps
|
|
147
138
|
));
|
|
148
139
|
}
|
|
149
|
-
function
|
|
150
|
-
(e.f &
|
|
140
|
+
function Wt(e, t, n) {
|
|
141
|
+
(e.f & R) !== 0 ? t.add(e) : (e.f & Q) !== 0 && n.add(e), Kt(e.deps), E(e, S);
|
|
151
142
|
}
|
|
152
|
-
const
|
|
153
|
-
let
|
|
154
|
-
var
|
|
155
|
-
let
|
|
156
|
-
class
|
|
157
|
-
id =
|
|
143
|
+
const le = /* @__PURE__ */ new Set();
|
|
144
|
+
let x = null, Y = null, ft = null, it = !1, Ae = null, Ze = null;
|
|
145
|
+
var Ct = 0;
|
|
146
|
+
let $n = 1;
|
|
147
|
+
class ve {
|
|
148
|
+
id = $n++;
|
|
158
149
|
/**
|
|
159
150
|
* The current values of any signals that are updated in this batch.
|
|
160
151
|
* Tuple format: [value, is_derived] (note: is_derived is false for deriveds, too, if they were overridden via assignment)
|
|
@@ -257,51 +248,51 @@ class Ee {
|
|
|
257
248
|
if (n) {
|
|
258
249
|
this.#a.delete(t);
|
|
259
250
|
for (var r of n.d)
|
|
260
|
-
|
|
251
|
+
E(r, R), this.schedule(r);
|
|
261
252
|
for (r of n.m)
|
|
262
|
-
|
|
253
|
+
E(r, Q), this.schedule(r);
|
|
263
254
|
}
|
|
264
255
|
}
|
|
265
256
|
#v() {
|
|
266
|
-
if (
|
|
267
|
-
for (const
|
|
268
|
-
this.#l.delete(
|
|
269
|
-
for (const
|
|
270
|
-
|
|
257
|
+
if (Ct++ > 1e3 && (le.delete(this), er()), !this.#d()) {
|
|
258
|
+
for (const l of this.#s)
|
|
259
|
+
this.#l.delete(l), E(l, R), this.schedule(l);
|
|
260
|
+
for (const l of this.#l)
|
|
261
|
+
E(l, Q), this.schedule(l);
|
|
271
262
|
}
|
|
272
263
|
const t = this.#n;
|
|
273
264
|
this.#n = [], this.apply();
|
|
274
|
-
var n =
|
|
275
|
-
for (const
|
|
265
|
+
var n = Ae = [], r = [], i = Ze = [];
|
|
266
|
+
for (const l of t)
|
|
276
267
|
try {
|
|
277
|
-
this.#u(
|
|
278
|
-
} catch (
|
|
279
|
-
throw
|
|
268
|
+
this.#u(l, n, r);
|
|
269
|
+
} catch (o) {
|
|
270
|
+
throw Qt(l), o;
|
|
280
271
|
}
|
|
281
|
-
if (
|
|
282
|
-
var s =
|
|
283
|
-
for (const
|
|
284
|
-
s.schedule(
|
|
272
|
+
if (x = null, i.length > 0) {
|
|
273
|
+
var s = ve.ensure();
|
|
274
|
+
for (const l of i)
|
|
275
|
+
s.schedule(l);
|
|
285
276
|
}
|
|
286
|
-
if (
|
|
277
|
+
if (Ae = null, Ze = null, this.#d() || this.#h()) {
|
|
287
278
|
this.#p(r), this.#p(n);
|
|
288
|
-
for (const [
|
|
289
|
-
|
|
279
|
+
for (const [l, o] of this.#a)
|
|
280
|
+
Zt(l, o);
|
|
290
281
|
} else {
|
|
291
|
-
this.#e.size === 0 &&
|
|
292
|
-
for (const
|
|
293
|
-
this.#t.clear(),
|
|
282
|
+
this.#e.size === 0 && le.delete(this), this.#s.clear(), this.#l.clear();
|
|
283
|
+
for (const l of this.#t) l(this);
|
|
284
|
+
this.#t.clear(), At(r), At(n), this.#i?.resolve();
|
|
294
285
|
}
|
|
295
|
-
var
|
|
286
|
+
var f = (
|
|
296
287
|
/** @type {Batch | null} */
|
|
297
288
|
/** @type {unknown} */
|
|
298
|
-
|
|
289
|
+
x
|
|
299
290
|
);
|
|
300
291
|
if (this.#n.length > 0) {
|
|
301
|
-
const
|
|
302
|
-
|
|
292
|
+
const l = f ??= this;
|
|
293
|
+
l.#n.push(...this.#n.filter((o) => !l.#n.includes(o)));
|
|
303
294
|
}
|
|
304
|
-
|
|
295
|
+
f !== null && (le.add(f), f.#v()), le.has(this) || this.#m();
|
|
305
296
|
}
|
|
306
297
|
/**
|
|
307
298
|
* Traverse the effect tree, executing effects or stashing
|
|
@@ -311,14 +302,14 @@ class Ee {
|
|
|
311
302
|
* @param {Effect[]} render_effects
|
|
312
303
|
*/
|
|
313
304
|
#u(t, n, r) {
|
|
314
|
-
t.f ^=
|
|
305
|
+
t.f ^= S;
|
|
315
306
|
for (var i = t.first; i !== null; ) {
|
|
316
|
-
var s = i.f,
|
|
317
|
-
if (!
|
|
318
|
-
|
|
319
|
-
var
|
|
320
|
-
if (
|
|
321
|
-
i =
|
|
307
|
+
var s = i.f, f = (s & (Z | Ee)) !== 0, l = f && (s & S) !== 0, o = l || (s & D) !== 0 || this.#a.has(i);
|
|
308
|
+
if (!o && i.fn !== null) {
|
|
309
|
+
f ? i.f ^= S : (s & Ne) !== 0 ? n.push(i) : Xe(i) && ((s & he) !== 0 && this.#l.add(i), De(i));
|
|
310
|
+
var a = i.first;
|
|
311
|
+
if (a !== null) {
|
|
312
|
+
i = a;
|
|
322
313
|
continue;
|
|
323
314
|
}
|
|
324
315
|
}
|
|
@@ -337,7 +328,7 @@ class Ee {
|
|
|
337
328
|
*/
|
|
338
329
|
#p(t) {
|
|
339
330
|
for (var n = 0; n < t.length; n += 1)
|
|
340
|
-
|
|
331
|
+
Wt(t[n], this.#s, this.#l);
|
|
341
332
|
}
|
|
342
333
|
/**
|
|
343
334
|
* Associate a change to a given source with the current
|
|
@@ -347,60 +338,60 @@ class Ee {
|
|
|
347
338
|
* @param {boolean} [is_derived]
|
|
348
339
|
*/
|
|
349
340
|
capture(t, n, r = !1) {
|
|
350
|
-
n !==
|
|
341
|
+
n !== A && !this.previous.has(t) && this.previous.set(t, n), (t.f & fe) === 0 && (this.current.set(t, [t.v, r]), Y?.set(t, t.v));
|
|
351
342
|
}
|
|
352
343
|
activate() {
|
|
353
|
-
|
|
344
|
+
x = this;
|
|
354
345
|
}
|
|
355
346
|
deactivate() {
|
|
356
|
-
|
|
347
|
+
x = null, Y = null;
|
|
357
348
|
}
|
|
358
349
|
flush() {
|
|
359
350
|
try {
|
|
360
|
-
|
|
351
|
+
it = !0, x = this, this.#v();
|
|
361
352
|
} finally {
|
|
362
|
-
|
|
353
|
+
Ct = 0, ft = null, Ae = null, Ze = null, it = !1, x = null, Y = null, ue.clear();
|
|
363
354
|
}
|
|
364
355
|
}
|
|
365
356
|
discard() {
|
|
366
357
|
for (const t of this.#o) t(this);
|
|
367
|
-
this.#o.clear(),
|
|
358
|
+
this.#o.clear(), le.delete(this);
|
|
368
359
|
}
|
|
369
|
-
#
|
|
370
|
-
for (const
|
|
371
|
-
var t =
|
|
372
|
-
for (const [u, [
|
|
373
|
-
if (
|
|
360
|
+
#m() {
|
|
361
|
+
for (const a of le) {
|
|
362
|
+
var t = a.id < this.id, n = [];
|
|
363
|
+
for (const [u, [v, d]] of this.current) {
|
|
364
|
+
if (a.current.has(u)) {
|
|
374
365
|
var r = (
|
|
375
366
|
/** @type {[any, boolean]} */
|
|
376
|
-
|
|
367
|
+
a.current.get(u)[0]
|
|
377
368
|
);
|
|
378
|
-
if (t &&
|
|
379
|
-
|
|
369
|
+
if (t && v !== r)
|
|
370
|
+
a.current.set(u, [v, d]);
|
|
380
371
|
else
|
|
381
372
|
continue;
|
|
382
373
|
}
|
|
383
374
|
n.push(u);
|
|
384
375
|
}
|
|
385
|
-
var i = [...
|
|
376
|
+
var i = [...a.current.keys()].filter((u) => !this.current.has(u));
|
|
386
377
|
if (i.length === 0)
|
|
387
|
-
t &&
|
|
378
|
+
t && a.discard();
|
|
388
379
|
else if (n.length > 0) {
|
|
389
|
-
|
|
390
|
-
var s = /* @__PURE__ */ new Set(),
|
|
391
|
-
for (var
|
|
392
|
-
|
|
393
|
-
if (
|
|
394
|
-
|
|
395
|
-
for (var
|
|
396
|
-
|
|
397
|
-
|
|
380
|
+
a.activate();
|
|
381
|
+
var s = /* @__PURE__ */ new Set(), f = /* @__PURE__ */ new Map();
|
|
382
|
+
for (var l of n)
|
|
383
|
+
Xt(l, i, s, f);
|
|
384
|
+
if (a.#n.length > 0) {
|
|
385
|
+
a.apply();
|
|
386
|
+
for (var o of a.#n)
|
|
387
|
+
a.#u(o, [], []);
|
|
388
|
+
a.#n = [];
|
|
398
389
|
}
|
|
399
|
-
|
|
390
|
+
a.deactivate();
|
|
400
391
|
}
|
|
401
392
|
}
|
|
402
|
-
for (const
|
|
403
|
-
|
|
393
|
+
for (const a of le)
|
|
394
|
+
a.#f.has(this) && (a.#f.delete(this), a.#f.size === 0 && !a.#d() && (a.activate(), a.#v()));
|
|
404
395
|
}
|
|
405
396
|
/**
|
|
406
397
|
* @param {boolean} blocking
|
|
@@ -424,7 +415,7 @@ class Ee {
|
|
|
424
415
|
let s = this.#r.get(n) ?? 0;
|
|
425
416
|
s === 1 ? this.#r.delete(n) : this.#r.set(n, s - 1);
|
|
426
417
|
}
|
|
427
|
-
this.#c || r || (this.#c = !0,
|
|
418
|
+
this.#c || r || (this.#c = !0, Re(() => {
|
|
428
419
|
this.#c = !1, this.flush();
|
|
429
420
|
}));
|
|
430
421
|
}
|
|
@@ -448,20 +439,20 @@ class Ee {
|
|
|
448
439
|
this.#o.add(t);
|
|
449
440
|
}
|
|
450
441
|
settled() {
|
|
451
|
-
return (this.#i ??=
|
|
442
|
+
return (this.#i ??= Bt()).promise;
|
|
452
443
|
}
|
|
453
444
|
static ensure() {
|
|
454
|
-
if (
|
|
455
|
-
const t =
|
|
456
|
-
|
|
457
|
-
|
|
445
|
+
if (x === null) {
|
|
446
|
+
const t = x = new ve();
|
|
447
|
+
it || (le.add(x), Re(() => {
|
|
448
|
+
x === t && t.flush();
|
|
458
449
|
}));
|
|
459
450
|
}
|
|
460
|
-
return
|
|
451
|
+
return x;
|
|
461
452
|
}
|
|
462
453
|
apply() {
|
|
463
454
|
{
|
|
464
|
-
|
|
455
|
+
Y = null;
|
|
465
456
|
return;
|
|
466
457
|
}
|
|
467
458
|
}
|
|
@@ -470,80 +461,80 @@ class Ee {
|
|
|
470
461
|
* @param {Effect} effect
|
|
471
462
|
*/
|
|
472
463
|
schedule(t) {
|
|
473
|
-
if (
|
|
464
|
+
if (ft = t, t.b?.is_pending && (t.f & (Ne | tt | Ht)) !== 0 && (t.f & Fe) === 0) {
|
|
474
465
|
t.b.defer_effect(t);
|
|
475
466
|
return;
|
|
476
467
|
}
|
|
477
468
|
for (var n = t; n.parent !== null; ) {
|
|
478
469
|
n = n.parent;
|
|
479
470
|
var r = n.f;
|
|
480
|
-
if (
|
|
471
|
+
if (Ae !== null && n === m && (g === null || (g.f & C) === 0))
|
|
481
472
|
return;
|
|
482
|
-
if ((r & (
|
|
483
|
-
if ((r &
|
|
473
|
+
if ((r & (Ee | Z)) !== 0) {
|
|
474
|
+
if ((r & S) === 0)
|
|
484
475
|
return;
|
|
485
|
-
n.f ^=
|
|
476
|
+
n.f ^= S;
|
|
486
477
|
}
|
|
487
478
|
}
|
|
488
479
|
this.#n.push(n);
|
|
489
480
|
}
|
|
490
481
|
}
|
|
491
|
-
function
|
|
482
|
+
function er() {
|
|
492
483
|
try {
|
|
493
|
-
|
|
484
|
+
Un();
|
|
494
485
|
} catch (e) {
|
|
495
|
-
|
|
486
|
+
oe(e, ft);
|
|
496
487
|
}
|
|
497
488
|
}
|
|
498
|
-
let
|
|
499
|
-
function
|
|
489
|
+
let te = null;
|
|
490
|
+
function At(e) {
|
|
500
491
|
var t = e.length;
|
|
501
492
|
if (t !== 0) {
|
|
502
493
|
for (var n = 0; n < t; ) {
|
|
503
494
|
var r = e[n++];
|
|
504
|
-
if ((r.f & (
|
|
505
|
-
|
|
506
|
-
for (const i of
|
|
507
|
-
if ((i.f & (
|
|
495
|
+
if ((r.f & (K | D)) === 0 && Xe(r) && (te = /* @__PURE__ */ new Set(), De(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && dn(r), te?.size > 0)) {
|
|
496
|
+
ue.clear();
|
|
497
|
+
for (const i of te) {
|
|
498
|
+
if ((i.f & (K | D)) !== 0) continue;
|
|
508
499
|
const s = [i];
|
|
509
|
-
let
|
|
510
|
-
for (;
|
|
511
|
-
|
|
512
|
-
for (let
|
|
513
|
-
const
|
|
514
|
-
(
|
|
500
|
+
let f = i.parent;
|
|
501
|
+
for (; f !== null; )
|
|
502
|
+
te.has(f) && (te.delete(f), s.push(f)), f = f.parent;
|
|
503
|
+
for (let l = s.length - 1; l >= 0; l--) {
|
|
504
|
+
const o = s[l];
|
|
505
|
+
(o.f & (K | D)) === 0 && De(o);
|
|
515
506
|
}
|
|
516
507
|
}
|
|
517
|
-
|
|
508
|
+
te.clear();
|
|
518
509
|
}
|
|
519
510
|
}
|
|
520
|
-
|
|
511
|
+
te = null;
|
|
521
512
|
}
|
|
522
513
|
}
|
|
523
|
-
function
|
|
514
|
+
function Xt(e, t, n, r) {
|
|
524
515
|
if (!n.has(e) && (n.add(e), e.reactions !== null))
|
|
525
516
|
for (const i of e.reactions) {
|
|
526
517
|
const s = i.f;
|
|
527
|
-
(s &
|
|
518
|
+
(s & C) !== 0 ? Xt(
|
|
528
519
|
/** @type {Derived} */
|
|
529
520
|
i,
|
|
530
521
|
t,
|
|
531
522
|
n,
|
|
532
523
|
r
|
|
533
|
-
) : (s & (
|
|
524
|
+
) : (s & (ht | he)) !== 0 && (s & R) === 0 && Jt(i, t, r) && (E(i, R), gt(
|
|
534
525
|
/** @type {Effect} */
|
|
535
526
|
i
|
|
536
527
|
));
|
|
537
528
|
}
|
|
538
529
|
}
|
|
539
|
-
function
|
|
530
|
+
function Jt(e, t, n) {
|
|
540
531
|
const r = n.get(e);
|
|
541
532
|
if (r !== void 0) return r;
|
|
542
533
|
if (e.deps !== null)
|
|
543
534
|
for (const i of e.deps) {
|
|
544
|
-
if (
|
|
535
|
+
if (Me.call(t, i))
|
|
545
536
|
return !0;
|
|
546
|
-
if ((i.f &
|
|
537
|
+
if ((i.f & C) !== 0 && Jt(
|
|
547
538
|
/** @type {Derived} */
|
|
548
539
|
i,
|
|
549
540
|
t,
|
|
@@ -557,36 +548,36 @@ function dn(e, t, n) {
|
|
|
557
548
|
}
|
|
558
549
|
return n.set(e, !1), !1;
|
|
559
550
|
}
|
|
560
|
-
function
|
|
561
|
-
|
|
551
|
+
function gt(e) {
|
|
552
|
+
x.schedule(e);
|
|
562
553
|
}
|
|
563
|
-
function
|
|
564
|
-
if (!((e.f &
|
|
565
|
-
(e.f &
|
|
554
|
+
function Zt(e, t) {
|
|
555
|
+
if (!((e.f & Z) !== 0 && (e.f & S) !== 0)) {
|
|
556
|
+
(e.f & R) !== 0 ? t.d.push(e) : (e.f & Q) !== 0 && t.m.push(e), E(e, S);
|
|
566
557
|
for (var n = e.first; n !== null; )
|
|
567
|
-
|
|
558
|
+
Zt(n, t), n = n.next;
|
|
568
559
|
}
|
|
569
560
|
}
|
|
570
|
-
function
|
|
571
|
-
|
|
561
|
+
function Qt(e) {
|
|
562
|
+
E(e, S);
|
|
572
563
|
for (var t = e.first; t !== null; )
|
|
573
|
-
|
|
564
|
+
Qt(t), t = t.next;
|
|
574
565
|
}
|
|
575
|
-
function
|
|
576
|
-
let t = 0, n =
|
|
566
|
+
function tr(e) {
|
|
567
|
+
let t = 0, n = Se(0), r;
|
|
577
568
|
return () => {
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
t -= 1, t === 0 && (r?.(), r = void 0,
|
|
569
|
+
bt() && (y(n), Er(() => (t === 0 && (r = Ar(() => e(() => Ve(n)))), t += 1, () => {
|
|
570
|
+
Re(() => {
|
|
571
|
+
t -= 1, t === 0 && (r?.(), r = void 0, Ve(n));
|
|
581
572
|
});
|
|
582
573
|
})));
|
|
583
574
|
};
|
|
584
575
|
}
|
|
585
|
-
var
|
|
586
|
-
function
|
|
587
|
-
new
|
|
576
|
+
var nr = ke | je;
|
|
577
|
+
function rr(e, t, n, r) {
|
|
578
|
+
new ir(e, t, n, r);
|
|
588
579
|
}
|
|
589
|
-
class
|
|
580
|
+
class ir {
|
|
590
581
|
/** @type {Boundary | null} */
|
|
591
582
|
parent;
|
|
592
583
|
is_pending = !1;
|
|
@@ -629,7 +620,7 @@ class Ar {
|
|
|
629
620
|
* @type {Source<number> | null}
|
|
630
621
|
*/
|
|
631
622
|
#u = null;
|
|
632
|
-
#p =
|
|
623
|
+
#p = tr(() => (this.#u = Se(this.#c), () => {
|
|
633
624
|
this.#u = null;
|
|
634
625
|
}));
|
|
635
626
|
/**
|
|
@@ -640,19 +631,19 @@ class Ar {
|
|
|
640
631
|
*/
|
|
641
632
|
constructor(t, n, r, i) {
|
|
642
633
|
this.#t = t, this.#e = n, this.#r = (s) => {
|
|
643
|
-
var
|
|
634
|
+
var f = (
|
|
644
635
|
/** @type {Effect} */
|
|
645
|
-
|
|
636
|
+
m
|
|
646
637
|
);
|
|
647
|
-
|
|
638
|
+
f.b = this, f.f |= at, r(s);
|
|
648
639
|
}, this.parent = /** @type {Effect} */
|
|
649
|
-
|
|
650
|
-
this.#
|
|
651
|
-
},
|
|
640
|
+
m.b, this.transform_error = i ?? this.parent?.transform_error ?? ((s) => s), this.#i = nt(() => {
|
|
641
|
+
this.#w();
|
|
642
|
+
}, nr);
|
|
652
643
|
}
|
|
653
|
-
#
|
|
644
|
+
#m() {
|
|
654
645
|
try {
|
|
655
|
-
this.#n =
|
|
646
|
+
this.#n = P(() => this.#r(this.#t));
|
|
656
647
|
} catch (t) {
|
|
657
648
|
this.error(t);
|
|
658
649
|
}
|
|
@@ -660,9 +651,9 @@ class Ar {
|
|
|
660
651
|
/**
|
|
661
652
|
* @param {unknown} error The deserialized error from the server's hydration comment
|
|
662
653
|
*/
|
|
663
|
-
#
|
|
654
|
+
#x(t) {
|
|
664
655
|
const n = this.#e.failed;
|
|
665
|
-
n && (this.#l =
|
|
656
|
+
n && (this.#l = P(() => {
|
|
666
657
|
n(
|
|
667
658
|
this.#t,
|
|
668
659
|
() => t,
|
|
@@ -673,9 +664,9 @@ class Ar {
|
|
|
673
664
|
}
|
|
674
665
|
#y() {
|
|
675
666
|
const t = this.#e.pending;
|
|
676
|
-
t && (this.is_pending = !0, this.#s =
|
|
677
|
-
var n = this.#a = document.createDocumentFragment(), r =
|
|
678
|
-
n.append(r), this.#n = this.#_(() =>
|
|
667
|
+
t && (this.is_pending = !0, this.#s = P(() => t(this.#t)), Re(() => {
|
|
668
|
+
var n = this.#a = document.createDocumentFragment(), r = ce();
|
|
669
|
+
n.append(r), this.#n = this.#_(() => P(() => this.#r(r))), this.#f === 0 && (this.#t.before(n), this.#a = null, xe(
|
|
679
670
|
/** @type {Effect} */
|
|
680
671
|
this.#s,
|
|
681
672
|
() => {
|
|
@@ -683,26 +674,26 @@ class Ar {
|
|
|
683
674
|
}
|
|
684
675
|
), this.#g(
|
|
685
676
|
/** @type {Batch} */
|
|
686
|
-
|
|
677
|
+
x
|
|
687
678
|
));
|
|
688
679
|
}));
|
|
689
680
|
}
|
|
690
|
-
#
|
|
681
|
+
#w() {
|
|
691
682
|
try {
|
|
692
|
-
if (this.is_pending = this.has_pending_snippet(), this.#f = 0, this.#c = 0, this.#n =
|
|
683
|
+
if (this.is_pending = this.has_pending_snippet(), this.#f = 0, this.#c = 0, this.#n = P(() => {
|
|
693
684
|
this.#r(this.#t);
|
|
694
685
|
}), this.#f > 0) {
|
|
695
686
|
var t = this.#a = document.createDocumentFragment();
|
|
696
|
-
|
|
687
|
+
Et(this.#n, t);
|
|
697
688
|
const n = (
|
|
698
689
|
/** @type {(anchor: Node) => void} */
|
|
699
690
|
this.#e.pending
|
|
700
691
|
);
|
|
701
|
-
this.#s =
|
|
692
|
+
this.#s = P(() => n(this.#t));
|
|
702
693
|
} else
|
|
703
694
|
this.#g(
|
|
704
695
|
/** @type {Batch} */
|
|
705
|
-
|
|
696
|
+
x
|
|
706
697
|
);
|
|
707
698
|
} catch (n) {
|
|
708
699
|
this.error(n);
|
|
@@ -719,7 +710,7 @@ class Ar {
|
|
|
719
710
|
* @param {Effect} effect
|
|
720
711
|
*/
|
|
721
712
|
defer_effect(t) {
|
|
722
|
-
|
|
713
|
+
Wt(t, this.#h, this.#v);
|
|
723
714
|
}
|
|
724
715
|
/**
|
|
725
716
|
* Returns `false` if the effect exists inside a boundary whose pending snippet is shown
|
|
@@ -736,14 +727,14 @@ class Ar {
|
|
|
736
727
|
* @param {() => T} fn
|
|
737
728
|
*/
|
|
738
729
|
#_(t) {
|
|
739
|
-
var n =
|
|
740
|
-
|
|
730
|
+
var n = m, r = g, i = W;
|
|
731
|
+
$(this.#i), H(this.#i), Ie(this.#i.ctx);
|
|
741
732
|
try {
|
|
742
|
-
return
|
|
733
|
+
return ve.ensure(), t();
|
|
743
734
|
} catch (s) {
|
|
744
|
-
return
|
|
735
|
+
return Gt(s), null;
|
|
745
736
|
} finally {
|
|
746
|
-
|
|
737
|
+
$(n), H(r), Ie(i);
|
|
747
738
|
}
|
|
748
739
|
}
|
|
749
740
|
/**
|
|
@@ -752,12 +743,12 @@ class Ar {
|
|
|
752
743
|
* @param {1 | -1} d
|
|
753
744
|
* @param {Batch} batch
|
|
754
745
|
*/
|
|
755
|
-
#
|
|
746
|
+
#b(t, n) {
|
|
756
747
|
if (!this.has_pending_snippet()) {
|
|
757
|
-
this.parent && this.parent.#
|
|
748
|
+
this.parent && this.parent.#b(t, n);
|
|
758
749
|
return;
|
|
759
750
|
}
|
|
760
|
-
this.#f += t, this.#f === 0 && (this.#g(n), this.#s &&
|
|
751
|
+
this.#f += t, this.#f === 0 && (this.#g(n), this.#s && xe(this.#s, () => {
|
|
761
752
|
this.#s = null;
|
|
762
753
|
}), this.#a && (this.#t.before(this.#a), this.#a = null));
|
|
763
754
|
}
|
|
@@ -769,12 +760,12 @@ class Ar {
|
|
|
769
760
|
* @param {Batch} batch
|
|
770
761
|
*/
|
|
771
762
|
update_pending_count(t, n) {
|
|
772
|
-
this.#
|
|
763
|
+
this.#b(t, n), this.#c += t, !(!this.#u || this.#d) && (this.#d = !0, Re(() => {
|
|
773
764
|
this.#d = !1, this.#u && qe(this.#u, this.#c);
|
|
774
765
|
}));
|
|
775
766
|
}
|
|
776
767
|
get_effect_pending() {
|
|
777
|
-
return this.#p(),
|
|
768
|
+
return this.#p(), y(
|
|
778
769
|
/** @type {Source<number>} */
|
|
779
770
|
this.#u
|
|
780
771
|
);
|
|
@@ -785,251 +776,251 @@ class Ar {
|
|
|
785
776
|
let r = this.#e.failed;
|
|
786
777
|
if (!n && !r)
|
|
787
778
|
throw t;
|
|
788
|
-
this.#n && (
|
|
779
|
+
this.#n && (I(this.#n), this.#n = null), this.#s && (I(this.#s), this.#s = null), this.#l && (I(this.#l), this.#l = null);
|
|
789
780
|
var i = !1, s = !1;
|
|
790
|
-
const
|
|
781
|
+
const f = () => {
|
|
791
782
|
if (i) {
|
|
792
|
-
|
|
783
|
+
Wn();
|
|
793
784
|
return;
|
|
794
785
|
}
|
|
795
|
-
i = !0, s &&
|
|
786
|
+
i = !0, s && Kn(), this.#l !== null && xe(this.#l, () => {
|
|
796
787
|
this.#l = null;
|
|
797
788
|
}), this.#_(() => {
|
|
798
|
-
this.#
|
|
789
|
+
this.#w();
|
|
799
790
|
});
|
|
800
|
-
},
|
|
791
|
+
}, l = (o) => {
|
|
801
792
|
try {
|
|
802
|
-
s = !0, n?.(
|
|
803
|
-
} catch (
|
|
804
|
-
|
|
793
|
+
s = !0, n?.(o, f), s = !1;
|
|
794
|
+
} catch (a) {
|
|
795
|
+
oe(a, this.#i && this.#i.parent);
|
|
805
796
|
}
|
|
806
797
|
r && (this.#l = this.#_(() => {
|
|
807
798
|
try {
|
|
808
|
-
return
|
|
809
|
-
var
|
|
799
|
+
return P(() => {
|
|
800
|
+
var a = (
|
|
810
801
|
/** @type {Effect} */
|
|
811
|
-
|
|
802
|
+
m
|
|
812
803
|
);
|
|
813
|
-
|
|
804
|
+
a.b = this, a.f |= at, r(
|
|
814
805
|
this.#t,
|
|
815
|
-
() =>
|
|
816
|
-
() =>
|
|
806
|
+
() => o,
|
|
807
|
+
() => f
|
|
817
808
|
);
|
|
818
809
|
});
|
|
819
|
-
} catch (
|
|
820
|
-
return
|
|
821
|
-
|
|
810
|
+
} catch (a) {
|
|
811
|
+
return oe(
|
|
812
|
+
a,
|
|
822
813
|
/** @type {Effect} */
|
|
823
814
|
this.#i.parent
|
|
824
815
|
), null;
|
|
825
816
|
}
|
|
826
817
|
}));
|
|
827
818
|
};
|
|
828
|
-
|
|
829
|
-
var
|
|
819
|
+
Re(() => {
|
|
820
|
+
var o;
|
|
830
821
|
try {
|
|
831
|
-
|
|
832
|
-
} catch (
|
|
833
|
-
|
|
822
|
+
o = this.transform_error(t);
|
|
823
|
+
} catch (a) {
|
|
824
|
+
oe(a, this.#i && this.#i.parent);
|
|
834
825
|
return;
|
|
835
826
|
}
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
827
|
+
o !== null && typeof o == "object" && typeof /** @type {any} */
|
|
828
|
+
o.then == "function" ? o.then(
|
|
829
|
+
l,
|
|
839
830
|
/** @param {unknown} e */
|
|
840
|
-
(
|
|
841
|
-
) :
|
|
831
|
+
(a) => oe(a, this.#i && this.#i.parent)
|
|
832
|
+
) : l(o);
|
|
842
833
|
});
|
|
843
834
|
}
|
|
844
835
|
}
|
|
845
|
-
function
|
|
846
|
-
const i =
|
|
836
|
+
function sr(e, t, n, r) {
|
|
837
|
+
const i = _t;
|
|
847
838
|
var s = e.filter((d) => !d.settled);
|
|
848
839
|
if (n.length === 0 && s.length === 0) {
|
|
849
840
|
r(t.map(i));
|
|
850
841
|
return;
|
|
851
842
|
}
|
|
852
|
-
var
|
|
843
|
+
var f = (
|
|
853
844
|
/** @type {Effect} */
|
|
854
|
-
|
|
855
|
-
),
|
|
856
|
-
function
|
|
857
|
-
|
|
845
|
+
m
|
|
846
|
+
), l = lr(), o = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((d) => d.promise)) : null;
|
|
847
|
+
function a(d) {
|
|
848
|
+
l();
|
|
858
849
|
try {
|
|
859
850
|
r(d);
|
|
860
|
-
} catch (
|
|
861
|
-
(
|
|
851
|
+
} catch (h) {
|
|
852
|
+
(f.f & K) === 0 && oe(h, f);
|
|
862
853
|
}
|
|
863
|
-
|
|
854
|
+
$e();
|
|
864
855
|
}
|
|
865
856
|
if (n.length === 0) {
|
|
866
|
-
|
|
857
|
+
o.then(() => a(t.map(i)));
|
|
867
858
|
return;
|
|
868
859
|
}
|
|
869
|
-
var u =
|
|
870
|
-
function
|
|
871
|
-
Promise.all(n.map((d) => /* @__PURE__ */
|
|
860
|
+
var u = $t();
|
|
861
|
+
function v() {
|
|
862
|
+
Promise.all(n.map((d) => /* @__PURE__ */ ar(d))).then((d) => a([...t.map(i), ...d])).catch((d) => oe(d, f)).finally(() => u());
|
|
872
863
|
}
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
}) :
|
|
864
|
+
o ? o.then(() => {
|
|
865
|
+
l(), v(), $e();
|
|
866
|
+
}) : v();
|
|
876
867
|
}
|
|
877
|
-
function
|
|
868
|
+
function lr() {
|
|
878
869
|
var e = (
|
|
879
870
|
/** @type {Effect} */
|
|
880
|
-
|
|
881
|
-
), t =
|
|
871
|
+
m
|
|
872
|
+
), t = g, n = W, r = (
|
|
882
873
|
/** @type {Batch} */
|
|
883
|
-
|
|
874
|
+
x
|
|
884
875
|
);
|
|
885
876
|
return function(s = !0) {
|
|
886
|
-
|
|
877
|
+
$(e), H(t), Ie(n), s && (e.f & K) === 0 && (r?.activate(), r?.apply());
|
|
887
878
|
};
|
|
888
879
|
}
|
|
889
|
-
function
|
|
890
|
-
|
|
880
|
+
function $e(e = !0) {
|
|
881
|
+
$(null), H(null), Ie(null), e && x?.deactivate();
|
|
891
882
|
}
|
|
892
|
-
function
|
|
883
|
+
function $t() {
|
|
893
884
|
var e = (
|
|
894
885
|
/** @type {Effect} */
|
|
895
|
-
|
|
886
|
+
m
|
|
896
887
|
), t = (
|
|
897
888
|
/** @type {Boundary} */
|
|
898
889
|
e.b
|
|
899
890
|
), n = (
|
|
900
891
|
/** @type {Batch} */
|
|
901
|
-
|
|
892
|
+
x
|
|
902
893
|
), r = t.is_rendered();
|
|
903
894
|
return t.update_pending_count(1, n), n.increment(r, e), (i = !1) => {
|
|
904
895
|
t.update_pending_count(-1, n), n.decrement(r, e, i);
|
|
905
896
|
};
|
|
906
897
|
}
|
|
907
898
|
// @__NO_SIDE_EFFECTS__
|
|
908
|
-
function
|
|
909
|
-
var t =
|
|
899
|
+
function _t(e) {
|
|
900
|
+
var t = C | R, n = g !== null && (g.f & C) !== 0 ? (
|
|
910
901
|
/** @type {Derived} */
|
|
911
|
-
|
|
902
|
+
g
|
|
912
903
|
) : null;
|
|
913
|
-
return
|
|
914
|
-
ctx:
|
|
904
|
+
return m !== null && (m.f |= je), {
|
|
905
|
+
ctx: W,
|
|
915
906
|
deps: null,
|
|
916
907
|
effects: null,
|
|
917
|
-
equals:
|
|
908
|
+
equals: Ut,
|
|
918
909
|
f: t,
|
|
919
910
|
fn: e,
|
|
920
911
|
reactions: null,
|
|
921
912
|
rv: 0,
|
|
922
913
|
v: (
|
|
923
914
|
/** @type {V} */
|
|
924
|
-
|
|
915
|
+
A
|
|
925
916
|
),
|
|
926
917
|
wv: 0,
|
|
927
|
-
parent: n ??
|
|
918
|
+
parent: n ?? m,
|
|
928
919
|
ac: null
|
|
929
920
|
};
|
|
930
921
|
}
|
|
931
922
|
// @__NO_SIDE_EFFECTS__
|
|
932
|
-
function
|
|
923
|
+
function ar(e, t, n) {
|
|
933
924
|
let r = (
|
|
934
925
|
/** @type {Effect | null} */
|
|
935
|
-
|
|
926
|
+
m
|
|
936
927
|
);
|
|
937
|
-
r === null &&
|
|
928
|
+
r === null && Bn();
|
|
938
929
|
var i = (
|
|
939
930
|
/** @type {Promise<V>} */
|
|
940
931
|
/** @type {unknown} */
|
|
941
932
|
void 0
|
|
942
|
-
), s =
|
|
933
|
+
), s = Se(
|
|
943
934
|
/** @type {V} */
|
|
944
|
-
|
|
945
|
-
),
|
|
946
|
-
return
|
|
947
|
-
var
|
|
935
|
+
A
|
|
936
|
+
), f = !g, l = /* @__PURE__ */ new Map();
|
|
937
|
+
return yr(() => {
|
|
938
|
+
var o = (
|
|
948
939
|
/** @type {Effect} */
|
|
949
|
-
|
|
950
|
-
),
|
|
951
|
-
i =
|
|
940
|
+
m
|
|
941
|
+
), a = Bt();
|
|
942
|
+
i = a.promise;
|
|
952
943
|
try {
|
|
953
|
-
Promise.resolve(e()).then(
|
|
954
|
-
} catch (
|
|
955
|
-
|
|
944
|
+
Promise.resolve(e()).then(a.resolve, a.reject).finally($e);
|
|
945
|
+
} catch (h) {
|
|
946
|
+
a.reject(h), $e();
|
|
956
947
|
}
|
|
957
948
|
var u = (
|
|
958
949
|
/** @type {Batch} */
|
|
959
|
-
|
|
950
|
+
x
|
|
960
951
|
);
|
|
961
|
-
if (
|
|
962
|
-
if ((
|
|
963
|
-
var
|
|
952
|
+
if (f) {
|
|
953
|
+
if ((o.f & Fe) !== 0)
|
|
954
|
+
var v = $t();
|
|
964
955
|
if (
|
|
965
956
|
/** @type {Boundary} */
|
|
966
957
|
r.b.is_rendered()
|
|
967
958
|
)
|
|
968
|
-
|
|
959
|
+
l.get(u)?.reject(ne), l.delete(u);
|
|
969
960
|
else {
|
|
970
|
-
for (const
|
|
971
|
-
|
|
972
|
-
|
|
961
|
+
for (const h of l.values())
|
|
962
|
+
h.reject(ne);
|
|
963
|
+
l.clear();
|
|
973
964
|
}
|
|
974
|
-
|
|
965
|
+
l.set(u, a);
|
|
975
966
|
}
|
|
976
|
-
const d = (
|
|
977
|
-
if (
|
|
978
|
-
var
|
|
979
|
-
|
|
967
|
+
const d = (h, c = void 0) => {
|
|
968
|
+
if (v) {
|
|
969
|
+
var p = c === ne;
|
|
970
|
+
v(p);
|
|
980
971
|
}
|
|
981
|
-
if (!(
|
|
982
|
-
if (u.activate(),
|
|
983
|
-
s.f |=
|
|
972
|
+
if (!(c === ne || (o.f & K) !== 0)) {
|
|
973
|
+
if (u.activate(), c)
|
|
974
|
+
s.f |= fe, qe(s, c);
|
|
984
975
|
else {
|
|
985
|
-
(s.f &
|
|
986
|
-
for (const [
|
|
987
|
-
if (
|
|
988
|
-
|
|
976
|
+
(s.f & fe) !== 0 && (s.f ^= fe), qe(s, h);
|
|
977
|
+
for (const [w, b] of l) {
|
|
978
|
+
if (l.delete(w), w === u) break;
|
|
979
|
+
b.reject(ne);
|
|
989
980
|
}
|
|
990
981
|
}
|
|
991
982
|
u.deactivate();
|
|
992
983
|
}
|
|
993
984
|
};
|
|
994
|
-
|
|
995
|
-
}),
|
|
996
|
-
for (const
|
|
997
|
-
|
|
998
|
-
}), new Promise((
|
|
999
|
-
function
|
|
1000
|
-
function
|
|
1001
|
-
u === i ?
|
|
985
|
+
a.promise.then(d, (h) => d(null, h || "unknown"));
|
|
986
|
+
}), mr(() => {
|
|
987
|
+
for (const o of l.values())
|
|
988
|
+
o.reject(ne);
|
|
989
|
+
}), new Promise((o) => {
|
|
990
|
+
function a(u) {
|
|
991
|
+
function v() {
|
|
992
|
+
u === i ? o(s) : a(i);
|
|
1002
993
|
}
|
|
1003
|
-
u.then(
|
|
994
|
+
u.then(v, v);
|
|
1004
995
|
}
|
|
1005
|
-
|
|
996
|
+
a(i);
|
|
1006
997
|
});
|
|
1007
998
|
}
|
|
1008
999
|
// @__NO_SIDE_EFFECTS__
|
|
1009
|
-
function
|
|
1010
|
-
const t = /* @__PURE__ */
|
|
1011
|
-
return
|
|
1000
|
+
function st(e) {
|
|
1001
|
+
const t = /* @__PURE__ */ _t(e);
|
|
1002
|
+
return pn(t), t;
|
|
1012
1003
|
}
|
|
1013
1004
|
// @__NO_SIDE_EFFECTS__
|
|
1014
|
-
function
|
|
1015
|
-
const t = /* @__PURE__ */
|
|
1016
|
-
return t.equals =
|
|
1005
|
+
function or(e) {
|
|
1006
|
+
const t = /* @__PURE__ */ _t(e);
|
|
1007
|
+
return t.equals = Vt, t;
|
|
1017
1008
|
}
|
|
1018
|
-
function
|
|
1009
|
+
function fr(e) {
|
|
1019
1010
|
var t = e.effects;
|
|
1020
1011
|
if (t !== null) {
|
|
1021
1012
|
e.effects = null;
|
|
1022
1013
|
for (var n = 0; n < t.length; n += 1)
|
|
1023
|
-
|
|
1014
|
+
I(
|
|
1024
1015
|
/** @type {Effect} */
|
|
1025
1016
|
t[n]
|
|
1026
1017
|
);
|
|
1027
1018
|
}
|
|
1028
1019
|
}
|
|
1029
|
-
function
|
|
1020
|
+
function ur(e) {
|
|
1030
1021
|
for (var t = e.parent; t !== null; ) {
|
|
1031
|
-
if ((t.f &
|
|
1032
|
-
return (t.f &
|
|
1022
|
+
if ((t.f & C) === 0)
|
|
1023
|
+
return (t.f & K) === 0 ? (
|
|
1033
1024
|
/** @type {Effect} */
|
|
1034
1025
|
t
|
|
1035
1026
|
) : null;
|
|
@@ -1037,172 +1028,172 @@ function zr(e) {
|
|
|
1037
1028
|
}
|
|
1038
1029
|
return null;
|
|
1039
1030
|
}
|
|
1040
|
-
function
|
|
1041
|
-
var t, n =
|
|
1042
|
-
|
|
1031
|
+
function mt(e) {
|
|
1032
|
+
var t, n = m;
|
|
1033
|
+
$(ur(e));
|
|
1043
1034
|
try {
|
|
1044
|
-
e.f &= ~
|
|
1035
|
+
e.f &= ~Te, fr(e), t = wn(e);
|
|
1045
1036
|
} finally {
|
|
1046
|
-
|
|
1037
|
+
$(n);
|
|
1047
1038
|
}
|
|
1048
1039
|
return t;
|
|
1049
1040
|
}
|
|
1050
|
-
function
|
|
1051
|
-
var t = e.v, n =
|
|
1052
|
-
if (!e.equals(n) && (e.wv =
|
|
1053
|
-
|
|
1041
|
+
function en(e) {
|
|
1042
|
+
var t = e.v, n = mt(e);
|
|
1043
|
+
if (!e.equals(n) && (e.wv = _n(), (!x?.is_fork || e.deps === null) && (e.v = n, x?.capture(e, t, !0), e.deps === null))) {
|
|
1044
|
+
E(e, S);
|
|
1054
1045
|
return;
|
|
1055
1046
|
}
|
|
1056
|
-
|
|
1047
|
+
Oe || (Y !== null ? (bt() || x?.is_fork) && Y.set(e, n) : pt(e));
|
|
1057
1048
|
}
|
|
1058
|
-
function
|
|
1049
|
+
function cr(e) {
|
|
1059
1050
|
if (e.effects !== null)
|
|
1060
1051
|
for (const t of e.effects)
|
|
1061
|
-
(t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(
|
|
1052
|
+
(t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(ne), t.teardown = Fn, t.ac = null, Ge(t, 0), xt(t));
|
|
1062
1053
|
}
|
|
1063
|
-
function
|
|
1054
|
+
function tn(e) {
|
|
1064
1055
|
if (e.effects !== null)
|
|
1065
1056
|
for (const t of e.effects)
|
|
1066
|
-
t.teardown &&
|
|
1057
|
+
t.teardown && De(t);
|
|
1067
1058
|
}
|
|
1068
|
-
let
|
|
1069
|
-
const
|
|
1070
|
-
let
|
|
1071
|
-
function
|
|
1059
|
+
let ut = /* @__PURE__ */ new Set();
|
|
1060
|
+
const ue = /* @__PURE__ */ new Map();
|
|
1061
|
+
let nn = !1;
|
|
1062
|
+
function Se(e, t) {
|
|
1072
1063
|
var n = {
|
|
1073
1064
|
f: 0,
|
|
1074
1065
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
1075
1066
|
v: e,
|
|
1076
1067
|
reactions: null,
|
|
1077
|
-
equals:
|
|
1068
|
+
equals: Ut,
|
|
1078
1069
|
rv: 0,
|
|
1079
1070
|
wv: 0
|
|
1080
1071
|
};
|
|
1081
1072
|
return n;
|
|
1082
1073
|
}
|
|
1083
1074
|
// @__NO_SIDE_EFFECTS__
|
|
1084
|
-
function
|
|
1085
|
-
const n =
|
|
1086
|
-
return
|
|
1075
|
+
function V(e, t) {
|
|
1076
|
+
const n = Se(e);
|
|
1077
|
+
return pn(n), n;
|
|
1087
1078
|
}
|
|
1088
1079
|
// @__NO_SIDE_EFFECTS__
|
|
1089
|
-
function
|
|
1090
|
-
const r =
|
|
1091
|
-
return t || (r.equals =
|
|
1080
|
+
function dr(e, t = !1, n = !0) {
|
|
1081
|
+
const r = Se(e);
|
|
1082
|
+
return t || (r.equals = Vt), r;
|
|
1092
1083
|
}
|
|
1093
|
-
function
|
|
1094
|
-
|
|
1084
|
+
function J(e, t, n = !1) {
|
|
1085
|
+
g !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
1095
1086
|
// to ensure we error if state is set inside an inspect effect
|
|
1096
|
-
(!
|
|
1097
|
-
let r = n ?
|
|
1098
|
-
return qe(e, r,
|
|
1087
|
+
(!G || (g.f & St) !== 0) && Yt() && (g.f & (C | he | ht | St)) !== 0 && (B === null || !Me.call(B, e)) && Gn();
|
|
1088
|
+
let r = n ? me(t) : t;
|
|
1089
|
+
return qe(e, r, Ze);
|
|
1099
1090
|
}
|
|
1100
1091
|
function qe(e, t, n = null) {
|
|
1101
1092
|
if (!e.equals(t)) {
|
|
1102
1093
|
var r = e.v;
|
|
1103
|
-
|
|
1104
|
-
var i =
|
|
1105
|
-
if (i.capture(e, r), (e.f &
|
|
1094
|
+
Oe ? ue.set(e, t) : ue.set(e, r), e.v = t;
|
|
1095
|
+
var i = ve.ensure();
|
|
1096
|
+
if (i.capture(e, r), (e.f & C) !== 0) {
|
|
1106
1097
|
const s = (
|
|
1107
1098
|
/** @type {Derived} */
|
|
1108
1099
|
e
|
|
1109
1100
|
);
|
|
1110
|
-
(e.f &
|
|
1101
|
+
(e.f & R) !== 0 && mt(s), Y === null && pt(s);
|
|
1111
1102
|
}
|
|
1112
|
-
e.wv =
|
|
1103
|
+
e.wv = _n(), rn(e, R, n), m !== null && (m.f & S) !== 0 && (m.f & (Z | Ee)) === 0 && (j === null ? Sr([e]) : j.push(e)), !i.is_fork && ut.size > 0 && !nn && vr();
|
|
1113
1104
|
}
|
|
1114
1105
|
return t;
|
|
1115
1106
|
}
|
|
1116
|
-
function
|
|
1117
|
-
|
|
1118
|
-
for (const e of
|
|
1119
|
-
(e.f &
|
|
1120
|
-
|
|
1107
|
+
function vr() {
|
|
1108
|
+
nn = !1;
|
|
1109
|
+
for (const e of ut)
|
|
1110
|
+
(e.f & S) !== 0 && E(e, Q), Xe(e) && De(e);
|
|
1111
|
+
ut.clear();
|
|
1121
1112
|
}
|
|
1122
|
-
function
|
|
1123
|
-
|
|
1113
|
+
function Ve(e) {
|
|
1114
|
+
J(e, e.v + 1);
|
|
1124
1115
|
}
|
|
1125
|
-
function
|
|
1116
|
+
function rn(e, t, n) {
|
|
1126
1117
|
var r = e.reactions;
|
|
1127
1118
|
if (r !== null)
|
|
1128
1119
|
for (var i = r.length, s = 0; s < i; s++) {
|
|
1129
|
-
var
|
|
1130
|
-
if (
|
|
1131
|
-
var
|
|
1120
|
+
var f = r[s], l = f.f, o = (l & R) === 0;
|
|
1121
|
+
if (o && E(f, t), (l & C) !== 0) {
|
|
1122
|
+
var a = (
|
|
1132
1123
|
/** @type {Derived} */
|
|
1133
|
-
|
|
1124
|
+
f
|
|
1134
1125
|
);
|
|
1135
|
-
|
|
1136
|
-
} else if (
|
|
1126
|
+
Y?.delete(a), (l & Te) === 0 && (l & z && (f.f |= Te), rn(a, Q, n));
|
|
1127
|
+
} else if (o) {
|
|
1137
1128
|
var u = (
|
|
1138
1129
|
/** @type {Effect} */
|
|
1139
|
-
|
|
1130
|
+
f
|
|
1140
1131
|
);
|
|
1141
|
-
(
|
|
1132
|
+
(l & he) !== 0 && te !== null && te.add(u), n !== null ? n.push(u) : gt(u);
|
|
1142
1133
|
}
|
|
1143
1134
|
}
|
|
1144
1135
|
}
|
|
1145
|
-
function
|
|
1146
|
-
if (typeof e != "object" || e === null ||
|
|
1136
|
+
function me(e) {
|
|
1137
|
+
if (typeof e != "object" || e === null || rt in e)
|
|
1147
1138
|
return e;
|
|
1148
|
-
const t =
|
|
1149
|
-
if (t !==
|
|
1139
|
+
const t = Lt(e);
|
|
1140
|
+
if (t !== On && t !== Dn)
|
|
1150
1141
|
return e;
|
|
1151
|
-
var n = /* @__PURE__ */ new Map(), r =
|
|
1152
|
-
if (
|
|
1153
|
-
return
|
|
1154
|
-
var
|
|
1155
|
-
|
|
1156
|
-
var u =
|
|
1157
|
-
return
|
|
1142
|
+
var n = /* @__PURE__ */ new Map(), r = zt(e), i = /* @__PURE__ */ V(0), s = ye, f = (l) => {
|
|
1143
|
+
if (ye === s)
|
|
1144
|
+
return l();
|
|
1145
|
+
var o = g, a = ye;
|
|
1146
|
+
H(null), Nt(s);
|
|
1147
|
+
var u = l();
|
|
1148
|
+
return H(o), Nt(a), u;
|
|
1158
1149
|
};
|
|
1159
|
-
return r && n.set("length", /* @__PURE__ */
|
|
1150
|
+
return r && n.set("length", /* @__PURE__ */ V(
|
|
1160
1151
|
/** @type {any[]} */
|
|
1161
1152
|
e.length
|
|
1162
1153
|
)), new Proxy(
|
|
1163
1154
|
/** @type {any} */
|
|
1164
1155
|
e,
|
|
1165
1156
|
{
|
|
1166
|
-
defineProperty(
|
|
1167
|
-
(!("value" in
|
|
1168
|
-
var u = n.get(
|
|
1169
|
-
return u === void 0 ?
|
|
1170
|
-
var
|
|
1171
|
-
return n.set(
|
|
1172
|
-
}) :
|
|
1157
|
+
defineProperty(l, o, a) {
|
|
1158
|
+
(!("value" in a) || a.configurable === !1 || a.enumerable === !1 || a.writable === !1) && Vn();
|
|
1159
|
+
var u = n.get(o);
|
|
1160
|
+
return u === void 0 ? f(() => {
|
|
1161
|
+
var v = /* @__PURE__ */ V(a.value);
|
|
1162
|
+
return n.set(o, v), v;
|
|
1163
|
+
}) : J(u, a.value, !0), !0;
|
|
1173
1164
|
},
|
|
1174
|
-
deleteProperty(
|
|
1175
|
-
var
|
|
1176
|
-
if (
|
|
1177
|
-
if (
|
|
1178
|
-
const u =
|
|
1179
|
-
n.set(
|
|
1165
|
+
deleteProperty(l, o) {
|
|
1166
|
+
var a = n.get(o);
|
|
1167
|
+
if (a === void 0) {
|
|
1168
|
+
if (o in l) {
|
|
1169
|
+
const u = f(() => /* @__PURE__ */ V(A));
|
|
1170
|
+
n.set(o, u), Ve(i);
|
|
1180
1171
|
}
|
|
1181
1172
|
} else
|
|
1182
|
-
|
|
1173
|
+
J(a, A), Ve(i);
|
|
1183
1174
|
return !0;
|
|
1184
1175
|
},
|
|
1185
|
-
get(
|
|
1186
|
-
if (
|
|
1176
|
+
get(l, o, a) {
|
|
1177
|
+
if (o === rt)
|
|
1187
1178
|
return e;
|
|
1188
|
-
var u = n.get(
|
|
1189
|
-
if (u === void 0 && (!
|
|
1190
|
-
var
|
|
1191
|
-
return
|
|
1192
|
-
}), n.set(
|
|
1193
|
-
var d =
|
|
1194
|
-
return d ===
|
|
1179
|
+
var u = n.get(o), v = o in l;
|
|
1180
|
+
if (u === void 0 && (!v || Ue(l, o)?.writable) && (u = f(() => {
|
|
1181
|
+
var h = me(v ? l[o] : A), c = /* @__PURE__ */ V(h);
|
|
1182
|
+
return c;
|
|
1183
|
+
}), n.set(o, u)), u !== void 0) {
|
|
1184
|
+
var d = y(u);
|
|
1185
|
+
return d === A ? void 0 : d;
|
|
1195
1186
|
}
|
|
1196
|
-
return Reflect.get(
|
|
1187
|
+
return Reflect.get(l, o, a);
|
|
1197
1188
|
},
|
|
1198
|
-
getOwnPropertyDescriptor(
|
|
1199
|
-
var
|
|
1200
|
-
if (
|
|
1201
|
-
var u = n.get(
|
|
1202
|
-
u && (
|
|
1203
|
-
} else if (
|
|
1204
|
-
var
|
|
1205
|
-
if (
|
|
1189
|
+
getOwnPropertyDescriptor(l, o) {
|
|
1190
|
+
var a = Reflect.getOwnPropertyDescriptor(l, o);
|
|
1191
|
+
if (a && "value" in a) {
|
|
1192
|
+
var u = n.get(o);
|
|
1193
|
+
u && (a.value = y(u));
|
|
1194
|
+
} else if (a === void 0) {
|
|
1195
|
+
var v = n.get(o), d = v?.v;
|
|
1196
|
+
if (v !== void 0 && d !== A)
|
|
1206
1197
|
return {
|
|
1207
1198
|
enumerable: !0,
|
|
1208
1199
|
configurable: !0,
|
|
@@ -1210,144 +1201,141 @@ function he(e) {
|
|
|
1210
1201
|
writable: !0
|
|
1211
1202
|
};
|
|
1212
1203
|
}
|
|
1213
|
-
return
|
|
1204
|
+
return a;
|
|
1214
1205
|
},
|
|
1215
|
-
has(
|
|
1216
|
-
if (
|
|
1206
|
+
has(l, o) {
|
|
1207
|
+
if (o === rt)
|
|
1217
1208
|
return !0;
|
|
1218
|
-
var
|
|
1219
|
-
if (
|
|
1220
|
-
|
|
1221
|
-
var d = u ?
|
|
1222
|
-
return
|
|
1223
|
-
}), n.set(
|
|
1224
|
-
var
|
|
1225
|
-
if (
|
|
1209
|
+
var a = n.get(o), u = a !== void 0 && a.v !== A || Reflect.has(l, o);
|
|
1210
|
+
if (a !== void 0 || m !== null && (!u || Ue(l, o)?.writable)) {
|
|
1211
|
+
a === void 0 && (a = f(() => {
|
|
1212
|
+
var d = u ? me(l[o]) : A, h = /* @__PURE__ */ V(d);
|
|
1213
|
+
return h;
|
|
1214
|
+
}), n.set(o, a));
|
|
1215
|
+
var v = y(a);
|
|
1216
|
+
if (v === A)
|
|
1226
1217
|
return !1;
|
|
1227
1218
|
}
|
|
1228
1219
|
return u;
|
|
1229
1220
|
},
|
|
1230
|
-
set(
|
|
1231
|
-
var
|
|
1232
|
-
if (r &&
|
|
1233
|
-
for (var
|
|
1234
|
-
|
|
1235
|
-
var
|
|
1236
|
-
|
|
1221
|
+
set(l, o, a, u) {
|
|
1222
|
+
var v = n.get(o), d = o in l;
|
|
1223
|
+
if (r && o === "length")
|
|
1224
|
+
for (var h = a; h < /** @type {Source<number>} */
|
|
1225
|
+
v.v; h += 1) {
|
|
1226
|
+
var c = n.get(h + "");
|
|
1227
|
+
c !== void 0 ? J(c, A) : h in l && (c = f(() => /* @__PURE__ */ V(A)), n.set(h + "", c));
|
|
1237
1228
|
}
|
|
1238
|
-
if (
|
|
1239
|
-
(!d ||
|
|
1229
|
+
if (v === void 0)
|
|
1230
|
+
(!d || Ue(l, o)?.writable) && (v = f(() => /* @__PURE__ */ V(void 0)), J(v, me(a)), n.set(o, v));
|
|
1240
1231
|
else {
|
|
1241
|
-
d =
|
|
1242
|
-
var
|
|
1243
|
-
|
|
1232
|
+
d = v.v !== A;
|
|
1233
|
+
var p = f(() => me(a));
|
|
1234
|
+
J(v, p);
|
|
1244
1235
|
}
|
|
1245
|
-
var
|
|
1246
|
-
if (
|
|
1247
|
-
if (r && typeof
|
|
1248
|
-
var
|
|
1236
|
+
var w = Reflect.getOwnPropertyDescriptor(l, o);
|
|
1237
|
+
if (w?.set && w.set.call(u, a), !d) {
|
|
1238
|
+
if (r && typeof o == "string") {
|
|
1239
|
+
var b = (
|
|
1249
1240
|
/** @type {Source<number>} */
|
|
1250
1241
|
n.get("length")
|
|
1251
|
-
),
|
|
1252
|
-
Number.isInteger(
|
|
1242
|
+
), _ = Number(o);
|
|
1243
|
+
Number.isInteger(_) && _ >= b.v && J(b, _ + 1);
|
|
1253
1244
|
}
|
|
1254
|
-
|
|
1245
|
+
Ve(i);
|
|
1255
1246
|
}
|
|
1256
1247
|
return !0;
|
|
1257
1248
|
},
|
|
1258
|
-
ownKeys(
|
|
1259
|
-
|
|
1260
|
-
var
|
|
1261
|
-
var d = n.get(
|
|
1262
|
-
return d === void 0 || d.v !==
|
|
1249
|
+
ownKeys(l) {
|
|
1250
|
+
y(i);
|
|
1251
|
+
var o = Reflect.ownKeys(l).filter((v) => {
|
|
1252
|
+
var d = n.get(v);
|
|
1253
|
+
return d === void 0 || d.v !== A;
|
|
1263
1254
|
});
|
|
1264
|
-
for (var [
|
|
1265
|
-
u.v !==
|
|
1266
|
-
return
|
|
1255
|
+
for (var [a, u] of n)
|
|
1256
|
+
u.v !== A && !(a in l) && o.push(a);
|
|
1257
|
+
return o;
|
|
1267
1258
|
},
|
|
1268
1259
|
setPrototypeOf() {
|
|
1269
|
-
|
|
1260
|
+
Yn();
|
|
1270
1261
|
}
|
|
1271
1262
|
}
|
|
1272
1263
|
);
|
|
1273
1264
|
}
|
|
1274
|
-
var
|
|
1275
|
-
function
|
|
1276
|
-
if (
|
|
1277
|
-
|
|
1265
|
+
var Rt, sn, ln, an;
|
|
1266
|
+
function hr() {
|
|
1267
|
+
if (Rt === void 0) {
|
|
1268
|
+
Rt = window, sn = /Firefox/.test(navigator.userAgent);
|
|
1278
1269
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
1279
|
-
|
|
1270
|
+
ln = Ue(t, "firstChild").get, an = Ue(t, "nextSibling").get, kt(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), kt(n) && (n.__t = void 0);
|
|
1280
1271
|
}
|
|
1281
1272
|
}
|
|
1282
|
-
function
|
|
1273
|
+
function ce(e = "") {
|
|
1283
1274
|
return document.createTextNode(e);
|
|
1284
1275
|
}
|
|
1285
1276
|
// @__NO_SIDE_EFFECTS__
|
|
1286
|
-
function
|
|
1277
|
+
function wt(e) {
|
|
1287
1278
|
return (
|
|
1288
1279
|
/** @type {TemplateNode | null} */
|
|
1289
|
-
|
|
1280
|
+
ln.call(e)
|
|
1290
1281
|
);
|
|
1291
1282
|
}
|
|
1292
1283
|
// @__NO_SIDE_EFFECTS__
|
|
1293
|
-
function
|
|
1284
|
+
function We(e) {
|
|
1294
1285
|
return (
|
|
1295
1286
|
/** @type {TemplateNode | null} */
|
|
1296
|
-
|
|
1287
|
+
an.call(e)
|
|
1297
1288
|
);
|
|
1298
1289
|
}
|
|
1299
|
-
function
|
|
1300
|
-
return /* @__PURE__ */
|
|
1290
|
+
function k(e, t) {
|
|
1291
|
+
return /* @__PURE__ */ wt(e);
|
|
1301
1292
|
}
|
|
1302
|
-
function
|
|
1293
|
+
function pr(e, t = !1) {
|
|
1303
1294
|
{
|
|
1304
|
-
var n = /* @__PURE__ */
|
|
1305
|
-
return n instanceof Comment && n.data === "" ? /* @__PURE__ */
|
|
1295
|
+
var n = /* @__PURE__ */ wt(e);
|
|
1296
|
+
return n instanceof Comment && n.data === "" ? /* @__PURE__ */ We(n) : n;
|
|
1306
1297
|
}
|
|
1307
1298
|
}
|
|
1308
|
-
function
|
|
1299
|
+
function be(e, t = 1, n = !1) {
|
|
1309
1300
|
let r = e;
|
|
1310
1301
|
for (; t--; )
|
|
1311
1302
|
r = /** @type {TemplateNode} */
|
|
1312
|
-
/* @__PURE__ */
|
|
1303
|
+
/* @__PURE__ */ We(r);
|
|
1313
1304
|
return r;
|
|
1314
1305
|
}
|
|
1315
|
-
function
|
|
1306
|
+
function gr(e) {
|
|
1316
1307
|
e.textContent = "";
|
|
1317
1308
|
}
|
|
1318
|
-
function
|
|
1309
|
+
function on() {
|
|
1319
1310
|
return !1;
|
|
1320
1311
|
}
|
|
1321
|
-
function
|
|
1312
|
+
function fn(e, t, n) {
|
|
1322
1313
|
return (
|
|
1323
1314
|
/** @type {T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : Element} */
|
|
1324
|
-
document.createElementNS(
|
|
1315
|
+
document.createElementNS(Pt, e, void 0)
|
|
1325
1316
|
);
|
|
1326
1317
|
}
|
|
1327
|
-
function
|
|
1328
|
-
var t =
|
|
1329
|
-
|
|
1318
|
+
function un(e) {
|
|
1319
|
+
var t = g, n = m;
|
|
1320
|
+
H(null), $(null);
|
|
1330
1321
|
try {
|
|
1331
1322
|
return e();
|
|
1332
1323
|
} finally {
|
|
1333
|
-
|
|
1324
|
+
H(t), $(n);
|
|
1334
1325
|
}
|
|
1335
1326
|
}
|
|
1336
|
-
function
|
|
1337
|
-
k === null && (b === null && dr(), cr()), ze && ur();
|
|
1338
|
-
}
|
|
1339
|
-
function qr(e, t) {
|
|
1327
|
+
function _r(e, t) {
|
|
1340
1328
|
var n = t.last;
|
|
1341
1329
|
n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
|
|
1342
1330
|
}
|
|
1343
|
-
function
|
|
1344
|
-
var n =
|
|
1345
|
-
n !== null && (n.f &
|
|
1331
|
+
function ie(e, t) {
|
|
1332
|
+
var n = m;
|
|
1333
|
+
n !== null && (n.f & D) !== 0 && (e |= D);
|
|
1346
1334
|
var r = {
|
|
1347
|
-
ctx:
|
|
1335
|
+
ctx: W,
|
|
1348
1336
|
deps: null,
|
|
1349
1337
|
nodes: null,
|
|
1350
|
-
f: e |
|
|
1338
|
+
f: e | R | z,
|
|
1351
1339
|
first: null,
|
|
1352
1340
|
fn: t,
|
|
1353
1341
|
last: null,
|
|
@@ -1359,425 +1347,410 @@ function pe(e, t) {
|
|
|
1359
1347
|
wv: 0,
|
|
1360
1348
|
ac: null
|
|
1361
1349
|
}, i = r;
|
|
1362
|
-
if ((e &
|
|
1363
|
-
|
|
1350
|
+
if ((e & Ne) !== 0)
|
|
1351
|
+
Ae !== null ? Ae.push(r) : ve.ensure().schedule(r);
|
|
1364
1352
|
else if (t !== null) {
|
|
1365
1353
|
try {
|
|
1366
|
-
|
|
1367
|
-
} catch (
|
|
1368
|
-
throw
|
|
1354
|
+
De(r);
|
|
1355
|
+
} catch (f) {
|
|
1356
|
+
throw I(r), f;
|
|
1369
1357
|
}
|
|
1370
1358
|
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && // either `null`, or a singular child
|
|
1371
|
-
(i.f &
|
|
1359
|
+
(i.f & je) === 0 && (i = i.first, (e & he) !== 0 && (e & ke) !== 0 && i !== null && (i.f |= ke));
|
|
1372
1360
|
}
|
|
1373
|
-
if (i !== null && (i.parent = n, n !== null &&
|
|
1361
|
+
if (i !== null && (i.parent = n, n !== null && _r(i, n), g !== null && (g.f & C) !== 0 && (e & Ee) === 0)) {
|
|
1374
1362
|
var s = (
|
|
1375
1363
|
/** @type {Derived} */
|
|
1376
|
-
|
|
1364
|
+
g
|
|
1377
1365
|
);
|
|
1378
1366
|
(s.effects ??= []).push(i);
|
|
1379
1367
|
}
|
|
1380
1368
|
return r;
|
|
1381
1369
|
}
|
|
1382
|
-
function
|
|
1383
|
-
return
|
|
1370
|
+
function bt() {
|
|
1371
|
+
return g !== null && !G;
|
|
1384
1372
|
}
|
|
1385
|
-
function
|
|
1386
|
-
const t =
|
|
1387
|
-
return
|
|
1373
|
+
function mr(e) {
|
|
1374
|
+
const t = ie(tt, null);
|
|
1375
|
+
return E(t, S), t.teardown = e, t;
|
|
1388
1376
|
}
|
|
1389
|
-
function
|
|
1390
|
-
|
|
1391
|
-
var t = (
|
|
1392
|
-
/** @type {Effect} */
|
|
1393
|
-
k.f
|
|
1394
|
-
), n = !b && (t & re) !== 0 && (t & Ie) === 0;
|
|
1395
|
-
if (n) {
|
|
1396
|
-
var r = (
|
|
1397
|
-
/** @type {ComponentContext} */
|
|
1398
|
-
Z
|
|
1399
|
-
);
|
|
1400
|
-
(r.e ??= []).push(e);
|
|
1401
|
-
} else
|
|
1402
|
-
return Cn(e);
|
|
1377
|
+
function wr(e) {
|
|
1378
|
+
return ie(Ne | zn, e);
|
|
1403
1379
|
}
|
|
1404
|
-
function
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
function Vr(e) {
|
|
1408
|
-
Ee.ensure();
|
|
1409
|
-
const t = pe(Ne | Ue, e);
|
|
1380
|
+
function br(e) {
|
|
1381
|
+
ve.ensure();
|
|
1382
|
+
const t = ie(Ee | je, e);
|
|
1410
1383
|
return (n = {}) => new Promise((r) => {
|
|
1411
|
-
n.outro ?
|
|
1412
|
-
|
|
1413
|
-
}) : (
|
|
1384
|
+
n.outro ? xe(t, () => {
|
|
1385
|
+
I(t), r(void 0);
|
|
1386
|
+
}) : (I(t), r(void 0));
|
|
1414
1387
|
});
|
|
1415
1388
|
}
|
|
1416
|
-
function
|
|
1417
|
-
return
|
|
1389
|
+
function xr(e) {
|
|
1390
|
+
return ie(Ne, e);
|
|
1418
1391
|
}
|
|
1419
|
-
function
|
|
1420
|
-
return
|
|
1392
|
+
function yr(e) {
|
|
1393
|
+
return ie(ht | je, e);
|
|
1421
1394
|
}
|
|
1422
|
-
function
|
|
1423
|
-
return
|
|
1395
|
+
function Er(e, t = 0) {
|
|
1396
|
+
return ie(tt | t, e);
|
|
1424
1397
|
}
|
|
1425
|
-
function
|
|
1426
|
-
|
|
1427
|
-
|
|
1398
|
+
function L(e, t = [], n = [], r = []) {
|
|
1399
|
+
sr(r, t, n, (i) => {
|
|
1400
|
+
ie(tt, () => e(...i.map(y)));
|
|
1428
1401
|
});
|
|
1429
1402
|
}
|
|
1430
|
-
function
|
|
1431
|
-
var n =
|
|
1403
|
+
function nt(e, t = 0) {
|
|
1404
|
+
var n = ie(he | t, e);
|
|
1432
1405
|
return n;
|
|
1433
1406
|
}
|
|
1434
|
-
function
|
|
1435
|
-
return
|
|
1407
|
+
function P(e) {
|
|
1408
|
+
return ie(Z | je, e);
|
|
1436
1409
|
}
|
|
1437
|
-
function
|
|
1410
|
+
function cn(e) {
|
|
1438
1411
|
var t = e.teardown;
|
|
1439
1412
|
if (t !== null) {
|
|
1440
|
-
const n =
|
|
1441
|
-
|
|
1413
|
+
const n = Oe, r = g;
|
|
1414
|
+
Mt(!0), H(null);
|
|
1442
1415
|
try {
|
|
1443
1416
|
t.call(null);
|
|
1444
1417
|
} finally {
|
|
1445
|
-
|
|
1418
|
+
Mt(n), H(r);
|
|
1446
1419
|
}
|
|
1447
1420
|
}
|
|
1448
1421
|
}
|
|
1449
|
-
function
|
|
1422
|
+
function xt(e, t = !1) {
|
|
1450
1423
|
var n = e.first;
|
|
1451
1424
|
for (e.first = e.last = null; n !== null; ) {
|
|
1452
1425
|
const i = n.ac;
|
|
1453
|
-
i !== null &&
|
|
1454
|
-
i.abort(
|
|
1426
|
+
i !== null && un(() => {
|
|
1427
|
+
i.abort(ne);
|
|
1455
1428
|
});
|
|
1456
1429
|
var r = n.next;
|
|
1457
|
-
(n.f &
|
|
1430
|
+
(n.f & Ee) !== 0 ? n.parent = null : I(n, t), n = r;
|
|
1458
1431
|
}
|
|
1459
1432
|
}
|
|
1460
|
-
function
|
|
1433
|
+
function kr(e) {
|
|
1461
1434
|
for (var t = e.first; t !== null; ) {
|
|
1462
1435
|
var n = t.next;
|
|
1463
|
-
(t.f &
|
|
1436
|
+
(t.f & Z) === 0 && I(t), t = n;
|
|
1464
1437
|
}
|
|
1465
1438
|
}
|
|
1466
|
-
function
|
|
1439
|
+
function I(e, t = !0) {
|
|
1467
1440
|
var n = !1;
|
|
1468
|
-
(t || (e.f &
|
|
1441
|
+
(t || (e.f & Pn) !== 0) && e.nodes !== null && e.nodes.end !== null && (Tr(
|
|
1469
1442
|
e.nodes.start,
|
|
1470
1443
|
/** @type {TemplateNode} */
|
|
1471
1444
|
e.nodes.end
|
|
1472
|
-
), n = !0),
|
|
1445
|
+
), n = !0), E(e, Tt), xt(e, t && !n), Ge(e, 0);
|
|
1473
1446
|
var r = e.nodes && e.nodes.t;
|
|
1474
1447
|
if (r !== null)
|
|
1475
1448
|
for (const s of r)
|
|
1476
1449
|
s.stop();
|
|
1477
|
-
|
|
1450
|
+
cn(e), e.f ^= Tt, e.f |= K;
|
|
1478
1451
|
var i = e.parent;
|
|
1479
|
-
i !== null && i.first !== null &&
|
|
1452
|
+
i !== null && i.first !== null && dn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1480
1453
|
}
|
|
1481
|
-
function
|
|
1454
|
+
function Tr(e, t) {
|
|
1482
1455
|
for (; e !== null; ) {
|
|
1483
|
-
var n = e === t ? null : /* @__PURE__ */
|
|
1456
|
+
var n = e === t ? null : /* @__PURE__ */ We(e);
|
|
1484
1457
|
e.remove(), e = n;
|
|
1485
1458
|
}
|
|
1486
1459
|
}
|
|
1487
|
-
function
|
|
1460
|
+
function dn(e) {
|
|
1488
1461
|
var t = e.parent, n = e.prev, r = e.next;
|
|
1489
1462
|
n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
|
|
1490
1463
|
}
|
|
1491
|
-
function
|
|
1464
|
+
function xe(e, t, n = !0) {
|
|
1492
1465
|
var r = [];
|
|
1493
|
-
|
|
1466
|
+
vn(e, r, !0);
|
|
1494
1467
|
var i = () => {
|
|
1495
|
-
n &&
|
|
1468
|
+
n && I(e), t && t();
|
|
1496
1469
|
}, s = r.length;
|
|
1497
1470
|
if (s > 0) {
|
|
1498
|
-
var
|
|
1499
|
-
for (var
|
|
1500
|
-
|
|
1471
|
+
var f = () => --s || i();
|
|
1472
|
+
for (var l of r)
|
|
1473
|
+
l.out(f);
|
|
1501
1474
|
} else
|
|
1502
1475
|
i();
|
|
1503
1476
|
}
|
|
1504
|
-
function
|
|
1505
|
-
if ((e.f &
|
|
1506
|
-
e.f ^=
|
|
1477
|
+
function vn(e, t, n) {
|
|
1478
|
+
if ((e.f & D) === 0) {
|
|
1479
|
+
e.f ^= D;
|
|
1507
1480
|
var r = e.nodes && e.nodes.t;
|
|
1508
1481
|
if (r !== null)
|
|
1509
|
-
for (const
|
|
1510
|
-
(
|
|
1482
|
+
for (const l of r)
|
|
1483
|
+
(l.is_global || n) && t.push(l);
|
|
1511
1484
|
for (var i = e.first; i !== null; ) {
|
|
1512
|
-
var s = i.next,
|
|
1485
|
+
var s = i.next, f = (i.f & ke) !== 0 || // If this is a branch effect without a block effect parent,
|
|
1513
1486
|
// it means the parent block effect was pruned. In that case,
|
|
1514
1487
|
// transparency information was transferred to the branch effect.
|
|
1515
|
-
(i.f &
|
|
1516
|
-
|
|
1488
|
+
(i.f & Z) !== 0 && (e.f & he) !== 0;
|
|
1489
|
+
vn(i, t, f ? n : !1), i = s;
|
|
1517
1490
|
}
|
|
1518
1491
|
}
|
|
1519
1492
|
}
|
|
1520
|
-
function
|
|
1521
|
-
|
|
1493
|
+
function yt(e) {
|
|
1494
|
+
hn(e, !0);
|
|
1522
1495
|
}
|
|
1523
|
-
function
|
|
1524
|
-
if ((e.f &
|
|
1525
|
-
e.f ^=
|
|
1496
|
+
function hn(e, t) {
|
|
1497
|
+
if ((e.f & D) !== 0) {
|
|
1498
|
+
e.f ^= D, (e.f & S) === 0 && (E(e, R), ve.ensure().schedule(e));
|
|
1526
1499
|
for (var n = e.first; n !== null; ) {
|
|
1527
|
-
var r = n.next, i = (n.f &
|
|
1528
|
-
|
|
1500
|
+
var r = n.next, i = (n.f & ke) !== 0 || (n.f & Z) !== 0;
|
|
1501
|
+
hn(n, i ? t : !1), n = r;
|
|
1529
1502
|
}
|
|
1530
1503
|
var s = e.nodes && e.nodes.t;
|
|
1531
1504
|
if (s !== null)
|
|
1532
|
-
for (const
|
|
1533
|
-
(
|
|
1505
|
+
for (const f of s)
|
|
1506
|
+
(f.is_global || t) && f.in();
|
|
1534
1507
|
}
|
|
1535
1508
|
}
|
|
1536
|
-
function
|
|
1509
|
+
function Et(e, t) {
|
|
1537
1510
|
if (e.nodes)
|
|
1538
1511
|
for (var n = e.nodes.start, r = e.nodes.end; n !== null; ) {
|
|
1539
|
-
var i = n === r ? null : /* @__PURE__ */
|
|
1512
|
+
var i = n === r ? null : /* @__PURE__ */ We(n);
|
|
1540
1513
|
t.append(n), n = i;
|
|
1541
1514
|
}
|
|
1542
1515
|
}
|
|
1543
|
-
let
|
|
1544
|
-
function
|
|
1545
|
-
|
|
1516
|
+
let Qe = !1, Oe = !1;
|
|
1517
|
+
function Mt(e) {
|
|
1518
|
+
Oe = e;
|
|
1546
1519
|
}
|
|
1547
|
-
let
|
|
1548
|
-
function
|
|
1549
|
-
|
|
1520
|
+
let g = null, G = !1;
|
|
1521
|
+
function H(e) {
|
|
1522
|
+
g = e;
|
|
1550
1523
|
}
|
|
1551
|
-
let
|
|
1552
|
-
function
|
|
1553
|
-
|
|
1524
|
+
let m = null;
|
|
1525
|
+
function $(e) {
|
|
1526
|
+
m = e;
|
|
1554
1527
|
}
|
|
1555
|
-
let
|
|
1556
|
-
function
|
|
1557
|
-
|
|
1528
|
+
let B = null;
|
|
1529
|
+
function pn(e) {
|
|
1530
|
+
g !== null && (B === null ? B = [e] : B.push(e));
|
|
1558
1531
|
}
|
|
1559
|
-
let
|
|
1560
|
-
function
|
|
1561
|
-
|
|
1532
|
+
let M = null, O = 0, j = null;
|
|
1533
|
+
function Sr(e) {
|
|
1534
|
+
j = e;
|
|
1562
1535
|
}
|
|
1563
|
-
let
|
|
1564
|
-
function
|
|
1565
|
-
|
|
1536
|
+
let gn = 1, we = 0, ye = we;
|
|
1537
|
+
function Nt(e) {
|
|
1538
|
+
ye = e;
|
|
1566
1539
|
}
|
|
1567
|
-
function
|
|
1568
|
-
return ++
|
|
1540
|
+
function _n() {
|
|
1541
|
+
return ++gn;
|
|
1569
1542
|
}
|
|
1570
|
-
function
|
|
1543
|
+
function Xe(e) {
|
|
1571
1544
|
var t = e.f;
|
|
1572
|
-
if ((t &
|
|
1545
|
+
if ((t & R) !== 0)
|
|
1573
1546
|
return !0;
|
|
1574
|
-
if (t &
|
|
1547
|
+
if (t & C && (e.f &= ~Te), (t & Q) !== 0) {
|
|
1575
1548
|
for (var n = (
|
|
1576
1549
|
/** @type {Value[]} */
|
|
1577
1550
|
e.deps
|
|
1578
1551
|
), r = n.length, i = 0; i < r; i++) {
|
|
1579
1552
|
var s = n[i];
|
|
1580
|
-
if (
|
|
1553
|
+
if (Xe(
|
|
1581
1554
|
/** @type {Derived} */
|
|
1582
1555
|
s
|
|
1583
|
-
) &&
|
|
1556
|
+
) && en(
|
|
1584
1557
|
/** @type {Derived} */
|
|
1585
1558
|
s
|
|
1586
1559
|
), s.wv > e.wv)
|
|
1587
1560
|
return !0;
|
|
1588
1561
|
}
|
|
1589
|
-
(t &
|
|
1562
|
+
(t & z) !== 0 && // During time traveling we don't want to reset the status so that
|
|
1590
1563
|
// traversal of the graph in the other batches still happens
|
|
1591
|
-
|
|
1564
|
+
Y === null && E(e, S);
|
|
1592
1565
|
}
|
|
1593
1566
|
return !1;
|
|
1594
1567
|
}
|
|
1595
|
-
function
|
|
1568
|
+
function mn(e, t, n = !0) {
|
|
1596
1569
|
var r = e.reactions;
|
|
1597
|
-
if (r !== null && !(
|
|
1570
|
+
if (r !== null && !(B !== null && Me.call(B, e)))
|
|
1598
1571
|
for (var i = 0; i < r.length; i++) {
|
|
1599
1572
|
var s = r[i];
|
|
1600
|
-
(s.f &
|
|
1573
|
+
(s.f & C) !== 0 ? mn(
|
|
1601
1574
|
/** @type {Derived} */
|
|
1602
1575
|
s,
|
|
1603
1576
|
t,
|
|
1604
1577
|
!1
|
|
1605
|
-
) : t === s && (n ?
|
|
1578
|
+
) : t === s && (n ? E(s, R) : (s.f & S) !== 0 && E(s, Q), gt(
|
|
1606
1579
|
/** @type {Effect} */
|
|
1607
1580
|
s
|
|
1608
1581
|
));
|
|
1609
1582
|
}
|
|
1610
1583
|
}
|
|
1611
|
-
function
|
|
1612
|
-
var t =
|
|
1613
|
-
|
|
1614
|
-
null,
|
|
1615
|
-
e.ac.abort(
|
|
1584
|
+
function wn(e) {
|
|
1585
|
+
var t = M, n = O, r = j, i = g, s = B, f = W, l = G, o = ye, a = e.f;
|
|
1586
|
+
M = /** @type {null | Value[]} */
|
|
1587
|
+
null, O = 0, j = null, g = (a & (Z | Ee)) === 0 ? e : null, B = null, Ie(e.ctx), G = !1, ye = ++we, e.ac !== null && (un(() => {
|
|
1588
|
+
e.ac.abort(ne);
|
|
1616
1589
|
}), e.ac = null);
|
|
1617
1590
|
try {
|
|
1618
|
-
e.f |=
|
|
1591
|
+
e.f |= ot;
|
|
1619
1592
|
var u = (
|
|
1620
1593
|
/** @type {Function} */
|
|
1621
1594
|
e.fn
|
|
1622
|
-
),
|
|
1623
|
-
e.f |=
|
|
1624
|
-
var d = e.deps,
|
|
1625
|
-
if (
|
|
1626
|
-
var
|
|
1627
|
-
if (
|
|
1628
|
-
for (d.length =
|
|
1629
|
-
d[
|
|
1595
|
+
), v = u();
|
|
1596
|
+
e.f |= Fe;
|
|
1597
|
+
var d = e.deps, h = x?.is_fork;
|
|
1598
|
+
if (M !== null) {
|
|
1599
|
+
var c;
|
|
1600
|
+
if (h || Ge(e, O), d !== null && O > 0)
|
|
1601
|
+
for (d.length = O + M.length, c = 0; c < M.length; c++)
|
|
1602
|
+
d[O + c] = M[c];
|
|
1630
1603
|
else
|
|
1631
|
-
e.deps = d =
|
|
1632
|
-
if (
|
|
1633
|
-
for (
|
|
1634
|
-
(d[
|
|
1635
|
-
} else !
|
|
1636
|
-
if (
|
|
1637
|
-
for (
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1604
|
+
e.deps = d = M;
|
|
1605
|
+
if (bt() && (e.f & z) !== 0)
|
|
1606
|
+
for (c = O; c < d.length; c++)
|
|
1607
|
+
(d[c].reactions ??= []).push(e);
|
|
1608
|
+
} else !h && d !== null && O < d.length && (Ge(e, O), d.length = O);
|
|
1609
|
+
if (Yt() && j !== null && !G && d !== null && (e.f & (C | Q | R)) === 0)
|
|
1610
|
+
for (c = 0; c < /** @type {Source[]} */
|
|
1611
|
+
j.length; c++)
|
|
1612
|
+
mn(
|
|
1613
|
+
j[c],
|
|
1641
1614
|
/** @type {Effect} */
|
|
1642
1615
|
e
|
|
1643
1616
|
);
|
|
1644
1617
|
if (i !== null && i !== e) {
|
|
1645
|
-
if (
|
|
1646
|
-
for (let
|
|
1647
|
-
i.deps[
|
|
1618
|
+
if (we++, i.deps !== null)
|
|
1619
|
+
for (let p = 0; p < n; p += 1)
|
|
1620
|
+
i.deps[p].rv = we;
|
|
1648
1621
|
if (t !== null)
|
|
1649
|
-
for (const
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1622
|
+
for (const p of t)
|
|
1623
|
+
p.rv = we;
|
|
1624
|
+
j !== null && (r === null ? r = j : r.push(.../** @type {Source[]} */
|
|
1625
|
+
j));
|
|
1653
1626
|
}
|
|
1654
|
-
return (e.f &
|
|
1655
|
-
} catch (
|
|
1656
|
-
return
|
|
1627
|
+
return (e.f & fe) !== 0 && (e.f ^= fe), v;
|
|
1628
|
+
} catch (p) {
|
|
1629
|
+
return Gt(p);
|
|
1657
1630
|
} finally {
|
|
1658
|
-
e.f ^=
|
|
1631
|
+
e.f ^= ot, M = t, O = n, j = r, g = i, B = s, Ie(f), G = l, ye = o;
|
|
1659
1632
|
}
|
|
1660
1633
|
}
|
|
1661
|
-
function
|
|
1634
|
+
function Cr(e, t) {
|
|
1662
1635
|
let n = t.reactions;
|
|
1663
1636
|
if (n !== null) {
|
|
1664
|
-
var r =
|
|
1637
|
+
var r = Nn.call(n, e);
|
|
1665
1638
|
if (r !== -1) {
|
|
1666
1639
|
var i = n.length - 1;
|
|
1667
1640
|
i === 0 ? n = t.reactions = null : (n[r] = n[i], n.pop());
|
|
1668
1641
|
}
|
|
1669
1642
|
}
|
|
1670
|
-
if (n === null && (t.f &
|
|
1643
|
+
if (n === null && (t.f & C) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
1671
1644
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
1672
1645
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
1673
|
-
(
|
|
1646
|
+
(M === null || !Me.call(M, t))) {
|
|
1674
1647
|
var s = (
|
|
1675
1648
|
/** @type {Derived} */
|
|
1676
1649
|
t
|
|
1677
1650
|
);
|
|
1678
|
-
(s.f &
|
|
1651
|
+
(s.f & z) !== 0 && (s.f ^= z, s.f &= ~Te), pt(s), cr(s), Ge(s, 0);
|
|
1679
1652
|
}
|
|
1680
1653
|
}
|
|
1681
|
-
function
|
|
1654
|
+
function Ge(e, t) {
|
|
1682
1655
|
var n = e.deps;
|
|
1683
1656
|
if (n !== null)
|
|
1684
1657
|
for (var r = t; r < n.length; r++)
|
|
1685
|
-
|
|
1658
|
+
Cr(e, n[r]);
|
|
1686
1659
|
}
|
|
1687
|
-
function
|
|
1660
|
+
function De(e) {
|
|
1688
1661
|
var t = e.f;
|
|
1689
|
-
if ((t &
|
|
1690
|
-
|
|
1691
|
-
var n =
|
|
1692
|
-
|
|
1662
|
+
if ((t & K) === 0) {
|
|
1663
|
+
E(e, S);
|
|
1664
|
+
var n = m, r = Qe;
|
|
1665
|
+
m = e, Qe = !0;
|
|
1693
1666
|
try {
|
|
1694
|
-
(t & (
|
|
1695
|
-
var i =
|
|
1696
|
-
e.teardown = typeof i == "function" ? i : null, e.wv =
|
|
1667
|
+
(t & (he | Ht)) !== 0 ? kr(e) : xt(e), cn(e);
|
|
1668
|
+
var i = wn(e);
|
|
1669
|
+
e.teardown = typeof i == "function" ? i : null, e.wv = gn;
|
|
1697
1670
|
var s;
|
|
1698
|
-
|
|
1671
|
+
Mn && Jn && (e.f & R) !== 0 && e.deps;
|
|
1699
1672
|
} finally {
|
|
1700
|
-
|
|
1673
|
+
Qe = r, m = n;
|
|
1701
1674
|
}
|
|
1702
1675
|
}
|
|
1703
1676
|
}
|
|
1704
|
-
function
|
|
1705
|
-
var t = e.f, n = (t &
|
|
1706
|
-
if (
|
|
1707
|
-
var r =
|
|
1708
|
-
if (!r && (
|
|
1709
|
-
var i =
|
|
1710
|
-
if ((
|
|
1711
|
-
e.rv <
|
|
1677
|
+
function y(e) {
|
|
1678
|
+
var t = e.f, n = (t & C) !== 0;
|
|
1679
|
+
if (g !== null && !G) {
|
|
1680
|
+
var r = m !== null && (m.f & K) !== 0;
|
|
1681
|
+
if (!r && (B === null || !Me.call(B, e))) {
|
|
1682
|
+
var i = g.deps;
|
|
1683
|
+
if ((g.f & ot) !== 0)
|
|
1684
|
+
e.rv < we && (e.rv = we, M === null && i !== null && i[O] === e ? O++ : M === null ? M = [e] : M.push(e));
|
|
1712
1685
|
else {
|
|
1713
|
-
(
|
|
1686
|
+
(g.deps ??= []).push(e);
|
|
1714
1687
|
var s = e.reactions;
|
|
1715
|
-
s === null ? e.reactions = [
|
|
1688
|
+
s === null ? e.reactions = [g] : Me.call(s, g) || s.push(g);
|
|
1716
1689
|
}
|
|
1717
1690
|
}
|
|
1718
1691
|
}
|
|
1719
|
-
if (
|
|
1720
|
-
return
|
|
1692
|
+
if (Oe && ue.has(e))
|
|
1693
|
+
return ue.get(e);
|
|
1721
1694
|
if (n) {
|
|
1722
|
-
var
|
|
1695
|
+
var f = (
|
|
1723
1696
|
/** @type {Derived} */
|
|
1724
1697
|
e
|
|
1725
1698
|
);
|
|
1726
|
-
if (
|
|
1727
|
-
var
|
|
1728
|
-
return ((
|
|
1699
|
+
if (Oe) {
|
|
1700
|
+
var l = f.v;
|
|
1701
|
+
return ((f.f & S) === 0 && f.reactions !== null || xn(f)) && (l = mt(f)), ue.set(f, l), l;
|
|
1729
1702
|
}
|
|
1730
|
-
var
|
|
1731
|
-
|
|
1703
|
+
var o = (f.f & z) === 0 && !G && g !== null && (Qe || (g.f & z) !== 0), a = (f.f & Fe) === 0;
|
|
1704
|
+
Xe(f) && (o && (f.f |= z), en(f)), o && !a && (tn(f), bn(f));
|
|
1732
1705
|
}
|
|
1733
|
-
if (
|
|
1734
|
-
return
|
|
1735
|
-
if ((e.f &
|
|
1706
|
+
if (Y?.has(e))
|
|
1707
|
+
return Y.get(e);
|
|
1708
|
+
if ((e.f & fe) !== 0)
|
|
1736
1709
|
throw e.v;
|
|
1737
1710
|
return e.v;
|
|
1738
1711
|
}
|
|
1739
|
-
function
|
|
1740
|
-
if (e.f |=
|
|
1712
|
+
function bn(e) {
|
|
1713
|
+
if (e.f |= z, e.deps !== null)
|
|
1741
1714
|
for (const t of e.deps)
|
|
1742
|
-
(t.reactions ??= []).push(e), (t.f &
|
|
1715
|
+
(t.reactions ??= []).push(e), (t.f & C) !== 0 && (t.f & z) === 0 && (tn(
|
|
1743
1716
|
/** @type {Derived} */
|
|
1744
1717
|
t
|
|
1745
|
-
),
|
|
1718
|
+
), bn(
|
|
1746
1719
|
/** @type {Derived} */
|
|
1747
1720
|
t
|
|
1748
1721
|
));
|
|
1749
1722
|
}
|
|
1750
|
-
function
|
|
1751
|
-
if (e.v ===
|
|
1723
|
+
function xn(e) {
|
|
1724
|
+
if (e.v === A) return !0;
|
|
1752
1725
|
if (e.deps === null) return !1;
|
|
1753
1726
|
for (const t of e.deps)
|
|
1754
|
-
if (
|
|
1727
|
+
if (ue.has(t) || (t.f & C) !== 0 && xn(
|
|
1755
1728
|
/** @type {Derived} */
|
|
1756
1729
|
t
|
|
1757
1730
|
))
|
|
1758
1731
|
return !0;
|
|
1759
1732
|
return !1;
|
|
1760
1733
|
}
|
|
1761
|
-
function
|
|
1762
|
-
var t =
|
|
1734
|
+
function Ar(e) {
|
|
1735
|
+
var t = G;
|
|
1763
1736
|
try {
|
|
1764
|
-
return
|
|
1737
|
+
return G = !0, e();
|
|
1765
1738
|
} finally {
|
|
1766
|
-
|
|
1739
|
+
G = t;
|
|
1767
1740
|
}
|
|
1768
1741
|
}
|
|
1769
|
-
const
|
|
1770
|
-
function
|
|
1771
|
-
(t[
|
|
1742
|
+
const Be = /* @__PURE__ */ Symbol("events"), yn = /* @__PURE__ */ new Set(), ct = /* @__PURE__ */ new Set();
|
|
1743
|
+
function Rr(e, t, n) {
|
|
1744
|
+
(t[Be] ??= {})[e] = n;
|
|
1772
1745
|
}
|
|
1773
|
-
function
|
|
1746
|
+
function Mr(e) {
|
|
1774
1747
|
for (var t = 0; t < e.length; t++)
|
|
1775
|
-
|
|
1776
|
-
for (var n of
|
|
1748
|
+
yn.add(e[t]);
|
|
1749
|
+
for (var n of ct)
|
|
1777
1750
|
n(e);
|
|
1778
1751
|
}
|
|
1779
|
-
let
|
|
1780
|
-
function
|
|
1752
|
+
let It = null;
|
|
1753
|
+
function qt(e) {
|
|
1781
1754
|
var t = this, n = (
|
|
1782
1755
|
/** @type {Node} */
|
|
1783
1756
|
t.ownerDocument
|
|
@@ -1785,188 +1758,177 @@ function Wt(e) {
|
|
|
1785
1758
|
/** @type {null | Element} */
|
|
1786
1759
|
i[0] || e.target
|
|
1787
1760
|
);
|
|
1788
|
-
|
|
1789
|
-
var
|
|
1790
|
-
if (
|
|
1791
|
-
var
|
|
1792
|
-
if (
|
|
1761
|
+
It = e;
|
|
1762
|
+
var f = 0, l = It === e && e[Be];
|
|
1763
|
+
if (l) {
|
|
1764
|
+
var o = i.indexOf(l);
|
|
1765
|
+
if (o !== -1 && (t === document || t === /** @type {any} */
|
|
1793
1766
|
window)) {
|
|
1794
|
-
e[
|
|
1767
|
+
e[Be] = t;
|
|
1795
1768
|
return;
|
|
1796
1769
|
}
|
|
1797
|
-
var
|
|
1798
|
-
if (
|
|
1770
|
+
var a = i.indexOf(t);
|
|
1771
|
+
if (a === -1)
|
|
1799
1772
|
return;
|
|
1800
|
-
|
|
1773
|
+
o <= a && (f = o);
|
|
1801
1774
|
}
|
|
1802
1775
|
if (s = /** @type {Element} */
|
|
1803
|
-
i[
|
|
1804
|
-
|
|
1776
|
+
i[f] || e.target, s !== t) {
|
|
1777
|
+
In(e, "currentTarget", {
|
|
1805
1778
|
configurable: !0,
|
|
1806
1779
|
get() {
|
|
1807
1780
|
return s || n;
|
|
1808
1781
|
}
|
|
1809
1782
|
});
|
|
1810
|
-
var u =
|
|
1811
|
-
|
|
1783
|
+
var u = g, v = m;
|
|
1784
|
+
H(null), $(null);
|
|
1812
1785
|
try {
|
|
1813
|
-
for (var d,
|
|
1814
|
-
var
|
|
1786
|
+
for (var d, h = []; s !== null; ) {
|
|
1787
|
+
var c = s.assignedSlot || s.parentNode || /** @type {any} */
|
|
1815
1788
|
s.host || null;
|
|
1816
1789
|
try {
|
|
1817
|
-
var
|
|
1818
|
-
|
|
1790
|
+
var p = s[Be]?.[r];
|
|
1791
|
+
p != null && (!/** @type {any} */
|
|
1819
1792
|
s.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
1820
1793
|
// -> the target could not have been disabled because it emits the event in the first place
|
|
1821
|
-
e.target === s) &&
|
|
1822
|
-
} catch (
|
|
1823
|
-
d ?
|
|
1794
|
+
e.target === s) && p.call(s, e);
|
|
1795
|
+
} catch (w) {
|
|
1796
|
+
d ? h.push(w) : d = w;
|
|
1824
1797
|
}
|
|
1825
|
-
if (e.cancelBubble ||
|
|
1798
|
+
if (e.cancelBubble || c === t || c === null)
|
|
1826
1799
|
break;
|
|
1827
|
-
s =
|
|
1800
|
+
s = c;
|
|
1828
1801
|
}
|
|
1829
1802
|
if (d) {
|
|
1830
|
-
for (let
|
|
1803
|
+
for (let w of h)
|
|
1831
1804
|
queueMicrotask(() => {
|
|
1832
|
-
throw
|
|
1805
|
+
throw w;
|
|
1833
1806
|
});
|
|
1834
1807
|
throw d;
|
|
1835
1808
|
}
|
|
1836
1809
|
} finally {
|
|
1837
|
-
e[
|
|
1810
|
+
e[Be] = t, delete e.currentTarget, H(u), $(v);
|
|
1838
1811
|
}
|
|
1839
1812
|
}
|
|
1840
1813
|
}
|
|
1841
|
-
const
|
|
1814
|
+
const Nr = (
|
|
1842
1815
|
// We gotta write it like this because after downleveling the pure comment may end up in the wrong location
|
|
1843
1816
|
globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
|
|
1844
1817
|
/** @param {string} html */
|
|
1845
1818
|
createHTML: (e) => e
|
|
1846
1819
|
})
|
|
1847
1820
|
);
|
|
1848
|
-
function
|
|
1821
|
+
function Ir(e) {
|
|
1849
1822
|
return (
|
|
1850
1823
|
/** @type {string} */
|
|
1851
|
-
|
|
1824
|
+
Nr?.createHTML(e) ?? e
|
|
1852
1825
|
);
|
|
1853
1826
|
}
|
|
1854
|
-
function
|
|
1855
|
-
var t =
|
|
1856
|
-
return t.innerHTML =
|
|
1827
|
+
function qr(e) {
|
|
1828
|
+
var t = fn("template");
|
|
1829
|
+
return t.innerHTML = Ir(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1857
1830
|
}
|
|
1858
|
-
function
|
|
1831
|
+
function En(e, t) {
|
|
1859
1832
|
var n = (
|
|
1860
1833
|
/** @type {Effect} */
|
|
1861
|
-
|
|
1834
|
+
m
|
|
1862
1835
|
);
|
|
1863
1836
|
n.nodes === null && (n.nodes = { start: e, end: t, a: null, t: null });
|
|
1864
1837
|
}
|
|
1865
1838
|
// @__NO_SIDE_EFFECTS__
|
|
1866
|
-
function
|
|
1867
|
-
var n = (t &
|
|
1839
|
+
function F(e, t) {
|
|
1840
|
+
var n = (t & 2) !== 0, r, i = !e.startsWith("<!>");
|
|
1868
1841
|
return () => {
|
|
1869
|
-
|
|
1870
|
-
/* @__PURE__ */
|
|
1871
|
-
var
|
|
1842
|
+
r === void 0 && (r = qr(i ? e : "<!>" + e), r = /** @type {TemplateNode} */
|
|
1843
|
+
/* @__PURE__ */ wt(r));
|
|
1844
|
+
var s = (
|
|
1872
1845
|
/** @type {TemplateNode} */
|
|
1873
|
-
|
|
1846
|
+
n || sn ? document.importNode(r, !0) : r.cloneNode(!0)
|
|
1874
1847
|
);
|
|
1875
|
-
|
|
1876
|
-
var a = (
|
|
1877
|
-
/** @type {TemplateNode} */
|
|
1878
|
-
/* @__PURE__ */ lt(o)
|
|
1879
|
-
), l = (
|
|
1880
|
-
/** @type {TemplateNode} */
|
|
1881
|
-
o.lastChild
|
|
1882
|
-
);
|
|
1883
|
-
kt(a, l);
|
|
1884
|
-
} else
|
|
1885
|
-
kt(o, o);
|
|
1886
|
-
return o;
|
|
1848
|
+
return En(s, s), s;
|
|
1887
1849
|
};
|
|
1888
1850
|
}
|
|
1889
|
-
function
|
|
1890
|
-
var e = document.createDocumentFragment(), t = document.createComment(""), n =
|
|
1891
|
-
return e.append(t, n),
|
|
1851
|
+
function Or() {
|
|
1852
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), n = ce();
|
|
1853
|
+
return e.append(t, n), En(t, n), e;
|
|
1892
1854
|
}
|
|
1893
|
-
function
|
|
1855
|
+
function N(e, t) {
|
|
1894
1856
|
e !== null && e.before(
|
|
1895
1857
|
/** @type {Node} */
|
|
1896
1858
|
t
|
|
1897
1859
|
);
|
|
1898
1860
|
}
|
|
1899
|
-
const
|
|
1900
|
-
function
|
|
1901
|
-
return
|
|
1861
|
+
const Dr = ["touchstart", "touchmove"];
|
|
1862
|
+
function Fr(e) {
|
|
1863
|
+
return Dr.includes(e);
|
|
1902
1864
|
}
|
|
1903
|
-
function
|
|
1865
|
+
function de(e, t) {
|
|
1904
1866
|
var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1905
1867
|
n !== (e.__t ??= e.nodeValue) && (e.__t = n, e.nodeValue = `${n}`);
|
|
1906
1868
|
}
|
|
1907
|
-
function
|
|
1908
|
-
return
|
|
1869
|
+
function jr(e, t) {
|
|
1870
|
+
return Pr(e, t);
|
|
1909
1871
|
}
|
|
1910
|
-
const
|
|
1911
|
-
function
|
|
1912
|
-
|
|
1913
|
-
var
|
|
1914
|
-
var u = n ?? t.appendChild(
|
|
1915
|
-
|
|
1872
|
+
const Je = /* @__PURE__ */ new Map();
|
|
1873
|
+
function Pr(e, { target: t, anchor: n, props: r = {}, events: i, context: s, intro: f = !0, transformError: l }) {
|
|
1874
|
+
hr();
|
|
1875
|
+
var o = void 0, a = br(() => {
|
|
1876
|
+
var u = n ?? t.appendChild(ce());
|
|
1877
|
+
rr(
|
|
1916
1878
|
/** @type {TemplateNode} */
|
|
1917
1879
|
u,
|
|
1918
1880
|
{
|
|
1919
1881
|
pending: () => {
|
|
1920
1882
|
}
|
|
1921
1883
|
},
|
|
1922
|
-
(
|
|
1923
|
-
|
|
1924
|
-
var
|
|
1884
|
+
(h) => {
|
|
1885
|
+
pe({});
|
|
1886
|
+
var c = (
|
|
1925
1887
|
/** @type {ComponentContext} */
|
|
1926
|
-
|
|
1888
|
+
W
|
|
1927
1889
|
);
|
|
1928
|
-
s && (
|
|
1890
|
+
s && (c.c = s), i && (r.$$events = i), o = e(h, r) || {}, ge();
|
|
1929
1891
|
},
|
|
1930
|
-
|
|
1892
|
+
l
|
|
1931
1893
|
);
|
|
1932
|
-
var
|
|
1933
|
-
for (var
|
|
1934
|
-
var
|
|
1935
|
-
if (!
|
|
1936
|
-
|
|
1937
|
-
var
|
|
1938
|
-
for (const
|
|
1939
|
-
var
|
|
1940
|
-
|
|
1941
|
-
var
|
|
1942
|
-
|
|
1894
|
+
var v = /* @__PURE__ */ new Set(), d = (h) => {
|
|
1895
|
+
for (var c = 0; c < h.length; c++) {
|
|
1896
|
+
var p = h[c];
|
|
1897
|
+
if (!v.has(p)) {
|
|
1898
|
+
v.add(p);
|
|
1899
|
+
var w = Fr(p);
|
|
1900
|
+
for (const q of [t, document]) {
|
|
1901
|
+
var b = Je.get(q);
|
|
1902
|
+
b === void 0 && (b = /* @__PURE__ */ new Map(), Je.set(q, b));
|
|
1903
|
+
var _ = b.get(p);
|
|
1904
|
+
_ === void 0 ? (q.addEventListener(p, qt, { passive: w }), b.set(p, 1)) : b.set(p, _ + 1);
|
|
1943
1905
|
}
|
|
1944
1906
|
}
|
|
1945
1907
|
}
|
|
1946
1908
|
};
|
|
1947
|
-
return d(
|
|
1948
|
-
for (var
|
|
1949
|
-
for (const
|
|
1950
|
-
var
|
|
1909
|
+
return d(et(yn)), ct.add(d), () => {
|
|
1910
|
+
for (var h of v)
|
|
1911
|
+
for (const w of [t, document]) {
|
|
1912
|
+
var c = (
|
|
1951
1913
|
/** @type {Map<string, number>} */
|
|
1952
|
-
|
|
1953
|
-
),
|
|
1914
|
+
Je.get(w)
|
|
1915
|
+
), p = (
|
|
1954
1916
|
/** @type {number} */
|
|
1955
|
-
|
|
1917
|
+
c.get(h)
|
|
1956
1918
|
);
|
|
1957
|
-
--
|
|
1919
|
+
--p == 0 ? (w.removeEventListener(h, qt), c.delete(h), c.size === 0 && Je.delete(w)) : c.set(h, p);
|
|
1958
1920
|
}
|
|
1959
|
-
|
|
1921
|
+
ct.delete(d), u !== n && u.parentNode?.removeChild(u);
|
|
1960
1922
|
};
|
|
1961
1923
|
});
|
|
1962
|
-
return
|
|
1924
|
+
return dt.set(o, a), o;
|
|
1963
1925
|
}
|
|
1964
|
-
let
|
|
1965
|
-
function
|
|
1966
|
-
const n =
|
|
1967
|
-
return n ? (
|
|
1926
|
+
let dt = /* @__PURE__ */ new WeakMap();
|
|
1927
|
+
function zr(e, t) {
|
|
1928
|
+
const n = dt.get(e);
|
|
1929
|
+
return n ? (dt.delete(e), n(t)) : Promise.resolve();
|
|
1968
1930
|
}
|
|
1969
|
-
class
|
|
1931
|
+
class kn {
|
|
1970
1932
|
/** @type {TemplateNode} */
|
|
1971
1933
|
anchor;
|
|
1972
1934
|
/** @type {Map<Batch, Key>} */
|
|
@@ -2019,28 +1981,28 @@ class Bn {
|
|
|
2019
1981
|
this.#t.get(t)
|
|
2020
1982
|
), r = this.#o.get(n);
|
|
2021
1983
|
if (r)
|
|
2022
|
-
|
|
1984
|
+
yt(r), this.#r.delete(n);
|
|
2023
1985
|
else {
|
|
2024
1986
|
var i = this.#e.get(n);
|
|
2025
1987
|
i && (this.#o.set(n, i.effect), this.#e.delete(n), i.fragment.lastChild.remove(), this.anchor.before(i.fragment), r = i.effect);
|
|
2026
1988
|
}
|
|
2027
|
-
for (const [s,
|
|
1989
|
+
for (const [s, f] of this.#t) {
|
|
2028
1990
|
if (this.#t.delete(s), s === t)
|
|
2029
1991
|
break;
|
|
2030
|
-
const
|
|
2031
|
-
|
|
1992
|
+
const l = this.#e.get(f);
|
|
1993
|
+
l && (I(l.effect), this.#e.delete(f));
|
|
2032
1994
|
}
|
|
2033
|
-
for (const [s,
|
|
1995
|
+
for (const [s, f] of this.#o) {
|
|
2034
1996
|
if (s === n || this.#r.has(s)) continue;
|
|
2035
|
-
const
|
|
1997
|
+
const l = () => {
|
|
2036
1998
|
if (Array.from(this.#t.values()).includes(s)) {
|
|
2037
|
-
var
|
|
2038
|
-
|
|
1999
|
+
var a = document.createDocumentFragment();
|
|
2000
|
+
Et(f, a), a.append(ce()), this.#e.set(s, { effect: f, fragment: a });
|
|
2039
2001
|
} else
|
|
2040
|
-
|
|
2002
|
+
I(f);
|
|
2041
2003
|
this.#r.delete(s), this.#o.delete(s);
|
|
2042
2004
|
};
|
|
2043
|
-
this.#i || !r ? (this.#r.add(s),
|
|
2005
|
+
this.#i || !r ? (this.#r.add(s), xe(f, l, !1)) : l();
|
|
2044
2006
|
}
|
|
2045
2007
|
}
|
|
2046
2008
|
};
|
|
@@ -2051,7 +2013,7 @@ class Bn {
|
|
|
2051
2013
|
this.#t.delete(t);
|
|
2052
2014
|
const n = Array.from(this.#t.values());
|
|
2053
2015
|
for (const [r, i] of this.#e)
|
|
2054
|
-
n.includes(r) || (
|
|
2016
|
+
n.includes(r) || (I(i.effect), this.#e.delete(r));
|
|
2055
2017
|
};
|
|
2056
2018
|
/**
|
|
2057
2019
|
*
|
|
@@ -2061,270 +2023,255 @@ class Bn {
|
|
|
2061
2023
|
ensure(t, n) {
|
|
2062
2024
|
var r = (
|
|
2063
2025
|
/** @type {Batch} */
|
|
2064
|
-
|
|
2065
|
-
), i =
|
|
2026
|
+
x
|
|
2027
|
+
), i = on();
|
|
2066
2028
|
if (n && !this.#o.has(t) && !this.#e.has(t))
|
|
2067
2029
|
if (i) {
|
|
2068
|
-
var s = document.createDocumentFragment(),
|
|
2069
|
-
s.append(
|
|
2070
|
-
effect:
|
|
2030
|
+
var s = document.createDocumentFragment(), f = ce();
|
|
2031
|
+
s.append(f), this.#e.set(t, {
|
|
2032
|
+
effect: P(() => n(f)),
|
|
2071
2033
|
fragment: s
|
|
2072
2034
|
});
|
|
2073
2035
|
} else
|
|
2074
2036
|
this.#o.set(
|
|
2075
2037
|
t,
|
|
2076
|
-
|
|
2038
|
+
P(() => n(this.anchor))
|
|
2077
2039
|
);
|
|
2078
2040
|
if (this.#t.set(r, t), i) {
|
|
2079
|
-
for (const [
|
|
2080
|
-
|
|
2081
|
-
for (const [
|
|
2082
|
-
|
|
2041
|
+
for (const [l, o] of this.#o)
|
|
2042
|
+
l === t ? r.unskip_effect(o) : r.skip_effect(o);
|
|
2043
|
+
for (const [l, o] of this.#e)
|
|
2044
|
+
l === t ? r.unskip_effect(o.effect) : r.skip_effect(o.effect);
|
|
2083
2045
|
r.oncommit(this.#n), r.ondiscard(this.#s);
|
|
2084
2046
|
} else
|
|
2085
2047
|
this.#n(r);
|
|
2086
2048
|
}
|
|
2087
2049
|
}
|
|
2088
|
-
function
|
|
2089
|
-
var r = new
|
|
2090
|
-
function s(
|
|
2091
|
-
r.ensure(
|
|
2050
|
+
function Ye(e, t, n = !1) {
|
|
2051
|
+
var r = new kn(e), i = n ? ke : 0;
|
|
2052
|
+
function s(f, l) {
|
|
2053
|
+
r.ensure(f, l);
|
|
2092
2054
|
}
|
|
2093
|
-
|
|
2094
|
-
var
|
|
2095
|
-
t((
|
|
2096
|
-
|
|
2097
|
-
}),
|
|
2055
|
+
nt(() => {
|
|
2056
|
+
var f = !1;
|
|
2057
|
+
t((l, o = 0) => {
|
|
2058
|
+
f = !0, s(o, l);
|
|
2059
|
+
}), f || s(-1, null);
|
|
2098
2060
|
}, i);
|
|
2099
2061
|
}
|
|
2100
|
-
function
|
|
2062
|
+
function Lr(e, t) {
|
|
2101
2063
|
return t;
|
|
2102
2064
|
}
|
|
2103
|
-
function
|
|
2104
|
-
for (var r = [], i = t.length, s,
|
|
2105
|
-
let
|
|
2106
|
-
|
|
2107
|
-
|
|
2065
|
+
function Br(e, t, n) {
|
|
2066
|
+
for (var r = [], i = t.length, s, f = t.length, l = 0; l < i; l++) {
|
|
2067
|
+
let v = t[l];
|
|
2068
|
+
xe(
|
|
2069
|
+
v,
|
|
2108
2070
|
() => {
|
|
2109
2071
|
if (s) {
|
|
2110
|
-
if (s.pending.delete(
|
|
2072
|
+
if (s.pending.delete(v), s.done.add(v), s.pending.size === 0) {
|
|
2111
2073
|
var d = (
|
|
2112
2074
|
/** @type {Set<EachOutroGroup>} */
|
|
2113
2075
|
e.outrogroups
|
|
2114
2076
|
);
|
|
2115
|
-
|
|
2077
|
+
vt(e, et(s.done)), d.delete(s), d.size === 0 && (e.outrogroups = null);
|
|
2116
2078
|
}
|
|
2117
2079
|
} else
|
|
2118
|
-
|
|
2080
|
+
f -= 1;
|
|
2119
2081
|
},
|
|
2120
2082
|
!1
|
|
2121
2083
|
);
|
|
2122
2084
|
}
|
|
2123
|
-
if (
|
|
2124
|
-
var
|
|
2125
|
-
if (
|
|
2126
|
-
var
|
|
2085
|
+
if (f === 0) {
|
|
2086
|
+
var o = r.length === 0 && n !== null;
|
|
2087
|
+
if (o) {
|
|
2088
|
+
var a = (
|
|
2127
2089
|
/** @type {Element} */
|
|
2128
2090
|
n
|
|
2129
2091
|
), u = (
|
|
2130
2092
|
/** @type {Element} */
|
|
2131
|
-
|
|
2093
|
+
a.parentNode
|
|
2132
2094
|
);
|
|
2133
|
-
|
|
2095
|
+
gr(u), u.append(a), e.items.clear();
|
|
2134
2096
|
}
|
|
2135
|
-
|
|
2097
|
+
vt(e, t, !o);
|
|
2136
2098
|
} else
|
|
2137
2099
|
s = {
|
|
2138
2100
|
pending: new Set(t),
|
|
2139
2101
|
done: /* @__PURE__ */ new Set()
|
|
2140
2102
|
}, (e.outrogroups ??= /* @__PURE__ */ new Set()).add(s);
|
|
2141
2103
|
}
|
|
2142
|
-
function
|
|
2104
|
+
function vt(e, t, n = !0) {
|
|
2143
2105
|
var r;
|
|
2144
2106
|
if (e.pending.size > 0) {
|
|
2145
2107
|
r = /* @__PURE__ */ new Set();
|
|
2146
|
-
for (const
|
|
2147
|
-
for (const
|
|
2108
|
+
for (const f of e.pending.values())
|
|
2109
|
+
for (const l of f)
|
|
2148
2110
|
r.add(
|
|
2149
2111
|
/** @type {EachItem} */
|
|
2150
|
-
e.items.get(
|
|
2112
|
+
e.items.get(l).e
|
|
2151
2113
|
);
|
|
2152
2114
|
}
|
|
2153
2115
|
for (var i = 0; i < t.length; i++) {
|
|
2154
2116
|
var s = t[i];
|
|
2155
2117
|
if (r?.has(s)) {
|
|
2156
|
-
s.f |=
|
|
2157
|
-
const
|
|
2158
|
-
|
|
2118
|
+
s.f |= re;
|
|
2119
|
+
const f = document.createDocumentFragment();
|
|
2120
|
+
Et(s, f);
|
|
2159
2121
|
} else
|
|
2160
|
-
|
|
2122
|
+
I(t[i], n);
|
|
2161
2123
|
}
|
|
2162
2124
|
}
|
|
2163
|
-
var
|
|
2164
|
-
function
|
|
2165
|
-
var
|
|
2166
|
-
|
|
2167
|
-
var
|
|
2125
|
+
var Ot;
|
|
2126
|
+
function Tn(e, t, n, r, i, s = null) {
|
|
2127
|
+
var f = e, l = /* @__PURE__ */ new Map();
|
|
2128
|
+
{
|
|
2129
|
+
var o = (
|
|
2168
2130
|
/** @type {Element} */
|
|
2169
2131
|
e
|
|
2170
2132
|
);
|
|
2171
|
-
|
|
2172
|
-
}
|
|
2173
|
-
var
|
|
2174
|
-
var
|
|
2175
|
-
return
|
|
2176
|
-
}),
|
|
2177
|
-
function
|
|
2178
|
-
(
|
|
2179
|
-
|
|
2133
|
+
f = o.appendChild(ce());
|
|
2134
|
+
}
|
|
2135
|
+
var a = null, u = /* @__PURE__ */ or(() => {
|
|
2136
|
+
var _ = n();
|
|
2137
|
+
return zt(_) ? _ : _ == null ? [] : et(_);
|
|
2138
|
+
}), v, d = /* @__PURE__ */ new Map(), h = !0;
|
|
2139
|
+
function c(_) {
|
|
2140
|
+
(b.effect.f & K) === 0 && (b.pending.delete(_), b.fallback = a, Hr(b, v, f, t, r), a !== null && (v.length === 0 ? (a.f & re) === 0 ? yt(a) : (a.f ^= re, He(a, null, f)) : xe(a, () => {
|
|
2141
|
+
a = null;
|
|
2180
2142
|
})));
|
|
2181
2143
|
}
|
|
2182
|
-
function
|
|
2183
|
-
|
|
2144
|
+
function p(_) {
|
|
2145
|
+
b.pending.delete(_);
|
|
2184
2146
|
}
|
|
2185
|
-
var
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
for (var
|
|
2147
|
+
var w = nt(() => {
|
|
2148
|
+
v = /** @type {V[]} */
|
|
2149
|
+
y(u);
|
|
2150
|
+
for (var _ = v.length, q = /* @__PURE__ */ new Set(), X = (
|
|
2189
2151
|
/** @type {Batch} */
|
|
2190
|
-
|
|
2191
|
-
),
|
|
2192
|
-
var
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2152
|
+
x
|
|
2153
|
+
), _e = on(), se = 0; se < _; se += 1) {
|
|
2154
|
+
var ze = v[se], U = r(ze, se), ee = h ? null : l.get(U);
|
|
2155
|
+
ee ? (ee.v && qe(ee.v, ze), ee.i && qe(ee.i, se), _e && X.unskip_effect(ee.e)) : (ee = Ur(
|
|
2156
|
+
l,
|
|
2157
|
+
h ? f : Ot ??= ce(),
|
|
2158
|
+
ze,
|
|
2159
|
+
U,
|
|
2160
|
+
se,
|
|
2199
2161
|
i,
|
|
2200
2162
|
t,
|
|
2201
2163
|
n
|
|
2202
|
-
),
|
|
2164
|
+
), h || (ee.e.f |= re), l.set(U, ee)), q.add(U);
|
|
2203
2165
|
}
|
|
2204
|
-
if (
|
|
2205
|
-
if (
|
|
2206
|
-
for (const [
|
|
2207
|
-
|
|
2208
|
-
|
|
2166
|
+
if (_ === 0 && s && !a && (h ? a = P(() => s(f)) : (a = P(() => s(Ot ??= ce())), a.f |= re)), _ > q.size && Hn(), !h)
|
|
2167
|
+
if (d.set(X, q), _e) {
|
|
2168
|
+
for (const [An, Rn] of l)
|
|
2169
|
+
q.has(An) || X.skip_effect(Rn.e);
|
|
2170
|
+
X.oncommit(c), X.ondiscard(p);
|
|
2209
2171
|
} else
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
}),
|
|
2213
|
-
|
|
2172
|
+
c(X);
|
|
2173
|
+
y(u);
|
|
2174
|
+
}), b = { effect: w, items: l, pending: d, outrogroups: null, fallback: a };
|
|
2175
|
+
h = !1;
|
|
2214
2176
|
}
|
|
2215
|
-
function
|
|
2216
|
-
for (; e !== null && (e.f &
|
|
2177
|
+
function Le(e) {
|
|
2178
|
+
for (; e !== null && (e.f & Z) === 0; )
|
|
2217
2179
|
e = e.next;
|
|
2218
2180
|
return e;
|
|
2219
2181
|
}
|
|
2220
|
-
function
|
|
2221
|
-
var s =
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
if (
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
z.pending.delete(c), z.done.delete(c);
|
|
2231
|
-
if ((c.f & G) !== 0 && (Ft(c), s && (c.nodes?.a?.unfix(), (h ??= /* @__PURE__ */ new Set()).delete(c))), (c.f & ae) !== 0)
|
|
2232
|
-
if (c.f ^= ae, c === l)
|
|
2233
|
-
We(c, null, n);
|
|
2182
|
+
function Hr(e, t, n, r, i) {
|
|
2183
|
+
var s = t.length, f = e.items, l = Le(e.effect.first), o, a = null, u = [], v = [], d, h, c, p;
|
|
2184
|
+
for (p = 0; p < s; p += 1) {
|
|
2185
|
+
if (d = t[p], h = i(d, p), c = /** @type {EachItem} */
|
|
2186
|
+
f.get(h).e, e.outrogroups !== null)
|
|
2187
|
+
for (const U of e.outrogroups)
|
|
2188
|
+
U.pending.delete(c), U.done.delete(c);
|
|
2189
|
+
if ((c.f & D) !== 0 && yt(c), (c.f & re) !== 0)
|
|
2190
|
+
if (c.f ^= re, c === l)
|
|
2191
|
+
He(c, null, n);
|
|
2234
2192
|
else {
|
|
2235
|
-
var
|
|
2236
|
-
c === e.effect.last && (e.effect.last = c.prev), c.prev && (c.prev.next = c.next), c.next && (c.next.prev = c.prev),
|
|
2193
|
+
var w = a ? a.next : l;
|
|
2194
|
+
c === e.effect.last && (e.effect.last = c.prev), c.prev && (c.prev.next = c.next), c.next && (c.next.prev = c.prev), ae(e, a, c), ae(e, c, w), He(c, w, n), a = c, u = [], v = [], l = Le(a.next);
|
|
2237
2195
|
continue;
|
|
2238
2196
|
}
|
|
2239
2197
|
if (c !== l) {
|
|
2240
|
-
if (
|
|
2241
|
-
if (
|
|
2242
|
-
var
|
|
2243
|
-
|
|
2244
|
-
var
|
|
2245
|
-
for (
|
|
2246
|
-
|
|
2247
|
-
for (
|
|
2248
|
-
|
|
2249
|
-
|
|
2198
|
+
if (o !== void 0 && o.has(c)) {
|
|
2199
|
+
if (u.length < v.length) {
|
|
2200
|
+
var b = v[0], _;
|
|
2201
|
+
a = b.prev;
|
|
2202
|
+
var q = u[0], X = u[u.length - 1];
|
|
2203
|
+
for (_ = 0; _ < u.length; _ += 1)
|
|
2204
|
+
He(u[_], b, n);
|
|
2205
|
+
for (_ = 0; _ < v.length; _ += 1)
|
|
2206
|
+
o.delete(v[_]);
|
|
2207
|
+
ae(e, q.prev, X.next), ae(e, a, q), ae(e, X, b), l = b, a = X, p -= 1, u = [], v = [];
|
|
2250
2208
|
} else
|
|
2251
|
-
|
|
2209
|
+
o.delete(c), He(c, l, n), ae(e, c.prev, c.next), ae(e, c, a === null ? e.effect.first : a.next), ae(e, a, c), a = c;
|
|
2252
2210
|
continue;
|
|
2253
2211
|
}
|
|
2254
|
-
for (
|
|
2255
|
-
(
|
|
2212
|
+
for (u = [], v = []; l !== null && l !== c; )
|
|
2213
|
+
(o ??= /* @__PURE__ */ new Set()).add(l), v.push(l), l = Le(l.next);
|
|
2256
2214
|
if (l === null)
|
|
2257
2215
|
continue;
|
|
2258
2216
|
}
|
|
2259
|
-
(c.f &
|
|
2217
|
+
(c.f & re) === 0 && u.push(c), a = c, l = Le(c.next);
|
|
2260
2218
|
}
|
|
2261
2219
|
if (e.outrogroups !== null) {
|
|
2262
|
-
for (const
|
|
2263
|
-
|
|
2220
|
+
for (const U of e.outrogroups)
|
|
2221
|
+
U.pending.size === 0 && (vt(e, et(U.done)), e.outrogroups?.delete(U));
|
|
2264
2222
|
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
2265
2223
|
}
|
|
2266
|
-
if (l !== null ||
|
|
2267
|
-
var
|
|
2268
|
-
if (
|
|
2269
|
-
for (c of
|
|
2270
|
-
(c.f &
|
|
2224
|
+
if (l !== null || o !== void 0) {
|
|
2225
|
+
var _e = [];
|
|
2226
|
+
if (o !== void 0)
|
|
2227
|
+
for (c of o)
|
|
2228
|
+
(c.f & D) === 0 && _e.push(c);
|
|
2271
2229
|
for (; l !== null; )
|
|
2272
|
-
(l.f &
|
|
2273
|
-
var
|
|
2274
|
-
if (
|
|
2275
|
-
var
|
|
2276
|
-
|
|
2277
|
-
for (v = 0; v < $; v += 1)
|
|
2278
|
-
D[v].nodes?.a?.measure();
|
|
2279
|
-
for (v = 0; v < $; v += 1)
|
|
2280
|
-
D[v].nodes?.a?.fix();
|
|
2281
|
-
}
|
|
2282
|
-
fi(e, D, le);
|
|
2230
|
+
(l.f & D) === 0 && l !== e.fallback && _e.push(l), l = Le(l.next);
|
|
2231
|
+
var se = _e.length;
|
|
2232
|
+
if (se > 0) {
|
|
2233
|
+
var ze = s === 0 ? n : null;
|
|
2234
|
+
Br(e, _e, ze);
|
|
2283
2235
|
}
|
|
2284
2236
|
}
|
|
2285
|
-
s && Ce(() => {
|
|
2286
|
-
if (h !== void 0)
|
|
2287
|
-
for (c of h)
|
|
2288
|
-
c.nodes?.a?.apply();
|
|
2289
|
-
});
|
|
2290
2237
|
}
|
|
2291
|
-
function
|
|
2292
|
-
var
|
|
2238
|
+
function Ur(e, t, n, r, i, s, f, l) {
|
|
2239
|
+
var o = (f & 1) !== 0 ? (f & 16) === 0 ? /* @__PURE__ */ dr(n, !1, !1) : Se(n) : null, a = (f & 2) !== 0 ? Se(i) : null;
|
|
2293
2240
|
return {
|
|
2294
|
-
v:
|
|
2295
|
-
i:
|
|
2296
|
-
e:
|
|
2241
|
+
v: o,
|
|
2242
|
+
i: a,
|
|
2243
|
+
e: P(() => (s(t, o ?? n, a ?? i, l), () => {
|
|
2297
2244
|
e.delete(r);
|
|
2298
2245
|
}))
|
|
2299
2246
|
};
|
|
2300
2247
|
}
|
|
2301
|
-
function
|
|
2248
|
+
function He(e, t, n) {
|
|
2302
2249
|
if (e.nodes)
|
|
2303
|
-
for (var r = e.nodes.start, i = e.nodes.end, s = t && (t.f &
|
|
2250
|
+
for (var r = e.nodes.start, i = e.nodes.end, s = t && (t.f & re) === 0 ? (
|
|
2304
2251
|
/** @type {EffectNodes} */
|
|
2305
2252
|
t.nodes.start
|
|
2306
2253
|
) : n; r !== null; ) {
|
|
2307
|
-
var
|
|
2254
|
+
var f = (
|
|
2308
2255
|
/** @type {TemplateNode} */
|
|
2309
|
-
/* @__PURE__ */
|
|
2256
|
+
/* @__PURE__ */ We(r)
|
|
2310
2257
|
);
|
|
2311
2258
|
if (s.before(r), r === i)
|
|
2312
2259
|
return;
|
|
2313
|
-
r =
|
|
2260
|
+
r = f;
|
|
2314
2261
|
}
|
|
2315
2262
|
}
|
|
2316
|
-
function
|
|
2263
|
+
function ae(e, t, n) {
|
|
2317
2264
|
t === null ? e.effect.first = n : t.next = n, n === null ? e.effect.last = t : n.prev = t;
|
|
2318
2265
|
}
|
|
2319
|
-
function
|
|
2320
|
-
var r = new
|
|
2321
|
-
|
|
2266
|
+
function Vr(e, t, n) {
|
|
2267
|
+
var r = new kn(e);
|
|
2268
|
+
nt(() => {
|
|
2322
2269
|
var i = t() ?? null;
|
|
2323
2270
|
r.ensure(i, i && ((s) => n(s, i)));
|
|
2324
|
-
},
|
|
2271
|
+
}, ke);
|
|
2325
2272
|
}
|
|
2326
|
-
function
|
|
2327
|
-
|
|
2273
|
+
function Pe(e, t) {
|
|
2274
|
+
xr(() => {
|
|
2328
2275
|
var n = e.getRootNode(), r = (
|
|
2329
2276
|
/** @type {ShadowRoot} */
|
|
2330
2277
|
n.host ? (
|
|
@@ -2337,499 +2284,370 @@ function ge(e, t) {
|
|
|
2337
2284
|
)
|
|
2338
2285
|
);
|
|
2339
2286
|
if (!r.querySelector("#" + t.hash)) {
|
|
2340
|
-
const i =
|
|
2287
|
+
const i = fn("style");
|
|
2341
2288
|
i.id = t.hash, i.textContent = t.code, r.appendChild(i);
|
|
2342
2289
|
}
|
|
2343
2290
|
});
|
|
2344
2291
|
}
|
|
2345
|
-
function
|
|
2292
|
+
function Sn(e) {
|
|
2346
2293
|
var t, n, r = "";
|
|
2347
2294
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
2348
2295
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
2349
2296
|
var i = e.length;
|
|
2350
|
-
for (t = 0; t < i; t++) e[t] && (n =
|
|
2297
|
+
for (t = 0; t < i; t++) e[t] && (n = Sn(e[t])) && (r && (r += " "), r += n);
|
|
2351
2298
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
2352
2299
|
return r;
|
|
2353
2300
|
}
|
|
2354
|
-
function
|
|
2355
|
-
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t =
|
|
2301
|
+
function Yr() {
|
|
2302
|
+
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Sn(e)) && (r && (r += " "), r += t);
|
|
2356
2303
|
return r;
|
|
2357
2304
|
}
|
|
2358
|
-
function
|
|
2359
|
-
return typeof e == "object" ?
|
|
2305
|
+
function Gr(e) {
|
|
2306
|
+
return typeof e == "object" ? Yr(e) : e ?? "";
|
|
2360
2307
|
}
|
|
2361
|
-
const
|
|
2308
|
+
const Dt = [...`
|
|
2362
2309
|
\r\f \v\uFEFF`];
|
|
2363
|
-
function
|
|
2310
|
+
function Kr(e, t, n) {
|
|
2364
2311
|
var r = e == null ? "" : "" + e;
|
|
2365
2312
|
if (t && (r = r ? r + " " + t : t), n) {
|
|
2366
2313
|
for (var i of Object.keys(n))
|
|
2367
2314
|
if (n[i])
|
|
2368
2315
|
r = r ? r + " " + i : i;
|
|
2369
2316
|
else if (r.length)
|
|
2370
|
-
for (var s = i.length,
|
|
2371
|
-
var
|
|
2372
|
-
(
|
|
2317
|
+
for (var s = i.length, f = 0; (f = r.indexOf(i, f)) >= 0; ) {
|
|
2318
|
+
var l = f + s;
|
|
2319
|
+
(f === 0 || Dt.includes(r[f - 1])) && (l === r.length || Dt.includes(r[l])) ? r = (f === 0 ? "" : r.substring(0, f)) + r.substring(l + 1) : f = l;
|
|
2373
2320
|
}
|
|
2374
2321
|
}
|
|
2375
2322
|
return r === "" ? null : r;
|
|
2376
2323
|
}
|
|
2377
|
-
function
|
|
2324
|
+
function Wr(e, t) {
|
|
2378
2325
|
return e == null ? null : String(e);
|
|
2379
2326
|
}
|
|
2380
|
-
function
|
|
2381
|
-
var
|
|
2382
|
-
if (
|
|
2383
|
-
var
|
|
2384
|
-
|
|
2327
|
+
function Cn(e, t, n, r, i, s) {
|
|
2328
|
+
var f = e.__className;
|
|
2329
|
+
if (f !== n || f === void 0) {
|
|
2330
|
+
var l = Kr(n, r, s);
|
|
2331
|
+
l == null ? e.removeAttribute("class") : e.className = l, e.__className = n;
|
|
2385
2332
|
} else if (s && i !== s)
|
|
2386
|
-
for (var
|
|
2387
|
-
var
|
|
2388
|
-
(i == null ||
|
|
2333
|
+
for (var o in s) {
|
|
2334
|
+
var a = !!s[o];
|
|
2335
|
+
(i == null || a !== !!i[o]) && e.classList.toggle(o, a);
|
|
2389
2336
|
}
|
|
2390
2337
|
return s;
|
|
2391
2338
|
}
|
|
2392
|
-
function
|
|
2339
|
+
function T(e, t, n, r) {
|
|
2393
2340
|
var i = e.__style;
|
|
2394
2341
|
if (i !== t) {
|
|
2395
|
-
var s =
|
|
2342
|
+
var s = Wr(t);
|
|
2396
2343
|
s == null ? e.removeAttribute("style") : e.style.cssText = s, e.__style = t;
|
|
2397
2344
|
}
|
|
2398
2345
|
return r;
|
|
2399
2346
|
}
|
|
2400
|
-
const
|
|
2401
|
-
function
|
|
2402
|
-
var i =
|
|
2403
|
-
i[t] !== (i[t] = n) && (t === "loading" && (e[
|
|
2347
|
+
const Xr = /* @__PURE__ */ Symbol("is custom element"), Jr = /* @__PURE__ */ Symbol("is html");
|
|
2348
|
+
function Ke(e, t, n, r) {
|
|
2349
|
+
var i = Zr(e);
|
|
2350
|
+
i[t] !== (i[t] = n) && (t === "loading" && (e[Ln] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && Qr(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
|
|
2404
2351
|
}
|
|
2405
|
-
function
|
|
2352
|
+
function Zr(e) {
|
|
2406
2353
|
return (
|
|
2407
2354
|
/** @type {Record<string | symbol, unknown>} **/
|
|
2408
2355
|
// @ts-expect-error
|
|
2409
2356
|
e.__attributes ??= {
|
|
2410
|
-
[
|
|
2411
|
-
[
|
|
2357
|
+
[Xr]: e.nodeName.includes("-"),
|
|
2358
|
+
[Jr]: e.namespaceURI === Pt
|
|
2412
2359
|
}
|
|
2413
2360
|
);
|
|
2414
2361
|
}
|
|
2415
|
-
var
|
|
2416
|
-
function
|
|
2417
|
-
var t = e.getAttribute("is") || e.nodeName, n =
|
|
2362
|
+
var Ft = /* @__PURE__ */ new Map();
|
|
2363
|
+
function Qr(e) {
|
|
2364
|
+
var t = e.getAttribute("is") || e.nodeName, n = Ft.get(t);
|
|
2418
2365
|
if (n) return n;
|
|
2419
|
-
|
|
2366
|
+
Ft.set(t, n = []);
|
|
2420
2367
|
for (var r, i = e, s = Element.prototype; s !== i; ) {
|
|
2421
|
-
r =
|
|
2422
|
-
for (var
|
|
2423
|
-
r[
|
|
2424
|
-
i =
|
|
2368
|
+
r = qn(i);
|
|
2369
|
+
for (var f in r)
|
|
2370
|
+
r[f].set && n.push(f);
|
|
2371
|
+
i = Lt(i);
|
|
2425
2372
|
}
|
|
2426
2373
|
return n;
|
|
2427
2374
|
}
|
|
2428
|
-
function
|
|
2375
|
+
function lt(e, t, n, r) {
|
|
2429
2376
|
var i = (
|
|
2430
2377
|
/** @type {V} */
|
|
2431
2378
|
r
|
|
2432
|
-
), s = !0,
|
|
2433
|
-
r), i),
|
|
2434
|
-
|
|
2435
|
-
e[t],
|
|
2436
|
-
var
|
|
2437
|
-
return
|
|
2438
|
-
var
|
|
2379
|
+
), s = !0, f = () => (s && (s = !1, i = /** @type {V} */
|
|
2380
|
+
r), i), l;
|
|
2381
|
+
l = /** @type {V} */
|
|
2382
|
+
e[t], l === void 0 && r !== void 0 && (l = f());
|
|
2383
|
+
var o;
|
|
2384
|
+
return o = () => {
|
|
2385
|
+
var a = (
|
|
2439
2386
|
/** @type {V} */
|
|
2440
2387
|
e[t]
|
|
2441
2388
|
);
|
|
2442
|
-
return
|
|
2443
|
-
},
|
|
2389
|
+
return a === void 0 ? f() : (s = !0, a);
|
|
2390
|
+
}, o;
|
|
2444
2391
|
}
|
|
2445
|
-
const
|
|
2446
|
-
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(
|
|
2447
|
-
var
|
|
2448
|
-
const
|
|
2449
|
-
hash: "svelte-qvulfy",
|
|
2450
|
-
code: ".text-wrapper.svelte-qvulfy {width:100%;margin-left:auto;margin-right:auto;}.text-element.svelte-qvulfy {margin:0;word-wrap:break-word;white-space:pre-wrap;}"
|
|
2451
|
-
};
|
|
2452
|
-
function ki(e, t) {
|
|
2453
|
-
ie(t, !0), ge(e, Ei);
|
|
2454
|
-
var n = yi(), r = m(n), i = m(r);
|
|
2455
|
-
N(() => {
|
|
2456
|
-
y(r, `
|
|
2457
|
-
font-size: ${t.settings.fontSize ?? ""}px;
|
|
2458
|
-
font-weight: ${t.settings.fontWeight ?? ""};
|
|
2459
|
-
line-height: ${t.settings.lineHeight ?? ""};
|
|
2460
|
-
letter-spacing: ${t.settings.letterSpacing ?? ""}px;
|
|
2461
|
-
`), A(i, t.settings.text);
|
|
2462
|
-
}), T(e, n), se();
|
|
2463
|
-
}
|
|
2464
|
-
var Ti = /* @__PURE__ */ C('<div class="button-wrapper svelte-1xlikgk"><button class="cta-button svelte-1xlikgk"> </button></div>');
|
|
2465
|
-
const Ci = {
|
|
2466
|
-
hash: "svelte-1xlikgk",
|
|
2467
|
-
code: ".button-wrapper.svelte-1xlikgk {display:flex;justify-content:center;width:100%;max-width:750px;margin:0 auto;}.cta-button.svelte-1xlikgk {font-weight:700;border:none;cursor:pointer;letter-spacing:0.02em;transition:opacity 0.2s ease;}.cta-button.svelte-1xlikgk:hover {opacity:0.9;}"
|
|
2468
|
-
};
|
|
2469
|
-
function Si(e, t) {
|
|
2470
|
-
ie(t, !0), ge(e, Ci);
|
|
2471
|
-
var n = Ti(), r = m(n), i = m(r);
|
|
2472
|
-
N(() => {
|
|
2473
|
-
y(n, `margin-top: ${t.settings.marginTop ?? ""}px;`), y(r, `
|
|
2474
|
-
background: ${t.settings.backgroundColor ?? ""};
|
|
2475
|
-
color: ${t.settings.textColor ?? ""};
|
|
2476
|
-
border-radius: ${t.settings.borderRadius ?? ""}px;
|
|
2477
|
-
padding: ${t.settings.paddingY ?? ""}px ${t.settings.paddingX ?? ""}px;
|
|
2478
|
-
font-size: ${t.settings.fontSize ?? ""}px;
|
|
2479
|
-
`), A(i, t.settings.text);
|
|
2480
|
-
}), T(e, n), se();
|
|
2481
|
-
}
|
|
2482
|
-
var Ai = /* @__PURE__ */ C('<div class="auth-banner svelte-l4l5xk"><div class="auth-left svelte-l4l5xk"><div class="auth-icon svelte-l4l5xk"><svg width="18" height="18" viewBox="0 0 24 24" fill="none"><path d="M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z"></path></svg></div> <p class="auth-prompt svelte-l4l5xk"> </p></div> <div class="auth-buttons svelte-l4l5xk"><button class="auth-btn login-btn svelte-l4l5xk"> </button> <button class="auth-btn signup-btn svelte-l4l5xk"> </button></div></div>');
|
|
2483
|
-
const Mi = {
|
|
2484
|
-
hash: "svelte-l4l5xk",
|
|
2485
|
-
code: `.auth-banner.svelte-l4l5xk {display:flex;align-items:center;justify-content:space-between;gap:20px;border-radius:10px;border:1.5px solid;max-width:750px;width:100%;margin:0 auto;}.auth-left.svelte-l4l5xk {display:flex;align-items:center;gap:16px;flex:1;}.auth-icon.svelte-l4l5xk {display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;border:2px solid;flex-shrink:0;}.auth-prompt.svelte-l4l5xk {font-size:0.95rem;line-height:1.4;margin:0;}.auth-buttons.svelte-l4l5xk {display:flex;gap:12px;flex-shrink:0;}.auth-btn.svelte-l4l5xk {height:48px;border-radius:8px;padding:13px 32px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;border:none;cursor:pointer;white-space:nowrap;}
|
|
2486
|
-
|
|
2487
|
-
@media (max-width: 640px) {.auth-banner.svelte-l4l5xk {flex-direction:column;text-align:center;}.auth-left.svelte-l4l5xk {flex-direction:column;}.auth-buttons.svelte-l4l5xk {width:100%;}.auth-btn.svelte-l4l5xk {flex:1;}
|
|
2488
|
-
}`
|
|
2489
|
-
};
|
|
2490
|
-
function Ni(e, t) {
|
|
2491
|
-
ie(t, !0), ge(e, Mi);
|
|
2492
|
-
var n = Ai(), r = m(n), i = m(r), s = m(i), o = m(s), a = I(i, 2), l = m(a), f = I(r, 2), u = m(f), h = m(u), d = I(u, 2), g = m(d);
|
|
2493
|
-
N(() => {
|
|
2494
|
-
y(n, `border-color: ${t.settings.borderColor ?? ""}; background: ${t.settings.backgroundColor ?? ""}; margin-top: ${t.settings.marginTop ?? ""}px; padding: ${t.settings.padding ?? ""}px;`), y(i, `border-color: ${t.settings.iconColor ?? ""};`), at(o, "fill", t.settings.iconColor), y(a, `color: ${t.settings.textColor ?? ""};`), A(l, t.settings.promptText), y(u, `background: ${t.settings.loginButtonBackground ?? ""}; color: ${t.settings.loginButtonColor ?? ""};`), A(h, t.settings.loginButtonText), y(d, `background: ${t.settings.signupButtonBackground ?? ""}; color: ${t.settings.signupButtonColor ?? ""};`), A(g, t.settings.signupButtonText);
|
|
2495
|
-
}), T(e, n), se();
|
|
2496
|
-
}
|
|
2497
|
-
var Ri = /* @__PURE__ */ C('<img alt="Banner" class="banner-image svelte-pvxr6w"/>'), Oi = /* @__PURE__ */ C('<div class="banner-placeholder svelte-pvxr6w"><span class="placeholder-icon svelte-pvxr6w">🖼</span> <span class="placeholder-text svelte-pvxr6w">No image — select this element and upload one</span></div>');
|
|
2498
|
-
const Di = {
|
|
2392
|
+
const $r = "5";
|
|
2393
|
+
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add($r);
|
|
2394
|
+
var ei = /* @__PURE__ */ F('<img alt="Banner" class="banner-desktop svelte-pvxr6w"/>'), ti = /* @__PURE__ */ F('<img alt="Banner mobile" class="banner-mobile svelte-pvxr6w"/>'), ni = /* @__PURE__ */ F('<div class="banner-placeholder svelte-pvxr6w"><span class="placeholder-icon svelte-pvxr6w">🖼</span> <span class="placeholder-text svelte-pvxr6w">Upload desktop and/or mobile banner images</span></div>'), ri = /* @__PURE__ */ F('<div class="banner-wrapper svelte-pvxr6w"><!> <!> <!></div>');
|
|
2395
|
+
const ii = {
|
|
2499
2396
|
hash: "svelte-pvxr6w",
|
|
2500
|
-
code:
|
|
2397
|
+
code: `.banner-wrapper.svelte-pvxr6w {position:relative;width:100%;overflow:hidden;}.banner-desktop.svelte-pvxr6w,
|
|
2398
|
+
.banner-mobile.svelte-pvxr6w {display:block;width:100%;height:auto;object-fit:cover;}.banner-mobile.svelte-pvxr6w {display:none;}
|
|
2399
|
+
|
|
2400
|
+
@media (max-width: 768px) {.banner-desktop.svelte-pvxr6w {display:none;}.banner-mobile.svelte-pvxr6w {display:block;}
|
|
2401
|
+
}.banner-placeholder.svelte-pvxr6w {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:48px 24px;border:1.5px dashed rgba(255, 255, 255, 0.12);background:rgba(255, 255, 255, 0.03);}.placeholder-icon.svelte-pvxr6w {font-size:2rem;opacity:0.3;}.placeholder-text.svelte-pvxr6w {font-size:0.8rem;color:rgba(255, 255, 255, 0.3);text-align:center;}`
|
|
2501
2402
|
};
|
|
2502
|
-
function
|
|
2503
|
-
|
|
2504
|
-
var n =
|
|
2403
|
+
function si(e, t) {
|
|
2404
|
+
pe(t, !0), Pe(e, ii);
|
|
2405
|
+
var n = ri(), r = k(n);
|
|
2406
|
+
{
|
|
2407
|
+
var i = (a) => {
|
|
2408
|
+
var u = ei();
|
|
2409
|
+
L(() => Ke(u, "src", t.settings.desktopImage)), N(a, u);
|
|
2410
|
+
};
|
|
2411
|
+
Ye(r, (a) => {
|
|
2412
|
+
t.settings.desktopImage && a(i);
|
|
2413
|
+
});
|
|
2414
|
+
}
|
|
2415
|
+
var s = be(r, 2);
|
|
2505
2416
|
{
|
|
2506
|
-
var
|
|
2507
|
-
var
|
|
2508
|
-
|
|
2509
|
-
}, s = (o) => {
|
|
2510
|
-
var a = Oi();
|
|
2511
|
-
T(o, a);
|
|
2417
|
+
var f = (a) => {
|
|
2418
|
+
var u = ti();
|
|
2419
|
+
L(() => Ke(u, "src", t.settings.mobileImage)), N(a, u);
|
|
2512
2420
|
};
|
|
2513
|
-
|
|
2514
|
-
t.settings.
|
|
2421
|
+
Ye(s, (a) => {
|
|
2422
|
+
t.settings.mobileImage && a(f);
|
|
2515
2423
|
});
|
|
2516
2424
|
}
|
|
2517
|
-
|
|
2425
|
+
var l = be(s, 2);
|
|
2426
|
+
{
|
|
2427
|
+
var o = (a) => {
|
|
2428
|
+
var u = ni();
|
|
2429
|
+
N(a, u);
|
|
2430
|
+
};
|
|
2431
|
+
Ye(l, (a) => {
|
|
2432
|
+
!t.settings.desktopImage && !t.settings.mobileImage && a(o);
|
|
2433
|
+
});
|
|
2434
|
+
}
|
|
2435
|
+
L(() => T(n, `background-color: ${t.settings.backgroundColor ?? ""}; min-height: ${t.settings.minHeight ?? ""}px;`)), N(e, n), ge();
|
|
2518
2436
|
}
|
|
2519
|
-
var
|
|
2520
|
-
const
|
|
2437
|
+
var li = /* @__PURE__ */ F('<div class="badge-wrapper svelte-1ym3cq2"><span class="badge svelte-1ym3cq2"> </span></div>');
|
|
2438
|
+
const ai = {
|
|
2521
2439
|
hash: "svelte-1ym3cq2",
|
|
2522
|
-
code: ".badge-wrapper.svelte-1ym3cq2 {display:flex;max-width:750px;width:100%;margin:0 auto;}.badge.svelte-1ym3cq2 {display:inline-block;font-weight:
|
|
2440
|
+
code: ".badge-wrapper.svelte-1ym3cq2 {display:flex;max-width:750px;width:100%;margin:0 auto;}.badge.svelte-1ym3cq2 {display:inline-block;font-weight:500;text-transform:uppercase;letter-spacing:0.06em;line-height:1;white-space:nowrap;backdrop-filter:blur(12px);}"
|
|
2523
2441
|
};
|
|
2524
|
-
function
|
|
2525
|
-
|
|
2442
|
+
function oi(e, t) {
|
|
2443
|
+
pe(t, !0), Pe(e, ai);
|
|
2526
2444
|
const n = { left: "flex-start", center: "center", right: "flex-end" };
|
|
2527
|
-
var r =
|
|
2528
|
-
|
|
2529
|
-
|
|
2445
|
+
var r = li(), i = k(r), s = k(i);
|
|
2446
|
+
L(() => {
|
|
2447
|
+
T(r, `justify-content: ${n[t.settings.align] ?? "center" ?? ""}; margin-top: ${t.settings.marginTop ?? ""}px;`), T(i, `
|
|
2530
2448
|
background: ${t.settings.backgroundColor ?? ""};
|
|
2531
2449
|
color: ${t.settings.textColor ?? ""};
|
|
2450
|
+
border: 0.5px solid ${t.settings.borderColor ?? ""};
|
|
2532
2451
|
border-radius: ${t.settings.borderRadius ?? ""}px;
|
|
2533
2452
|
padding: ${t.settings.paddingY ?? ""}px ${t.settings.paddingX ?? ""}px;
|
|
2534
2453
|
font-size: ${t.settings.fontSize ?? ""}px;
|
|
2535
|
-
`),
|
|
2536
|
-
}),
|
|
2454
|
+
`), de(s, t.settings.text);
|
|
2455
|
+
}), N(e, r), ge();
|
|
2537
2456
|
}
|
|
2538
|
-
var
|
|
2539
|
-
const
|
|
2540
|
-
hash: "svelte-
|
|
2541
|
-
code:
|
|
2542
|
-
|
|
2543
|
-
@media (max-width: 640px) {.cards-row.svelte-ixrd3u {flex-direction:column;gap:12px;}.card.svelte-ixrd3u {max-width:100%;}.arrow.svelte-ixrd3u {transform:rotate(90deg);padding:4px 0;}
|
|
2544
|
-
}`
|
|
2457
|
+
var fi = /* @__PURE__ */ F('<div class="text-wrapper svelte-qvulfy"><p class="text-element svelte-qvulfy"> </p></div>');
|
|
2458
|
+
const ui = {
|
|
2459
|
+
hash: "svelte-qvulfy",
|
|
2460
|
+
code: ".text-wrapper.svelte-qvulfy {width:100%;max-width:750px;margin-left:auto;margin-right:auto;}.text-element.svelte-qvulfy {margin:0;word-wrap:break-word;white-space:pre-wrap;}"
|
|
2545
2461
|
};
|
|
2546
|
-
function
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
var g = Li(), p = Dt(g);
|
|
2559
|
-
{
|
|
2560
|
-
var w = (P) => {
|
|
2561
|
-
var O = ji();
|
|
2562
|
-
N(() => y(O, `color: ${t.settings.arrowColor ?? ""};`)), T(P, O);
|
|
2563
|
-
};
|
|
2564
|
-
Me(p, (P) => {
|
|
2565
|
-
d > 0 && P(w);
|
|
2566
|
-
});
|
|
2567
|
-
}
|
|
2568
|
-
var c = I(p, 2), v = m(c), E = m(v), x = I(v, 2), M = m(x);
|
|
2569
|
-
N(() => {
|
|
2570
|
-
y(c, `background: ${t.settings.backgroundColor ?? ""}; border: 1px solid ${t.settings.borderColor ?? ""};`), y(v, `color: ${t.settings.titleColor ?? ""};`), A(E, _(h).title), y(x, `color: ${t.settings.contentColor ?? ""};`), A(M, _(h).content);
|
|
2571
|
-
}), T(u, g);
|
|
2572
|
-
}), T(a, f);
|
|
2573
|
-
});
|
|
2574
|
-
var s = I(i, 2);
|
|
2575
|
-
{
|
|
2576
|
-
var o = (a) => {
|
|
2577
|
-
var l = qi(), f = m(l), u = m(f);
|
|
2578
|
-
N(() => {
|
|
2579
|
-
y(l, `background: ${t.settings.footerBackground ?? ""}; color: ${t.settings.footerTextColor ?? ""};`), A(u, t.settings.footerText);
|
|
2580
|
-
}), T(a, l);
|
|
2581
|
-
};
|
|
2582
|
-
Me(s, (a) => {
|
|
2583
|
-
t.settings.footerText && a(o);
|
|
2584
|
-
});
|
|
2585
|
-
}
|
|
2586
|
-
N(() => y(r, `margin-top: ${t.settings.marginTop ?? ""}px;`)), T(e, r), se();
|
|
2462
|
+
function ci(e, t) {
|
|
2463
|
+
pe(t, !0), Pe(e, ui);
|
|
2464
|
+
var n = fi(), r = k(n), i = k(r);
|
|
2465
|
+
L(() => {
|
|
2466
|
+
T(n, `margin-top: ${t.settings.marginTop ?? ""}px; margin-bottom: ${t.settings.marginBottom ?? ""}px;`), T(r, `
|
|
2467
|
+
color: ${t.settings.color ?? ""};
|
|
2468
|
+
font-size: ${t.settings.fontSize ?? ""}px;
|
|
2469
|
+
font-weight: ${t.settings.fontWeight ?? ""};
|
|
2470
|
+
line-height: ${t.settings.lineHeight ?? ""};
|
|
2471
|
+
text-align: ${t.settings.align ?? ""};
|
|
2472
|
+
`), de(i, t.settings.text);
|
|
2473
|
+
}), N(e, n), ge();
|
|
2587
2474
|
}
|
|
2588
|
-
var
|
|
2589
|
-
const
|
|
2590
|
-
hash: "svelte-
|
|
2591
|
-
code: ".
|
|
2475
|
+
var di = /* @__PURE__ */ F('<div class="button-wrapper svelte-1xlikgk"><a class="cta-button svelte-1xlikgk"> </a></div>');
|
|
2476
|
+
const vi = {
|
|
2477
|
+
hash: "svelte-1xlikgk",
|
|
2478
|
+
code: ".button-wrapper.svelte-1xlikgk {display:flex;justify-content:center;width:100%;max-width:750px;margin:0 auto;}.cta-button.svelte-1xlikgk {display:inline-block;font-weight:700;border:none;cursor:pointer;letter-spacing:0.02em;text-decoration:none;text-align:center;transition:opacity 0.2s ease;}.cta-button.svelte-1xlikgk:hover {opacity:0.9;}"
|
|
2592
2479
|
};
|
|
2593
|
-
function
|
|
2594
|
-
|
|
2595
|
-
var n =
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
}
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2480
|
+
function hi(e, t) {
|
|
2481
|
+
pe(t, !0), Pe(e, vi);
|
|
2482
|
+
var n = di(), r = k(n), i = k(r);
|
|
2483
|
+
L(() => {
|
|
2484
|
+
T(n, `margin-top: ${t.settings.marginTop ?? ""}px;`), Ke(r, "href", t.settings.link), T(r, `
|
|
2485
|
+
background: ${t.settings.backgroundColor ?? ""};
|
|
2486
|
+
color: ${t.settings.textColor ?? ""};
|
|
2487
|
+
border-radius: ${t.settings.borderRadius ?? ""}px;
|
|
2488
|
+
padding: ${t.settings.paddingY ?? ""}px ${t.settings.paddingX ?? ""}px;
|
|
2489
|
+
font-size: ${t.settings.fontSize ?? ""}px;
|
|
2490
|
+
`), de(i, t.settings.text);
|
|
2491
|
+
}), N(e, n), ge();
|
|
2492
|
+
}
|
|
2493
|
+
var pi = /* @__PURE__ */ F('<div class="accordion-content svelte-1mqi736"><p class="svelte-1mqi736"> </p></div>'), gi = /* @__PURE__ */ F('<div class="accordion-section svelte-1mqi736"><button class="accordion-header svelte-1mqi736"><span class="accordion-title svelte-1mqi736"> </span> <div><svg width="15" height="15" viewBox="0 0 16 16" fill="none"><path d="M8 11L3 5.5h10L8 11z" fill="currentColor"></path></svg></div></button> <!></div>'), _i = /* @__PURE__ */ F('<div class="accordion-wrapper svelte-1mqi736"></div>');
|
|
2494
|
+
const mi = {
|
|
2495
|
+
hash: "svelte-1mqi736",
|
|
2496
|
+
code: ".accordion-wrapper.svelte-1mqi736 {display:flex;flex-direction:column;max-width:750px;width:100%;margin:0 auto;}.accordion-section.svelte-1mqi736 {border-radius:8px;overflow:hidden;}.accordion-header.svelte-1mqi736 {display:flex;width:100%;align-items:center;justify-content:space-between;padding:16px;background:none;border:none;cursor:pointer;text-align:left;}.accordion-title.svelte-1mqi736 {font-size:1.1rem;font-weight:600;}.accordion-arrow.svelte-1mqi736 {display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;transition:transform 0.2s ease-in-out;flex-shrink:0;backdrop-filter:blur(15px);}.accordion-arrow.rotated.svelte-1mqi736 {transform:rotate(180deg);}.accordion-content.svelte-1mqi736 {padding:0 16px 16px;font-size:0.875rem;line-height:1.6;}.accordion-content.svelte-1mqi736 p:where(.svelte-1mqi736) {margin:0;white-space:pre-wrap;}"
|
|
2604
2497
|
};
|
|
2605
|
-
function
|
|
2606
|
-
|
|
2607
|
-
let n = /* @__PURE__ */
|
|
2608
|
-
function r(
|
|
2609
|
-
|
|
2610
|
-
}
|
|
2611
|
-
var i =
|
|
2612
|
-
|
|
2613
|
-
var
|
|
2614
|
-
let
|
|
2615
|
-
var
|
|
2498
|
+
function wi(e, t) {
|
|
2499
|
+
pe(t, !0), Pe(e, mi);
|
|
2500
|
+
let n = /* @__PURE__ */ V(null);
|
|
2501
|
+
function r(s) {
|
|
2502
|
+
J(n, y(n) === s ? null : s, !0);
|
|
2503
|
+
}
|
|
2504
|
+
var i = _i();
|
|
2505
|
+
Tn(i, 21, () => t.settings.sections, Lr, (s, f, l) => {
|
|
2506
|
+
var o = gi(), a = k(o), u = k(a), v = k(u), d = be(u, 2);
|
|
2507
|
+
let h;
|
|
2508
|
+
var c = be(a, 2);
|
|
2616
2509
|
{
|
|
2617
|
-
var
|
|
2618
|
-
var
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
}),
|
|
2622
|
-
}
|
|
2623
|
-
|
|
2624
|
-
|
|
2510
|
+
var p = (w) => {
|
|
2511
|
+
var b = pi(), _ = k(b), q = k(_);
|
|
2512
|
+
L(() => {
|
|
2513
|
+
T(b, `color: ${t.settings.contentColor ?? ""};`), de(q, y(f).content);
|
|
2514
|
+
}), N(w, b);
|
|
2515
|
+
};
|
|
2516
|
+
Ye(c, (w) => {
|
|
2517
|
+
y(n) === l && w(p);
|
|
2625
2518
|
});
|
|
2626
2519
|
}
|
|
2627
|
-
|
|
2628
|
-
(
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
}
|
|
2637
|
-
ei(["click"]);
|
|
2638
|
-
var $i = /* @__PURE__ */ C('<div class="placeholder svelte-1x15dd8"><span class="placeholder-icon svelte-1x15dd8">🛒</span> <span class="placeholder-text svelte-1x15dd8">Enter an API URL in settings to load products</span></div>'), es = /* @__PURE__ */ C('<div class="placeholder svelte-1x15dd8"><span class="placeholder-text svelte-1x15dd8">Loading products...</span></div>'), ts = /* @__PURE__ */ C('<div class="placeholder error svelte-1x15dd8"><span class="placeholder-text svelte-1x15dd8"> </span></div>'), ns = /* @__PURE__ */ C('<div class="placeholder svelte-1x15dd8"><span class="placeholder-text svelte-1x15dd8">No products found</span></div>'), rs = /* @__PURE__ */ C('<span class="discount-badge svelte-1x15dd8"> </span>'), is = /* @__PURE__ */ C('<span class="old-price svelte-1x15dd8"> </span>'), ss = /* @__PURE__ */ C('<div class="product-card svelte-1x15dd8"><div class="product-image-wrap svelte-1x15dd8"><img class="product-image svelte-1x15dd8"/> <!></div> <div class="product-info svelte-1x15dd8"><span class="product-brand svelte-1x15dd8"> </span> <h4 class="product-title svelte-1x15dd8"> </h4> <p class="product-desc svelte-1x15dd8"> </p> <div class="product-rating svelte-1x15dd8"> <span class="rating-num svelte-1x15dd8"> </span></div> <div class="product-price svelte-1x15dd8"><span class="current-price svelte-1x15dd8"> </span> <!></div></div></div>'), ls = /* @__PURE__ */ C('<div class="products-grid svelte-1x15dd8"></div>'), as = /* @__PURE__ */ C('<div class="products-wrapper svelte-1x15dd8"><!></div>');
|
|
2639
|
-
const os = {
|
|
2640
|
-
hash: "svelte-1x15dd8",
|
|
2641
|
-
code: `.products-wrapper.svelte-1x15dd8 {max-width:750px;width:100%;margin:0 auto;}.placeholder.svelte-1x15dd8 {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:48px 24px;border:1.5px dashed rgba(255, 255, 255, 0.12);border-radius:8px;background:rgba(255, 255, 255, 0.03);}.placeholder.error.svelte-1x15dd8 {border-color:rgba(239, 68, 68, 0.3);}.placeholder-icon.svelte-1x15dd8 {font-size:2rem;opacity:0.3;}.placeholder-text.svelte-1x15dd8 {font-size:0.8rem;color:rgba(255, 255, 255, 0.3);text-align:center;}.products-grid.svelte-1x15dd8 {display:grid;gap:14px;}.product-card.svelte-1x15dd8 {border-radius:10px;overflow:hidden;display:flex;flex-direction:column;}.product-image-wrap.svelte-1x15dd8 {position:relative;width:100%;aspect-ratio:4/3;overflow:hidden;background:rgba(0, 0, 0, 0.2);}.product-image.svelte-1x15dd8 {width:100%;height:100%;object-fit:cover;}.discount-badge.svelte-1x15dd8 {position:absolute;top:8px;right:8px;padding:3px 8px;border-radius:6px;font-size:0.7rem;font-weight:700;}.product-info.svelte-1x15dd8 {padding:14px;display:flex;flex-direction:column;gap:6px;flex:1;}.product-brand.svelte-1x15dd8 {font-size:0.65rem;text-transform:uppercase;letter-spacing:0.08em;color:rgba(255, 255, 255, 0.35);font-weight:600;}.product-title.svelte-1x15dd8 {margin:0;font-size:0.85rem;font-weight:600;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}.product-desc.svelte-1x15dd8 {margin:0;font-size:0.75rem;line-height:1.4;}.product-rating.svelte-1x15dd8 {font-size:0.75rem;display:flex;align-items:center;gap:4px;}.rating-num.svelte-1x15dd8 {font-size:0.7rem;opacity:0.6;color:rgba(255, 255, 255, 0.5);}.product-price.svelte-1x15dd8 {display:flex;align-items:baseline;gap:8px;margin-top:auto;padding-top:6px;}.current-price.svelte-1x15dd8 {font-size:1rem;font-weight:700;}.old-price.svelte-1x15dd8 {font-size:0.8rem;text-decoration:line-through;}
|
|
2520
|
+
L(() => {
|
|
2521
|
+
T(o, `background-color: ${t.settings.backgroundColor ?? ""}; border: 1px solid ${t.settings.borderColor ?? ""};`), T(a, `color: ${t.settings.textColor ?? ""};`), de(v, y(f).title), h = Cn(d, 1, "accordion-arrow svelte-1mqi736", null, h, { rotated: y(n) === l }), T(d, `background: ${t.settings.arrowBackground ?? ""}; border: 0.5px solid ${t.settings.arrowBorderColor ?? ""};`);
|
|
2522
|
+
}), Rr("click", a, () => r(l)), N(s, o);
|
|
2523
|
+
}), L(() => T(i, `margin-top: ${t.settings.marginTop ?? ""}px; gap: ${t.settings.gap ?? ""}px;`)), N(e, i), ge();
|
|
2524
|
+
}
|
|
2525
|
+
Mr(["click"]);
|
|
2526
|
+
var bi = /* @__PURE__ */ F('<img alt="" class="cta-bg-image svelte-1mg8fe6"/>'), xi = /* @__PURE__ */ F('<div class="cta-wrapper svelte-1mg8fe6"><div class="cta-outer svelte-1mg8fe6"><a class="cta-inner svelte-1mg8fe6"><!> <div class="cta-text svelte-1mg8fe6"><p class="cta-heading svelte-1mg8fe6"> </p> <p class="cta-description svelte-1mg8fe6"> </p></div> <div class="cta-button svelte-1mg8fe6"> </div></a></div></div>');
|
|
2527
|
+
const yi = {
|
|
2528
|
+
hash: "svelte-1mg8fe6",
|
|
2529
|
+
code: `.cta-wrapper.svelte-1mg8fe6 {max-width:750px;width:100%;margin:0 auto;}.cta-outer.svelte-1mg8fe6 {padding:8px;}.cta-inner.svelte-1mg8fe6 {display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:8px;padding:16px;position:relative;overflow:hidden;text-decoration:none;color:inherit;}
|
|
2642
2530
|
|
|
2643
|
-
@media (
|
|
2644
|
-
}
|
|
2531
|
+
@media (min-width: 768px) {.cta-inner.svelte-1mg8fe6 {flex-direction:row;}
|
|
2532
|
+
}.cta-bg-image.svelte-1mg8fe6 {position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;object-fit:cover;}.cta-text.svelte-1mg8fe6 {display:flex;flex-direction:column;gap:8px;position:relative;z-index:1;}.cta-heading.svelte-1mg8fe6 {margin:0;font-size:1.5rem;font-weight:800;line-height:120%;}.cta-description.svelte-1mg8fe6 {margin:0;font-size:0.875rem;font-weight:400;line-height:150%;}.cta-button.svelte-1mg8fe6 {position:relative;z-index:1;padding:16px 46px;border-radius:12px;text-align:center;font-weight:700;white-space:nowrap;flex-shrink:0;width:100%;}
|
|
2645
2533
|
|
|
2646
|
-
@media (
|
|
2534
|
+
@media (min-width: 768px) {.cta-button.svelte-1mg8fe6 {width:auto;}
|
|
2647
2535
|
}`
|
|
2648
2536
|
};
|
|
2649
|
-
function
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
Ur(() => {
|
|
2653
|
-
const c = t.settings.apiUrl;
|
|
2654
|
-
!c || c === _(s) || (B(s, c, !0), o(c));
|
|
2655
|
-
});
|
|
2656
|
-
async function o(c) {
|
|
2657
|
-
B(r, !0), B(i, "");
|
|
2658
|
-
try {
|
|
2659
|
-
const v = await fetch(c);
|
|
2660
|
-
if (!v.ok) throw new Error(`HTTP ${v.status}`);
|
|
2661
|
-
const E = await v.json();
|
|
2662
|
-
B(n, E.products ?? E.data ?? (Array.isArray(E) ? E : []), !0);
|
|
2663
|
-
} catch (v) {
|
|
2664
|
-
B(i, v instanceof Error ? v.message : "Failed to fetch", !0), B(n, [], !0);
|
|
2665
|
-
} finally {
|
|
2666
|
-
B(r, !1);
|
|
2667
|
-
}
|
|
2668
|
-
}
|
|
2669
|
-
function a(c, v) {
|
|
2670
|
-
return `${v === "USD" ? "$" : v} ${c}`;
|
|
2671
|
-
}
|
|
2672
|
-
function l(c) {
|
|
2673
|
-
const v = Math.floor(c), E = c - v >= 0.5 ? 1 : 0, x = 5 - v - E;
|
|
2674
|
-
return "★".repeat(v) + (E ? "½" : "") + "☆".repeat(x);
|
|
2675
|
-
}
|
|
2676
|
-
var f = as(), u = m(f);
|
|
2537
|
+
function Ei(e, t) {
|
|
2538
|
+
pe(t, !0), Pe(e, yi);
|
|
2539
|
+
var n = xi(), r = k(n), i = k(r), s = k(i);
|
|
2677
2540
|
{
|
|
2678
|
-
var
|
|
2679
|
-
var
|
|
2680
|
-
|
|
2681
|
-
}, d = (c) => {
|
|
2682
|
-
var v = es();
|
|
2683
|
-
T(c, v);
|
|
2684
|
-
}, g = (c) => {
|
|
2685
|
-
var v = ts(), E = m(v), x = m(E);
|
|
2686
|
-
N(() => A(x, `Error: ${_(i) ?? ""}`)), T(c, v);
|
|
2687
|
-
}, p = (c) => {
|
|
2688
|
-
var v = ns();
|
|
2689
|
-
T(c, v);
|
|
2690
|
-
}, w = (c) => {
|
|
2691
|
-
var v = ls();
|
|
2692
|
-
$e(v, 21, () => _(n), (E) => E._id, (E, x) => {
|
|
2693
|
-
var M = ss(), P = m(M), O = m(P), D = I(O, 2);
|
|
2694
|
-
{
|
|
2695
|
-
var $ = (ue) => {
|
|
2696
|
-
var ce = rs(), Ye = m(ce);
|
|
2697
|
-
N(() => {
|
|
2698
|
-
y(ce, `background: ${t.settings.discountBadgeBackground ?? ""}; color: ${t.settings.discountBadgeColor ?? ""};`), A(Ye, `-${_(x).price.discountPercentage ?? ""}%`);
|
|
2699
|
-
}), T(ue, ce);
|
|
2700
|
-
};
|
|
2701
|
-
Me(D, (ue) => {
|
|
2702
|
-
_(x).price.discountPercentage > 0 && ue($);
|
|
2703
|
-
});
|
|
2704
|
-
}
|
|
2705
|
-
var le = I(P, 2), z = m(le), ct = m(z), Ve = I(z, 2), Un = m(Ve), dt = I(Ve, 2), Vn = m(dt), vt = I(dt, 2), jt = m(vt), Yn = I(jt), Gn = m(Yn), Kn = I(vt, 2), ht = m(Kn), Wn = m(ht), Xn = I(ht, 2);
|
|
2706
|
-
{
|
|
2707
|
-
var Jn = (ue) => {
|
|
2708
|
-
var ce = is(), Ye = m(ce);
|
|
2709
|
-
N(
|
|
2710
|
-
(pt) => {
|
|
2711
|
-
y(ce, `color: ${t.settings.oldPriceColor ?? ""};`), A(Ye, pt);
|
|
2712
|
-
},
|
|
2713
|
-
[
|
|
2714
|
-
() => a(_(x).price.beforeDiscount, _(x).price.currency)
|
|
2715
|
-
]
|
|
2716
|
-
), T(ue, ce);
|
|
2717
|
-
};
|
|
2718
|
-
Me(Xn, (ue) => {
|
|
2719
|
-
_(x).price.beforeDiscount > _(x).price.current && ue(Jn);
|
|
2720
|
-
});
|
|
2721
|
-
}
|
|
2722
|
-
N(
|
|
2723
|
-
(ue, ce, Ye, pt) => {
|
|
2724
|
-
y(M, `background: ${t.settings.cardBackground ?? ""}; border: 1px solid ${t.settings.cardBorder ?? ""};`), at(O, "src", _(x).thumbnail), at(O, "alt", _(x).title), A(ct, _(x).brand), y(Ve, `color: ${t.settings.titleColor ?? ""};`), A(Un, _(x).title), y(dt, `color: ${t.settings.descriptionColor ?? ""};`), A(Vn, ue), y(vt, `color: ${t.settings.ratingColor ?? ""};`), A(jt, `${ce ?? ""} `), A(Gn, Ye), y(ht, `color: ${t.settings.priceColor ?? ""};`), A(Wn, pt);
|
|
2725
|
-
},
|
|
2726
|
-
[
|
|
2727
|
-
() => _(x).description.length > 80 ? _(x).description.slice(0, 80) + "..." : _(x).description,
|
|
2728
|
-
() => l(_(x).rating),
|
|
2729
|
-
() => _(x).rating.toFixed(1),
|
|
2730
|
-
() => a(_(x).price.current, _(x).price.currency)
|
|
2731
|
-
]
|
|
2732
|
-
), T(E, M);
|
|
2733
|
-
}), N(() => y(v, `grid-template-columns: repeat(${t.settings.columns ?? ""}, 1fr);`)), T(c, v);
|
|
2541
|
+
var f = (c) => {
|
|
2542
|
+
var p = bi();
|
|
2543
|
+
L(() => Ke(p, "src", t.settings.backgroundImage)), N(c, p);
|
|
2734
2544
|
};
|
|
2735
|
-
|
|
2736
|
-
t.settings.
|
|
2545
|
+
Ye(s, (c) => {
|
|
2546
|
+
t.settings.backgroundImage && c(f);
|
|
2737
2547
|
});
|
|
2738
2548
|
}
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2549
|
+
var l = be(s, 2), o = k(l), a = k(o), u = be(o, 2), v = k(u), d = be(l, 2), h = k(d);
|
|
2550
|
+
L(() => {
|
|
2551
|
+
T(n, `margin-top: ${t.settings.marginTop ?? ""}px;`), T(r, `
|
|
2552
|
+
background-color: ${t.settings.cardBackground ?? ""};
|
|
2553
|
+
border: 1px solid ${t.settings.borderColor ?? ""};
|
|
2554
|
+
border-radius: ${t.settings.borderRadius ?? ""}px;
|
|
2555
|
+
`), Ke(i, "href", t.settings.buttonLink), T(i, `
|
|
2556
|
+
background: ${t.settings.innerBackground ?? ""};
|
|
2557
|
+
border: 0.5px solid ${t.settings.borderColor ?? ""};
|
|
2558
|
+
border-radius: ${t.settings.borderRadius ?? ""}px;
|
|
2559
|
+
`), T(o, `color: ${t.settings.headingColor ?? ""};`), de(a, t.settings.heading), T(u, `color: ${t.settings.descriptionColor ?? ""};`), de(v, t.settings.description), T(d, `background: ${t.settings.buttonBackground ?? ""}; color: ${t.settings.buttonTextColor ?? ""};`), de(h, t.settings.buttonText);
|
|
2560
|
+
}), N(e, n), ge();
|
|
2561
|
+
}
|
|
2562
|
+
const ki = {
|
|
2563
|
+
banner: si,
|
|
2564
|
+
badge: oi,
|
|
2565
|
+
text: ci,
|
|
2566
|
+
button: hi,
|
|
2567
|
+
accordion: wi,
|
|
2568
|
+
ctaCard: Ei
|
|
2751
2569
|
};
|
|
2752
|
-
function
|
|
2570
|
+
function jt(e) {
|
|
2753
2571
|
return e === null || typeof e != "object" || Array.isArray(e) ? !1 : typeof e.en == "string";
|
|
2754
2572
|
}
|
|
2755
|
-
function
|
|
2756
|
-
return
|
|
2573
|
+
function Ti(e, t) {
|
|
2574
|
+
return jt(e) ? e[t] ?? e.en ?? "" : Array.isArray(e) ? e.map((n) => {
|
|
2757
2575
|
if (n === null || typeof n != "object") return n;
|
|
2758
2576
|
const r = {};
|
|
2759
2577
|
for (const [i, s] of Object.entries(n))
|
|
2760
|
-
r[i] =
|
|
2578
|
+
r[i] = jt(s) ? s[t] ?? s.en ?? "" : s;
|
|
2761
2579
|
return r;
|
|
2762
2580
|
}) : e;
|
|
2763
2581
|
}
|
|
2764
|
-
function
|
|
2582
|
+
function Si(e, t) {
|
|
2765
2583
|
const n = {};
|
|
2766
2584
|
for (const [r, i] of Object.entries(e))
|
|
2767
|
-
n[r] =
|
|
2585
|
+
n[r] = Ti(i, t);
|
|
2768
2586
|
return n;
|
|
2769
2587
|
}
|
|
2770
|
-
var
|
|
2771
|
-
function
|
|
2772
|
-
|
|
2773
|
-
let n =
|
|
2774
|
-
const s = /* @__PURE__ */
|
|
2775
|
-
const
|
|
2588
|
+
var Ci = /* @__PURE__ */ F("<div></div>");
|
|
2589
|
+
function Ai(e, t) {
|
|
2590
|
+
pe(t, !0);
|
|
2591
|
+
let n = lt(t, "locale", 3, "en"), r = lt(t, "containerClass", 3, ""), i = lt(t, "containerStyle", 3, "");
|
|
2592
|
+
const s = /* @__PURE__ */ st(() => () => {
|
|
2593
|
+
const o = t.data.global;
|
|
2776
2594
|
return [
|
|
2777
|
-
`background: ${
|
|
2778
|
-
`padding-top: ${
|
|
2779
|
-
`padding-bottom: ${
|
|
2780
|
-
`padding-left: ${
|
|
2781
|
-
`padding-right: ${
|
|
2595
|
+
`background: ${o.background ?? "#ffffff"}`,
|
|
2596
|
+
`padding-top: ${o.paddingTop ?? 0}px`,
|
|
2597
|
+
`padding-bottom: ${o.paddingBottom ?? 0}px`,
|
|
2598
|
+
`padding-left: ${o.paddingLeft ?? 0}px`,
|
|
2599
|
+
`padding-right: ${o.paddingRight ?? 0}px`,
|
|
2782
2600
|
i()
|
|
2783
2601
|
].filter(Boolean).join("; ");
|
|
2784
|
-
}),
|
|
2785
|
-
component:
|
|
2786
|
-
settings:
|
|
2787
|
-
name:
|
|
2788
|
-
})).filter((
|
|
2789
|
-
var
|
|
2790
|
-
|
|
2791
|
-
let u = () =>
|
|
2792
|
-
const d = /* @__PURE__ */
|
|
2793
|
-
var
|
|
2794
|
-
|
|
2795
|
-
|
|
2602
|
+
}), f = /* @__PURE__ */ st(() => t.data.components.map((o) => ({
|
|
2603
|
+
component: ki[o.name],
|
|
2604
|
+
settings: Si(o.settings, n()),
|
|
2605
|
+
name: o.name
|
|
2606
|
+
})).filter((o) => o.component !== void 0));
|
|
2607
|
+
var l = Ci();
|
|
2608
|
+
Tn(l, 21, () => y(f), ({ component: o, settings: a, name: u }) => u + JSON.stringify(a), (o, a) => {
|
|
2609
|
+
let u = () => y(a).component, v = () => y(a).settings;
|
|
2610
|
+
const d = /* @__PURE__ */ st(u);
|
|
2611
|
+
var h = Or(), c = pr(h);
|
|
2612
|
+
Vr(c, () => y(d), (p, w) => {
|
|
2613
|
+
w(p, {
|
|
2796
2614
|
get settings() {
|
|
2797
|
-
return
|
|
2615
|
+
return v();
|
|
2798
2616
|
}
|
|
2799
2617
|
});
|
|
2800
|
-
}),
|
|
2801
|
-
}),
|
|
2802
|
-
(
|
|
2803
|
-
|
|
2618
|
+
}), N(o, h);
|
|
2619
|
+
}), L(
|
|
2620
|
+
(o) => {
|
|
2621
|
+
Cn(l, 1, Gr(r())), T(l, o);
|
|
2804
2622
|
},
|
|
2805
|
-
[() =>
|
|
2806
|
-
),
|
|
2623
|
+
[() => y(s)()]
|
|
2624
|
+
), N(e, l), ge();
|
|
2807
2625
|
}
|
|
2808
|
-
function
|
|
2809
|
-
let r = /* @__PURE__ */
|
|
2810
|
-
const s =
|
|
2626
|
+
function Mi(e, t, n = "en") {
|
|
2627
|
+
let r = /* @__PURE__ */ V(me(t)), i = /* @__PURE__ */ V(me(n));
|
|
2628
|
+
const s = jr(Ai, {
|
|
2811
2629
|
target: e,
|
|
2812
2630
|
props: {
|
|
2813
2631
|
get data() {
|
|
2814
|
-
return
|
|
2632
|
+
return y(r);
|
|
2815
2633
|
},
|
|
2816
2634
|
get locale() {
|
|
2817
|
-
return
|
|
2635
|
+
return y(i);
|
|
2818
2636
|
}
|
|
2819
2637
|
}
|
|
2820
2638
|
});
|
|
2821
2639
|
return {
|
|
2822
|
-
update(
|
|
2823
|
-
|
|
2640
|
+
update(f) {
|
|
2641
|
+
J(r, f, !0);
|
|
2824
2642
|
},
|
|
2825
|
-
setLocale(
|
|
2826
|
-
|
|
2643
|
+
setLocale(f) {
|
|
2644
|
+
J(i, f, !0);
|
|
2827
2645
|
},
|
|
2828
2646
|
destroy() {
|
|
2829
|
-
|
|
2647
|
+
zr(s);
|
|
2830
2648
|
}
|
|
2831
2649
|
};
|
|
2832
2650
|
}
|
|
2833
2651
|
export {
|
|
2834
|
-
|
|
2652
|
+
Mi as createRenderer
|
|
2835
2653
|
};
|