@pie-players/pie-section-player-tools-event-debugger 0.3.3 → 0.3.4
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 +91 -139
- package/dist/section-player-tools-event-debugger.js +1716 -1418
- 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 kr = Array.isArray,
|
|
12
|
-
const
|
|
5
|
+
var Ls = (e, t, n) => t in e ? Ds(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
|
+
var D = (e, t, n) => Ls(e, typeof t != "symbol" ? t + "" : t, n), or = (e, t, n) => t.has(e) || Kr("Cannot " + n);
|
|
7
|
+
var u = (e, t, n) => (or(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) => (or(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), L = (e, t, n) => (or(e, t, "access private method"), n);
|
|
8
|
+
var hi;
|
|
9
|
+
typeof window < "u" && ((hi = window.__svelte ?? (window.__svelte = {})).v ?? (hi.v = /* @__PURE__ */ new Set())).add("5");
|
|
10
|
+
const Ps = 1, Fs = 2, zs = 16, Hs = 1, js = 2, pi = "[", Cr = "[!", Zr = "[?", Sr = "]", Wt = {}, q = /* @__PURE__ */ Symbol(), _i = "http://www.w3.org/1999/xhtml", ar = !1;
|
|
11
|
+
var kr = Array.isArray, Vs = Array.prototype.indexOf, qt = Array.prototype.includes, Hn = Array.from, On = Object.keys, Dn = Object.defineProperty, Dt = Object.getOwnPropertyDescriptor, Bs = Object.getOwnPropertyDescriptors, Ys = Object.prototype, Ws = Array.prototype, gi = Object.getPrototypeOf, Qr = 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 mi() {
|
|
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, Qt = 4, Ut = 8, Tr = 1 << 24, ft = 16, Ne = 32, ct = 64, ur = 128, be = 512, U = 1024, X = 2048, Ae = 4096, Q = 8192, He = 16384, Tt = 32768, Xt = 65536, ei = 1 << 17, Xs = 1 << 18, Mt = 1 << 19, Js = 1 << 20, Ge = 1 << 25, St = 65536, fr = 1 << 21, Mr = 1 << 22, st = 1 << 23, lr = /* @__PURE__ */ Symbol("$state"), Gs = /* @__PURE__ */ Symbol("legacy props"), Ks = /* @__PURE__ */ Symbol(""), pt = new class extends Error {
|
|
25
25
|
constructor() {
|
|
26
26
|
super(...arguments);
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
D(this, "name", "StaleReactionError");
|
|
28
|
+
D(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
|
+
), jn = 3, _n = 8;
|
|
34
|
+
function Ar(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
|
-
function
|
|
70
|
+
function Vn(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
76
|
let A = !1;
|
|
77
|
-
function
|
|
77
|
+
function Ke(e) {
|
|
78
78
|
A = e;
|
|
79
79
|
}
|
|
80
|
-
let
|
|
81
|
-
function
|
|
80
|
+
let C;
|
|
81
|
+
function ve(e) {
|
|
82
82
|
if (e === null)
|
|
83
|
-
throw
|
|
84
|
-
return
|
|
83
|
+
throw Vn(), Wt;
|
|
84
|
+
return C = e;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
return
|
|
86
|
+
function Bn() {
|
|
87
|
+
return ve(/* @__PURE__ */ Ve(C));
|
|
88
88
|
}
|
|
89
89
|
function T(e) {
|
|
90
90
|
if (A) {
|
|
91
|
-
if (/* @__PURE__ */
|
|
92
|
-
throw
|
|
93
|
-
|
|
91
|
+
if (/* @__PURE__ */ Ve(C) !== null)
|
|
92
|
+
throw Vn(), Wt;
|
|
93
|
+
C = e;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function co(e = 1) {
|
|
97
97
|
if (A) {
|
|
98
|
-
for (var t = e, n =
|
|
98
|
+
for (var t = e, n = C; t--; )
|
|
99
99
|
n = /** @type {TemplateNode} */
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
-
|
|
100
|
+
/* @__PURE__ */ Ve(n);
|
|
101
|
+
C = n;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
function Ln(e = !0) {
|
|
105
|
-
for (var t = 0, n =
|
|
106
|
-
if (n.nodeType ===
|
|
105
|
+
for (var t = 0, n = C; ; ) {
|
|
106
|
+
if (n.nodeType === _n) {
|
|
107
107
|
var r = (
|
|
108
108
|
/** @type {Comment} */
|
|
109
109
|
n.data
|
|
110
110
|
);
|
|
111
|
-
if (r ===
|
|
111
|
+
if (r === Sr) {
|
|
112
112
|
if (t === 0) return n;
|
|
113
113
|
t -= 1;
|
|
114
|
-
} else (r ===
|
|
114
|
+
} else (r === pi || r === Cr || // "[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
|
|
124
|
+
function wi(e) {
|
|
125
|
+
if (!e || e.nodeType !== _n)
|
|
126
|
+
throw Vn(), Wt;
|
|
127
127
|
return (
|
|
128
128
|
/** @type {Comment} */
|
|
129
129
|
e.data
|
|
130
130
|
);
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function bi(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 yi(e) {
|
|
139
|
+
return !vo(e, this.v);
|
|
140
140
|
}
|
|
141
|
-
let
|
|
142
|
-
function
|
|
143
|
-
|
|
141
|
+
let ho = !1, te = null;
|
|
142
|
+
function Jt(e) {
|
|
143
|
+
te = e;
|
|
144
144
|
}
|
|
145
|
-
function
|
|
146
|
-
|
|
147
|
-
p:
|
|
145
|
+
function Yn(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 Wn(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
|
qi(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 $i() {
|
|
170
170
|
return !0;
|
|
171
171
|
}
|
|
172
|
-
let
|
|
173
|
-
function
|
|
174
|
-
var e =
|
|
175
|
-
|
|
172
|
+
let _t = [];
|
|
173
|
+
function xi() {
|
|
174
|
+
var e = _t;
|
|
175
|
+
_t = [], Us(e);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
178
|
-
if (
|
|
179
|
-
var t =
|
|
177
|
+
function Lt(e) {
|
|
178
|
+
if (_t.length === 0 && !fn) {
|
|
179
|
+
var t = _t;
|
|
180
180
|
queueMicrotask(() => {
|
|
181
|
-
t ===
|
|
181
|
+
t === _t && xi();
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
|
-
|
|
184
|
+
_t.push(e);
|
|
185
185
|
}
|
|
186
|
-
function
|
|
187
|
-
for (;
|
|
188
|
-
|
|
186
|
+
function po() {
|
|
187
|
+
for (; _t.length > 0; )
|
|
188
|
+
xi();
|
|
189
189
|
}
|
|
190
|
-
function
|
|
191
|
-
var t =
|
|
190
|
+
function Ei(e) {
|
|
191
|
+
var t = S;
|
|
192
192
|
if (t === null)
|
|
193
|
-
return
|
|
194
|
-
if ((t.f &
|
|
193
|
+
return E.f |= st, e;
|
|
194
|
+
if ((t.f & Tt) === 0 && (t.f & Qt) === 0)
|
|
195
195
|
throw e;
|
|
196
|
-
|
|
196
|
+
it(e, t);
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function it(e, t) {
|
|
199
199
|
for (; t !== null; ) {
|
|
200
|
-
if ((t.f &
|
|
201
|
-
if ((t.f &
|
|
200
|
+
if ((t.f & ur) !== 0) {
|
|
201
|
+
if ((t.f & Tt) === 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 z(e, t) {
|
|
216
|
+
e.f = e.f & _o | t;
|
|
217
217
|
}
|
|
218
|
-
function
|
|
219
|
-
(e.f &
|
|
218
|
+
function Rr(e) {
|
|
219
|
+
(e.f & be) !== 0 || e.deps === null ? z(e, U) : z(e, Ae);
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function Ci(e) {
|
|
222
222
|
if (e !== null)
|
|
223
223
|
for (const t of e)
|
|
224
|
-
(t.f &
|
|
224
|
+
(t.f & J) === 0 || (t.f & St) === 0 || (t.f ^= St, Ci(
|
|
225
225
|
/** @type {Derived} */
|
|
226
226
|
t.deps
|
|
227
227
|
));
|
|
228
228
|
}
|
|
229
|
-
function
|
|
230
|
-
(e.f & X) !== 0 ? t.add(e) : (e.f &
|
|
229
|
+
function Si(e, t, n) {
|
|
230
|
+
(e.f & X) !== 0 ? t.add(e) : (e.f & Ae) !== 0 && n.add(e), Ci(e.deps), z(e, U);
|
|
231
231
|
}
|
|
232
|
-
const
|
|
233
|
-
let
|
|
234
|
-
var
|
|
235
|
-
const
|
|
232
|
+
const kn = /* @__PURE__ */ new Set();
|
|
233
|
+
let O = null, ke = null, ie = [], qn = null, fn = !1, Gt = null, go = 1;
|
|
234
|
+
var tt, Pt, wt, Ft, zt, Ht, nt, De, jt, oe, cr, dr, vr, hr;
|
|
235
|
+
const Br = class Br {
|
|
236
236
|
constructor() {
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
x(this, oe);
|
|
238
|
+
// for debugging. TODO remove once async is stable
|
|
239
|
+
D(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
|
+
D(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
|
+
D(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, tt, /* @__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, Pt, /* @__PURE__ */ new Set());
|
|
262
263
|
/**
|
|
263
264
|
* The number of async effects that are currently in flight
|
|
264
265
|
*/
|
|
265
|
-
|
|
266
|
+
x(this, wt, 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, Ft, 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, zt, 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, Ht, /* @__PURE__ */ new Set());
|
|
281
282
|
/**
|
|
282
283
|
* Deferred effects that are MAYBE_DIRTY
|
|
283
284
|
* @type {Set<Effect>}
|
|
284
285
|
*/
|
|
285
|
-
|
|
286
|
+
x(this, nt, /* @__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
|
+
D(this, "is_fork", !1);
|
|
296
|
+
x(this, jt, !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
|
+
z(r, X), ze(r);
|
|
318
316
|
for (r of n.m)
|
|
319
|
-
|
|
317
|
+
z(r, Ae), ze(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 = Gt = [], 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, dr).call(this, i, n, r);
|
|
329
|
+
if (Gt = null, L(this, oe, cr).call(this)) {
|
|
330
|
+
L(this, oe, vr).call(this, r), L(this, oe, vr).call(this, n);
|
|
331
|
+
for (const [i, s] of u(this, De))
|
|
332
|
+
Ai(i, s);
|
|
335
333
|
} else {
|
|
336
|
-
|
|
337
|
-
|
|
334
|
+
O = null;
|
|
335
|
+
for (const i of u(this, tt)) i(this);
|
|
336
|
+
u(this, tt).clear(), u(this, wt) === 0 && L(this, oe, hr).call(this), ti(r), ti(n), u(this, Ht).clear(), u(this, nt).clear(), u(this, zt)?.resolve();
|
|
338
337
|
}
|
|
339
|
-
|
|
338
|
+
ke = 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 !== q && !this.previous.has(t) && this.previous.set(t, n), (t.f &
|
|
347
|
+
n !== q && !this.previous.has(t) && this.previous.set(t, n), (t.f & st) === 0 && (this.current.set(t, t.v), ke?.set(t, t.v));
|
|
349
348
|
}
|
|
350
349
|
activate() {
|
|
351
|
-
|
|
350
|
+
O = this, this.apply();
|
|
352
351
|
}
|
|
353
352
|
deactivate() {
|
|
354
|
-
|
|
353
|
+
O === this && (O = null, ke = null);
|
|
355
354
|
}
|
|
356
355
|
flush() {
|
|
357
|
-
if (
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
356
|
+
if (ie.length > 0)
|
|
357
|
+
O = this, ki();
|
|
358
|
+
else if (u(this, wt) === 0 && !this.is_fork) {
|
|
359
|
+
for (const t of u(this, tt)) t(this);
|
|
360
|
+
u(this, tt).clear(), L(this, oe, hr).call(this), u(this, zt)?.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, Pt)) t(this);
|
|
366
|
+
u(this, Pt).clear();
|
|
366
367
|
}
|
|
367
368
|
/**
|
|
368
369
|
*
|
|
369
370
|
* @param {boolean} blocking
|
|
370
371
|
*/
|
|
371
372
|
increment(t) {
|
|
372
|
-
|
|
373
|
+
$(this, wt, u(this, wt) + 1), t && $(this, Ft, u(this, Ft) + 1);
|
|
373
374
|
}
|
|
374
375
|
/**
|
|
375
376
|
*
|
|
376
377
|
* @param {boolean} blocking
|
|
377
378
|
*/
|
|
378
379
|
decrement(t) {
|
|
379
|
-
|
|
380
|
-
|
|
380
|
+
$(this, wt, u(this, wt) - 1), t && $(this, Ft, u(this, Ft) - 1), !u(this, jt) && ($(this, jt, !0), Lt(() => {
|
|
381
|
+
$(this, jt, !1), L(this, oe, cr).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, Ht))
|
|
386
|
+
u(this, nt).delete(t), z(t, X), ze(t);
|
|
387
|
+
for (const t of u(this, nt))
|
|
388
|
+
z(t, Ae), ze(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, tt).add(t);
|
|
393
394
|
}
|
|
394
395
|
/** @param {(batch: Batch) => void} fn */
|
|
395
396
|
ondiscard(t) {
|
|
396
|
-
u(this,
|
|
397
|
+
u(this, Pt).add(t);
|
|
397
398
|
}
|
|
398
399
|
settled() {
|
|
399
|
-
return (u(this,
|
|
400
|
+
return (u(this, zt) ?? $(this, zt, mi())).promise;
|
|
400
401
|
}
|
|
401
402
|
static ensure() {
|
|
402
|
-
if (
|
|
403
|
-
const t =
|
|
404
|
-
|
|
405
|
-
|
|
403
|
+
if (O === null) {
|
|
404
|
+
const t = O = new Br();
|
|
405
|
+
kn.add(O), fn || Lt(() => {
|
|
406
|
+
O === t && t.flush();
|
|
406
407
|
});
|
|
407
408
|
}
|
|
408
|
-
return
|
|
409
|
+
return O;
|
|
409
410
|
}
|
|
410
411
|
apply() {
|
|
411
412
|
}
|
|
412
413
|
};
|
|
413
|
-
|
|
414
|
+
tt = new WeakMap(), Pt = new WeakMap(), wt = new WeakMap(), Ft = new WeakMap(), zt = new WeakMap(), Ht = new WeakMap(), nt = new WeakMap(), De = new WeakMap(), jt = new WeakMap(), oe = new WeakSet(), cr = function() {
|
|
415
|
+
return this.is_fork || u(this, Ft) > 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
|
+
dr = function(t, n, r) {
|
|
424
|
+
t.f ^= U;
|
|
425
|
+
for (var i = t.first; i !== null; ) {
|
|
426
|
+
var s = i.f, o = (s & (Ne | ct)) !== 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 & Qt) !== 0 ? n.push(i) : (s & (Ut | Tr)) !== 0 && a ? r.push(i) : gn(i) && (Zt(i), (s & ft) !== 0 && (u(this, nt).add(i), a && z(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
|
+
vr = function(t) {
|
|
446
448
|
for (var n = 0; n < t.length; n += 1)
|
|
447
|
-
|
|
448
|
-
},
|
|
449
|
-
var
|
|
450
|
-
if (
|
|
449
|
+
Si(t[n], u(this, Ht), u(this, nt));
|
|
450
|
+
}, hr = function() {
|
|
451
|
+
var s;
|
|
452
|
+
if (kn.size > 1) {
|
|
451
453
|
this.previous.clear();
|
|
452
|
-
var t =
|
|
453
|
-
for (const
|
|
454
|
-
if (
|
|
455
|
-
|
|
454
|
+
var t = O, n = ke, r = !0;
|
|
455
|
+
for (const o of kn) {
|
|
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
|
+
Ti(v, a, f, d);
|
|
478
|
+
if (ie.length > 0) {
|
|
479
|
+
O = o, o.apply();
|
|
480
|
+
for (const v of ie)
|
|
481
|
+
L(s = o, oe, dr).call(s, v, [], []);
|
|
482
|
+
o.deactivate();
|
|
481
483
|
}
|
|
482
|
-
|
|
484
|
+
ie = i;
|
|
483
485
|
}
|
|
484
486
|
}
|
|
485
|
-
|
|
487
|
+
O = t, ke = n;
|
|
486
488
|
}
|
|
487
|
-
this.
|
|
489
|
+
u(this, De).clear(), kn.delete(this);
|
|
488
490
|
};
|
|
489
|
-
let
|
|
490
|
-
function
|
|
491
|
-
var t =
|
|
492
|
-
|
|
491
|
+
let Ze = Br;
|
|
492
|
+
function we(e) {
|
|
493
|
+
var t = fn;
|
|
494
|
+
fn = !0;
|
|
493
495
|
try {
|
|
494
496
|
for (var n; ; ) {
|
|
495
|
-
if (
|
|
497
|
+
if (po(), ie.length === 0 && (O?.flush(), ie.length === 0))
|
|
496
498
|
return qn = null, /** @type {T} */
|
|
497
499
|
n;
|
|
498
|
-
|
|
500
|
+
ki();
|
|
499
501
|
}
|
|
500
502
|
} finally {
|
|
501
|
-
|
|
503
|
+
fn = t;
|
|
502
504
|
}
|
|
503
505
|
}
|
|
504
|
-
function
|
|
505
|
-
pr = !0;
|
|
506
|
+
function ki() {
|
|
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), ot.clear();
|
|
515
516
|
}
|
|
516
517
|
} finally {
|
|
517
|
-
|
|
518
|
+
ie = [], qn = null, Gt = null;
|
|
518
519
|
}
|
|
519
520
|
}
|
|
520
|
-
function
|
|
521
|
+
function mo() {
|
|
521
522
|
try {
|
|
522
|
-
|
|
523
|
+
io();
|
|
523
524
|
} catch (e) {
|
|
524
|
-
|
|
525
|
+
it(e, qn);
|
|
525
526
|
}
|
|
526
527
|
}
|
|
527
|
-
let
|
|
528
|
-
function
|
|
528
|
+
let We = null;
|
|
529
|
+
function ti(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 && gn(r) && (We = /* @__PURE__ */ new Set(), Zt(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && Ji(r), We?.size > 0)) {
|
|
535
|
+
ot.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 && Zt(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 Ti(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 ? Ti(
|
|
557
558
|
/** @type {Derived} */
|
|
558
559
|
i,
|
|
559
560
|
t,
|
|
560
561
|
n,
|
|
561
562
|
r
|
|
562
|
-
) : (s & (
|
|
563
|
+
) : (s & (Mr | ft)) !== 0 && (s & X) === 0 && Mi(i, t, r) && (z(i, X), ze(
|
|
563
564
|
/** @type {Effect} */
|
|
564
565
|
i
|
|
565
566
|
));
|
|
566
567
|
}
|
|
567
568
|
}
|
|
568
|
-
function
|
|
569
|
+
function Mi(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 (qt.call(t, i))
|
|
574
575
|
return !0;
|
|
575
|
-
if ((i.f &
|
|
576
|
+
if ((i.f & J) !== 0 && Mi(
|
|
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 ze(e) {
|
|
591
|
+
var t = qn = e, n = t.b;
|
|
592
|
+
if (n?.is_pending && (e.f & (Qt | Ut | Tr)) !== 0 && (e.f & Tt) === 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 (Gt !== null && t === S && (e.f & Ut) === 0)
|
|
594
600
|
return;
|
|
595
|
-
if ((
|
|
596
|
-
if ((
|
|
597
|
-
|
|
601
|
+
if ((r & (ct | Ne)) !== 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 Ai(e, t) {
|
|
610
|
+
if (!((e.f & Ne) !== 0 && (e.f & U) !== 0)) {
|
|
611
|
+
(e.f & X) !== 0 ? t.d.push(e) : (e.f & Ae) !== 0 && t.m.push(e), z(e, U);
|
|
605
612
|
for (var n = e.first; n !== null; )
|
|
606
|
-
|
|
613
|
+
Ai(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 = kt(0), r;
|
|
611
618
|
return () => {
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
t -= 1, t === 0 && (r?.(), r = void 0,
|
|
619
|
+
Dr() && (h(n), Ui(() => (t === 0 && (r = Hr(() => e(() => cn(n)))), t += 1, () => {
|
|
620
|
+
Lt(() => {
|
|
621
|
+
t -= 1, t === 0 && (r?.(), r = void 0, cn(n));
|
|
615
622
|
});
|
|
616
623
|
})));
|
|
617
624
|
};
|
|
618
625
|
}
|
|
619
|
-
var
|
|
620
|
-
function
|
|
621
|
-
new
|
|
626
|
+
var bo = Xt | Mt;
|
|
627
|
+
function yo(e, t, n, r) {
|
|
628
|
+
new $o(e, t, n, r);
|
|
622
629
|
}
|
|
623
|
-
var
|
|
624
|
-
class
|
|
630
|
+
var fe, vn, Le, bt, re, Pe, ce, Ce, Ue, yt, rt, Vt, Bt, Yt, Xe, Fn, P, Ri, Ni, Ii, pr, An, Rn, _r;
|
|
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
|
+
D(this, "parent");
|
|
642
|
+
D(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
|
+
D(this, "transform_error");
|
|
635
649
|
/** @type {TemplateNode} */
|
|
636
|
-
|
|
650
|
+
x(this, fe);
|
|
637
651
|
/** @type {TemplateNode | null} */
|
|
638
|
-
|
|
652
|
+
x(this, vn, A ? C : null);
|
|
639
653
|
/** @type {BoundaryProps} */
|
|
640
|
-
|
|
654
|
+
x(this, Le);
|
|
641
655
|
/** @type {((anchor: Node) => void)} */
|
|
642
|
-
|
|
656
|
+
x(this, bt);
|
|
643
657
|
/** @type {Effect} */
|
|
644
|
-
|
|
658
|
+
x(this, re);
|
|
645
659
|
/** @type {Effect | null} */
|
|
646
|
-
|
|
660
|
+
x(this, Pe, null);
|
|
647
661
|
/** @type {Effect | null} */
|
|
648
|
-
|
|
662
|
+
x(this, ce, null);
|
|
649
663
|
/** @type {Effect | null} */
|
|
650
|
-
|
|
664
|
+
x(this, Ce, null);
|
|
651
665
|
/** @type {DocumentFragment | null} */
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
666
|
+
x(this, Ue, null);
|
|
667
|
+
x(this, yt, 0);
|
|
668
|
+
x(this, rt, 0);
|
|
669
|
+
x(this, Vt, !1);
|
|
656
670
|
/** @type {Set<Effect>} */
|
|
657
|
-
|
|
671
|
+
x(this, Bt, /* @__PURE__ */ new Set());
|
|
658
672
|
/** @type {Set<Effect>} */
|
|
659
|
-
|
|
673
|
+
x(this, Yt, /* @__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, Fn, wo(() => ($(this, Xe, kt(u(this, yt))), () => {
|
|
683
|
+
$(this, Xe, null);
|
|
670
684
|
})));
|
|
671
|
-
|
|
672
|
-
var
|
|
685
|
+
$(this, fe, t), $(this, Le, n), $(this, bt, (s) => {
|
|
686
|
+
var o = (
|
|
673
687
|
/** @type {Effect} */
|
|
674
|
-
|
|
688
|
+
S
|
|
675
689
|
);
|
|
676
|
-
|
|
690
|
+
o.b = this, o.f |= ur, r(s);
|
|
677
691
|
}), this.parent = /** @type {Effect} */
|
|
678
|
-
|
|
692
|
+
S.b, this.transform_error = i ?? this.parent?.transform_error ?? ((s) => s), $(this, re, Lr(() => {
|
|
679
693
|
if (A) {
|
|
680
|
-
const
|
|
694
|
+
const s = (
|
|
681
695
|
/** @type {Comment} */
|
|
682
|
-
u(this,
|
|
696
|
+
u(this, vn)
|
|
683
697
|
);
|
|
684
|
-
|
|
698
|
+
Bn();
|
|
699
|
+
const o = s.data === Cr;
|
|
700
|
+
if (s.data.startsWith(Zr)) {
|
|
701
|
+
const a = JSON.parse(s.data.slice(Zr.length));
|
|
702
|
+
L(this, P, Ni).call(this, a);
|
|
703
|
+
} else o ? L(this, P, Ii).call(this) : L(this, P, Ri).call(this);
|
|
685
704
|
} else
|
|
686
|
-
|
|
687
|
-
},
|
|
705
|
+
L(this, P, pr).call(this);
|
|
706
|
+
}, bo)), A && $(this, fe, C);
|
|
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
|
-
|
|
713
|
+
Si(t, u(this, Bt), u(this, Yt));
|
|
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, Le).pending;
|
|
705
724
|
}
|
|
706
725
|
/**
|
|
707
726
|
* Update the source that powers `$effect.pending()` inside this boundary,
|
|
@@ -710,189 +729,229 @@ class So {
|
|
|
710
729
|
* @param {1 | -1} d
|
|
711
730
|
*/
|
|
712
731
|
update_pending_count(t) {
|
|
713
|
-
|
|
714
|
-
|
|
732
|
+
L(this, P, _r).call(this, t), $(this, yt, u(this, yt) + t), !(!u(this, Xe) || u(this, Vt)) && ($(this, Vt, !0), Lt(() => {
|
|
733
|
+
$(this, Vt, !1), u(this, Xe) && Kt(u(this, Xe), u(this, yt));
|
|
715
734
|
}));
|
|
716
735
|
}
|
|
717
736
|
get_effect_pending() {
|
|
718
|
-
return u(this,
|
|
737
|
+
return u(this, Fn).call(this), h(
|
|
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, Le).onerror;
|
|
745
|
+
let r = u(this, Le).failed;
|
|
727
746
|
if (!n && !r)
|
|
728
747
|
throw t;
|
|
729
|
-
u(this,
|
|
748
|
+
u(this, Pe) && (ee(u(this, Pe)), $(this, Pe, null)), u(this, ce) && (ee(u(this, ce)), $(this, ce, null)), u(this, Ce) && (ee(u(this, Ce)), $(this, Ce, null)), A && (ve(
|
|
730
749
|
/** @type {TemplateNode} */
|
|
731
|
-
u(this,
|
|
732
|
-
),
|
|
750
|
+
u(this, vn)
|
|
751
|
+
), co(), ve(Ln()));
|
|
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, Ce) !== null && xt(u(this, Ce), () => {
|
|
759
|
+
$(this, Ce, null);
|
|
760
|
+
}), L(this, P, Rn).call(this, () => {
|
|
761
|
+
Ze.ensure(), L(this, P, pr).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
|
+
it(f, u(this, re) && u(this, re).parent);
|
|
750
768
|
}
|
|
751
|
-
r &&
|
|
752
|
-
|
|
769
|
+
r && $(this, Ce, L(this, P, Rn).call(this, () => {
|
|
770
|
+
Ze.ensure();
|
|
753
771
|
try {
|
|
754
|
-
return
|
|
755
|
-
var
|
|
772
|
+
return me(() => {
|
|
773
|
+
var f = (
|
|
756
774
|
/** @type {Effect} */
|
|
757
|
-
|
|
775
|
+
S
|
|
758
776
|
);
|
|
759
|
-
|
|
760
|
-
u(this,
|
|
761
|
-
() =>
|
|
777
|
+
f.b = this, f.f |= ur, r(
|
|
778
|
+
u(this, fe),
|
|
779
|
+
() => a,
|
|
762
780
|
() => o
|
|
763
781
|
);
|
|
764
782
|
});
|
|
765
|
-
} catch (
|
|
766
|
-
return
|
|
767
|
-
|
|
783
|
+
} catch (f) {
|
|
784
|
+
return it(
|
|
785
|
+
f,
|
|
768
786
|
/** @type {Effect} */
|
|
769
|
-
u(this,
|
|
787
|
+
u(this, re).parent
|
|
770
788
|
), null;
|
|
771
789
|
}
|
|
772
790
|
}));
|
|
791
|
+
};
|
|
792
|
+
Lt(() => {
|
|
793
|
+
var a;
|
|
794
|
+
try {
|
|
795
|
+
a = this.transform_error(t);
|
|
796
|
+
} catch (f) {
|
|
797
|
+
it(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) => it(f, u(this, re) && u(this, re).parent)
|
|
805
|
+
) : l(a);
|
|
773
806
|
});
|
|
774
807
|
}
|
|
775
808
|
}
|
|
776
|
-
|
|
809
|
+
fe = new WeakMap(), vn = new WeakMap(), Le = new WeakMap(), bt = new WeakMap(), re = new WeakMap(), Pe = new WeakMap(), ce = new WeakMap(), Ce = new WeakMap(), Ue = new WeakMap(), yt = new WeakMap(), rt = new WeakMap(), Vt = new WeakMap(), Bt = new WeakMap(), Yt = new WeakMap(), Xe = new WeakMap(), Fn = new WeakMap(), P = new WeakSet(), Ri = function() {
|
|
777
810
|
try {
|
|
778
|
-
|
|
811
|
+
$(this, Pe, me(() => u(this, bt).call(this, u(this, fe))));
|
|
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
|
+
Ni = function(t) {
|
|
819
|
+
const n = u(this, Le).failed;
|
|
820
|
+
n && $(this, Ce, me(() => {
|
|
821
|
+
n(
|
|
822
|
+
u(this, fe),
|
|
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, Le).pending;
|
|
830
|
+
t && (this.is_pending = !0, $(this, ce, me(() => t(u(this, fe)))), Lt(() => {
|
|
831
|
+
var n = $(this, Ue, document.createDocumentFragment()), r = Re();
|
|
832
|
+
n.append(r), $(this, Pe, L(this, P, Rn).call(this, () => (Ze.ensure(), me(() => u(this, bt).call(this, r))))), u(this, rt) === 0 && (u(this, fe).before(n), $(this, Ue, null), xt(
|
|
787
833
|
/** @type {Effect} */
|
|
788
|
-
u(this,
|
|
834
|
+
u(this, ce),
|
|
789
835
|
() => {
|
|
790
|
-
|
|
836
|
+
$(this, ce, null);
|
|
791
837
|
}
|
|
792
|
-
), this
|
|
838
|
+
), L(this, P, An).call(this));
|
|
793
839
|
}));
|
|
794
|
-
},
|
|
840
|
+
}, pr = 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, rt, 0), $(this, yt, 0), $(this, Pe, me(() => {
|
|
843
|
+
u(this, bt).call(this, u(this, fe));
|
|
844
|
+
})), u(this, rt) > 0) {
|
|
845
|
+
var t = $(this, Ue, document.createDocumentFragment());
|
|
846
|
+
zr(u(this, Pe), t);
|
|
801
847
|
const n = (
|
|
802
848
|
/** @type {(anchor: Node) => void} */
|
|
803
|
-
u(this,
|
|
849
|
+
u(this, Le).pending
|
|
804
850
|
);
|
|
805
|
-
|
|
851
|
+
$(this, ce, me(() => n(u(this, fe))));
|
|
806
852
|
} else
|
|
807
|
-
this
|
|
853
|
+
L(this, P, An).call(this);
|
|
808
854
|
} catch (n) {
|
|
809
855
|
this.error(n);
|
|
810
856
|
}
|
|
857
|
+
}, An = function() {
|
|
858
|
+
this.is_pending = !1;
|
|
859
|
+
for (const t of u(this, Bt))
|
|
860
|
+
z(t, X), ze(t);
|
|
861
|
+
for (const t of u(this, Yt))
|
|
862
|
+
z(t, Ae), ze(t);
|
|
863
|
+
u(this, Bt).clear(), u(this, Yt).clear();
|
|
811
864
|
}, /**
|
|
812
865
|
* @template T
|
|
813
866
|
* @param {() => T} fn
|
|
814
867
|
*/
|
|
815
|
-
|
|
816
|
-
var n =
|
|
817
|
-
|
|
868
|
+
Rn = function(t) {
|
|
869
|
+
var n = S, r = E, i = te;
|
|
870
|
+
je(u(this, re)), $e(u(this, re)), Jt(u(this, re).ctx);
|
|
818
871
|
try {
|
|
819
872
|
return t();
|
|
820
873
|
} catch (s) {
|
|
821
|
-
return
|
|
874
|
+
return Ei(s), null;
|
|
822
875
|
} finally {
|
|
823
|
-
|
|
876
|
+
je(n), $e(r), Jt(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
|
+
_r = function(t) {
|
|
831
884
|
var n;
|
|
832
885
|
if (!this.has_pending_snippet()) {
|
|
833
|
-
this.parent &&
|
|
886
|
+
this.parent && L(n = this.parent, P, _r).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, rt, u(this, rt) + t), u(this, rt) === 0 && (L(this, P, An).call(this), u(this, ce) && xt(u(this, ce), () => {
|
|
890
|
+
$(this, ce, null);
|
|
891
|
+
}), u(this, Ue) && (u(this, fe).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 = Un;
|
|
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
|
-
|
|
857
|
-
),
|
|
858
|
-
function
|
|
859
|
-
|
|
902
|
+
S
|
|
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 && it(_, o);
|
|
864
910
|
}
|
|
865
|
-
|
|
911
|
+
gr();
|
|
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__ */ So(v))).then((v) => f([...t.map(i), ...v])).catch((v) => it(v, o));
|
|
873
919
|
}
|
|
874
|
-
|
|
920
|
+
a ? a.then(d) : d();
|
|
875
921
|
}
|
|
876
|
-
function
|
|
877
|
-
var e =
|
|
922
|
+
function Eo() {
|
|
923
|
+
var e = S, t = E, n = te, r = O;
|
|
878
924
|
return function(s = !0) {
|
|
879
|
-
|
|
925
|
+
je(e), $e(t), Jt(n), s && r?.activate();
|
|
880
926
|
};
|
|
881
927
|
}
|
|
882
|
-
function
|
|
883
|
-
|
|
928
|
+
function gr(e = !0) {
|
|
929
|
+
je(null), $e(null), Jt(null), e && O?.deactivate();
|
|
930
|
+
}
|
|
931
|
+
function Co() {
|
|
932
|
+
var e = (
|
|
933
|
+
/** @type {Boundary} */
|
|
934
|
+
/** @type {Effect} */
|
|
935
|
+
S.b
|
|
936
|
+
), t = (
|
|
937
|
+
/** @type {Batch} */
|
|
938
|
+
O
|
|
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 Un(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
|
|
892
|
-
ctx:
|
|
950
|
+
return S !== null && (S.f |= Mt), {
|
|
951
|
+
ctx: te,
|
|
893
952
|
deps: null,
|
|
894
953
|
effects: null,
|
|
895
|
-
equals:
|
|
954
|
+
equals: bi,
|
|
896
955
|
f: t,
|
|
897
956
|
fn: e,
|
|
898
957
|
reactions: null,
|
|
@@ -902,97 +961,89 @@ function Bn(e) {
|
|
|
902
961
|
q
|
|
903
962
|
),
|
|
904
963
|
wv: 0,
|
|
905
|
-
parent: n ??
|
|
964
|
+
parent: n ?? S,
|
|
906
965
|
ac: null
|
|
907
966
|
};
|
|
908
967
|
}
|
|
909
968
|
// @__NO_SIDE_EFFECTS__
|
|
910
|
-
function
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
C
|
|
914
|
-
);
|
|
915
|
-
r === null && ro();
|
|
969
|
+
function So(e, t, n) {
|
|
970
|
+
/** @type {Effect | null} */
|
|
971
|
+
S === 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 = kt(
|
|
924
977
|
/** @type {V} */
|
|
925
978
|
q
|
|
926
|
-
),
|
|
927
|
-
return
|
|
928
|
-
var
|
|
929
|
-
|
|
979
|
+
), o = !E, l = /* @__PURE__ */ new Map();
|
|
980
|
+
return Fo(() => {
|
|
981
|
+
var a = mi();
|
|
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(gr);
|
|
985
|
+
} catch (_) {
|
|
986
|
+
a.reject(_), gr();
|
|
936
987
|
}
|
|
937
|
-
var
|
|
988
|
+
var f = (
|
|
938
989
|
/** @type {Batch} */
|
|
939
|
-
|
|
990
|
+
O
|
|
940
991
|
);
|
|
941
|
-
if (
|
|
942
|
-
var
|
|
943
|
-
|
|
992
|
+
if (o) {
|
|
993
|
+
var d = Co();
|
|
994
|
+
l.get(f)?.reject(pt), l.delete(f), l.set(f, a);
|
|
944
995
|
}
|
|
945
|
-
const
|
|
946
|
-
if (
|
|
947
|
-
|
|
996
|
+
const v = (_, g = void 0) => {
|
|
997
|
+
if (f.activate(), g)
|
|
998
|
+
g !== pt && (s.f |= st, Kt(s, g));
|
|
948
999
|
else {
|
|
949
|
-
(
|
|
950
|
-
for (const [
|
|
951
|
-
if (
|
|
952
|
-
|
|
1000
|
+
(s.f & st) !== 0 && (s.f ^= st), Kt(s, _);
|
|
1001
|
+
for (const [c, b] of l) {
|
|
1002
|
+
if (l.delete(c), c === f) break;
|
|
1003
|
+
b.reject(pt);
|
|
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(pt);
|
|
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__ */
|
|
974
|
-
return
|
|
1023
|
+
function Tn(e) {
|
|
1024
|
+
const t = /* @__PURE__ */ Un(e);
|
|
1025
|
+
return Zi(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__ */ Un(e);
|
|
1030
|
+
return t.equals = yi, 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,126 +1051,126 @@ function Io(e) {
|
|
|
1000
1051
|
}
|
|
1001
1052
|
return null;
|
|
1002
1053
|
}
|
|
1003
|
-
function
|
|
1004
|
-
var t, n =
|
|
1005
|
-
|
|
1054
|
+
function Nr(e) {
|
|
1055
|
+
var t, n = S;
|
|
1056
|
+
je(Mo(e));
|
|
1006
1057
|
try {
|
|
1007
|
-
e.f &= ~
|
|
1058
|
+
e.f &= ~St, To(e), t = ns(e);
|
|
1008
1059
|
} finally {
|
|
1009
|
-
|
|
1060
|
+
je(n);
|
|
1010
1061
|
}
|
|
1011
1062
|
return t;
|
|
1012
1063
|
}
|
|
1013
|
-
function
|
|
1014
|
-
var t =
|
|
1015
|
-
if (!e.equals(t) && (e.wv =
|
|
1016
|
-
|
|
1064
|
+
function Oi(e) {
|
|
1065
|
+
var t = Nr(e);
|
|
1066
|
+
if (!e.equals(t) && (e.wv = es(), (!O?.is_fork || e.deps === null) && (e.v = t, e.deps === null))) {
|
|
1067
|
+
z(e, U);
|
|
1017
1068
|
return;
|
|
1018
1069
|
}
|
|
1019
|
-
|
|
1070
|
+
ut || (ke !== null ? (Dr() || O?.is_fork) && ke.set(e, t) : Rr(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(pt), t.teardown = qs, t.ac = null, dn(t, 0), Pr(t));
|
|
1025
1076
|
}
|
|
1026
|
-
function
|
|
1077
|
+
function Di(e) {
|
|
1027
1078
|
if (e.effects !== null)
|
|
1028
1079
|
for (const t of e.effects)
|
|
1029
|
-
t.teardown &&
|
|
1080
|
+
t.teardown && Zt(t);
|
|
1030
1081
|
}
|
|
1031
|
-
let
|
|
1032
|
-
const
|
|
1033
|
-
let
|
|
1034
|
-
function
|
|
1082
|
+
let mr = /* @__PURE__ */ new Set();
|
|
1083
|
+
const ot = /* @__PURE__ */ new Map();
|
|
1084
|
+
let Li = !1;
|
|
1085
|
+
function kt(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: bi,
|
|
1041
1092
|
rv: 0,
|
|
1042
1093
|
wv: 0
|
|
1043
1094
|
};
|
|
1044
1095
|
return n;
|
|
1045
1096
|
}
|
|
1046
1097
|
// @__NO_SIDE_EFFECTS__
|
|
1047
|
-
function
|
|
1048
|
-
const n =
|
|
1049
|
-
return
|
|
1098
|
+
function j(e, t) {
|
|
1099
|
+
const n = kt(e);
|
|
1100
|
+
return Zi(n), n;
|
|
1050
1101
|
}
|
|
1051
1102
|
// @__NO_SIDE_EFFECTS__
|
|
1052
|
-
function
|
|
1053
|
-
const r =
|
|
1054
|
-
return t || (r.equals =
|
|
1103
|
+
function Pi(e, t = !1, n = !0) {
|
|
1104
|
+
const r = kt(e);
|
|
1105
|
+
return t || (r.equals = yi), 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
|
+
(!Te || (E.f & ei) !== 0) && $i() && (E.f & (J | ft | Mr | ei)) !== 0 && (ye === null || !qt.call(ye, e)) && ao();
|
|
1111
|
+
let r = n ? Ot(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
|
+
ut ? ot.set(e, t) : ot.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 && Nr(i), Rr(i);
|
|
1074
1125
|
}
|
|
1075
|
-
e.wv =
|
|
1126
|
+
e.wv = es(), Fi(e, X), S !== null && (S.f & U) !== 0 && (S.f & (Ne | ct)) === 0 && (_e === null ? jo([e]) : _e.push(e)), !r.is_fork && mr.size > 0 && !Li && Ro();
|
|
1076
1127
|
}
|
|
1077
1128
|
return t;
|
|
1078
1129
|
}
|
|
1079
|
-
function
|
|
1080
|
-
|
|
1081
|
-
for (const e of
|
|
1082
|
-
(e.f &
|
|
1083
|
-
|
|
1130
|
+
function Ro() {
|
|
1131
|
+
Li = !1;
|
|
1132
|
+
for (const e of mr)
|
|
1133
|
+
(e.f & U) !== 0 && z(e, Ae), gn(e) && Zt(e);
|
|
1134
|
+
mr.clear();
|
|
1084
1135
|
}
|
|
1085
|
-
function
|
|
1086
|
-
|
|
1136
|
+
function cn(e) {
|
|
1137
|
+
R(e, e.v + 1);
|
|
1087
1138
|
}
|
|
1088
|
-
function
|
|
1139
|
+
function Fi(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 && z(s, t), (o & J) !== 0) {
|
|
1094
1145
|
var a = (
|
|
1095
1146
|
/** @type {Derived} */
|
|
1096
1147
|
s
|
|
1097
1148
|
);
|
|
1098
|
-
|
|
1099
|
-
} else l && ((o &
|
|
1149
|
+
ke?.delete(a), (o & St) === 0 && (o & be && (s.f |= St), Fi(a, Ae));
|
|
1150
|
+
} else l && ((o & ft) !== 0 && We !== null && We.add(
|
|
1100
1151
|
/** @type {Effect} */
|
|
1101
1152
|
s
|
|
1102
|
-
),
|
|
1153
|
+
), ze(
|
|
1103
1154
|
/** @type {Effect} */
|
|
1104
1155
|
s
|
|
1105
1156
|
));
|
|
1106
1157
|
}
|
|
1107
1158
|
}
|
|
1108
|
-
function
|
|
1109
|
-
if (typeof e != "object" || e === null ||
|
|
1159
|
+
function Ot(e) {
|
|
1160
|
+
if (typeof e != "object" || e === null || lr in e)
|
|
1110
1161
|
return e;
|
|
1111
|
-
const t =
|
|
1112
|
-
if (t !==
|
|
1162
|
+
const t = gi(e);
|
|
1163
|
+
if (t !== Ys && t !== Ws)
|
|
1113
1164
|
return e;
|
|
1114
|
-
var n = /* @__PURE__ */ new Map(), r = kr(e), i = /* @__PURE__ */
|
|
1115
|
-
if (
|
|
1165
|
+
var n = /* @__PURE__ */ new Map(), r = kr(e), i = /* @__PURE__ */ j(0), s = Et, o = (l) => {
|
|
1166
|
+
if (Et === s)
|
|
1116
1167
|
return l();
|
|
1117
|
-
var a =
|
|
1118
|
-
|
|
1119
|
-
var
|
|
1120
|
-
return
|
|
1168
|
+
var a = E, f = Et;
|
|
1169
|
+
$e(null), ii(s);
|
|
1170
|
+
var d = l();
|
|
1171
|
+
return $e(a), ii(f), d;
|
|
1121
1172
|
};
|
|
1122
|
-
return r && n.set("length", /* @__PURE__ */
|
|
1173
|
+
return r && n.set("length", /* @__PURE__ */ j(
|
|
1123
1174
|
/** @type {any[]} */
|
|
1124
1175
|
e.length
|
|
1125
1176
|
)), new Proxy(
|
|
@@ -1127,386 +1178,388 @@ 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__ */ j(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__ */ j(q));
|
|
1193
|
+
n.set(a, d), cn(i);
|
|
1143
1194
|
}
|
|
1144
1195
|
} else
|
|
1145
|
-
|
|
1196
|
+
R(f, q), cn(i);
|
|
1146
1197
|
return !0;
|
|
1147
1198
|
},
|
|
1148
1199
|
get(l, a, f) {
|
|
1149
|
-
if (a ===
|
|
1200
|
+
if (a === lr)
|
|
1150
1201
|
return e;
|
|
1151
|
-
var
|
|
1152
|
-
if (
|
|
1153
|
-
var g =
|
|
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 || Dt(l, a)?.writable) && (d = o(() => {
|
|
1204
|
+
var g = Ot(v ? l[a] : q), c = /* @__PURE__ */ j(g);
|
|
1205
|
+
return c;
|
|
1206
|
+
}), n.set(a, d)), d !== void 0) {
|
|
1207
|
+
var _ = h(d);
|
|
1208
|
+
return _ === q ? 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 = h(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 && _ !== q)
|
|
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 === lr)
|
|
1180
1231
|
return !0;
|
|
1181
|
-
var f = n.get(a),
|
|
1182
|
-
if (f !== void 0 ||
|
|
1232
|
+
var f = n.get(a), d = f !== void 0 && f.v !== q || Reflect.has(l, a);
|
|
1233
|
+
if (f !== void 0 || S !== null && (!d || Dt(l, a)?.writable)) {
|
|
1183
1234
|
f === void 0 && (f = o(() => {
|
|
1184
|
-
var
|
|
1235
|
+
var _ = d ? Ot(l[a]) : q, g = /* @__PURE__ */ j(_);
|
|
1185
1236
|
return g;
|
|
1186
1237
|
}), n.set(a, f));
|
|
1187
|
-
var
|
|
1188
|
-
if (
|
|
1238
|
+
var v = h(f);
|
|
1239
|
+
if (v === q)
|
|
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
1247
|
for (var g = f; g < /** @type {Source<number>} */
|
|
1197
|
-
|
|
1198
|
-
var
|
|
1199
|
-
|
|
1248
|
+
v.v; g += 1) {
|
|
1249
|
+
var c = n.get(g + "");
|
|
1250
|
+
c !== void 0 ? R(c, q) : g in l && (c = o(() => /* @__PURE__ */ j(q)), n.set(g + "", c));
|
|
1200
1251
|
}
|
|
1201
|
-
if (
|
|
1202
|
-
(!
|
|
1252
|
+
if (v === void 0)
|
|
1253
|
+
(!_ || Dt(l, a)?.writable) && (v = o(() => /* @__PURE__ */ j(void 0)), R(v, Ot(f)), n.set(a, v));
|
|
1203
1254
|
else {
|
|
1204
|
-
|
|
1205
|
-
var b = o(() =>
|
|
1206
|
-
|
|
1255
|
+
_ = v.v !== q;
|
|
1256
|
+
var b = o(() => Ot(f));
|
|
1257
|
+
R(v, b);
|
|
1207
1258
|
}
|
|
1208
|
-
var
|
|
1209
|
-
if (
|
|
1259
|
+
var m = Reflect.getOwnPropertyDescriptor(l, a);
|
|
1260
|
+
if (m?.set && m.set.call(d, f), !_) {
|
|
1210
1261
|
if (r && typeof a == "string") {
|
|
1211
|
-
var
|
|
1262
|
+
var w = (
|
|
1212
1263
|
/** @type {Source<number>} */
|
|
1213
1264
|
n.get("length")
|
|
1214
|
-
),
|
|
1215
|
-
Number.isInteger(
|
|
1265
|
+
), N = Number(a);
|
|
1266
|
+
Number.isInteger(N) && N >= w.v && R(w, N + 1);
|
|
1216
1267
|
}
|
|
1217
|
-
|
|
1268
|
+
cn(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
|
+
h(i);
|
|
1274
|
+
var a = Reflect.ownKeys(l).filter((v) => {
|
|
1275
|
+
var _ = n.get(v);
|
|
1276
|
+
return _ === void 0 || _.v !== q;
|
|
1226
1277
|
});
|
|
1227
|
-
for (var [f,
|
|
1228
|
-
|
|
1278
|
+
for (var [f, d] of n)
|
|
1279
|
+
d.v !== q && !(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 ni, zi, Hi, ji;
|
|
1289
|
+
function wr() {
|
|
1290
|
+
if (ni === void 0) {
|
|
1291
|
+
ni = window, zi = /Firefox/.test(navigator.userAgent);
|
|
1241
1292
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
1242
|
-
|
|
1293
|
+
Hi = Dt(t, "firstChild").get, ji = Dt(t, "nextSibling").get, Qr(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Qr(n) && (n.__t = void 0);
|
|
1243
1294
|
}
|
|
1244
1295
|
}
|
|
1245
|
-
function
|
|
1296
|
+
function Re(e = "") {
|
|
1246
1297
|
return document.createTextNode(e);
|
|
1247
1298
|
}
|
|
1248
1299
|
// @__NO_SIDE_EFFECTS__
|
|
1249
|
-
function
|
|
1300
|
+
function at(e) {
|
|
1250
1301
|
return (
|
|
1251
1302
|
/** @type {TemplateNode | null} */
|
|
1252
|
-
|
|
1303
|
+
Hi.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
|
+
ji.call(e)
|
|
1260
1311
|
);
|
|
1261
1312
|
}
|
|
1262
|
-
function
|
|
1313
|
+
function M(e, t) {
|
|
1263
1314
|
if (!A)
|
|
1264
|
-
return /* @__PURE__ */
|
|
1265
|
-
var n = /* @__PURE__ */
|
|
1315
|
+
return /* @__PURE__ */ at(e);
|
|
1316
|
+
var n = /* @__PURE__ */ at(C);
|
|
1266
1317
|
if (n === null)
|
|
1267
|
-
n =
|
|
1268
|
-
else if (t && n.nodeType !==
|
|
1269
|
-
var r =
|
|
1270
|
-
return n?.before(r),
|
|
1318
|
+
n = C.appendChild(Re());
|
|
1319
|
+
else if (t && n.nodeType !== jn) {
|
|
1320
|
+
var r = Re();
|
|
1321
|
+
return n?.before(r), ve(r), r;
|
|
1271
1322
|
}
|
|
1272
|
-
return t &&
|
|
1323
|
+
return t && Or(
|
|
1273
1324
|
/** @type {Text} */
|
|
1274
1325
|
n
|
|
1275
|
-
),
|
|
1326
|
+
), ve(n), n;
|
|
1276
1327
|
}
|
|
1277
|
-
function
|
|
1328
|
+
function br(e, t = !1) {
|
|
1278
1329
|
if (!A) {
|
|
1279
|
-
var n = /* @__PURE__ */
|
|
1280
|
-
return n instanceof Comment && n.data === "" ? /* @__PURE__ */
|
|
1330
|
+
var n = /* @__PURE__ */ at(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 (C?.nodeType !== jn) {
|
|
1335
|
+
var r = Re();
|
|
1336
|
+
return C?.before(r), ve(r), r;
|
|
1286
1337
|
}
|
|
1287
|
-
|
|
1338
|
+
Or(
|
|
1288
1339
|
/** @type {Text} */
|
|
1289
|
-
|
|
1340
|
+
C
|
|
1290
1341
|
);
|
|
1291
1342
|
}
|
|
1292
|
-
return
|
|
1343
|
+
return C;
|
|
1293
1344
|
}
|
|
1294
|
-
function
|
|
1295
|
-
let r = A ?
|
|
1345
|
+
function k(e, t = 1, n = !1) {
|
|
1346
|
+
let r = A ? C : e;
|
|
1296
1347
|
for (var i; t--; )
|
|
1297
1348
|
i = r, r = /** @type {TemplateNode} */
|
|
1298
|
-
/* @__PURE__ */
|
|
1349
|
+
/* @__PURE__ */ Ve(r);
|
|
1299
1350
|
if (!A)
|
|
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 !== jn) {
|
|
1354
|
+
var s = Re();
|
|
1355
|
+
return r === null ? i?.after(s) : r.before(s), ve(s), s;
|
|
1305
1356
|
}
|
|
1306
|
-
|
|
1357
|
+
Or(
|
|
1307
1358
|
/** @type {Text} */
|
|
1308
1359
|
r
|
|
1309
1360
|
);
|
|
1310
1361
|
}
|
|
1311
|
-
return
|
|
1362
|
+
return ve(r), r;
|
|
1312
1363
|
}
|
|
1313
|
-
function
|
|
1364
|
+
function Vi(e) {
|
|
1314
1365
|
e.textContent = "";
|
|
1315
1366
|
}
|
|
1316
|
-
function
|
|
1367
|
+
function Bi() {
|
|
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(_i, e, void 0)
|
|
1323
1374
|
);
|
|
1324
1375
|
}
|
|
1325
|
-
function
|
|
1376
|
+
function Or(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 === jn; )
|
|
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 Yi(e) {
|
|
1388
|
+
var t = E, n = S;
|
|
1389
|
+
$e(null), je(null);
|
|
1339
1390
|
try {
|
|
1340
1391
|
return e();
|
|
1341
1392
|
} finally {
|
|
1342
|
-
|
|
1393
|
+
$e(t), je(n);
|
|
1343
1394
|
}
|
|
1344
1395
|
}
|
|
1345
|
-
function
|
|
1346
|
-
|
|
1396
|
+
function No(e) {
|
|
1397
|
+
S === null && (E === null && ro(), no()), ut && to();
|
|
1347
1398
|
}
|
|
1348
|
-
function
|
|
1399
|
+
function Io(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 = S;
|
|
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 | be,
|
|
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 & Qt) !== 0)
|
|
1423
|
+
Gt !== null ? Gt.push(r) : ze(r);
|
|
1424
|
+
else if (t !== null) {
|
|
1372
1425
|
try {
|
|
1373
|
-
|
|
1374
|
-
} catch (
|
|
1375
|
-
throw
|
|
1376
|
-
}
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
var
|
|
1426
|
+
Zt(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 & Mt) === 0 && (i = i.first, (e & ft) !== 0 && (e & Xt) !== 0 && i !== null && (i.f |= Xt));
|
|
1432
|
+
}
|
|
1433
|
+
if (i !== null && (i.parent = n, n !== null && Io(i, n), E !== null && (E.f & J) !== 0 && (e & ct) === 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 Dr() {
|
|
1443
|
+
return E !== null && !Te;
|
|
1391
1444
|
}
|
|
1392
|
-
function
|
|
1393
|
-
const t =
|
|
1394
|
-
return
|
|
1445
|
+
function Oo(e) {
|
|
1446
|
+
const t = Be(Ut, null);
|
|
1447
|
+
return z(t, U), t.teardown = e, t;
|
|
1395
1448
|
}
|
|
1396
|
-
function
|
|
1397
|
-
|
|
1449
|
+
function Wi(e) {
|
|
1450
|
+
No();
|
|
1398
1451
|
var t = (
|
|
1399
1452
|
/** @type {Effect} */
|
|
1400
|
-
|
|
1401
|
-
), n =
|
|
1453
|
+
S.f
|
|
1454
|
+
), n = !E && (t & Ne) !== 0 && (t & Tt) === 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
1462
|
return qi(e);
|
|
1410
1463
|
}
|
|
1411
1464
|
function qi(e) {
|
|
1412
|
-
return
|
|
1465
|
+
return Be(Qt | Js, e);
|
|
1413
1466
|
}
|
|
1414
|
-
function
|
|
1415
|
-
|
|
1416
|
-
const t =
|
|
1467
|
+
function Do(e) {
|
|
1468
|
+
Ze.ensure();
|
|
1469
|
+
const t = Be(ct | Mt, e);
|
|
1417
1470
|
return () => {
|
|
1418
|
-
|
|
1471
|
+
ee(t);
|
|
1419
1472
|
};
|
|
1420
1473
|
}
|
|
1421
|
-
function
|
|
1422
|
-
|
|
1423
|
-
const t =
|
|
1474
|
+
function Lo(e) {
|
|
1475
|
+
Ze.ensure();
|
|
1476
|
+
const t = Be(ct | Mt, e);
|
|
1424
1477
|
return (n = {}) => new Promise((r) => {
|
|
1425
|
-
n.outro ?
|
|
1426
|
-
|
|
1427
|
-
}) : (
|
|
1478
|
+
n.outro ? xt(t, () => {
|
|
1479
|
+
ee(t), r(void 0);
|
|
1480
|
+
}) : (ee(t), r(void 0));
|
|
1428
1481
|
});
|
|
1429
1482
|
}
|
|
1430
|
-
function
|
|
1431
|
-
return
|
|
1483
|
+
function Po(e) {
|
|
1484
|
+
return Be(Qt, e);
|
|
1432
1485
|
}
|
|
1433
|
-
function
|
|
1434
|
-
return
|
|
1486
|
+
function Fo(e) {
|
|
1487
|
+
return Be(Mr | Mt, e);
|
|
1435
1488
|
}
|
|
1436
|
-
function
|
|
1437
|
-
return
|
|
1489
|
+
function Ui(e, t = 0) {
|
|
1490
|
+
return Be(Ut | t, e);
|
|
1438
1491
|
}
|
|
1439
|
-
function
|
|
1440
|
-
|
|
1441
|
-
|
|
1492
|
+
function Oe(e, t = [], n = [], r = []) {
|
|
1493
|
+
xo(r, t, n, (i) => {
|
|
1494
|
+
Be(Ut, () => e(...i.map(h)));
|
|
1442
1495
|
});
|
|
1443
1496
|
}
|
|
1444
1497
|
function Lr(e, t = 0) {
|
|
1445
|
-
var n =
|
|
1498
|
+
var n = Be(ft | t, e);
|
|
1446
1499
|
return n;
|
|
1447
1500
|
}
|
|
1448
|
-
function
|
|
1449
|
-
return
|
|
1501
|
+
function me(e) {
|
|
1502
|
+
return Be(Ne | Mt, e);
|
|
1450
1503
|
}
|
|
1451
1504
|
function Xi(e) {
|
|
1452
1505
|
var t = e.teardown;
|
|
1453
1506
|
if (t !== null) {
|
|
1454
|
-
const n =
|
|
1455
|
-
|
|
1507
|
+
const n = ut, r = E;
|
|
1508
|
+
ri(!0), $e(null);
|
|
1456
1509
|
try {
|
|
1457
1510
|
t.call(null);
|
|
1458
1511
|
} finally {
|
|
1459
|
-
|
|
1512
|
+
ri(n), $e(r);
|
|
1460
1513
|
}
|
|
1461
1514
|
}
|
|
1462
1515
|
}
|
|
1463
|
-
function
|
|
1516
|
+
function Pr(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 && Yi(() => {
|
|
1521
|
+
i.abort(pt);
|
|
1469
1522
|
});
|
|
1470
1523
|
var r = n.next;
|
|
1471
|
-
(n.f &
|
|
1524
|
+
(n.f & ct) !== 0 ? n.parent = null : ee(n, t), n = r;
|
|
1472
1525
|
}
|
|
1473
1526
|
}
|
|
1474
|
-
function
|
|
1527
|
+
function zo(e) {
|
|
1475
1528
|
for (var t = e.first; t !== null; ) {
|
|
1476
1529
|
var n = t.next;
|
|
1477
|
-
(t.f &
|
|
1530
|
+
(t.f & Ne) === 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),
|
|
1539
|
+
), n = !0), Pr(e, t && !n), dn(e, 0), z(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
|
Xi(e);
|
|
1492
1545
|
var i = e.parent;
|
|
1493
|
-
i !== null && i.first !== null &&
|
|
1546
|
+
i !== null && i.first !== null && Ji(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
|
}
|
|
1501
|
-
function
|
|
1554
|
+
function Ji(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 xt(e, t, n = !0) {
|
|
1506
1559
|
var r = [];
|
|
1507
|
-
|
|
1560
|
+
Gi(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 Gi(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 & Xt) !== 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 & Ne) !== 0 && (e.f & ft) !== 0;
|
|
1583
|
+
Gi(i, t, o ? n : !1), i = s;
|
|
1531
1584
|
}
|
|
1532
1585
|
}
|
|
1533
1586
|
}
|
|
1534
1587
|
function Fr(e) {
|
|
1535
|
-
|
|
1588
|
+
Ki(e, !0);
|
|
1536
1589
|
}
|
|
1537
|
-
function
|
|
1538
|
-
if ((e.f &
|
|
1539
|
-
e.f ^=
|
|
1590
|
+
function Ki(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 & Xt) !== 0 || (n.f & Ne) !== 0;
|
|
1595
|
+
Ki(n, i ? t : !1), n = r;
|
|
1543
1596
|
}
|
|
1544
1597
|
var s = e.nodes && e.nodes.t;
|
|
1545
1598
|
if (s !== null)
|
|
@@ -1547,252 +1600,252 @@ function Gi(e, t) {
|
|
|
1547
1600
|
(o.is_global || t) && o.in();
|
|
1548
1601
|
}
|
|
1549
1602
|
}
|
|
1550
|
-
function
|
|
1603
|
+
function zr(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 Nn = !1, ut = !1;
|
|
1611
|
+
function ri(e) {
|
|
1612
|
+
ut = e;
|
|
1560
1613
|
}
|
|
1561
|
-
let
|
|
1562
|
-
function
|
|
1563
|
-
|
|
1614
|
+
let E = null, Te = !1;
|
|
1615
|
+
function $e(e) {
|
|
1616
|
+
E = e;
|
|
1564
1617
|
}
|
|
1565
|
-
let
|
|
1566
|
-
function
|
|
1567
|
-
|
|
1618
|
+
let S = null;
|
|
1619
|
+
function je(e) {
|
|
1620
|
+
S = e;
|
|
1568
1621
|
}
|
|
1569
|
-
let
|
|
1570
|
-
function
|
|
1571
|
-
|
|
1622
|
+
let ye = null;
|
|
1623
|
+
function Zi(e) {
|
|
1624
|
+
E !== null && (ye === null ? ye = [e] : ye.push(e));
|
|
1572
1625
|
}
|
|
1573
|
-
let
|
|
1574
|
-
function
|
|
1575
|
-
|
|
1626
|
+
let se = null, ue = 0, _e = null;
|
|
1627
|
+
function jo(e) {
|
|
1628
|
+
_e = e;
|
|
1576
1629
|
}
|
|
1577
|
-
let
|
|
1578
|
-
function
|
|
1579
|
-
|
|
1630
|
+
let Qi = 1, gt = 0, Et = gt;
|
|
1631
|
+
function ii(e) {
|
|
1632
|
+
Et = e;
|
|
1580
1633
|
}
|
|
1581
|
-
function
|
|
1582
|
-
return ++
|
|
1634
|
+
function es() {
|
|
1635
|
+
return ++Qi;
|
|
1583
1636
|
}
|
|
1584
|
-
function
|
|
1637
|
+
function gn(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 &= ~St), (t & Ae) !== 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 (gn(
|
|
1595
1648
|
/** @type {Derived} */
|
|
1596
1649
|
s
|
|
1597
|
-
) &&
|
|
1650
|
+
) && Oi(
|
|
1598
1651
|
/** @type {Derived} */
|
|
1599
1652
|
s
|
|
1600
1653
|
), s.wv > e.wv)
|
|
1601
1654
|
return !0;
|
|
1602
1655
|
}
|
|
1603
|
-
(t &
|
|
1656
|
+
(t & be) !== 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
|
+
ke === null && z(e, U);
|
|
1606
1659
|
}
|
|
1607
1660
|
return !1;
|
|
1608
1661
|
}
|
|
1609
|
-
function
|
|
1662
|
+
function ts(e, t, n = !0) {
|
|
1610
1663
|
var r = e.reactions;
|
|
1611
|
-
if (r !== null && !(
|
|
1664
|
+
if (r !== null && !(ye !== null && qt.call(ye, 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 ? ts(
|
|
1615
1668
|
/** @type {Derived} */
|
|
1616
1669
|
s,
|
|
1617
1670
|
t,
|
|
1618
1671
|
!1
|
|
1619
|
-
) : t === s && (n ?
|
|
1672
|
+
) : t === s && (n ? z(s, X) : (s.f & U) !== 0 && z(s, Ae), ze(
|
|
1620
1673
|
/** @type {Effect} */
|
|
1621
1674
|
s
|
|
1622
1675
|
));
|
|
1623
1676
|
}
|
|
1624
1677
|
}
|
|
1625
|
-
function
|
|
1678
|
+
function ns(e) {
|
|
1626
1679
|
var b;
|
|
1627
|
-
var t =
|
|
1628
|
-
|
|
1629
|
-
null,
|
|
1630
|
-
e.ac.abort(
|
|
1680
|
+
var t = se, n = ue, r = _e, i = E, s = ye, o = te, l = Te, a = Et, f = e.f;
|
|
1681
|
+
se = /** @type {null | Value[]} */
|
|
1682
|
+
null, ue = 0, _e = null, E = (f & (Ne | ct)) === 0 ? e : null, ye = null, Jt(e.ctx), Te = !1, Et = ++gt, e.ac !== null && (Yi(() => {
|
|
1683
|
+
e.ac.abort(pt);
|
|
1631
1684
|
}), e.ac = null);
|
|
1632
1685
|
try {
|
|
1633
|
-
e.f |=
|
|
1634
|
-
var
|
|
1686
|
+
e.f |= fr;
|
|
1687
|
+
var d = (
|
|
1635
1688
|
/** @type {Function} */
|
|
1636
1689
|
e.fn
|
|
1637
|
-
),
|
|
1638
|
-
e.f |=
|
|
1639
|
-
var
|
|
1640
|
-
if (
|
|
1641
|
-
var
|
|
1642
|
-
if (g ||
|
|
1643
|
-
for (
|
|
1644
|
-
|
|
1690
|
+
), v = d();
|
|
1691
|
+
e.f |= Tt;
|
|
1692
|
+
var _ = e.deps, g = O?.is_fork;
|
|
1693
|
+
if (se !== null) {
|
|
1694
|
+
var c;
|
|
1695
|
+
if (g || dn(e, ue), _ !== null && ue > 0)
|
|
1696
|
+
for (_.length = ue + se.length, c = 0; c < se.length; c++)
|
|
1697
|
+
_[ue + c] = se[c];
|
|
1645
1698
|
else
|
|
1646
|
-
e.deps =
|
|
1647
|
-
if (
|
|
1648
|
-
for (
|
|
1649
|
-
((b =
|
|
1650
|
-
} else !g &&
|
|
1651
|
-
if (
|
|
1652
|
-
for (
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1699
|
+
e.deps = _ = se;
|
|
1700
|
+
if (Dr() && (e.f & be) !== 0)
|
|
1701
|
+
for (c = ue; c < _.length; c++)
|
|
1702
|
+
((b = _[c]).reactions ?? (b.reactions = [])).push(e);
|
|
1703
|
+
} else !g && _ !== null && ue < _.length && (dn(e, ue), _.length = ue);
|
|
1704
|
+
if ($i() && _e !== null && !Te && _ !== null && (e.f & (J | Ae | X)) === 0)
|
|
1705
|
+
for (c = 0; c < /** @type {Source[]} */
|
|
1706
|
+
_e.length; c++)
|
|
1707
|
+
ts(
|
|
1708
|
+
_e[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 (gt++, i.deps !== null)
|
|
1714
|
+
for (let m = 0; m < n; m += 1)
|
|
1715
|
+
i.deps[m].rv = gt;
|
|
1663
1716
|
if (t !== null)
|
|
1664
|
-
for (const
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
}
|
|
1669
|
-
return (e.f &
|
|
1670
|
-
} catch (
|
|
1671
|
-
return
|
|
1717
|
+
for (const m of t)
|
|
1718
|
+
m.rv = gt;
|
|
1719
|
+
_e !== null && (r === null ? r = _e : r.push(.../** @type {Source[]} */
|
|
1720
|
+
_e));
|
|
1721
|
+
}
|
|
1722
|
+
return (e.f & st) !== 0 && (e.f ^= st), v;
|
|
1723
|
+
} catch (m) {
|
|
1724
|
+
return Ei(m);
|
|
1672
1725
|
} finally {
|
|
1673
|
-
e.f ^=
|
|
1726
|
+
e.f ^= fr, se = t, ue = n, _e = r, E = i, ye = s, Jt(o), Te = l, Et = 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 || !qt.call(se, t))) {
|
|
1689
1742
|
var s = (
|
|
1690
1743
|
/** @type {Derived} */
|
|
1691
1744
|
t
|
|
1692
1745
|
);
|
|
1693
|
-
(s.f &
|
|
1746
|
+
(s.f & be) !== 0 && (s.f ^= be, s.f &= ~St), Rr(s), Ao(s), dn(s, 0);
|
|
1694
1747
|
}
|
|
1695
1748
|
}
|
|
1696
|
-
function
|
|
1749
|
+
function dn(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 Zt(e) {
|
|
1703
1756
|
var t = e.f;
|
|
1704
|
-
if ((t &
|
|
1705
|
-
|
|
1706
|
-
var n =
|
|
1707
|
-
|
|
1757
|
+
if ((t & He) === 0) {
|
|
1758
|
+
z(e, U);
|
|
1759
|
+
var n = S, r = Nn;
|
|
1760
|
+
S = e, Nn = !0;
|
|
1708
1761
|
try {
|
|
1709
|
-
(t & (
|
|
1710
|
-
var i =
|
|
1711
|
-
e.teardown = typeof i == "function" ? i : null, e.wv =
|
|
1762
|
+
(t & (ft | Tr)) !== 0 ? zo(e) : Pr(e), Xi(e);
|
|
1763
|
+
var i = ns(e);
|
|
1764
|
+
e.teardown = typeof i == "function" ? i : null, e.wv = Qi;
|
|
1712
1765
|
var s;
|
|
1713
|
-
|
|
1766
|
+
ar && ho && (e.f & X) !== 0 && e.deps;
|
|
1714
1767
|
} finally {
|
|
1715
|
-
|
|
1768
|
+
Nn = r, S = n;
|
|
1716
1769
|
}
|
|
1717
1770
|
}
|
|
1718
1771
|
}
|
|
1719
|
-
function
|
|
1720
|
-
var t = e.f, n = (t &
|
|
1721
|
-
if (
|
|
1722
|
-
var r =
|
|
1723
|
-
if (!r && (
|
|
1724
|
-
var i =
|
|
1725
|
-
if ((
|
|
1726
|
-
e.rv <
|
|
1772
|
+
function h(e) {
|
|
1773
|
+
var t = e.f, n = (t & J) !== 0;
|
|
1774
|
+
if (E !== null && !Te) {
|
|
1775
|
+
var r = S !== null && (S.f & He) !== 0;
|
|
1776
|
+
if (!r && (ye === null || !qt.call(ye, e))) {
|
|
1777
|
+
var i = E.deps;
|
|
1778
|
+
if ((E.f & fr) !== 0)
|
|
1779
|
+
e.rv < gt && (e.rv = gt, se === null && i !== null && i[ue] === e ? ue++ : 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] : qt.call(s, E) || s.push(E);
|
|
1731
1784
|
}
|
|
1732
1785
|
}
|
|
1733
1786
|
}
|
|
1734
|
-
if (
|
|
1735
|
-
return
|
|
1787
|
+
if (ut && ot.has(e))
|
|
1788
|
+
return ot.get(e);
|
|
1736
1789
|
if (n) {
|
|
1737
1790
|
var o = (
|
|
1738
1791
|
/** @type {Derived} */
|
|
1739
1792
|
e
|
|
1740
1793
|
);
|
|
1741
|
-
if (
|
|
1794
|
+
if (ut) {
|
|
1742
1795
|
var l = o.v;
|
|
1743
|
-
return ((o.f &
|
|
1796
|
+
return ((o.f & U) === 0 && o.reactions !== null || is(o)) && (l = Nr(o)), ot.set(o, l), l;
|
|
1744
1797
|
}
|
|
1745
|
-
var a = (o.f &
|
|
1746
|
-
|
|
1798
|
+
var a = (o.f & be) === 0 && !Te && E !== null && (Nn || (E.f & be) !== 0), f = (o.f & Tt) === 0;
|
|
1799
|
+
gn(o) && (a && (o.f |= be), Oi(o)), a && !f && (Di(o), rs(o));
|
|
1747
1800
|
}
|
|
1748
|
-
if (
|
|
1749
|
-
return
|
|
1750
|
-
if ((e.f &
|
|
1801
|
+
if (ke?.has(e))
|
|
1802
|
+
return ke.get(e);
|
|
1803
|
+
if ((e.f & st) !== 0)
|
|
1751
1804
|
throw e.v;
|
|
1752
1805
|
return e.v;
|
|
1753
1806
|
}
|
|
1754
|
-
function
|
|
1755
|
-
if (e.f |=
|
|
1807
|
+
function rs(e) {
|
|
1808
|
+
if (e.f |= be, 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 & be) === 0 && (Di(
|
|
1758
1811
|
/** @type {Derived} */
|
|
1759
1812
|
t
|
|
1760
|
-
),
|
|
1813
|
+
), rs(
|
|
1761
1814
|
/** @type {Derived} */
|
|
1762
1815
|
t
|
|
1763
1816
|
));
|
|
1764
1817
|
}
|
|
1765
|
-
function
|
|
1818
|
+
function is(e) {
|
|
1766
1819
|
if (e.v === q) return !0;
|
|
1767
1820
|
if (e.deps === null) return !1;
|
|
1768
1821
|
for (const t of e.deps)
|
|
1769
|
-
if (
|
|
1822
|
+
if (ot.has(t) || (t.f & J) !== 0 && is(
|
|
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 Hr(e) {
|
|
1830
|
+
var t = Te;
|
|
1778
1831
|
try {
|
|
1779
|
-
return
|
|
1832
|
+
return Te = !0, e();
|
|
1780
1833
|
} finally {
|
|
1781
|
-
|
|
1834
|
+
Te = t;
|
|
1782
1835
|
}
|
|
1783
1836
|
}
|
|
1784
|
-
const
|
|
1785
|
-
function
|
|
1786
|
-
(t[
|
|
1837
|
+
const mt = /* @__PURE__ */ Symbol("events"), ss = /* @__PURE__ */ new Set(), yr = /* @__PURE__ */ new Set();
|
|
1838
|
+
function qe(e, t, n) {
|
|
1839
|
+
(t[mt] ?? (t[mt] = {}))[e] = n;
|
|
1787
1840
|
}
|
|
1788
|
-
function
|
|
1841
|
+
function jr(e) {
|
|
1789
1842
|
for (var t = 0; t < e.length; t++)
|
|
1790
|
-
|
|
1791
|
-
for (var n of
|
|
1843
|
+
ss.add(e[t]);
|
|
1844
|
+
for (var n of yr)
|
|
1792
1845
|
n(e);
|
|
1793
1846
|
}
|
|
1794
|
-
let
|
|
1795
|
-
function
|
|
1847
|
+
let si = null;
|
|
1848
|
+
function oi(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
|
+
si = e;
|
|
1857
|
+
var o = 0, l = si === e && e[mt];
|
|
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[mt] = t;
|
|
1810
1863
|
return;
|
|
1811
1864
|
}
|
|
1812
1865
|
var f = i.indexOf(t);
|
|
@@ -1816,106 +1869,134 @@ function ii(e) {
|
|
|
1816
1869
|
}
|
|
1817
1870
|
if (s = /** @type {Element} */
|
|
1818
1871
|
i[o] || e.target, s !== t) {
|
|
1819
|
-
|
|
1872
|
+
Dn(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 = S;
|
|
1879
|
+
$e(null), je(null);
|
|
1827
1880
|
try {
|
|
1828
|
-
for (var
|
|
1829
|
-
var
|
|
1881
|
+
for (var _, g = []; 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[mt]?.[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 (m) {
|
|
1891
|
+
_ ? g.push(m) : _ = m;
|
|
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 m of g)
|
|
1846
1899
|
queueMicrotask(() => {
|
|
1847
|
-
throw
|
|
1900
|
+
throw m;
|
|
1848
1901
|
});
|
|
1849
|
-
throw
|
|
1902
|
+
throw _;
|
|
1850
1903
|
}
|
|
1851
1904
|
} finally {
|
|
1852
|
-
e[
|
|
1905
|
+
e[mt] = t, delete e.currentTarget, $e(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 os(e) {
|
|
1923
|
+
var t = Ir("template");
|
|
1924
|
+
return t.innerHTML = Yo(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1872
1925
|
}
|
|
1873
|
-
function
|
|
1926
|
+
function lt(e, t) {
|
|
1874
1927
|
var n = (
|
|
1875
1928
|
/** @type {Effect} */
|
|
1876
|
-
|
|
1929
|
+
S
|
|
1877
1930
|
);
|
|
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 le(e, t) {
|
|
1935
|
+
var n = (t & Hs) !== 0, r = (t & js) !== 0, i, s = !e.startsWith("<!>");
|
|
1883
1936
|
return () => {
|
|
1884
1937
|
if (A)
|
|
1885
|
-
return
|
|
1886
|
-
i === void 0 && (i =
|
|
1887
|
-
/* @__PURE__ */
|
|
1938
|
+
return lt(C, null), C;
|
|
1939
|
+
i === void 0 && (i = os(s ? e : "<!>" + e), n || (i = /** @type {TemplateNode} */
|
|
1940
|
+
/* @__PURE__ */ at(i)));
|
|
1888
1941
|
var o = (
|
|
1889
1942
|
/** @type {TemplateNode} */
|
|
1890
|
-
r ||
|
|
1943
|
+
r || zi ? 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__ */ at(o)
|
|
1896
1949
|
), a = (
|
|
1897
1950
|
/** @type {TemplateNode} */
|
|
1898
1951
|
o.lastChild
|
|
1899
1952
|
);
|
|
1900
|
-
|
|
1953
|
+
lt(l, a);
|
|
1901
1954
|
} else
|
|
1902
|
-
|
|
1955
|
+
lt(o, o);
|
|
1903
1956
|
return o;
|
|
1904
1957
|
};
|
|
1905
1958
|
}
|
|
1906
|
-
|
|
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 (A)
|
|
1964
|
+
return lt(C, null), C;
|
|
1965
|
+
if (!s) {
|
|
1966
|
+
var o = (
|
|
1967
|
+
/** @type {DocumentFragment} */
|
|
1968
|
+
os(i)
|
|
1969
|
+
), l = (
|
|
1970
|
+
/** @type {Element} */
|
|
1971
|
+
/* @__PURE__ */ at(o)
|
|
1972
|
+
);
|
|
1973
|
+
s = /** @type {Element} */
|
|
1974
|
+
/* @__PURE__ */ at(l);
|
|
1975
|
+
}
|
|
1976
|
+
var a = (
|
|
1977
|
+
/** @type {TemplateNode} */
|
|
1978
|
+
s.cloneNode(!0)
|
|
1979
|
+
);
|
|
1980
|
+
return lt(a, a), a;
|
|
1981
|
+
};
|
|
1982
|
+
}
|
|
1983
|
+
// @__NO_SIDE_EFFECTS__
|
|
1984
|
+
function ls(e, t) {
|
|
1985
|
+
return /* @__PURE__ */ Wo(e, t, "svg");
|
|
1986
|
+
}
|
|
1987
|
+
function qo() {
|
|
1907
1988
|
if (A)
|
|
1908
|
-
return
|
|
1909
|
-
var e = document.createDocumentFragment(), t = document.createComment(""), n =
|
|
1910
|
-
return e.append(t, n),
|
|
1989
|
+
return lt(C, null), C;
|
|
1990
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), n = Re();
|
|
1991
|
+
return e.append(t, n), lt(t, n), e;
|
|
1911
1992
|
}
|
|
1912
|
-
function
|
|
1993
|
+
function H(e, t) {
|
|
1913
1994
|
if (A) {
|
|
1914
1995
|
var n = (
|
|
1915
1996
|
/** @type {Effect & { nodes: EffectNodes }} */
|
|
1916
|
-
|
|
1997
|
+
S
|
|
1917
1998
|
);
|
|
1918
|
-
((n.f &
|
|
1999
|
+
((n.f & Tt) === 0 || n.nodes.end === null) && (n.nodes.end = C), Bn();
|
|
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 as(e, t) {
|
|
2016
|
+
return us(e, t);
|
|
1936
2017
|
}
|
|
1937
|
-
function
|
|
1938
|
-
|
|
1939
|
-
const n = t.target, r = A, i =
|
|
2018
|
+
function Jo(e, t) {
|
|
2019
|
+
wr(), t.intro = t.intro ?? !1;
|
|
2020
|
+
const n = t.target, r = A, i = C;
|
|
1940
2021
|
try {
|
|
1941
|
-
for (var s = /* @__PURE__ */
|
|
1942
|
-
s.data !==
|
|
1943
|
-
s = /* @__PURE__ */
|
|
2022
|
+
for (var s = /* @__PURE__ */ at(n); s && (s.nodeType !== _n || /** @type {Comment} */
|
|
2023
|
+
s.data !== pi); )
|
|
2024
|
+
s = /* @__PURE__ */ Ve(s);
|
|
1944
2025
|
if (!s)
|
|
1945
|
-
throw
|
|
1946
|
-
|
|
2026
|
+
throw Wt;
|
|
2027
|
+
Ke(!0), ve(
|
|
1947
2028
|
/** @type {Comment} */
|
|
1948
2029
|
s
|
|
1949
2030
|
);
|
|
1950
|
-
const o =
|
|
1951
|
-
return
|
|
2031
|
+
const o = us(e, { ...t, anchor: s });
|
|
2032
|
+
return Ke(!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 !== Wt && console.warn("Failed to hydrate: ", o), t.recover === !1 && so(), wr(), Vi(n), Ke(!1), as(e, t);
|
|
1958
2039
|
} finally {
|
|
1959
|
-
|
|
2040
|
+
Ke(r), ve(i);
|
|
1960
2041
|
}
|
|
1961
2042
|
}
|
|
1962
|
-
const
|
|
1963
|
-
function
|
|
1964
|
-
|
|
1965
|
-
var
|
|
1966
|
-
var
|
|
1967
|
-
|
|
2043
|
+
const Mn = /* @__PURE__ */ new Map();
|
|
2044
|
+
function us(e, { target: t, anchor: n, props: r = {}, events: i, context: s, intro: o = !0, transformError: l }) {
|
|
2045
|
+
wr();
|
|
2046
|
+
var a = void 0, f = Lo(() => {
|
|
2047
|
+
var d = n ?? t.appendChild(Re());
|
|
2048
|
+
yo(
|
|
1968
2049
|
/** @type {TemplateNode} */
|
|
1969
|
-
|
|
2050
|
+
d,
|
|
1970
2051
|
{
|
|
1971
2052
|
pending: () => {
|
|
1972
2053
|
}
|
|
1973
2054
|
},
|
|
1974
|
-
(
|
|
1975
|
-
|
|
1976
|
-
var
|
|
2055
|
+
(g) => {
|
|
2056
|
+
Yn({});
|
|
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), A && lt(
|
|
1981
2062
|
/** @type {TemplateNode} */
|
|
1982
|
-
|
|
2063
|
+
g,
|
|
1983
2064
|
null
|
|
1984
|
-
),
|
|
1985
|
-
|
|
1986
|
-
throw
|
|
1987
|
-
|
|
1988
|
-
}
|
|
2065
|
+
), a = e(g, r) || {}, A && (S.nodes.end = C, C === null || C.nodeType !== _n || /** @type {Comment} */
|
|
2066
|
+
C.data !== Sr))
|
|
2067
|
+
throw Vn(), Wt;
|
|
2068
|
+
Wn();
|
|
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(), _ = (g) => {
|
|
2073
|
+
for (var c = 0; c < g.length; c++) {
|
|
2074
|
+
var b = g[c];
|
|
2075
|
+
if (!v.has(b)) {
|
|
2076
|
+
v.add(b);
|
|
2077
|
+
var m = Xo(b);
|
|
2078
|
+
for (const G of [t, document]) {
|
|
2079
|
+
var w = Mn.get(G);
|
|
2080
|
+
w === void 0 && (w = /* @__PURE__ */ new Map(), Mn.set(G, w));
|
|
2081
|
+
var N = w.get(b);
|
|
2082
|
+
N === void 0 ? (G.addEventListener(b, oi, { passive: m }), w.set(b, 1)) : w.set(b, N + 1);
|
|
2001
2083
|
}
|
|
2002
2084
|
}
|
|
2003
2085
|
}
|
|
2004
2086
|
};
|
|
2005
|
-
return _(
|
|
2006
|
-
for (var
|
|
2007
|
-
for (const
|
|
2008
|
-
var
|
|
2087
|
+
return _(Hn(ss)), yr.add(_), () => {
|
|
2088
|
+
for (var g of v)
|
|
2089
|
+
for (const m of [t, document]) {
|
|
2090
|
+
var c = (
|
|
2009
2091
|
/** @type {Map<string, number>} */
|
|
2010
|
-
|
|
2011
|
-
),
|
|
2092
|
+
Mn.get(m)
|
|
2093
|
+
), b = (
|
|
2012
2094
|
/** @type {number} */
|
|
2013
|
-
|
|
2095
|
+
c.get(g)
|
|
2014
2096
|
);
|
|
2015
|
-
--
|
|
2097
|
+
--b == 0 ? (m.removeEventListener(g, oi), c.delete(g), c.size === 0 && Mn.delete(m)) : c.set(g, b);
|
|
2016
2098
|
}
|
|
2017
|
-
|
|
2099
|
+
yr.delete(_), d !== n && d.parentNode?.removeChild(d);
|
|
2018
2100
|
};
|
|
2019
2101
|
});
|
|
2020
|
-
return
|
|
2102
|
+
return $r.set(a, f), a;
|
|
2021
2103
|
}
|
|
2022
|
-
let
|
|
2023
|
-
function
|
|
2024
|
-
const n =
|
|
2025
|
-
return n ? (
|
|
2104
|
+
let $r = /* @__PURE__ */ new WeakMap();
|
|
2105
|
+
function Go(e, t) {
|
|
2106
|
+
const n = $r.get(e);
|
|
2107
|
+
return n ? ($r.delete(e), n(t)) : Promise.resolve();
|
|
2026
2108
|
}
|
|
2027
|
-
var
|
|
2028
|
-
class
|
|
2109
|
+
var Se, Fe, de, $t, hn, pn, zn;
|
|
2110
|
+
class Ko {
|
|
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
|
+
D(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, Fe, /* @__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, de, /* @__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, $t, /* @__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, hn, !0);
|
|
2151
|
+
/**
|
|
2152
|
+
* @param {Batch} batch
|
|
2153
|
+
*/
|
|
2154
|
+
x(this, pn, (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, Fe).get(n);
|
|
2079
2160
|
if (r)
|
|
2080
|
-
Fr(r), u(this,
|
|
2161
|
+
Fr(r), u(this, $t).delete(n);
|
|
2081
2162
|
else {
|
|
2082
|
-
var i = u(this,
|
|
2083
|
-
i && (u(this,
|
|
2163
|
+
var i = u(this, de).get(n);
|
|
2164
|
+
i && (i.effect.f & Q) === 0 && (u(this, Fe).set(n, i.effect), u(this, de).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, de).get(o);
|
|
2170
|
+
l && (ee(l.effect), u(this, de).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, Fe)) {
|
|
2173
|
+
if (s === n || u(this, $t).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
|
+
zr(o, f), f.append(Re()), u(this, de).set(s, { effect: o, fragment: f });
|
|
2097
2178
|
} else
|
|
2098
|
-
|
|
2099
|
-
u(this,
|
|
2179
|
+
ee(o);
|
|
2180
|
+
u(this, $t).delete(s), u(this, Fe).delete(s);
|
|
2100
2181
|
};
|
|
2101
|
-
u(this,
|
|
2182
|
+
u(this, hn) || !r ? (u(this, $t).add(s), xt(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, zn, (t) => {
|
|
2190
|
+
u(this, Se).delete(t);
|
|
2191
|
+
const n = Array.from(u(this, Se).values());
|
|
2192
|
+
for (const [r, i] of u(this, de))
|
|
2193
|
+
n.includes(r) || (ee(i.effect), u(this, de).delete(r));
|
|
2113
2194
|
});
|
|
2114
|
-
this.anchor = t,
|
|
2195
|
+
this.anchor = t, $(this, hn, 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
|
+
O
|
|
2206
|
+
), i = Bi();
|
|
2207
|
+
if (n && !u(this, Fe).has(t) && !u(this, de).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 = Re();
|
|
2210
|
+
s.append(o), u(this, de).set(t, {
|
|
2211
|
+
effect: me(() => n(o)),
|
|
2131
2212
|
fragment: s
|
|
2132
2213
|
});
|
|
2133
2214
|
} else
|
|
2134
|
-
u(this,
|
|
2215
|
+
u(this, Fe).set(
|
|
2135
2216
|
t,
|
|
2136
|
-
|
|
2217
|
+
me(() => 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, Fe))
|
|
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, de))
|
|
2142
2223
|
l === t ? r.unskip_effect(a.effect) : r.skip_effect(a.effect);
|
|
2143
|
-
r.oncommit(u(this,
|
|
2224
|
+
r.oncommit(u(this, pn)), r.ondiscard(u(this, zn));
|
|
2144
2225
|
} else
|
|
2145
|
-
A && (this.anchor =
|
|
2226
|
+
A && (this.anchor = C), u(this, pn).call(this, r);
|
|
2146
2227
|
}
|
|
2147
2228
|
}
|
|
2148
|
-
|
|
2149
|
-
function
|
|
2150
|
-
|
|
2151
|
-
const t =
|
|
2229
|
+
Se = new WeakMap(), Fe = new WeakMap(), de = new WeakMap(), $t = new WeakMap(), hn = new WeakMap(), pn = new WeakMap(), zn = new WeakMap();
|
|
2230
|
+
function fs(e) {
|
|
2231
|
+
te === null && Ar(), Wi(() => {
|
|
2232
|
+
const t = Hr(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 && Ar(), fs(() => () => Hr(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 && Ar(), (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 = kr(i) ? i.slice() : [i], o =
|
|
2256
|
+
const s = kr(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
|
-
|
|
2269
|
+
function Ee(e, t, n = !1) {
|
|
2270
|
+
var r;
|
|
2271
|
+
A && (r = C, Bn());
|
|
2272
|
+
var i = new Ko(e), s = n ? Xt : 0;
|
|
2273
|
+
function o(l, a) {
|
|
2192
2274
|
if (A) {
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2275
|
+
var f = wi(
|
|
2276
|
+
/** @type {TemplateNode} */
|
|
2277
|
+
r
|
|
2278
|
+
);
|
|
2279
|
+
if (l !== parseInt(f.substring(1))) {
|
|
2280
|
+
var d = Ln();
|
|
2281
|
+
ve(d), i.anchor = d, Ke(!1), i.ensure(l, a), Ke(!0);
|
|
2198
2282
|
return;
|
|
2199
2283
|
}
|
|
2200
2284
|
}
|
|
2201
|
-
|
|
2285
|
+
i.ensure(l, a);
|
|
2202
2286
|
}
|
|
2203
2287
|
Lr(() => {
|
|
2204
|
-
var
|
|
2205
|
-
t((
|
|
2206
|
-
|
|
2207
|
-
}),
|
|
2208
|
-
},
|
|
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
|
+
xt(
|
|
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
|
+
xr(e, Hn(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
|
-
|
|
2324
|
+
Vi(d), d.append(f), e.items.clear();
|
|
2241
2325
|
}
|
|
2242
|
-
|
|
2326
|
+
xr(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 xr(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 |= Ge;
|
|
2348
|
+
const o = document.createDocumentFragment();
|
|
2349
|
+
zr(s, o);
|
|
2350
|
+
} else
|
|
2351
|
+
ee(t[i], n);
|
|
2352
|
+
}
|
|
2252
2353
|
}
|
|
2253
|
-
var
|
|
2254
|
-
function
|
|
2354
|
+
var li;
|
|
2355
|
+
function nl(e, t, n, r, i, s = null) {
|
|
2255
2356
|
var o = e, l = /* @__PURE__ */ new Map();
|
|
2256
|
-
A &&
|
|
2257
|
-
var a = null, f = /* @__PURE__ */
|
|
2258
|
-
var
|
|
2259
|
-
return kr(
|
|
2260
|
-
}),
|
|
2261
|
-
function
|
|
2262
|
-
|
|
2357
|
+
A && Bn();
|
|
2358
|
+
var a = null, f = /* @__PURE__ */ ko(() => {
|
|
2359
|
+
var w = n();
|
|
2360
|
+
return kr(w) ? w : w == null ? [] : Hn(w);
|
|
2361
|
+
}), d, v = /* @__PURE__ */ new Map(), _ = !0;
|
|
2362
|
+
function g(w) {
|
|
2363
|
+
(m.effect.f & He) === 0 && (m.pending.delete(w), m.fallback = a, rl(m, d, o, t, r), a !== null && (d.length === 0 ? (a.f & Ge) === 0 ? Fr(a) : (a.f ^= Ge, un(a, null, o)) : xt(a, () => {
|
|
2263
2364
|
a = null;
|
|
2264
|
-
}));
|
|
2365
|
+
})));
|
|
2366
|
+
}
|
|
2367
|
+
function c(w) {
|
|
2368
|
+
m.pending.delete(w);
|
|
2265
2369
|
}
|
|
2266
|
-
var
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
var
|
|
2270
|
-
let
|
|
2370
|
+
var b = Lr(() => {
|
|
2371
|
+
d = /** @type {V[]} */
|
|
2372
|
+
h(f);
|
|
2373
|
+
var w = d.length;
|
|
2374
|
+
let N = !1;
|
|
2271
2375
|
if (A) {
|
|
2272
|
-
var
|
|
2273
|
-
|
|
2376
|
+
var G = wi(o) === Cr;
|
|
2377
|
+
G !== (w === 0) && (o = Ln(), ve(o), Ke(!1), N = !0);
|
|
2274
2378
|
}
|
|
2275
|
-
for (var
|
|
2379
|
+
for (var V = /* @__PURE__ */ new Set(), B = (
|
|
2276
2380
|
/** @type {Batch} */
|
|
2277
|
-
|
|
2278
|
-
),
|
|
2279
|
-
A &&
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
var
|
|
2283
|
-
|
|
2381
|
+
O
|
|
2382
|
+
), At = Bi(), Ie = 0; Ie < w; Ie += 1) {
|
|
2383
|
+
A && C.nodeType === _n && /** @type {Comment} */
|
|
2384
|
+
C.data === Sr && (o = /** @type {Comment} */
|
|
2385
|
+
C, N = !0, Ke(!1));
|
|
2386
|
+
var he = d[Ie], Rt = r(he, Ie), ae = _ ? null : l.get(Rt);
|
|
2387
|
+
ae ? (ae.v && Kt(ae.v, he), ae.i && Kt(ae.i, Ie), At && B.unskip_effect(ae.e)) : (ae = il(
|
|
2284
2388
|
l,
|
|
2285
|
-
_ ? o :
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2389
|
+
_ ? o : li ?? (li = Re()),
|
|
2390
|
+
he,
|
|
2391
|
+
Rt,
|
|
2392
|
+
Ie,
|
|
2289
2393
|
i,
|
|
2290
2394
|
t,
|
|
2291
2395
|
n
|
|
2292
|
-
), _ || (
|
|
2396
|
+
), _ || (ae.e.f |= Ge), l.set(Rt, ae)), V.add(Rt);
|
|
2293
2397
|
}
|
|
2294
|
-
if (
|
|
2295
|
-
if (
|
|
2296
|
-
for (const [
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
});
|
|
2398
|
+
if (w === 0 && s && !a && (_ ? a = me(() => s(o)) : (a = me(() => s(li ?? (li = Re()))), a.f |= Ge)), w > V.size && eo(), A && w > 0 && ve(Ln()), !_)
|
|
2399
|
+
if (v.set(B, V), At) {
|
|
2400
|
+
for (const [Xn, Jn] of l)
|
|
2401
|
+
V.has(Xn) || B.skip_effect(Jn.e);
|
|
2402
|
+
B.oncommit(g), B.ondiscard(c);
|
|
2300
2403
|
} else
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
}),
|
|
2304
|
-
_ = !1, A && (o =
|
|
2404
|
+
g(B);
|
|
2405
|
+
N && Ke(!0), h(f);
|
|
2406
|
+
}), m = { effect: b, items: l, pending: v, outrogroups: null, fallback: a };
|
|
2407
|
+
_ = !1, A && (o = C);
|
|
2305
2408
|
}
|
|
2306
|
-
function
|
|
2307
|
-
for (; e !== null && (e.f &
|
|
2409
|
+
function an(e) {
|
|
2410
|
+
for (; e !== null && (e.f & Ne) === 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 = an(e.effect.first), a, f = null, d = [], v = [], _, g, c, b;
|
|
2313
2416
|
for (b = 0; b < s; b += 1) {
|
|
2314
|
-
if (
|
|
2417
|
+
if (_ = t[b], g = i(_, b), c = /** @type {EachItem} */
|
|
2315
2418
|
o.get(g).e, e.outrogroups !== null)
|
|
2316
|
-
for (const
|
|
2317
|
-
|
|
2318
|
-
if ((
|
|
2319
|
-
if (
|
|
2320
|
-
|
|
2419
|
+
for (const he of e.outrogroups)
|
|
2420
|
+
he.pending.delete(c), he.done.delete(c);
|
|
2421
|
+
if ((c.f & Ge) !== 0)
|
|
2422
|
+
if (c.f ^= Ge, c === l)
|
|
2423
|
+
un(c, null, n);
|
|
2321
2424
|
else {
|
|
2322
|
-
var
|
|
2323
|
-
|
|
2425
|
+
var m = 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), et(e, f, c), et(e, c, m), un(c, m, n), f = c, d = [], v = [], l = an(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 && Fr(c), c !== l) {
|
|
2430
|
+
if (a !== void 0 && a.has(c)) {
|
|
2431
|
+
if (d.length < v.length) {
|
|
2432
|
+
var w = v[0], N;
|
|
2433
|
+
f = w.prev;
|
|
2434
|
+
var G = d[0], V = d[d.length - 1];
|
|
2435
|
+
for (N = 0; N < d.length; N += 1)
|
|
2436
|
+
un(d[N], w, n);
|
|
2437
|
+
for (N = 0; N < v.length; N += 1)
|
|
2438
|
+
a.delete(v[N]);
|
|
2439
|
+
et(e, G.prev, V.next), et(e, f, G), et(e, V, w), l = w, f = V, b -= 1, d = [], v = [];
|
|
2337
2440
|
} else
|
|
2338
|
-
a.delete(
|
|
2441
|
+
a.delete(c), un(c, l, n), et(e, c.prev, c.next), et(e, c, f === null ? e.effect.first : f.next), et(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 = an(l.next);
|
|
2343
2446
|
if (l === null)
|
|
2344
2447
|
continue;
|
|
2345
2448
|
}
|
|
2346
|
-
(
|
|
2449
|
+
(c.f & Ge) === 0 && d.push(c), f = c, l = an(c.next);
|
|
2347
2450
|
}
|
|
2348
2451
|
if (e.outrogroups !== null) {
|
|
2349
|
-
for (const
|
|
2350
|
-
|
|
2452
|
+
for (const he of e.outrogroups)
|
|
2453
|
+
he.pending.size === 0 && (xr(e, Hn(he.done)), e.outrogroups?.delete(he));
|
|
2351
2454
|
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
2352
2455
|
}
|
|
2353
2456
|
if (l !== null || a !== void 0) {
|
|
2354
|
-
var
|
|
2457
|
+
var B = [];
|
|
2355
2458
|
if (a !== void 0)
|
|
2356
|
-
for (
|
|
2357
|
-
(
|
|
2459
|
+
for (c of a)
|
|
2460
|
+
(c.f & Q) === 0 && B.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 && B.push(l), l = an(l.next);
|
|
2463
|
+
var At = B.length;
|
|
2464
|
+
if (At > 0) {
|
|
2465
|
+
var Ie = null;
|
|
2466
|
+
tl(e, B, Ie);
|
|
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 & Ps) !== 0 ? (o & zs) === 0 ? /* @__PURE__ */ Pi(n, !1, !1) : kt(n) : null, f = (o & Fs) !== 0 ? kt(i) : null;
|
|
2369
2472
|
return {
|
|
2370
2473
|
v: a,
|
|
2371
2474
|
i: f,
|
|
2372
|
-
e:
|
|
2475
|
+
e: me(() => (s(t, a ?? n, f ?? i, l), () => {
|
|
2373
2476
|
e.delete(r);
|
|
2374
2477
|
}))
|
|
2375
2478
|
};
|
|
2376
2479
|
}
|
|
2377
|
-
function
|
|
2480
|
+
function un(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 & Ge) === 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 et(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 sl(e, t) {
|
|
2499
|
+
Po(() => {
|
|
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 cs(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 = cs(e[t])) && (r && (r += " "), r += n);
|
|
2523
|
+
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
2524
|
+
return r;
|
|
2525
|
+
}
|
|
2526
|
+
function ol() {
|
|
2527
|
+
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = cs(e)) && (r && (r += " "), r += t);
|
|
2528
|
+
return r;
|
|
2529
|
+
}
|
|
2530
|
+
function Pn(e) {
|
|
2531
|
+
return typeof e == "object" ? ol(e) : e ?? "";
|
|
2532
|
+
}
|
|
2533
|
+
const ai = [...`
|
|
2415
2534
|
\r\f \v\uFEFF`];
|
|
2416
|
-
function
|
|
2535
|
+
function ll(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 || ai.includes(r[o - 1])) && (l === r.length || ai.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 al(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
2554
|
if (A || o !== n || o === void 0) {
|
|
2436
|
-
var l =
|
|
2437
|
-
(!A || l !== e.getAttribute("class")) && (l == null ? e.removeAttribute("class") : e.className = l), e.__className = n;
|
|
2555
|
+
var l = ll(n, r, s);
|
|
2556
|
+
(!A || 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 ui(e, t, n, r) {
|
|
2446
2565
|
var i = e.__style;
|
|
2447
2566
|
if (A || i !== t) {
|
|
2448
|
-
var s =
|
|
2567
|
+
var s = al(t);
|
|
2449
2568
|
(!A || 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
|
-
A && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName ===
|
|
2572
|
+
const ul = /* @__PURE__ */ Symbol("is custom element"), fl = /* @__PURE__ */ Symbol("is html"), cl = Zs ? "link" : "LINK";
|
|
2573
|
+
function Er(e, t, n, r) {
|
|
2574
|
+
var i = dl(e);
|
|
2575
|
+
A && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === cl) || i[t] !== (i[t] = n) && (t === "loading" && (e[Ks] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && vl(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
|
|
2457
2576
|
}
|
|
2458
|
-
function
|
|
2577
|
+
function dl(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
|
+
[ul]: e.nodeName.includes("-"),
|
|
2583
|
+
[fl]: e.namespaceURI === _i
|
|
2465
2584
|
})
|
|
2466
2585
|
);
|
|
2467
2586
|
}
|
|
2468
|
-
var
|
|
2469
|
-
function
|
|
2470
|
-
var t = e.getAttribute("is") || e.nodeName, n =
|
|
2587
|
+
var fi = /* @__PURE__ */ new Map();
|
|
2588
|
+
function vl(e) {
|
|
2589
|
+
var t = e.getAttribute("is") || e.nodeName, n = fi.get(t);
|
|
2471
2590
|
if (n) return n;
|
|
2472
|
-
|
|
2591
|
+
fi.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 = gi(i);
|
|
2478
2597
|
}
|
|
2479
2598
|
return n;
|
|
2480
2599
|
}
|
|
2481
|
-
function
|
|
2600
|
+
function Me(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__ */ Un(() => (f = !1, a())), v = (
|
|
2498
2617
|
/** @type {Effect} */
|
|
2499
|
-
|
|
2618
|
+
S
|
|
2500
2619
|
);
|
|
2501
2620
|
return (
|
|
2502
2621
|
/** @type {() => V} */
|
|
2503
|
-
(function(
|
|
2622
|
+
(function(_, g) {
|
|
2504
2623
|
if (arguments.length > 0) {
|
|
2505
|
-
const
|
|
2506
|
-
return
|
|
2624
|
+
const c = g ? h(d) : _;
|
|
2625
|
+
return R(d, c), f = !0, i !== void 0 && (i = c), _;
|
|
2507
2626
|
}
|
|
2508
|
-
return
|
|
2627
|
+
return ut && f || (v.f & He) !== 0 ? d.v : h(d);
|
|
2509
2628
|
})
|
|
2510
2629
|
);
|
|
2511
2630
|
}
|
|
2512
|
-
function
|
|
2513
|
-
return new
|
|
2631
|
+
function hl(e) {
|
|
2632
|
+
return new pl(e);
|
|
2514
2633
|
}
|
|
2515
|
-
var
|
|
2516
|
-
class
|
|
2634
|
+
var Je, ge;
|
|
2635
|
+
class pl {
|
|
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, ge);
|
|
2527
2646
|
var n = /* @__PURE__ */ new Map(), r = (s, o) => {
|
|
2528
|
-
var l = /* @__PURE__ */
|
|
2647
|
+
var l = /* @__PURE__ */ Pi(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 h(n.get(o) ?? r(o, Reflect.get(s, o)));
|
|
2536
2655
|
},
|
|
2537
2656
|
has(s, o) {
|
|
2538
|
-
return o ===
|
|
2657
|
+
return o === Gs ? !0 : (h(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, ge, (t.hydrate ? Jo : as)(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) && we(), $(this, Je, i.$$events);
|
|
2673
|
+
for (const s of Object.keys(u(this, ge)))
|
|
2674
|
+
s === "$set" || s === "$destroy" || s === "$on" || Dn(this, s, {
|
|
2555
2675
|
get() {
|
|
2556
|
-
return u(this,
|
|
2676
|
+
return u(this, ge)[s];
|
|
2557
2677
|
},
|
|
2558
2678
|
/** @param {any} value */
|
|
2559
2679
|
set(o) {
|
|
2560
|
-
u(this,
|
|
2680
|
+
u(this, ge)[s] = o;
|
|
2561
2681
|
},
|
|
2562
2682
|
enumerable: !0
|
|
2563
2683
|
});
|
|
2564
|
-
u(this,
|
|
2684
|
+
u(this, ge).$set = /** @param {Record<string, any>} next */
|
|
2565
2685
|
(s) => {
|
|
2566
2686
|
Object.assign(i, s);
|
|
2567
|
-
}, u(this,
|
|
2568
|
-
|
|
2687
|
+
}, u(this, ge).$destroy = () => {
|
|
2688
|
+
Go(u(this, ge));
|
|
2569
2689
|
};
|
|
2570
2690
|
}
|
|
2571
2691
|
/** @param {Record<string, any>} props */
|
|
2572
2692
|
$set(t) {
|
|
2573
|
-
u(this,
|
|
2693
|
+
u(this, ge).$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, ge).$destroy();
|
|
2592
2712
|
}
|
|
2593
2713
|
}
|
|
2594
|
-
|
|
2595
|
-
let
|
|
2596
|
-
typeof HTMLElement == "function" && (
|
|
2714
|
+
Je = new WeakMap(), ge = new WeakMap();
|
|
2715
|
+
let ds;
|
|
2716
|
+
typeof HTMLElement == "function" && (ds = 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
|
+
D(this, "$$ctor");
|
|
2606
2726
|
/** Slots */
|
|
2607
|
-
|
|
2727
|
+
D(this, "$$s");
|
|
2608
2728
|
/** @type {any} The Svelte component instance */
|
|
2609
|
-
|
|
2729
|
+
D(this, "$$c");
|
|
2610
2730
|
/** Whether or not the custom element is connected */
|
|
2611
|
-
|
|
2731
|
+
D(this, "$$cn", !1);
|
|
2612
2732
|
/** @type {Record<string, any>} Component props data */
|
|
2613
|
-
|
|
2733
|
+
D(this, "$$d", {});
|
|
2614
2734
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
2615
|
-
|
|
2735
|
+
D(this, "$$r", !1);
|
|
2616
2736
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
2617
|
-
|
|
2737
|
+
D(this, "$$p_d", {});
|
|
2618
2738
|
/** @type {Record<string, EventListenerOrEventListenerObject[]>} Event listeners */
|
|
2619
|
-
|
|
2739
|
+
D(this, "$$l", {});
|
|
2620
2740
|
/** @type {Map<EventListenerOrEventListenerObject, Function>} Event listener unsubscribe functions */
|
|
2621
|
-
|
|
2741
|
+
D(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
2622
2742
|
/** @type {any} The managed render effect for reflecting attributes */
|
|
2623
|
-
|
|
2743
|
+
D(this, "$$me");
|
|
2624
2744
|
/** @type {ShadowRoot | null} The ShadowRoot of the custom element */
|
|
2625
|
-
|
|
2745
|
+
D(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), H(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 = _l(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 = hl({
|
|
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
|
+
Ui(() => {
|
|
2680
2800
|
this.$$r = !0;
|
|
2681
|
-
for (const i of
|
|
2801
|
+
for (const i of On(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 On(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 _l(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 Vr(e, t, n, r, i, s) {
|
|
2887
|
+
let o = class extends ds {
|
|
2768
2888
|
constructor() {
|
|
2769
2889
|
super(e, n, i), this.$$p_d = t;
|
|
2770
2890
|
}
|
|
2771
2891
|
static get observedAttributes() {
|
|
2772
|
-
return
|
|
2892
|
+
return On(t).map(
|
|
2773
2893
|
(l) => (t[l].attribute || l).toLowerCase()
|
|
2774
2894
|
);
|
|
2775
2895
|
}
|
|
2776
2896
|
};
|
|
2777
|
-
return
|
|
2778
|
-
|
|
2897
|
+
return On(t).forEach((l) => {
|
|
2898
|
+
Dn(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 = Dt(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
|
+
Dn(o.prototype, l, {
|
|
2793
2913
|
get() {
|
|
2794
2914
|
return this.$$c?.[l];
|
|
2795
2915
|
}
|
|
@@ -2797,16 +2917,195 @@ 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 gl = /* @__PURE__ */ le('<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 vs(e, t) {
|
|
2922
|
+
Yn(t, !0);
|
|
2923
|
+
let n = Me(t, "onPointerDown"), r = Me(t, "handleClass", 7, "absolute bottom-0 right-0 w-4 h-4 cursor-se-resize"), i = Me(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), we();
|
|
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), we();
|
|
2936
|
+
},
|
|
2937
|
+
get iconClass() {
|
|
2938
|
+
return i();
|
|
2939
|
+
},
|
|
2940
|
+
set iconClass(a = "w-full h-full text-base-content/30") {
|
|
2941
|
+
i(a), we();
|
|
2942
|
+
}
|
|
2943
|
+
}, o = gl(), l = M(o);
|
|
2944
|
+
return T(o), Oe(() => {
|
|
2945
|
+
Ct(o, 1, Pn(r())), Ct(l, 0, Pn(i()));
|
|
2946
|
+
}), qe("mousedown", o, function(...a) {
|
|
2947
|
+
n()?.apply(this, a);
|
|
2948
|
+
}), H(e, o), Wn(s);
|
|
2949
|
+
}
|
|
2950
|
+
jr(["mousedown"]);
|
|
2951
|
+
Vr(vs, { onPointerDown: {}, handleClass: {}, iconClass: {} }, [], [], { mode: "open" });
|
|
2952
|
+
var ml = /* @__PURE__ */ ls('<svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" 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>'), wl = /* @__PURE__ */ ls('<svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" 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>'), bl = /* @__PURE__ */ le('<button><!></button> <button title="Close"><svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" 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
|
+
function hs(e, t) {
|
|
2954
|
+
Yn(t, !0);
|
|
2955
|
+
let n = Me(t, "minimized", 7, !1), r = Me(t, "onToggle"), i = Me(t, "onClose"), s = Me(t, "buttonClass", 7, "btn btn-xs btn-ghost btn-circle");
|
|
2956
|
+
var o = {
|
|
2957
|
+
get minimized() {
|
|
2958
|
+
return n();
|
|
2959
|
+
},
|
|
2960
|
+
set minimized(g = !1) {
|
|
2961
|
+
n(g), we();
|
|
2962
|
+
},
|
|
2963
|
+
get onToggle() {
|
|
2964
|
+
return r();
|
|
2965
|
+
},
|
|
2966
|
+
set onToggle(g) {
|
|
2967
|
+
r(g), we();
|
|
2968
|
+
},
|
|
2969
|
+
get onClose() {
|
|
2970
|
+
return i();
|
|
2971
|
+
},
|
|
2972
|
+
set onClose(g) {
|
|
2973
|
+
i(g), we();
|
|
2974
|
+
},
|
|
2975
|
+
get buttonClass() {
|
|
2976
|
+
return s();
|
|
2977
|
+
},
|
|
2978
|
+
set buttonClass(g = "btn btn-xs btn-ghost btn-circle") {
|
|
2979
|
+
s(g), we();
|
|
2980
|
+
}
|
|
2981
|
+
}, l = bl(), a = br(l), f = M(a);
|
|
2982
|
+
{
|
|
2983
|
+
var d = (g) => {
|
|
2984
|
+
var c = ml();
|
|
2985
|
+
H(g, c);
|
|
2986
|
+
}, v = (g) => {
|
|
2987
|
+
var c = wl();
|
|
2988
|
+
H(g, c);
|
|
2989
|
+
};
|
|
2990
|
+
Ee(f, (g) => {
|
|
2991
|
+
n() ? g(d) : g(v, -1);
|
|
2992
|
+
});
|
|
2993
|
+
}
|
|
2994
|
+
T(a);
|
|
2995
|
+
var _ = k(a, 2);
|
|
2996
|
+
return Oe(() => {
|
|
2997
|
+
Ct(a, 1, Pn(s())), Er(a, "title", n() ? "Maximize" : "Minimize"), Ct(_, 1, Pn(s()));
|
|
2998
|
+
}), qe("click", a, function(...g) {
|
|
2999
|
+
r()?.apply(this, g);
|
|
3000
|
+
}), qe("click", _, function(...g) {
|
|
3001
|
+
i()?.apply(this, g);
|
|
3002
|
+
}), H(e, l), Wn(o);
|
|
3003
|
+
}
|
|
3004
|
+
jr(["click"]);
|
|
3005
|
+
Vr(hs, { minimized: {}, onToggle: {}, onClose: {}, buttonClass: {} }, [], [], { mode: "open" });
|
|
3006
|
+
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, ci = (e, t, n) => $l(e, typeof t != "symbol" ? t + "" : t, n), di;
|
|
3007
|
+
typeof window < "u" && ((di = window.__svelte ?? (window.__svelte = {})).v ?? (di.v = /* @__PURE__ */ new Set())).add("5");
|
|
3008
|
+
new class extends Error {
|
|
3009
|
+
constructor() {
|
|
3010
|
+
super(...arguments), ci(this, "name", "StaleReactionError"), ci(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
3011
|
+
}
|
|
3012
|
+
}();
|
|
3013
|
+
const xl = /* @__PURE__ */ new Set(), El = /* @__PURE__ */ new Set();
|
|
3014
|
+
function ps(e) {
|
|
3015
|
+
for (var t = 0; t < e.length; t++)
|
|
3016
|
+
xl.add(e[t]);
|
|
3017
|
+
for (var n of El)
|
|
3018
|
+
n(e);
|
|
3019
|
+
}
|
|
3020
|
+
ps(["click"]);
|
|
3021
|
+
ps(["mousedown"]);
|
|
3022
|
+
function Cl(e, t) {
|
|
3023
|
+
const n = (d, v, _) => Math.max(v, Math.min(d, _)), r = n(
|
|
3024
|
+
Math.round(e.width * t.widthRatio),
|
|
3025
|
+
t.minWidth,
|
|
3026
|
+
t.maxWidth
|
|
3027
|
+
), i = n(
|
|
3028
|
+
Math.round(e.height * t.heightRatio),
|
|
3029
|
+
t.minHeight,
|
|
3030
|
+
t.maxHeight
|
|
3031
|
+
), 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));
|
|
3032
|
+
return { x: a, y: f, width: r, height: i };
|
|
3033
|
+
}
|
|
3034
|
+
function Sl(e) {
|
|
3035
|
+
const t = e.padding ?? 0;
|
|
3036
|
+
let n = !1, r = !1, i = 0, s = 0, o = 0, l = 0, a = 0, f = 0, d = 0, v = 0;
|
|
3037
|
+
const _ = (m) => {
|
|
3038
|
+
if (!n) return;
|
|
3039
|
+
const w = e.getState(), N = m.clientX - i, G = m.clientY - s, V = Math.max(t, window.innerWidth - w.width - t), B = Math.max(t, window.innerHeight - 100 - t);
|
|
3040
|
+
e.setState({
|
|
3041
|
+
...w,
|
|
3042
|
+
x: Math.max(t, Math.min(o + N, V)),
|
|
3043
|
+
y: Math.max(t, Math.min(l + G, B))
|
|
3044
|
+
});
|
|
3045
|
+
}, g = (m) => {
|
|
3046
|
+
if (!r) return;
|
|
3047
|
+
const w = e.getState(), N = m.clientX - a, G = m.clientY - f, V = Math.max(
|
|
3048
|
+
e.minWidth,
|
|
3049
|
+
window.innerWidth - w.x - t
|
|
3050
|
+
), B = Math.max(
|
|
3051
|
+
e.minHeight,
|
|
3052
|
+
window.innerHeight - w.y - t
|
|
3053
|
+
);
|
|
3054
|
+
e.setState({
|
|
3055
|
+
...w,
|
|
3056
|
+
width: Math.max(
|
|
3057
|
+
e.minWidth,
|
|
3058
|
+
Math.min(d + N, V)
|
|
3059
|
+
),
|
|
3060
|
+
height: Math.max(
|
|
3061
|
+
e.minHeight,
|
|
3062
|
+
Math.min(v + G, B)
|
|
3063
|
+
)
|
|
3064
|
+
});
|
|
3065
|
+
}, c = () => {
|
|
3066
|
+
n = !1, document.removeEventListener("mousemove", _), document.removeEventListener("mouseup", c);
|
|
3067
|
+
}, b = () => {
|
|
3068
|
+
r = !1, document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", b);
|
|
3069
|
+
};
|
|
3070
|
+
return {
|
|
3071
|
+
startDrag(m) {
|
|
3072
|
+
n = !0, i = m.clientX, s = m.clientY;
|
|
3073
|
+
const w = e.getState();
|
|
3074
|
+
o = w.x, l = w.y, document.addEventListener("mousemove", _), document.addEventListener("mouseup", c);
|
|
3075
|
+
},
|
|
3076
|
+
startResize(m) {
|
|
3077
|
+
r = !0, a = m.clientX, f = m.clientY;
|
|
3078
|
+
const w = e.getState();
|
|
3079
|
+
d = w.width, v = w.height, document.addEventListener("mousemove", g), document.addEventListener("mouseup", b), m.preventDefault(), m.stopPropagation();
|
|
3080
|
+
},
|
|
3081
|
+
stop() {
|
|
3082
|
+
c(), b();
|
|
3083
|
+
}
|
|
3084
|
+
};
|
|
3085
|
+
}
|
|
3086
|
+
function kl(e, t) {
|
|
3087
|
+
return (e || void 0) === (t || void 0);
|
|
3088
|
+
}
|
|
3089
|
+
function vi(e, t, n) {
|
|
3090
|
+
const r = e?.key?.sectionId || "", i = e?.key?.attemptId || void 0;
|
|
3091
|
+
return r !== t ? !1 : kl(i, n);
|
|
3092
|
+
}
|
|
3093
|
+
function Tl(e, t, n) {
|
|
3094
|
+
return !e?.getSectionController || !t ? null : e.getSectionController({
|
|
3095
|
+
sectionId: t,
|
|
3096
|
+
attemptId: n
|
|
3097
|
+
}) || null;
|
|
3098
|
+
}
|
|
3099
|
+
var Ml = /* @__PURE__ */ le('<span class="pie-section-player-tools-event-debugger__status svelte-low4va">controller unavailable</span>'), Al = /* @__PURE__ */ le('<div class="pie-section-player-tools-event-debugger__empty svelte-low4va">No matching events yet. Interact with an item to capture broadcasts.</div>'), Rl = /* @__PURE__ */ le("<span> </span>"), Nl = /* @__PURE__ */ le("<span>replayed</span>"), Il = /* @__PURE__ */ le("<span> </span>"), Ol = /* @__PURE__ */ le("<span> </span>"), Dl = /* @__PURE__ */ le("<span> </span>"), Ll = /* @__PURE__ */ le('<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>'), Pl = /* @__PURE__ */ le('<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>Replayed:</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), Fl = /* @__PURE__ */ le('<div class="pie-section-player-tools-event-debugger__empty svelte-low4va">Select an event to inspect payload details.</div>'), zl = /* @__PURE__ */ le('<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__ */ le('<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">Session Broadcasts</h3></div> <div class="pie-section-player-tools-event-debugger__header-actions svelte-low4va"><!></div></div> <!> <!></div>');
|
|
3100
|
+
const jl = {
|
|
2802
3101
|
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:
|
|
3102
|
+
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
3103
|
};
|
|
2805
|
-
function
|
|
2806
|
-
|
|
2807
|
-
const n =
|
|
2808
|
-
let r =
|
|
2809
|
-
function
|
|
3104
|
+
function Vl(e, t) {
|
|
3105
|
+
Yn(t, !0), sl(e, jl);
|
|
3106
|
+
const n = el();
|
|
3107
|
+
let r = Me(t, "maxEvents", 7, 200), i = Me(t, "toolkitCoordinator", 7, null), s = Me(t, "sectionId", 7, ""), o = Me(t, "attemptId", 7, void 0), l = /* @__PURE__ */ j(380), a = /* @__PURE__ */ j(100), f = /* @__PURE__ */ j(500), d = /* @__PURE__ */ j(620), v = /* @__PURE__ */ j(!1), _ = /* @__PURE__ */ j(!1), g = /* @__PURE__ */ j("item"), c = /* @__PURE__ */ j(null), b = /* @__PURE__ */ j(Ot([])), m = /* @__PURE__ */ j(!1), w = 1, N = null, G = null, V = null;
|
|
3108
|
+
function B(p) {
|
|
2810
3109
|
try {
|
|
2811
3110
|
return structuredClone(p);
|
|
2812
3111
|
} catch {
|
|
@@ -2817,344 +3116,343 @@ function Ol(e, t) {
|
|
|
2817
3116
|
}
|
|
2818
3117
|
}
|
|
2819
3118
|
}
|
|
2820
|
-
function
|
|
2821
|
-
let
|
|
3119
|
+
function At(p, y) {
|
|
3120
|
+
let I = "";
|
|
2822
3121
|
try {
|
|
2823
|
-
|
|
3122
|
+
I = JSON.stringify(y);
|
|
2824
3123
|
} catch {
|
|
2825
|
-
|
|
3124
|
+
I = String(y);
|
|
2826
3125
|
}
|
|
2827
|
-
return `${p}:${
|
|
3126
|
+
return `${p}:${I}`;
|
|
2828
3127
|
}
|
|
2829
|
-
function
|
|
2830
|
-
const
|
|
2831
|
-
|
|
2832
|
-
let
|
|
3128
|
+
function Ie(p, y) {
|
|
3129
|
+
const I = y && typeof y == "object" ? { ...y } : y;
|
|
3130
|
+
I && typeof I == "object" && (delete I.timestamp, delete I.sourceRuntimeId);
|
|
3131
|
+
let ne = "";
|
|
2833
3132
|
try {
|
|
2834
|
-
|
|
3133
|
+
ne = JSON.stringify(I);
|
|
2835
3134
|
} catch {
|
|
2836
|
-
|
|
3135
|
+
ne = String(I);
|
|
2837
3136
|
}
|
|
2838
|
-
return `${p}:${
|
|
3137
|
+
return `${p}:${ne}`;
|
|
2839
3138
|
}
|
|
2840
|
-
function
|
|
2841
|
-
const
|
|
2842
|
-
return
|
|
3139
|
+
function he(p) {
|
|
3140
|
+
const y = String(p || "");
|
|
3141
|
+
return y === "item-session-data-changed" || y === "item-session-meta-changed" || y === "item-selected" || y === "section-navigation-change" || y === "content-loaded" || y === "item-player-error" || y === "item-complete-changed" || y === "section-loading-complete" || y === "section-items-complete-changed" || y === "section-error" ? y : null;
|
|
2843
3142
|
}
|
|
2844
|
-
function
|
|
2845
|
-
return p === "section-loading-complete" || p === "section-items-complete-changed" || p === "section-error" ? "section" : "item";
|
|
3143
|
+
function Rt(p) {
|
|
3144
|
+
return p === "section-navigation-change" || p === "section-loading-complete" || p === "section-items-complete-changed" || p === "section-error" ? "section" : "item";
|
|
2846
3145
|
}
|
|
2847
|
-
function
|
|
3146
|
+
function ae(p) {
|
|
2848
3147
|
return typeof p == "string" && p.trim() ? p : null;
|
|
2849
3148
|
}
|
|
2850
|
-
function
|
|
2851
|
-
const
|
|
3149
|
+
function Xn(p, y) {
|
|
3150
|
+
const I = B(p || {}), ne = At(y, I), Qe = Ie(y, I);
|
|
2852
3151
|
return {
|
|
2853
|
-
id:
|
|
2854
|
-
type:
|
|
3152
|
+
id: w++,
|
|
3153
|
+
type: y,
|
|
2855
3154
|
timestamp: typeof p.timestamp == "number" ? p.timestamp : Date.now(),
|
|
2856
3155
|
targetTag: "section-controller",
|
|
2857
|
-
itemId:
|
|
2858
|
-
canonicalItemId:
|
|
2859
|
-
intent:
|
|
3156
|
+
itemId: ae(p?.itemId),
|
|
3157
|
+
canonicalItemId: ae(p?.canonicalItemId),
|
|
3158
|
+
intent: ae(p?.intent),
|
|
2860
3159
|
replayed: p?.replayed === !0,
|
|
2861
3160
|
duplicateCount: 1,
|
|
2862
|
-
payload:
|
|
2863
|
-
fingerprint:
|
|
2864
|
-
semanticFingerprint:
|
|
3161
|
+
payload: I,
|
|
3162
|
+
fingerprint: ne,
|
|
3163
|
+
semanticFingerprint: Qe
|
|
2865
3164
|
};
|
|
2866
3165
|
}
|
|
2867
|
-
function
|
|
2868
|
-
if (
|
|
2869
|
-
const
|
|
2870
|
-
if (!
|
|
2871
|
-
const
|
|
2872
|
-
if (
|
|
2873
|
-
|
|
3166
|
+
function Jn(p) {
|
|
3167
|
+
if (h(_)) return;
|
|
3168
|
+
const y = he(p?.type);
|
|
3169
|
+
if (!y) return;
|
|
3170
|
+
const I = Xn(p, y), ne = h(b)[0];
|
|
3171
|
+
if (ne && ne.fingerprint === I.fingerprint) {
|
|
3172
|
+
R(
|
|
2874
3173
|
b,
|
|
2875
3174
|
[
|
|
2876
3175
|
{
|
|
2877
|
-
...
|
|
2878
|
-
timestamp:
|
|
2879
|
-
duplicateCount:
|
|
3176
|
+
...ne,
|
|
3177
|
+
timestamp: I.timestamp,
|
|
3178
|
+
duplicateCount: ne.duplicateCount + 1
|
|
2880
3179
|
},
|
|
2881
|
-
...
|
|
3180
|
+
...h(b).slice(1)
|
|
2882
3181
|
],
|
|
2883
3182
|
!0
|
|
2884
3183
|
);
|
|
2885
3184
|
return;
|
|
2886
3185
|
}
|
|
2887
|
-
const
|
|
2888
|
-
|
|
3186
|
+
const Qe = Math.max(10, Math.min(2e3, r() || 200));
|
|
3187
|
+
R(b, [I, ...h(b)].slice(0, Qe), !0), h(c) == null && R(c, I.id, !0);
|
|
2889
3188
|
}
|
|
2890
|
-
function
|
|
2891
|
-
return
|
|
2892
|
-
}
|
|
2893
|
-
function gn() {
|
|
2894
|
-
Un?.(), Un = null, Xn = null;
|
|
3189
|
+
function _s() {
|
|
3190
|
+
return Tl(i(), s(), o());
|
|
2895
3191
|
}
|
|
2896
3192
|
function mn() {
|
|
2897
|
-
|
|
3193
|
+
G?.(), G = null, N = null;
|
|
3194
|
+
}
|
|
3195
|
+
function wn() {
|
|
3196
|
+
V?.(), V = null;
|
|
2898
3197
|
}
|
|
2899
3198
|
function bn() {
|
|
2900
|
-
const p =
|
|
2901
|
-
if (
|
|
2902
|
-
|
|
3199
|
+
const p = _s();
|
|
3200
|
+
if (R(m, !!p, !0), !p) {
|
|
3201
|
+
mn();
|
|
2903
3202
|
return;
|
|
2904
3203
|
}
|
|
2905
|
-
p !==
|
|
2906
|
-
|
|
3204
|
+
p !== N && (mn(), N = p, G = p.subscribe?.((y) => {
|
|
3205
|
+
Jn(y || {});
|
|
2907
3206
|
}) || null);
|
|
2908
3207
|
}
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
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);
|
|
2927
|
-
}
|
|
2928
|
-
function Jn() {
|
|
2929
|
-
R = !1, document.removeEventListener("mousemove", Yr), document.removeEventListener("mouseup", Jn);
|
|
2930
|
-
}
|
|
2931
|
-
function ws() {
|
|
2932
|
-
I(b, [], !0), I(d, null);
|
|
3208
|
+
const Gn = Sl({
|
|
3209
|
+
getState: () => ({
|
|
3210
|
+
x: h(l),
|
|
3211
|
+
y: h(a),
|
|
3212
|
+
width: h(f),
|
|
3213
|
+
height: h(d)
|
|
3214
|
+
}),
|
|
3215
|
+
setState: (p) => {
|
|
3216
|
+
R(l, p.x, !0), R(a, p.y, !0), R(f, p.width, !0), R(d, p.height, !0);
|
|
3217
|
+
},
|
|
3218
|
+
minWidth: 340,
|
|
3219
|
+
minHeight: 260
|
|
3220
|
+
});
|
|
3221
|
+
function gs() {
|
|
3222
|
+
R(b, [], !0), R(c, null);
|
|
2933
3223
|
}
|
|
2934
|
-
function
|
|
3224
|
+
function ms(p) {
|
|
2935
3225
|
return new Date(p).toLocaleTimeString();
|
|
2936
3226
|
}
|
|
2937
|
-
const
|
|
3227
|
+
const en = /* @__PURE__ */ Tn(() => h(b).filter((p) => Rt(p.type) === h(g))), Kn = /* @__PURE__ */ Tn(() => {
|
|
2938
3228
|
const p = /* @__PURE__ */ new Map();
|
|
2939
|
-
for (const
|
|
2940
|
-
p.set(
|
|
3229
|
+
for (const y of h(en))
|
|
3230
|
+
p.set(y.semanticFingerprint, (p.get(y.semanticFingerprint) || 0) + y.duplicateCount);
|
|
2941
3231
|
return p;
|
|
2942
|
-
}),
|
|
2943
|
-
|
|
2944
|
-
const p = (
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
3232
|
+
}), pe = /* @__PURE__ */ Tn(() => h(en).find((p) => p.id === h(c)) || h(en)[0] || null);
|
|
3233
|
+
fs(() => {
|
|
3234
|
+
const p = Cl({ width: window.innerWidth, height: window.innerHeight }, {
|
|
3235
|
+
widthRatio: 0.34,
|
|
3236
|
+
heightRatio: 0.74,
|
|
3237
|
+
minWidth: 380,
|
|
3238
|
+
maxWidth: 720,
|
|
3239
|
+
minHeight: 360,
|
|
3240
|
+
maxHeight: 860,
|
|
3241
|
+
paddingX: 16,
|
|
3242
|
+
paddingY: 16
|
|
3243
|
+
});
|
|
3244
|
+
return R(l, p.x, !0), R(a, p.y, !0), R(f, p.width, !0), R(d, p.height, !0), bn(), V = i()?.onSectionControllerLifecycle?.((y) => {
|
|
3245
|
+
vi(y, s(), o()) && bn();
|
|
2948
3246
|
}), () => {
|
|
2949
|
-
|
|
3247
|
+
mn(), wn();
|
|
2950
3248
|
};
|
|
2951
|
-
}),
|
|
2952
|
-
|
|
2953
|
-
m === s() && (S || void 0) === (o() || void 0) && bn();
|
|
3249
|
+
}), Wi(() => (i(), s(), o(), bn(), wn(), V = i()?.onSectionControllerLifecycle?.((p) => {
|
|
3250
|
+
vi(p, s(), o()) && bn();
|
|
2954
3251
|
}), () => {
|
|
2955
|
-
|
|
2956
|
-
})),
|
|
2957
|
-
Gn(),
|
|
3252
|
+
wn();
|
|
3253
|
+
})), Zo(() => {
|
|
3254
|
+
Gn.stop(), mn(), wn();
|
|
2958
3255
|
});
|
|
2959
|
-
var
|
|
3256
|
+
var ws = {
|
|
2960
3257
|
get maxEvents() {
|
|
2961
3258
|
return r();
|
|
2962
3259
|
},
|
|
2963
3260
|
set maxEvents(p = 200) {
|
|
2964
|
-
r(p),
|
|
3261
|
+
r(p), we();
|
|
2965
3262
|
},
|
|
2966
3263
|
get toolkitCoordinator() {
|
|
2967
3264
|
return i();
|
|
2968
3265
|
},
|
|
2969
3266
|
set toolkitCoordinator(p = null) {
|
|
2970
|
-
i(p),
|
|
3267
|
+
i(p), we();
|
|
2971
3268
|
},
|
|
2972
3269
|
get sectionId() {
|
|
2973
3270
|
return s();
|
|
2974
3271
|
},
|
|
2975
3272
|
set sectionId(p = "") {
|
|
2976
|
-
s(p),
|
|
3273
|
+
s(p), we();
|
|
2977
3274
|
},
|
|
2978
3275
|
get attemptId() {
|
|
2979
3276
|
return o();
|
|
2980
3277
|
},
|
|
2981
3278
|
set attemptId(p = void 0) {
|
|
2982
|
-
o(p),
|
|
2983
|
-
}
|
|
2984
|
-
},
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
3279
|
+
o(p), we();
|
|
3280
|
+
}
|
|
3281
|
+
}, yn = Hl(), $n = M(yn), Yr = k(M($n), 2), bs = M(Yr);
|
|
3282
|
+
hs(bs, {
|
|
3283
|
+
get minimized() {
|
|
3284
|
+
return h(v);
|
|
3285
|
+
},
|
|
3286
|
+
onToggle: () => R(v, !h(v)),
|
|
3287
|
+
onClose: () => n("close")
|
|
3288
|
+
}), T(Yr), T($n);
|
|
3289
|
+
var Wr = k($n, 2);
|
|
2991
3290
|
{
|
|
2992
|
-
var
|
|
2993
|
-
var
|
|
2994
|
-
let
|
|
2995
|
-
var
|
|
2996
|
-
let
|
|
2997
|
-
T(
|
|
2998
|
-
var
|
|
2999
|
-
T(
|
|
3000
|
-
var Xr =
|
|
3291
|
+
var ys = (p) => {
|
|
3292
|
+
var y = zl(), I = M(y), ne = M(I), Qe = M(ne);
|
|
3293
|
+
let qr;
|
|
3294
|
+
var Zn = k(Qe, 2);
|
|
3295
|
+
let Ur;
|
|
3296
|
+
T(ne);
|
|
3297
|
+
var xn = k(ne, 2), Es = M(xn, !0);
|
|
3298
|
+
T(xn);
|
|
3299
|
+
var Xr = k(xn, 2), Cs = k(Xr, 2);
|
|
3001
3300
|
{
|
|
3002
|
-
var
|
|
3003
|
-
var
|
|
3004
|
-
|
|
3301
|
+
var Ss = (Y) => {
|
|
3302
|
+
var xe = Ml();
|
|
3303
|
+
H(Y, xe);
|
|
3005
3304
|
};
|
|
3006
|
-
|
|
3007
|
-
|
|
3305
|
+
Ee(Cs, (Y) => {
|
|
3306
|
+
h(m) || Y(Ss);
|
|
3008
3307
|
});
|
|
3009
3308
|
}
|
|
3010
|
-
T(
|
|
3011
|
-
var
|
|
3309
|
+
T(I);
|
|
3310
|
+
var Jr = k(I, 2), Qn = M(Jr), ks = M(Qn);
|
|
3012
3311
|
{
|
|
3013
|
-
var
|
|
3014
|
-
var
|
|
3015
|
-
|
|
3016
|
-
},
|
|
3017
|
-
var
|
|
3018
|
-
|
|
3019
|
-
var
|
|
3020
|
-
let
|
|
3021
|
-
var
|
|
3022
|
-
T(
|
|
3023
|
-
var
|
|
3024
|
-
T(
|
|
3025
|
-
var Sn =
|
|
3312
|
+
var Ts = (Y) => {
|
|
3313
|
+
var xe = Al();
|
|
3314
|
+
H(Y, xe);
|
|
3315
|
+
}, Ms = (Y) => {
|
|
3316
|
+
var xe = qo(), tn = br(xe);
|
|
3317
|
+
nl(tn, 17, () => h(en), (dt) => dt.id, (dt, K) => {
|
|
3318
|
+
var Ye = Ll();
|
|
3319
|
+
let En;
|
|
3320
|
+
var vt = M(Ye), nn = M(vt), rn = M(nn, !0);
|
|
3321
|
+
T(nn);
|
|
3322
|
+
var Cn = k(nn, 2), sn = M(Cn, !0);
|
|
3323
|
+
T(Cn), T(vt);
|
|
3324
|
+
var Sn = k(vt, 2), Nt = M(Sn);
|
|
3026
3325
|
{
|
|
3027
|
-
var
|
|
3028
|
-
var
|
|
3029
|
-
T(
|
|
3326
|
+
var er = (F) => {
|
|
3327
|
+
var W = Rl(), ht = M(W);
|
|
3328
|
+
T(W), Oe(() => Z(ht, `item: ${h(K).itemId ?? ""}`)), H(F, W);
|
|
3030
3329
|
};
|
|
3031
|
-
|
|
3032
|
-
|
|
3330
|
+
Ee(Nt, (F) => {
|
|
3331
|
+
h(K).itemId && F(er);
|
|
3033
3332
|
});
|
|
3034
3333
|
}
|
|
3035
|
-
var
|
|
3334
|
+
var It = k(Nt, 2);
|
|
3036
3335
|
{
|
|
3037
|
-
var
|
|
3038
|
-
var
|
|
3039
|
-
|
|
3336
|
+
var tr = (F) => {
|
|
3337
|
+
var W = Nl();
|
|
3338
|
+
H(F, W);
|
|
3040
3339
|
};
|
|
3041
|
-
|
|
3042
|
-
|
|
3340
|
+
Ee(It, (F) => {
|
|
3341
|
+
h(K).replayed && F(tr);
|
|
3043
3342
|
});
|
|
3044
3343
|
}
|
|
3045
|
-
var
|
|
3344
|
+
var on = k(It, 2);
|
|
3046
3345
|
{
|
|
3047
|
-
var
|
|
3048
|
-
var
|
|
3049
|
-
T(
|
|
3346
|
+
var nr = (F) => {
|
|
3347
|
+
var W = Il(), ht = M(W);
|
|
3348
|
+
T(W), Oe(() => Z(ht, `intent: ${h(K).intent ?? ""}`)), H(F, W);
|
|
3050
3349
|
};
|
|
3051
|
-
|
|
3052
|
-
|
|
3350
|
+
Ee(on, (F) => {
|
|
3351
|
+
h(K).intent && F(nr);
|
|
3053
3352
|
});
|
|
3054
3353
|
}
|
|
3055
|
-
var
|
|
3354
|
+
var ln = k(on, 2);
|
|
3056
3355
|
{
|
|
3057
|
-
var
|
|
3058
|
-
var
|
|
3059
|
-
T(
|
|
3060
|
-
() =>
|
|
3061
|
-
]),
|
|
3062
|
-
},
|
|
3063
|
-
|
|
3064
|
-
|
|
3356
|
+
var rr = (F) => {
|
|
3357
|
+
var W = Ol(), ht = M(W);
|
|
3358
|
+
T(W), Oe((Os) => Z(ht, `semantic repeats: ${Os ?? ""}`), [
|
|
3359
|
+
() => h(Kn).get(h(K).semanticFingerprint)
|
|
3360
|
+
]), H(F, W);
|
|
3361
|
+
}, ir = /* @__PURE__ */ Tn(() => (h(Kn).get(h(K).semanticFingerprint) || 0) > h(K).duplicateCount);
|
|
3362
|
+
Ee(ln, (F) => {
|
|
3363
|
+
h(ir) && F(rr);
|
|
3065
3364
|
});
|
|
3066
3365
|
}
|
|
3067
|
-
var
|
|
3366
|
+
var sr = k(ln, 2);
|
|
3068
3367
|
{
|
|
3069
|
-
var
|
|
3070
|
-
var
|
|
3071
|
-
T(
|
|
3368
|
+
var Is = (F) => {
|
|
3369
|
+
var W = Dl(), ht = M(W);
|
|
3370
|
+
T(W), Oe(() => Z(ht, `dupes: ${h(K).duplicateCount ?? ""}`)), H(F, W);
|
|
3072
3371
|
};
|
|
3073
|
-
|
|
3074
|
-
|
|
3372
|
+
Ee(sr, (F) => {
|
|
3373
|
+
h(K).duplicateCount > 1 && F(Is);
|
|
3075
3374
|
});
|
|
3076
3375
|
}
|
|
3077
|
-
T(Sn), T(
|
|
3078
|
-
(
|
|
3079
|
-
|
|
3080
|
-
"pie-section-player-tools-event-debugger__row--active":
|
|
3081
|
-
}),
|
|
3376
|
+
T(Sn), T(Ye), Oe(
|
|
3377
|
+
(F) => {
|
|
3378
|
+
En = Ct(Ye, 1, "pie-section-player-tools-event-debugger__row svelte-low4va", null, En, {
|
|
3379
|
+
"pie-section-player-tools-event-debugger__row--active": h(pe)?.id === h(K).id
|
|
3380
|
+
}), Z(rn, h(K).type), Z(sn, F);
|
|
3082
3381
|
},
|
|
3083
|
-
[() =>
|
|
3084
|
-
),
|
|
3085
|
-
}),
|
|
3382
|
+
[() => ms(h(K).timestamp)]
|
|
3383
|
+
), qe("click", Ye, () => R(c, h(K).id, !0)), H(dt, Ye);
|
|
3384
|
+
}), H(Y, xe);
|
|
3086
3385
|
};
|
|
3087
|
-
|
|
3088
|
-
|
|
3386
|
+
Ee(ks, (Y) => {
|
|
3387
|
+
h(en).length === 0 ? Y(Ts) : Y(Ms, -1);
|
|
3089
3388
|
});
|
|
3090
3389
|
}
|
|
3091
|
-
T(
|
|
3092
|
-
var
|
|
3390
|
+
T(Qn);
|
|
3391
|
+
var Gr = k(Qn, 2), As = M(Gr);
|
|
3093
3392
|
{
|
|
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
|
-
var
|
|
3112
|
-
T(
|
|
3113
|
-
(
|
|
3114
|
-
|
|
3393
|
+
var Rs = (Y) => {
|
|
3394
|
+
var xe = Pl(), tn = br(xe), dt = M(tn), K = k(M(dt));
|
|
3395
|
+
T(dt);
|
|
3396
|
+
var Ye = k(dt, 2), En = k(M(Ye));
|
|
3397
|
+
T(Ye);
|
|
3398
|
+
var vt = k(Ye, 2), nn = k(M(vt));
|
|
3399
|
+
T(vt);
|
|
3400
|
+
var rn = k(vt, 2), Cn = k(M(rn));
|
|
3401
|
+
T(rn);
|
|
3402
|
+
var sn = k(rn, 2), Sn = k(M(sn));
|
|
3403
|
+
T(sn);
|
|
3404
|
+
var Nt = k(sn, 2), er = k(M(Nt));
|
|
3405
|
+
T(Nt);
|
|
3406
|
+
var It = k(Nt, 2), tr = k(M(It));
|
|
3407
|
+
T(It);
|
|
3408
|
+
var on = k(It, 2), nr = k(M(on));
|
|
3409
|
+
T(on), T(tn);
|
|
3410
|
+
var ln = k(tn, 2), rr = M(ln, !0);
|
|
3411
|
+
T(ln), Oe(
|
|
3412
|
+
(ir, sr) => {
|
|
3413
|
+
Z(K, ` ${h(pe).type ?? ""}`), Z(En, ` ${(h(pe).targetTag || "unknown") ?? ""}`), Z(nn, ` ${(h(pe).itemId || "n/a") ?? ""}`), Z(Cn, ` ${(h(pe).canonicalItemId || "n/a") ?? ""}`), Z(Sn, ` ${h(pe).replayed ? "yes" : "no"}`), Z(er, ` ${(h(pe).intent || "n/a") ?? ""}`), Z(tr, ` ${h(pe).duplicateCount ?? ""}`), Z(nr, ` ${ir ?? ""}`), Z(rr, sr);
|
|
3115
3414
|
},
|
|
3116
3415
|
[
|
|
3117
|
-
() =>
|
|
3118
|
-
() => JSON.stringify(
|
|
3416
|
+
() => h(Kn).get(h(pe).semanticFingerprint) || h(pe).duplicateCount,
|
|
3417
|
+
() => JSON.stringify(h(pe).payload, null, 2)
|
|
3119
3418
|
]
|
|
3120
|
-
),
|
|
3121
|
-
},
|
|
3122
|
-
var
|
|
3123
|
-
|
|
3419
|
+
), H(Y, xe);
|
|
3420
|
+
}, Ns = (Y) => {
|
|
3421
|
+
var xe = Fl();
|
|
3422
|
+
H(Y, xe);
|
|
3124
3423
|
};
|
|
3125
|
-
|
|
3126
|
-
|
|
3424
|
+
Ee(As, (Y) => {
|
|
3425
|
+
h(pe) ? Y(Rs) : Y(Ns, -1);
|
|
3127
3426
|
});
|
|
3128
3427
|
}
|
|
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
|
-
}),
|
|
3428
|
+
T(Gr), T(Jr), T(y), Oe(() => {
|
|
3429
|
+
ui(y, `height: ${h(d) - 50}px;`), qr = Ct(Qe, 1, "pie-section-player-tools-event-debugger__toggle-button svelte-low4va", null, qr, {
|
|
3430
|
+
"pie-section-player-tools-event-debugger__toggle-button--active": h(g) === "item"
|
|
3431
|
+
}), Er(Qe, "aria-pressed", h(g) === "item"), Ur = Ct(Zn, 1, "pie-section-player-tools-event-debugger__toggle-button svelte-low4va", null, Ur, {
|
|
3432
|
+
"pie-section-player-tools-event-debugger__toggle-button--active": h(g) === "section"
|
|
3433
|
+
}), Er(Zn, "aria-pressed", h(g) === "section"), Z(Es, h(_) ? "resume" : "pause");
|
|
3434
|
+
}), qe("click", Qe, () => R(g, "item")), qe("click", Zn, () => R(g, "section")), qe("click", xn, () => R(_, !h(_))), qe("click", Xr, gs), H(p, y);
|
|
3136
3435
|
};
|
|
3137
|
-
|
|
3138
|
-
v
|
|
3436
|
+
Ee(Wr, (p) => {
|
|
3437
|
+
h(v) || p(ys);
|
|
3139
3438
|
});
|
|
3140
3439
|
}
|
|
3141
|
-
var
|
|
3440
|
+
var $s = k(Wr, 2);
|
|
3142
3441
|
{
|
|
3143
|
-
var
|
|
3144
|
-
|
|
3145
|
-
|
|
3442
|
+
var xs = (p) => {
|
|
3443
|
+
vs(p, {
|
|
3444
|
+
onPointerDown: (y) => Gn.startResize(y)
|
|
3445
|
+
});
|
|
3146
3446
|
};
|
|
3147
|
-
|
|
3148
|
-
v
|
|
3447
|
+
Ee($s, (p) => {
|
|
3448
|
+
h(v) || p(xs);
|
|
3149
3449
|
});
|
|
3150
3450
|
}
|
|
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);
|
|
3451
|
+
return T(yn), Oe(() => ui(yn, `left: ${h(l) ?? ""}px; top: ${h(a) ?? ""}px; width: ${h(f) ?? ""}px; ${h(v) ? "height: auto;" : `height: ${h(d)}px;`}`)), qe("mousedown", $n, (p) => Gn.startDrag(p)), H(e, yn), Wn(ws);
|
|
3154
3452
|
}
|
|
3155
|
-
|
|
3156
|
-
customElements.define("pie-section-player-tools-event-debugger",
|
|
3157
|
-
|
|
3453
|
+
jr(["mousedown", "click"]);
|
|
3454
|
+
customElements.define("pie-section-player-tools-event-debugger", Vr(
|
|
3455
|
+
Vl,
|
|
3158
3456
|
{
|
|
3159
3457
|
maxEvents: { attribute: "max-events", type: "Number" },
|
|
3160
3458
|
toolkitCoordinator: { attribute: "toolkit-coordinator", type: "Object" },
|
|
@@ -3165,5 +3463,5 @@ customElements.define("pie-section-player-tools-event-debugger", bl(
|
|
|
3165
3463
|
[]
|
|
3166
3464
|
));
|
|
3167
3465
|
export {
|
|
3168
|
-
|
|
3466
|
+
Vl as default
|
|
3169
3467
|
};
|