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