@pie-players/pie-section-player-tools-session-debugger 0.3.5 → 0.3.7
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.
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Is = Object.defineProperty;
|
|
2
|
+
var Xn = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var l = (e, t, n) => (cn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), w = (e, t, n) => t.has(e) ?
|
|
8
|
-
var
|
|
9
|
-
typeof window < "u" && ((
|
|
10
|
-
const ks = 1, Ts = 2,
|
|
11
|
-
var
|
|
5
|
+
var Cs = (e, t, n) => t in e ? Is(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
|
+
var k = (e, t, n) => Cs(e, typeof t != "symbol" ? t + "" : t, n), cn = (e, t, n) => t.has(e) || Xn("Cannot " + n);
|
|
7
|
+
var l = (e, t, n) => (cn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), w = (e, t, n) => t.has(e) ? Xn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), m = (e, t, n, r) => (cn(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), T = (e, t, n) => (cn(e, t, "access private method"), n);
|
|
8
|
+
var ur;
|
|
9
|
+
typeof window < "u" && ((ur = window.__svelte ?? (window.__svelte = {})).v ?? (ur.v = /* @__PURE__ */ new Set())).add("5");
|
|
10
|
+
const ks = 1, Ts = 2, fr = "[", cr = "[!", Kn = "[?", dr = "]", wt = {}, O = /* @__PURE__ */ Symbol(), hr = "http://www.w3.org/1999/xhtml", hn = !1;
|
|
11
|
+
var vr = Array.isArray, As = Array.prototype.indexOf, bt = Array.prototype.includes, Ms = Array.from, Kt = Object.keys, Gt = Object.defineProperty, at = Object.getOwnPropertyDescriptor, Rs = Object.getOwnPropertyDescriptors, Ns = Object.prototype, Os = Array.prototype, _r = Object.getPrototypeOf, Gn = Object.isExtensible;
|
|
12
12
|
const Ds = () => {
|
|
13
13
|
};
|
|
14
14
|
function Ls(e) {
|
|
15
15
|
for (var t = 0; t < e.length; t++)
|
|
16
16
|
e[t]();
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function pr() {
|
|
19
19
|
var e, t, n = new Promise((r, s) => {
|
|
20
20
|
e = r, t = s;
|
|
21
21
|
});
|
|
22
22
|
return { promise: n, resolve: e, reject: t };
|
|
23
23
|
}
|
|
24
|
-
const P = 2,
|
|
24
|
+
const P = 2, It = 4, yt = 8, kn = 1 << 24, He = 16, we = 32, Fe = 64, vn = 128, Q = 512, D = 1024, L = 2048, ue = 4096, ee = 8192, ke = 16384, tt = 32768, $t = 65536, Jn = 1 << 17, Ps = 1 << 18, nt = 1 << 19, zs = 1 << 20, et = 65536, _n = 1 << 21, Tn = 1 << 22, De = 1 << 23, dn = /* @__PURE__ */ Symbol("$state"), js = /* @__PURE__ */ Symbol("legacy props"), Hs = /* @__PURE__ */ Symbol(""), Ye = new class extends Error {
|
|
25
25
|
constructor() {
|
|
26
26
|
super(...arguments);
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
k(this, "name", "StaleReactionError");
|
|
28
|
+
k(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
29
29
|
}
|
|
30
30
|
}(), Fs = (
|
|
31
31
|
// We gotta write it like this because after downleveling the pure comment may end up in the wrong location
|
|
32
32
|
!!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml")
|
|
33
|
-
),
|
|
34
|
-
function
|
|
33
|
+
), rn = 3, sn = 8;
|
|
34
|
+
function gr(e) {
|
|
35
35
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
36
36
|
}
|
|
37
37
|
function Bs() {
|
|
@@ -64,51 +64,51 @@ function Gs() {
|
|
|
64
64
|
function Js() {
|
|
65
65
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function on(e) {
|
|
68
68
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
69
69
|
}
|
|
70
70
|
function Zs() {
|
|
71
71
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
72
72
|
}
|
|
73
|
-
let
|
|
73
|
+
let I = !1;
|
|
74
74
|
function ot(e) {
|
|
75
|
-
|
|
75
|
+
I = e;
|
|
76
76
|
}
|
|
77
77
|
let E;
|
|
78
78
|
function fe(e) {
|
|
79
79
|
if (e === null)
|
|
80
|
-
throw
|
|
80
|
+
throw on(), wt;
|
|
81
81
|
return E = e;
|
|
82
82
|
}
|
|
83
83
|
function An() {
|
|
84
84
|
return fe(/* @__PURE__ */ Ae(E));
|
|
85
85
|
}
|
|
86
86
|
function ye(e) {
|
|
87
|
-
if (
|
|
87
|
+
if (I) {
|
|
88
88
|
if (/* @__PURE__ */ Ae(E) !== null)
|
|
89
|
-
throw
|
|
89
|
+
throw on(), wt;
|
|
90
90
|
E = e;
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
function Qs(e = 1) {
|
|
94
|
-
if (
|
|
94
|
+
if (I) {
|
|
95
95
|
for (var t = e, n = E; t--; )
|
|
96
96
|
n = /** @type {TemplateNode} */
|
|
97
97
|
/* @__PURE__ */ Ae(n);
|
|
98
98
|
E = n;
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function mr(e = !0) {
|
|
102
102
|
for (var t = 0, n = E; ; ) {
|
|
103
|
-
if (n.nodeType ===
|
|
103
|
+
if (n.nodeType === sn) {
|
|
104
104
|
var r = (
|
|
105
105
|
/** @type {Comment} */
|
|
106
106
|
n.data
|
|
107
107
|
);
|
|
108
|
-
if (r ===
|
|
108
|
+
if (r === dr) {
|
|
109
109
|
if (t === 0) return n;
|
|
110
110
|
t -= 1;
|
|
111
|
-
} else (r ===
|
|
111
|
+
} else (r === fr || r === cr || // "[1", "[2", etc. for if blocks
|
|
112
112
|
r[0] === "[" && !isNaN(Number(r.slice(1)))) && (t += 1);
|
|
113
113
|
}
|
|
114
114
|
var s = (
|
|
@@ -119,14 +119,14 @@ function gr(e = !0) {
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
function ei(e) {
|
|
122
|
-
if (!e || e.nodeType !==
|
|
123
|
-
throw
|
|
122
|
+
if (!e || e.nodeType !== sn)
|
|
123
|
+
throw on(), wt;
|
|
124
124
|
return (
|
|
125
125
|
/** @type {Comment} */
|
|
126
126
|
e.data
|
|
127
127
|
);
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function wr(e) {
|
|
130
130
|
return e === this.v;
|
|
131
131
|
}
|
|
132
132
|
function ti(e, t) {
|
|
@@ -139,7 +139,7 @@ let ri = !1, W = null;
|
|
|
139
139
|
function xt(e) {
|
|
140
140
|
W = e;
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function ln(e, t = !1, n) {
|
|
143
143
|
W = {
|
|
144
144
|
p: W,
|
|
145
145
|
i: !1,
|
|
@@ -150,7 +150,7 @@ function on(e, t = !1, n) {
|
|
|
150
150
|
l: null
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function an(e) {
|
|
154
154
|
var t = (
|
|
155
155
|
/** @type {ComponentContext} */
|
|
156
156
|
W
|
|
@@ -158,37 +158,37 @@ function ln(e) {
|
|
|
158
158
|
if (n !== null) {
|
|
159
159
|
t.e = null;
|
|
160
160
|
for (var r of n)
|
|
161
|
-
|
|
161
|
+
Br(r);
|
|
162
162
|
}
|
|
163
163
|
return e !== void 0 && (t.x = e), t.i = !0, W = t.p, e ?? /** @type {T} */
|
|
164
164
|
{};
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function br() {
|
|
167
167
|
return !0;
|
|
168
168
|
}
|
|
169
169
|
let qe = [];
|
|
170
|
-
function
|
|
170
|
+
function yr() {
|
|
171
171
|
var e = qe;
|
|
172
172
|
qe = [], Ls(e);
|
|
173
173
|
}
|
|
174
174
|
function ut(e) {
|
|
175
|
-
if (qe.length === 0 && !
|
|
175
|
+
if (qe.length === 0 && !At) {
|
|
176
176
|
var t = qe;
|
|
177
177
|
queueMicrotask(() => {
|
|
178
|
-
t === qe &&
|
|
178
|
+
t === qe && yr();
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
181
|
qe.push(e);
|
|
182
182
|
}
|
|
183
183
|
function si() {
|
|
184
184
|
for (; qe.length > 0; )
|
|
185
|
-
|
|
185
|
+
yr();
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function $r(e) {
|
|
188
188
|
var t = y;
|
|
189
189
|
if (t === null)
|
|
190
190
|
return b.f |= De, e;
|
|
191
|
-
if ((t.f & tt) === 0 && (t.f &
|
|
191
|
+
if ((t.f & tt) === 0 && (t.f & It) === 0)
|
|
192
192
|
throw e;
|
|
193
193
|
Oe(e, t);
|
|
194
194
|
}
|
|
@@ -209,43 +209,43 @@ function Oe(e, t) {
|
|
|
209
209
|
throw e;
|
|
210
210
|
}
|
|
211
211
|
const ii = -7169;
|
|
212
|
-
function
|
|
212
|
+
function N(e, t) {
|
|
213
213
|
e.f = e.f & ii | t;
|
|
214
214
|
}
|
|
215
215
|
function Mn(e) {
|
|
216
|
-
(e.f & Q) !== 0 || e.deps === null ?
|
|
216
|
+
(e.f & Q) !== 0 || e.deps === null ? N(e, D) : N(e, ue);
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function xr(e) {
|
|
219
219
|
if (e !== null)
|
|
220
220
|
for (const t of e)
|
|
221
|
-
(t.f & P) === 0 || (t.f & et) === 0 || (t.f ^= et,
|
|
221
|
+
(t.f & P) === 0 || (t.f & et) === 0 || (t.f ^= et, xr(
|
|
222
222
|
/** @type {Derived} */
|
|
223
223
|
t.deps
|
|
224
224
|
));
|
|
225
225
|
}
|
|
226
|
-
function
|
|
227
|
-
(e.f & L) !== 0 ? t.add(e) : (e.f & ue) !== 0 && n.add(e),
|
|
226
|
+
function Er(e, t, n) {
|
|
227
|
+
(e.f & L) !== 0 ? t.add(e) : (e.f & ue) !== 0 && n.add(e), xr(e.deps), N(e, D);
|
|
228
228
|
}
|
|
229
|
-
const
|
|
230
|
-
let
|
|
229
|
+
const Wt = /* @__PURE__ */ new Set();
|
|
230
|
+
let A = null, oe = null, H = [], un = null, At = !1, Et = null, oi = 1;
|
|
231
231
|
var Me, ct, Ke, dt, ht, vt, Re, ce, _t, V, pn, gn, mn, wn;
|
|
232
232
|
const Hn = class Hn {
|
|
233
233
|
constructor() {
|
|
234
234
|
w(this, V);
|
|
235
235
|
// for debugging. TODO remove once async is stable
|
|
236
|
-
|
|
236
|
+
k(this, "id", oi++);
|
|
237
237
|
/**
|
|
238
238
|
* The current values of any sources that are updated in this batch
|
|
239
239
|
* They keys of this map are identical to `this.#previous`
|
|
240
240
|
* @type {Map<Source, any>}
|
|
241
241
|
*/
|
|
242
|
-
|
|
242
|
+
k(this, "current", /* @__PURE__ */ new Map());
|
|
243
243
|
/**
|
|
244
244
|
* The values of any sources that are updated in this batch _before_ those updates took place.
|
|
245
245
|
* They keys of this map are identical to `this.#current`
|
|
246
246
|
* @type {Map<Source, any>}
|
|
247
247
|
*/
|
|
248
|
-
|
|
248
|
+
k(this, "previous", /* @__PURE__ */ new Map());
|
|
249
249
|
/**
|
|
250
250
|
* When the batch is committed (and the DOM is updated), we need to remove old branches
|
|
251
251
|
* and append new ones by calling the functions added inside (if/each/key/etc) blocks
|
|
@@ -289,7 +289,7 @@ const Hn = class Hn {
|
|
|
289
289
|
* @type {Map<Effect, { d: Effect[], m: Effect[] }>}
|
|
290
290
|
*/
|
|
291
291
|
w(this, ce, /* @__PURE__ */ new Map());
|
|
292
|
-
|
|
292
|
+
k(this, "is_fork", !1);
|
|
293
293
|
w(this, _t, !1);
|
|
294
294
|
}
|
|
295
295
|
/**
|
|
@@ -309,9 +309,9 @@ const Hn = class Hn {
|
|
|
309
309
|
if (n) {
|
|
310
310
|
l(this, ce).delete(t);
|
|
311
311
|
for (var r of n.d)
|
|
312
|
-
|
|
312
|
+
N(r, L), pe(r);
|
|
313
313
|
for (r of n.m)
|
|
314
|
-
|
|
314
|
+
N(r, ue), pe(r);
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
/**
|
|
@@ -322,15 +322,15 @@ const Hn = class Hn {
|
|
|
322
322
|
H = [], this.apply();
|
|
323
323
|
var n = Et = [], r = [];
|
|
324
324
|
for (const s of t)
|
|
325
|
-
|
|
326
|
-
if (Et = null,
|
|
327
|
-
|
|
325
|
+
T(this, V, gn).call(this, s, n, r);
|
|
326
|
+
if (Et = null, T(this, V, pn).call(this)) {
|
|
327
|
+
T(this, V, mn).call(this, r), T(this, V, mn).call(this, n);
|
|
328
328
|
for (const [s, i] of l(this, ce))
|
|
329
|
-
|
|
329
|
+
kr(s, i);
|
|
330
330
|
} else {
|
|
331
|
-
|
|
331
|
+
A = null;
|
|
332
332
|
for (const s of l(this, Me)) s(this);
|
|
333
|
-
l(this, Me).clear(), l(this, Ke) === 0 &&
|
|
333
|
+
l(this, Me).clear(), l(this, Ke) === 0 && T(this, V, wn).call(this), Zn(r), Zn(n), l(this, vt).clear(), l(this, Re).clear(), l(this, ht)?.resolve();
|
|
334
334
|
}
|
|
335
335
|
oe = null;
|
|
336
336
|
}
|
|
@@ -344,17 +344,17 @@ const Hn = class Hn {
|
|
|
344
344
|
n !== O && !this.previous.has(t) && this.previous.set(t, n), (t.f & De) === 0 && (this.current.set(t, t.v), oe?.set(t, t.v));
|
|
345
345
|
}
|
|
346
346
|
activate() {
|
|
347
|
-
|
|
347
|
+
A = this, this.apply();
|
|
348
348
|
}
|
|
349
349
|
deactivate() {
|
|
350
|
-
|
|
350
|
+
A === this && (A = null, oe = null);
|
|
351
351
|
}
|
|
352
352
|
flush() {
|
|
353
353
|
if (H.length > 0)
|
|
354
|
-
|
|
354
|
+
A = this, Sr();
|
|
355
355
|
else if (l(this, Ke) === 0 && !this.is_fork) {
|
|
356
356
|
for (const t of l(this, Me)) t(this);
|
|
357
|
-
l(this, Me).clear(),
|
|
357
|
+
l(this, Me).clear(), T(this, V, wn).call(this), l(this, ht)?.resolve();
|
|
358
358
|
}
|
|
359
359
|
this.deactivate();
|
|
360
360
|
}
|
|
@@ -375,14 +375,14 @@ const Hn = class Hn {
|
|
|
375
375
|
*/
|
|
376
376
|
decrement(t) {
|
|
377
377
|
m(this, Ke, l(this, Ke) - 1), t && m(this, dt, l(this, dt) - 1), !l(this, _t) && (m(this, _t, !0), ut(() => {
|
|
378
|
-
m(this, _t, !1),
|
|
378
|
+
m(this, _t, !1), T(this, V, pn).call(this) ? H.length > 0 && this.flush() : this.revive();
|
|
379
379
|
}));
|
|
380
380
|
}
|
|
381
381
|
revive() {
|
|
382
382
|
for (const t of l(this, vt))
|
|
383
|
-
l(this, Re).delete(t),
|
|
383
|
+
l(this, Re).delete(t), N(t, L), pe(t);
|
|
384
384
|
for (const t of l(this, Re))
|
|
385
|
-
|
|
385
|
+
N(t, ue), pe(t);
|
|
386
386
|
this.flush();
|
|
387
387
|
}
|
|
388
388
|
/** @param {(batch: Batch) => void} fn */
|
|
@@ -394,16 +394,16 @@ const Hn = class Hn {
|
|
|
394
394
|
l(this, ct).add(t);
|
|
395
395
|
}
|
|
396
396
|
settled() {
|
|
397
|
-
return (l(this, ht) ?? m(this, ht,
|
|
397
|
+
return (l(this, ht) ?? m(this, ht, pr())).promise;
|
|
398
398
|
}
|
|
399
399
|
static ensure() {
|
|
400
|
-
if (
|
|
401
|
-
const t =
|
|
402
|
-
|
|
403
|
-
|
|
400
|
+
if (A === null) {
|
|
401
|
+
const t = A = new Hn();
|
|
402
|
+
Wt.add(A), At || ut(() => {
|
|
403
|
+
A === t && t.flush();
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
|
-
return
|
|
406
|
+
return A;
|
|
407
407
|
}
|
|
408
408
|
apply() {
|
|
409
409
|
}
|
|
@@ -422,7 +422,7 @@ gn = function(t, n, r) {
|
|
|
422
422
|
for (var s = t.first; s !== null; ) {
|
|
423
423
|
var i = s.f, o = (i & (we | Fe)) !== 0, u = o && (i & D) !== 0, a = (i & ee) !== 0, f = u || l(this, ce).has(s);
|
|
424
424
|
if (!f && s.fn !== null) {
|
|
425
|
-
o ? a || (s.f ^= D) : (i &
|
|
425
|
+
o ? a || (s.f ^= D) : (i & It) !== 0 ? n.push(s) : (i & (yt | kn)) !== 0 && a ? r.push(s) : jt(s) && (St(s), (i & He) !== 0 && (l(this, Re).add(s), a && N(s, L)));
|
|
426
426
|
var c = s.first;
|
|
427
427
|
if (c !== null) {
|
|
428
428
|
s = c;
|
|
@@ -443,13 +443,13 @@ gn = function(t, n, r) {
|
|
|
443
443
|
*/
|
|
444
444
|
mn = function(t) {
|
|
445
445
|
for (var n = 0; n < t.length; n += 1)
|
|
446
|
-
|
|
446
|
+
Er(t[n], l(this, vt), l(this, Re));
|
|
447
447
|
}, wn = function() {
|
|
448
448
|
var i;
|
|
449
|
-
if (
|
|
449
|
+
if (Wt.size > 1) {
|
|
450
450
|
this.previous.clear();
|
|
451
|
-
var t =
|
|
452
|
-
for (const o of
|
|
451
|
+
var t = A, n = oe, r = !0;
|
|
452
|
+
for (const o of Wt) {
|
|
453
453
|
if (o === this) {
|
|
454
454
|
r = !1;
|
|
455
455
|
continue;
|
|
@@ -471,36 +471,36 @@ mn = function(t) {
|
|
|
471
471
|
H = [];
|
|
472
472
|
const f = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Map();
|
|
473
473
|
for (const h of u)
|
|
474
|
-
|
|
474
|
+
Ir(h, a, f, c);
|
|
475
475
|
if (H.length > 0) {
|
|
476
|
-
|
|
476
|
+
A = o, o.apply();
|
|
477
477
|
for (const h of H)
|
|
478
|
-
|
|
478
|
+
T(i = o, V, gn).call(i, h, [], []);
|
|
479
479
|
o.deactivate();
|
|
480
480
|
}
|
|
481
481
|
H = s;
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
|
-
|
|
484
|
+
A = t, oe = n;
|
|
485
485
|
}
|
|
486
|
-
l(this, ce).clear(),
|
|
486
|
+
l(this, ce).clear(), Wt.delete(this);
|
|
487
487
|
};
|
|
488
488
|
let Te = Hn;
|
|
489
489
|
function le(e) {
|
|
490
|
-
var t =
|
|
491
|
-
|
|
490
|
+
var t = At;
|
|
491
|
+
At = !0;
|
|
492
492
|
try {
|
|
493
493
|
for (var n; ; ) {
|
|
494
|
-
if (si(), H.length === 0 && (
|
|
495
|
-
return
|
|
494
|
+
if (si(), H.length === 0 && (A?.flush(), H.length === 0))
|
|
495
|
+
return un = null, /** @type {T} */
|
|
496
496
|
n;
|
|
497
|
-
|
|
497
|
+
Sr();
|
|
498
498
|
}
|
|
499
499
|
} finally {
|
|
500
|
-
|
|
500
|
+
At = t;
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function Sr() {
|
|
504
504
|
var e = null;
|
|
505
505
|
try {
|
|
506
506
|
for (var t = 0; H.length > 0; ) {
|
|
@@ -512,23 +512,23 @@ function Er() {
|
|
|
512
512
|
n.process(H), Le.clear();
|
|
513
513
|
}
|
|
514
514
|
} finally {
|
|
515
|
-
H = [],
|
|
515
|
+
H = [], un = null, Et = null;
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
518
|
function li() {
|
|
519
519
|
try {
|
|
520
520
|
qs();
|
|
521
521
|
} catch (e) {
|
|
522
|
-
Oe(e,
|
|
522
|
+
Oe(e, un);
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
let $e = null;
|
|
526
|
-
function
|
|
526
|
+
function Zn(e) {
|
|
527
527
|
var t = e.length;
|
|
528
528
|
if (t !== 0) {
|
|
529
529
|
for (var n = 0; n < t; ) {
|
|
530
530
|
var r = e[n++];
|
|
531
|
-
if ((r.f & (ke | ee)) === 0 &&
|
|
531
|
+
if ((r.f & (ke | ee)) === 0 && jt(r) && ($e = /* @__PURE__ */ new Set(), St(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && qr(r), $e?.size > 0)) {
|
|
532
532
|
Le.clear();
|
|
533
533
|
for (const s of $e) {
|
|
534
534
|
if ((s.f & (ke | ee)) !== 0) continue;
|
|
@@ -547,17 +547,17 @@ function Jn(e) {
|
|
|
547
547
|
$e = null;
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function Ir(e, t, n, r) {
|
|
551
551
|
if (!n.has(e) && (n.add(e), e.reactions !== null))
|
|
552
552
|
for (const s of e.reactions) {
|
|
553
553
|
const i = s.f;
|
|
554
|
-
(i & P) !== 0 ?
|
|
554
|
+
(i & P) !== 0 ? Ir(
|
|
555
555
|
/** @type {Derived} */
|
|
556
556
|
s,
|
|
557
557
|
t,
|
|
558
558
|
n,
|
|
559
559
|
r
|
|
560
|
-
) : (i & (Tn | He)) !== 0 && (i & L) === 0 && Cr(s, t, r) && (
|
|
560
|
+
) : (i & (Tn | He)) !== 0 && (i & L) === 0 && Cr(s, t, r) && (N(s, L), pe(
|
|
561
561
|
/** @type {Effect} */
|
|
562
562
|
s
|
|
563
563
|
));
|
|
@@ -585,8 +585,8 @@ function Cr(e, t, n) {
|
|
|
585
585
|
return n.set(e, !1), !1;
|
|
586
586
|
}
|
|
587
587
|
function pe(e) {
|
|
588
|
-
var t =
|
|
589
|
-
if (n?.is_pending && (e.f & (
|
|
588
|
+
var t = un = e, n = t.b;
|
|
589
|
+
if (n?.is_pending && (e.f & (It | yt | kn)) !== 0 && (e.f & tt) === 0) {
|
|
590
590
|
n.defer_effect(e);
|
|
591
591
|
return;
|
|
592
592
|
}
|
|
@@ -603,19 +603,19 @@ function pe(e) {
|
|
|
603
603
|
}
|
|
604
604
|
H.push(t);
|
|
605
605
|
}
|
|
606
|
-
function
|
|
606
|
+
function kr(e, t) {
|
|
607
607
|
if (!((e.f & we) !== 0 && (e.f & D) !== 0)) {
|
|
608
|
-
(e.f & L) !== 0 ? t.d.push(e) : (e.f & ue) !== 0 && t.m.push(e),
|
|
608
|
+
(e.f & L) !== 0 ? t.d.push(e) : (e.f & ue) !== 0 && t.m.push(e), N(e, D);
|
|
609
609
|
for (var n = e.first; n !== null; )
|
|
610
|
-
|
|
610
|
+
kr(n, t), n = n.next;
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
613
|
function ai(e) {
|
|
614
|
-
let t = 0, n =
|
|
614
|
+
let t = 0, n = zt(0), r;
|
|
615
615
|
return () => {
|
|
616
|
-
Ln() && (x(n),
|
|
616
|
+
Ln() && (x(n), Wr(() => (t === 0 && (r = rs(() => e(() => Mt(n)))), t += 1, () => {
|
|
617
617
|
ut(() => {
|
|
618
|
-
t -= 1, t === 0 && (r?.(), r = void 0,
|
|
618
|
+
t -= 1, t === 0 && (r?.(), r = void 0, Mt(n));
|
|
619
619
|
});
|
|
620
620
|
})));
|
|
621
621
|
};
|
|
@@ -624,7 +624,7 @@ var ui = $t | nt;
|
|
|
624
624
|
function fi(e, t, n, r) {
|
|
625
625
|
new ci(e, t, n, r);
|
|
626
626
|
}
|
|
627
|
-
var U,
|
|
627
|
+
var U, Dt, de, Ge, j, he, X, se, Se, Je, Ne, pt, gt, mt, Ie, tn, R, Tr, Ar, Mr, bn, Yt, qt, yn;
|
|
628
628
|
class ci {
|
|
629
629
|
/**
|
|
630
630
|
* @param {TemplateNode} node
|
|
@@ -633,20 +633,20 @@ class ci {
|
|
|
633
633
|
* @param {((error: unknown) => unknown) | undefined} [transform_error]
|
|
634
634
|
*/
|
|
635
635
|
constructor(t, n, r, s) {
|
|
636
|
-
w(this,
|
|
636
|
+
w(this, R);
|
|
637
637
|
/** @type {Boundary | null} */
|
|
638
|
-
|
|
639
|
-
|
|
638
|
+
k(this, "parent");
|
|
639
|
+
k(this, "is_pending", !1);
|
|
640
640
|
/**
|
|
641
641
|
* API-level transformError transform function. Transforms errors before they reach the `failed` snippet.
|
|
642
642
|
* Inherited from parent boundary, or defaults to identity.
|
|
643
643
|
* @type {(error: unknown) => unknown}
|
|
644
644
|
*/
|
|
645
|
-
|
|
645
|
+
k(this, "transform_error");
|
|
646
646
|
/** @type {TemplateNode} */
|
|
647
647
|
w(this, U);
|
|
648
648
|
/** @type {TemplateNode | null} */
|
|
649
|
-
w(this,
|
|
649
|
+
w(this, Dt, I ? E : null);
|
|
650
650
|
/** @type {BoundaryProps} */
|
|
651
651
|
w(this, de);
|
|
652
652
|
/** @type {((anchor: Node) => void)} */
|
|
@@ -675,9 +675,9 @@ class ci {
|
|
|
675
675
|
* calls followed by no-op flushes
|
|
676
676
|
* @type {Source<number> | null}
|
|
677
677
|
*/
|
|
678
|
-
w(this,
|
|
679
|
-
w(this,
|
|
680
|
-
m(this,
|
|
678
|
+
w(this, Ie, null);
|
|
679
|
+
w(this, tn, ai(() => (m(this, Ie, zt(l(this, Je))), () => {
|
|
680
|
+
m(this, Ie, null);
|
|
681
681
|
})));
|
|
682
682
|
m(this, U, t), m(this, de, n), m(this, Ge, (i) => {
|
|
683
683
|
var o = (
|
|
@@ -686,28 +686,28 @@ class ci {
|
|
|
686
686
|
);
|
|
687
687
|
o.b = this, o.f |= vn, r(i);
|
|
688
688
|
}), this.parent = /** @type {Effect} */
|
|
689
|
-
y.b, this.transform_error = s ?? this.parent?.transform_error ?? ((i) => i), m(this, j,
|
|
690
|
-
if (
|
|
689
|
+
y.b, this.transform_error = s ?? this.parent?.transform_error ?? ((i) => i), m(this, j, Vr(() => {
|
|
690
|
+
if (I) {
|
|
691
691
|
const i = (
|
|
692
692
|
/** @type {Comment} */
|
|
693
|
-
l(this,
|
|
693
|
+
l(this, Dt)
|
|
694
694
|
);
|
|
695
695
|
An();
|
|
696
|
-
const o = i.data ===
|
|
697
|
-
if (i.data.startsWith(
|
|
698
|
-
const a = JSON.parse(i.data.slice(
|
|
699
|
-
|
|
700
|
-
} else o ?
|
|
696
|
+
const o = i.data === cr;
|
|
697
|
+
if (i.data.startsWith(Kn)) {
|
|
698
|
+
const a = JSON.parse(i.data.slice(Kn.length));
|
|
699
|
+
T(this, R, Ar).call(this, a);
|
|
700
|
+
} else o ? T(this, R, Mr).call(this) : T(this, R, Tr).call(this);
|
|
701
701
|
} else
|
|
702
|
-
|
|
703
|
-
}, ui)),
|
|
702
|
+
T(this, R, bn).call(this);
|
|
703
|
+
}, ui)), I && m(this, U, E);
|
|
704
704
|
}
|
|
705
705
|
/**
|
|
706
706
|
* Defer an effect inside a pending boundary until the boundary resolves
|
|
707
707
|
* @param {Effect} effect
|
|
708
708
|
*/
|
|
709
709
|
defer_effect(t) {
|
|
710
|
-
|
|
710
|
+
Er(t, l(this, gt), l(this, mt));
|
|
711
711
|
}
|
|
712
712
|
/**
|
|
713
713
|
* Returns `false` if the effect exists inside a boundary whose pending snippet is shown
|
|
@@ -726,14 +726,14 @@ class ci {
|
|
|
726
726
|
* @param {1 | -1} d
|
|
727
727
|
*/
|
|
728
728
|
update_pending_count(t) {
|
|
729
|
-
|
|
730
|
-
m(this, pt, !1), l(this,
|
|
729
|
+
T(this, R, yn).call(this, t), m(this, Je, l(this, Je) + t), !(!l(this, Ie) || l(this, pt)) && (m(this, pt, !0), ut(() => {
|
|
730
|
+
m(this, pt, !1), l(this, Ie) && Jt(l(this, Ie), l(this, Je));
|
|
731
731
|
}));
|
|
732
732
|
}
|
|
733
733
|
get_effect_pending() {
|
|
734
|
-
return l(this,
|
|
734
|
+
return l(this, tn).call(this), x(
|
|
735
735
|
/** @type {Source<number>} */
|
|
736
|
-
l(this,
|
|
736
|
+
l(this, Ie)
|
|
737
737
|
);
|
|
738
738
|
}
|
|
739
739
|
/** @param {unknown} error */
|
|
@@ -742,20 +742,20 @@ class ci {
|
|
|
742
742
|
let r = l(this, de).failed;
|
|
743
743
|
if (!n && !r)
|
|
744
744
|
throw t;
|
|
745
|
-
l(this, he) && (B(l(this, he)), m(this, he, null)), l(this, X) && (B(l(this, X)), m(this, X, null)), l(this, se) && (B(l(this, se)), m(this, se, null)),
|
|
745
|
+
l(this, he) && (B(l(this, he)), m(this, he, null)), l(this, X) && (B(l(this, X)), m(this, X, null)), l(this, se) && (B(l(this, se)), m(this, se, null)), I && (fe(
|
|
746
746
|
/** @type {TemplateNode} */
|
|
747
|
-
l(this,
|
|
748
|
-
), Qs(), fe(
|
|
747
|
+
l(this, Dt)
|
|
748
|
+
), Qs(), fe(mr()));
|
|
749
749
|
var s = !1, i = !1;
|
|
750
750
|
const o = () => {
|
|
751
751
|
if (s) {
|
|
752
752
|
Zs();
|
|
753
753
|
return;
|
|
754
754
|
}
|
|
755
|
-
s = !0, i && Js(), l(this, se) !== null &&
|
|
755
|
+
s = !0, i && Js(), l(this, se) !== null && Nt(l(this, se), () => {
|
|
756
756
|
m(this, se, null);
|
|
757
|
-
}),
|
|
758
|
-
Te.ensure(),
|
|
757
|
+
}), T(this, R, qt).call(this, () => {
|
|
758
|
+
Te.ensure(), T(this, R, bn).call(this);
|
|
759
759
|
});
|
|
760
760
|
}, u = (a) => {
|
|
761
761
|
try {
|
|
@@ -763,7 +763,7 @@ class ci {
|
|
|
763
763
|
} catch (f) {
|
|
764
764
|
Oe(f, l(this, j) && l(this, j).parent);
|
|
765
765
|
}
|
|
766
|
-
r && m(this, se,
|
|
766
|
+
r && m(this, se, T(this, R, qt).call(this, () => {
|
|
767
767
|
Te.ensure();
|
|
768
768
|
try {
|
|
769
769
|
return Ee(() => {
|
|
@@ -803,7 +803,7 @@ class ci {
|
|
|
803
803
|
});
|
|
804
804
|
}
|
|
805
805
|
}
|
|
806
|
-
U = new WeakMap(),
|
|
806
|
+
U = new WeakMap(), Dt = new WeakMap(), de = new WeakMap(), Ge = new WeakMap(), j = new WeakMap(), he = new WeakMap(), X = new WeakMap(), se = new WeakMap(), Se = new WeakMap(), Je = new WeakMap(), Ne = new WeakMap(), pt = new WeakMap(), gt = new WeakMap(), mt = new WeakMap(), Ie = new WeakMap(), tn = new WeakMap(), R = new WeakSet(), Tr = function() {
|
|
807
807
|
try {
|
|
808
808
|
m(this, he, Ee(() => l(this, Ge).call(this, l(this, U))));
|
|
809
809
|
} catch (t) {
|
|
@@ -812,7 +812,7 @@ U = new WeakMap(), Ot = new WeakMap(), de = new WeakMap(), Ge = new WeakMap(), j
|
|
|
812
812
|
}, /**
|
|
813
813
|
* @param {unknown} error The deserialized error from the server's hydration comment
|
|
814
814
|
*/
|
|
815
|
-
|
|
815
|
+
Ar = function(t) {
|
|
816
816
|
const n = l(this, de).failed;
|
|
817
817
|
n && m(this, se, Ee(() => {
|
|
818
818
|
n(
|
|
@@ -822,17 +822,17 @@ Tr = function(t) {
|
|
|
822
822
|
}
|
|
823
823
|
);
|
|
824
824
|
}));
|
|
825
|
-
},
|
|
825
|
+
}, Mr = function() {
|
|
826
826
|
const t = l(this, de).pending;
|
|
827
827
|
t && (this.is_pending = !0, m(this, X, Ee(() => t(l(this, U)))), ut(() => {
|
|
828
828
|
var n = m(this, Se, document.createDocumentFragment()), r = Pe();
|
|
829
|
-
n.append(r), m(this, he,
|
|
829
|
+
n.append(r), m(this, he, T(this, R, qt).call(this, () => (Te.ensure(), Ee(() => l(this, Ge).call(this, r))))), l(this, Ne) === 0 && (l(this, U).before(n), m(this, Se, null), Nt(
|
|
830
830
|
/** @type {Effect} */
|
|
831
831
|
l(this, X),
|
|
832
832
|
() => {
|
|
833
833
|
m(this, X, null);
|
|
834
834
|
}
|
|
835
|
-
),
|
|
835
|
+
), T(this, R, Yt).call(this));
|
|
836
836
|
}));
|
|
837
837
|
}, bn = function() {
|
|
838
838
|
try {
|
|
@@ -840,35 +840,35 @@ Tr = function(t) {
|
|
|
840
840
|
l(this, Ge).call(this, l(this, U));
|
|
841
841
|
})), l(this, Ne) > 0) {
|
|
842
842
|
var t = m(this, Se, document.createDocumentFragment());
|
|
843
|
-
|
|
843
|
+
Kr(l(this, he), t);
|
|
844
844
|
const n = (
|
|
845
845
|
/** @type {(anchor: Node) => void} */
|
|
846
846
|
l(this, de).pending
|
|
847
847
|
);
|
|
848
848
|
m(this, X, Ee(() => n(l(this, U))));
|
|
849
849
|
} else
|
|
850
|
-
|
|
850
|
+
T(this, R, Yt).call(this);
|
|
851
851
|
} catch (n) {
|
|
852
852
|
this.error(n);
|
|
853
853
|
}
|
|
854
|
-
},
|
|
854
|
+
}, Yt = function() {
|
|
855
855
|
this.is_pending = !1;
|
|
856
856
|
for (const t of l(this, gt))
|
|
857
|
-
|
|
857
|
+
N(t, L), pe(t);
|
|
858
858
|
for (const t of l(this, mt))
|
|
859
|
-
|
|
859
|
+
N(t, ue), pe(t);
|
|
860
860
|
l(this, gt).clear(), l(this, mt).clear();
|
|
861
861
|
}, /**
|
|
862
862
|
* @template T
|
|
863
863
|
* @param {() => T} fn
|
|
864
864
|
*/
|
|
865
|
-
|
|
865
|
+
qt = function(t) {
|
|
866
866
|
var n = y, r = b, s = W;
|
|
867
867
|
me(l(this, j)), ne(l(this, j)), xt(l(this, j).ctx);
|
|
868
868
|
try {
|
|
869
869
|
return t();
|
|
870
870
|
} catch (i) {
|
|
871
|
-
return
|
|
871
|
+
return $r(i), null;
|
|
872
872
|
} finally {
|
|
873
873
|
me(n), ne(r), xt(s);
|
|
874
874
|
}
|
|
@@ -880,10 +880,10 @@ Yt = function(t) {
|
|
|
880
880
|
yn = function(t) {
|
|
881
881
|
var n;
|
|
882
882
|
if (!this.has_pending_snippet()) {
|
|
883
|
-
this.parent &&
|
|
883
|
+
this.parent && T(n = this.parent, R, yn).call(n, t);
|
|
884
884
|
return;
|
|
885
885
|
}
|
|
886
|
-
m(this, Ne, l(this, Ne) + t), l(this, Ne) === 0 && (
|
|
886
|
+
m(this, Ne, l(this, Ne) + t), l(this, Ne) === 0 && (T(this, R, Yt).call(this), l(this, X) && Nt(l(this, X), () => {
|
|
887
887
|
m(this, X, null);
|
|
888
888
|
}), l(this, Se) && (l(this, U).before(l(this, Se)), m(this, Se, null)));
|
|
889
889
|
};
|
|
@@ -917,13 +917,13 @@ function di(e, t, n, r) {
|
|
|
917
917
|
a ? a.then(c) : c();
|
|
918
918
|
}
|
|
919
919
|
function hi() {
|
|
920
|
-
var e = y, t = b, n = W, r =
|
|
920
|
+
var e = y, t = b, n = W, r = A;
|
|
921
921
|
return function(i = !0) {
|
|
922
922
|
me(e), ne(t), xt(n), i && r?.activate();
|
|
923
923
|
};
|
|
924
924
|
}
|
|
925
925
|
function $n(e = !0) {
|
|
926
|
-
me(null), ne(null), xt(null), e &&
|
|
926
|
+
me(null), ne(null), xt(null), e && A?.deactivate();
|
|
927
927
|
}
|
|
928
928
|
function vi() {
|
|
929
929
|
var e = (
|
|
@@ -932,7 +932,7 @@ function vi() {
|
|
|
932
932
|
y.b
|
|
933
933
|
), t = (
|
|
934
934
|
/** @type {Batch} */
|
|
935
|
-
|
|
935
|
+
A
|
|
936
936
|
), n = e.is_rendered();
|
|
937
937
|
return e.update_pending_count(1), t.increment(n), () => {
|
|
938
938
|
e.update_pending_count(-1), t.decrement(n);
|
|
@@ -948,7 +948,7 @@ function Rn(e) {
|
|
|
948
948
|
ctx: W,
|
|
949
949
|
deps: null,
|
|
950
950
|
effects: null,
|
|
951
|
-
equals:
|
|
951
|
+
equals: wr,
|
|
952
952
|
f: t,
|
|
953
953
|
fn: e,
|
|
954
954
|
reactions: null,
|
|
@@ -970,12 +970,12 @@ function _i(e, t, n) {
|
|
|
970
970
|
/** @type {Promise<V>} */
|
|
971
971
|
/** @type {unknown} */
|
|
972
972
|
void 0
|
|
973
|
-
), i =
|
|
973
|
+
), i = zt(
|
|
974
974
|
/** @type {V} */
|
|
975
975
|
O
|
|
976
976
|
), o = !b, u = /* @__PURE__ */ new Map();
|
|
977
977
|
return Ti(() => {
|
|
978
|
-
var a =
|
|
978
|
+
var a = pr();
|
|
979
979
|
s = a.promise;
|
|
980
980
|
try {
|
|
981
981
|
Promise.resolve(e()).then(a.resolve, a.reject).finally($n);
|
|
@@ -984,7 +984,7 @@ function _i(e, t, n) {
|
|
|
984
984
|
}
|
|
985
985
|
var f = (
|
|
986
986
|
/** @type {Batch} */
|
|
987
|
-
|
|
987
|
+
A
|
|
988
988
|
);
|
|
989
989
|
if (o) {
|
|
990
990
|
var c = vi();
|
|
@@ -992,9 +992,9 @@ function _i(e, t, n) {
|
|
|
992
992
|
}
|
|
993
993
|
const h = (v, g = void 0) => {
|
|
994
994
|
if (f.activate(), g)
|
|
995
|
-
g !== Ye && (i.f |= De,
|
|
995
|
+
g !== Ye && (i.f |= De, Jt(i, g));
|
|
996
996
|
else {
|
|
997
|
-
(i.f & De) !== 0 && (i.f ^= De),
|
|
997
|
+
(i.f & De) !== 0 && (i.f ^= De), Jt(i, v);
|
|
998
998
|
for (const [d, $] of u) {
|
|
999
999
|
if (u.delete(d), d === f) break;
|
|
1000
1000
|
$.reject(Ye);
|
|
@@ -1017,9 +1017,9 @@ function _i(e, t, n) {
|
|
|
1017
1017
|
});
|
|
1018
1018
|
}
|
|
1019
1019
|
// @__NO_SIDE_EFFECTS__
|
|
1020
|
-
function
|
|
1020
|
+
function Rr(e) {
|
|
1021
1021
|
const t = /* @__PURE__ */ Rn(e);
|
|
1022
|
-
return
|
|
1022
|
+
return Gr(t), t;
|
|
1023
1023
|
}
|
|
1024
1024
|
function pi(e) {
|
|
1025
1025
|
var t = e.effects;
|
|
@@ -1047,40 +1047,40 @@ function Nn(e) {
|
|
|
1047
1047
|
var t, n = y;
|
|
1048
1048
|
me(gi(e));
|
|
1049
1049
|
try {
|
|
1050
|
-
e.f &= ~et, pi(e), t =
|
|
1050
|
+
e.f &= ~et, pi(e), t = es(e);
|
|
1051
1051
|
} finally {
|
|
1052
1052
|
me(n);
|
|
1053
1053
|
}
|
|
1054
1054
|
return t;
|
|
1055
1055
|
}
|
|
1056
|
-
function
|
|
1056
|
+
function Nr(e) {
|
|
1057
1057
|
var t = Nn(e);
|
|
1058
|
-
if (!e.equals(t) && (e.wv =
|
|
1059
|
-
|
|
1058
|
+
if (!e.equals(t) && (e.wv = Zr(), (!A?.is_fork || e.deps === null) && (e.v = t, e.deps === null))) {
|
|
1059
|
+
N(e, D);
|
|
1060
1060
|
return;
|
|
1061
1061
|
}
|
|
1062
|
-
je || (oe !== null ? (Ln() ||
|
|
1062
|
+
je || (oe !== null ? (Ln() || A?.is_fork) && oe.set(e, t) : Mn(e));
|
|
1063
1063
|
}
|
|
1064
1064
|
function mi(e) {
|
|
1065
1065
|
if (e.effects !== null)
|
|
1066
1066
|
for (const t of e.effects)
|
|
1067
|
-
(t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(Ye), t.teardown = Ds, t.ac = null,
|
|
1067
|
+
(t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(Ye), t.teardown = Ds, t.ac = null, Ot(t, 0), Pn(t));
|
|
1068
1068
|
}
|
|
1069
|
-
function
|
|
1069
|
+
function Or(e) {
|
|
1070
1070
|
if (e.effects !== null)
|
|
1071
1071
|
for (const t of e.effects)
|
|
1072
1072
|
t.teardown && St(t);
|
|
1073
1073
|
}
|
|
1074
1074
|
let xn = /* @__PURE__ */ new Set();
|
|
1075
1075
|
const Le = /* @__PURE__ */ new Map();
|
|
1076
|
-
let
|
|
1077
|
-
function
|
|
1076
|
+
let Dr = !1;
|
|
1077
|
+
function zt(e, t) {
|
|
1078
1078
|
var n = {
|
|
1079
1079
|
f: 0,
|
|
1080
1080
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
1081
1081
|
v: e,
|
|
1082
1082
|
reactions: null,
|
|
1083
|
-
equals:
|
|
1083
|
+
equals: wr,
|
|
1084
1084
|
rv: 0,
|
|
1085
1085
|
wv: 0
|
|
1086
1086
|
};
|
|
@@ -1088,22 +1088,22 @@ function Pt(e, t) {
|
|
|
1088
1088
|
}
|
|
1089
1089
|
// @__NO_SIDE_EFFECTS__
|
|
1090
1090
|
function z(e, t) {
|
|
1091
|
-
const n =
|
|
1092
|
-
return
|
|
1091
|
+
const n = zt(e);
|
|
1092
|
+
return Gr(n), n;
|
|
1093
1093
|
}
|
|
1094
1094
|
// @__NO_SIDE_EFFECTS__
|
|
1095
1095
|
function wi(e, t = !1, n = !0) {
|
|
1096
|
-
const r =
|
|
1096
|
+
const r = zt(e);
|
|
1097
1097
|
return t || (r.equals = ni), r;
|
|
1098
1098
|
}
|
|
1099
|
-
function
|
|
1099
|
+
function M(e, t, n = !1) {
|
|
1100
1100
|
b !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
1101
1101
|
// to ensure we error if state is set inside an inspect effect
|
|
1102
|
-
(!ae || (b.f &
|
|
1102
|
+
(!ae || (b.f & Jn) !== 0) && br() && (b.f & (P | He | Tn | Jn)) !== 0 && (te === null || !bt.call(te, e)) && Gs();
|
|
1103
1103
|
let r = n ? lt(t) : t;
|
|
1104
|
-
return
|
|
1104
|
+
return Jt(e, r);
|
|
1105
1105
|
}
|
|
1106
|
-
function
|
|
1106
|
+
function Jt(e, t) {
|
|
1107
1107
|
if (!e.equals(t)) {
|
|
1108
1108
|
var n = e.v;
|
|
1109
1109
|
je ? Le.set(e, t) : Le.set(e, n), e.v = t;
|
|
@@ -1115,30 +1115,30 @@ function Gt(e, t) {
|
|
|
1115
1115
|
);
|
|
1116
1116
|
(e.f & L) !== 0 && Nn(s), Mn(s);
|
|
1117
1117
|
}
|
|
1118
|
-
e.wv =
|
|
1118
|
+
e.wv = Zr(), Lr(e, L), y !== null && (y.f & D) !== 0 && (y.f & (we | Fe)) === 0 && (J === null ? Ni([e]) : J.push(e)), !r.is_fork && xn.size > 0 && !Dr && bi();
|
|
1119
1119
|
}
|
|
1120
1120
|
return t;
|
|
1121
1121
|
}
|
|
1122
1122
|
function bi() {
|
|
1123
|
-
|
|
1123
|
+
Dr = !1;
|
|
1124
1124
|
for (const e of xn)
|
|
1125
|
-
(e.f & D) !== 0 &&
|
|
1125
|
+
(e.f & D) !== 0 && N(e, ue), jt(e) && St(e);
|
|
1126
1126
|
xn.clear();
|
|
1127
1127
|
}
|
|
1128
|
-
function
|
|
1129
|
-
|
|
1128
|
+
function Mt(e) {
|
|
1129
|
+
M(e, e.v + 1);
|
|
1130
1130
|
}
|
|
1131
|
-
function
|
|
1131
|
+
function Lr(e, t) {
|
|
1132
1132
|
var n = e.reactions;
|
|
1133
1133
|
if (n !== null)
|
|
1134
1134
|
for (var r = n.length, s = 0; s < r; s++) {
|
|
1135
1135
|
var i = n[s], o = i.f, u = (o & L) === 0;
|
|
1136
|
-
if (u &&
|
|
1136
|
+
if (u && N(i, t), (o & P) !== 0) {
|
|
1137
1137
|
var a = (
|
|
1138
1138
|
/** @type {Derived} */
|
|
1139
1139
|
i
|
|
1140
1140
|
);
|
|
1141
|
-
oe?.delete(a), (o & et) === 0 && (o & Q && (i.f |= et),
|
|
1141
|
+
oe?.delete(a), (o & et) === 0 && (o & Q && (i.f |= et), Lr(a, ue));
|
|
1142
1142
|
} else u && ((o & He) !== 0 && $e !== null && $e.add(
|
|
1143
1143
|
/** @type {Effect} */
|
|
1144
1144
|
i
|
|
@@ -1151,16 +1151,16 @@ function Dr(e, t) {
|
|
|
1151
1151
|
function lt(e) {
|
|
1152
1152
|
if (typeof e != "object" || e === null || dn in e)
|
|
1153
1153
|
return e;
|
|
1154
|
-
const t =
|
|
1154
|
+
const t = _r(e);
|
|
1155
1155
|
if (t !== Ns && t !== Os)
|
|
1156
1156
|
return e;
|
|
1157
|
-
var n = /* @__PURE__ */ new Map(), r =
|
|
1157
|
+
var n = /* @__PURE__ */ new Map(), r = vr(e), s = /* @__PURE__ */ z(0), i = Qe, o = (u) => {
|
|
1158
1158
|
if (Qe === i)
|
|
1159
1159
|
return u();
|
|
1160
1160
|
var a = b, f = Qe;
|
|
1161
|
-
ne(null),
|
|
1161
|
+
ne(null), tr(i);
|
|
1162
1162
|
var c = u();
|
|
1163
|
-
return ne(a),
|
|
1163
|
+
return ne(a), tr(f), c;
|
|
1164
1164
|
};
|
|
1165
1165
|
return r && n.set("length", /* @__PURE__ */ z(
|
|
1166
1166
|
/** @type {any[]} */
|
|
@@ -1175,17 +1175,17 @@ function lt(e) {
|
|
|
1175
1175
|
return c === void 0 ? o(() => {
|
|
1176
1176
|
var h = /* @__PURE__ */ z(f.value);
|
|
1177
1177
|
return n.set(a, h), h;
|
|
1178
|
-
}) :
|
|
1178
|
+
}) : M(c, f.value, !0), !0;
|
|
1179
1179
|
},
|
|
1180
1180
|
deleteProperty(u, a) {
|
|
1181
1181
|
var f = n.get(a);
|
|
1182
1182
|
if (f === void 0) {
|
|
1183
1183
|
if (a in u) {
|
|
1184
1184
|
const c = o(() => /* @__PURE__ */ z(O));
|
|
1185
|
-
n.set(a, c),
|
|
1185
|
+
n.set(a, c), Mt(s);
|
|
1186
1186
|
}
|
|
1187
1187
|
} else
|
|
1188
|
-
|
|
1188
|
+
M(f, O), Mt(s);
|
|
1189
1189
|
return !0;
|
|
1190
1190
|
},
|
|
1191
1191
|
get(u, a, f) {
|
|
@@ -1239,14 +1239,14 @@ function lt(e) {
|
|
|
1239
1239
|
for (var g = f; g < /** @type {Source<number>} */
|
|
1240
1240
|
h.v; g += 1) {
|
|
1241
1241
|
var d = n.get(g + "");
|
|
1242
|
-
d !== void 0 ?
|
|
1242
|
+
d !== void 0 ? M(d, O) : g in u && (d = o(() => /* @__PURE__ */ z(O)), n.set(g + "", d));
|
|
1243
1243
|
}
|
|
1244
1244
|
if (h === void 0)
|
|
1245
|
-
(!v || at(u, a)?.writable) && (h = o(() => /* @__PURE__ */ z(void 0)),
|
|
1245
|
+
(!v || at(u, a)?.writable) && (h = o(() => /* @__PURE__ */ z(void 0)), M(h, lt(f)), n.set(a, h));
|
|
1246
1246
|
else {
|
|
1247
1247
|
v = h.v !== O;
|
|
1248
1248
|
var $ = o(() => lt(f));
|
|
1249
|
-
|
|
1249
|
+
M(h, $);
|
|
1250
1250
|
}
|
|
1251
1251
|
var _ = Reflect.getOwnPropertyDescriptor(u, a);
|
|
1252
1252
|
if (_?.set && _.set.call(c, f), !v) {
|
|
@@ -1255,9 +1255,9 @@ function lt(e) {
|
|
|
1255
1255
|
/** @type {Source<number>} */
|
|
1256
1256
|
n.get("length")
|
|
1257
1257
|
), Y = Number(a);
|
|
1258
|
-
Number.isInteger(Y) && Y >= S.v &&
|
|
1258
|
+
Number.isInteger(Y) && Y >= S.v && M(S, Y + 1);
|
|
1259
1259
|
}
|
|
1260
|
-
|
|
1260
|
+
Mt(s);
|
|
1261
1261
|
}
|
|
1262
1262
|
return !0;
|
|
1263
1263
|
},
|
|
@@ -1277,12 +1277,12 @@ function lt(e) {
|
|
|
1277
1277
|
}
|
|
1278
1278
|
);
|
|
1279
1279
|
}
|
|
1280
|
-
var
|
|
1280
|
+
var Qn, Pr, zr, jr;
|
|
1281
1281
|
function En() {
|
|
1282
|
-
if (
|
|
1283
|
-
|
|
1282
|
+
if (Qn === void 0) {
|
|
1283
|
+
Qn = window, Pr = /Firefox/.test(navigator.userAgent);
|
|
1284
1284
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
1285
|
-
|
|
1285
|
+
zr = at(t, "firstChild").get, jr = at(t, "nextSibling").get, Gn(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Gn(n) && (n.__t = void 0);
|
|
1286
1286
|
}
|
|
1287
1287
|
}
|
|
1288
1288
|
function Pe(e = "") {
|
|
@@ -1292,23 +1292,23 @@ function Pe(e = "") {
|
|
|
1292
1292
|
function ze(e) {
|
|
1293
1293
|
return (
|
|
1294
1294
|
/** @type {TemplateNode | null} */
|
|
1295
|
-
|
|
1295
|
+
zr.call(e)
|
|
1296
1296
|
);
|
|
1297
1297
|
}
|
|
1298
1298
|
// @__NO_SIDE_EFFECTS__
|
|
1299
1299
|
function Ae(e) {
|
|
1300
1300
|
return (
|
|
1301
1301
|
/** @type {TemplateNode | null} */
|
|
1302
|
-
|
|
1302
|
+
jr.call(e)
|
|
1303
1303
|
);
|
|
1304
1304
|
}
|
|
1305
1305
|
function xe(e, t) {
|
|
1306
|
-
if (!
|
|
1306
|
+
if (!I)
|
|
1307
1307
|
return /* @__PURE__ */ ze(e);
|
|
1308
1308
|
var n = /* @__PURE__ */ ze(E);
|
|
1309
1309
|
if (n === null)
|
|
1310
1310
|
n = E.appendChild(Pe());
|
|
1311
|
-
else if (t && n.nodeType !==
|
|
1311
|
+
else if (t && n.nodeType !== rn) {
|
|
1312
1312
|
var r = Pe();
|
|
1313
1313
|
return n?.before(r), fe(r), r;
|
|
1314
1314
|
}
|
|
@@ -1317,13 +1317,13 @@ function xe(e, t) {
|
|
|
1317
1317
|
n
|
|
1318
1318
|
), fe(n), n;
|
|
1319
1319
|
}
|
|
1320
|
-
function
|
|
1321
|
-
if (!
|
|
1320
|
+
function Hr(e, t = !1) {
|
|
1321
|
+
if (!I) {
|
|
1322
1322
|
var n = /* @__PURE__ */ ze(e);
|
|
1323
1323
|
return n instanceof Comment && n.data === "" ? /* @__PURE__ */ Ae(n) : n;
|
|
1324
1324
|
}
|
|
1325
1325
|
if (t) {
|
|
1326
|
-
if (E?.nodeType !==
|
|
1326
|
+
if (E?.nodeType !== rn) {
|
|
1327
1327
|
var r = Pe();
|
|
1328
1328
|
return E?.before(r), fe(r), r;
|
|
1329
1329
|
}
|
|
@@ -1335,14 +1335,14 @@ function jr(e, t = !1) {
|
|
|
1335
1335
|
return E;
|
|
1336
1336
|
}
|
|
1337
1337
|
function Ve(e, t = 1, n = !1) {
|
|
1338
|
-
let r =
|
|
1338
|
+
let r = I ? E : e;
|
|
1339
1339
|
for (var s; t--; )
|
|
1340
1340
|
s = r, r = /** @type {TemplateNode} */
|
|
1341
1341
|
/* @__PURE__ */ Ae(r);
|
|
1342
|
-
if (!
|
|
1342
|
+
if (!I)
|
|
1343
1343
|
return r;
|
|
1344
1344
|
if (n) {
|
|
1345
|
-
if (r?.nodeType !==
|
|
1345
|
+
if (r?.nodeType !== rn) {
|
|
1346
1346
|
var i = Pe();
|
|
1347
1347
|
return r === null ? s?.after(i) : r.before(i), fe(i), i;
|
|
1348
1348
|
}
|
|
@@ -1362,7 +1362,7 @@ function $i() {
|
|
|
1362
1362
|
function On(e, t, n) {
|
|
1363
1363
|
return (
|
|
1364
1364
|
/** @type {T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : Element} */
|
|
1365
|
-
document.createElementNS(
|
|
1365
|
+
document.createElementNS(hr, e, void 0)
|
|
1366
1366
|
);
|
|
1367
1367
|
}
|
|
1368
1368
|
function Dn(e) {
|
|
@@ -1372,11 +1372,11 @@ function Dn(e) {
|
|
|
1372
1372
|
)
|
|
1373
1373
|
return;
|
|
1374
1374
|
let t = e.nextSibling;
|
|
1375
|
-
for (; t !== null && t.nodeType ===
|
|
1375
|
+
for (; t !== null && t.nodeType === rn; )
|
|
1376
1376
|
t.remove(), e.nodeValue += /** @type {string} */
|
|
1377
1377
|
t.nodeValue, t = e.nextSibling;
|
|
1378
1378
|
}
|
|
1379
|
-
function
|
|
1379
|
+
function Fr(e) {
|
|
1380
1380
|
var t = b, n = y;
|
|
1381
1381
|
ne(null), me(null);
|
|
1382
1382
|
try {
|
|
@@ -1411,7 +1411,7 @@ function be(e, t) {
|
|
|
1411
1411
|
wv: 0,
|
|
1412
1412
|
ac: null
|
|
1413
1413
|
}, s = r;
|
|
1414
|
-
if ((e &
|
|
1414
|
+
if ((e & It) !== 0)
|
|
1415
1415
|
Et !== null ? Et.push(r) : pe(r);
|
|
1416
1416
|
else if (t !== null) {
|
|
1417
1417
|
try {
|
|
@@ -1436,7 +1436,7 @@ function Ln() {
|
|
|
1436
1436
|
}
|
|
1437
1437
|
function Si(e) {
|
|
1438
1438
|
const t = be(yt, null);
|
|
1439
|
-
return
|
|
1439
|
+
return N(t, D), t.teardown = e, t;
|
|
1440
1440
|
}
|
|
1441
1441
|
function Sn(e) {
|
|
1442
1442
|
xi();
|
|
@@ -1451,57 +1451,57 @@ function Sn(e) {
|
|
|
1451
1451
|
);
|
|
1452
1452
|
(r.e ?? (r.e = [])).push(e);
|
|
1453
1453
|
} else
|
|
1454
|
-
return
|
|
1454
|
+
return Br(e);
|
|
1455
1455
|
}
|
|
1456
|
-
function
|
|
1457
|
-
return be(
|
|
1456
|
+
function Br(e) {
|
|
1457
|
+
return be(It | zs, e);
|
|
1458
1458
|
}
|
|
1459
|
-
function
|
|
1459
|
+
function Ii(e) {
|
|
1460
1460
|
Te.ensure();
|
|
1461
1461
|
const t = be(Fe | nt, e);
|
|
1462
1462
|
return () => {
|
|
1463
1463
|
B(t);
|
|
1464
1464
|
};
|
|
1465
1465
|
}
|
|
1466
|
-
function
|
|
1466
|
+
function Ci(e) {
|
|
1467
1467
|
Te.ensure();
|
|
1468
1468
|
const t = be(Fe | nt, e);
|
|
1469
1469
|
return (n = {}) => new Promise((r) => {
|
|
1470
|
-
n.outro ?
|
|
1470
|
+
n.outro ? Nt(t, () => {
|
|
1471
1471
|
B(t), r(void 0);
|
|
1472
1472
|
}) : (B(t), r(void 0));
|
|
1473
1473
|
});
|
|
1474
1474
|
}
|
|
1475
1475
|
function ki(e) {
|
|
1476
|
-
return be(
|
|
1476
|
+
return be(It, e);
|
|
1477
1477
|
}
|
|
1478
1478
|
function Ti(e) {
|
|
1479
1479
|
return be(Tn | nt, e);
|
|
1480
1480
|
}
|
|
1481
|
-
function
|
|
1481
|
+
function Wr(e, t = 0) {
|
|
1482
1482
|
return be(yt | t, e);
|
|
1483
1483
|
}
|
|
1484
|
-
function
|
|
1484
|
+
function Rt(e, t = [], n = [], r = []) {
|
|
1485
1485
|
di(r, t, n, (s) => {
|
|
1486
1486
|
be(yt, () => e(...s.map(x)));
|
|
1487
1487
|
});
|
|
1488
1488
|
}
|
|
1489
|
-
function
|
|
1489
|
+
function Vr(e, t = 0) {
|
|
1490
1490
|
var n = be(He | t, e);
|
|
1491
1491
|
return n;
|
|
1492
1492
|
}
|
|
1493
1493
|
function Ee(e) {
|
|
1494
1494
|
return be(we | nt, e);
|
|
1495
1495
|
}
|
|
1496
|
-
function
|
|
1496
|
+
function Yr(e) {
|
|
1497
1497
|
var t = e.teardown;
|
|
1498
1498
|
if (t !== null) {
|
|
1499
1499
|
const n = je, r = b;
|
|
1500
|
-
|
|
1500
|
+
er(!0), ne(null);
|
|
1501
1501
|
try {
|
|
1502
1502
|
t.call(null);
|
|
1503
1503
|
} finally {
|
|
1504
|
-
|
|
1504
|
+
er(n), ne(r);
|
|
1505
1505
|
}
|
|
1506
1506
|
}
|
|
1507
1507
|
}
|
|
@@ -1509,7 +1509,7 @@ function Pn(e, t = !1) {
|
|
|
1509
1509
|
var n = e.first;
|
|
1510
1510
|
for (e.first = e.last = null; n !== null; ) {
|
|
1511
1511
|
const s = n.ac;
|
|
1512
|
-
s !== null &&
|
|
1512
|
+
s !== null && Fr(() => {
|
|
1513
1513
|
s.abort(Ye);
|
|
1514
1514
|
});
|
|
1515
1515
|
var r = n.next;
|
|
@@ -1528,14 +1528,14 @@ function B(e, t = !0) {
|
|
|
1528
1528
|
e.nodes.start,
|
|
1529
1529
|
/** @type {TemplateNode} */
|
|
1530
1530
|
e.nodes.end
|
|
1531
|
-
), n = !0), Pn(e, t && !n),
|
|
1531
|
+
), n = !0), Pn(e, t && !n), Ot(e, 0), N(e, ke);
|
|
1532
1532
|
var r = e.nodes && e.nodes.t;
|
|
1533
1533
|
if (r !== null)
|
|
1534
1534
|
for (const i of r)
|
|
1535
1535
|
i.stop();
|
|
1536
|
-
|
|
1536
|
+
Yr(e);
|
|
1537
1537
|
var s = e.parent;
|
|
1538
|
-
s !== null && s.first !== null &&
|
|
1538
|
+
s !== null && s.first !== null && qr(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
|
|
1539
1539
|
}
|
|
1540
1540
|
function Mi(e, t) {
|
|
1541
1541
|
for (; e !== null; ) {
|
|
@@ -1543,13 +1543,13 @@ function Mi(e, t) {
|
|
|
1543
1543
|
e.remove(), e = n;
|
|
1544
1544
|
}
|
|
1545
1545
|
}
|
|
1546
|
-
function
|
|
1546
|
+
function qr(e) {
|
|
1547
1547
|
var t = e.parent, n = e.prev, r = e.next;
|
|
1548
1548
|
n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
|
|
1549
1549
|
}
|
|
1550
|
-
function
|
|
1550
|
+
function Nt(e, t, n = !0) {
|
|
1551
1551
|
var r = [];
|
|
1552
|
-
|
|
1552
|
+
Ur(e, r, !0);
|
|
1553
1553
|
var s = () => {
|
|
1554
1554
|
n && B(e), t && t();
|
|
1555
1555
|
}, i = r.length;
|
|
@@ -1560,7 +1560,7 @@ function Rt(e, t, n = !0) {
|
|
|
1560
1560
|
} else
|
|
1561
1561
|
s();
|
|
1562
1562
|
}
|
|
1563
|
-
function
|
|
1563
|
+
function Ur(e, t, n) {
|
|
1564
1564
|
if ((e.f & ee) === 0) {
|
|
1565
1565
|
e.f ^= ee;
|
|
1566
1566
|
var r = e.nodes && e.nodes.t;
|
|
@@ -1572,19 +1572,19 @@ function qr(e, t, n) {
|
|
|
1572
1572
|
// it means the parent block effect was pruned. In that case,
|
|
1573
1573
|
// transparency information was transferred to the branch effect.
|
|
1574
1574
|
(s.f & we) !== 0 && (e.f & He) !== 0;
|
|
1575
|
-
|
|
1575
|
+
Ur(s, t, o ? n : !1), s = i;
|
|
1576
1576
|
}
|
|
1577
1577
|
}
|
|
1578
1578
|
}
|
|
1579
1579
|
function Ri(e) {
|
|
1580
|
-
|
|
1580
|
+
Xr(e, !0);
|
|
1581
1581
|
}
|
|
1582
|
-
function
|
|
1582
|
+
function Xr(e, t) {
|
|
1583
1583
|
if ((e.f & ee) !== 0) {
|
|
1584
1584
|
e.f ^= ee;
|
|
1585
1585
|
for (var n = e.first; n !== null; ) {
|
|
1586
1586
|
var r = n.next, s = (n.f & $t) !== 0 || (n.f & we) !== 0;
|
|
1587
|
-
|
|
1587
|
+
Xr(n, s ? t : !1), n = r;
|
|
1588
1588
|
}
|
|
1589
1589
|
var i = e.nodes && e.nodes.t;
|
|
1590
1590
|
if (i !== null)
|
|
@@ -1592,15 +1592,15 @@ function Ur(e, t) {
|
|
|
1592
1592
|
(o.is_global || t) && o.in();
|
|
1593
1593
|
}
|
|
1594
1594
|
}
|
|
1595
|
-
function
|
|
1595
|
+
function Kr(e, t) {
|
|
1596
1596
|
if (e.nodes)
|
|
1597
1597
|
for (var n = e.nodes.start, r = e.nodes.end; n !== null; ) {
|
|
1598
1598
|
var s = n === r ? null : /* @__PURE__ */ Ae(n);
|
|
1599
1599
|
t.append(n), n = s;
|
|
1600
1600
|
}
|
|
1601
1601
|
}
|
|
1602
|
-
let
|
|
1603
|
-
function
|
|
1602
|
+
let Ut = !1, je = !1;
|
|
1603
|
+
function er(e) {
|
|
1604
1604
|
je = e;
|
|
1605
1605
|
}
|
|
1606
1606
|
let b = null, ae = !1;
|
|
@@ -1612,21 +1612,21 @@ function me(e) {
|
|
|
1612
1612
|
y = e;
|
|
1613
1613
|
}
|
|
1614
1614
|
let te = null;
|
|
1615
|
-
function
|
|
1615
|
+
function Gr(e) {
|
|
1616
1616
|
b !== null && (te === null ? te = [e] : te.push(e));
|
|
1617
1617
|
}
|
|
1618
1618
|
let F = null, q = 0, J = null;
|
|
1619
1619
|
function Ni(e) {
|
|
1620
1620
|
J = e;
|
|
1621
1621
|
}
|
|
1622
|
-
let
|
|
1623
|
-
function
|
|
1622
|
+
let Jr = 1, Ue = 0, Qe = Ue;
|
|
1623
|
+
function tr(e) {
|
|
1624
1624
|
Qe = e;
|
|
1625
1625
|
}
|
|
1626
|
-
function
|
|
1627
|
-
return ++
|
|
1626
|
+
function Zr() {
|
|
1627
|
+
return ++Jr;
|
|
1628
1628
|
}
|
|
1629
|
-
function
|
|
1629
|
+
function jt(e) {
|
|
1630
1630
|
var t = e.f;
|
|
1631
1631
|
if ((t & L) !== 0)
|
|
1632
1632
|
return !0;
|
|
@@ -1636,10 +1636,10 @@ function zt(e) {
|
|
|
1636
1636
|
e.deps
|
|
1637
1637
|
), r = n.length, s = 0; s < r; s++) {
|
|
1638
1638
|
var i = n[s];
|
|
1639
|
-
if (
|
|
1639
|
+
if (jt(
|
|
1640
1640
|
/** @type {Derived} */
|
|
1641
1641
|
i
|
|
1642
|
-
) &&
|
|
1642
|
+
) && Nr(
|
|
1643
1643
|
/** @type {Derived} */
|
|
1644
1644
|
i
|
|
1645
1645
|
), i.wv > e.wv)
|
|
@@ -1647,31 +1647,31 @@ function zt(e) {
|
|
|
1647
1647
|
}
|
|
1648
1648
|
(t & Q) !== 0 && // During time traveling we don't want to reset the status so that
|
|
1649
1649
|
// traversal of the graph in the other batches still happens
|
|
1650
|
-
oe === null &&
|
|
1650
|
+
oe === null && N(e, D);
|
|
1651
1651
|
}
|
|
1652
1652
|
return !1;
|
|
1653
1653
|
}
|
|
1654
|
-
function
|
|
1654
|
+
function Qr(e, t, n = !0) {
|
|
1655
1655
|
var r = e.reactions;
|
|
1656
1656
|
if (r !== null && !(te !== null && bt.call(te, e)))
|
|
1657
1657
|
for (var s = 0; s < r.length; s++) {
|
|
1658
1658
|
var i = r[s];
|
|
1659
|
-
(i.f & P) !== 0 ?
|
|
1659
|
+
(i.f & P) !== 0 ? Qr(
|
|
1660
1660
|
/** @type {Derived} */
|
|
1661
1661
|
i,
|
|
1662
1662
|
t,
|
|
1663
1663
|
!1
|
|
1664
|
-
) : t === i && (n ?
|
|
1664
|
+
) : t === i && (n ? N(i, L) : (i.f & D) !== 0 && N(i, ue), pe(
|
|
1665
1665
|
/** @type {Effect} */
|
|
1666
1666
|
i
|
|
1667
1667
|
));
|
|
1668
1668
|
}
|
|
1669
1669
|
}
|
|
1670
|
-
function
|
|
1670
|
+
function es(e) {
|
|
1671
1671
|
var $;
|
|
1672
1672
|
var t = F, n = q, r = J, s = b, i = te, o = W, u = ae, a = Qe, f = e.f;
|
|
1673
1673
|
F = /** @type {null | Value[]} */
|
|
1674
|
-
null, q = 0, J = null, b = (f & (we | Fe)) === 0 ? e : null, te = null, xt(e.ctx), ae = !1, Qe = ++Ue, e.ac !== null && (
|
|
1674
|
+
null, q = 0, J = null, b = (f & (we | Fe)) === 0 ? e : null, te = null, xt(e.ctx), ae = !1, Qe = ++Ue, e.ac !== null && (Fr(() => {
|
|
1675
1675
|
e.ac.abort(Ye);
|
|
1676
1676
|
}), e.ac = null);
|
|
1677
1677
|
try {
|
|
@@ -1681,10 +1681,10 @@ function Qr(e) {
|
|
|
1681
1681
|
e.fn
|
|
1682
1682
|
), h = c();
|
|
1683
1683
|
e.f |= tt;
|
|
1684
|
-
var v = e.deps, g =
|
|
1684
|
+
var v = e.deps, g = A?.is_fork;
|
|
1685
1685
|
if (F !== null) {
|
|
1686
1686
|
var d;
|
|
1687
|
-
if (g ||
|
|
1687
|
+
if (g || Ot(e, q), v !== null && q > 0)
|
|
1688
1688
|
for (v.length = q + F.length, d = 0; d < F.length; d++)
|
|
1689
1689
|
v[q + d] = F[d];
|
|
1690
1690
|
else
|
|
@@ -1692,11 +1692,11 @@ function Qr(e) {
|
|
|
1692
1692
|
if (Ln() && (e.f & Q) !== 0)
|
|
1693
1693
|
for (d = q; d < v.length; d++)
|
|
1694
1694
|
(($ = v[d]).reactions ?? ($.reactions = [])).push(e);
|
|
1695
|
-
} else !g && v !== null && q < v.length && (
|
|
1696
|
-
if (
|
|
1695
|
+
} else !g && v !== null && q < v.length && (Ot(e, q), v.length = q);
|
|
1696
|
+
if (br() && J !== null && !ae && v !== null && (e.f & (P | ue | L)) === 0)
|
|
1697
1697
|
for (d = 0; d < /** @type {Source[]} */
|
|
1698
1698
|
J.length; d++)
|
|
1699
|
-
|
|
1699
|
+
Qr(
|
|
1700
1700
|
J[d],
|
|
1701
1701
|
/** @type {Effect} */
|
|
1702
1702
|
e
|
|
@@ -1713,7 +1713,7 @@ function Qr(e) {
|
|
|
1713
1713
|
}
|
|
1714
1714
|
return (e.f & De) !== 0 && (e.f ^= De), h;
|
|
1715
1715
|
} catch (_) {
|
|
1716
|
-
return
|
|
1716
|
+
return $r(_);
|
|
1717
1717
|
} finally {
|
|
1718
1718
|
e.f ^= _n, F = t, q = n, J = r, b = s, te = i, xt(o), ae = u, Qe = a;
|
|
1719
1719
|
}
|
|
@@ -1735,10 +1735,10 @@ function Oi(e, t) {
|
|
|
1735
1735
|
/** @type {Derived} */
|
|
1736
1736
|
t
|
|
1737
1737
|
);
|
|
1738
|
-
(i.f & Q) !== 0 && (i.f ^= Q, i.f &= ~et), Mn(i), mi(i),
|
|
1738
|
+
(i.f & Q) !== 0 && (i.f ^= Q, i.f &= ~et), Mn(i), mi(i), Ot(i, 0);
|
|
1739
1739
|
}
|
|
1740
1740
|
}
|
|
1741
|
-
function
|
|
1741
|
+
function Ot(e, t) {
|
|
1742
1742
|
var n = e.deps;
|
|
1743
1743
|
if (n !== null)
|
|
1744
1744
|
for (var r = t; r < n.length; r++)
|
|
@@ -1747,17 +1747,17 @@ function Nt(e, t) {
|
|
|
1747
1747
|
function St(e) {
|
|
1748
1748
|
var t = e.f;
|
|
1749
1749
|
if ((t & ke) === 0) {
|
|
1750
|
-
|
|
1751
|
-
var n = y, r =
|
|
1752
|
-
y = e,
|
|
1750
|
+
N(e, D);
|
|
1751
|
+
var n = y, r = Ut;
|
|
1752
|
+
y = e, Ut = !0;
|
|
1753
1753
|
try {
|
|
1754
|
-
(t & (He | kn)) !== 0 ? Ai(e) : Pn(e),
|
|
1755
|
-
var s =
|
|
1756
|
-
e.teardown = typeof s == "function" ? s : null, e.wv =
|
|
1754
|
+
(t & (He | kn)) !== 0 ? Ai(e) : Pn(e), Yr(e);
|
|
1755
|
+
var s = es(e);
|
|
1756
|
+
e.teardown = typeof s == "function" ? s : null, e.wv = Jr;
|
|
1757
1757
|
var i;
|
|
1758
1758
|
hn && ri && (e.f & L) !== 0 && e.deps;
|
|
1759
1759
|
} finally {
|
|
1760
|
-
|
|
1760
|
+
Ut = r, y = n;
|
|
1761
1761
|
}
|
|
1762
1762
|
}
|
|
1763
1763
|
}
|
|
@@ -1785,10 +1785,10 @@ function x(e) {
|
|
|
1785
1785
|
);
|
|
1786
1786
|
if (je) {
|
|
1787
1787
|
var u = o.v;
|
|
1788
|
-
return ((o.f & D) === 0 && o.reactions !== null ||
|
|
1788
|
+
return ((o.f & D) === 0 && o.reactions !== null || ns(o)) && (u = Nn(o)), Le.set(o, u), u;
|
|
1789
1789
|
}
|
|
1790
|
-
var a = (o.f & Q) === 0 && !ae && b !== null && (
|
|
1791
|
-
|
|
1790
|
+
var a = (o.f & Q) === 0 && !ae && b !== null && (Ut || (b.f & Q) !== 0), f = (o.f & tt) === 0;
|
|
1791
|
+
jt(o) && (a && (o.f |= Q), Nr(o)), a && !f && (Or(o), ts(o));
|
|
1792
1792
|
}
|
|
1793
1793
|
if (oe?.has(e))
|
|
1794
1794
|
return oe.get(e);
|
|
@@ -1796,29 +1796,29 @@ function x(e) {
|
|
|
1796
1796
|
throw e.v;
|
|
1797
1797
|
return e.v;
|
|
1798
1798
|
}
|
|
1799
|
-
function
|
|
1799
|
+
function ts(e) {
|
|
1800
1800
|
if (e.f |= Q, e.deps !== null)
|
|
1801
1801
|
for (const t of e.deps)
|
|
1802
|
-
(t.reactions ?? (t.reactions = [])).push(e), (t.f & P) !== 0 && (t.f & Q) === 0 && (
|
|
1802
|
+
(t.reactions ?? (t.reactions = [])).push(e), (t.f & P) !== 0 && (t.f & Q) === 0 && (Or(
|
|
1803
1803
|
/** @type {Derived} */
|
|
1804
1804
|
t
|
|
1805
|
-
),
|
|
1805
|
+
), ts(
|
|
1806
1806
|
/** @type {Derived} */
|
|
1807
1807
|
t
|
|
1808
1808
|
));
|
|
1809
1809
|
}
|
|
1810
|
-
function
|
|
1810
|
+
function ns(e) {
|
|
1811
1811
|
if (e.v === O) return !0;
|
|
1812
1812
|
if (e.deps === null) return !1;
|
|
1813
1813
|
for (const t of e.deps)
|
|
1814
|
-
if (Le.has(t) || (t.f & P) !== 0 &&
|
|
1814
|
+
if (Le.has(t) || (t.f & P) !== 0 && ns(
|
|
1815
1815
|
/** @type {Derived} */
|
|
1816
1816
|
t
|
|
1817
1817
|
))
|
|
1818
1818
|
return !0;
|
|
1819
1819
|
return !1;
|
|
1820
1820
|
}
|
|
1821
|
-
function
|
|
1821
|
+
function rs(e) {
|
|
1822
1822
|
var t = ae;
|
|
1823
1823
|
try {
|
|
1824
1824
|
return ae = !0, e();
|
|
@@ -1826,18 +1826,18 @@ function ns(e) {
|
|
|
1826
1826
|
ae = t;
|
|
1827
1827
|
}
|
|
1828
1828
|
}
|
|
1829
|
-
const Xe = /* @__PURE__ */ Symbol("events"),
|
|
1830
|
-
function
|
|
1829
|
+
const Xe = /* @__PURE__ */ Symbol("events"), ss = /* @__PURE__ */ new Set(), In = /* @__PURE__ */ new Set();
|
|
1830
|
+
function Zt(e, t, n) {
|
|
1831
1831
|
(t[Xe] ?? (t[Xe] = {}))[e] = n;
|
|
1832
1832
|
}
|
|
1833
1833
|
function zn(e) {
|
|
1834
1834
|
for (var t = 0; t < e.length; t++)
|
|
1835
|
-
|
|
1836
|
-
for (var n of
|
|
1835
|
+
ss.add(e[t]);
|
|
1836
|
+
for (var n of In)
|
|
1837
1837
|
n(e);
|
|
1838
1838
|
}
|
|
1839
|
-
let
|
|
1840
|
-
function
|
|
1839
|
+
let nr = null;
|
|
1840
|
+
function rr(e) {
|
|
1841
1841
|
var t = this, n = (
|
|
1842
1842
|
/** @type {Node} */
|
|
1843
1843
|
t.ownerDocument
|
|
@@ -1845,8 +1845,8 @@ function nr(e) {
|
|
|
1845
1845
|
/** @type {null | Element} */
|
|
1846
1846
|
s[0] || e.target
|
|
1847
1847
|
);
|
|
1848
|
-
|
|
1849
|
-
var o = 0, u =
|
|
1848
|
+
nr = e;
|
|
1849
|
+
var o = 0, u = nr === e && e[Xe];
|
|
1850
1850
|
if (u) {
|
|
1851
1851
|
var a = s.indexOf(u);
|
|
1852
1852
|
if (a !== -1 && (t === document || t === /** @type {any} */
|
|
@@ -1861,7 +1861,7 @@ function nr(e) {
|
|
|
1861
1861
|
}
|
|
1862
1862
|
if (i = /** @type {Element} */
|
|
1863
1863
|
s[o] || e.target, i !== t) {
|
|
1864
|
-
|
|
1864
|
+
Gt(e, "currentTarget", {
|
|
1865
1865
|
configurable: !0,
|
|
1866
1866
|
get() {
|
|
1867
1867
|
return i || n;
|
|
@@ -1911,7 +1911,7 @@ function Li(e) {
|
|
|
1911
1911
|
Di?.createHTML(e) ?? e
|
|
1912
1912
|
);
|
|
1913
1913
|
}
|
|
1914
|
-
function
|
|
1914
|
+
function is(e) {
|
|
1915
1915
|
var t = On("template");
|
|
1916
1916
|
return t.innerHTML = Li(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1917
1917
|
}
|
|
@@ -1926,13 +1926,13 @@ function ft(e, t) {
|
|
|
1926
1926
|
function rt(e, t) {
|
|
1927
1927
|
var n = (t & ks) !== 0, r = (t & Ts) !== 0, s, i = !e.startsWith("<!>");
|
|
1928
1928
|
return () => {
|
|
1929
|
-
if (
|
|
1929
|
+
if (I)
|
|
1930
1930
|
return ft(E, null), E;
|
|
1931
|
-
s === void 0 && (s =
|
|
1931
|
+
s === void 0 && (s = is(i ? e : "<!>" + e), n || (s = /** @type {TemplateNode} */
|
|
1932
1932
|
/* @__PURE__ */ ze(s)));
|
|
1933
1933
|
var o = (
|
|
1934
1934
|
/** @type {TemplateNode} */
|
|
1935
|
-
r ||
|
|
1935
|
+
r || Pr ? document.importNode(s, !0) : s.cloneNode(!0)
|
|
1936
1936
|
);
|
|
1937
1937
|
if (n) {
|
|
1938
1938
|
var u = (
|
|
@@ -1952,12 +1952,12 @@ function rt(e, t) {
|
|
|
1952
1952
|
function Pi(e, t, n = "svg") {
|
|
1953
1953
|
var r = !e.startsWith("<!>"), s = `<${n}>${r ? e : "<!>" + e}</${n}>`, i;
|
|
1954
1954
|
return () => {
|
|
1955
|
-
if (
|
|
1955
|
+
if (I)
|
|
1956
1956
|
return ft(E, null), E;
|
|
1957
1957
|
if (!i) {
|
|
1958
1958
|
var o = (
|
|
1959
1959
|
/** @type {DocumentFragment} */
|
|
1960
|
-
|
|
1960
|
+
is(s)
|
|
1961
1961
|
), u = (
|
|
1962
1962
|
/** @type {Element} */
|
|
1963
1963
|
/* @__PURE__ */ ze(o)
|
|
@@ -1973,11 +1973,11 @@ function Pi(e, t, n = "svg") {
|
|
|
1973
1973
|
};
|
|
1974
1974
|
}
|
|
1975
1975
|
// @__NO_SIDE_EFFECTS__
|
|
1976
|
-
function
|
|
1976
|
+
function os(e, t) {
|
|
1977
1977
|
return /* @__PURE__ */ Pi(e, t, "svg");
|
|
1978
1978
|
}
|
|
1979
1979
|
function _e(e, t) {
|
|
1980
|
-
if (
|
|
1980
|
+
if (I) {
|
|
1981
1981
|
var n = (
|
|
1982
1982
|
/** @type {Effect & { nodes: EffectNodes }} */
|
|
1983
1983
|
y
|
|
@@ -1998,15 +1998,15 @@ function Hi(e, t) {
|
|
|
1998
1998
|
var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1999
1999
|
n !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = n, e.nodeValue = `${n}`);
|
|
2000
2000
|
}
|
|
2001
|
-
function
|
|
2002
|
-
return
|
|
2001
|
+
function ls(e, t) {
|
|
2002
|
+
return as(e, t);
|
|
2003
2003
|
}
|
|
2004
2004
|
function Fi(e, t) {
|
|
2005
2005
|
En(), t.intro = t.intro ?? !1;
|
|
2006
|
-
const n = t.target, r =
|
|
2006
|
+
const n = t.target, r = I, s = E;
|
|
2007
2007
|
try {
|
|
2008
|
-
for (var i = /* @__PURE__ */ ze(n); i && (i.nodeType !==
|
|
2009
|
-
i.data !==
|
|
2008
|
+
for (var i = /* @__PURE__ */ ze(n); i && (i.nodeType !== sn || /** @type {Comment} */
|
|
2009
|
+
i.data !== fr); )
|
|
2010
2010
|
i = /* @__PURE__ */ Ae(i);
|
|
2011
2011
|
if (!i)
|
|
2012
2012
|
throw wt;
|
|
@@ -2014,22 +2014,22 @@ function Fi(e, t) {
|
|
|
2014
2014
|
/** @type {Comment} */
|
|
2015
2015
|
i
|
|
2016
2016
|
);
|
|
2017
|
-
const o =
|
|
2017
|
+
const o = as(e, { ...t, anchor: i });
|
|
2018
2018
|
return ot(!1), /** @type {Exports} */
|
|
2019
2019
|
o;
|
|
2020
2020
|
} catch (o) {
|
|
2021
2021
|
if (o instanceof Error && o.message.split(`
|
|
2022
2022
|
`).some((u) => u.startsWith("https://svelte.dev/e/")))
|
|
2023
2023
|
throw o;
|
|
2024
|
-
return o !== wt && console.warn("Failed to hydrate: ", o), t.recover === !1 && Us(), En(), yi(n), ot(!1),
|
|
2024
|
+
return o !== wt && console.warn("Failed to hydrate: ", o), t.recover === !1 && Us(), En(), yi(n), ot(!1), ls(e, t);
|
|
2025
2025
|
} finally {
|
|
2026
2026
|
ot(r), fe(s);
|
|
2027
2027
|
}
|
|
2028
2028
|
}
|
|
2029
|
-
const
|
|
2030
|
-
function
|
|
2029
|
+
const Vt = /* @__PURE__ */ new Map();
|
|
2030
|
+
function as(e, { target: t, anchor: n, props: r = {}, events: s, context: i, intro: o = !0, transformError: u }) {
|
|
2031
2031
|
En();
|
|
2032
|
-
var a = void 0, f =
|
|
2032
|
+
var a = void 0, f = Ci(() => {
|
|
2033
2033
|
var c = n ?? t.appendChild(Pe());
|
|
2034
2034
|
fi(
|
|
2035
2035
|
/** @type {TemplateNode} */
|
|
@@ -2039,19 +2039,19 @@ function ls(e, { target: t, anchor: n, props: r = {}, events: s, context: i, int
|
|
|
2039
2039
|
}
|
|
2040
2040
|
},
|
|
2041
2041
|
(g) => {
|
|
2042
|
-
|
|
2042
|
+
ln({});
|
|
2043
2043
|
var d = (
|
|
2044
2044
|
/** @type {ComponentContext} */
|
|
2045
2045
|
W
|
|
2046
2046
|
);
|
|
2047
|
-
if (i && (d.c = i), s && (r.$$events = s),
|
|
2047
|
+
if (i && (d.c = i), s && (r.$$events = s), I && ft(
|
|
2048
2048
|
/** @type {TemplateNode} */
|
|
2049
2049
|
g,
|
|
2050
2050
|
null
|
|
2051
|
-
), a = e(g, r) || {},
|
|
2052
|
-
E.data !==
|
|
2053
|
-
throw
|
|
2054
|
-
|
|
2051
|
+
), a = e(g, r) || {}, I && (y.nodes.end = E, E === null || E.nodeType !== sn || /** @type {Comment} */
|
|
2052
|
+
E.data !== dr))
|
|
2053
|
+
throw on(), wt;
|
|
2054
|
+
an();
|
|
2055
2055
|
},
|
|
2056
2056
|
u
|
|
2057
2057
|
);
|
|
@@ -2062,37 +2062,37 @@ function ls(e, { target: t, anchor: n, props: r = {}, events: s, context: i, int
|
|
|
2062
2062
|
h.add($);
|
|
2063
2063
|
var _ = ji($);
|
|
2064
2064
|
for (const G of [t, document]) {
|
|
2065
|
-
var S =
|
|
2066
|
-
S === void 0 && (S = /* @__PURE__ */ new Map(),
|
|
2065
|
+
var S = Vt.get(G);
|
|
2066
|
+
S === void 0 && (S = /* @__PURE__ */ new Map(), Vt.set(G, S));
|
|
2067
2067
|
var Y = S.get($);
|
|
2068
|
-
Y === void 0 ? (G.addEventListener($,
|
|
2068
|
+
Y === void 0 ? (G.addEventListener($, rr, { passive: _ }), S.set($, 1)) : S.set($, Y + 1);
|
|
2069
2069
|
}
|
|
2070
2070
|
}
|
|
2071
2071
|
}
|
|
2072
2072
|
};
|
|
2073
|
-
return v(Ms(
|
|
2073
|
+
return v(Ms(ss)), In.add(v), () => {
|
|
2074
2074
|
for (var g of h)
|
|
2075
2075
|
for (const _ of [t, document]) {
|
|
2076
2076
|
var d = (
|
|
2077
2077
|
/** @type {Map<string, number>} */
|
|
2078
|
-
|
|
2078
|
+
Vt.get(_)
|
|
2079
2079
|
), $ = (
|
|
2080
2080
|
/** @type {number} */
|
|
2081
2081
|
d.get(g)
|
|
2082
2082
|
);
|
|
2083
|
-
--$ == 0 ? (_.removeEventListener(g,
|
|
2083
|
+
--$ == 0 ? (_.removeEventListener(g, rr), d.delete(g), d.size === 0 && Vt.delete(_)) : d.set(g, $);
|
|
2084
2084
|
}
|
|
2085
|
-
|
|
2085
|
+
In.delete(v), c !== n && c.parentNode?.removeChild(c);
|
|
2086
2086
|
};
|
|
2087
2087
|
});
|
|
2088
|
-
return
|
|
2088
|
+
return Cn.set(a, f), a;
|
|
2089
2089
|
}
|
|
2090
|
-
let
|
|
2090
|
+
let Cn = /* @__PURE__ */ new WeakMap();
|
|
2091
2091
|
function Bi(e, t) {
|
|
2092
|
-
const n =
|
|
2093
|
-
return n ? (
|
|
2092
|
+
const n = Cn.get(e);
|
|
2093
|
+
return n ? (Cn.delete(e), n(t)) : Promise.resolve();
|
|
2094
2094
|
}
|
|
2095
|
-
var ie, ve, K, Ze,
|
|
2095
|
+
var ie, ve, K, Ze, Lt, Pt, nn;
|
|
2096
2096
|
class Wi {
|
|
2097
2097
|
/**
|
|
2098
2098
|
* @param {TemplateNode} anchor
|
|
@@ -2100,7 +2100,7 @@ class Wi {
|
|
|
2100
2100
|
*/
|
|
2101
2101
|
constructor(t, n = !0) {
|
|
2102
2102
|
/** @type {TemplateNode} */
|
|
2103
|
-
|
|
2103
|
+
k(this, "anchor");
|
|
2104
2104
|
/** @type {Map<Batch, Key>} */
|
|
2105
2105
|
w(this, ie, /* @__PURE__ */ new Map());
|
|
2106
2106
|
/**
|
|
@@ -2133,11 +2133,11 @@ class Wi {
|
|
|
2133
2133
|
* Whether to pause (i.e. outro) on change, or destroy immediately.
|
|
2134
2134
|
* This is necessary for `<svelte:element>`
|
|
2135
2135
|
*/
|
|
2136
|
-
w(this,
|
|
2136
|
+
w(this, Lt, !0);
|
|
2137
2137
|
/**
|
|
2138
2138
|
* @param {Batch} batch
|
|
2139
2139
|
*/
|
|
2140
|
-
w(this,
|
|
2140
|
+
w(this, Pt, (t) => {
|
|
2141
2141
|
if (l(this, ie).has(t)) {
|
|
2142
2142
|
var n = (
|
|
2143
2143
|
/** @type {Key} */
|
|
@@ -2160,25 +2160,25 @@ class Wi {
|
|
|
2160
2160
|
const u = () => {
|
|
2161
2161
|
if (Array.from(l(this, ie).values()).includes(i)) {
|
|
2162
2162
|
var f = document.createDocumentFragment();
|
|
2163
|
-
|
|
2163
|
+
Kr(o, f), f.append(Pe()), l(this, K).set(i, { effect: o, fragment: f });
|
|
2164
2164
|
} else
|
|
2165
2165
|
B(o);
|
|
2166
2166
|
l(this, Ze).delete(i), l(this, ve).delete(i);
|
|
2167
2167
|
};
|
|
2168
|
-
l(this,
|
|
2168
|
+
l(this, Lt) || !r ? (l(this, Ze).add(i), Nt(o, u, !1)) : u();
|
|
2169
2169
|
}
|
|
2170
2170
|
}
|
|
2171
2171
|
});
|
|
2172
2172
|
/**
|
|
2173
2173
|
* @param {Batch} batch
|
|
2174
2174
|
*/
|
|
2175
|
-
w(this,
|
|
2175
|
+
w(this, nn, (t) => {
|
|
2176
2176
|
l(this, ie).delete(t);
|
|
2177
2177
|
const n = Array.from(l(this, ie).values());
|
|
2178
2178
|
for (const [r, s] of l(this, K))
|
|
2179
2179
|
n.includes(r) || (B(s.effect), l(this, K).delete(r));
|
|
2180
2180
|
});
|
|
2181
|
-
this.anchor = t, m(this,
|
|
2181
|
+
this.anchor = t, m(this, Lt, n);
|
|
2182
2182
|
}
|
|
2183
2183
|
/**
|
|
2184
2184
|
*
|
|
@@ -2188,7 +2188,7 @@ class Wi {
|
|
|
2188
2188
|
ensure(t, n) {
|
|
2189
2189
|
var r = (
|
|
2190
2190
|
/** @type {Batch} */
|
|
2191
|
-
|
|
2191
|
+
A
|
|
2192
2192
|
), s = $i();
|
|
2193
2193
|
if (n && !l(this, ve).has(t) && !l(this, K).has(t))
|
|
2194
2194
|
if (s) {
|
|
@@ -2207,15 +2207,15 @@ class Wi {
|
|
|
2207
2207
|
u === t ? r.unskip_effect(a) : r.skip_effect(a);
|
|
2208
2208
|
for (const [u, a] of l(this, K))
|
|
2209
2209
|
u === t ? r.unskip_effect(a.effect) : r.skip_effect(a.effect);
|
|
2210
|
-
r.oncommit(l(this,
|
|
2210
|
+
r.oncommit(l(this, Pt)), r.ondiscard(l(this, nn));
|
|
2211
2211
|
} else
|
|
2212
|
-
|
|
2212
|
+
I && (this.anchor = E), l(this, Pt).call(this, r);
|
|
2213
2213
|
}
|
|
2214
2214
|
}
|
|
2215
|
-
ie = new WeakMap(), ve = new WeakMap(), K = new WeakMap(), Ze = new WeakMap(),
|
|
2215
|
+
ie = new WeakMap(), ve = new WeakMap(), K = new WeakMap(), Ze = new WeakMap(), Lt = new WeakMap(), Pt = new WeakMap(), nn = new WeakMap();
|
|
2216
2216
|
function Vi(e) {
|
|
2217
|
-
W === null &&
|
|
2218
|
-
const t =
|
|
2217
|
+
W === null && gr(), Sn(() => {
|
|
2218
|
+
const t = rs(e);
|
|
2219
2219
|
if (typeof t == "function") return (
|
|
2220
2220
|
/** @type {() => void} */
|
|
2221
2221
|
t
|
|
@@ -2227,7 +2227,7 @@ function Yi(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
|
|
|
2227
2227
|
}
|
|
2228
2228
|
function qi() {
|
|
2229
2229
|
const e = W;
|
|
2230
|
-
return e === null &&
|
|
2230
|
+
return e === null && gr(), (t, n, r) => {
|
|
2231
2231
|
const s = (
|
|
2232
2232
|
/** @type {Record<string, Function | Function[]>} */
|
|
2233
2233
|
e.s.$$events?.[
|
|
@@ -2236,7 +2236,7 @@ function qi() {
|
|
|
2236
2236
|
]
|
|
2237
2237
|
);
|
|
2238
2238
|
if (s) {
|
|
2239
|
-
const i =
|
|
2239
|
+
const i = vr(s) ? s.slice() : [s], o = Yi(
|
|
2240
2240
|
/** @type {string} */
|
|
2241
2241
|
t,
|
|
2242
2242
|
n,
|
|
@@ -2249,32 +2249,32 @@ function qi() {
|
|
|
2249
2249
|
return !0;
|
|
2250
2250
|
};
|
|
2251
2251
|
}
|
|
2252
|
-
function
|
|
2252
|
+
function Tt(e, t, n = !1) {
|
|
2253
2253
|
var r;
|
|
2254
|
-
|
|
2254
|
+
I && (r = E, An());
|
|
2255
2255
|
var s = new Wi(e), i = n ? $t : 0;
|
|
2256
2256
|
function o(u, a) {
|
|
2257
|
-
if (
|
|
2257
|
+
if (I) {
|
|
2258
2258
|
var f = ei(
|
|
2259
2259
|
/** @type {TemplateNode} */
|
|
2260
2260
|
r
|
|
2261
2261
|
);
|
|
2262
2262
|
if (u !== parseInt(f.substring(1))) {
|
|
2263
|
-
var c =
|
|
2263
|
+
var c = mr();
|
|
2264
2264
|
fe(c), s.anchor = c, ot(!1), s.ensure(u, a), ot(!0);
|
|
2265
2265
|
return;
|
|
2266
2266
|
}
|
|
2267
2267
|
}
|
|
2268
2268
|
s.ensure(u, a);
|
|
2269
2269
|
}
|
|
2270
|
-
|
|
2270
|
+
Vr(() => {
|
|
2271
2271
|
var u = !1;
|
|
2272
2272
|
t((a, f = 0) => {
|
|
2273
2273
|
u = !0, o(f, a);
|
|
2274
2274
|
}), u || o(-1, null);
|
|
2275
2275
|
}, i);
|
|
2276
2276
|
}
|
|
2277
|
-
function
|
|
2277
|
+
function us(e, t) {
|
|
2278
2278
|
ki(() => {
|
|
2279
2279
|
var n = e.getRootNode(), r = (
|
|
2280
2280
|
/** @type {ShadowRoot} */
|
|
@@ -2293,20 +2293,20 @@ function as(e, t) {
|
|
|
2293
2293
|
}
|
|
2294
2294
|
});
|
|
2295
2295
|
}
|
|
2296
|
-
function
|
|
2296
|
+
function fs(e) {
|
|
2297
2297
|
var t, n, r = "";
|
|
2298
2298
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
2299
2299
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
2300
2300
|
var s = e.length;
|
|
2301
|
-
for (t = 0; t < s; t++) e[t] && (n =
|
|
2301
|
+
for (t = 0; t < s; t++) e[t] && (n = fs(e[t])) && (r && (r += " "), r += n);
|
|
2302
2302
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
2303
2303
|
return r;
|
|
2304
2304
|
}
|
|
2305
2305
|
function Ui() {
|
|
2306
|
-
for (var e, t, n = 0, r = "", s = arguments.length; n < s; n++) (e = arguments[n]) && (t =
|
|
2306
|
+
for (var e, t, n = 0, r = "", s = arguments.length; n < s; n++) (e = arguments[n]) && (t = fs(e)) && (r && (r += " "), r += t);
|
|
2307
2307
|
return r;
|
|
2308
2308
|
}
|
|
2309
|
-
function
|
|
2309
|
+
function Qt(e) {
|
|
2310
2310
|
return typeof e == "object" ? Ui(e) : e ?? "";
|
|
2311
2311
|
}
|
|
2312
2312
|
function Xi(e, t, n) {
|
|
@@ -2316,26 +2316,26 @@ function Xi(e, t, n) {
|
|
|
2316
2316
|
function Ki(e, t) {
|
|
2317
2317
|
return e == null ? null : String(e);
|
|
2318
2318
|
}
|
|
2319
|
-
function
|
|
2319
|
+
function en(e, t, n, r, s, i) {
|
|
2320
2320
|
var o = e.__className;
|
|
2321
|
-
if (
|
|
2321
|
+
if (I || o !== n || o === void 0) {
|
|
2322
2322
|
var u = Xi(n, r);
|
|
2323
|
-
(!
|
|
2323
|
+
(!I || u !== e.getAttribute("class")) && (u == null ? e.removeAttribute("class") : t ? e.className = u : e.setAttribute("class", u)), e.__className = n;
|
|
2324
2324
|
}
|
|
2325
2325
|
return i;
|
|
2326
2326
|
}
|
|
2327
|
-
function
|
|
2327
|
+
function sr(e, t, n, r) {
|
|
2328
2328
|
var s = e.__style;
|
|
2329
|
-
if (
|
|
2329
|
+
if (I || s !== t) {
|
|
2330
2330
|
var i = Ki(t);
|
|
2331
|
-
(!
|
|
2331
|
+
(!I || i !== e.getAttribute("style")) && (i == null ? e.removeAttribute("style") : e.style.cssText = i), e.__style = t;
|
|
2332
2332
|
}
|
|
2333
2333
|
return r;
|
|
2334
2334
|
}
|
|
2335
2335
|
const Gi = /* @__PURE__ */ Symbol("is custom element"), Ji = /* @__PURE__ */ Symbol("is html"), Zi = Fs ? "link" : "LINK";
|
|
2336
|
-
function
|
|
2336
|
+
function ir(e, t, n, r) {
|
|
2337
2337
|
var s = Qi(e);
|
|
2338
|
-
|
|
2338
|
+
I && (s[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Zi) || s[t] !== (s[t] = n) && (t === "loading" && (e[Hs] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && eo(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
|
|
2339
2339
|
}
|
|
2340
2340
|
function Qi(e) {
|
|
2341
2341
|
return (
|
|
@@ -2343,20 +2343,20 @@ function Qi(e) {
|
|
|
2343
2343
|
// @ts-expect-error
|
|
2344
2344
|
e.__attributes ?? (e.__attributes = {
|
|
2345
2345
|
[Gi]: e.nodeName.includes("-"),
|
|
2346
|
-
[Ji]: e.namespaceURI ===
|
|
2346
|
+
[Ji]: e.namespaceURI === hr
|
|
2347
2347
|
})
|
|
2348
2348
|
);
|
|
2349
2349
|
}
|
|
2350
|
-
var
|
|
2350
|
+
var or = /* @__PURE__ */ new Map();
|
|
2351
2351
|
function eo(e) {
|
|
2352
|
-
var t = e.getAttribute("is") || e.nodeName, n =
|
|
2352
|
+
var t = e.getAttribute("is") || e.nodeName, n = or.get(t);
|
|
2353
2353
|
if (n) return n;
|
|
2354
|
-
|
|
2354
|
+
or.set(t, n = []);
|
|
2355
2355
|
for (var r, s = e, i = Element.prototype; i !== s; ) {
|
|
2356
2356
|
r = Rs(s);
|
|
2357
2357
|
for (var o in r)
|
|
2358
2358
|
r[o].set && n.push(o);
|
|
2359
|
-
s =
|
|
2359
|
+
s = _r(s);
|
|
2360
2360
|
}
|
|
2361
2361
|
return n;
|
|
2362
2362
|
}
|
|
@@ -2385,7 +2385,7 @@ function ge(e, t, n, r) {
|
|
|
2385
2385
|
(function(v, g) {
|
|
2386
2386
|
if (arguments.length > 0) {
|
|
2387
2387
|
const d = g ? x(c) : v;
|
|
2388
|
-
return
|
|
2388
|
+
return M(c, d), f = !0, s !== void 0 && (s = d), v;
|
|
2389
2389
|
}
|
|
2390
2390
|
return je && f || (h.f & ke) !== 0 ? c.v : x(c);
|
|
2391
2391
|
})
|
|
@@ -2394,7 +2394,7 @@ function ge(e, t, n, r) {
|
|
|
2394
2394
|
function to(e) {
|
|
2395
2395
|
return new no(e);
|
|
2396
2396
|
}
|
|
2397
|
-
var
|
|
2397
|
+
var Ce, Z;
|
|
2398
2398
|
class no {
|
|
2399
2399
|
/**
|
|
2400
2400
|
* @param {ComponentConstructorOptions & {
|
|
@@ -2403,7 +2403,7 @@ class no {
|
|
|
2403
2403
|
*/
|
|
2404
2404
|
constructor(t) {
|
|
2405
2405
|
/** @type {any} */
|
|
2406
|
-
w(this,
|
|
2406
|
+
w(this, Ce);
|
|
2407
2407
|
/** @type {Record<string, any>} */
|
|
2408
2408
|
w(this, Z);
|
|
2409
2409
|
var n = /* @__PURE__ */ new Map(), r = (i, o) => {
|
|
@@ -2420,11 +2420,11 @@ class no {
|
|
|
2420
2420
|
return o === js ? !0 : (x(n.get(o) ?? r(o, Reflect.get(i, o))), Reflect.has(i, o));
|
|
2421
2421
|
},
|
|
2422
2422
|
set(i, o, u) {
|
|
2423
|
-
return
|
|
2423
|
+
return M(n.get(o) ?? r(o, u), u), Reflect.set(i, o, u);
|
|
2424
2424
|
}
|
|
2425
2425
|
}
|
|
2426
2426
|
);
|
|
2427
|
-
m(this, Z, (t.hydrate ? Fi :
|
|
2427
|
+
m(this, Z, (t.hydrate ? Fi : ls)(t.component, {
|
|
2428
2428
|
target: t.target,
|
|
2429
2429
|
anchor: t.anchor,
|
|
2430
2430
|
props: s,
|
|
@@ -2432,9 +2432,9 @@ class no {
|
|
|
2432
2432
|
intro: t.intro ?? !1,
|
|
2433
2433
|
recover: t.recover,
|
|
2434
2434
|
transformError: t.transformError
|
|
2435
|
-
})), (!t?.props?.$$host || t.sync === !1) && le(), m(this,
|
|
2435
|
+
})), (!t?.props?.$$host || t.sync === !1) && le(), m(this, Ce, s.$$events);
|
|
2436
2436
|
for (const i of Object.keys(l(this, Z)))
|
|
2437
|
-
i === "$set" || i === "$destroy" || i === "$on" ||
|
|
2437
|
+
i === "$set" || i === "$destroy" || i === "$on" || Gt(this, i, {
|
|
2438
2438
|
get() {
|
|
2439
2439
|
return l(this, Z)[i];
|
|
2440
2440
|
},
|
|
@@ -2461,10 +2461,10 @@ class no {
|
|
|
2461
2461
|
* @returns {any}
|
|
2462
2462
|
*/
|
|
2463
2463
|
$on(t, n) {
|
|
2464
|
-
l(this,
|
|
2464
|
+
l(this, Ce)[t] = l(this, Ce)[t] || [];
|
|
2465
2465
|
const r = (...s) => n.call(this, ...s);
|
|
2466
|
-
return l(this,
|
|
2467
|
-
l(this,
|
|
2466
|
+
return l(this, Ce)[t].push(r), () => {
|
|
2467
|
+
l(this, Ce)[t] = l(this, Ce)[t].filter(
|
|
2468
2468
|
/** @param {any} fn */
|
|
2469
2469
|
(s) => s !== r
|
|
2470
2470
|
);
|
|
@@ -2474,9 +2474,9 @@ class no {
|
|
|
2474
2474
|
l(this, Z).$destroy();
|
|
2475
2475
|
}
|
|
2476
2476
|
}
|
|
2477
|
-
|
|
2478
|
-
let
|
|
2479
|
-
typeof HTMLElement == "function" && (
|
|
2477
|
+
Ce = new WeakMap(), Z = new WeakMap();
|
|
2478
|
+
let cs;
|
|
2479
|
+
typeof HTMLElement == "function" && (cs = class extends HTMLElement {
|
|
2480
2480
|
/**
|
|
2481
2481
|
* @param {*} $$componentCtor
|
|
2482
2482
|
* @param {*} $$slots
|
|
@@ -2485,27 +2485,27 @@ typeof HTMLElement == "function" && (fs = class extends HTMLElement {
|
|
|
2485
2485
|
constructor(t, n, r) {
|
|
2486
2486
|
super();
|
|
2487
2487
|
/** The Svelte component constructor */
|
|
2488
|
-
|
|
2488
|
+
k(this, "$$ctor");
|
|
2489
2489
|
/** Slots */
|
|
2490
|
-
|
|
2490
|
+
k(this, "$$s");
|
|
2491
2491
|
/** @type {any} The Svelte component instance */
|
|
2492
|
-
|
|
2492
|
+
k(this, "$$c");
|
|
2493
2493
|
/** Whether or not the custom element is connected */
|
|
2494
|
-
|
|
2494
|
+
k(this, "$$cn", !1);
|
|
2495
2495
|
/** @type {Record<string, any>} Component props data */
|
|
2496
|
-
|
|
2496
|
+
k(this, "$$d", {});
|
|
2497
2497
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
2498
|
-
|
|
2498
|
+
k(this, "$$r", !1);
|
|
2499
2499
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
2500
|
-
|
|
2500
|
+
k(this, "$$p_d", {});
|
|
2501
2501
|
/** @type {Record<string, EventListenerOrEventListenerObject[]>} Event listeners */
|
|
2502
|
-
|
|
2502
|
+
k(this, "$$l", {});
|
|
2503
2503
|
/** @type {Map<EventListenerOrEventListenerObject, Function>} Event listener unsubscribe functions */
|
|
2504
|
-
|
|
2504
|
+
k(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
2505
2505
|
/** @type {any} The managed render effect for reflecting attributes */
|
|
2506
|
-
|
|
2506
|
+
k(this, "$$me");
|
|
2507
2507
|
/** @type {ShadowRoot | null} The ShadowRoot of the custom element */
|
|
2508
|
-
|
|
2508
|
+
k(this, "$$shadowRoot", null);
|
|
2509
2509
|
this.$$ctor = t, this.$$s = n, r && (this.$$shadowRoot = this.attachShadow(r));
|
|
2510
2510
|
}
|
|
2511
2511
|
/**
|
|
@@ -2546,7 +2546,7 @@ typeof HTMLElement == "function" && (fs = class extends HTMLElement {
|
|
|
2546
2546
|
s in r && (s === "default" && !this.$$d.children ? (this.$$d.children = t(s), n.default = !0) : n[s] = t(s));
|
|
2547
2547
|
for (const s of this.attributes) {
|
|
2548
2548
|
const i = this.$$g_p(s.name);
|
|
2549
|
-
i in this.$$d || (this.$$d[i] =
|
|
2549
|
+
i in this.$$d || (this.$$d[i] = Xt(i, s.value, this.$$p_d, "toProp"));
|
|
2550
2550
|
}
|
|
2551
2551
|
for (const s in this.$$p_d)
|
|
2552
2552
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
@@ -2558,13 +2558,13 @@ typeof HTMLElement == "function" && (fs = class extends HTMLElement {
|
|
|
2558
2558
|
$$slots: n,
|
|
2559
2559
|
$$host: this
|
|
2560
2560
|
}
|
|
2561
|
-
}), this.$$me =
|
|
2562
|
-
|
|
2561
|
+
}), this.$$me = Ii(() => {
|
|
2562
|
+
Wr(() => {
|
|
2563
2563
|
this.$$r = !0;
|
|
2564
|
-
for (const s of
|
|
2564
|
+
for (const s of Kt(this.$$c)) {
|
|
2565
2565
|
if (!this.$$p_d[s]?.reflect) continue;
|
|
2566
2566
|
this.$$d[s] = this.$$c[s];
|
|
2567
|
-
const i =
|
|
2567
|
+
const i = Xt(
|
|
2568
2568
|
s,
|
|
2569
2569
|
this.$$d[s],
|
|
2570
2570
|
this.$$p_d,
|
|
@@ -2591,7 +2591,7 @@ typeof HTMLElement == "function" && (fs = class extends HTMLElement {
|
|
|
2591
2591
|
* @param {string} newValue
|
|
2592
2592
|
*/
|
|
2593
2593
|
attributeChangedCallback(t, n, r) {
|
|
2594
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
2594
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Xt(t, r, this.$$p_d, "toProp"), this.$$c?.$set({ [t]: this.$$d[t] }));
|
|
2595
2595
|
}
|
|
2596
2596
|
disconnectedCallback() {
|
|
2597
2597
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -2602,12 +2602,12 @@ typeof HTMLElement == "function" && (fs = class extends HTMLElement {
|
|
|
2602
2602
|
* @param {string} attribute_name
|
|
2603
2603
|
*/
|
|
2604
2604
|
$$g_p(t) {
|
|
2605
|
-
return
|
|
2605
|
+
return Kt(this.$$p_d).find(
|
|
2606
2606
|
(n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
|
|
2607
2607
|
) || t;
|
|
2608
2608
|
}
|
|
2609
2609
|
});
|
|
2610
|
-
function
|
|
2610
|
+
function Xt(e, t, n, r) {
|
|
2611
2611
|
const s = n[e]?.type;
|
|
2612
2612
|
if (t = s === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
2613
2613
|
return t;
|
|
@@ -2647,23 +2647,23 @@ function ro(e) {
|
|
|
2647
2647
|
}), t;
|
|
2648
2648
|
}
|
|
2649
2649
|
function jn(e, t, n, r, s, i) {
|
|
2650
|
-
let o = class extends
|
|
2650
|
+
let o = class extends cs {
|
|
2651
2651
|
constructor() {
|
|
2652
2652
|
super(e, n, s), this.$$p_d = t;
|
|
2653
2653
|
}
|
|
2654
2654
|
static get observedAttributes() {
|
|
2655
|
-
return
|
|
2655
|
+
return Kt(t).map(
|
|
2656
2656
|
(u) => (t[u].attribute || u).toLowerCase()
|
|
2657
2657
|
);
|
|
2658
2658
|
}
|
|
2659
2659
|
};
|
|
2660
|
-
return
|
|
2661
|
-
|
|
2660
|
+
return Kt(t).forEach((u) => {
|
|
2661
|
+
Gt(o.prototype, u, {
|
|
2662
2662
|
get() {
|
|
2663
2663
|
return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
|
|
2664
2664
|
},
|
|
2665
2665
|
set(a) {
|
|
2666
|
-
a =
|
|
2666
|
+
a = Xt(u, a, t), this.$$d[u] = a;
|
|
2667
2667
|
var f = this.$$c;
|
|
2668
2668
|
if (f) {
|
|
2669
2669
|
var c = at(f, u)?.get;
|
|
@@ -2672,7 +2672,7 @@ function jn(e, t, n, r, s, i) {
|
|
|
2672
2672
|
}
|
|
2673
2673
|
});
|
|
2674
2674
|
}), r.forEach((u) => {
|
|
2675
|
-
|
|
2675
|
+
Gt(o.prototype, u, {
|
|
2676
2676
|
get() {
|
|
2677
2677
|
return this.$$c?.[u];
|
|
2678
2678
|
}
|
|
@@ -2681,8 +2681,8 @@ function jn(e, t, n, r, s, i) {
|
|
|
2681
2681
|
o, o;
|
|
2682
2682
|
}
|
|
2683
2683
|
var so = /* @__PURE__ */ rt('<div role="button" tabindex="0" title="Resize window"><svg viewBox="0 0 16 16" fill="currentColor"><path d="M16 16V14H14V16H16Z"></path><path d="M16 11V9H14V11H16Z"></path><path d="M13 16V14H11V16H13Z"></path></svg></div>');
|
|
2684
|
-
function
|
|
2685
|
-
|
|
2684
|
+
function ds(e, t) {
|
|
2685
|
+
ln(t, !0);
|
|
2686
2686
|
let n = ge(t, "onPointerDown"), r = ge(t, "handleClass", 7, "absolute bottom-0 right-0 w-4 h-4 cursor-se-resize"), s = ge(t, "iconClass", 7, "w-full h-full text-base-content/30");
|
|
2687
2687
|
var i = {
|
|
2688
2688
|
get onPointerDown() {
|
|
@@ -2704,23 +2704,23 @@ function cs(e, t) {
|
|
|
2704
2704
|
s(a), le();
|
|
2705
2705
|
}
|
|
2706
2706
|
}, o = so(), u = xe(o);
|
|
2707
|
-
return ye(o),
|
|
2708
|
-
|
|
2709
|
-
}),
|
|
2707
|
+
return ye(o), Rt(() => {
|
|
2708
|
+
en(o, 1, Qt(r())), en(u, 0, Qt(s()));
|
|
2709
|
+
}), Zt("mousedown", o, function(...a) {
|
|
2710
2710
|
n()?.apply(this, a);
|
|
2711
|
-
}), _e(e, o),
|
|
2711
|
+
}), _e(e, o), an(i);
|
|
2712
2712
|
}
|
|
2713
2713
|
zn(["mousedown"]);
|
|
2714
|
-
jn(
|
|
2715
|
-
var io = /* @__PURE__ */
|
|
2714
|
+
jn(ds, { onPointerDown: {}, handleClass: {}, iconClass: {} }, [], [], { mode: "open" });
|
|
2715
|
+
var io = /* @__PURE__ */ os('<svg xmlns="http://www.w3.org/2000/svg" class="pie-window-controls__icon svelte-dx0z4a" width="12" height="12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 15l7-7 7 7"></path></svg>'), oo = /* @__PURE__ */ os('<svg xmlns="http://www.w3.org/2000/svg" class="pie-window-controls__icon svelte-dx0z4a" width="12" height="12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg>'), lo = /* @__PURE__ */ rt('<button><!></button> <button title="Close" aria-label="Close panel"><svg xmlns="http://www.w3.org/2000/svg" class="pie-window-controls__icon svelte-dx0z4a" width="12" height="12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></button>', 1);
|
|
2716
2716
|
const ao = {
|
|
2717
2717
|
hash: "svelte-dx0z4a",
|
|
2718
2718
|
code: ".pie-window-controls__button.svelte-dx0z4a {display:inline-flex;align-items:center;justify-content:center;width:1.35rem;height:1.35rem;padding:0;border:1px solid rgba(148, 163, 184, 0.7);border-radius:9999px;background:rgba(255, 255, 255, 0.65);color:#334155;cursor:pointer;}.pie-window-controls__button.svelte-dx0z4a:hover {background:rgba(241, 245, 249, 0.95);}.pie-window-controls__button.svelte-dx0z4a:focus-visible {outline:2px solid #3b82f6;outline-offset:1px;}.pie-window-controls__icon.svelte-dx0z4a {display:block;}"
|
|
2719
2719
|
};
|
|
2720
|
-
function
|
|
2721
|
-
|
|
2720
|
+
function hs(e, t) {
|
|
2721
|
+
ln(t, !0), us(e, ao);
|
|
2722
2722
|
let n = ge(t, "minimized", 7, !1), r = ge(t, "onToggle"), s = ge(t, "onClose"), i = ge(t, "buttonClass", 7, "");
|
|
2723
|
-
const o = /* @__PURE__ */
|
|
2723
|
+
const o = /* @__PURE__ */ Rr(() => (i() || "").trim() || "pie-window-controls__button");
|
|
2724
2724
|
var u = {
|
|
2725
2725
|
get minimized() {
|
|
2726
2726
|
return n();
|
|
@@ -2746,7 +2746,7 @@ function ds(e, t) {
|
|
|
2746
2746
|
set buttonClass(d = "") {
|
|
2747
2747
|
i(d), le();
|
|
2748
2748
|
}
|
|
2749
|
-
}, a = lo(), f =
|
|
2749
|
+
}, a = lo(), f = Hr(a), c = xe(f);
|
|
2750
2750
|
{
|
|
2751
2751
|
var h = (d) => {
|
|
2752
2752
|
var $ = io();
|
|
@@ -2755,38 +2755,38 @@ function ds(e, t) {
|
|
|
2755
2755
|
var $ = oo();
|
|
2756
2756
|
_e(d, $);
|
|
2757
2757
|
};
|
|
2758
|
-
|
|
2758
|
+
Tt(c, (d) => {
|
|
2759
2759
|
n() ? d(h) : d(v, -1);
|
|
2760
2760
|
});
|
|
2761
2761
|
}
|
|
2762
2762
|
ye(f);
|
|
2763
2763
|
var g = Ve(f, 2);
|
|
2764
|
-
return
|
|
2765
|
-
|
|
2766
|
-
}),
|
|
2764
|
+
return Rt(() => {
|
|
2765
|
+
en(f, 1, Qt(x(o)), "svelte-dx0z4a"), ir(f, "title", n() ? "Maximize" : "Minimize"), ir(f, "aria-label", n() ? "Maximize panel" : "Minimize panel"), en(g, 1, Qt(x(o)), "svelte-dx0z4a");
|
|
2766
|
+
}), Zt("click", f, function(...d) {
|
|
2767
2767
|
r()?.apply(this, d);
|
|
2768
|
-
}),
|
|
2768
|
+
}), Zt("click", g, function(...d) {
|
|
2769
2769
|
s()?.apply(this, d);
|
|
2770
|
-
}), _e(e, a),
|
|
2770
|
+
}), _e(e, a), an(u);
|
|
2771
2771
|
}
|
|
2772
2772
|
zn(["click"]);
|
|
2773
|
-
jn(
|
|
2774
|
-
var uo = Object.defineProperty, fo = (e, t, n) => t in e ? uo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n,
|
|
2775
|
-
typeof window < "u" && ((
|
|
2773
|
+
jn(hs, { minimized: {}, onToggle: {}, onClose: {}, buttonClass: {} }, [], [], { mode: "open" });
|
|
2774
|
+
var uo = Object.defineProperty, fo = (e, t, n) => t in e ? uo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, lr = (e, t, n) => fo(e, typeof t != "symbol" ? t + "" : t, n), ar;
|
|
2775
|
+
typeof window < "u" && ((ar = window.__svelte ?? (window.__svelte = {})).v ?? (ar.v = /* @__PURE__ */ new Set())).add("5");
|
|
2776
2776
|
new class extends Error {
|
|
2777
2777
|
constructor() {
|
|
2778
|
-
super(...arguments),
|
|
2778
|
+
super(...arguments), lr(this, "name", "StaleReactionError"), lr(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
2779
2779
|
}
|
|
2780
2780
|
}();
|
|
2781
2781
|
const co = /* @__PURE__ */ new Set(), ho = /* @__PURE__ */ new Set();
|
|
2782
|
-
function
|
|
2782
|
+
function vs(e) {
|
|
2783
2783
|
for (var t = 0; t < e.length; t++)
|
|
2784
2784
|
co.add(e[t]);
|
|
2785
2785
|
for (var n of ho)
|
|
2786
2786
|
n(e);
|
|
2787
2787
|
}
|
|
2788
|
-
|
|
2789
|
-
|
|
2788
|
+
vs(["click"]);
|
|
2789
|
+
vs(["mousedown"]);
|
|
2790
2790
|
function vo(e, t) {
|
|
2791
2791
|
const n = (f, c, h) => Math.max(c, Math.min(f, h)), r = n(
|
|
2792
2792
|
Math.round(e.width * t.widthRatio),
|
|
@@ -2870,7 +2870,7 @@ const Eo = {
|
|
|
2870
2870
|
code: ".pie-section-player-tools-session-debugger.svelte-10oyp9b {position:fixed;z-index:9999;background:var(--color-base-100, #fff);color:var(--color-base-content, #1f2937);border:2px solid var(--color-base-300, #d1d5db);border-radius:8px;box-shadow:0 25px 50px -12px rgba(0, 0, 0, 0.25);overflow:hidden;font-family:var(--pie-font-family, Inter, system-ui, sans-serif);}.pie-section-player-tools-session-debugger__header.svelte-10oyp9b {padding:8px 16px;display:flex;align-items:center;justify-content:space-between;background:var(--color-base-200, #f3f4f6);cursor:move;user-select:none;border-bottom:1px solid var(--color-base-300, #d1d5db);}.pie-section-player-tools-session-debugger__header-title.svelte-10oyp9b {display:flex;align-items:center;gap:8px;}.pie-section-player-tools-session-debugger__icon-sm.svelte-10oyp9b {width:1rem;height:1rem;}.pie-section-player-tools-session-debugger__title.svelte-10oyp9b {margin:0;font-size:0.95rem;font-weight:700;}.pie-section-player-tools-session-debugger__header-actions.svelte-10oyp9b {display:flex;gap:4px;}.pie-section-player-tools-session-debugger__content-shell.svelte-10oyp9b {display:flex;flex-direction:column;min-height:0;}"
|
|
2871
2871
|
};
|
|
2872
2872
|
function So(e, t) {
|
|
2873
|
-
|
|
2873
|
+
ln(t, !0), us(e, Eo);
|
|
2874
2874
|
const n = qi();
|
|
2875
2875
|
let r = ge(t, "toolkitCoordinator", 7, null), s = ge(t, "sectionId", 7, ""), i = ge(t, "attemptId", 7, void 0), o = /* @__PURE__ */ z(!1), u = /* @__PURE__ */ z(24), a = /* @__PURE__ */ z(100), f = /* @__PURE__ */ z(220), c = /* @__PURE__ */ z(600), h = /* @__PURE__ */ z(lt({
|
|
2876
2876
|
currentItemIndex: null,
|
|
@@ -2902,22 +2902,22 @@ function So(e, t) {
|
|
|
2902
2902
|
return mo(r(), s(), i()) || void 0;
|
|
2903
2903
|
}
|
|
2904
2904
|
function G(p, re) {
|
|
2905
|
-
const We = re || Y(),
|
|
2906
|
-
|
|
2905
|
+
const We = re || Y(), C = We?.getRuntimeState?.() || null, Ct = We?.getSession?.() || null;
|
|
2906
|
+
M(d, !!We, !0), M(
|
|
2907
2907
|
h,
|
|
2908
2908
|
{
|
|
2909
|
-
currentItemIndex: typeof
|
|
2910
|
-
currentItemId: typeof
|
|
2911
|
-
visitedItemIdentifiers: S(
|
|
2912
|
-
loadingComplete:
|
|
2913
|
-
totalRegistered: typeof
|
|
2914
|
-
totalLoaded: typeof
|
|
2915
|
-
itemsComplete:
|
|
2916
|
-
completedCount: typeof
|
|
2917
|
-
totalItems: typeof
|
|
2909
|
+
currentItemIndex: typeof C?.currentItemIndex == "number" && C.currentItemIndex >= 0 ? C.currentItemIndex : null,
|
|
2910
|
+
currentItemId: typeof C?.currentItemId == "string" && C.currentItemId ? C.currentItemId : null,
|
|
2911
|
+
visitedItemIdentifiers: S(C?.visitedItemIdentifiers || []),
|
|
2912
|
+
loadingComplete: C?.loadingComplete === !0,
|
|
2913
|
+
totalRegistered: typeof C?.totalRegistered == "number" ? C.totalRegistered : 0,
|
|
2914
|
+
totalLoaded: typeof C?.totalLoaded == "number" ? C.totalLoaded : 0,
|
|
2915
|
+
itemsComplete: C?.itemsComplete === !0,
|
|
2916
|
+
completedCount: typeof C?.completedCount == "number" ? C.completedCount : 0,
|
|
2917
|
+
totalItems: typeof C?.totalItems == "number" ? C.totalItems : 0,
|
|
2918
2918
|
updatedAt: p?.updatedAt || Date.now(),
|
|
2919
2919
|
lastChangedItemId: p?.itemId || null,
|
|
2920
|
-
itemSessions: S(
|
|
2920
|
+
itemSessions: S(C?.itemSessions || Ct?.itemSessions || {})
|
|
2921
2921
|
},
|
|
2922
2922
|
!0
|
|
2923
2923
|
);
|
|
@@ -2928,16 +2928,16 @@ function So(e, t) {
|
|
|
2928
2928
|
function st() {
|
|
2929
2929
|
g?.(), g = null;
|
|
2930
2930
|
}
|
|
2931
|
-
function
|
|
2931
|
+
function Fn(p) {
|
|
2932
2932
|
G({
|
|
2933
2933
|
itemId: p?.itemId,
|
|
2934
2934
|
updatedAt: p?.timestamp || Date.now()
|
|
2935
2935
|
});
|
|
2936
2936
|
}
|
|
2937
|
-
function
|
|
2937
|
+
function Bn() {
|
|
2938
2938
|
const p = Y() || null;
|
|
2939
2939
|
if (!p) {
|
|
2940
|
-
Be(),
|
|
2940
|
+
Be(), M(d, !1), M(
|
|
2941
2941
|
h,
|
|
2942
2942
|
{
|
|
2943
2943
|
currentItemIndex: null,
|
|
@@ -2962,20 +2962,28 @@ function So(e, t) {
|
|
|
2962
2962
|
G(void 0, p);
|
|
2963
2963
|
return;
|
|
2964
2964
|
}
|
|
2965
|
-
Be()
|
|
2965
|
+
Be();
|
|
2966
|
+
const C = r()?.subscribeItemEvents?.({
|
|
2967
|
+
sectionId: s(),
|
|
2968
|
+
attemptId: i(),
|
|
2969
|
+
listener: Fn
|
|
2970
|
+
}) || null, Ct = r()?.subscribeSectionLifecycleEvents?.({
|
|
2966
2971
|
sectionId: s(),
|
|
2967
2972
|
attemptId: i(),
|
|
2968
|
-
listener:
|
|
2969
|
-
}) || null
|
|
2973
|
+
listener: Fn
|
|
2974
|
+
}) || null;
|
|
2975
|
+
v = () => {
|
|
2976
|
+
C?.(), Ct?.();
|
|
2977
|
+
}, _.controller = p, _.sectionId = s(), _.attemptId = re, G(void 0, p);
|
|
2970
2978
|
}
|
|
2971
2979
|
function _s() {
|
|
2972
2980
|
$ || ($ = !0, queueMicrotask(() => {
|
|
2973
|
-
$ = !1,
|
|
2981
|
+
$ = !1, Bn();
|
|
2974
2982
|
}));
|
|
2975
2983
|
}
|
|
2976
2984
|
Sn(() => {
|
|
2977
2985
|
if (!(!r() || !s()))
|
|
2978
|
-
return
|
|
2986
|
+
return Bn(), st(), g = r().onSectionControllerLifecycle?.((p) => {
|
|
2979
2987
|
go(p, s(), i()) && (_s(), G({ updatedAt: Date.now() }));
|
|
2980
2988
|
}) || null, () => {
|
|
2981
2989
|
Be(), st();
|
|
@@ -2991,9 +2999,9 @@ function So(e, t) {
|
|
|
2991
2999
|
paddingX: 16,
|
|
2992
3000
|
paddingY: 16
|
|
2993
3001
|
});
|
|
2994
|
-
|
|
3002
|
+
M(u, p.x, !0), M(a, p.y, !0), M(f, p.width, !0), M(c, p.height, !0);
|
|
2995
3003
|
});
|
|
2996
|
-
const
|
|
3004
|
+
const fn = _o({
|
|
2997
3005
|
getState: () => ({
|
|
2998
3006
|
x: x(u),
|
|
2999
3007
|
y: x(a),
|
|
@@ -3001,13 +3009,13 @@ function So(e, t) {
|
|
|
3001
3009
|
height: x(c)
|
|
3002
3010
|
}),
|
|
3003
3011
|
setState: (p) => {
|
|
3004
|
-
|
|
3012
|
+
M(u, p.x, !0), M(a, p.y, !0), M(f, p.width, !0), M(c, p.height, !0);
|
|
3005
3013
|
},
|
|
3006
3014
|
minWidth: 300,
|
|
3007
3015
|
minHeight: 200
|
|
3008
3016
|
});
|
|
3009
3017
|
Sn(() => () => {
|
|
3010
|
-
|
|
3018
|
+
fn.stop();
|
|
3011
3019
|
});
|
|
3012
3020
|
var ps = {
|
|
3013
3021
|
get toolkitCoordinator() {
|
|
@@ -3028,58 +3036,58 @@ function So(e, t) {
|
|
|
3028
3036
|
set attemptId(p = void 0) {
|
|
3029
3037
|
i(p), le();
|
|
3030
3038
|
}
|
|
3031
|
-
},
|
|
3032
|
-
|
|
3039
|
+
}, Ht = xo(), Ft = xe(Ht), Wn = Ve(xe(Ft), 2), gs = xe(Wn);
|
|
3040
|
+
hs(gs, {
|
|
3033
3041
|
get minimized() {
|
|
3034
3042
|
return x(o);
|
|
3035
3043
|
},
|
|
3036
|
-
onToggle: () =>
|
|
3044
|
+
onToggle: () => M(o, !x(o)),
|
|
3037
3045
|
onClose: () => n("close")
|
|
3038
|
-
}), ye(
|
|
3039
|
-
var
|
|
3046
|
+
}), ye(Wn), ye(Ft);
|
|
3047
|
+
var Vn = Ve(Ft, 2);
|
|
3040
3048
|
{
|
|
3041
3049
|
var ms = (p) => {
|
|
3042
|
-
var re = $o(), We = xe(re),
|
|
3050
|
+
var re = $o(), We = xe(re), C = Ve(xe(We), 2);
|
|
3043
3051
|
{
|
|
3044
|
-
var
|
|
3045
|
-
var
|
|
3046
|
-
_e(it,
|
|
3052
|
+
var Ct = (it) => {
|
|
3053
|
+
var Bt = wo();
|
|
3054
|
+
_e(it, Bt);
|
|
3047
3055
|
}, ys = (it) => {
|
|
3048
|
-
var
|
|
3056
|
+
var Bt = yo(), Yn = Hr(Bt);
|
|
3049
3057
|
{
|
|
3050
|
-
var $s = (
|
|
3058
|
+
var $s = (kt) => {
|
|
3051
3059
|
var Ss = bo();
|
|
3052
|
-
_e(
|
|
3053
|
-
}, xs = /* @__PURE__ */
|
|
3054
|
-
|
|
3055
|
-
x(xs) &&
|
|
3060
|
+
_e(kt, Ss);
|
|
3061
|
+
}, xs = /* @__PURE__ */ Rr(() => Object.keys(x(h).itemSessions || {}).length === 0);
|
|
3062
|
+
Tt(Yn, (kt) => {
|
|
3063
|
+
x(xs) && kt($s);
|
|
3056
3064
|
});
|
|
3057
3065
|
}
|
|
3058
|
-
var
|
|
3059
|
-
ye(
|
|
3066
|
+
var qn = Ve(Yn, 2), Un = Ve(xe(qn), 2), Es = xe(Un, !0);
|
|
3067
|
+
ye(Un), ye(qn), Rt((kt) => Hi(Es, kt), [() => JSON.stringify(x(h), null, 2)]), _e(it, Bt);
|
|
3060
3068
|
};
|
|
3061
|
-
|
|
3062
|
-
x(d) ? it(ys, -1) : it(
|
|
3069
|
+
Tt(C, (it) => {
|
|
3070
|
+
x(d) ? it(ys, -1) : it(Ct);
|
|
3063
3071
|
});
|
|
3064
3072
|
}
|
|
3065
|
-
ye(We), ye(re),
|
|
3073
|
+
ye(We), ye(re), Rt(() => sr(re, `height: ${x(c) - 50}px;`)), _e(p, re);
|
|
3066
3074
|
};
|
|
3067
|
-
|
|
3075
|
+
Tt(Vn, (p) => {
|
|
3068
3076
|
x(o) || p(ms);
|
|
3069
3077
|
});
|
|
3070
3078
|
}
|
|
3071
|
-
var ws = Ve(
|
|
3079
|
+
var ws = Ve(Vn, 2);
|
|
3072
3080
|
{
|
|
3073
3081
|
var bs = (p) => {
|
|
3074
|
-
|
|
3075
|
-
onPointerDown: (re) =>
|
|
3082
|
+
ds(p, {
|
|
3083
|
+
onPointerDown: (re) => fn.startResize(re)
|
|
3076
3084
|
});
|
|
3077
3085
|
};
|
|
3078
|
-
|
|
3086
|
+
Tt(ws, (p) => {
|
|
3079
3087
|
x(o) || p(bs);
|
|
3080
3088
|
});
|
|
3081
3089
|
}
|
|
3082
|
-
return ye(
|
|
3090
|
+
return ye(Ht), Rt(() => sr(Ht, `left: ${x(u) ?? ""}px; top: ${x(a) ?? ""}px; width: ${x(f) ?? ""}px; ${x(o) ? "height: auto;" : `height: ${x(c)}px;`}`)), Zt("mousedown", Ft, (p) => fn.startDrag(p)), _e(e, Ht), an(ps);
|
|
3083
3091
|
}
|
|
3084
3092
|
zn(["mousedown"]);
|
|
3085
3093
|
customElements.define("pie-section-player-tools-session-debugger", jn(
|