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