@pie-players/pie-section-player-tools-session-debugger 0.3.4 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SectionSessionPanel.svelte +103 -67
- package/dist/section-player-tools-session-debugger.js +1199 -1169
- package/package.json +3 -3
|
@@ -1,144 +1,147 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Cs = Object.defineProperty;
|
|
2
|
+
var Un = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
typeof window < "u" && ((
|
|
10
|
-
const
|
|
11
|
-
var
|
|
12
|
-
const
|
|
5
|
+
var Is = (e, t, n) => t in e ? Cs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
|
+
var I = (e, t, n) => Is(e, typeof t != "symbol" ? t + "" : t, n), cn = (e, t, n) => t.has(e) || Un("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) ? Un("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), k = (e, t, n) => (cn(e, t, "access private method"), n);
|
|
8
|
+
var ar;
|
|
9
|
+
typeof window < "u" && ((ar = window.__svelte ?? (window.__svelte = {})).v ?? (ar.v = /* @__PURE__ */ new Set())).add("5");
|
|
10
|
+
const ks = 1, Ts = 2, ur = "[", fr = "[!", Xn = "[?", cr = "]", wt = {}, O = /* @__PURE__ */ Symbol(), dr = "http://www.w3.org/1999/xhtml", hn = !1;
|
|
11
|
+
var hr = Array.isArray, As = Array.prototype.indexOf, bt = Array.prototype.includes, Ms = Array.from, Xt = Object.keys, Kt = Object.defineProperty, at = Object.getOwnPropertyDescriptor, Rs = Object.getOwnPropertyDescriptors, Ns = Object.prototype, Os = Array.prototype, vr = Object.getPrototypeOf, Kn = Object.isExtensible;
|
|
12
|
+
const Ds = () => {
|
|
13
13
|
};
|
|
14
|
-
function
|
|
14
|
+
function Ls(e) {
|
|
15
15
|
for (var t = 0; t < e.length; t++)
|
|
16
16
|
e[t]();
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function _r() {
|
|
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, Ct = 4,
|
|
24
|
+
const P = 2, Ct = 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, Gn = 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
|
+
I(this, "name", "StaleReactionError");
|
|
28
|
+
I(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
29
29
|
}
|
|
30
|
-
}(),
|
|
31
|
-
|
|
30
|
+
}(), Fs = (
|
|
31
|
+
// We gotta write it like this because after downleveling the pure comment may end up in the wrong location
|
|
32
|
+
!!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml")
|
|
33
|
+
), nn = 3, rn = 8;
|
|
34
|
+
function pr(e) {
|
|
32
35
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
33
36
|
}
|
|
34
|
-
function
|
|
37
|
+
function Bs() {
|
|
35
38
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
36
39
|
}
|
|
37
|
-
function
|
|
40
|
+
function Ws(e) {
|
|
38
41
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
39
42
|
}
|
|
40
|
-
function
|
|
43
|
+
function Vs() {
|
|
41
44
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
42
45
|
}
|
|
43
|
-
function
|
|
46
|
+
function Ys(e) {
|
|
44
47
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
45
48
|
}
|
|
46
|
-
function
|
|
49
|
+
function qs() {
|
|
47
50
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
48
51
|
}
|
|
49
|
-
function
|
|
52
|
+
function Us() {
|
|
50
53
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
51
54
|
}
|
|
52
|
-
function
|
|
55
|
+
function Xs() {
|
|
53
56
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
54
57
|
}
|
|
55
|
-
function
|
|
58
|
+
function Ks() {
|
|
56
59
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
57
60
|
}
|
|
58
|
-
function
|
|
61
|
+
function Gs() {
|
|
59
62
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
60
63
|
}
|
|
61
|
-
function
|
|
64
|
+
function Js() {
|
|
62
65
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
63
66
|
}
|
|
64
|
-
function
|
|
67
|
+
function sn(e) {
|
|
65
68
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
66
69
|
}
|
|
67
|
-
function
|
|
70
|
+
function Zs() {
|
|
68
71
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
69
72
|
}
|
|
70
|
-
let
|
|
71
|
-
function
|
|
72
|
-
|
|
73
|
+
let C = !1;
|
|
74
|
+
function ot(e) {
|
|
75
|
+
C = e;
|
|
73
76
|
}
|
|
74
|
-
let
|
|
75
|
-
function
|
|
77
|
+
let E;
|
|
78
|
+
function fe(e) {
|
|
76
79
|
if (e === null)
|
|
77
|
-
throw
|
|
78
|
-
return
|
|
80
|
+
throw sn(), wt;
|
|
81
|
+
return E = e;
|
|
79
82
|
}
|
|
80
83
|
function An() {
|
|
81
|
-
return
|
|
84
|
+
return fe(/* @__PURE__ */ Ae(E));
|
|
82
85
|
}
|
|
83
|
-
function
|
|
84
|
-
if (
|
|
85
|
-
if (/* @__PURE__ */
|
|
86
|
-
throw
|
|
87
|
-
|
|
86
|
+
function ye(e) {
|
|
87
|
+
if (C) {
|
|
88
|
+
if (/* @__PURE__ */ Ae(E) !== null)
|
|
89
|
+
throw sn(), wt;
|
|
90
|
+
E = e;
|
|
88
91
|
}
|
|
89
92
|
}
|
|
90
|
-
function
|
|
91
|
-
if (
|
|
92
|
-
for (var t = e, n =
|
|
93
|
+
function Qs(e = 1) {
|
|
94
|
+
if (C) {
|
|
95
|
+
for (var t = e, n = E; t--; )
|
|
93
96
|
n = /** @type {TemplateNode} */
|
|
94
|
-
/* @__PURE__ */
|
|
95
|
-
|
|
97
|
+
/* @__PURE__ */ Ae(n);
|
|
98
|
+
E = n;
|
|
96
99
|
}
|
|
97
100
|
}
|
|
98
|
-
function
|
|
99
|
-
for (var t = 0, n =
|
|
100
|
-
if (n.nodeType ===
|
|
101
|
+
function gr(e = !0) {
|
|
102
|
+
for (var t = 0, n = E; ; ) {
|
|
103
|
+
if (n.nodeType === rn) {
|
|
101
104
|
var r = (
|
|
102
105
|
/** @type {Comment} */
|
|
103
106
|
n.data
|
|
104
107
|
);
|
|
105
|
-
if (r ===
|
|
108
|
+
if (r === cr) {
|
|
106
109
|
if (t === 0) return n;
|
|
107
110
|
t -= 1;
|
|
108
|
-
} else (r ===
|
|
111
|
+
} else (r === ur || r === fr || // "[1", "[2", etc. for if blocks
|
|
109
112
|
r[0] === "[" && !isNaN(Number(r.slice(1)))) && (t += 1);
|
|
110
113
|
}
|
|
111
114
|
var s = (
|
|
112
115
|
/** @type {TemplateNode} */
|
|
113
|
-
/* @__PURE__ */
|
|
116
|
+
/* @__PURE__ */ Ae(n)
|
|
114
117
|
);
|
|
115
118
|
e && n.remove(), n = s;
|
|
116
119
|
}
|
|
117
120
|
}
|
|
118
|
-
function
|
|
119
|
-
if (!e || e.nodeType !==
|
|
120
|
-
throw
|
|
121
|
+
function ei(e) {
|
|
122
|
+
if (!e || e.nodeType !== rn)
|
|
123
|
+
throw sn(), wt;
|
|
121
124
|
return (
|
|
122
125
|
/** @type {Comment} */
|
|
123
126
|
e.data
|
|
124
127
|
);
|
|
125
128
|
}
|
|
126
|
-
function
|
|
129
|
+
function mr(e) {
|
|
127
130
|
return e === this.v;
|
|
128
131
|
}
|
|
129
|
-
function
|
|
132
|
+
function ti(e, t) {
|
|
130
133
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
131
134
|
}
|
|
132
|
-
function
|
|
133
|
-
return !
|
|
135
|
+
function ni(e) {
|
|
136
|
+
return !ti(e, this.v);
|
|
134
137
|
}
|
|
135
|
-
let
|
|
138
|
+
let ri = !1, W = null;
|
|
136
139
|
function xt(e) {
|
|
137
|
-
|
|
140
|
+
W = e;
|
|
138
141
|
}
|
|
139
|
-
function
|
|
140
|
-
|
|
141
|
-
p:
|
|
142
|
+
function on(e, t = !1, n) {
|
|
143
|
+
W = {
|
|
144
|
+
p: W,
|
|
142
145
|
i: !1,
|
|
143
146
|
c: null,
|
|
144
147
|
e: null,
|
|
@@ -147,52 +150,52 @@ function sn(e, t = !1, n) {
|
|
|
147
150
|
l: null
|
|
148
151
|
};
|
|
149
152
|
}
|
|
150
|
-
function
|
|
153
|
+
function ln(e) {
|
|
151
154
|
var t = (
|
|
152
155
|
/** @type {ComponentContext} */
|
|
153
|
-
|
|
156
|
+
W
|
|
154
157
|
), n = t.e;
|
|
155
158
|
if (n !== null) {
|
|
156
159
|
t.e = null;
|
|
157
160
|
for (var r of n)
|
|
158
|
-
|
|
161
|
+
Fr(r);
|
|
159
162
|
}
|
|
160
|
-
return e !== void 0 && (t.x = e), t.i = !0,
|
|
163
|
+
return e !== void 0 && (t.x = e), t.i = !0, W = t.p, e ?? /** @type {T} */
|
|
161
164
|
{};
|
|
162
165
|
}
|
|
163
|
-
function
|
|
166
|
+
function wr() {
|
|
164
167
|
return !0;
|
|
165
168
|
}
|
|
166
|
-
let
|
|
167
|
-
function
|
|
168
|
-
var e =
|
|
169
|
-
|
|
169
|
+
let qe = [];
|
|
170
|
+
function br() {
|
|
171
|
+
var e = qe;
|
|
172
|
+
qe = [], Ls(e);
|
|
170
173
|
}
|
|
171
|
-
function
|
|
172
|
-
if (
|
|
173
|
-
var t =
|
|
174
|
+
function ut(e) {
|
|
175
|
+
if (qe.length === 0 && !Tt) {
|
|
176
|
+
var t = qe;
|
|
174
177
|
queueMicrotask(() => {
|
|
175
|
-
t ===
|
|
178
|
+
t === qe && br();
|
|
176
179
|
});
|
|
177
180
|
}
|
|
178
|
-
|
|
181
|
+
qe.push(e);
|
|
179
182
|
}
|
|
180
|
-
function
|
|
181
|
-
for (;
|
|
182
|
-
|
|
183
|
+
function si() {
|
|
184
|
+
for (; qe.length > 0; )
|
|
185
|
+
br();
|
|
183
186
|
}
|
|
184
|
-
function
|
|
187
|
+
function yr(e) {
|
|
185
188
|
var t = y;
|
|
186
189
|
if (t === null)
|
|
187
|
-
return b.f |=
|
|
188
|
-
if ((t.f &
|
|
190
|
+
return b.f |= De, e;
|
|
191
|
+
if ((t.f & tt) === 0 && (t.f & Ct) === 0)
|
|
189
192
|
throw e;
|
|
190
|
-
|
|
193
|
+
Oe(e, t);
|
|
191
194
|
}
|
|
192
|
-
function
|
|
195
|
+
function Oe(e, t) {
|
|
193
196
|
for (; t !== null; ) {
|
|
194
|
-
if ((t.f &
|
|
195
|
-
if ((t.f &
|
|
197
|
+
if ((t.f & vn) !== 0) {
|
|
198
|
+
if ((t.f & tt) === 0)
|
|
196
199
|
throw e;
|
|
197
200
|
try {
|
|
198
201
|
t.b.error(e);
|
|
@@ -205,79 +208,79 @@ function Pe(e, t) {
|
|
|
205
208
|
}
|
|
206
209
|
throw e;
|
|
207
210
|
}
|
|
208
|
-
const
|
|
211
|
+
const ii = -7169;
|
|
209
212
|
function R(e, t) {
|
|
210
|
-
e.f = e.f &
|
|
213
|
+
e.f = e.f & ii | t;
|
|
211
214
|
}
|
|
212
|
-
function
|
|
213
|
-
(e.f & Q) !== 0 || e.deps === null ? R(e, D) : R(e,
|
|
215
|
+
function Mn(e) {
|
|
216
|
+
(e.f & Q) !== 0 || e.deps === null ? R(e, D) : R(e, ue);
|
|
214
217
|
}
|
|
215
|
-
function
|
|
218
|
+
function $r(e) {
|
|
216
219
|
if (e !== null)
|
|
217
220
|
for (const t of e)
|
|
218
|
-
(t.f & P) === 0 || (t.f &
|
|
221
|
+
(t.f & P) === 0 || (t.f & et) === 0 || (t.f ^= et, $r(
|
|
219
222
|
/** @type {Derived} */
|
|
220
223
|
t.deps
|
|
221
224
|
));
|
|
222
225
|
}
|
|
223
|
-
function
|
|
224
|
-
(e.f &
|
|
226
|
+
function xr(e, t, n) {
|
|
227
|
+
(e.f & L) !== 0 ? t.add(e) : (e.f & ue) !== 0 && n.add(e), $r(e.deps), R(e, D);
|
|
225
228
|
}
|
|
226
|
-
const
|
|
227
|
-
let
|
|
228
|
-
var
|
|
229
|
-
const
|
|
229
|
+
const Bt = /* @__PURE__ */ new Set();
|
|
230
|
+
let T = null, oe = null, H = [], an = null, Tt = !1, Et = null, oi = 1;
|
|
231
|
+
var Me, ct, Ke, dt, ht, vt, Re, ce, _t, V, pn, gn, mn, wn;
|
|
232
|
+
const Hn = class Hn {
|
|
230
233
|
constructor() {
|
|
231
234
|
w(this, V);
|
|
232
235
|
// for debugging. TODO remove once async is stable
|
|
233
|
-
|
|
236
|
+
I(this, "id", oi++);
|
|
234
237
|
/**
|
|
235
238
|
* The current values of any sources that are updated in this batch
|
|
236
239
|
* They keys of this map are identical to `this.#previous`
|
|
237
240
|
* @type {Map<Source, any>}
|
|
238
241
|
*/
|
|
239
|
-
|
|
242
|
+
I(this, "current", /* @__PURE__ */ new Map());
|
|
240
243
|
/**
|
|
241
244
|
* The values of any sources that are updated in this batch _before_ those updates took place.
|
|
242
245
|
* They keys of this map are identical to `this.#current`
|
|
243
246
|
* @type {Map<Source, any>}
|
|
244
247
|
*/
|
|
245
|
-
|
|
248
|
+
I(this, "previous", /* @__PURE__ */ new Map());
|
|
246
249
|
/**
|
|
247
250
|
* When the batch is committed (and the DOM is updated), we need to remove old branches
|
|
248
251
|
* and append new ones by calling the functions added inside (if/each/key/etc) blocks
|
|
249
252
|
* @type {Set<(batch: Batch) => void>}
|
|
250
253
|
*/
|
|
251
|
-
w(this,
|
|
254
|
+
w(this, Me, /* @__PURE__ */ new Set());
|
|
252
255
|
/**
|
|
253
256
|
* If a fork is discarded, we need to destroy any effects that are no longer needed
|
|
254
257
|
* @type {Set<(batch: Batch) => void>}
|
|
255
258
|
*/
|
|
256
|
-
w(this,
|
|
259
|
+
w(this, ct, /* @__PURE__ */ new Set());
|
|
257
260
|
/**
|
|
258
261
|
* The number of async effects that are currently in flight
|
|
259
262
|
*/
|
|
260
|
-
w(this,
|
|
263
|
+
w(this, Ke, 0);
|
|
261
264
|
/**
|
|
262
265
|
* The number of async effects that are currently in flight, _not_ inside a pending boundary
|
|
263
266
|
*/
|
|
264
|
-
w(this,
|
|
267
|
+
w(this, dt, 0);
|
|
265
268
|
/**
|
|
266
269
|
* A deferred that resolves when the batch is committed, used with `settled()`
|
|
267
270
|
* TODO replace with Promise.withResolvers once supported widely enough
|
|
268
271
|
* @type {{ promise: Promise<void>, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null}
|
|
269
272
|
*/
|
|
270
|
-
w(this,
|
|
273
|
+
w(this, ht, null);
|
|
271
274
|
/**
|
|
272
275
|
* Deferred effects (which run after async work has completed) that are DIRTY
|
|
273
276
|
* @type {Set<Effect>}
|
|
274
277
|
*/
|
|
275
|
-
w(this,
|
|
278
|
+
w(this, vt, /* @__PURE__ */ new Set());
|
|
276
279
|
/**
|
|
277
280
|
* Deferred effects that are MAYBE_DIRTY
|
|
278
281
|
* @type {Set<Effect>}
|
|
279
282
|
*/
|
|
280
|
-
w(this,
|
|
283
|
+
w(this, Re, /* @__PURE__ */ new Set());
|
|
281
284
|
/**
|
|
282
285
|
* A map of branches that still exist, but will be destroyed when this batch
|
|
283
286
|
* is committed — we skip over these during `process`.
|
|
@@ -286,15 +289,15 @@ const Fn = class Fn {
|
|
|
286
289
|
* @type {Map<Effect, { d: Effect[], m: Effect[] }>}
|
|
287
290
|
*/
|
|
288
291
|
w(this, ce, /* @__PURE__ */ new Map());
|
|
289
|
-
|
|
290
|
-
w(this,
|
|
292
|
+
I(this, "is_fork", !1);
|
|
293
|
+
w(this, _t, !1);
|
|
291
294
|
}
|
|
292
295
|
/**
|
|
293
296
|
* Add an effect to the #skipped_branches map and reset its children
|
|
294
297
|
* @param {Effect} effect
|
|
295
298
|
*/
|
|
296
299
|
skip_effect(t) {
|
|
297
|
-
|
|
300
|
+
l(this, ce).has(t) || l(this, ce).set(t, { d: [], m: [] });
|
|
298
301
|
}
|
|
299
302
|
/**
|
|
300
303
|
* Remove an effect from the #skipped_branches map and reschedule
|
|
@@ -302,13 +305,13 @@ const Fn = class Fn {
|
|
|
302
305
|
* @param {Effect} effect
|
|
303
306
|
*/
|
|
304
307
|
unskip_effect(t) {
|
|
305
|
-
var n =
|
|
308
|
+
var n = l(this, ce).get(t);
|
|
306
309
|
if (n) {
|
|
307
|
-
|
|
310
|
+
l(this, ce).delete(t);
|
|
308
311
|
for (var r of n.d)
|
|
309
|
-
R(r,
|
|
312
|
+
R(r, L), pe(r);
|
|
310
313
|
for (r of n.m)
|
|
311
|
-
R(r,
|
|
314
|
+
R(r, ue), pe(r);
|
|
312
315
|
}
|
|
313
316
|
}
|
|
314
317
|
/**
|
|
@@ -317,19 +320,19 @@ const Fn = class Fn {
|
|
|
317
320
|
*/
|
|
318
321
|
process(t) {
|
|
319
322
|
H = [], this.apply();
|
|
320
|
-
var n =
|
|
323
|
+
var n = Et = [], r = [];
|
|
321
324
|
for (const s of t)
|
|
322
|
-
|
|
323
|
-
if (
|
|
324
|
-
|
|
325
|
-
for (const [s, i] of
|
|
326
|
-
|
|
325
|
+
k(this, V, gn).call(this, s, n, r);
|
|
326
|
+
if (Et = null, k(this, V, pn).call(this)) {
|
|
327
|
+
k(this, V, mn).call(this, r), k(this, V, mn).call(this, n);
|
|
328
|
+
for (const [s, i] of l(this, ce))
|
|
329
|
+
Ir(s, i);
|
|
327
330
|
} else {
|
|
328
|
-
|
|
329
|
-
for (const s of
|
|
330
|
-
|
|
331
|
+
T = null;
|
|
332
|
+
for (const s of l(this, Me)) s(this);
|
|
333
|
+
l(this, Me).clear(), l(this, Ke) === 0 && k(this, V, wn).call(this), Jn(r), Jn(n), l(this, vt).clear(), l(this, Re).clear(), l(this, ht)?.resolve();
|
|
331
334
|
}
|
|
332
|
-
|
|
335
|
+
oe = null;
|
|
333
336
|
}
|
|
334
337
|
/**
|
|
335
338
|
* Associate a change to a given source with the current
|
|
@@ -338,75 +341,75 @@ const Fn = class Fn {
|
|
|
338
341
|
* @param {any} value
|
|
339
342
|
*/
|
|
340
343
|
capture(t, n) {
|
|
341
|
-
n !==
|
|
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));
|
|
342
345
|
}
|
|
343
346
|
activate() {
|
|
344
|
-
|
|
347
|
+
T = this, this.apply();
|
|
345
348
|
}
|
|
346
349
|
deactivate() {
|
|
347
|
-
|
|
350
|
+
T === this && (T = null, oe = null);
|
|
348
351
|
}
|
|
349
352
|
flush() {
|
|
350
353
|
if (H.length > 0)
|
|
351
|
-
|
|
352
|
-
else if (
|
|
353
|
-
for (const t of
|
|
354
|
-
|
|
354
|
+
T = this, Er();
|
|
355
|
+
else if (l(this, Ke) === 0 && !this.is_fork) {
|
|
356
|
+
for (const t of l(this, Me)) t(this);
|
|
357
|
+
l(this, Me).clear(), k(this, V, wn).call(this), l(this, ht)?.resolve();
|
|
355
358
|
}
|
|
356
359
|
this.deactivate();
|
|
357
360
|
}
|
|
358
361
|
discard() {
|
|
359
|
-
for (const t of
|
|
360
|
-
|
|
362
|
+
for (const t of l(this, ct)) t(this);
|
|
363
|
+
l(this, ct).clear();
|
|
361
364
|
}
|
|
362
365
|
/**
|
|
363
366
|
*
|
|
364
367
|
* @param {boolean} blocking
|
|
365
368
|
*/
|
|
366
369
|
increment(t) {
|
|
367
|
-
|
|
370
|
+
m(this, Ke, l(this, Ke) + 1), t && m(this, dt, l(this, dt) + 1);
|
|
368
371
|
}
|
|
369
372
|
/**
|
|
370
373
|
*
|
|
371
374
|
* @param {boolean} blocking
|
|
372
375
|
*/
|
|
373
376
|
decrement(t) {
|
|
374
|
-
|
|
375
|
-
|
|
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), k(this, V, pn).call(this) ? H.length > 0 && this.flush() : this.revive();
|
|
376
379
|
}));
|
|
377
380
|
}
|
|
378
381
|
revive() {
|
|
379
|
-
for (const t of
|
|
380
|
-
|
|
381
|
-
for (const t of
|
|
382
|
-
R(t,
|
|
382
|
+
for (const t of l(this, vt))
|
|
383
|
+
l(this, Re).delete(t), R(t, L), pe(t);
|
|
384
|
+
for (const t of l(this, Re))
|
|
385
|
+
R(t, ue), pe(t);
|
|
383
386
|
this.flush();
|
|
384
387
|
}
|
|
385
388
|
/** @param {(batch: Batch) => void} fn */
|
|
386
389
|
oncommit(t) {
|
|
387
|
-
|
|
390
|
+
l(this, Me).add(t);
|
|
388
391
|
}
|
|
389
392
|
/** @param {(batch: Batch) => void} fn */
|
|
390
393
|
ondiscard(t) {
|
|
391
|
-
|
|
394
|
+
l(this, ct).add(t);
|
|
392
395
|
}
|
|
393
396
|
settled() {
|
|
394
|
-
return (
|
|
397
|
+
return (l(this, ht) ?? m(this, ht, _r())).promise;
|
|
395
398
|
}
|
|
396
399
|
static ensure() {
|
|
397
|
-
if (
|
|
398
|
-
const t =
|
|
399
|
-
|
|
400
|
-
|
|
400
|
+
if (T === null) {
|
|
401
|
+
const t = T = new Hn();
|
|
402
|
+
Bt.add(T), Tt || ut(() => {
|
|
403
|
+
T === t && t.flush();
|
|
401
404
|
});
|
|
402
405
|
}
|
|
403
|
-
return
|
|
406
|
+
return T;
|
|
404
407
|
}
|
|
405
408
|
apply() {
|
|
406
409
|
}
|
|
407
410
|
};
|
|
408
|
-
|
|
409
|
-
return this.is_fork ||
|
|
411
|
+
Me = new WeakMap(), ct = new WeakMap(), Ke = new WeakMap(), dt = new WeakMap(), ht = new WeakMap(), vt = new WeakMap(), Re = new WeakMap(), ce = new WeakMap(), _t = new WeakMap(), V = new WeakSet(), pn = function() {
|
|
412
|
+
return this.is_fork || l(this, dt) > 0;
|
|
410
413
|
}, /**
|
|
411
414
|
* Traverse the effect tree, executing effects or stashing
|
|
412
415
|
* them for later execution as appropriate
|
|
@@ -414,12 +417,12 @@ Ne = new WeakMap(), dt = new WeakMap(), Ge = new WeakMap(), ht = new WeakMap(),
|
|
|
414
417
|
* @param {Effect[]} effects
|
|
415
418
|
* @param {Effect[]} render_effects
|
|
416
419
|
*/
|
|
417
|
-
|
|
420
|
+
gn = function(t, n, r) {
|
|
418
421
|
t.f ^= D;
|
|
419
422
|
for (var s = t.first; s !== null; ) {
|
|
420
|
-
var i = s.f, o = (i & (we |
|
|
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);
|
|
421
424
|
if (!f && s.fn !== null) {
|
|
422
|
-
o ?
|
|
425
|
+
o ? a || (s.f ^= D) : (i & Ct) !== 0 ? n.push(s) : (i & (yt | kn)) !== 0 && a ? r.push(s) : zt(s) && (St(s), (i & He) !== 0 && (l(this, Re).add(s), a && R(s, L)));
|
|
423
426
|
var c = s.first;
|
|
424
427
|
if (c !== null) {
|
|
425
428
|
s = c;
|
|
@@ -427,9 +430,9 @@ pn = function(t, n, r) {
|
|
|
427
430
|
}
|
|
428
431
|
}
|
|
429
432
|
for (; s !== null; ) {
|
|
430
|
-
var
|
|
431
|
-
if (
|
|
432
|
-
s =
|
|
433
|
+
var h = s.next;
|
|
434
|
+
if (h !== null) {
|
|
435
|
+
s = h;
|
|
433
436
|
break;
|
|
434
437
|
}
|
|
435
438
|
s = s.parent;
|
|
@@ -438,15 +441,15 @@ pn = function(t, n, r) {
|
|
|
438
441
|
}, /**
|
|
439
442
|
* @param {Effect[]} effects
|
|
440
443
|
*/
|
|
441
|
-
|
|
444
|
+
mn = function(t) {
|
|
442
445
|
for (var n = 0; n < t.length; n += 1)
|
|
443
|
-
|
|
444
|
-
},
|
|
446
|
+
xr(t[n], l(this, vt), l(this, Re));
|
|
447
|
+
}, wn = function() {
|
|
445
448
|
var i;
|
|
446
|
-
if (
|
|
449
|
+
if (Bt.size > 1) {
|
|
447
450
|
this.previous.clear();
|
|
448
|
-
var t =
|
|
449
|
-
for (const o of
|
|
451
|
+
var t = T, n = oe, r = !0;
|
|
452
|
+
for (const o of Bt) {
|
|
450
453
|
if (o === this) {
|
|
451
454
|
r = !1;
|
|
452
455
|
continue;
|
|
@@ -462,112 +465,112 @@ gn = function(t) {
|
|
|
462
465
|
}
|
|
463
466
|
if (u.length === 0)
|
|
464
467
|
continue;
|
|
465
|
-
const
|
|
466
|
-
if (
|
|
468
|
+
const a = [...o.current.keys()].filter((f) => !this.current.has(f));
|
|
469
|
+
if (a.length > 0) {
|
|
467
470
|
var s = H;
|
|
468
471
|
H = [];
|
|
469
472
|
const f = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Map();
|
|
470
|
-
for (const
|
|
471
|
-
|
|
473
|
+
for (const h of u)
|
|
474
|
+
Sr(h, a, f, c);
|
|
472
475
|
if (H.length > 0) {
|
|
473
|
-
|
|
474
|
-
for (const
|
|
475
|
-
|
|
476
|
+
T = o, o.apply();
|
|
477
|
+
for (const h of H)
|
|
478
|
+
k(i = o, V, gn).call(i, h, [], []);
|
|
476
479
|
o.deactivate();
|
|
477
480
|
}
|
|
478
481
|
H = s;
|
|
479
482
|
}
|
|
480
483
|
}
|
|
481
|
-
|
|
484
|
+
T = t, oe = n;
|
|
482
485
|
}
|
|
483
|
-
|
|
486
|
+
l(this, ce).clear(), Bt.delete(this);
|
|
484
487
|
};
|
|
485
|
-
let Te =
|
|
486
|
-
function
|
|
487
|
-
var t =
|
|
488
|
-
|
|
488
|
+
let Te = Hn;
|
|
489
|
+
function le(e) {
|
|
490
|
+
var t = Tt;
|
|
491
|
+
Tt = !0;
|
|
489
492
|
try {
|
|
490
493
|
for (var n; ; ) {
|
|
491
|
-
if (
|
|
492
|
-
return
|
|
494
|
+
if (si(), H.length === 0 && (T?.flush(), H.length === 0))
|
|
495
|
+
return an = null, /** @type {T} */
|
|
493
496
|
n;
|
|
494
|
-
|
|
497
|
+
Er();
|
|
495
498
|
}
|
|
496
499
|
} finally {
|
|
497
|
-
|
|
500
|
+
Tt = t;
|
|
498
501
|
}
|
|
499
502
|
}
|
|
500
|
-
function
|
|
503
|
+
function Er() {
|
|
501
504
|
var e = null;
|
|
502
505
|
try {
|
|
503
506
|
for (var t = 0; H.length > 0; ) {
|
|
504
507
|
var n = Te.ensure();
|
|
505
508
|
if (t++ > 1e3) {
|
|
506
509
|
var r, s;
|
|
507
|
-
|
|
510
|
+
li();
|
|
508
511
|
}
|
|
509
|
-
n.process(H),
|
|
512
|
+
n.process(H), Le.clear();
|
|
510
513
|
}
|
|
511
514
|
} finally {
|
|
512
|
-
H = [],
|
|
515
|
+
H = [], an = null, Et = null;
|
|
513
516
|
}
|
|
514
517
|
}
|
|
515
|
-
function
|
|
518
|
+
function li() {
|
|
516
519
|
try {
|
|
517
|
-
|
|
520
|
+
qs();
|
|
518
521
|
} catch (e) {
|
|
519
|
-
|
|
522
|
+
Oe(e, an);
|
|
520
523
|
}
|
|
521
524
|
}
|
|
522
|
-
let
|
|
523
|
-
function
|
|
525
|
+
let $e = null;
|
|
526
|
+
function Jn(e) {
|
|
524
527
|
var t = e.length;
|
|
525
528
|
if (t !== 0) {
|
|
526
529
|
for (var n = 0; n < t; ) {
|
|
527
530
|
var r = e[n++];
|
|
528
|
-
if ((r.f & (
|
|
529
|
-
|
|
530
|
-
for (const s of
|
|
531
|
-
if ((s.f & (
|
|
531
|
+
if ((r.f & (ke | ee)) === 0 && zt(r) && ($e = /* @__PURE__ */ new Set(), St(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && Yr(r), $e?.size > 0)) {
|
|
532
|
+
Le.clear();
|
|
533
|
+
for (const s of $e) {
|
|
534
|
+
if ((s.f & (ke | ee)) !== 0) continue;
|
|
532
535
|
const i = [s];
|
|
533
536
|
let o = s.parent;
|
|
534
537
|
for (; o !== null; )
|
|
535
|
-
|
|
538
|
+
$e.has(o) && ($e.delete(o), i.push(o)), o = o.parent;
|
|
536
539
|
for (let u = i.length - 1; u >= 0; u--) {
|
|
537
|
-
const
|
|
538
|
-
(
|
|
540
|
+
const a = i[u];
|
|
541
|
+
(a.f & (ke | ee)) === 0 && St(a);
|
|
539
542
|
}
|
|
540
543
|
}
|
|
541
|
-
|
|
544
|
+
$e.clear();
|
|
542
545
|
}
|
|
543
546
|
}
|
|
544
|
-
|
|
547
|
+
$e = null;
|
|
545
548
|
}
|
|
546
549
|
}
|
|
547
|
-
function
|
|
550
|
+
function Sr(e, t, n, r) {
|
|
548
551
|
if (!n.has(e) && (n.add(e), e.reactions !== null))
|
|
549
552
|
for (const s of e.reactions) {
|
|
550
553
|
const i = s.f;
|
|
551
|
-
(i & P) !== 0 ?
|
|
554
|
+
(i & P) !== 0 ? Sr(
|
|
552
555
|
/** @type {Derived} */
|
|
553
556
|
s,
|
|
554
557
|
t,
|
|
555
558
|
n,
|
|
556
559
|
r
|
|
557
|
-
) : (i & (
|
|
560
|
+
) : (i & (Tn | He)) !== 0 && (i & L) === 0 && Cr(s, t, r) && (R(s, L), pe(
|
|
558
561
|
/** @type {Effect} */
|
|
559
562
|
s
|
|
560
563
|
));
|
|
561
564
|
}
|
|
562
565
|
}
|
|
563
|
-
function
|
|
566
|
+
function Cr(e, t, n) {
|
|
564
567
|
const r = n.get(e);
|
|
565
568
|
if (r !== void 0) return r;
|
|
566
569
|
if (e.deps !== null)
|
|
567
570
|
for (const s of e.deps) {
|
|
568
|
-
if (
|
|
571
|
+
if (bt.call(t, s))
|
|
569
572
|
return !0;
|
|
570
|
-
if ((s.f & P) !== 0 &&
|
|
573
|
+
if ((s.f & P) !== 0 && Cr(
|
|
571
574
|
/** @type {Derived} */
|
|
572
575
|
s,
|
|
573
576
|
t,
|
|
@@ -582,17 +585,17 @@ function $r(e, t, n) {
|
|
|
582
585
|
return n.set(e, !1), !1;
|
|
583
586
|
}
|
|
584
587
|
function pe(e) {
|
|
585
|
-
var t =
|
|
586
|
-
if (n?.is_pending && (e.f & (Ct |
|
|
588
|
+
var t = an = e, n = t.b;
|
|
589
|
+
if (n?.is_pending && (e.f & (Ct | yt | kn)) !== 0 && (e.f & tt) === 0) {
|
|
587
590
|
n.defer_effect(e);
|
|
588
591
|
return;
|
|
589
592
|
}
|
|
590
593
|
for (; t.parent !== null; ) {
|
|
591
594
|
t = t.parent;
|
|
592
595
|
var r = t.f;
|
|
593
|
-
if (
|
|
596
|
+
if (Et !== null && t === y && (e.f & yt) === 0)
|
|
594
597
|
return;
|
|
595
|
-
if ((r & (
|
|
598
|
+
if ((r & (Fe | we)) !== 0) {
|
|
596
599
|
if ((r & D) === 0)
|
|
597
600
|
return;
|
|
598
601
|
t.f ^= D;
|
|
@@ -600,29 +603,29 @@ function pe(e) {
|
|
|
600
603
|
}
|
|
601
604
|
H.push(t);
|
|
602
605
|
}
|
|
603
|
-
function
|
|
606
|
+
function Ir(e, t) {
|
|
604
607
|
if (!((e.f & we) !== 0 && (e.f & D) !== 0)) {
|
|
605
|
-
(e.f &
|
|
608
|
+
(e.f & L) !== 0 ? t.d.push(e) : (e.f & ue) !== 0 && t.m.push(e), R(e, D);
|
|
606
609
|
for (var n = e.first; n !== null; )
|
|
607
|
-
|
|
610
|
+
Ir(n, t), n = n.next;
|
|
608
611
|
}
|
|
609
612
|
}
|
|
610
|
-
function
|
|
613
|
+
function ai(e) {
|
|
611
614
|
let t = 0, n = Pt(0), r;
|
|
612
615
|
return () => {
|
|
613
|
-
|
|
614
|
-
|
|
616
|
+
Ln() && (x(n), Br(() => (t === 0 && (r = ns(() => e(() => At(n)))), t += 1, () => {
|
|
617
|
+
ut(() => {
|
|
615
618
|
t -= 1, t === 0 && (r?.(), r = void 0, At(n));
|
|
616
619
|
});
|
|
617
620
|
})));
|
|
618
621
|
};
|
|
619
622
|
}
|
|
620
|
-
var
|
|
621
|
-
function
|
|
622
|
-
new
|
|
623
|
+
var ui = $t | nt;
|
|
624
|
+
function fi(e, t, n, r) {
|
|
625
|
+
new ci(e, t, n, r);
|
|
623
626
|
}
|
|
624
|
-
var U,
|
|
625
|
-
class
|
|
627
|
+
var U, Ot, de, Ge, j, he, X, se, Se, Je, Ne, pt, gt, mt, Ce, en, M, kr, Tr, Ar, bn, Vt, Yt, yn;
|
|
628
|
+
class ci {
|
|
626
629
|
/**
|
|
627
630
|
* @param {TemplateNode} node
|
|
628
631
|
* @param {BoundaryProps} props
|
|
@@ -632,39 +635,39 @@ class ni {
|
|
|
632
635
|
constructor(t, n, r, s) {
|
|
633
636
|
w(this, M);
|
|
634
637
|
/** @type {Boundary | null} */
|
|
635
|
-
|
|
636
|
-
|
|
638
|
+
I(this, "parent");
|
|
639
|
+
I(this, "is_pending", !1);
|
|
637
640
|
/**
|
|
638
641
|
* API-level transformError transform function. Transforms errors before they reach the `failed` snippet.
|
|
639
642
|
* Inherited from parent boundary, or defaults to identity.
|
|
640
643
|
* @type {(error: unknown) => unknown}
|
|
641
644
|
*/
|
|
642
|
-
|
|
645
|
+
I(this, "transform_error");
|
|
643
646
|
/** @type {TemplateNode} */
|
|
644
647
|
w(this, U);
|
|
645
648
|
/** @type {TemplateNode | null} */
|
|
646
|
-
w(this,
|
|
649
|
+
w(this, Ot, C ? E : null);
|
|
647
650
|
/** @type {BoundaryProps} */
|
|
648
651
|
w(this, de);
|
|
649
652
|
/** @type {((anchor: Node) => void)} */
|
|
650
|
-
w(this,
|
|
653
|
+
w(this, Ge);
|
|
651
654
|
/** @type {Effect} */
|
|
652
|
-
w(this,
|
|
655
|
+
w(this, j);
|
|
653
656
|
/** @type {Effect | null} */
|
|
654
657
|
w(this, he, null);
|
|
655
658
|
/** @type {Effect | null} */
|
|
656
659
|
w(this, X, null);
|
|
657
660
|
/** @type {Effect | null} */
|
|
658
|
-
w(this,
|
|
661
|
+
w(this, se, null);
|
|
659
662
|
/** @type {DocumentFragment | null} */
|
|
660
|
-
w(this,
|
|
661
|
-
w(this,
|
|
662
|
-
w(this,
|
|
663
|
-
w(this,
|
|
663
|
+
w(this, Se, null);
|
|
664
|
+
w(this, Je, 0);
|
|
665
|
+
w(this, Ne, 0);
|
|
666
|
+
w(this, pt, !1);
|
|
664
667
|
/** @type {Set<Effect>} */
|
|
665
|
-
w(this,
|
|
668
|
+
w(this, gt, /* @__PURE__ */ new Set());
|
|
666
669
|
/** @type {Set<Effect>} */
|
|
667
|
-
w(this,
|
|
670
|
+
w(this, mt, /* @__PURE__ */ new Set());
|
|
668
671
|
/**
|
|
669
672
|
* A source containing the number of pending async deriveds/expressions.
|
|
670
673
|
* Only created if `$effect.pending()` is used inside the boundary,
|
|
@@ -673,38 +676,38 @@ class ni {
|
|
|
673
676
|
* @type {Source<number> | null}
|
|
674
677
|
*/
|
|
675
678
|
w(this, Ce, null);
|
|
676
|
-
w(this,
|
|
677
|
-
|
|
679
|
+
w(this, en, ai(() => (m(this, Ce, Pt(l(this, Je))), () => {
|
|
680
|
+
m(this, Ce, null);
|
|
678
681
|
})));
|
|
679
|
-
|
|
682
|
+
m(this, U, t), m(this, de, n), m(this, Ge, (i) => {
|
|
680
683
|
var o = (
|
|
681
684
|
/** @type {Effect} */
|
|
682
685
|
y
|
|
683
686
|
);
|
|
684
|
-
o.b = this, o.f |=
|
|
687
|
+
o.b = this, o.f |= vn, r(i);
|
|
685
688
|
}), this.parent = /** @type {Effect} */
|
|
686
|
-
y.b, this.transform_error = s ?? this.parent?.transform_error ?? ((i) => i),
|
|
687
|
-
if (
|
|
689
|
+
y.b, this.transform_error = s ?? this.parent?.transform_error ?? ((i) => i), m(this, j, Wr(() => {
|
|
690
|
+
if (C) {
|
|
688
691
|
const i = (
|
|
689
692
|
/** @type {Comment} */
|
|
690
|
-
|
|
693
|
+
l(this, Ot)
|
|
691
694
|
);
|
|
692
695
|
An();
|
|
693
|
-
const o = i.data ===
|
|
694
|
-
if (i.data.startsWith(
|
|
695
|
-
const
|
|
696
|
-
|
|
697
|
-
} else o ?
|
|
696
|
+
const o = i.data === fr;
|
|
697
|
+
if (i.data.startsWith(Xn)) {
|
|
698
|
+
const a = JSON.parse(i.data.slice(Xn.length));
|
|
699
|
+
k(this, M, Tr).call(this, a);
|
|
700
|
+
} else o ? k(this, M, Ar).call(this) : k(this, M, kr).call(this);
|
|
698
701
|
} else
|
|
699
|
-
|
|
700
|
-
},
|
|
702
|
+
k(this, M, bn).call(this);
|
|
703
|
+
}, ui)), C && m(this, U, E);
|
|
701
704
|
}
|
|
702
705
|
/**
|
|
703
706
|
* Defer an effect inside a pending boundary until the boundary resolves
|
|
704
707
|
* @param {Effect} effect
|
|
705
708
|
*/
|
|
706
709
|
defer_effect(t) {
|
|
707
|
-
|
|
710
|
+
xr(t, l(this, gt), l(this, mt));
|
|
708
711
|
}
|
|
709
712
|
/**
|
|
710
713
|
* Returns `false` if the effect exists inside a boundary whose pending snippet is shown
|
|
@@ -714,7 +717,7 @@ class ni {
|
|
|
714
717
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
715
718
|
}
|
|
716
719
|
has_pending_snippet() {
|
|
717
|
-
return !!
|
|
720
|
+
return !!l(this, de).pending;
|
|
718
721
|
}
|
|
719
722
|
/**
|
|
720
723
|
* Update the source that powers `$effect.pending()` inside this boundary,
|
|
@@ -723,149 +726,149 @@ class ni {
|
|
|
723
726
|
* @param {1 | -1} d
|
|
724
727
|
*/
|
|
725
728
|
update_pending_count(t) {
|
|
726
|
-
|
|
727
|
-
|
|
729
|
+
k(this, M, yn).call(this, t), m(this, Je, l(this, Je) + t), !(!l(this, Ce) || l(this, pt)) && (m(this, pt, !0), ut(() => {
|
|
730
|
+
m(this, pt, !1), l(this, Ce) && Gt(l(this, Ce), l(this, Je));
|
|
728
731
|
}));
|
|
729
732
|
}
|
|
730
733
|
get_effect_pending() {
|
|
731
|
-
return
|
|
734
|
+
return l(this, en).call(this), x(
|
|
732
735
|
/** @type {Source<number>} */
|
|
733
|
-
|
|
736
|
+
l(this, Ce)
|
|
734
737
|
);
|
|
735
738
|
}
|
|
736
739
|
/** @param {unknown} error */
|
|
737
740
|
error(t) {
|
|
738
|
-
var n =
|
|
739
|
-
let r =
|
|
741
|
+
var n = l(this, de).onerror;
|
|
742
|
+
let r = l(this, de).failed;
|
|
740
743
|
if (!n && !r)
|
|
741
744
|
throw t;
|
|
742
|
-
|
|
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)), C && (fe(
|
|
743
746
|
/** @type {TemplateNode} */
|
|
744
|
-
|
|
745
|
-
),
|
|
747
|
+
l(this, Ot)
|
|
748
|
+
), Qs(), fe(gr()));
|
|
746
749
|
var s = !1, i = !1;
|
|
747
750
|
const o = () => {
|
|
748
751
|
if (s) {
|
|
749
|
-
|
|
752
|
+
Zs();
|
|
750
753
|
return;
|
|
751
754
|
}
|
|
752
|
-
s = !0, i &&
|
|
753
|
-
|
|
754
|
-
}),
|
|
755
|
-
Te.ensure(),
|
|
755
|
+
s = !0, i && Js(), l(this, se) !== null && Rt(l(this, se), () => {
|
|
756
|
+
m(this, se, null);
|
|
757
|
+
}), k(this, M, Yt).call(this, () => {
|
|
758
|
+
Te.ensure(), k(this, M, bn).call(this);
|
|
756
759
|
});
|
|
757
|
-
}, u = (
|
|
760
|
+
}, u = (a) => {
|
|
758
761
|
try {
|
|
759
|
-
i = !0, n?.(
|
|
762
|
+
i = !0, n?.(a, o), i = !1;
|
|
760
763
|
} catch (f) {
|
|
761
|
-
|
|
764
|
+
Oe(f, l(this, j) && l(this, j).parent);
|
|
762
765
|
}
|
|
763
|
-
r &&
|
|
766
|
+
r && m(this, se, k(this, M, Yt).call(this, () => {
|
|
764
767
|
Te.ensure();
|
|
765
768
|
try {
|
|
766
|
-
return
|
|
769
|
+
return Ee(() => {
|
|
767
770
|
var f = (
|
|
768
771
|
/** @type {Effect} */
|
|
769
772
|
y
|
|
770
773
|
);
|
|
771
|
-
f.b = this, f.f |=
|
|
772
|
-
|
|
773
|
-
() =>
|
|
774
|
+
f.b = this, f.f |= vn, r(
|
|
775
|
+
l(this, U),
|
|
776
|
+
() => a,
|
|
774
777
|
() => o
|
|
775
778
|
);
|
|
776
779
|
});
|
|
777
780
|
} catch (f) {
|
|
778
|
-
return
|
|
781
|
+
return Oe(
|
|
779
782
|
f,
|
|
780
783
|
/** @type {Effect} */
|
|
781
|
-
|
|
784
|
+
l(this, j).parent
|
|
782
785
|
), null;
|
|
783
786
|
}
|
|
784
787
|
}));
|
|
785
788
|
};
|
|
786
|
-
|
|
787
|
-
var
|
|
789
|
+
ut(() => {
|
|
790
|
+
var a;
|
|
788
791
|
try {
|
|
789
|
-
|
|
792
|
+
a = this.transform_error(t);
|
|
790
793
|
} catch (f) {
|
|
791
|
-
|
|
794
|
+
Oe(f, l(this, j) && l(this, j).parent);
|
|
792
795
|
return;
|
|
793
796
|
}
|
|
794
|
-
|
|
795
|
-
|
|
797
|
+
a !== null && typeof a == "object" && typeof /** @type {any} */
|
|
798
|
+
a.then == "function" ? a.then(
|
|
796
799
|
u,
|
|
797
800
|
/** @param {unknown} e */
|
|
798
|
-
(f) =>
|
|
799
|
-
) : u(
|
|
801
|
+
(f) => Oe(f, l(this, j) && l(this, j).parent)
|
|
802
|
+
) : u(a);
|
|
800
803
|
});
|
|
801
804
|
}
|
|
802
805
|
}
|
|
803
|
-
U = new WeakMap(),
|
|
806
|
+
U = new WeakMap(), Ot = 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(), Ce = new WeakMap(), en = new WeakMap(), M = new WeakSet(), kr = function() {
|
|
804
807
|
try {
|
|
805
|
-
|
|
808
|
+
m(this, he, Ee(() => l(this, Ge).call(this, l(this, U))));
|
|
806
809
|
} catch (t) {
|
|
807
810
|
this.error(t);
|
|
808
811
|
}
|
|
809
812
|
}, /**
|
|
810
813
|
* @param {unknown} error The deserialized error from the server's hydration comment
|
|
811
814
|
*/
|
|
812
|
-
|
|
813
|
-
const n =
|
|
814
|
-
n &&
|
|
815
|
+
Tr = function(t) {
|
|
816
|
+
const n = l(this, de).failed;
|
|
817
|
+
n && m(this, se, Ee(() => {
|
|
815
818
|
n(
|
|
816
|
-
|
|
819
|
+
l(this, U),
|
|
817
820
|
() => t,
|
|
818
821
|
() => () => {
|
|
819
822
|
}
|
|
820
823
|
);
|
|
821
824
|
}));
|
|
822
|
-
},
|
|
823
|
-
const t =
|
|
824
|
-
t && (this.is_pending = !0,
|
|
825
|
-
var n =
|
|
826
|
-
n.append(r),
|
|
825
|
+
}, Ar = function() {
|
|
826
|
+
const t = l(this, de).pending;
|
|
827
|
+
t && (this.is_pending = !0, m(this, X, Ee(() => t(l(this, U)))), ut(() => {
|
|
828
|
+
var n = m(this, Se, document.createDocumentFragment()), r = Pe();
|
|
829
|
+
n.append(r), m(this, he, k(this, M, Yt).call(this, () => (Te.ensure(), Ee(() => l(this, Ge).call(this, r))))), l(this, Ne) === 0 && (l(this, U).before(n), m(this, Se, null), Rt(
|
|
827
830
|
/** @type {Effect} */
|
|
828
|
-
|
|
831
|
+
l(this, X),
|
|
829
832
|
() => {
|
|
830
|
-
|
|
833
|
+
m(this, X, null);
|
|
831
834
|
}
|
|
832
|
-
),
|
|
835
|
+
), k(this, M, Vt).call(this));
|
|
833
836
|
}));
|
|
834
|
-
},
|
|
837
|
+
}, bn = function() {
|
|
835
838
|
try {
|
|
836
|
-
if (this.is_pending = this.has_pending_snippet(),
|
|
837
|
-
|
|
838
|
-
})),
|
|
839
|
-
var t =
|
|
840
|
-
|
|
839
|
+
if (this.is_pending = this.has_pending_snippet(), m(this, Ne, 0), m(this, Je, 0), m(this, he, Ee(() => {
|
|
840
|
+
l(this, Ge).call(this, l(this, U));
|
|
841
|
+
})), l(this, Ne) > 0) {
|
|
842
|
+
var t = m(this, Se, document.createDocumentFragment());
|
|
843
|
+
Xr(l(this, he), t);
|
|
841
844
|
const n = (
|
|
842
845
|
/** @type {(anchor: Node) => void} */
|
|
843
|
-
|
|
846
|
+
l(this, de).pending
|
|
844
847
|
);
|
|
845
|
-
|
|
848
|
+
m(this, X, Ee(() => n(l(this, U))));
|
|
846
849
|
} else
|
|
847
|
-
|
|
850
|
+
k(this, M, Vt).call(this);
|
|
848
851
|
} catch (n) {
|
|
849
852
|
this.error(n);
|
|
850
853
|
}
|
|
851
|
-
},
|
|
854
|
+
}, Vt = function() {
|
|
852
855
|
this.is_pending = !1;
|
|
853
|
-
for (const t of
|
|
854
|
-
R(t,
|
|
855
|
-
for (const t of
|
|
856
|
-
R(t,
|
|
857
|
-
|
|
856
|
+
for (const t of l(this, gt))
|
|
857
|
+
R(t, L), pe(t);
|
|
858
|
+
for (const t of l(this, mt))
|
|
859
|
+
R(t, ue), pe(t);
|
|
860
|
+
l(this, gt).clear(), l(this, mt).clear();
|
|
858
861
|
}, /**
|
|
859
862
|
* @template T
|
|
860
863
|
* @param {() => T} fn
|
|
861
864
|
*/
|
|
862
|
-
|
|
863
|
-
var n = y, r = b, s =
|
|
864
|
-
me(
|
|
865
|
+
Yt = function(t) {
|
|
866
|
+
var n = y, r = b, s = W;
|
|
867
|
+
me(l(this, j)), ne(l(this, j)), xt(l(this, j).ctx);
|
|
865
868
|
try {
|
|
866
869
|
return t();
|
|
867
870
|
} catch (i) {
|
|
868
|
-
return
|
|
871
|
+
return yr(i), null;
|
|
869
872
|
} finally {
|
|
870
873
|
me(n), ne(r), xt(s);
|
|
871
874
|
}
|
|
@@ -874,19 +877,19 @@ Bt = function(t) {
|
|
|
874
877
|
* if any, such that we can replace the snippet with content once work is done
|
|
875
878
|
* @param {1 | -1} d
|
|
876
879
|
*/
|
|
877
|
-
|
|
880
|
+
yn = function(t) {
|
|
878
881
|
var n;
|
|
879
882
|
if (!this.has_pending_snippet()) {
|
|
880
|
-
this.parent &&
|
|
883
|
+
this.parent && k(n = this.parent, M, yn).call(n, t);
|
|
881
884
|
return;
|
|
882
885
|
}
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
}),
|
|
886
|
+
m(this, Ne, l(this, Ne) + t), l(this, Ne) === 0 && (k(this, M, Vt).call(this), l(this, X) && Rt(l(this, X), () => {
|
|
887
|
+
m(this, X, null);
|
|
888
|
+
}), l(this, Se) && (l(this, U).before(l(this, Se)), m(this, Se, null)));
|
|
886
889
|
};
|
|
887
|
-
function
|
|
888
|
-
const s =
|
|
889
|
-
var i = e.filter((
|
|
890
|
+
function di(e, t, n, r) {
|
|
891
|
+
const s = Rn;
|
|
892
|
+
var i = e.filter((h) => !h.settled);
|
|
890
893
|
if (n.length === 0 && i.length === 0) {
|
|
891
894
|
r(t.map(s));
|
|
892
895
|
return;
|
|
@@ -894,65 +897,65 @@ function ri(e, t, n, r) {
|
|
|
894
897
|
var o = (
|
|
895
898
|
/** @type {Effect} */
|
|
896
899
|
y
|
|
897
|
-
), u =
|
|
898
|
-
function f(
|
|
900
|
+
), u = hi(), a = i.length === 1 ? i[0].promise : i.length > 1 ? Promise.all(i.map((h) => h.promise)) : null;
|
|
901
|
+
function f(h) {
|
|
899
902
|
u();
|
|
900
903
|
try {
|
|
901
|
-
r(
|
|
902
|
-
} catch (
|
|
903
|
-
(o.f &
|
|
904
|
+
r(h);
|
|
905
|
+
} catch (v) {
|
|
906
|
+
(o.f & ke) === 0 && Oe(v, o);
|
|
904
907
|
}
|
|
905
|
-
|
|
908
|
+
$n();
|
|
906
909
|
}
|
|
907
910
|
if (n.length === 0) {
|
|
908
|
-
|
|
911
|
+
a.then(() => f(t.map(s)));
|
|
909
912
|
return;
|
|
910
913
|
}
|
|
911
914
|
function c() {
|
|
912
|
-
u(), Promise.all(n.map((
|
|
915
|
+
u(), Promise.all(n.map((h) => /* @__PURE__ */ _i(h))).then((h) => f([...t.map(s), ...h])).catch((h) => Oe(h, o));
|
|
913
916
|
}
|
|
914
|
-
|
|
917
|
+
a ? a.then(c) : c();
|
|
915
918
|
}
|
|
916
|
-
function
|
|
917
|
-
var e = y, t = b, n =
|
|
919
|
+
function hi() {
|
|
920
|
+
var e = y, t = b, n = W, r = T;
|
|
918
921
|
return function(i = !0) {
|
|
919
922
|
me(e), ne(t), xt(n), i && r?.activate();
|
|
920
923
|
};
|
|
921
924
|
}
|
|
922
|
-
function
|
|
923
|
-
me(null), ne(null), xt(null), e &&
|
|
925
|
+
function $n(e = !0) {
|
|
926
|
+
me(null), ne(null), xt(null), e && T?.deactivate();
|
|
924
927
|
}
|
|
925
|
-
function
|
|
928
|
+
function vi() {
|
|
926
929
|
var e = (
|
|
927
930
|
/** @type {Boundary} */
|
|
928
931
|
/** @type {Effect} */
|
|
929
932
|
y.b
|
|
930
933
|
), t = (
|
|
931
934
|
/** @type {Batch} */
|
|
932
|
-
|
|
935
|
+
T
|
|
933
936
|
), n = e.is_rendered();
|
|
934
937
|
return e.update_pending_count(1), t.increment(n), () => {
|
|
935
938
|
e.update_pending_count(-1), t.decrement(n);
|
|
936
939
|
};
|
|
937
940
|
}
|
|
938
941
|
// @__NO_SIDE_EFFECTS__
|
|
939
|
-
function
|
|
940
|
-
var t = P |
|
|
942
|
+
function Rn(e) {
|
|
943
|
+
var t = P | L, n = b !== null && (b.f & P) !== 0 ? (
|
|
941
944
|
/** @type {Derived} */
|
|
942
945
|
b
|
|
943
946
|
) : null;
|
|
944
|
-
return y !== null && (y.f |=
|
|
945
|
-
ctx:
|
|
947
|
+
return y !== null && (y.f |= nt), {
|
|
948
|
+
ctx: W,
|
|
946
949
|
deps: null,
|
|
947
950
|
effects: null,
|
|
948
|
-
equals:
|
|
951
|
+
equals: mr,
|
|
949
952
|
f: t,
|
|
950
953
|
fn: e,
|
|
951
954
|
reactions: null,
|
|
952
955
|
rv: 0,
|
|
953
956
|
v: (
|
|
954
957
|
/** @type {V} */
|
|
955
|
-
|
|
958
|
+
O
|
|
956
959
|
),
|
|
957
960
|
wv: 0,
|
|
958
961
|
parent: n ?? y,
|
|
@@ -960,79 +963,79 @@ function Mn(e) {
|
|
|
960
963
|
};
|
|
961
964
|
}
|
|
962
965
|
// @__NO_SIDE_EFFECTS__
|
|
963
|
-
function
|
|
966
|
+
function _i(e, t, n) {
|
|
964
967
|
/** @type {Effect | null} */
|
|
965
|
-
y === null &&
|
|
968
|
+
y === null && Bs();
|
|
966
969
|
var s = (
|
|
967
970
|
/** @type {Promise<V>} */
|
|
968
971
|
/** @type {unknown} */
|
|
969
972
|
void 0
|
|
970
973
|
), i = Pt(
|
|
971
974
|
/** @type {V} */
|
|
972
|
-
|
|
975
|
+
O
|
|
973
976
|
), o = !b, u = /* @__PURE__ */ new Map();
|
|
974
|
-
return
|
|
975
|
-
var
|
|
976
|
-
s =
|
|
977
|
+
return Ti(() => {
|
|
978
|
+
var a = _r();
|
|
979
|
+
s = a.promise;
|
|
977
980
|
try {
|
|
978
|
-
Promise.resolve(e()).then(
|
|
979
|
-
} catch (
|
|
980
|
-
|
|
981
|
+
Promise.resolve(e()).then(a.resolve, a.reject).finally($n);
|
|
982
|
+
} catch (v) {
|
|
983
|
+
a.reject(v), $n();
|
|
981
984
|
}
|
|
982
985
|
var f = (
|
|
983
986
|
/** @type {Batch} */
|
|
984
|
-
|
|
987
|
+
T
|
|
985
988
|
);
|
|
986
989
|
if (o) {
|
|
987
|
-
var c =
|
|
988
|
-
u.get(f)?.reject(
|
|
990
|
+
var c = vi();
|
|
991
|
+
u.get(f)?.reject(Ye), u.delete(f), u.set(f, a);
|
|
989
992
|
}
|
|
990
|
-
const
|
|
991
|
-
if (f.activate(),
|
|
992
|
-
|
|
993
|
+
const h = (v, g = void 0) => {
|
|
994
|
+
if (f.activate(), g)
|
|
995
|
+
g !== Ye && (i.f |= De, Gt(i, g));
|
|
993
996
|
else {
|
|
994
|
-
(i.f &
|
|
995
|
-
for (const [
|
|
996
|
-
if (u.delete(
|
|
997
|
-
|
|
997
|
+
(i.f & De) !== 0 && (i.f ^= De), Gt(i, v);
|
|
998
|
+
for (const [d, $] of u) {
|
|
999
|
+
if (u.delete(d), d === f) break;
|
|
1000
|
+
$.reject(Ye);
|
|
998
1001
|
}
|
|
999
1002
|
}
|
|
1000
1003
|
c && c();
|
|
1001
1004
|
};
|
|
1002
|
-
|
|
1003
|
-
}),
|
|
1004
|
-
for (const
|
|
1005
|
-
|
|
1006
|
-
}), new Promise((
|
|
1005
|
+
a.promise.then(h, (v) => h(null, v || "unknown"));
|
|
1006
|
+
}), Si(() => {
|
|
1007
|
+
for (const a of u.values())
|
|
1008
|
+
a.reject(Ye);
|
|
1009
|
+
}), new Promise((a) => {
|
|
1007
1010
|
function f(c) {
|
|
1008
|
-
function
|
|
1009
|
-
c === s ?
|
|
1011
|
+
function h() {
|
|
1012
|
+
c === s ? a(i) : f(s);
|
|
1010
1013
|
}
|
|
1011
|
-
c.then(
|
|
1014
|
+
c.then(h, h);
|
|
1012
1015
|
}
|
|
1013
1016
|
f(s);
|
|
1014
1017
|
});
|
|
1015
1018
|
}
|
|
1016
1019
|
// @__NO_SIDE_EFFECTS__
|
|
1017
|
-
function
|
|
1018
|
-
const t = /* @__PURE__ */
|
|
1019
|
-
return
|
|
1020
|
+
function Mr(e) {
|
|
1021
|
+
const t = /* @__PURE__ */ Rn(e);
|
|
1022
|
+
return Kr(t), t;
|
|
1020
1023
|
}
|
|
1021
|
-
function
|
|
1024
|
+
function pi(e) {
|
|
1022
1025
|
var t = e.effects;
|
|
1023
1026
|
if (t !== null) {
|
|
1024
1027
|
e.effects = null;
|
|
1025
1028
|
for (var n = 0; n < t.length; n += 1)
|
|
1026
|
-
|
|
1029
|
+
B(
|
|
1027
1030
|
/** @type {Effect} */
|
|
1028
1031
|
t[n]
|
|
1029
1032
|
);
|
|
1030
1033
|
}
|
|
1031
1034
|
}
|
|
1032
|
-
function
|
|
1035
|
+
function gi(e) {
|
|
1033
1036
|
for (var t = e.parent; t !== null; ) {
|
|
1034
1037
|
if ((t.f & P) === 0)
|
|
1035
|
-
return (t.f &
|
|
1038
|
+
return (t.f & ke) === 0 ? (
|
|
1036
1039
|
/** @type {Effect} */
|
|
1037
1040
|
t
|
|
1038
1041
|
) : null;
|
|
@@ -1040,103 +1043,103 @@ function ui(e) {
|
|
|
1040
1043
|
}
|
|
1041
1044
|
return null;
|
|
1042
1045
|
}
|
|
1043
|
-
function
|
|
1046
|
+
function Nn(e) {
|
|
1044
1047
|
var t, n = y;
|
|
1045
|
-
me(
|
|
1048
|
+
me(gi(e));
|
|
1046
1049
|
try {
|
|
1047
|
-
e.f &= ~
|
|
1050
|
+
e.f &= ~et, pi(e), t = Qr(e);
|
|
1048
1051
|
} finally {
|
|
1049
1052
|
me(n);
|
|
1050
1053
|
}
|
|
1051
1054
|
return t;
|
|
1052
1055
|
}
|
|
1053
|
-
function
|
|
1054
|
-
var t =
|
|
1055
|
-
if (!e.equals(t) && (e.wv =
|
|
1056
|
+
function Rr(e) {
|
|
1057
|
+
var t = Nn(e);
|
|
1058
|
+
if (!e.equals(t) && (e.wv = Jr(), (!T?.is_fork || e.deps === null) && (e.v = t, e.deps === null))) {
|
|
1056
1059
|
R(e, D);
|
|
1057
1060
|
return;
|
|
1058
1061
|
}
|
|
1059
|
-
|
|
1062
|
+
je || (oe !== null ? (Ln() || T?.is_fork) && oe.set(e, t) : Mn(e));
|
|
1060
1063
|
}
|
|
1061
|
-
function
|
|
1064
|
+
function mi(e) {
|
|
1062
1065
|
if (e.effects !== null)
|
|
1063
1066
|
for (const t of e.effects)
|
|
1064
|
-
(t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(
|
|
1067
|
+
(t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(Ye), t.teardown = Ds, t.ac = null, Nt(t, 0), Pn(t));
|
|
1065
1068
|
}
|
|
1066
|
-
function
|
|
1069
|
+
function Nr(e) {
|
|
1067
1070
|
if (e.effects !== null)
|
|
1068
1071
|
for (const t of e.effects)
|
|
1069
|
-
t.teardown &&
|
|
1072
|
+
t.teardown && St(t);
|
|
1070
1073
|
}
|
|
1071
|
-
let
|
|
1072
|
-
const
|
|
1073
|
-
let
|
|
1074
|
+
let xn = /* @__PURE__ */ new Set();
|
|
1075
|
+
const Le = /* @__PURE__ */ new Map();
|
|
1076
|
+
let Or = !1;
|
|
1074
1077
|
function Pt(e, t) {
|
|
1075
1078
|
var n = {
|
|
1076
1079
|
f: 0,
|
|
1077
1080
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
1078
1081
|
v: e,
|
|
1079
1082
|
reactions: null,
|
|
1080
|
-
equals:
|
|
1083
|
+
equals: mr,
|
|
1081
1084
|
rv: 0,
|
|
1082
1085
|
wv: 0
|
|
1083
1086
|
};
|
|
1084
1087
|
return n;
|
|
1085
1088
|
}
|
|
1086
1089
|
// @__NO_SIDE_EFFECTS__
|
|
1087
|
-
function
|
|
1090
|
+
function z(e, t) {
|
|
1088
1091
|
const n = Pt(e);
|
|
1089
|
-
return
|
|
1092
|
+
return Kr(n), n;
|
|
1090
1093
|
}
|
|
1091
1094
|
// @__NO_SIDE_EFFECTS__
|
|
1092
|
-
function
|
|
1095
|
+
function wi(e, t = !1, n = !0) {
|
|
1093
1096
|
const r = Pt(e);
|
|
1094
|
-
return t || (r.equals =
|
|
1097
|
+
return t || (r.equals = ni), r;
|
|
1095
1098
|
}
|
|
1096
|
-
function
|
|
1099
|
+
function A(e, t, n = !1) {
|
|
1097
1100
|
b !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
1098
1101
|
// to ensure we error if state is set inside an inspect effect
|
|
1099
|
-
(!
|
|
1100
|
-
let r = n ?
|
|
1101
|
-
return
|
|
1102
|
+
(!ae || (b.f & Gn) !== 0) && wr() && (b.f & (P | He | Tn | Gn)) !== 0 && (te === null || !bt.call(te, e)) && Gs();
|
|
1103
|
+
let r = n ? lt(t) : t;
|
|
1104
|
+
return Gt(e, r);
|
|
1102
1105
|
}
|
|
1103
|
-
function
|
|
1106
|
+
function Gt(e, t) {
|
|
1104
1107
|
if (!e.equals(t)) {
|
|
1105
1108
|
var n = e.v;
|
|
1106
|
-
|
|
1109
|
+
je ? Le.set(e, t) : Le.set(e, n), e.v = t;
|
|
1107
1110
|
var r = Te.ensure();
|
|
1108
1111
|
if (r.capture(e, n), (e.f & P) !== 0) {
|
|
1109
1112
|
const s = (
|
|
1110
1113
|
/** @type {Derived} */
|
|
1111
1114
|
e
|
|
1112
1115
|
);
|
|
1113
|
-
(e.f &
|
|
1116
|
+
(e.f & L) !== 0 && Nn(s), Mn(s);
|
|
1114
1117
|
}
|
|
1115
|
-
e.wv =
|
|
1118
|
+
e.wv = Jr(), Dr(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 && !Or && bi();
|
|
1116
1119
|
}
|
|
1117
1120
|
return t;
|
|
1118
1121
|
}
|
|
1119
|
-
function
|
|
1120
|
-
|
|
1121
|
-
for (const e of
|
|
1122
|
-
(e.f & D) !== 0 && R(e,
|
|
1123
|
-
|
|
1122
|
+
function bi() {
|
|
1123
|
+
Or = !1;
|
|
1124
|
+
for (const e of xn)
|
|
1125
|
+
(e.f & D) !== 0 && R(e, ue), zt(e) && St(e);
|
|
1126
|
+
xn.clear();
|
|
1124
1127
|
}
|
|
1125
1128
|
function At(e) {
|
|
1126
|
-
|
|
1129
|
+
A(e, e.v + 1);
|
|
1127
1130
|
}
|
|
1128
|
-
function
|
|
1131
|
+
function Dr(e, t) {
|
|
1129
1132
|
var n = e.reactions;
|
|
1130
1133
|
if (n !== null)
|
|
1131
1134
|
for (var r = n.length, s = 0; s < r; s++) {
|
|
1132
|
-
var i = n[s], o = i.f, u = (o &
|
|
1135
|
+
var i = n[s], o = i.f, u = (o & L) === 0;
|
|
1133
1136
|
if (u && R(i, t), (o & P) !== 0) {
|
|
1134
|
-
var
|
|
1137
|
+
var a = (
|
|
1135
1138
|
/** @type {Derived} */
|
|
1136
1139
|
i
|
|
1137
1140
|
);
|
|
1138
|
-
|
|
1139
|
-
} else u && ((o &
|
|
1141
|
+
oe?.delete(a), (o & et) === 0 && (o & Q && (i.f |= et), Dr(a, ue));
|
|
1142
|
+
} else u && ((o & He) !== 0 && $e !== null && $e.add(
|
|
1140
1143
|
/** @type {Effect} */
|
|
1141
1144
|
i
|
|
1142
1145
|
), pe(
|
|
@@ -1145,221 +1148,221 @@ function Tr(e, t) {
|
|
|
1145
1148
|
));
|
|
1146
1149
|
}
|
|
1147
1150
|
}
|
|
1148
|
-
function
|
|
1149
|
-
if (typeof e != "object" || e === null ||
|
|
1151
|
+
function lt(e) {
|
|
1152
|
+
if (typeof e != "object" || e === null || dn in e)
|
|
1150
1153
|
return e;
|
|
1151
|
-
const t =
|
|
1152
|
-
if (t !==
|
|
1154
|
+
const t = vr(e);
|
|
1155
|
+
if (t !== Ns && t !== Os)
|
|
1153
1156
|
return e;
|
|
1154
|
-
var n = /* @__PURE__ */ new Map(), r =
|
|
1155
|
-
if (
|
|
1157
|
+
var n = /* @__PURE__ */ new Map(), r = hr(e), s = /* @__PURE__ */ z(0), i = Qe, o = (u) => {
|
|
1158
|
+
if (Qe === i)
|
|
1156
1159
|
return u();
|
|
1157
|
-
var
|
|
1158
|
-
ne(null),
|
|
1160
|
+
var a = b, f = Qe;
|
|
1161
|
+
ne(null), er(i);
|
|
1159
1162
|
var c = u();
|
|
1160
|
-
return ne(
|
|
1163
|
+
return ne(a), er(f), c;
|
|
1161
1164
|
};
|
|
1162
|
-
return r && n.set("length", /* @__PURE__ */
|
|
1165
|
+
return r && n.set("length", /* @__PURE__ */ z(
|
|
1163
1166
|
/** @type {any[]} */
|
|
1164
1167
|
e.length
|
|
1165
1168
|
)), new Proxy(
|
|
1166
1169
|
/** @type {any} */
|
|
1167
1170
|
e,
|
|
1168
1171
|
{
|
|
1169
|
-
defineProperty(u,
|
|
1170
|
-
(!("value" in f) || f.configurable === !1 || f.enumerable === !1 || f.writable === !1) &&
|
|
1171
|
-
var c = n.get(
|
|
1172
|
+
defineProperty(u, a, f) {
|
|
1173
|
+
(!("value" in f) || f.configurable === !1 || f.enumerable === !1 || f.writable === !1) && Xs();
|
|
1174
|
+
var c = n.get(a);
|
|
1172
1175
|
return c === void 0 ? o(() => {
|
|
1173
|
-
var
|
|
1174
|
-
return n.set(
|
|
1175
|
-
}) :
|
|
1176
|
+
var h = /* @__PURE__ */ z(f.value);
|
|
1177
|
+
return n.set(a, h), h;
|
|
1178
|
+
}) : A(c, f.value, !0), !0;
|
|
1176
1179
|
},
|
|
1177
|
-
deleteProperty(u,
|
|
1178
|
-
var f = n.get(
|
|
1180
|
+
deleteProperty(u, a) {
|
|
1181
|
+
var f = n.get(a);
|
|
1179
1182
|
if (f === void 0) {
|
|
1180
|
-
if (
|
|
1181
|
-
const c = o(() => /* @__PURE__ */
|
|
1182
|
-
n.set(
|
|
1183
|
+
if (a in u) {
|
|
1184
|
+
const c = o(() => /* @__PURE__ */ z(O));
|
|
1185
|
+
n.set(a, c), At(s);
|
|
1183
1186
|
}
|
|
1184
1187
|
} else
|
|
1185
|
-
|
|
1188
|
+
A(f, O), At(s);
|
|
1186
1189
|
return !0;
|
|
1187
1190
|
},
|
|
1188
|
-
get(u,
|
|
1189
|
-
if (
|
|
1191
|
+
get(u, a, f) {
|
|
1192
|
+
if (a === dn)
|
|
1190
1193
|
return e;
|
|
1191
|
-
var c = n.get(
|
|
1192
|
-
if (c === void 0 && (!
|
|
1193
|
-
var
|
|
1194
|
-
return
|
|
1195
|
-
}), n.set(
|
|
1196
|
-
var
|
|
1197
|
-
return
|
|
1194
|
+
var c = n.get(a), h = a in u;
|
|
1195
|
+
if (c === void 0 && (!h || at(u, a)?.writable) && (c = o(() => {
|
|
1196
|
+
var g = lt(h ? u[a] : O), d = /* @__PURE__ */ z(g);
|
|
1197
|
+
return d;
|
|
1198
|
+
}), n.set(a, c)), c !== void 0) {
|
|
1199
|
+
var v = x(c);
|
|
1200
|
+
return v === O ? void 0 : v;
|
|
1198
1201
|
}
|
|
1199
|
-
return Reflect.get(u,
|
|
1202
|
+
return Reflect.get(u, a, f);
|
|
1200
1203
|
},
|
|
1201
|
-
getOwnPropertyDescriptor(u,
|
|
1202
|
-
var f = Reflect.getOwnPropertyDescriptor(u,
|
|
1204
|
+
getOwnPropertyDescriptor(u, a) {
|
|
1205
|
+
var f = Reflect.getOwnPropertyDescriptor(u, a);
|
|
1203
1206
|
if (f && "value" in f) {
|
|
1204
|
-
var c = n.get(
|
|
1205
|
-
c && (f.value =
|
|
1207
|
+
var c = n.get(a);
|
|
1208
|
+
c && (f.value = x(c));
|
|
1206
1209
|
} else if (f === void 0) {
|
|
1207
|
-
var
|
|
1208
|
-
if (
|
|
1210
|
+
var h = n.get(a), v = h?.v;
|
|
1211
|
+
if (h !== void 0 && v !== O)
|
|
1209
1212
|
return {
|
|
1210
1213
|
enumerable: !0,
|
|
1211
1214
|
configurable: !0,
|
|
1212
|
-
value:
|
|
1215
|
+
value: v,
|
|
1213
1216
|
writable: !0
|
|
1214
1217
|
};
|
|
1215
1218
|
}
|
|
1216
1219
|
return f;
|
|
1217
1220
|
},
|
|
1218
|
-
has(u,
|
|
1219
|
-
if (
|
|
1221
|
+
has(u, a) {
|
|
1222
|
+
if (a === dn)
|
|
1220
1223
|
return !0;
|
|
1221
|
-
var f = n.get(
|
|
1222
|
-
if (f !== void 0 || y !== null && (!c ||
|
|
1224
|
+
var f = n.get(a), c = f !== void 0 && f.v !== O || Reflect.has(u, a);
|
|
1225
|
+
if (f !== void 0 || y !== null && (!c || at(u, a)?.writable)) {
|
|
1223
1226
|
f === void 0 && (f = o(() => {
|
|
1224
|
-
var
|
|
1225
|
-
return
|
|
1226
|
-
}), n.set(
|
|
1227
|
-
var
|
|
1228
|
-
if (
|
|
1227
|
+
var v = c ? lt(u[a]) : O, g = /* @__PURE__ */ z(v);
|
|
1228
|
+
return g;
|
|
1229
|
+
}), n.set(a, f));
|
|
1230
|
+
var h = x(f);
|
|
1231
|
+
if (h === O)
|
|
1229
1232
|
return !1;
|
|
1230
1233
|
}
|
|
1231
1234
|
return c;
|
|
1232
1235
|
},
|
|
1233
|
-
set(u,
|
|
1234
|
-
var
|
|
1235
|
-
if (r &&
|
|
1236
|
-
for (var
|
|
1237
|
-
|
|
1238
|
-
var
|
|
1239
|
-
|
|
1236
|
+
set(u, a, f, c) {
|
|
1237
|
+
var h = n.get(a), v = a in u;
|
|
1238
|
+
if (r && a === "length")
|
|
1239
|
+
for (var g = f; g < /** @type {Source<number>} */
|
|
1240
|
+
h.v; g += 1) {
|
|
1241
|
+
var d = n.get(g + "");
|
|
1242
|
+
d !== void 0 ? A(d, O) : g in u && (d = o(() => /* @__PURE__ */ z(O)), n.set(g + "", d));
|
|
1240
1243
|
}
|
|
1241
|
-
if (
|
|
1242
|
-
(!
|
|
1244
|
+
if (h === void 0)
|
|
1245
|
+
(!v || at(u, a)?.writable) && (h = o(() => /* @__PURE__ */ z(void 0)), A(h, lt(f)), n.set(a, h));
|
|
1243
1246
|
else {
|
|
1244
|
-
|
|
1245
|
-
var
|
|
1246
|
-
|
|
1247
|
+
v = h.v !== O;
|
|
1248
|
+
var $ = o(() => lt(f));
|
|
1249
|
+
A(h, $);
|
|
1247
1250
|
}
|
|
1248
|
-
var
|
|
1249
|
-
if (
|
|
1250
|
-
if (r && typeof
|
|
1251
|
+
var _ = Reflect.getOwnPropertyDescriptor(u, a);
|
|
1252
|
+
if (_?.set && _.set.call(c, f), !v) {
|
|
1253
|
+
if (r && typeof a == "string") {
|
|
1251
1254
|
var S = (
|
|
1252
1255
|
/** @type {Source<number>} */
|
|
1253
1256
|
n.get("length")
|
|
1254
|
-
), Y = Number(
|
|
1255
|
-
Number.isInteger(Y) && Y >= S.v &&
|
|
1257
|
+
), Y = Number(a);
|
|
1258
|
+
Number.isInteger(Y) && Y >= S.v && A(S, Y + 1);
|
|
1256
1259
|
}
|
|
1257
1260
|
At(s);
|
|
1258
1261
|
}
|
|
1259
1262
|
return !0;
|
|
1260
1263
|
},
|
|
1261
1264
|
ownKeys(u) {
|
|
1262
|
-
|
|
1263
|
-
var
|
|
1264
|
-
var
|
|
1265
|
-
return
|
|
1265
|
+
x(s);
|
|
1266
|
+
var a = Reflect.ownKeys(u).filter((h) => {
|
|
1267
|
+
var v = n.get(h);
|
|
1268
|
+
return v === void 0 || v.v !== O;
|
|
1266
1269
|
});
|
|
1267
1270
|
for (var [f, c] of n)
|
|
1268
|
-
c.v !==
|
|
1269
|
-
return
|
|
1271
|
+
c.v !== O && !(f in u) && a.push(f);
|
|
1272
|
+
return a;
|
|
1270
1273
|
},
|
|
1271
1274
|
setPrototypeOf() {
|
|
1272
|
-
|
|
1275
|
+
Ks();
|
|
1273
1276
|
}
|
|
1274
1277
|
}
|
|
1275
1278
|
);
|
|
1276
1279
|
}
|
|
1277
|
-
var
|
|
1280
|
+
var Zn, Lr, Pr, zr;
|
|
1278
1281
|
function En() {
|
|
1279
|
-
if (
|
|
1280
|
-
|
|
1282
|
+
if (Zn === void 0) {
|
|
1283
|
+
Zn = window, Lr = /Firefox/.test(navigator.userAgent);
|
|
1281
1284
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
1282
|
-
|
|
1285
|
+
Pr = at(t, "firstChild").get, zr = at(t, "nextSibling").get, Kn(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Kn(n) && (n.__t = void 0);
|
|
1283
1286
|
}
|
|
1284
1287
|
}
|
|
1285
|
-
function
|
|
1288
|
+
function Pe(e = "") {
|
|
1286
1289
|
return document.createTextNode(e);
|
|
1287
1290
|
}
|
|
1288
1291
|
// @__NO_SIDE_EFFECTS__
|
|
1289
|
-
function
|
|
1292
|
+
function ze(e) {
|
|
1290
1293
|
return (
|
|
1291
1294
|
/** @type {TemplateNode | null} */
|
|
1292
|
-
|
|
1295
|
+
Pr.call(e)
|
|
1293
1296
|
);
|
|
1294
1297
|
}
|
|
1295
1298
|
// @__NO_SIDE_EFFECTS__
|
|
1296
|
-
function
|
|
1299
|
+
function Ae(e) {
|
|
1297
1300
|
return (
|
|
1298
1301
|
/** @type {TemplateNode | null} */
|
|
1299
|
-
|
|
1302
|
+
zr.call(e)
|
|
1300
1303
|
);
|
|
1301
1304
|
}
|
|
1302
1305
|
function xe(e, t) {
|
|
1303
|
-
if (!
|
|
1304
|
-
return /* @__PURE__ */
|
|
1305
|
-
var n = /* @__PURE__ */
|
|
1306
|
+
if (!C)
|
|
1307
|
+
return /* @__PURE__ */ ze(e);
|
|
1308
|
+
var n = /* @__PURE__ */ ze(E);
|
|
1306
1309
|
if (n === null)
|
|
1307
|
-
n =
|
|
1308
|
-
else if (t && n.nodeType !==
|
|
1309
|
-
var r =
|
|
1310
|
-
return n?.before(r),
|
|
1310
|
+
n = E.appendChild(Pe());
|
|
1311
|
+
else if (t && n.nodeType !== nn) {
|
|
1312
|
+
var r = Pe();
|
|
1313
|
+
return n?.before(r), fe(r), r;
|
|
1311
1314
|
}
|
|
1312
1315
|
return t && Dn(
|
|
1313
1316
|
/** @type {Text} */
|
|
1314
1317
|
n
|
|
1315
|
-
),
|
|
1318
|
+
), fe(n), n;
|
|
1316
1319
|
}
|
|
1317
|
-
function
|
|
1318
|
-
if (!
|
|
1319
|
-
var n = /* @__PURE__ */
|
|
1320
|
-
return n instanceof Comment && n.data === "" ? /* @__PURE__ */
|
|
1320
|
+
function jr(e, t = !1) {
|
|
1321
|
+
if (!C) {
|
|
1322
|
+
var n = /* @__PURE__ */ ze(e);
|
|
1323
|
+
return n instanceof Comment && n.data === "" ? /* @__PURE__ */ Ae(n) : n;
|
|
1321
1324
|
}
|
|
1322
1325
|
if (t) {
|
|
1323
|
-
if (
|
|
1324
|
-
var r =
|
|
1325
|
-
return
|
|
1326
|
+
if (E?.nodeType !== nn) {
|
|
1327
|
+
var r = Pe();
|
|
1328
|
+
return E?.before(r), fe(r), r;
|
|
1326
1329
|
}
|
|
1327
1330
|
Dn(
|
|
1328
1331
|
/** @type {Text} */
|
|
1329
|
-
|
|
1332
|
+
E
|
|
1330
1333
|
);
|
|
1331
1334
|
}
|
|
1332
|
-
return
|
|
1335
|
+
return E;
|
|
1333
1336
|
}
|
|
1334
|
-
function
|
|
1335
|
-
let r =
|
|
1337
|
+
function Ve(e, t = 1, n = !1) {
|
|
1338
|
+
let r = C ? E : e;
|
|
1336
1339
|
for (var s; t--; )
|
|
1337
1340
|
s = r, r = /** @type {TemplateNode} */
|
|
1338
|
-
/* @__PURE__ */
|
|
1339
|
-
if (!
|
|
1341
|
+
/* @__PURE__ */ Ae(r);
|
|
1342
|
+
if (!C)
|
|
1340
1343
|
return r;
|
|
1341
1344
|
if (n) {
|
|
1342
|
-
if (r?.nodeType !==
|
|
1343
|
-
var i =
|
|
1344
|
-
return r === null ? s?.after(i) : r.before(i),
|
|
1345
|
+
if (r?.nodeType !== nn) {
|
|
1346
|
+
var i = Pe();
|
|
1347
|
+
return r === null ? s?.after(i) : r.before(i), fe(i), i;
|
|
1345
1348
|
}
|
|
1346
1349
|
Dn(
|
|
1347
1350
|
/** @type {Text} */
|
|
1348
1351
|
r
|
|
1349
1352
|
);
|
|
1350
1353
|
}
|
|
1351
|
-
return
|
|
1354
|
+
return fe(r), r;
|
|
1352
1355
|
}
|
|
1353
|
-
function
|
|
1356
|
+
function yi(e) {
|
|
1354
1357
|
e.textContent = "";
|
|
1355
1358
|
}
|
|
1356
|
-
function
|
|
1359
|
+
function $i() {
|
|
1357
1360
|
return !1;
|
|
1358
1361
|
}
|
|
1359
|
-
function
|
|
1362
|
+
function On(e, t, n) {
|
|
1360
1363
|
return (
|
|
1361
1364
|
/** @type {T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : Element} */
|
|
1362
|
-
document.createElementNS(
|
|
1365
|
+
document.createElementNS(dr, e, void 0)
|
|
1363
1366
|
);
|
|
1364
1367
|
}
|
|
1365
1368
|
function Dn(e) {
|
|
@@ -1369,11 +1372,11 @@ function Dn(e) {
|
|
|
1369
1372
|
)
|
|
1370
1373
|
return;
|
|
1371
1374
|
let t = e.nextSibling;
|
|
1372
|
-
for (; t !== null && t.nodeType ===
|
|
1375
|
+
for (; t !== null && t.nodeType === nn; )
|
|
1373
1376
|
t.remove(), e.nodeValue += /** @type {string} */
|
|
1374
1377
|
t.nodeValue, t = e.nextSibling;
|
|
1375
1378
|
}
|
|
1376
|
-
function
|
|
1379
|
+
function Hr(e) {
|
|
1377
1380
|
var t = b, n = y;
|
|
1378
1381
|
ne(null), me(null);
|
|
1379
1382
|
try {
|
|
@@ -1382,10 +1385,10 @@ function Dr(e) {
|
|
|
1382
1385
|
ne(t), me(n);
|
|
1383
1386
|
}
|
|
1384
1387
|
}
|
|
1385
|
-
function
|
|
1386
|
-
y === null && (b === null &&
|
|
1388
|
+
function xi(e) {
|
|
1389
|
+
y === null && (b === null && Ys(), Vs()), je && Ws();
|
|
1387
1390
|
}
|
|
1388
|
-
function
|
|
1391
|
+
function Ei(e, t) {
|
|
1389
1392
|
var n = t.last;
|
|
1390
1393
|
n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
|
|
1391
1394
|
}
|
|
@@ -1393,10 +1396,10 @@ function be(e, t) {
|
|
|
1393
1396
|
var n = y;
|
|
1394
1397
|
n !== null && (n.f & ee) !== 0 && (e |= ee);
|
|
1395
1398
|
var r = {
|
|
1396
|
-
ctx:
|
|
1399
|
+
ctx: W,
|
|
1397
1400
|
deps: null,
|
|
1398
1401
|
nodes: null,
|
|
1399
|
-
f: e |
|
|
1402
|
+
f: e | L | Q,
|
|
1400
1403
|
first: null,
|
|
1401
1404
|
fn: t,
|
|
1402
1405
|
last: null,
|
|
@@ -1409,17 +1412,17 @@ function be(e, t) {
|
|
|
1409
1412
|
ac: null
|
|
1410
1413
|
}, s = r;
|
|
1411
1414
|
if ((e & Ct) !== 0)
|
|
1412
|
-
|
|
1415
|
+
Et !== null ? Et.push(r) : pe(r);
|
|
1413
1416
|
else if (t !== null) {
|
|
1414
1417
|
try {
|
|
1415
|
-
|
|
1418
|
+
St(r);
|
|
1416
1419
|
} catch (o) {
|
|
1417
|
-
throw
|
|
1420
|
+
throw B(r), o;
|
|
1418
1421
|
}
|
|
1419
1422
|
s.deps === null && s.teardown === null && s.nodes === null && s.first === s.last && // either `null`, or a singular child
|
|
1420
|
-
(s.f &
|
|
1423
|
+
(s.f & nt) === 0 && (s = s.first, (e & He) !== 0 && (e & $t) !== 0 && s !== null && (s.f |= $t));
|
|
1421
1424
|
}
|
|
1422
|
-
if (s !== null && (s.parent = n, n !== null &&
|
|
1425
|
+
if (s !== null && (s.parent = n, n !== null && Ei(s, n), b !== null && (b.f & P) !== 0 && (e & Fe) === 0)) {
|
|
1423
1426
|
var i = (
|
|
1424
1427
|
/** @type {Derived} */
|
|
1425
1428
|
b
|
|
@@ -1428,77 +1431,77 @@ function be(e, t) {
|
|
|
1428
1431
|
}
|
|
1429
1432
|
return r;
|
|
1430
1433
|
}
|
|
1431
|
-
function
|
|
1432
|
-
return b !== null && !
|
|
1434
|
+
function Ln() {
|
|
1435
|
+
return b !== null && !ae;
|
|
1433
1436
|
}
|
|
1434
|
-
function
|
|
1435
|
-
const t = be(
|
|
1437
|
+
function Si(e) {
|
|
1438
|
+
const t = be(yt, null);
|
|
1436
1439
|
return R(t, D), t.teardown = e, t;
|
|
1437
1440
|
}
|
|
1438
|
-
function
|
|
1439
|
-
|
|
1441
|
+
function Sn(e) {
|
|
1442
|
+
xi();
|
|
1440
1443
|
var t = (
|
|
1441
1444
|
/** @type {Effect} */
|
|
1442
1445
|
y.f
|
|
1443
|
-
), n = !b && (t & we) !== 0 && (t &
|
|
1446
|
+
), n = !b && (t & we) !== 0 && (t & tt) === 0;
|
|
1444
1447
|
if (n) {
|
|
1445
1448
|
var r = (
|
|
1446
1449
|
/** @type {ComponentContext} */
|
|
1447
|
-
|
|
1450
|
+
W
|
|
1448
1451
|
);
|
|
1449
1452
|
(r.e ?? (r.e = [])).push(e);
|
|
1450
1453
|
} else
|
|
1451
|
-
return
|
|
1454
|
+
return Fr(e);
|
|
1452
1455
|
}
|
|
1453
|
-
function
|
|
1454
|
-
return be(Ct |
|
|
1456
|
+
function Fr(e) {
|
|
1457
|
+
return be(Ct | zs, e);
|
|
1455
1458
|
}
|
|
1456
|
-
function
|
|
1459
|
+
function Ci(e) {
|
|
1457
1460
|
Te.ensure();
|
|
1458
|
-
const t = be(
|
|
1461
|
+
const t = be(Fe | nt, e);
|
|
1459
1462
|
return () => {
|
|
1460
|
-
|
|
1463
|
+
B(t);
|
|
1461
1464
|
};
|
|
1462
1465
|
}
|
|
1463
|
-
function
|
|
1466
|
+
function Ii(e) {
|
|
1464
1467
|
Te.ensure();
|
|
1465
|
-
const t = be(
|
|
1468
|
+
const t = be(Fe | nt, e);
|
|
1466
1469
|
return (n = {}) => new Promise((r) => {
|
|
1467
|
-
n.outro ?
|
|
1468
|
-
|
|
1469
|
-
}) : (
|
|
1470
|
+
n.outro ? Rt(t, () => {
|
|
1471
|
+
B(t), r(void 0);
|
|
1472
|
+
}) : (B(t), r(void 0));
|
|
1470
1473
|
});
|
|
1471
1474
|
}
|
|
1472
|
-
function
|
|
1475
|
+
function ki(e) {
|
|
1473
1476
|
return be(Ct, e);
|
|
1474
1477
|
}
|
|
1475
|
-
function
|
|
1476
|
-
return be(
|
|
1478
|
+
function Ti(e) {
|
|
1479
|
+
return be(Tn | nt, e);
|
|
1477
1480
|
}
|
|
1478
|
-
function
|
|
1479
|
-
return be(
|
|
1481
|
+
function Br(e, t = 0) {
|
|
1482
|
+
return be(yt | t, e);
|
|
1480
1483
|
}
|
|
1481
|
-
function
|
|
1482
|
-
|
|
1483
|
-
be(
|
|
1484
|
+
function Mt(e, t = [], n = [], r = []) {
|
|
1485
|
+
di(r, t, n, (s) => {
|
|
1486
|
+
be(yt, () => e(...s.map(x)));
|
|
1484
1487
|
});
|
|
1485
1488
|
}
|
|
1486
|
-
function
|
|
1487
|
-
var n = be(
|
|
1489
|
+
function Wr(e, t = 0) {
|
|
1490
|
+
var n = be(He | t, e);
|
|
1488
1491
|
return n;
|
|
1489
1492
|
}
|
|
1490
|
-
function
|
|
1491
|
-
return be(we |
|
|
1493
|
+
function Ee(e) {
|
|
1494
|
+
return be(we | nt, e);
|
|
1492
1495
|
}
|
|
1493
|
-
function
|
|
1496
|
+
function Vr(e) {
|
|
1494
1497
|
var t = e.teardown;
|
|
1495
1498
|
if (t !== null) {
|
|
1496
|
-
const n =
|
|
1497
|
-
|
|
1499
|
+
const n = je, r = b;
|
|
1500
|
+
Qn(!0), ne(null);
|
|
1498
1501
|
try {
|
|
1499
1502
|
t.call(null);
|
|
1500
1503
|
} finally {
|
|
1501
|
-
|
|
1504
|
+
Qn(n), ne(r);
|
|
1502
1505
|
}
|
|
1503
1506
|
}
|
|
1504
1507
|
}
|
|
@@ -1506,49 +1509,49 @@ function Pn(e, t = !1) {
|
|
|
1506
1509
|
var n = e.first;
|
|
1507
1510
|
for (e.first = e.last = null; n !== null; ) {
|
|
1508
1511
|
const s = n.ac;
|
|
1509
|
-
s !== null &&
|
|
1510
|
-
s.abort(
|
|
1512
|
+
s !== null && Hr(() => {
|
|
1513
|
+
s.abort(Ye);
|
|
1511
1514
|
});
|
|
1512
1515
|
var r = n.next;
|
|
1513
|
-
(n.f &
|
|
1516
|
+
(n.f & Fe) !== 0 ? n.parent = null : B(n, t), n = r;
|
|
1514
1517
|
}
|
|
1515
1518
|
}
|
|
1516
|
-
function
|
|
1519
|
+
function Ai(e) {
|
|
1517
1520
|
for (var t = e.first; t !== null; ) {
|
|
1518
1521
|
var n = t.next;
|
|
1519
|
-
(t.f & we) === 0 &&
|
|
1522
|
+
(t.f & we) === 0 && B(t), t = n;
|
|
1520
1523
|
}
|
|
1521
1524
|
}
|
|
1522
|
-
function
|
|
1525
|
+
function B(e, t = !0) {
|
|
1523
1526
|
var n = !1;
|
|
1524
|
-
(t || (e.f &
|
|
1527
|
+
(t || (e.f & Ps) !== 0) && e.nodes !== null && e.nodes.end !== null && (Mi(
|
|
1525
1528
|
e.nodes.start,
|
|
1526
1529
|
/** @type {TemplateNode} */
|
|
1527
1530
|
e.nodes.end
|
|
1528
|
-
), n = !0), Pn(e, t && !n),
|
|
1531
|
+
), n = !0), Pn(e, t && !n), Nt(e, 0), R(e, ke);
|
|
1529
1532
|
var r = e.nodes && e.nodes.t;
|
|
1530
1533
|
if (r !== null)
|
|
1531
1534
|
for (const i of r)
|
|
1532
1535
|
i.stop();
|
|
1533
|
-
|
|
1536
|
+
Vr(e);
|
|
1534
1537
|
var s = e.parent;
|
|
1535
|
-
s !== null && s.first !== null &&
|
|
1538
|
+
s !== null && s.first !== null && Yr(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
|
|
1536
1539
|
}
|
|
1537
|
-
function
|
|
1540
|
+
function Mi(e, t) {
|
|
1538
1541
|
for (; e !== null; ) {
|
|
1539
|
-
var n = e === t ? null : /* @__PURE__ */
|
|
1542
|
+
var n = e === t ? null : /* @__PURE__ */ Ae(e);
|
|
1540
1543
|
e.remove(), e = n;
|
|
1541
1544
|
}
|
|
1542
1545
|
}
|
|
1543
|
-
function
|
|
1546
|
+
function Yr(e) {
|
|
1544
1547
|
var t = e.parent, n = e.prev, r = e.next;
|
|
1545
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));
|
|
1546
1549
|
}
|
|
1547
|
-
function
|
|
1550
|
+
function Rt(e, t, n = !0) {
|
|
1548
1551
|
var r = [];
|
|
1549
|
-
|
|
1552
|
+
qr(e, r, !0);
|
|
1550
1553
|
var s = () => {
|
|
1551
|
-
n &&
|
|
1554
|
+
n && B(e), t && t();
|
|
1552
1555
|
}, i = r.length;
|
|
1553
1556
|
if (i > 0) {
|
|
1554
1557
|
var o = () => --i || s();
|
|
@@ -1557,7 +1560,7 @@ function Mt(e, t, n = !0) {
|
|
|
1557
1560
|
} else
|
|
1558
1561
|
s();
|
|
1559
1562
|
}
|
|
1560
|
-
function
|
|
1563
|
+
function qr(e, t, n) {
|
|
1561
1564
|
if ((e.f & ee) === 0) {
|
|
1562
1565
|
e.f ^= ee;
|
|
1563
1566
|
var r = e.nodes && e.nodes.t;
|
|
@@ -1565,23 +1568,23 @@ function Hr(e, t, n) {
|
|
|
1565
1568
|
for (const u of r)
|
|
1566
1569
|
(u.is_global || n) && t.push(u);
|
|
1567
1570
|
for (var s = e.first; s !== null; ) {
|
|
1568
|
-
var i = s.next, o = (s.f &
|
|
1571
|
+
var i = s.next, o = (s.f & $t) !== 0 || // If this is a branch effect without a block effect parent,
|
|
1569
1572
|
// it means the parent block effect was pruned. In that case,
|
|
1570
1573
|
// transparency information was transferred to the branch effect.
|
|
1571
|
-
(s.f & we) !== 0 && (e.f &
|
|
1572
|
-
|
|
1574
|
+
(s.f & we) !== 0 && (e.f & He) !== 0;
|
|
1575
|
+
qr(s, t, o ? n : !1), s = i;
|
|
1573
1576
|
}
|
|
1574
1577
|
}
|
|
1575
1578
|
}
|
|
1576
|
-
function
|
|
1577
|
-
|
|
1579
|
+
function Ri(e) {
|
|
1580
|
+
Ur(e, !0);
|
|
1578
1581
|
}
|
|
1579
|
-
function
|
|
1582
|
+
function Ur(e, t) {
|
|
1580
1583
|
if ((e.f & ee) !== 0) {
|
|
1581
1584
|
e.f ^= ee;
|
|
1582
1585
|
for (var n = e.first; n !== null; ) {
|
|
1583
|
-
var r = n.next, s = (n.f &
|
|
1584
|
-
|
|
1586
|
+
var r = n.next, s = (n.f & $t) !== 0 || (n.f & we) !== 0;
|
|
1587
|
+
Ur(n, s ? t : !1), n = r;
|
|
1585
1588
|
}
|
|
1586
1589
|
var i = e.nodes && e.nodes.t;
|
|
1587
1590
|
if (i !== null)
|
|
@@ -1589,18 +1592,18 @@ function zr(e, t) {
|
|
|
1589
1592
|
(o.is_global || t) && o.in();
|
|
1590
1593
|
}
|
|
1591
1594
|
}
|
|
1592
|
-
function
|
|
1595
|
+
function Xr(e, t) {
|
|
1593
1596
|
if (e.nodes)
|
|
1594
1597
|
for (var n = e.nodes.start, r = e.nodes.end; n !== null; ) {
|
|
1595
|
-
var s = n === r ? null : /* @__PURE__ */
|
|
1598
|
+
var s = n === r ? null : /* @__PURE__ */ Ae(n);
|
|
1596
1599
|
t.append(n), n = s;
|
|
1597
1600
|
}
|
|
1598
1601
|
}
|
|
1599
|
-
let
|
|
1600
|
-
function
|
|
1601
|
-
|
|
1602
|
+
let qt = !1, je = !1;
|
|
1603
|
+
function Qn(e) {
|
|
1604
|
+
je = e;
|
|
1602
1605
|
}
|
|
1603
|
-
let b = null,
|
|
1606
|
+
let b = null, ae = !1;
|
|
1604
1607
|
function ne(e) {
|
|
1605
1608
|
b = e;
|
|
1606
1609
|
}
|
|
@@ -1609,34 +1612,34 @@ function me(e) {
|
|
|
1609
1612
|
y = e;
|
|
1610
1613
|
}
|
|
1611
1614
|
let te = null;
|
|
1612
|
-
function
|
|
1615
|
+
function Kr(e) {
|
|
1613
1616
|
b !== null && (te === null ? te = [e] : te.push(e));
|
|
1614
1617
|
}
|
|
1615
|
-
let
|
|
1616
|
-
function
|
|
1617
|
-
|
|
1618
|
+
let F = null, q = 0, J = null;
|
|
1619
|
+
function Ni(e) {
|
|
1620
|
+
J = e;
|
|
1618
1621
|
}
|
|
1619
|
-
let
|
|
1620
|
-
function
|
|
1621
|
-
|
|
1622
|
+
let Gr = 1, Ue = 0, Qe = Ue;
|
|
1623
|
+
function er(e) {
|
|
1624
|
+
Qe = e;
|
|
1622
1625
|
}
|
|
1623
|
-
function
|
|
1624
|
-
return ++
|
|
1626
|
+
function Jr() {
|
|
1627
|
+
return ++Gr;
|
|
1625
1628
|
}
|
|
1626
|
-
function
|
|
1629
|
+
function zt(e) {
|
|
1627
1630
|
var t = e.f;
|
|
1628
|
-
if ((t &
|
|
1631
|
+
if ((t & L) !== 0)
|
|
1629
1632
|
return !0;
|
|
1630
|
-
if (t & P && (e.f &= ~
|
|
1633
|
+
if (t & P && (e.f &= ~et), (t & ue) !== 0) {
|
|
1631
1634
|
for (var n = (
|
|
1632
1635
|
/** @type {Value[]} */
|
|
1633
1636
|
e.deps
|
|
1634
1637
|
), r = n.length, s = 0; s < r; s++) {
|
|
1635
1638
|
var i = n[s];
|
|
1636
|
-
if (
|
|
1639
|
+
if (zt(
|
|
1637
1640
|
/** @type {Derived} */
|
|
1638
1641
|
i
|
|
1639
|
-
) &&
|
|
1642
|
+
) && Rr(
|
|
1640
1643
|
/** @type {Derived} */
|
|
1641
1644
|
i
|
|
1642
1645
|
), i.wv > e.wv)
|
|
@@ -1644,81 +1647,81 @@ function Lt(e) {
|
|
|
1644
1647
|
}
|
|
1645
1648
|
(t & Q) !== 0 && // During time traveling we don't want to reset the status so that
|
|
1646
1649
|
// traversal of the graph in the other batches still happens
|
|
1647
|
-
|
|
1650
|
+
oe === null && R(e, D);
|
|
1648
1651
|
}
|
|
1649
1652
|
return !1;
|
|
1650
1653
|
}
|
|
1651
|
-
function
|
|
1654
|
+
function Zr(e, t, n = !0) {
|
|
1652
1655
|
var r = e.reactions;
|
|
1653
|
-
if (r !== null && !(te !== null &&
|
|
1656
|
+
if (r !== null && !(te !== null && bt.call(te, e)))
|
|
1654
1657
|
for (var s = 0; s < r.length; s++) {
|
|
1655
1658
|
var i = r[s];
|
|
1656
|
-
(i.f & P) !== 0 ?
|
|
1659
|
+
(i.f & P) !== 0 ? Zr(
|
|
1657
1660
|
/** @type {Derived} */
|
|
1658
1661
|
i,
|
|
1659
1662
|
t,
|
|
1660
1663
|
!1
|
|
1661
|
-
) : t === i && (n ? R(i,
|
|
1664
|
+
) : t === i && (n ? R(i, L) : (i.f & D) !== 0 && R(i, ue), pe(
|
|
1662
1665
|
/** @type {Effect} */
|
|
1663
1666
|
i
|
|
1664
1667
|
));
|
|
1665
1668
|
}
|
|
1666
1669
|
}
|
|
1667
|
-
function
|
|
1668
|
-
var
|
|
1669
|
-
var t =
|
|
1670
|
-
|
|
1671
|
-
null, q = 0,
|
|
1672
|
-
e.ac.abort(
|
|
1670
|
+
function Qr(e) {
|
|
1671
|
+
var $;
|
|
1672
|
+
var t = F, n = q, r = J, s = b, i = te, o = W, u = ae, a = Qe, f = e.f;
|
|
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 && (Hr(() => {
|
|
1675
|
+
e.ac.abort(Ye);
|
|
1673
1676
|
}), e.ac = null);
|
|
1674
1677
|
try {
|
|
1675
|
-
e.f |=
|
|
1678
|
+
e.f |= _n;
|
|
1676
1679
|
var c = (
|
|
1677
1680
|
/** @type {Function} */
|
|
1678
1681
|
e.fn
|
|
1679
|
-
),
|
|
1680
|
-
e.f |=
|
|
1681
|
-
var
|
|
1682
|
-
if (
|
|
1683
|
-
var
|
|
1684
|
-
if (
|
|
1685
|
-
for (
|
|
1686
|
-
|
|
1682
|
+
), h = c();
|
|
1683
|
+
e.f |= tt;
|
|
1684
|
+
var v = e.deps, g = T?.is_fork;
|
|
1685
|
+
if (F !== null) {
|
|
1686
|
+
var d;
|
|
1687
|
+
if (g || Nt(e, q), v !== null && q > 0)
|
|
1688
|
+
for (v.length = q + F.length, d = 0; d < F.length; d++)
|
|
1689
|
+
v[q + d] = F[d];
|
|
1687
1690
|
else
|
|
1688
|
-
e.deps =
|
|
1689
|
-
if (
|
|
1690
|
-
for (
|
|
1691
|
-
((
|
|
1692
|
-
} else !
|
|
1693
|
-
if (
|
|
1694
|
-
for (
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1691
|
+
e.deps = v = F;
|
|
1692
|
+
if (Ln() && (e.f & Q) !== 0)
|
|
1693
|
+
for (d = q; d < v.length; d++)
|
|
1694
|
+
(($ = v[d]).reactions ?? ($.reactions = [])).push(e);
|
|
1695
|
+
} else !g && v !== null && q < v.length && (Nt(e, q), v.length = q);
|
|
1696
|
+
if (wr() && J !== null && !ae && v !== null && (e.f & (P | ue | L)) === 0)
|
|
1697
|
+
for (d = 0; d < /** @type {Source[]} */
|
|
1698
|
+
J.length; d++)
|
|
1699
|
+
Zr(
|
|
1700
|
+
J[d],
|
|
1698
1701
|
/** @type {Effect} */
|
|
1699
1702
|
e
|
|
1700
1703
|
);
|
|
1701
1704
|
if (s !== null && s !== e) {
|
|
1702
|
-
if (
|
|
1703
|
-
for (let
|
|
1704
|
-
s.deps[
|
|
1705
|
+
if (Ue++, s.deps !== null)
|
|
1706
|
+
for (let _ = 0; _ < n; _ += 1)
|
|
1707
|
+
s.deps[_].rv = Ue;
|
|
1705
1708
|
if (t !== null)
|
|
1706
|
-
for (const
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1709
|
+
for (const _ of t)
|
|
1710
|
+
_.rv = Ue;
|
|
1711
|
+
J !== null && (r === null ? r = J : r.push(.../** @type {Source[]} */
|
|
1712
|
+
J));
|
|
1710
1713
|
}
|
|
1711
|
-
return (e.f &
|
|
1712
|
-
} catch (
|
|
1713
|
-
return
|
|
1714
|
+
return (e.f & De) !== 0 && (e.f ^= De), h;
|
|
1715
|
+
} catch (_) {
|
|
1716
|
+
return yr(_);
|
|
1714
1717
|
} finally {
|
|
1715
|
-
e.f ^=
|
|
1718
|
+
e.f ^= _n, F = t, q = n, J = r, b = s, te = i, xt(o), ae = u, Qe = a;
|
|
1716
1719
|
}
|
|
1717
1720
|
}
|
|
1718
|
-
function
|
|
1721
|
+
function Oi(e, t) {
|
|
1719
1722
|
let n = t.reactions;
|
|
1720
1723
|
if (n !== null) {
|
|
1721
|
-
var r =
|
|
1724
|
+
var r = As.call(n, e);
|
|
1722
1725
|
if (r !== -1) {
|
|
1723
1726
|
var s = n.length - 1;
|
|
1724
1727
|
s === 0 ? n = t.reactions = null : (n[r] = n[s], n.pop());
|
|
@@ -1727,114 +1730,114 @@ function Ci(e, t) {
|
|
|
1727
1730
|
if (n === null && (t.f & P) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
1728
1731
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
1729
1732
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
1730
|
-
(
|
|
1733
|
+
(F === null || !bt.call(F, t))) {
|
|
1731
1734
|
var i = (
|
|
1732
1735
|
/** @type {Derived} */
|
|
1733
1736
|
t
|
|
1734
1737
|
);
|
|
1735
|
-
(i.f & Q) !== 0 && (i.f ^= Q, i.f &= ~
|
|
1738
|
+
(i.f & Q) !== 0 && (i.f ^= Q, i.f &= ~et), Mn(i), mi(i), Nt(i, 0);
|
|
1736
1739
|
}
|
|
1737
1740
|
}
|
|
1738
|
-
function
|
|
1741
|
+
function Nt(e, t) {
|
|
1739
1742
|
var n = e.deps;
|
|
1740
1743
|
if (n !== null)
|
|
1741
1744
|
for (var r = t; r < n.length; r++)
|
|
1742
|
-
|
|
1745
|
+
Oi(e, n[r]);
|
|
1743
1746
|
}
|
|
1744
|
-
function
|
|
1747
|
+
function St(e) {
|
|
1745
1748
|
var t = e.f;
|
|
1746
|
-
if ((t &
|
|
1749
|
+
if ((t & ke) === 0) {
|
|
1747
1750
|
R(e, D);
|
|
1748
|
-
var n = y, r =
|
|
1749
|
-
y = e,
|
|
1751
|
+
var n = y, r = qt;
|
|
1752
|
+
y = e, qt = !0;
|
|
1750
1753
|
try {
|
|
1751
|
-
(t & (
|
|
1752
|
-
var s =
|
|
1753
|
-
e.teardown = typeof s == "function" ? s : null, e.wv =
|
|
1754
|
+
(t & (He | kn)) !== 0 ? Ai(e) : Pn(e), Vr(e);
|
|
1755
|
+
var s = Qr(e);
|
|
1756
|
+
e.teardown = typeof s == "function" ? s : null, e.wv = Gr;
|
|
1754
1757
|
var i;
|
|
1755
|
-
|
|
1758
|
+
hn && ri && (e.f & L) !== 0 && e.deps;
|
|
1756
1759
|
} finally {
|
|
1757
|
-
|
|
1760
|
+
qt = r, y = n;
|
|
1758
1761
|
}
|
|
1759
1762
|
}
|
|
1760
1763
|
}
|
|
1761
|
-
function
|
|
1764
|
+
function x(e) {
|
|
1762
1765
|
var t = e.f, n = (t & P) !== 0;
|
|
1763
|
-
if (b !== null && !
|
|
1764
|
-
var r = y !== null && (y.f &
|
|
1765
|
-
if (!r && (te === null || !
|
|
1766
|
+
if (b !== null && !ae) {
|
|
1767
|
+
var r = y !== null && (y.f & ke) !== 0;
|
|
1768
|
+
if (!r && (te === null || !bt.call(te, e))) {
|
|
1766
1769
|
var s = b.deps;
|
|
1767
|
-
if ((b.f &
|
|
1768
|
-
e.rv <
|
|
1770
|
+
if ((b.f & _n) !== 0)
|
|
1771
|
+
e.rv < Ue && (e.rv = Ue, F === null && s !== null && s[q] === e ? q++ : F === null ? F = [e] : F.push(e));
|
|
1769
1772
|
else {
|
|
1770
1773
|
(b.deps ?? (b.deps = [])).push(e);
|
|
1771
1774
|
var i = e.reactions;
|
|
1772
|
-
i === null ? e.reactions = [b] :
|
|
1775
|
+
i === null ? e.reactions = [b] : bt.call(i, b) || i.push(b);
|
|
1773
1776
|
}
|
|
1774
1777
|
}
|
|
1775
1778
|
}
|
|
1776
|
-
if (
|
|
1777
|
-
return
|
|
1779
|
+
if (je && Le.has(e))
|
|
1780
|
+
return Le.get(e);
|
|
1778
1781
|
if (n) {
|
|
1779
1782
|
var o = (
|
|
1780
1783
|
/** @type {Derived} */
|
|
1781
1784
|
e
|
|
1782
1785
|
);
|
|
1783
|
-
if (
|
|
1786
|
+
if (je) {
|
|
1784
1787
|
var u = o.v;
|
|
1785
|
-
return ((o.f & D) === 0 && o.reactions !== null ||
|
|
1788
|
+
return ((o.f & D) === 0 && o.reactions !== null || ts(o)) && (u = Nn(o)), Le.set(o, u), u;
|
|
1786
1789
|
}
|
|
1787
|
-
var
|
|
1788
|
-
|
|
1790
|
+
var a = (o.f & Q) === 0 && !ae && b !== null && (qt || (b.f & Q) !== 0), f = (o.f & tt) === 0;
|
|
1791
|
+
zt(o) && (a && (o.f |= Q), Rr(o)), a && !f && (Nr(o), es(o));
|
|
1789
1792
|
}
|
|
1790
|
-
if (
|
|
1791
|
-
return
|
|
1792
|
-
if ((e.f &
|
|
1793
|
+
if (oe?.has(e))
|
|
1794
|
+
return oe.get(e);
|
|
1795
|
+
if ((e.f & De) !== 0)
|
|
1793
1796
|
throw e.v;
|
|
1794
1797
|
return e.v;
|
|
1795
1798
|
}
|
|
1796
|
-
function
|
|
1799
|
+
function es(e) {
|
|
1797
1800
|
if (e.f |= Q, e.deps !== null)
|
|
1798
1801
|
for (const t of e.deps)
|
|
1799
|
-
(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 && (Nr(
|
|
1800
1803
|
/** @type {Derived} */
|
|
1801
1804
|
t
|
|
1802
|
-
),
|
|
1805
|
+
), es(
|
|
1803
1806
|
/** @type {Derived} */
|
|
1804
1807
|
t
|
|
1805
1808
|
));
|
|
1806
1809
|
}
|
|
1807
|
-
function
|
|
1808
|
-
if (e.v ===
|
|
1810
|
+
function ts(e) {
|
|
1811
|
+
if (e.v === O) return !0;
|
|
1809
1812
|
if (e.deps === null) return !1;
|
|
1810
1813
|
for (const t of e.deps)
|
|
1811
|
-
if (
|
|
1814
|
+
if (Le.has(t) || (t.f & P) !== 0 && ts(
|
|
1812
1815
|
/** @type {Derived} */
|
|
1813
1816
|
t
|
|
1814
1817
|
))
|
|
1815
1818
|
return !0;
|
|
1816
1819
|
return !1;
|
|
1817
1820
|
}
|
|
1818
|
-
function
|
|
1819
|
-
var t =
|
|
1821
|
+
function ns(e) {
|
|
1822
|
+
var t = ae;
|
|
1820
1823
|
try {
|
|
1821
|
-
return
|
|
1824
|
+
return ae = !0, e();
|
|
1822
1825
|
} finally {
|
|
1823
|
-
|
|
1826
|
+
ae = t;
|
|
1824
1827
|
}
|
|
1825
1828
|
}
|
|
1826
|
-
const
|
|
1827
|
-
function
|
|
1828
|
-
(t[
|
|
1829
|
+
const Xe = /* @__PURE__ */ Symbol("events"), rs = /* @__PURE__ */ new Set(), Cn = /* @__PURE__ */ new Set();
|
|
1830
|
+
function Jt(e, t, n) {
|
|
1831
|
+
(t[Xe] ?? (t[Xe] = {}))[e] = n;
|
|
1829
1832
|
}
|
|
1830
|
-
function
|
|
1833
|
+
function zn(e) {
|
|
1831
1834
|
for (var t = 0; t < e.length; t++)
|
|
1832
|
-
|
|
1833
|
-
for (var n of
|
|
1835
|
+
rs.add(e[t]);
|
|
1836
|
+
for (var n of Cn)
|
|
1834
1837
|
n(e);
|
|
1835
1838
|
}
|
|
1836
|
-
let
|
|
1837
|
-
function
|
|
1839
|
+
let tr = null;
|
|
1840
|
+
function nr(e) {
|
|
1838
1841
|
var t = this, n = (
|
|
1839
1842
|
/** @type {Node} */
|
|
1840
1843
|
t.ownerDocument
|
|
@@ -1842,77 +1845,77 @@ function Qn(e) {
|
|
|
1842
1845
|
/** @type {null | Element} */
|
|
1843
1846
|
s[0] || e.target
|
|
1844
1847
|
);
|
|
1845
|
-
|
|
1846
|
-
var o = 0, u =
|
|
1848
|
+
tr = e;
|
|
1849
|
+
var o = 0, u = tr === e && e[Xe];
|
|
1847
1850
|
if (u) {
|
|
1848
|
-
var
|
|
1849
|
-
if (
|
|
1851
|
+
var a = s.indexOf(u);
|
|
1852
|
+
if (a !== -1 && (t === document || t === /** @type {any} */
|
|
1850
1853
|
window)) {
|
|
1851
|
-
e[
|
|
1854
|
+
e[Xe] = t;
|
|
1852
1855
|
return;
|
|
1853
1856
|
}
|
|
1854
1857
|
var f = s.indexOf(t);
|
|
1855
1858
|
if (f === -1)
|
|
1856
1859
|
return;
|
|
1857
|
-
|
|
1860
|
+
a <= f && (o = a);
|
|
1858
1861
|
}
|
|
1859
1862
|
if (i = /** @type {Element} */
|
|
1860
1863
|
s[o] || e.target, i !== t) {
|
|
1861
|
-
|
|
1864
|
+
Kt(e, "currentTarget", {
|
|
1862
1865
|
configurable: !0,
|
|
1863
1866
|
get() {
|
|
1864
1867
|
return i || n;
|
|
1865
1868
|
}
|
|
1866
1869
|
});
|
|
1867
|
-
var c = b,
|
|
1870
|
+
var c = b, h = y;
|
|
1868
1871
|
ne(null), me(null);
|
|
1869
1872
|
try {
|
|
1870
|
-
for (var
|
|
1871
|
-
var
|
|
1873
|
+
for (var v, g = []; i !== null; ) {
|
|
1874
|
+
var d = i.assignedSlot || i.parentNode || /** @type {any} */
|
|
1872
1875
|
i.host || null;
|
|
1873
1876
|
try {
|
|
1874
|
-
var
|
|
1875
|
-
|
|
1877
|
+
var $ = i[Xe]?.[r];
|
|
1878
|
+
$ != null && (!/** @type {any} */
|
|
1876
1879
|
i.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
1877
1880
|
// -> the target could not have been disabled because it emits the event in the first place
|
|
1878
|
-
e.target === i) &&
|
|
1879
|
-
} catch (
|
|
1880
|
-
|
|
1881
|
+
e.target === i) && $.call(i, e);
|
|
1882
|
+
} catch (_) {
|
|
1883
|
+
v ? g.push(_) : v = _;
|
|
1881
1884
|
}
|
|
1882
|
-
if (e.cancelBubble ||
|
|
1885
|
+
if (e.cancelBubble || d === t || d === null)
|
|
1883
1886
|
break;
|
|
1884
|
-
i =
|
|
1887
|
+
i = d;
|
|
1885
1888
|
}
|
|
1886
|
-
if (
|
|
1887
|
-
for (let
|
|
1889
|
+
if (v) {
|
|
1890
|
+
for (let _ of g)
|
|
1888
1891
|
queueMicrotask(() => {
|
|
1889
|
-
throw
|
|
1892
|
+
throw _;
|
|
1890
1893
|
});
|
|
1891
|
-
throw
|
|
1894
|
+
throw v;
|
|
1892
1895
|
}
|
|
1893
1896
|
} finally {
|
|
1894
|
-
e[
|
|
1897
|
+
e[Xe] = t, delete e.currentTarget, ne(c), me(h);
|
|
1895
1898
|
}
|
|
1896
1899
|
}
|
|
1897
1900
|
}
|
|
1898
|
-
const
|
|
1901
|
+
const Di = (
|
|
1899
1902
|
// We gotta write it like this because after downleveling the pure comment may end up in the wrong location
|
|
1900
1903
|
globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
|
|
1901
1904
|
/** @param {string} html */
|
|
1902
1905
|
createHTML: (e) => e
|
|
1903
1906
|
})
|
|
1904
1907
|
);
|
|
1905
|
-
function
|
|
1908
|
+
function Li(e) {
|
|
1906
1909
|
return (
|
|
1907
1910
|
/** @type {string} */
|
|
1908
|
-
|
|
1911
|
+
Di?.createHTML(e) ?? e
|
|
1909
1912
|
);
|
|
1910
1913
|
}
|
|
1911
|
-
function
|
|
1912
|
-
var t =
|
|
1913
|
-
return t.innerHTML =
|
|
1914
|
+
function ss(e) {
|
|
1915
|
+
var t = On("template");
|
|
1916
|
+
return t.innerHTML = Li(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1914
1917
|
}
|
|
1915
|
-
function
|
|
1918
|
+
function ft(e, t) {
|
|
1916
1919
|
var n = (
|
|
1917
1920
|
/** @type {Effect} */
|
|
1918
1921
|
y
|
|
@@ -1920,66 +1923,66 @@ function ct(e, t) {
|
|
|
1920
1923
|
n.nodes === null && (n.nodes = { start: e, end: t, a: null, t: null });
|
|
1921
1924
|
}
|
|
1922
1925
|
// @__NO_SIDE_EFFECTS__
|
|
1923
|
-
function
|
|
1924
|
-
var n = (t &
|
|
1926
|
+
function rt(e, t) {
|
|
1927
|
+
var n = (t & ks) !== 0, r = (t & Ts) !== 0, s, i = !e.startsWith("<!>");
|
|
1925
1928
|
return () => {
|
|
1926
|
-
if (
|
|
1927
|
-
return
|
|
1928
|
-
s === void 0 && (s =
|
|
1929
|
-
/* @__PURE__ */
|
|
1929
|
+
if (C)
|
|
1930
|
+
return ft(E, null), E;
|
|
1931
|
+
s === void 0 && (s = ss(i ? e : "<!>" + e), n || (s = /** @type {TemplateNode} */
|
|
1932
|
+
/* @__PURE__ */ ze(s)));
|
|
1930
1933
|
var o = (
|
|
1931
1934
|
/** @type {TemplateNode} */
|
|
1932
|
-
r ||
|
|
1935
|
+
r || Lr ? document.importNode(s, !0) : s.cloneNode(!0)
|
|
1933
1936
|
);
|
|
1934
1937
|
if (n) {
|
|
1935
1938
|
var u = (
|
|
1936
1939
|
/** @type {TemplateNode} */
|
|
1937
|
-
/* @__PURE__ */
|
|
1938
|
-
),
|
|
1940
|
+
/* @__PURE__ */ ze(o)
|
|
1941
|
+
), a = (
|
|
1939
1942
|
/** @type {TemplateNode} */
|
|
1940
1943
|
o.lastChild
|
|
1941
1944
|
);
|
|
1942
|
-
|
|
1945
|
+
ft(u, a);
|
|
1943
1946
|
} else
|
|
1944
|
-
|
|
1947
|
+
ft(o, o);
|
|
1945
1948
|
return o;
|
|
1946
1949
|
};
|
|
1947
1950
|
}
|
|
1948
1951
|
// @__NO_SIDE_EFFECTS__
|
|
1949
|
-
function
|
|
1952
|
+
function Pi(e, t, n = "svg") {
|
|
1950
1953
|
var r = !e.startsWith("<!>"), s = `<${n}>${r ? e : "<!>" + e}</${n}>`, i;
|
|
1951
1954
|
return () => {
|
|
1952
|
-
if (
|
|
1953
|
-
return
|
|
1955
|
+
if (C)
|
|
1956
|
+
return ft(E, null), E;
|
|
1954
1957
|
if (!i) {
|
|
1955
1958
|
var o = (
|
|
1956
1959
|
/** @type {DocumentFragment} */
|
|
1957
|
-
|
|
1960
|
+
ss(s)
|
|
1958
1961
|
), u = (
|
|
1959
1962
|
/** @type {Element} */
|
|
1960
|
-
/* @__PURE__ */
|
|
1963
|
+
/* @__PURE__ */ ze(o)
|
|
1961
1964
|
);
|
|
1962
1965
|
i = /** @type {Element} */
|
|
1963
|
-
/* @__PURE__ */
|
|
1966
|
+
/* @__PURE__ */ ze(u);
|
|
1964
1967
|
}
|
|
1965
|
-
var
|
|
1968
|
+
var a = (
|
|
1966
1969
|
/** @type {TemplateNode} */
|
|
1967
1970
|
i.cloneNode(!0)
|
|
1968
1971
|
);
|
|
1969
|
-
return
|
|
1972
|
+
return ft(a, a), a;
|
|
1970
1973
|
};
|
|
1971
1974
|
}
|
|
1972
1975
|
// @__NO_SIDE_EFFECTS__
|
|
1973
|
-
function
|
|
1974
|
-
return /* @__PURE__ */
|
|
1976
|
+
function is(e, t) {
|
|
1977
|
+
return /* @__PURE__ */ Pi(e, t, "svg");
|
|
1975
1978
|
}
|
|
1976
1979
|
function _e(e, t) {
|
|
1977
|
-
if (
|
|
1980
|
+
if (C) {
|
|
1978
1981
|
var n = (
|
|
1979
1982
|
/** @type {Effect & { nodes: EffectNodes }} */
|
|
1980
1983
|
y
|
|
1981
1984
|
);
|
|
1982
|
-
((n.f &
|
|
1985
|
+
((n.f & tt) === 0 || n.nodes.end === null) && (n.nodes.end = E), An();
|
|
1983
1986
|
return;
|
|
1984
1987
|
}
|
|
1985
1988
|
e !== null && e.before(
|
|
@@ -1987,119 +1990,119 @@ function _e(e, t) {
|
|
|
1987
1990
|
t
|
|
1988
1991
|
);
|
|
1989
1992
|
}
|
|
1990
|
-
const
|
|
1991
|
-
function
|
|
1992
|
-
return
|
|
1993
|
+
const zi = ["touchstart", "touchmove"];
|
|
1994
|
+
function ji(e) {
|
|
1995
|
+
return zi.includes(e);
|
|
1993
1996
|
}
|
|
1994
|
-
function
|
|
1997
|
+
function Hi(e, t) {
|
|
1995
1998
|
var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1996
1999
|
n !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = n, e.nodeValue = `${n}`);
|
|
1997
2000
|
}
|
|
1998
|
-
function
|
|
1999
|
-
return
|
|
2001
|
+
function os(e, t) {
|
|
2002
|
+
return ls(e, t);
|
|
2000
2003
|
}
|
|
2001
|
-
function
|
|
2004
|
+
function Fi(e, t) {
|
|
2002
2005
|
En(), t.intro = t.intro ?? !1;
|
|
2003
|
-
const n = t.target, r =
|
|
2006
|
+
const n = t.target, r = C, s = E;
|
|
2004
2007
|
try {
|
|
2005
|
-
for (var i = /* @__PURE__ */
|
|
2006
|
-
i.data !==
|
|
2007
|
-
i = /* @__PURE__ */
|
|
2008
|
+
for (var i = /* @__PURE__ */ ze(n); i && (i.nodeType !== rn || /** @type {Comment} */
|
|
2009
|
+
i.data !== ur); )
|
|
2010
|
+
i = /* @__PURE__ */ Ae(i);
|
|
2008
2011
|
if (!i)
|
|
2009
|
-
throw
|
|
2010
|
-
|
|
2012
|
+
throw wt;
|
|
2013
|
+
ot(!0), fe(
|
|
2011
2014
|
/** @type {Comment} */
|
|
2012
2015
|
i
|
|
2013
2016
|
);
|
|
2014
|
-
const o =
|
|
2015
|
-
return
|
|
2017
|
+
const o = ls(e, { ...t, anchor: i });
|
|
2018
|
+
return ot(!1), /** @type {Exports} */
|
|
2016
2019
|
o;
|
|
2017
2020
|
} catch (o) {
|
|
2018
2021
|
if (o instanceof Error && o.message.split(`
|
|
2019
2022
|
`).some((u) => u.startsWith("https://svelte.dev/e/")))
|
|
2020
2023
|
throw o;
|
|
2021
|
-
return o !==
|
|
2024
|
+
return o !== wt && console.warn("Failed to hydrate: ", o), t.recover === !1 && Us(), En(), yi(n), ot(!1), os(e, t);
|
|
2022
2025
|
} finally {
|
|
2023
|
-
|
|
2026
|
+
ot(r), fe(s);
|
|
2024
2027
|
}
|
|
2025
2028
|
}
|
|
2026
|
-
const
|
|
2027
|
-
function
|
|
2029
|
+
const Wt = /* @__PURE__ */ new Map();
|
|
2030
|
+
function ls(e, { target: t, anchor: n, props: r = {}, events: s, context: i, intro: o = !0, transformError: u }) {
|
|
2028
2031
|
En();
|
|
2029
|
-
var
|
|
2030
|
-
var c = n ?? t.appendChild(
|
|
2031
|
-
|
|
2032
|
+
var a = void 0, f = Ii(() => {
|
|
2033
|
+
var c = n ?? t.appendChild(Pe());
|
|
2034
|
+
fi(
|
|
2032
2035
|
/** @type {TemplateNode} */
|
|
2033
2036
|
c,
|
|
2034
2037
|
{
|
|
2035
2038
|
pending: () => {
|
|
2036
2039
|
}
|
|
2037
2040
|
},
|
|
2038
|
-
(
|
|
2039
|
-
|
|
2040
|
-
var
|
|
2041
|
+
(g) => {
|
|
2042
|
+
on({});
|
|
2043
|
+
var d = (
|
|
2041
2044
|
/** @type {ComponentContext} */
|
|
2042
|
-
|
|
2045
|
+
W
|
|
2043
2046
|
);
|
|
2044
|
-
if (i && (
|
|
2047
|
+
if (i && (d.c = i), s && (r.$$events = s), C && ft(
|
|
2045
2048
|
/** @type {TemplateNode} */
|
|
2046
|
-
|
|
2049
|
+
g,
|
|
2047
2050
|
null
|
|
2048
|
-
),
|
|
2049
|
-
|
|
2050
|
-
throw
|
|
2051
|
-
|
|
2051
|
+
), a = e(g, r) || {}, C && (y.nodes.end = E, E === null || E.nodeType !== rn || /** @type {Comment} */
|
|
2052
|
+
E.data !== cr))
|
|
2053
|
+
throw sn(), wt;
|
|
2054
|
+
ln();
|
|
2052
2055
|
},
|
|
2053
2056
|
u
|
|
2054
2057
|
);
|
|
2055
|
-
var
|
|
2056
|
-
for (var
|
|
2057
|
-
var
|
|
2058
|
-
if (!
|
|
2059
|
-
|
|
2060
|
-
var
|
|
2058
|
+
var h = /* @__PURE__ */ new Set(), v = (g) => {
|
|
2059
|
+
for (var d = 0; d < g.length; d++) {
|
|
2060
|
+
var $ = g[d];
|
|
2061
|
+
if (!h.has($)) {
|
|
2062
|
+
h.add($);
|
|
2063
|
+
var _ = ji($);
|
|
2061
2064
|
for (const G of [t, document]) {
|
|
2062
|
-
var S =
|
|
2063
|
-
S === void 0 && (S = /* @__PURE__ */ new Map(),
|
|
2064
|
-
var Y = S.get(
|
|
2065
|
-
Y === void 0 ? (G.addEventListener(
|
|
2065
|
+
var S = Wt.get(G);
|
|
2066
|
+
S === void 0 && (S = /* @__PURE__ */ new Map(), Wt.set(G, S));
|
|
2067
|
+
var Y = S.get($);
|
|
2068
|
+
Y === void 0 ? (G.addEventListener($, nr, { passive: _ }), S.set($, 1)) : S.set($, Y + 1);
|
|
2066
2069
|
}
|
|
2067
2070
|
}
|
|
2068
2071
|
}
|
|
2069
2072
|
};
|
|
2070
|
-
return
|
|
2071
|
-
for (var
|
|
2072
|
-
for (const
|
|
2073
|
-
var
|
|
2073
|
+
return v(Ms(rs)), Cn.add(v), () => {
|
|
2074
|
+
for (var g of h)
|
|
2075
|
+
for (const _ of [t, document]) {
|
|
2076
|
+
var d = (
|
|
2074
2077
|
/** @type {Map<string, number>} */
|
|
2075
|
-
|
|
2076
|
-
),
|
|
2078
|
+
Wt.get(_)
|
|
2079
|
+
), $ = (
|
|
2077
2080
|
/** @type {number} */
|
|
2078
|
-
|
|
2081
|
+
d.get(g)
|
|
2079
2082
|
);
|
|
2080
|
-
|
|
2083
|
+
--$ == 0 ? (_.removeEventListener(g, nr), d.delete(g), d.size === 0 && Wt.delete(_)) : d.set(g, $);
|
|
2081
2084
|
}
|
|
2082
|
-
|
|
2085
|
+
Cn.delete(v), c !== n && c.parentNode?.removeChild(c);
|
|
2083
2086
|
};
|
|
2084
2087
|
});
|
|
2085
|
-
return
|
|
2088
|
+
return In.set(a, f), a;
|
|
2086
2089
|
}
|
|
2087
|
-
let
|
|
2088
|
-
function
|
|
2089
|
-
const n =
|
|
2090
|
-
return n ? (
|
|
2090
|
+
let In = /* @__PURE__ */ new WeakMap();
|
|
2091
|
+
function Bi(e, t) {
|
|
2092
|
+
const n = In.get(e);
|
|
2093
|
+
return n ? (In.delete(e), n(t)) : Promise.resolve();
|
|
2091
2094
|
}
|
|
2092
|
-
var
|
|
2093
|
-
class
|
|
2095
|
+
var ie, ve, K, Ze, Dt, Lt, tn;
|
|
2096
|
+
class Wi {
|
|
2094
2097
|
/**
|
|
2095
2098
|
* @param {TemplateNode} anchor
|
|
2096
2099
|
* @param {boolean} transition
|
|
2097
2100
|
*/
|
|
2098
2101
|
constructor(t, n = !0) {
|
|
2099
2102
|
/** @type {TemplateNode} */
|
|
2100
|
-
|
|
2103
|
+
I(this, "anchor");
|
|
2101
2104
|
/** @type {Map<Batch, Key>} */
|
|
2102
|
-
w(this,
|
|
2105
|
+
w(this, ie, /* @__PURE__ */ new Map());
|
|
2103
2106
|
/**
|
|
2104
2107
|
* Map of keys to effects that are currently rendered in the DOM.
|
|
2105
2108
|
* These effects are visible and actively part of the document tree.
|
|
@@ -2120,12 +2123,12 @@ class Pi {
|
|
|
2120
2123
|
* in the DOM, because their insertion is deferred.
|
|
2121
2124
|
* @type {Map<Key, Branch>}
|
|
2122
2125
|
*/
|
|
2123
|
-
w(this,
|
|
2126
|
+
w(this, K, /* @__PURE__ */ new Map());
|
|
2124
2127
|
/**
|
|
2125
2128
|
* Keys of effects that are currently outroing
|
|
2126
2129
|
* @type {Set<Key>}
|
|
2127
2130
|
*/
|
|
2128
|
-
w(this,
|
|
2131
|
+
w(this, Ze, /* @__PURE__ */ new Set());
|
|
2129
2132
|
/**
|
|
2130
2133
|
* Whether to pause (i.e. outro) on change, or destroy immediately.
|
|
2131
2134
|
* This is necessary for `<svelte:element>`
|
|
@@ -2134,48 +2137,48 @@ class Pi {
|
|
|
2134
2137
|
/**
|
|
2135
2138
|
* @param {Batch} batch
|
|
2136
2139
|
*/
|
|
2137
|
-
w(this,
|
|
2138
|
-
if (
|
|
2140
|
+
w(this, Lt, (t) => {
|
|
2141
|
+
if (l(this, ie).has(t)) {
|
|
2139
2142
|
var n = (
|
|
2140
2143
|
/** @type {Key} */
|
|
2141
|
-
|
|
2142
|
-
), r =
|
|
2144
|
+
l(this, ie).get(t)
|
|
2145
|
+
), r = l(this, ve).get(n);
|
|
2143
2146
|
if (r)
|
|
2144
|
-
|
|
2147
|
+
Ri(r), l(this, Ze).delete(n);
|
|
2145
2148
|
else {
|
|
2146
|
-
var s =
|
|
2147
|
-
s && (s.effect.f & ee) === 0 && (
|
|
2149
|
+
var s = l(this, K).get(n);
|
|
2150
|
+
s && (s.effect.f & ee) === 0 && (l(this, ve).set(n, s.effect), l(this, K).delete(n), s.fragment.lastChild.remove(), this.anchor.before(s.fragment), r = s.effect);
|
|
2148
2151
|
}
|
|
2149
|
-
for (const [i, o] of
|
|
2150
|
-
if (
|
|
2152
|
+
for (const [i, o] of l(this, ie)) {
|
|
2153
|
+
if (l(this, ie).delete(i), i === t)
|
|
2151
2154
|
break;
|
|
2152
|
-
const u =
|
|
2153
|
-
u && (
|
|
2155
|
+
const u = l(this, K).get(o);
|
|
2156
|
+
u && (B(u.effect), l(this, K).delete(o));
|
|
2154
2157
|
}
|
|
2155
|
-
for (const [i, o] of
|
|
2156
|
-
if (i === n ||
|
|
2158
|
+
for (const [i, o] of l(this, ve)) {
|
|
2159
|
+
if (i === n || l(this, Ze).has(i) || (o.f & ee) !== 0) continue;
|
|
2157
2160
|
const u = () => {
|
|
2158
|
-
if (Array.from(
|
|
2161
|
+
if (Array.from(l(this, ie).values()).includes(i)) {
|
|
2159
2162
|
var f = document.createDocumentFragment();
|
|
2160
|
-
|
|
2163
|
+
Xr(o, f), f.append(Pe()), l(this, K).set(i, { effect: o, fragment: f });
|
|
2161
2164
|
} else
|
|
2162
|
-
|
|
2163
|
-
|
|
2165
|
+
B(o);
|
|
2166
|
+
l(this, Ze).delete(i), l(this, ve).delete(i);
|
|
2164
2167
|
};
|
|
2165
|
-
|
|
2168
|
+
l(this, Dt) || !r ? (l(this, Ze).add(i), Rt(o, u, !1)) : u();
|
|
2166
2169
|
}
|
|
2167
2170
|
}
|
|
2168
2171
|
});
|
|
2169
2172
|
/**
|
|
2170
2173
|
* @param {Batch} batch
|
|
2171
2174
|
*/
|
|
2172
|
-
w(this,
|
|
2173
|
-
|
|
2174
|
-
const n = Array.from(
|
|
2175
|
-
for (const [r, s] of
|
|
2176
|
-
n.includes(r) || (
|
|
2175
|
+
w(this, tn, (t) => {
|
|
2176
|
+
l(this, ie).delete(t);
|
|
2177
|
+
const n = Array.from(l(this, ie).values());
|
|
2178
|
+
for (const [r, s] of l(this, K))
|
|
2179
|
+
n.includes(r) || (B(s.effect), l(this, K).delete(r));
|
|
2177
2180
|
});
|
|
2178
|
-
this.anchor = t,
|
|
2181
|
+
this.anchor = t, m(this, Dt, n);
|
|
2179
2182
|
}
|
|
2180
2183
|
/**
|
|
2181
2184
|
*
|
|
@@ -2185,46 +2188,46 @@ class Pi {
|
|
|
2185
2188
|
ensure(t, n) {
|
|
2186
2189
|
var r = (
|
|
2187
2190
|
/** @type {Batch} */
|
|
2188
|
-
|
|
2189
|
-
), s =
|
|
2190
|
-
if (n && !
|
|
2191
|
+
T
|
|
2192
|
+
), s = $i();
|
|
2193
|
+
if (n && !l(this, ve).has(t) && !l(this, K).has(t))
|
|
2191
2194
|
if (s) {
|
|
2192
|
-
var i = document.createDocumentFragment(), o =
|
|
2193
|
-
i.append(o),
|
|
2194
|
-
effect:
|
|
2195
|
+
var i = document.createDocumentFragment(), o = Pe();
|
|
2196
|
+
i.append(o), l(this, K).set(t, {
|
|
2197
|
+
effect: Ee(() => n(o)),
|
|
2195
2198
|
fragment: i
|
|
2196
2199
|
});
|
|
2197
2200
|
} else
|
|
2198
|
-
|
|
2201
|
+
l(this, ve).set(
|
|
2199
2202
|
t,
|
|
2200
|
-
|
|
2203
|
+
Ee(() => n(this.anchor))
|
|
2201
2204
|
);
|
|
2202
|
-
if (
|
|
2203
|
-
for (const [u,
|
|
2204
|
-
u === t ? r.unskip_effect(
|
|
2205
|
-
for (const [u,
|
|
2206
|
-
u === t ? r.unskip_effect(
|
|
2207
|
-
r.oncommit(
|
|
2205
|
+
if (l(this, ie).set(r, t), s) {
|
|
2206
|
+
for (const [u, a] of l(this, ve))
|
|
2207
|
+
u === t ? r.unskip_effect(a) : r.skip_effect(a);
|
|
2208
|
+
for (const [u, a] of l(this, K))
|
|
2209
|
+
u === t ? r.unskip_effect(a.effect) : r.skip_effect(a.effect);
|
|
2210
|
+
r.oncommit(l(this, Lt)), r.ondiscard(l(this, tn));
|
|
2208
2211
|
} else
|
|
2209
|
-
|
|
2212
|
+
C && (this.anchor = E), l(this, Lt).call(this, r);
|
|
2210
2213
|
}
|
|
2211
2214
|
}
|
|
2212
|
-
|
|
2213
|
-
function
|
|
2214
|
-
|
|
2215
|
-
const t =
|
|
2215
|
+
ie = new WeakMap(), ve = new WeakMap(), K = new WeakMap(), Ze = new WeakMap(), Dt = new WeakMap(), Lt = new WeakMap(), tn = new WeakMap();
|
|
2216
|
+
function Vi(e) {
|
|
2217
|
+
W === null && pr(), Sn(() => {
|
|
2218
|
+
const t = ns(e);
|
|
2216
2219
|
if (typeof t == "function") return (
|
|
2217
2220
|
/** @type {() => void} */
|
|
2218
2221
|
t
|
|
2219
2222
|
);
|
|
2220
2223
|
});
|
|
2221
2224
|
}
|
|
2222
|
-
function
|
|
2225
|
+
function Yi(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
|
|
2223
2226
|
return new CustomEvent(e, { detail: t, bubbles: n, cancelable: r });
|
|
2224
2227
|
}
|
|
2225
|
-
function
|
|
2226
|
-
const e =
|
|
2227
|
-
return e === null &&
|
|
2228
|
+
function qi() {
|
|
2229
|
+
const e = W;
|
|
2230
|
+
return e === null && pr(), (t, n, r) => {
|
|
2228
2231
|
const s = (
|
|
2229
2232
|
/** @type {Record<string, Function | Function[]>} */
|
|
2230
2233
|
e.s.$$events?.[
|
|
@@ -2233,7 +2236,7 @@ function Fi() {
|
|
|
2233
2236
|
]
|
|
2234
2237
|
);
|
|
2235
2238
|
if (s) {
|
|
2236
|
-
const i =
|
|
2239
|
+
const i = hr(s) ? s.slice() : [s], o = Yi(
|
|
2237
2240
|
/** @type {string} */
|
|
2238
2241
|
t,
|
|
2239
2242
|
n,
|
|
@@ -2246,33 +2249,33 @@ function Fi() {
|
|
|
2246
2249
|
return !0;
|
|
2247
2250
|
};
|
|
2248
2251
|
}
|
|
2249
|
-
function
|
|
2252
|
+
function kt(e, t, n = !1) {
|
|
2250
2253
|
var r;
|
|
2251
|
-
|
|
2252
|
-
var s = new
|
|
2253
|
-
function o(u,
|
|
2254
|
-
if (
|
|
2255
|
-
var f =
|
|
2254
|
+
C && (r = E, An());
|
|
2255
|
+
var s = new Wi(e), i = n ? $t : 0;
|
|
2256
|
+
function o(u, a) {
|
|
2257
|
+
if (C) {
|
|
2258
|
+
var f = ei(
|
|
2256
2259
|
/** @type {TemplateNode} */
|
|
2257
2260
|
r
|
|
2258
2261
|
);
|
|
2259
2262
|
if (u !== parseInt(f.substring(1))) {
|
|
2260
|
-
var c =
|
|
2261
|
-
|
|
2263
|
+
var c = gr();
|
|
2264
|
+
fe(c), s.anchor = c, ot(!1), s.ensure(u, a), ot(!0);
|
|
2262
2265
|
return;
|
|
2263
2266
|
}
|
|
2264
2267
|
}
|
|
2265
|
-
s.ensure(u,
|
|
2268
|
+
s.ensure(u, a);
|
|
2266
2269
|
}
|
|
2267
|
-
|
|
2270
|
+
Wr(() => {
|
|
2268
2271
|
var u = !1;
|
|
2269
|
-
t((
|
|
2270
|
-
u = !0, o(f,
|
|
2272
|
+
t((a, f = 0) => {
|
|
2273
|
+
u = !0, o(f, a);
|
|
2271
2274
|
}), u || o(-1, null);
|
|
2272
2275
|
}, i);
|
|
2273
2276
|
}
|
|
2274
|
-
function
|
|
2275
|
-
|
|
2277
|
+
function as(e, t) {
|
|
2278
|
+
ki(() => {
|
|
2276
2279
|
var n = e.getRootNode(), r = (
|
|
2277
2280
|
/** @type {ShadowRoot} */
|
|
2278
2281
|
n.host ? (
|
|
@@ -2285,75 +2288,75 @@ function Hi(e, t) {
|
|
|
2285
2288
|
)
|
|
2286
2289
|
);
|
|
2287
2290
|
if (!r.querySelector("#" + t.hash)) {
|
|
2288
|
-
const s =
|
|
2291
|
+
const s = On("style");
|
|
2289
2292
|
s.id = t.hash, s.textContent = t.code, r.appendChild(s);
|
|
2290
2293
|
}
|
|
2291
2294
|
});
|
|
2292
2295
|
}
|
|
2293
|
-
function
|
|
2296
|
+
function us(e) {
|
|
2294
2297
|
var t, n, r = "";
|
|
2295
2298
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
2296
2299
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
2297
2300
|
var s = e.length;
|
|
2298
|
-
for (t = 0; t < s; t++) e[t] && (n =
|
|
2301
|
+
for (t = 0; t < s; t++) e[t] && (n = us(e[t])) && (r && (r += " "), r += n);
|
|
2299
2302
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
2300
2303
|
return r;
|
|
2301
2304
|
}
|
|
2302
|
-
function
|
|
2303
|
-
for (var e, t, n = 0, r = "", s = arguments.length; n < s; n++) (e = arguments[n]) && (t =
|
|
2305
|
+
function Ui() {
|
|
2306
|
+
for (var e, t, n = 0, r = "", s = arguments.length; n < s; n++) (e = arguments[n]) && (t = us(e)) && (r && (r += " "), r += t);
|
|
2304
2307
|
return r;
|
|
2305
2308
|
}
|
|
2306
|
-
function
|
|
2307
|
-
return typeof e == "object" ?
|
|
2309
|
+
function Zt(e) {
|
|
2310
|
+
return typeof e == "object" ? Ui(e) : e ?? "";
|
|
2308
2311
|
}
|
|
2309
|
-
function
|
|
2312
|
+
function Xi(e, t, n) {
|
|
2310
2313
|
var r = e == null ? "" : "" + e;
|
|
2311
|
-
return r === "" ? null : r;
|
|
2314
|
+
return t && (r = r ? r + " " + t : t), r === "" ? null : r;
|
|
2312
2315
|
}
|
|
2313
|
-
function
|
|
2316
|
+
function Ki(e, t) {
|
|
2314
2317
|
return e == null ? null : String(e);
|
|
2315
2318
|
}
|
|
2316
|
-
function
|
|
2319
|
+
function Qt(e, t, n, r, s, i) {
|
|
2317
2320
|
var o = e.__className;
|
|
2318
|
-
if (
|
|
2319
|
-
var u =
|
|
2320
|
-
(!
|
|
2321
|
+
if (C || o !== n || o === void 0) {
|
|
2322
|
+
var u = Xi(n, r);
|
|
2323
|
+
(!C || u !== e.getAttribute("class")) && (u == null ? e.removeAttribute("class") : t ? e.className = u : e.setAttribute("class", u)), e.__className = n;
|
|
2321
2324
|
}
|
|
2322
2325
|
return i;
|
|
2323
2326
|
}
|
|
2324
|
-
function
|
|
2327
|
+
function rr(e, t, n, r) {
|
|
2325
2328
|
var s = e.__style;
|
|
2326
|
-
if (
|
|
2327
|
-
var i =
|
|
2328
|
-
(!
|
|
2329
|
+
if (C || s !== t) {
|
|
2330
|
+
var i = Ki(t);
|
|
2331
|
+
(!C || i !== e.getAttribute("style")) && (i == null ? e.removeAttribute("style") : e.style.cssText = i), e.__style = t;
|
|
2329
2332
|
}
|
|
2330
2333
|
return r;
|
|
2331
2334
|
}
|
|
2332
|
-
const
|
|
2333
|
-
function
|
|
2334
|
-
var s =
|
|
2335
|
-
|
|
2335
|
+
const Gi = /* @__PURE__ */ Symbol("is custom element"), Ji = /* @__PURE__ */ Symbol("is html"), Zi = Fs ? "link" : "LINK";
|
|
2336
|
+
function sr(e, t, n, r) {
|
|
2337
|
+
var s = Qi(e);
|
|
2338
|
+
C && (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));
|
|
2336
2339
|
}
|
|
2337
|
-
function
|
|
2340
|
+
function Qi(e) {
|
|
2338
2341
|
return (
|
|
2339
2342
|
/** @type {Record<string | symbol, unknown>} **/
|
|
2340
2343
|
// @ts-expect-error
|
|
2341
2344
|
e.__attributes ?? (e.__attributes = {
|
|
2342
|
-
[
|
|
2343
|
-
[
|
|
2345
|
+
[Gi]: e.nodeName.includes("-"),
|
|
2346
|
+
[Ji]: e.namespaceURI === dr
|
|
2344
2347
|
})
|
|
2345
2348
|
);
|
|
2346
2349
|
}
|
|
2347
|
-
var
|
|
2348
|
-
function
|
|
2349
|
-
var t = e.getAttribute("is") || e.nodeName, n =
|
|
2350
|
+
var ir = /* @__PURE__ */ new Map();
|
|
2351
|
+
function eo(e) {
|
|
2352
|
+
var t = e.getAttribute("is") || e.nodeName, n = ir.get(t);
|
|
2350
2353
|
if (n) return n;
|
|
2351
|
-
|
|
2354
|
+
ir.set(t, n = []);
|
|
2352
2355
|
for (var r, s = e, i = Element.prototype; i !== s; ) {
|
|
2353
|
-
r =
|
|
2356
|
+
r = Rs(s);
|
|
2354
2357
|
for (var o in r)
|
|
2355
2358
|
r[o].set && n.push(o);
|
|
2356
|
-
s =
|
|
2359
|
+
s = vr(s);
|
|
2357
2360
|
}
|
|
2358
2361
|
return n;
|
|
2359
2362
|
}
|
|
@@ -2365,34 +2368,34 @@ function ge(e, t, n, r) {
|
|
|
2365
2368
|
r), s), u;
|
|
2366
2369
|
u = /** @type {V} */
|
|
2367
2370
|
e[t], u === void 0 && r !== void 0 && (u = o());
|
|
2368
|
-
var
|
|
2369
|
-
|
|
2370
|
-
var
|
|
2371
|
+
var a;
|
|
2372
|
+
a = () => {
|
|
2373
|
+
var v = (
|
|
2371
2374
|
/** @type {V} */
|
|
2372
2375
|
e[t]
|
|
2373
2376
|
);
|
|
2374
|
-
return
|
|
2377
|
+
return v === void 0 ? o() : (i = !0, v);
|
|
2375
2378
|
};
|
|
2376
|
-
var f = !1, c = /* @__PURE__ */
|
|
2379
|
+
var f = !1, c = /* @__PURE__ */ Rn(() => (f = !1, a())), h = (
|
|
2377
2380
|
/** @type {Effect} */
|
|
2378
2381
|
y
|
|
2379
2382
|
);
|
|
2380
2383
|
return (
|
|
2381
2384
|
/** @type {() => V} */
|
|
2382
|
-
(function(
|
|
2385
|
+
(function(v, g) {
|
|
2383
2386
|
if (arguments.length > 0) {
|
|
2384
|
-
const
|
|
2385
|
-
return
|
|
2387
|
+
const d = g ? x(c) : v;
|
|
2388
|
+
return A(c, d), f = !0, s !== void 0 && (s = d), v;
|
|
2386
2389
|
}
|
|
2387
|
-
return
|
|
2390
|
+
return je && f || (h.f & ke) !== 0 ? c.v : x(c);
|
|
2388
2391
|
})
|
|
2389
2392
|
);
|
|
2390
2393
|
}
|
|
2391
|
-
function
|
|
2392
|
-
return new
|
|
2394
|
+
function to(e) {
|
|
2395
|
+
return new no(e);
|
|
2393
2396
|
}
|
|
2394
2397
|
var Ie, Z;
|
|
2395
|
-
class
|
|
2398
|
+
class no {
|
|
2396
2399
|
/**
|
|
2397
2400
|
* @param {ComponentConstructorOptions & {
|
|
2398
2401
|
* component: any;
|
|
@@ -2404,24 +2407,24 @@ class Gi {
|
|
|
2404
2407
|
/** @type {Record<string, any>} */
|
|
2405
2408
|
w(this, Z);
|
|
2406
2409
|
var n = /* @__PURE__ */ new Map(), r = (i, o) => {
|
|
2407
|
-
var u = /* @__PURE__ */
|
|
2410
|
+
var u = /* @__PURE__ */ wi(o, !1, !1);
|
|
2408
2411
|
return n.set(i, u), u;
|
|
2409
2412
|
};
|
|
2410
2413
|
const s = new Proxy(
|
|
2411
2414
|
{ ...t.props || {}, $$events: {} },
|
|
2412
2415
|
{
|
|
2413
2416
|
get(i, o) {
|
|
2414
|
-
return
|
|
2417
|
+
return x(n.get(o) ?? r(o, Reflect.get(i, o)));
|
|
2415
2418
|
},
|
|
2416
2419
|
has(i, o) {
|
|
2417
|
-
return o ===
|
|
2420
|
+
return o === js ? !0 : (x(n.get(o) ?? r(o, Reflect.get(i, o))), Reflect.has(i, o));
|
|
2418
2421
|
},
|
|
2419
2422
|
set(i, o, u) {
|
|
2420
|
-
return
|
|
2423
|
+
return A(n.get(o) ?? r(o, u), u), Reflect.set(i, o, u);
|
|
2421
2424
|
}
|
|
2422
2425
|
}
|
|
2423
2426
|
);
|
|
2424
|
-
|
|
2427
|
+
m(this, Z, (t.hydrate ? Fi : os)(t.component, {
|
|
2425
2428
|
target: t.target,
|
|
2426
2429
|
anchor: t.anchor,
|
|
2427
2430
|
props: s,
|
|
@@ -2429,28 +2432,28 @@ class Gi {
|
|
|
2429
2432
|
intro: t.intro ?? !1,
|
|
2430
2433
|
recover: t.recover,
|
|
2431
2434
|
transformError: t.transformError
|
|
2432
|
-
})), (!t?.props?.$$host || t.sync === !1) &&
|
|
2433
|
-
for (const i of Object.keys(
|
|
2434
|
-
i === "$set" || i === "$destroy" || i === "$on" ||
|
|
2435
|
+
})), (!t?.props?.$$host || t.sync === !1) && le(), m(this, Ie, s.$$events);
|
|
2436
|
+
for (const i of Object.keys(l(this, Z)))
|
|
2437
|
+
i === "$set" || i === "$destroy" || i === "$on" || Kt(this, i, {
|
|
2435
2438
|
get() {
|
|
2436
|
-
return
|
|
2439
|
+
return l(this, Z)[i];
|
|
2437
2440
|
},
|
|
2438
2441
|
/** @param {any} value */
|
|
2439
2442
|
set(o) {
|
|
2440
|
-
|
|
2443
|
+
l(this, Z)[i] = o;
|
|
2441
2444
|
},
|
|
2442
2445
|
enumerable: !0
|
|
2443
2446
|
});
|
|
2444
|
-
|
|
2447
|
+
l(this, Z).$set = /** @param {Record<string, any>} next */
|
|
2445
2448
|
(i) => {
|
|
2446
2449
|
Object.assign(s, i);
|
|
2447
|
-
},
|
|
2448
|
-
|
|
2450
|
+
}, l(this, Z).$destroy = () => {
|
|
2451
|
+
Bi(l(this, Z));
|
|
2449
2452
|
};
|
|
2450
2453
|
}
|
|
2451
2454
|
/** @param {Record<string, any>} props */
|
|
2452
2455
|
$set(t) {
|
|
2453
|
-
|
|
2456
|
+
l(this, Z).$set(t);
|
|
2454
2457
|
}
|
|
2455
2458
|
/**
|
|
2456
2459
|
* @param {string} event
|
|
@@ -2458,22 +2461,22 @@ class Gi {
|
|
|
2458
2461
|
* @returns {any}
|
|
2459
2462
|
*/
|
|
2460
2463
|
$on(t, n) {
|
|
2461
|
-
|
|
2464
|
+
l(this, Ie)[t] = l(this, Ie)[t] || [];
|
|
2462
2465
|
const r = (...s) => n.call(this, ...s);
|
|
2463
|
-
return
|
|
2464
|
-
|
|
2466
|
+
return l(this, Ie)[t].push(r), () => {
|
|
2467
|
+
l(this, Ie)[t] = l(this, Ie)[t].filter(
|
|
2465
2468
|
/** @param {any} fn */
|
|
2466
2469
|
(s) => s !== r
|
|
2467
2470
|
);
|
|
2468
2471
|
};
|
|
2469
2472
|
}
|
|
2470
2473
|
$destroy() {
|
|
2471
|
-
|
|
2474
|
+
l(this, Z).$destroy();
|
|
2472
2475
|
}
|
|
2473
2476
|
}
|
|
2474
2477
|
Ie = new WeakMap(), Z = new WeakMap();
|
|
2475
|
-
let
|
|
2476
|
-
typeof HTMLElement == "function" && (
|
|
2478
|
+
let fs;
|
|
2479
|
+
typeof HTMLElement == "function" && (fs = class extends HTMLElement {
|
|
2477
2480
|
/**
|
|
2478
2481
|
* @param {*} $$componentCtor
|
|
2479
2482
|
* @param {*} $$slots
|
|
@@ -2482,27 +2485,27 @@ typeof HTMLElement == "function" && (rs = class extends HTMLElement {
|
|
|
2482
2485
|
constructor(t, n, r) {
|
|
2483
2486
|
super();
|
|
2484
2487
|
/** The Svelte component constructor */
|
|
2485
|
-
|
|
2488
|
+
I(this, "$$ctor");
|
|
2486
2489
|
/** Slots */
|
|
2487
|
-
|
|
2490
|
+
I(this, "$$s");
|
|
2488
2491
|
/** @type {any} The Svelte component instance */
|
|
2489
|
-
|
|
2492
|
+
I(this, "$$c");
|
|
2490
2493
|
/** Whether or not the custom element is connected */
|
|
2491
|
-
|
|
2494
|
+
I(this, "$$cn", !1);
|
|
2492
2495
|
/** @type {Record<string, any>} Component props data */
|
|
2493
|
-
|
|
2496
|
+
I(this, "$$d", {});
|
|
2494
2497
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
2495
|
-
|
|
2498
|
+
I(this, "$$r", !1);
|
|
2496
2499
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
2497
|
-
|
|
2500
|
+
I(this, "$$p_d", {});
|
|
2498
2501
|
/** @type {Record<string, EventListenerOrEventListenerObject[]>} Event listeners */
|
|
2499
|
-
|
|
2502
|
+
I(this, "$$l", {});
|
|
2500
2503
|
/** @type {Map<EventListenerOrEventListenerObject, Function>} Event listener unsubscribe functions */
|
|
2501
|
-
|
|
2504
|
+
I(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
2502
2505
|
/** @type {any} The managed render effect for reflecting attributes */
|
|
2503
|
-
|
|
2506
|
+
I(this, "$$me");
|
|
2504
2507
|
/** @type {ShadowRoot | null} The ShadowRoot of the custom element */
|
|
2505
|
-
|
|
2508
|
+
I(this, "$$shadowRoot", null);
|
|
2506
2509
|
this.$$ctor = t, this.$$s = n, r && (this.$$shadowRoot = this.attachShadow(r));
|
|
2507
2510
|
}
|
|
2508
2511
|
/**
|
|
@@ -2532,22 +2535,22 @@ typeof HTMLElement == "function" && (rs = class extends HTMLElement {
|
|
|
2532
2535
|
if (this.$$cn = !0, !this.$$c) {
|
|
2533
2536
|
let t = function(s) {
|
|
2534
2537
|
return (i) => {
|
|
2535
|
-
const o =
|
|
2538
|
+
const o = On("slot");
|
|
2536
2539
|
s !== "default" && (o.name = s), _e(i, o);
|
|
2537
2540
|
};
|
|
2538
2541
|
};
|
|
2539
2542
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
2540
2543
|
return;
|
|
2541
|
-
const n = {}, r =
|
|
2544
|
+
const n = {}, r = ro(this);
|
|
2542
2545
|
for (const s of this.$$s)
|
|
2543
2546
|
s in r && (s === "default" && !this.$$d.children ? (this.$$d.children = t(s), n.default = !0) : n[s] = t(s));
|
|
2544
2547
|
for (const s of this.attributes) {
|
|
2545
2548
|
const i = this.$$g_p(s.name);
|
|
2546
|
-
i in this.$$d || (this.$$d[i] =
|
|
2549
|
+
i in this.$$d || (this.$$d[i] = Ut(i, s.value, this.$$p_d, "toProp"));
|
|
2547
2550
|
}
|
|
2548
2551
|
for (const s in this.$$p_d)
|
|
2549
2552
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
2550
|
-
this.$$c =
|
|
2553
|
+
this.$$c = to({
|
|
2551
2554
|
component: this.$$ctor,
|
|
2552
2555
|
target: this.$$shadowRoot || this,
|
|
2553
2556
|
props: {
|
|
@@ -2555,13 +2558,13 @@ typeof HTMLElement == "function" && (rs = class extends HTMLElement {
|
|
|
2555
2558
|
$$slots: n,
|
|
2556
2559
|
$$host: this
|
|
2557
2560
|
}
|
|
2558
|
-
}), this.$$me =
|
|
2559
|
-
|
|
2561
|
+
}), this.$$me = Ci(() => {
|
|
2562
|
+
Br(() => {
|
|
2560
2563
|
this.$$r = !0;
|
|
2561
|
-
for (const s of
|
|
2564
|
+
for (const s of Xt(this.$$c)) {
|
|
2562
2565
|
if (!this.$$p_d[s]?.reflect) continue;
|
|
2563
2566
|
this.$$d[s] = this.$$c[s];
|
|
2564
|
-
const i =
|
|
2567
|
+
const i = Ut(
|
|
2565
2568
|
s,
|
|
2566
2569
|
this.$$d[s],
|
|
2567
2570
|
this.$$p_d,
|
|
@@ -2588,7 +2591,7 @@ typeof HTMLElement == "function" && (rs = class extends HTMLElement {
|
|
|
2588
2591
|
* @param {string} newValue
|
|
2589
2592
|
*/
|
|
2590
2593
|
attributeChangedCallback(t, n, r) {
|
|
2591
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
2594
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Ut(t, r, this.$$p_d, "toProp"), this.$$c?.$set({ [t]: this.$$d[t] }));
|
|
2592
2595
|
}
|
|
2593
2596
|
disconnectedCallback() {
|
|
2594
2597
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -2599,12 +2602,12 @@ typeof HTMLElement == "function" && (rs = class extends HTMLElement {
|
|
|
2599
2602
|
* @param {string} attribute_name
|
|
2600
2603
|
*/
|
|
2601
2604
|
$$g_p(t) {
|
|
2602
|
-
return
|
|
2605
|
+
return Xt(this.$$p_d).find(
|
|
2603
2606
|
(n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
|
|
2604
2607
|
) || t;
|
|
2605
2608
|
}
|
|
2606
2609
|
});
|
|
2607
|
-
function
|
|
2610
|
+
function Ut(e, t, n, r) {
|
|
2608
2611
|
const s = n[e]?.type;
|
|
2609
2612
|
if (t = s === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
2610
2613
|
return t;
|
|
@@ -2634,7 +2637,7 @@ function qt(e, t, n, r) {
|
|
|
2634
2637
|
return t;
|
|
2635
2638
|
}
|
|
2636
2639
|
}
|
|
2637
|
-
function
|
|
2640
|
+
function ro(e) {
|
|
2638
2641
|
const t = {};
|
|
2639
2642
|
return e.childNodes.forEach((n) => {
|
|
2640
2643
|
t[
|
|
@@ -2644,32 +2647,32 @@ function Ki(e) {
|
|
|
2644
2647
|
}), t;
|
|
2645
2648
|
}
|
|
2646
2649
|
function jn(e, t, n, r, s, i) {
|
|
2647
|
-
let o = class extends
|
|
2650
|
+
let o = class extends fs {
|
|
2648
2651
|
constructor() {
|
|
2649
2652
|
super(e, n, s), this.$$p_d = t;
|
|
2650
2653
|
}
|
|
2651
2654
|
static get observedAttributes() {
|
|
2652
|
-
return
|
|
2655
|
+
return Xt(t).map(
|
|
2653
2656
|
(u) => (t[u].attribute || u).toLowerCase()
|
|
2654
2657
|
);
|
|
2655
2658
|
}
|
|
2656
2659
|
};
|
|
2657
|
-
return
|
|
2658
|
-
|
|
2660
|
+
return Xt(t).forEach((u) => {
|
|
2661
|
+
Kt(o.prototype, u, {
|
|
2659
2662
|
get() {
|
|
2660
2663
|
return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
|
|
2661
2664
|
},
|
|
2662
|
-
set(
|
|
2663
|
-
|
|
2665
|
+
set(a) {
|
|
2666
|
+
a = Ut(u, a, t), this.$$d[u] = a;
|
|
2664
2667
|
var f = this.$$c;
|
|
2665
2668
|
if (f) {
|
|
2666
|
-
var c =
|
|
2667
|
-
c ? f[u] =
|
|
2669
|
+
var c = at(f, u)?.get;
|
|
2670
|
+
c ? f[u] = a : f.$set({ [u]: a });
|
|
2668
2671
|
}
|
|
2669
2672
|
}
|
|
2670
2673
|
});
|
|
2671
2674
|
}), r.forEach((u) => {
|
|
2672
|
-
|
|
2675
|
+
Kt(o.prototype, u, {
|
|
2673
2676
|
get() {
|
|
2674
2677
|
return this.$$c?.[u];
|
|
2675
2678
|
}
|
|
@@ -2677,110 +2680,115 @@ function jn(e, t, n, r, s, i) {
|
|
|
2677
2680
|
}), e.element = /** @type {any} */
|
|
2678
2681
|
o, o;
|
|
2679
2682
|
}
|
|
2680
|
-
var
|
|
2681
|
-
function
|
|
2682
|
-
|
|
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 cs(e, t) {
|
|
2685
|
+
on(t, !0);
|
|
2683
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");
|
|
2684
2687
|
var i = {
|
|
2685
2688
|
get onPointerDown() {
|
|
2686
2689
|
return n();
|
|
2687
2690
|
},
|
|
2688
|
-
set onPointerDown(
|
|
2689
|
-
n(
|
|
2691
|
+
set onPointerDown(a) {
|
|
2692
|
+
n(a), le();
|
|
2690
2693
|
},
|
|
2691
2694
|
get handleClass() {
|
|
2692
2695
|
return r();
|
|
2693
2696
|
},
|
|
2694
|
-
set handleClass(
|
|
2695
|
-
r(
|
|
2697
|
+
set handleClass(a = "absolute bottom-0 right-0 w-4 h-4 cursor-se-resize") {
|
|
2698
|
+
r(a), le();
|
|
2696
2699
|
},
|
|
2697
2700
|
get iconClass() {
|
|
2698
2701
|
return s();
|
|
2699
2702
|
},
|
|
2700
|
-
set iconClass(
|
|
2701
|
-
s(
|
|
2703
|
+
set iconClass(a = "w-full h-full text-base-content/30") {
|
|
2704
|
+
s(a), le();
|
|
2702
2705
|
}
|
|
2703
|
-
}, o =
|
|
2704
|
-
return
|
|
2705
|
-
|
|
2706
|
-
}),
|
|
2707
|
-
n()?.apply(this,
|
|
2708
|
-
}), _e(e, o),
|
|
2709
|
-
}
|
|
2710
|
-
|
|
2711
|
-
jn(
|
|
2712
|
-
var
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2706
|
+
}, o = so(), u = xe(o);
|
|
2707
|
+
return ye(o), Mt(() => {
|
|
2708
|
+
Qt(o, 1, Zt(r())), Qt(u, 0, Zt(s()));
|
|
2709
|
+
}), Jt("mousedown", o, function(...a) {
|
|
2710
|
+
n()?.apply(this, a);
|
|
2711
|
+
}), _e(e, o), ln(i);
|
|
2712
|
+
}
|
|
2713
|
+
zn(["mousedown"]);
|
|
2714
|
+
jn(cs, { onPointerDown: {}, handleClass: {}, iconClass: {} }, [], [], { mode: "open" });
|
|
2715
|
+
var io = /* @__PURE__ */ is('<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__ */ is('<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
|
+
const ao = {
|
|
2717
|
+
hash: "svelte-dx0z4a",
|
|
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
|
+
};
|
|
2720
|
+
function ds(e, t) {
|
|
2721
|
+
on(t, !0), as(e, ao);
|
|
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__ */ Mr(() => (i() || "").trim() || "pie-window-controls__button");
|
|
2724
|
+
var u = {
|
|
2717
2725
|
get minimized() {
|
|
2718
2726
|
return n();
|
|
2719
2727
|
},
|
|
2720
|
-
set minimized(
|
|
2721
|
-
n(
|
|
2728
|
+
set minimized(d = !1) {
|
|
2729
|
+
n(d), le();
|
|
2722
2730
|
},
|
|
2723
2731
|
get onToggle() {
|
|
2724
2732
|
return r();
|
|
2725
2733
|
},
|
|
2726
|
-
set onToggle(
|
|
2727
|
-
r(
|
|
2734
|
+
set onToggle(d) {
|
|
2735
|
+
r(d), le();
|
|
2728
2736
|
},
|
|
2729
2737
|
get onClose() {
|
|
2730
2738
|
return s();
|
|
2731
2739
|
},
|
|
2732
|
-
set onClose(
|
|
2733
|
-
s(
|
|
2740
|
+
set onClose(d) {
|
|
2741
|
+
s(d), le();
|
|
2734
2742
|
},
|
|
2735
2743
|
get buttonClass() {
|
|
2736
2744
|
return i();
|
|
2737
2745
|
},
|
|
2738
|
-
set buttonClass(
|
|
2739
|
-
i(
|
|
2746
|
+
set buttonClass(d = "") {
|
|
2747
|
+
i(d), le();
|
|
2740
2748
|
}
|
|
2741
|
-
},
|
|
2749
|
+
}, a = lo(), f = jr(a), c = xe(f);
|
|
2742
2750
|
{
|
|
2743
|
-
var
|
|
2744
|
-
var
|
|
2745
|
-
_e(
|
|
2746
|
-
},
|
|
2747
|
-
var
|
|
2748
|
-
_e(
|
|
2751
|
+
var h = (d) => {
|
|
2752
|
+
var $ = io();
|
|
2753
|
+
_e(d, $);
|
|
2754
|
+
}, v = (d) => {
|
|
2755
|
+
var $ = oo();
|
|
2756
|
+
_e(d, $);
|
|
2749
2757
|
};
|
|
2750
|
-
|
|
2751
|
-
n() ?
|
|
2758
|
+
kt(c, (d) => {
|
|
2759
|
+
n() ? d(h) : d(v, -1);
|
|
2752
2760
|
});
|
|
2753
2761
|
}
|
|
2754
|
-
|
|
2755
|
-
var
|
|
2756
|
-
return
|
|
2757
|
-
|
|
2758
|
-
}),
|
|
2759
|
-
r()?.apply(this,
|
|
2760
|
-
}),
|
|
2761
|
-
s()?.apply(this,
|
|
2762
|
-
}), _e(e,
|
|
2763
|
-
}
|
|
2764
|
-
|
|
2765
|
-
jn(
|
|
2766
|
-
var
|
|
2767
|
-
typeof window < "u" && ((
|
|
2762
|
+
ye(f);
|
|
2763
|
+
var g = Ve(f, 2);
|
|
2764
|
+
return Mt(() => {
|
|
2765
|
+
Qt(f, 1, Zt(x(o)), "svelte-dx0z4a"), sr(f, "title", n() ? "Maximize" : "Minimize"), sr(f, "aria-label", n() ? "Maximize panel" : "Minimize panel"), Qt(g, 1, Zt(x(o)), "svelte-dx0z4a");
|
|
2766
|
+
}), Jt("click", f, function(...d) {
|
|
2767
|
+
r()?.apply(this, d);
|
|
2768
|
+
}), Jt("click", g, function(...d) {
|
|
2769
|
+
s()?.apply(this, d);
|
|
2770
|
+
}), _e(e, a), ln(u);
|
|
2771
|
+
}
|
|
2772
|
+
zn(["click"]);
|
|
2773
|
+
jn(ds, { 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, or = (e, t, n) => fo(e, typeof t != "symbol" ? t + "" : t, n), lr;
|
|
2775
|
+
typeof window < "u" && ((lr = window.__svelte ?? (window.__svelte = {})).v ?? (lr.v = /* @__PURE__ */ new Set())).add("5");
|
|
2768
2776
|
new class extends Error {
|
|
2769
2777
|
constructor() {
|
|
2770
|
-
super(...arguments),
|
|
2778
|
+
super(...arguments), or(this, "name", "StaleReactionError"), or(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
2771
2779
|
}
|
|
2772
2780
|
}();
|
|
2773
|
-
const
|
|
2774
|
-
function
|
|
2781
|
+
const co = /* @__PURE__ */ new Set(), ho = /* @__PURE__ */ new Set();
|
|
2782
|
+
function hs(e) {
|
|
2775
2783
|
for (var t = 0; t < e.length; t++)
|
|
2776
|
-
|
|
2777
|
-
for (var n of
|
|
2784
|
+
co.add(e[t]);
|
|
2785
|
+
for (var n of ho)
|
|
2778
2786
|
n(e);
|
|
2779
2787
|
}
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
function
|
|
2783
|
-
const n = (f, c,
|
|
2788
|
+
hs(["click"]);
|
|
2789
|
+
hs(["mousedown"]);
|
|
2790
|
+
function vo(e, t) {
|
|
2791
|
+
const n = (f, c, h) => Math.max(c, Math.min(f, h)), r = n(
|
|
2784
2792
|
Math.round(e.width * t.widthRatio),
|
|
2785
2793
|
t.minWidth,
|
|
2786
2794
|
t.maxWidth
|
|
@@ -2788,26 +2796,26 @@ function oo(e, t) {
|
|
|
2788
2796
|
Math.round(e.height * t.heightRatio),
|
|
2789
2797
|
t.minHeight,
|
|
2790
2798
|
t.maxHeight
|
|
2791
|
-
), i = t.paddingX ?? 16, o = t.paddingY, u = i,
|
|
2792
|
-
return { x: u, y:
|
|
2799
|
+
), i = t.paddingX ?? 16, o = t.paddingY, u = i, a = Math.max(o, Math.round((e.height - s) / 2));
|
|
2800
|
+
return { x: u, y: a, width: r, height: s };
|
|
2793
2801
|
}
|
|
2794
|
-
function
|
|
2802
|
+
function _o(e) {
|
|
2795
2803
|
const t = e.padding ?? 0;
|
|
2796
|
-
let n = !1, r = !1, s = 0, i = 0, o = 0, u = 0,
|
|
2797
|
-
const
|
|
2804
|
+
let n = !1, r = !1, s = 0, i = 0, o = 0, u = 0, a = 0, f = 0, c = 0, h = 0;
|
|
2805
|
+
const v = (_) => {
|
|
2798
2806
|
if (!n) return;
|
|
2799
|
-
const S = e.getState(), Y =
|
|
2807
|
+
const S = e.getState(), Y = _.clientX - s, G = _.clientY - i, Be = Math.max(t, window.innerWidth - S.width - t), st = Math.max(t, window.innerHeight - 100 - t);
|
|
2800
2808
|
e.setState({
|
|
2801
2809
|
...S,
|
|
2802
|
-
x: Math.max(t, Math.min(o + Y,
|
|
2803
|
-
y: Math.max(t, Math.min(u + G,
|
|
2810
|
+
x: Math.max(t, Math.min(o + Y, Be)),
|
|
2811
|
+
y: Math.max(t, Math.min(u + G, st))
|
|
2804
2812
|
});
|
|
2805
|
-
},
|
|
2813
|
+
}, g = (_) => {
|
|
2806
2814
|
if (!r) return;
|
|
2807
|
-
const S = e.getState(), Y =
|
|
2815
|
+
const S = e.getState(), Y = _.clientX - a, G = _.clientY - f, Be = Math.max(
|
|
2808
2816
|
e.minWidth,
|
|
2809
2817
|
window.innerWidth - S.x - t
|
|
2810
|
-
),
|
|
2818
|
+
), st = Math.max(
|
|
2811
2819
|
e.minHeight,
|
|
2812
2820
|
window.innerHeight - S.y - t
|
|
2813
2821
|
);
|
|
@@ -2815,63 +2823,70 @@ function lo(e) {
|
|
|
2815
2823
|
...S,
|
|
2816
2824
|
width: Math.max(
|
|
2817
2825
|
e.minWidth,
|
|
2818
|
-
Math.min(c + Y,
|
|
2826
|
+
Math.min(c + Y, Be)
|
|
2819
2827
|
),
|
|
2820
2828
|
height: Math.max(
|
|
2821
2829
|
e.minHeight,
|
|
2822
|
-
Math.min(
|
|
2830
|
+
Math.min(h + G, st)
|
|
2823
2831
|
)
|
|
2824
2832
|
});
|
|
2825
|
-
},
|
|
2826
|
-
n = !1, document.removeEventListener("mousemove",
|
|
2827
|
-
},
|
|
2828
|
-
r = !1, document.removeEventListener("mousemove",
|
|
2833
|
+
}, d = () => {
|
|
2834
|
+
n = !1, document.removeEventListener("mousemove", v), document.removeEventListener("mouseup", d);
|
|
2835
|
+
}, $ = () => {
|
|
2836
|
+
r = !1, document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", $);
|
|
2829
2837
|
};
|
|
2830
2838
|
return {
|
|
2831
|
-
startDrag(
|
|
2832
|
-
n = !0, s =
|
|
2839
|
+
startDrag(_) {
|
|
2840
|
+
n = !0, s = _.clientX, i = _.clientY;
|
|
2833
2841
|
const S = e.getState();
|
|
2834
|
-
o = S.x, u = S.y, document.addEventListener("mousemove",
|
|
2842
|
+
o = S.x, u = S.y, document.addEventListener("mousemove", v), document.addEventListener("mouseup", d);
|
|
2835
2843
|
},
|
|
2836
|
-
startResize(
|
|
2837
|
-
r = !0,
|
|
2844
|
+
startResize(_) {
|
|
2845
|
+
r = !0, a = _.clientX, f = _.clientY;
|
|
2838
2846
|
const S = e.getState();
|
|
2839
|
-
c = S.width,
|
|
2847
|
+
c = S.width, h = S.height, document.addEventListener("mousemove", g), document.addEventListener("mouseup", $), _.preventDefault(), _.stopPropagation();
|
|
2840
2848
|
},
|
|
2841
2849
|
stop() {
|
|
2842
|
-
|
|
2850
|
+
d(), $();
|
|
2843
2851
|
}
|
|
2844
2852
|
};
|
|
2845
2853
|
}
|
|
2846
|
-
function
|
|
2854
|
+
function po(e, t) {
|
|
2847
2855
|
return (e || void 0) === (t || void 0);
|
|
2848
2856
|
}
|
|
2849
|
-
function
|
|
2857
|
+
function go(e, t, n) {
|
|
2850
2858
|
const r = e?.key?.sectionId || "", s = e?.key?.attemptId || void 0;
|
|
2851
|
-
return r !== t ? !1 :
|
|
2859
|
+
return r !== t ? !1 : po(s, n);
|
|
2852
2860
|
}
|
|
2853
|
-
function
|
|
2861
|
+
function mo(e, t, n) {
|
|
2854
2862
|
return !e?.getSectionController || !t ? null : e.getSectionController({
|
|
2855
2863
|
sectionId: t,
|
|
2856
2864
|
attemptId: n
|
|
2857
2865
|
}) || null;
|
|
2858
2866
|
}
|
|
2859
|
-
var
|
|
2860
|
-
const
|
|
2867
|
+
var wo = /* @__PURE__ */ rt('<div class="pie-section-player-tools-session-debugger__alert pie-section-player-tools-session-debugger__alert--warning"><svg xmlns="http://www.w3.org/2000/svg" class="pie-section-player-tools-session-debugger__icon-md" fill="none" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01M5.07 19h13.86c1.54 0 2.5-1.67 1.73-3L13.73 4c-.77-1.33-2.69-1.33-3.46 0L3.34 16c-.77 1.33.19 3 1.73 3z"></path></svg> <span class="pie-section-player-tools-session-debugger__text-xs">Section controller not available for this section yet.</span></div>'), bo = /* @__PURE__ */ rt('<div class="pie-section-player-tools-session-debugger__alert pie-section-player-tools-session-debugger__alert--info"><svg xmlns="http://www.w3.org/2000/svg" class="pie-section-player-tools-session-debugger__icon-md" fill="none" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span class="pie-section-player-tools-session-debugger__text-xs">No section session data yet. Interact with the questions to see updates.</span></div>'), yo = /* @__PURE__ */ rt('<!> <div class="pie-section-player-tools-session-debugger__card"><div class="pie-section-player-tools-session-debugger__card-title">Item Sessions Snapshot</div> <pre class="pie-section-player-tools-session-debugger__card-pre"> </pre></div>', 1), $o = /* @__PURE__ */ rt('<div class="pie-section-player-tools-session-debugger__content-shell svelte-10oyp9b"><div class="pie-section-player-tools-session-debugger__content"><div class="pie-section-player-tools-session-debugger__section-intro"><div class="pie-section-player-tools-session-debugger__heading">PIE Session Data (Persistent)</div></div> <!></div></div>'), xo = /* @__PURE__ */ rt('<div class="pie-section-player-tools-session-debugger svelte-10oyp9b"><div class="pie-section-player-tools-session-debugger__header svelte-10oyp9b" role="button" tabindex="0" aria-label="Drag session panel"><div class="pie-section-player-tools-session-debugger__header-title svelte-10oyp9b"><svg xmlns="http://www.w3.org/2000/svg" class="pie-section-player-tools-session-debugger__icon-sm svelte-10oyp9b" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg> <h3 class="pie-section-player-tools-session-debugger__title svelte-10oyp9b">Session Data</h3></div> <div class="pie-section-player-tools-session-debugger__header-actions svelte-10oyp9b"><!></div></div> <!> <!></div>');
|
|
2868
|
+
const Eo = {
|
|
2861
2869
|
hash: "svelte-10oyp9b",
|
|
2862
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;}"
|
|
2863
2871
|
};
|
|
2864
|
-
function
|
|
2865
|
-
|
|
2866
|
-
const n =
|
|
2867
|
-
let r = ge(t, "toolkitCoordinator", 7, null), s = ge(t, "sectionId", 7, ""), i = ge(t, "attemptId", 7, void 0), o = /* @__PURE__ */
|
|
2872
|
+
function So(e, t) {
|
|
2873
|
+
on(t, !0), as(e, Eo);
|
|
2874
|
+
const n = qi();
|
|
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({
|
|
2868
2876
|
currentItemIndex: null,
|
|
2869
2877
|
currentItemId: null,
|
|
2870
2878
|
visitedItemIdentifiers: [],
|
|
2879
|
+
loadingComplete: !1,
|
|
2880
|
+
totalRegistered: 0,
|
|
2881
|
+
totalLoaded: 0,
|
|
2882
|
+
itemsComplete: !1,
|
|
2883
|
+
completedCount: 0,
|
|
2884
|
+
totalItems: 0,
|
|
2871
2885
|
updatedAt: null,
|
|
2872
2886
|
lastChangedItemId: null,
|
|
2873
2887
|
itemSessions: {}
|
|
2874
|
-
})),
|
|
2888
|
+
})), v = null, g = null, d = /* @__PURE__ */ z(!1), $ = !1;
|
|
2889
|
+
const _ = { controller: null, sectionId: "", attemptId: void 0 };
|
|
2875
2890
|
function S(p) {
|
|
2876
2891
|
try {
|
|
2877
2892
|
return structuredClone(p);
|
|
@@ -2884,43 +2899,56 @@ function mo(e, t) {
|
|
|
2884
2899
|
}
|
|
2885
2900
|
}
|
|
2886
2901
|
function Y() {
|
|
2887
|
-
return
|
|
2902
|
+
return mo(r(), s(), i()) || void 0;
|
|
2888
2903
|
}
|
|
2889
|
-
function G(p,
|
|
2890
|
-
const
|
|
2891
|
-
|
|
2892
|
-
|
|
2904
|
+
function G(p, re) {
|
|
2905
|
+
const We = re || Y(), N = We?.getRuntimeState?.() || null, fn = We?.getSessionState?.() || null;
|
|
2906
|
+
A(d, !!We, !0), A(
|
|
2907
|
+
h,
|
|
2893
2908
|
{
|
|
2894
|
-
currentItemIndex: typeof
|
|
2895
|
-
currentItemId: typeof
|
|
2896
|
-
visitedItemIdentifiers: S(
|
|
2909
|
+
currentItemIndex: typeof N?.currentItemIndex == "number" && N.currentItemIndex >= 0 ? N.currentItemIndex : null,
|
|
2910
|
+
currentItemId: typeof N?.currentItemId == "string" && N.currentItemId ? N.currentItemId : null,
|
|
2911
|
+
visitedItemIdentifiers: S(N?.visitedItemIdentifiers || []),
|
|
2912
|
+
loadingComplete: N?.loadingComplete === !0,
|
|
2913
|
+
totalRegistered: typeof N?.totalRegistered == "number" ? N.totalRegistered : 0,
|
|
2914
|
+
totalLoaded: typeof N?.totalLoaded == "number" ? N.totalLoaded : 0,
|
|
2915
|
+
itemsComplete: N?.itemsComplete === !0,
|
|
2916
|
+
completedCount: typeof N?.completedCount == "number" ? N.completedCount : 0,
|
|
2917
|
+
totalItems: typeof N?.totalItems == "number" ? N.totalItems : 0,
|
|
2897
2918
|
updatedAt: p?.updatedAt || Date.now(),
|
|
2898
2919
|
lastChangedItemId: p?.itemId || null,
|
|
2899
|
-
itemSessions: S(
|
|
2920
|
+
itemSessions: S(N?.itemSessions || fn?.itemSessions || {})
|
|
2900
2921
|
},
|
|
2901
2922
|
!0
|
|
2902
2923
|
);
|
|
2903
2924
|
}
|
|
2904
|
-
function
|
|
2905
|
-
|
|
2906
|
-
m = !1, an(), G(p || { updatedAt: Date.now() });
|
|
2907
|
-
}));
|
|
2925
|
+
function Be() {
|
|
2926
|
+
v?.(), v = null, _.controller = null, _.sectionId = "", _.attemptId = void 0;
|
|
2908
2927
|
}
|
|
2909
|
-
function
|
|
2910
|
-
|
|
2928
|
+
function st() {
|
|
2929
|
+
g?.(), g = null;
|
|
2911
2930
|
}
|
|
2912
|
-
function
|
|
2913
|
-
|
|
2931
|
+
function vs(p) {
|
|
2932
|
+
G({
|
|
2933
|
+
itemId: p?.itemId,
|
|
2934
|
+
updatedAt: p?.timestamp || Date.now()
|
|
2935
|
+
});
|
|
2914
2936
|
}
|
|
2915
|
-
function
|
|
2937
|
+
function Fn() {
|
|
2916
2938
|
const p = Y() || null;
|
|
2917
2939
|
if (!p) {
|
|
2918
|
-
|
|
2919
|
-
|
|
2940
|
+
Be(), A(d, !1), A(
|
|
2941
|
+
h,
|
|
2920
2942
|
{
|
|
2921
2943
|
currentItemIndex: null,
|
|
2922
2944
|
currentItemId: null,
|
|
2923
2945
|
visitedItemIdentifiers: [],
|
|
2946
|
+
loadingComplete: !1,
|
|
2947
|
+
totalRegistered: 0,
|
|
2948
|
+
totalLoaded: 0,
|
|
2949
|
+
itemsComplete: !1,
|
|
2950
|
+
completedCount: 0,
|
|
2951
|
+
totalItems: 0,
|
|
2924
2952
|
updatedAt: Date.now(),
|
|
2925
2953
|
lastChangedItemId: null,
|
|
2926
2954
|
itemSessions: {}
|
|
@@ -2929,29 +2957,31 @@ function mo(e, t) {
|
|
|
2929
2957
|
);
|
|
2930
2958
|
return;
|
|
2931
2959
|
}
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
G(
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
}) || null, G(void 0, p);
|
|
2942
|
-
}
|
|
2943
|
-
function
|
|
2944
|
-
|
|
2960
|
+
const re = i() || void 0;
|
|
2961
|
+
if (_.controller === p && _.sectionId === s() && _.attemptId === re && v) {
|
|
2962
|
+
G(void 0, p);
|
|
2963
|
+
return;
|
|
2964
|
+
}
|
|
2965
|
+
Be(), v = r()?.subscribeSectionEvents({
|
|
2966
|
+
sectionId: s(),
|
|
2967
|
+
attemptId: i(),
|
|
2968
|
+
listener: vs
|
|
2969
|
+
}) || null, _.controller = p, _.sectionId = s(), _.attemptId = re, G(void 0, p);
|
|
2970
|
+
}
|
|
2971
|
+
function _s() {
|
|
2972
|
+
$ || ($ = !0, queueMicrotask(() => {
|
|
2973
|
+
$ = !1, Fn();
|
|
2974
|
+
}));
|
|
2945
2975
|
}
|
|
2946
|
-
|
|
2976
|
+
Sn(() => {
|
|
2947
2977
|
if (!(!r() || !s()))
|
|
2948
|
-
return
|
|
2949
|
-
|
|
2978
|
+
return Fn(), st(), g = r().onSectionControllerLifecycle?.((p) => {
|
|
2979
|
+
go(p, s(), i()) && (_s(), G({ updatedAt: Date.now() }));
|
|
2950
2980
|
}) || null, () => {
|
|
2951
|
-
|
|
2981
|
+
Be(), st();
|
|
2952
2982
|
};
|
|
2953
|
-
}),
|
|
2954
|
-
const p =
|
|
2983
|
+
}), Vi(() => {
|
|
2984
|
+
const p = vo({ width: window.innerWidth, height: window.innerHeight }, {
|
|
2955
2985
|
widthRatio: 0.29,
|
|
2956
2986
|
heightRatio: 0.72,
|
|
2957
2987
|
minWidth: 280,
|
|
@@ -2961,107 +2991,107 @@ function mo(e, t) {
|
|
|
2961
2991
|
paddingX: 16,
|
|
2962
2992
|
paddingY: 16
|
|
2963
2993
|
});
|
|
2964
|
-
|
|
2965
|
-
const L = () => {
|
|
2966
|
-
it({ updatedAt: Date.now() });
|
|
2967
|
-
};
|
|
2968
|
-
return document.addEventListener("session-changed", L, !0), document.addEventListener("item-session-changed", L, !0), document.addEventListener("composition-changed", L, !0), () => {
|
|
2969
|
-
document.removeEventListener("session-changed", L, !0), document.removeEventListener("item-session-changed", L, !0), document.removeEventListener("composition-changed", L, !0);
|
|
2970
|
-
};
|
|
2994
|
+
A(u, p.x, !0), A(a, p.y, !0), A(f, p.width, !0), A(c, p.height, !0);
|
|
2971
2995
|
});
|
|
2972
|
-
const un =
|
|
2996
|
+
const un = _o({
|
|
2973
2997
|
getState: () => ({
|
|
2974
|
-
x:
|
|
2975
|
-
y:
|
|
2976
|
-
width:
|
|
2977
|
-
height:
|
|
2998
|
+
x: x(u),
|
|
2999
|
+
y: x(a),
|
|
3000
|
+
width: x(f),
|
|
3001
|
+
height: x(c)
|
|
2978
3002
|
}),
|
|
2979
3003
|
setState: (p) => {
|
|
2980
|
-
|
|
3004
|
+
A(u, p.x, !0), A(a, p.y, !0), A(f, p.width, !0), A(c, p.height, !0);
|
|
2981
3005
|
},
|
|
2982
3006
|
minWidth: 300,
|
|
2983
3007
|
minHeight: 200
|
|
2984
3008
|
});
|
|
2985
|
-
|
|
3009
|
+
Sn(() => () => {
|
|
2986
3010
|
un.stop();
|
|
2987
3011
|
});
|
|
2988
|
-
var
|
|
2989
|
-
refreshFromHost: ls,
|
|
3012
|
+
var ps = {
|
|
2990
3013
|
get toolkitCoordinator() {
|
|
2991
3014
|
return r();
|
|
2992
3015
|
},
|
|
2993
3016
|
set toolkitCoordinator(p = null) {
|
|
2994
|
-
r(p),
|
|
3017
|
+
r(p), le();
|
|
2995
3018
|
},
|
|
2996
3019
|
get sectionId() {
|
|
2997
3020
|
return s();
|
|
2998
3021
|
},
|
|
2999
3022
|
set sectionId(p = "") {
|
|
3000
|
-
s(p),
|
|
3023
|
+
s(p), le();
|
|
3001
3024
|
},
|
|
3002
3025
|
get attemptId() {
|
|
3003
3026
|
return i();
|
|
3004
3027
|
},
|
|
3005
3028
|
set attemptId(p = void 0) {
|
|
3006
|
-
i(p),
|
|
3029
|
+
i(p), le();
|
|
3007
3030
|
}
|
|
3008
|
-
}, jt =
|
|
3009
|
-
|
|
3031
|
+
}, jt = xo(), Ht = xe(jt), Bn = Ve(xe(Ht), 2), gs = xe(Bn);
|
|
3032
|
+
ds(gs, {
|
|
3010
3033
|
get minimized() {
|
|
3011
|
-
return
|
|
3034
|
+
return x(o);
|
|
3012
3035
|
},
|
|
3013
|
-
onToggle: () =>
|
|
3036
|
+
onToggle: () => A(o, !x(o)),
|
|
3014
3037
|
onClose: () => n("close")
|
|
3015
|
-
}),
|
|
3016
|
-
var Wn =
|
|
3038
|
+
}), ye(Bn), ye(Ht);
|
|
3039
|
+
var Wn = Ve(Ht, 2);
|
|
3017
3040
|
{
|
|
3018
|
-
var
|
|
3019
|
-
var
|
|
3041
|
+
var ms = (p) => {
|
|
3042
|
+
var re = $o(), We = xe(re), N = Ve(xe(We), 2);
|
|
3020
3043
|
{
|
|
3021
|
-
var
|
|
3022
|
-
var
|
|
3023
|
-
_e(
|
|
3024
|
-
},
|
|
3025
|
-
var
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3044
|
+
var fn = (it) => {
|
|
3045
|
+
var Ft = wo();
|
|
3046
|
+
_e(it, Ft);
|
|
3047
|
+
}, ys = (it) => {
|
|
3048
|
+
var Ft = yo(), Vn = jr(Ft);
|
|
3049
|
+
{
|
|
3050
|
+
var $s = (It) => {
|
|
3051
|
+
var Ss = bo();
|
|
3052
|
+
_e(It, Ss);
|
|
3053
|
+
}, xs = /* @__PURE__ */ Mr(() => Object.keys(x(h).itemSessions || {}).length === 0);
|
|
3054
|
+
kt(Vn, (It) => {
|
|
3055
|
+
x(xs) && It($s);
|
|
3056
|
+
});
|
|
3057
|
+
}
|
|
3058
|
+
var Yn = Ve(Vn, 2), qn = Ve(xe(Yn), 2), Es = xe(qn, !0);
|
|
3059
|
+
ye(qn), ye(Yn), Mt((It) => Hi(Es, It), [() => JSON.stringify(x(h), null, 2)]), _e(it, Ft);
|
|
3030
3060
|
};
|
|
3031
|
-
|
|
3032
|
-
|
|
3061
|
+
kt(N, (it) => {
|
|
3062
|
+
x(d) ? it(ys, -1) : it(fn);
|
|
3033
3063
|
});
|
|
3034
3064
|
}
|
|
3035
|
-
|
|
3065
|
+
ye(We), ye(re), Mt(() => rr(re, `height: ${x(c) - 50}px;`)), _e(p, re);
|
|
3036
3066
|
};
|
|
3037
|
-
|
|
3038
|
-
|
|
3067
|
+
kt(Wn, (p) => {
|
|
3068
|
+
x(o) || p(ms);
|
|
3039
3069
|
});
|
|
3040
3070
|
}
|
|
3041
|
-
var
|
|
3071
|
+
var ws = Ve(Wn, 2);
|
|
3042
3072
|
{
|
|
3043
|
-
var
|
|
3044
|
-
|
|
3045
|
-
onPointerDown: (
|
|
3073
|
+
var bs = (p) => {
|
|
3074
|
+
cs(p, {
|
|
3075
|
+
onPointerDown: (re) => un.startResize(re)
|
|
3046
3076
|
});
|
|
3047
3077
|
};
|
|
3048
|
-
|
|
3049
|
-
|
|
3078
|
+
kt(ws, (p) => {
|
|
3079
|
+
x(o) || p(bs);
|
|
3050
3080
|
});
|
|
3051
3081
|
}
|
|
3052
|
-
return
|
|
3082
|
+
return ye(jt), Mt(() => rr(jt, `left: ${x(u) ?? ""}px; top: ${x(a) ?? ""}px; width: ${x(f) ?? ""}px; ${x(o) ? "height: auto;" : `height: ${x(c)}px;`}`)), Jt("mousedown", Ht, (p) => un.startDrag(p)), _e(e, jt), ln(ps);
|
|
3053
3083
|
}
|
|
3054
|
-
|
|
3084
|
+
zn(["mousedown"]);
|
|
3055
3085
|
customElements.define("pie-section-player-tools-session-debugger", jn(
|
|
3056
|
-
|
|
3086
|
+
So,
|
|
3057
3087
|
{
|
|
3058
3088
|
sectionId: { attribute: "section-id", type: "String" },
|
|
3059
3089
|
attemptId: { attribute: "attempt-id", type: "String" },
|
|
3060
3090
|
toolkitCoordinator: { attribute: "toolkit-coordinator", type: "Object" }
|
|
3061
3091
|
},
|
|
3062
3092
|
[],
|
|
3063
|
-
[
|
|
3093
|
+
[]
|
|
3064
3094
|
));
|
|
3065
3095
|
export {
|
|
3066
|
-
|
|
3096
|
+
So as default
|
|
3067
3097
|
};
|