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