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