@pie-players/pie-tool-annotation-toolbar 1.0.0-beta.1 → 1.0.0-beta.3
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/tool-annotation-toolbar.js +1143 -1122
- package/package.json +4 -4
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { coerceBooleanAttributes as
|
|
2
|
-
import { HighlightColor as
|
|
3
|
-
import { resolveInterfaceI18n as
|
|
4
|
-
import { sanitizeSvgIcon as
|
|
1
|
+
import { coerceBooleanAttributes as na } from "@pie-players/pie-players-shared/ui/attribute-coercion";
|
|
2
|
+
import { HighlightColor as yt, catalogContextHolding as ra, composedClosest as ia, composedContains as wr, connectToolRegionScopeContext as oa, connectToolRuntimeContext as aa, connectToolShellContext as sa, findShellScopeHost as la, isShadowRootNode as Pr, isTTSStartFailure as fa, reportToolFailure as lr, resolveContentRegion as ua, retargetToTree as ca } from "@pie-players/pie-assessment-toolkit/tools/registration";
|
|
3
|
+
import { resolveInterfaceI18n as da } from "@pie-players/pie-players-shared/i18n/provider";
|
|
4
|
+
import { sanitizeSvgIcon as ha } from "@pie-players/pie-players-shared/security";
|
|
5
5
|
if (typeof window < "u") {
|
|
6
|
-
var
|
|
7
|
-
((
|
|
6
|
+
var si, li;
|
|
7
|
+
((si = (li = window).__svelte ?? (li.__svelte = {})).v ?? (si.v = /* @__PURE__ */ new Set())).add("5");
|
|
8
8
|
}
|
|
9
|
-
var
|
|
10
|
-
var
|
|
9
|
+
var Ve = {}, z = /* @__PURE__ */ Symbol("uninitialized");
|
|
10
|
+
var va = "http://www.w3.org/2000/svg", _a = "http://www.w3.org/1998/Math/MathML", Li = Array.isArray, pa = Array.prototype.indexOf, tn = Array.prototype.includes, Yn = Array.from, Nn = Object.keys, nn = Object.defineProperty, ft = Object.getOwnPropertyDescriptor, ga = Object.getOwnPropertyDescriptors, ba = Object.prototype, wa = Array.prototype, Ni = Object.getPrototypeOf, fi = Object.isExtensible, ma = () => {
|
|
11
11
|
};
|
|
12
|
-
function
|
|
12
|
+
function ya(e) {
|
|
13
13
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Pi() {
|
|
16
16
|
var e, t;
|
|
17
17
|
return {
|
|
18
18
|
promise: new Promise((n, r) => {
|
|
@@ -22,46 +22,46 @@ function Ni() {
|
|
|
22
22
|
reject: t
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function rn(e) {
|
|
26
26
|
"@babel/helpers - typeof";
|
|
27
|
-
return
|
|
27
|
+
return rn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
28
28
|
return typeof t;
|
|
29
29
|
} : function(t) {
|
|
30
30
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
31
|
-
},
|
|
31
|
+
}, rn(e);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
if (
|
|
33
|
+
function ka(e, t) {
|
|
34
|
+
if (rn(e) != "object" || !e) return e;
|
|
35
35
|
var n = e[Symbol.toPrimitive];
|
|
36
36
|
if (n !== void 0) {
|
|
37
37
|
var r = n.call(e, t || "default");
|
|
38
|
-
if (
|
|
38
|
+
if (rn(r) != "object") return r;
|
|
39
39
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
40
40
|
}
|
|
41
41
|
return (t === "string" ? String : Number)(e);
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
var t =
|
|
45
|
-
return
|
|
43
|
+
function $a(e) {
|
|
44
|
+
var t = ka(e, "string");
|
|
45
|
+
return rn(t) == "symbol" ? t : t + "";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
return (t =
|
|
47
|
+
function q(e, t, n) {
|
|
48
|
+
return (t = $a(t)) in e ? Object.defineProperty(e, t, {
|
|
49
49
|
value: n,
|
|
50
50
|
enumerable: !0,
|
|
51
51
|
configurable: !0,
|
|
52
52
|
writable: !0
|
|
53
53
|
}) : e[t] = n, e;
|
|
54
54
|
}
|
|
55
|
-
var ql = 1 << 24, _e = 1024, ce = 2048,
|
|
56
|
-
var
|
|
55
|
+
var ql = 1 << 24, _e = 1024, ce = 2048, pt = 4096, Ir = 8192, Ii = 16384, qr = 32768, mr = 1 << 25, Wr = 65536, Wl = 1 << 17, Dl = 1 << 18, Lt = 1 << 19, Sa = 1 << 20, Zt = 1 << 25, ui = 1 << 21, Ea = 1 << 22, Pn = 1 << 23, Jt = /* @__PURE__ */ Symbol("$state"), qi = /* @__PURE__ */ Symbol("component"), Wi = /* @__PURE__ */ Symbol("legacy props"), Ta = /* @__PURE__ */ Symbol(""), Aa = /* @__PURE__ */ Symbol("proxy path"), yr = /* @__PURE__ */ Symbol("attributes"), kr = /* @__PURE__ */ Symbol("class"), $r = /* @__PURE__ */ Symbol("style"), Rn = /* @__PURE__ */ Symbol("text");
|
|
56
|
+
var un = new class extends Error {
|
|
57
57
|
constructor(...t) {
|
|
58
|
-
super(...t),
|
|
58
|
+
super(...t), q(this, "name", "StaleReactionError"), q(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
59
59
|
}
|
|
60
60
|
}(), xa = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
61
61
|
function Ma() {
|
|
62
62
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function cn(e) {
|
|
65
65
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
66
66
|
}
|
|
67
67
|
function Ra() {
|
|
@@ -74,16 +74,16 @@ function De(e) {
|
|
|
74
74
|
var C;
|
|
75
75
|
function X(e) {
|
|
76
76
|
if (e === null)
|
|
77
|
-
throw
|
|
77
|
+
throw cn(), Ve;
|
|
78
78
|
return C = e;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function Mt() {
|
|
81
81
|
return X(/* @__PURE__ */ Te(C));
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function zt(e) {
|
|
84
84
|
if (M) {
|
|
85
85
|
if (/* @__PURE__ */ Te(C) !== null)
|
|
86
|
-
throw
|
|
86
|
+
throw cn(), Ve;
|
|
87
87
|
C = e;
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -93,7 +93,7 @@ function Ca(e = 1) {
|
|
|
93
93
|
C = n;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function In(e = !0) {
|
|
97
97
|
for (var t = 0, n = C; ; ) {
|
|
98
98
|
if (n.nodeType === 8) {
|
|
99
99
|
var r = n.data;
|
|
@@ -106,18 +106,18 @@ function Nn(e = !0) {
|
|
|
106
106
|
e && n.remove(), n = i;
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function Dr(e) {
|
|
110
110
|
if (!e || e.nodeType !== 8)
|
|
111
|
-
throw
|
|
111
|
+
throw cn(), Ve;
|
|
112
112
|
return e.data;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Di(e) {
|
|
115
115
|
return e === this.v;
|
|
116
116
|
}
|
|
117
117
|
function Oa(e, t) {
|
|
118
118
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function ji(e) {
|
|
121
121
|
return !Oa(e, this.v);
|
|
122
122
|
}
|
|
123
123
|
function La() {
|
|
@@ -156,76 +156,76 @@ function Fa() {
|
|
|
156
156
|
function Ba() {
|
|
157
157
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
158
158
|
}
|
|
159
|
-
var
|
|
160
|
-
function
|
|
159
|
+
var Be = !1, Kn = !1;
|
|
160
|
+
function ci(e, t) {
|
|
161
161
|
return e.label = t, za(e.v, t), e;
|
|
162
162
|
}
|
|
163
163
|
function za(e, t) {
|
|
164
164
|
return e?.[Aa]?.(t), e;
|
|
165
165
|
}
|
|
166
|
-
var
|
|
167
|
-
function
|
|
168
|
-
|
|
166
|
+
var F = null;
|
|
167
|
+
function Rt(e) {
|
|
168
|
+
F = e;
|
|
169
169
|
}
|
|
170
|
-
function
|
|
171
|
-
|
|
172
|
-
p:
|
|
170
|
+
function Hi(e, t = !1, n) {
|
|
171
|
+
F = {
|
|
172
|
+
p: F,
|
|
173
173
|
i: !1,
|
|
174
174
|
c: null,
|
|
175
175
|
e: null,
|
|
176
176
|
s: e,
|
|
177
177
|
x: null,
|
|
178
|
-
r:
|
|
179
|
-
l:
|
|
178
|
+
r: A,
|
|
179
|
+
l: Kn && !t ? {
|
|
180
180
|
s: null,
|
|
181
181
|
u: null,
|
|
182
182
|
$: []
|
|
183
183
|
} : null
|
|
184
184
|
};
|
|
185
185
|
}
|
|
186
|
-
function
|
|
187
|
-
var t =
|
|
186
|
+
function Vi(e) {
|
|
187
|
+
var t = F, n = t.e;
|
|
188
188
|
if (n !== null) {
|
|
189
189
|
t.e = null;
|
|
190
|
-
for (var r of n)
|
|
190
|
+
for (var r of n) co(r);
|
|
191
191
|
}
|
|
192
|
-
return e !== void 0 && (t.x = e), t.i = !0,
|
|
192
|
+
return e !== void 0 && (t.x = e), t.i = !0, F = t.p, jr(e);
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
return
|
|
194
|
+
function jr(e = {}) {
|
|
195
|
+
return nn(e, qi, { value: !0 }), e;
|
|
196
196
|
}
|
|
197
|
-
function
|
|
198
|
-
return !
|
|
197
|
+
function dn() {
|
|
198
|
+
return !Kn || F !== null && F.l === null;
|
|
199
199
|
}
|
|
200
|
-
var
|
|
201
|
-
function
|
|
202
|
-
var e =
|
|
203
|
-
|
|
200
|
+
var ot = [];
|
|
201
|
+
function Fi() {
|
|
202
|
+
var e = ot;
|
|
203
|
+
ot = [], ya(e);
|
|
204
204
|
}
|
|
205
|
-
function
|
|
206
|
-
if (
|
|
207
|
-
var t =
|
|
205
|
+
function Je(e) {
|
|
206
|
+
if (ot.length === 0 && !Qt) {
|
|
207
|
+
var t = ot;
|
|
208
208
|
queueMicrotask(() => {
|
|
209
|
-
t ===
|
|
209
|
+
t === ot && Fi();
|
|
210
210
|
});
|
|
211
211
|
}
|
|
212
|
-
|
|
212
|
+
ot.push(e);
|
|
213
213
|
}
|
|
214
214
|
function Ua() {
|
|
215
|
-
for (;
|
|
215
|
+
for (; ot.length > 0; ) Fi();
|
|
216
216
|
}
|
|
217
|
-
var Ga = ~(ce |
|
|
218
|
-
function
|
|
217
|
+
var Ga = ~(ce | pt | _e);
|
|
218
|
+
function j(e, t) {
|
|
219
219
|
e.f = e.f & Ga | t;
|
|
220
220
|
}
|
|
221
|
-
function
|
|
222
|
-
(e.f & 512) !== 0 || e.deps === null ?
|
|
221
|
+
function Hr(e) {
|
|
222
|
+
(e.f & 512) !== 0 || e.deps === null ? j(e, _e) : j(e, pt);
|
|
223
223
|
}
|
|
224
|
-
function
|
|
225
|
-
(e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && n.add(e),
|
|
224
|
+
function Bi(e, t, n) {
|
|
225
|
+
(e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && n.add(e), j(e, _e);
|
|
226
226
|
}
|
|
227
|
-
function
|
|
228
|
-
var t = R, n =
|
|
227
|
+
function Xn(e) {
|
|
228
|
+
var t = R, n = A;
|
|
229
229
|
ge(null), Ne(null);
|
|
230
230
|
try {
|
|
231
231
|
return e();
|
|
@@ -234,14 +234,14 @@ function Kn(e) {
|
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
function Ya(e, t, n, r) {
|
|
237
|
-
const i =
|
|
237
|
+
const i = dn() ? on : Vr;
|
|
238
238
|
var o = e.filter((h) => !h.settled), a = t.map(i);
|
|
239
239
|
if (n.length === 0 && o.length === 0) {
|
|
240
240
|
r(a);
|
|
241
241
|
return;
|
|
242
242
|
}
|
|
243
|
-
var f =
|
|
244
|
-
function
|
|
243
|
+
var f = A, c = Ka(), p = o.length === 1 ? o[0].promise : o.length > 1 ? Promise.all(o.map((h) => h.promise)) : null;
|
|
244
|
+
function _(h) {
|
|
245
245
|
if ((f.f & 16384) === 0) {
|
|
246
246
|
c();
|
|
247
247
|
try {
|
|
@@ -249,104 +249,108 @@ function Ya(e, t, n, r) {
|
|
|
249
249
|
} catch (b) {
|
|
250
250
|
Le(b, f);
|
|
251
251
|
}
|
|
252
|
-
|
|
252
|
+
qn();
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
|
-
var u =
|
|
255
|
+
var u = zi();
|
|
256
256
|
if (n.length === 0) {
|
|
257
|
-
|
|
257
|
+
p.then(() => _([])).finally(u);
|
|
258
258
|
return;
|
|
259
259
|
}
|
|
260
260
|
function d() {
|
|
261
|
-
Promise.all(n.map((h) => /* @__PURE__ */ Za(h))).then(
|
|
261
|
+
Promise.all(n.map((h) => /* @__PURE__ */ Za(h))).then(_).catch((h) => Le(h, f)).finally(u);
|
|
262
262
|
}
|
|
263
|
-
|
|
264
|
-
|
|
263
|
+
p ? p.then(() => {
|
|
264
|
+
if ((f.f & 16384) !== 0) {
|
|
265
|
+
u();
|
|
266
|
+
return;
|
|
267
|
+
}
|
|
268
|
+
c(), d(), qn();
|
|
265
269
|
}) : d();
|
|
266
270
|
}
|
|
267
271
|
function Ka() {
|
|
268
|
-
var e =
|
|
272
|
+
var e = A, t = R, n = F, r = x;
|
|
269
273
|
if (0) var i;
|
|
270
274
|
return function(a = !0) {
|
|
271
|
-
Ne(e), ge(t),
|
|
275
|
+
Ne(e), ge(t), Rt(n), a && (e.f & 16384) === 0 && (r?.activate(), r?.apply());
|
|
272
276
|
};
|
|
273
277
|
}
|
|
274
278
|
var Xa = !1;
|
|
275
|
-
function
|
|
276
|
-
Xa = !1, Ne(null), ge(null),
|
|
279
|
+
function qn(e = !0) {
|
|
280
|
+
Xa = !1, Ne(null), ge(null), Rt(null), e && x?.deactivate();
|
|
277
281
|
}
|
|
278
|
-
function
|
|
279
|
-
var e =
|
|
282
|
+
function zi() {
|
|
283
|
+
var e = A, t = e.b, n = x, r = !!t?.is_rendered();
|
|
280
284
|
return t?.update_pending_count(1, n), n.increment(r, e), () => {
|
|
281
285
|
t?.update_pending_count(-1, n), n.decrement(r, e);
|
|
282
286
|
};
|
|
283
287
|
}
|
|
284
288
|
// @__NO_SIDE_EFFECTS__
|
|
285
|
-
function
|
|
289
|
+
function on(e) {
|
|
286
290
|
var t = 2 | ce;
|
|
287
|
-
return
|
|
288
|
-
ctx:
|
|
291
|
+
return A !== null && (A.f |= Lt), {
|
|
292
|
+
ctx: F,
|
|
289
293
|
deps: null,
|
|
290
294
|
effects: null,
|
|
291
|
-
equals:
|
|
295
|
+
equals: Di,
|
|
292
296
|
f: t,
|
|
293
297
|
fn: e,
|
|
294
298
|
reactions: null,
|
|
295
299
|
rv: 0,
|
|
296
|
-
v:
|
|
300
|
+
v: z,
|
|
297
301
|
wv: 0,
|
|
298
|
-
parent:
|
|
302
|
+
parent: A,
|
|
299
303
|
ac: null
|
|
300
304
|
};
|
|
301
305
|
}
|
|
302
|
-
var
|
|
306
|
+
var Ut = /* @__PURE__ */ Symbol("obsolete");
|
|
303
307
|
// @__NO_SIDE_EFFECTS__
|
|
304
308
|
function Za(e, t, n) {
|
|
305
|
-
let r =
|
|
309
|
+
let r = A;
|
|
306
310
|
r === null && La();
|
|
307
|
-
var i = void 0, o =
|
|
311
|
+
var i = void 0, o = _t(z), a = !R, f = /* @__PURE__ */ new Set();
|
|
308
312
|
return _s(() => {
|
|
309
|
-
var c =
|
|
310
|
-
i =
|
|
313
|
+
var c = A, p = Pi();
|
|
314
|
+
i = p.promise;
|
|
311
315
|
try {
|
|
312
|
-
Promise.resolve(e()).then(
|
|
313
|
-
h !==
|
|
314
|
-
}).finally(
|
|
316
|
+
Promise.resolve(e()).then(p.resolve, (h) => {
|
|
317
|
+
h !== un && p.reject(h);
|
|
318
|
+
}).finally(qn);
|
|
315
319
|
} catch (h) {
|
|
316
|
-
|
|
320
|
+
p.reject(h), qn();
|
|
317
321
|
}
|
|
318
|
-
var
|
|
322
|
+
var _ = x;
|
|
319
323
|
if (a) {
|
|
320
|
-
if ((c.f & 32768) !== 0) var u =
|
|
321
|
-
if (r.b?.is_rendered())
|
|
322
|
-
else for (const h of f.values()) h.reject(
|
|
323
|
-
f.add(
|
|
324
|
+
if ((c.f & 32768) !== 0) var u = zi();
|
|
325
|
+
if (r.b?.is_rendered()) _.async_deriveds.get(c)?.reject(Ut);
|
|
326
|
+
else for (const h of f.values()) h.reject(Ut);
|
|
327
|
+
f.add(p), _.async_deriveds.set(c, p);
|
|
324
328
|
}
|
|
325
329
|
const d = (h, b = void 0) => {
|
|
326
|
-
u?.(), f.delete(
|
|
330
|
+
u?.(), f.delete(p), b !== Ut && (_.activate(), b ? (o.f |= Pn, Ct(o, b)) : ((o.f & 8388608) !== 0 && (o.f ^= Pn), Ct(o, h)), _.deactivate());
|
|
327
331
|
};
|
|
328
|
-
|
|
332
|
+
p.promise.then(d, (h) => d(null, h || "unknown"));
|
|
329
333
|
}), ds(() => {
|
|
330
|
-
for (const c of f) c.reject(
|
|
334
|
+
for (const c of f) c.reject(Ut);
|
|
331
335
|
}), new Promise((c) => {
|
|
332
|
-
function _
|
|
336
|
+
function p(_) {
|
|
333
337
|
function u() {
|
|
334
|
-
|
|
338
|
+
_ === i ? c(o) : p(i);
|
|
335
339
|
}
|
|
336
|
-
|
|
340
|
+
_.then(u, u);
|
|
337
341
|
}
|
|
338
|
-
|
|
342
|
+
p(i);
|
|
339
343
|
});
|
|
340
344
|
}
|
|
341
345
|
// @__NO_SIDE_EFFECTS__
|
|
342
346
|
function de(e) {
|
|
343
|
-
const t = /* @__PURE__ */
|
|
344
|
-
return
|
|
347
|
+
const t = /* @__PURE__ */ on(e);
|
|
348
|
+
return Be || wo(t), t;
|
|
345
349
|
}
|
|
346
350
|
// @__NO_SIDE_EFFECTS__
|
|
347
|
-
function
|
|
348
|
-
const t = /* @__PURE__ */
|
|
349
|
-
return t.equals =
|
|
351
|
+
function Vr(e) {
|
|
352
|
+
const t = /* @__PURE__ */ on(e);
|
|
353
|
+
return t.equals = ji, t;
|
|
350
354
|
}
|
|
351
355
|
function Ja(e) {
|
|
352
356
|
var t = e.effects;
|
|
@@ -355,148 +359,148 @@ function Ja(e) {
|
|
|
355
359
|
for (var n = 0; n < t.length; n += 1) ne(t[n]);
|
|
356
360
|
}
|
|
357
361
|
}
|
|
358
|
-
function
|
|
359
|
-
var t, n =
|
|
360
|
-
if (!
|
|
362
|
+
function Fr(e) {
|
|
363
|
+
var t, n = A, r = e.parent;
|
|
364
|
+
if (!Fe && r !== null && e.v !== z && (r.f & 24576) !== 0)
|
|
361
365
|
return Ma(), e.v;
|
|
362
366
|
Ne(r);
|
|
363
367
|
try {
|
|
364
|
-
Ja(e), t =
|
|
368
|
+
Ja(e), t = $o(e);
|
|
365
369
|
} finally {
|
|
366
370
|
Ne(n);
|
|
367
371
|
}
|
|
368
372
|
return t;
|
|
369
373
|
}
|
|
370
|
-
function
|
|
371
|
-
var t =
|
|
372
|
-
if (!e.equals(t) && (e.wv =
|
|
373
|
-
|
|
374
|
+
function Ui(e) {
|
|
375
|
+
var t = Fr(e);
|
|
376
|
+
if (!e.equals(t) && (e.wv = yo(), (!x?.is_fork || e.deps === null) && (x !== null ? (x.capture(e, t, !0), At?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
|
|
377
|
+
j(e, _e);
|
|
374
378
|
return;
|
|
375
379
|
}
|
|
376
|
-
|
|
380
|
+
Fe || (te !== null ? (Gr() || x?.is_fork) && te.set(e, t) : Hr(e));
|
|
377
381
|
}
|
|
378
382
|
function Qa(e) {
|
|
379
383
|
if (e.effects !== null)
|
|
380
|
-
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null &&
|
|
381
|
-
t.ac.abort(
|
|
382
|
-
}), t.fn !== null && (t.teardown =
|
|
384
|
+
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && Xn(() => {
|
|
385
|
+
t.ac.abort(un), t.ac = null;
|
|
386
|
+
}), t.fn !== null && (t.teardown = ma), ln(t, 0), Xr(t));
|
|
383
387
|
}
|
|
384
|
-
function
|
|
388
|
+
function Gi(e) {
|
|
385
389
|
if (e.effects !== null)
|
|
386
|
-
for (const t of e.effects) t.teardown && t.fn !== null &&
|
|
390
|
+
for (const t of e.effects) t.teardown && t.fn !== null && Ot(t);
|
|
387
391
|
}
|
|
388
|
-
function
|
|
392
|
+
function Yi(e, t) {
|
|
389
393
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
390
394
|
}
|
|
391
|
-
function
|
|
392
|
-
|
|
393
|
-
}
|
|
394
|
-
function S(e, t, n) {
|
|
395
|
-
Gi(e, t), t.set(e, n);
|
|
395
|
+
function Br(e, t) {
|
|
396
|
+
Yi(e, t), t.add(e);
|
|
396
397
|
}
|
|
397
398
|
function E(e, t, n) {
|
|
399
|
+
Yi(e, t), t.set(e, n);
|
|
400
|
+
}
|
|
401
|
+
function $(e, t, n) {
|
|
398
402
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
399
403
|
throw new TypeError("Private element is not present on this object");
|
|
400
404
|
}
|
|
401
|
-
function
|
|
402
|
-
return e.set(
|
|
405
|
+
function S(e, t, n) {
|
|
406
|
+
return e.set($(e, t), n), n;
|
|
403
407
|
}
|
|
404
408
|
function l(e, t) {
|
|
405
|
-
return e.get(
|
|
409
|
+
return e.get($(e, t));
|
|
406
410
|
}
|
|
407
|
-
var
|
|
408
|
-
var es = 1,
|
|
411
|
+
var Ki, Wn = null, kt = null, x = null, At = null, te = null, Sr = null, Qt = !1, fr = !1, an = null, Dn = null, Xi = 0;
|
|
412
|
+
var es = 1, jn = /* @__PURE__ */ new WeakMap(), ut = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), Hn = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap(), $t = /* @__PURE__ */ new WeakMap(), rt = /* @__PURE__ */ new WeakMap(), Gt = /* @__PURE__ */ new WeakMap(), me = /* @__PURE__ */ new WeakMap(), Er = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), Cn = /* @__PURE__ */ new WeakMap(), Yt = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakSet(), gt = class Zi {
|
|
409
413
|
constructor() {
|
|
410
|
-
|
|
414
|
+
Br(this, D), q(this, "id", es++), E(this, jn, !1), q(this, "linked", !0), E(this, ut, null), E(this, at, null), q(this, "async_deriveds", /* @__PURE__ */ new Map()), q(this, "current", /* @__PURE__ */ new Map()), q(this, "previous", /* @__PURE__ */ new Map()), E(this, Hn, /* @__PURE__ */ new Set()), E(this, $n, /* @__PURE__ */ new Set()), E(this, $t, 0), E(this, rt, /* @__PURE__ */ new Map()), E(this, Gt, null), E(this, me, []), E(this, Er, []), E(this, vt, /* @__PURE__ */ new Set()), E(this, je, /* @__PURE__ */ new Set()), E(this, Xe, /* @__PURE__ */ new Map()), E(this, Cn, /* @__PURE__ */ new Set()), q(this, "is_fork", !1), E(this, Yt, !1), kt === null ? Wn = kt = this : (S(at, kt, this), S(ut, this, kt)), kt = this;
|
|
411
415
|
}
|
|
412
416
|
skip_effect(t) {
|
|
413
|
-
l(
|
|
417
|
+
l(Xe, this).has(t) || l(Xe, this).set(t, {
|
|
414
418
|
d: [],
|
|
415
419
|
m: []
|
|
416
|
-
}), l(
|
|
420
|
+
}), l(Cn, this).delete(t);
|
|
417
421
|
}
|
|
418
422
|
unskip_effect(t, n = (r) => this.schedule(r)) {
|
|
419
|
-
var r = l(
|
|
423
|
+
var r = l(Xe, this).get(t);
|
|
420
424
|
if (r) {
|
|
421
|
-
l(
|
|
425
|
+
l(Xe, this).delete(t);
|
|
422
426
|
for (var i of r.d)
|
|
423
|
-
|
|
427
|
+
j(i, ce), n(i);
|
|
424
428
|
for (i of r.m)
|
|
425
|
-
|
|
429
|
+
j(i, pt), n(i);
|
|
426
430
|
}
|
|
427
|
-
l(
|
|
431
|
+
l(Cn, this).add(t);
|
|
428
432
|
}
|
|
429
433
|
capture(t, n, r = !1) {
|
|
430
|
-
t.v !==
|
|
434
|
+
t.v !== z && !this.previous.has(t) && this.previous.set(t, t.v), (t.f & 8388608) === 0 && (this.current.set(t, [n, r]), te?.set(t, n)), this.is_fork || (t.v = n);
|
|
431
435
|
}
|
|
432
436
|
activate() {
|
|
433
|
-
|
|
437
|
+
x = this;
|
|
434
438
|
}
|
|
435
439
|
deactivate() {
|
|
436
|
-
|
|
440
|
+
x = null, te = null;
|
|
437
441
|
}
|
|
438
442
|
flush() {
|
|
439
443
|
try {
|
|
440
|
-
|
|
444
|
+
fr = !0, x = this, $(D, this, Vn).call(this);
|
|
441
445
|
} finally {
|
|
442
|
-
|
|
446
|
+
Xi = 0, Sr = null, an = null, Dn = null, fr = !1, x = null, te = null, Oe.clear();
|
|
443
447
|
}
|
|
444
448
|
}
|
|
445
449
|
discard() {
|
|
446
|
-
for (const t of l(
|
|
447
|
-
l(
|
|
448
|
-
for (const t of this.async_deriveds.values()) t.reject(
|
|
449
|
-
|
|
450
|
+
for (const t of l($n, this)) t(this);
|
|
451
|
+
l($n, this).clear();
|
|
452
|
+
for (const t of this.async_deriveds.values()) t.reject(Ut);
|
|
453
|
+
$(D, this, Fn).call(this), l(Gt, this)?.resolve();
|
|
450
454
|
}
|
|
451
455
|
register_created_effect(t) {
|
|
452
|
-
l(
|
|
456
|
+
l(Er, this).push(t);
|
|
453
457
|
}
|
|
454
458
|
increment(t, n) {
|
|
455
|
-
if ($
|
|
456
|
-
let r = l(
|
|
457
|
-
l(
|
|
459
|
+
if (S($t, this, l($t, this) + 1), t) {
|
|
460
|
+
let r = l(rt, this).get(n) ?? 0;
|
|
461
|
+
l(rt, this).set(n, r + 1);
|
|
458
462
|
}
|
|
459
463
|
}
|
|
460
464
|
decrement(t, n) {
|
|
461
|
-
if ($
|
|
462
|
-
let r = l(
|
|
463
|
-
r === 1 ? l(
|
|
465
|
+
if (S($t, this, l($t, this) - 1), t) {
|
|
466
|
+
let r = l(rt, this).get(n) ?? 0;
|
|
467
|
+
r === 1 ? l(rt, this).delete(n) : l(rt, this).set(n, r - 1);
|
|
464
468
|
}
|
|
465
|
-
l(
|
|
466
|
-
|
|
469
|
+
l(Yt, this) || (S(Yt, this, !0), Je(() => {
|
|
470
|
+
S(Yt, this, !1), this.linked && this.flush();
|
|
467
471
|
}));
|
|
468
472
|
}
|
|
469
473
|
transfer_effects(t, n) {
|
|
470
|
-
for (const r of t) l(
|
|
474
|
+
for (const r of t) l(vt, this).add(r);
|
|
471
475
|
for (const r of n) l(je, this).add(r);
|
|
472
476
|
t.clear(), n.clear();
|
|
473
477
|
}
|
|
474
478
|
oncommit(t) {
|
|
475
|
-
l(
|
|
479
|
+
l(Hn, this).add(t);
|
|
476
480
|
}
|
|
477
481
|
ondiscard(t) {
|
|
478
|
-
l(
|
|
482
|
+
l($n, this).add(t);
|
|
479
483
|
}
|
|
480
484
|
settled() {
|
|
481
|
-
return (l(
|
|
485
|
+
return (l(Gt, this) ?? S(Gt, this, Pi())).promise;
|
|
482
486
|
}
|
|
483
487
|
static ensure() {
|
|
484
|
-
if (
|
|
485
|
-
const t =
|
|
486
|
-
!
|
|
487
|
-
l(
|
|
488
|
+
if (x === null) {
|
|
489
|
+
const t = x = new Zi();
|
|
490
|
+
!fr && !Qt && Je(() => {
|
|
491
|
+
l(jn, t) || t.flush();
|
|
488
492
|
});
|
|
489
493
|
}
|
|
490
|
-
return
|
|
494
|
+
return x;
|
|
491
495
|
}
|
|
492
496
|
apply() {
|
|
493
|
-
if (!
|
|
497
|
+
if (!Be || !this.is_fork && l(ut, this) === null && l(at, this) === null) {
|
|
494
498
|
te = null;
|
|
495
499
|
return;
|
|
496
500
|
}
|
|
497
501
|
te = /* @__PURE__ */ new Map();
|
|
498
502
|
for (const [n, [r]] of this.current) te.set(n, r);
|
|
499
|
-
for (let n =
|
|
503
|
+
for (let n = Wn; n !== null; n = l(at, n))
|
|
500
504
|
if (!(n === this || n.is_fork)) {
|
|
501
505
|
var t = !1;
|
|
502
506
|
if (n.id < this.id) {
|
|
@@ -511,19 +515,19 @@ var es = 1, Wn = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap
|
|
|
511
515
|
}
|
|
512
516
|
}
|
|
513
517
|
schedule(t) {
|
|
514
|
-
if (
|
|
518
|
+
if (Sr = t, t.b?.is_pending && (t.f & 16777228) !== 0 && (t.f & 32768) === 0) {
|
|
515
519
|
t.b.defer_effect(t);
|
|
516
520
|
return;
|
|
517
521
|
}
|
|
518
522
|
l(me, this).push(t);
|
|
519
523
|
}
|
|
520
524
|
};
|
|
521
|
-
|
|
522
|
-
function
|
|
525
|
+
Ki = gt;
|
|
526
|
+
function di() {
|
|
523
527
|
if (this.is_fork) return !0;
|
|
524
|
-
for (const n of l(
|
|
528
|
+
for (const n of l(rt, this).keys()) {
|
|
525
529
|
for (var e = n, t = !1; e.parent !== null; ) {
|
|
526
|
-
if (l(
|
|
530
|
+
if (l(Xe, this).has(e)) {
|
|
527
531
|
t = !0;
|
|
528
532
|
break;
|
|
529
533
|
}
|
|
@@ -533,7 +537,7 @@ function ci() {
|
|
|
533
537
|
}
|
|
534
538
|
return !1;
|
|
535
539
|
}
|
|
536
|
-
function
|
|
540
|
+
function Ji() {
|
|
537
541
|
var e = [];
|
|
538
542
|
for (const i of l(me, this))
|
|
539
543
|
if (!((i.f & 16384) !== 0 || (i.f & 6144) === 0)) {
|
|
@@ -550,55 +554,55 @@ function Zi() {
|
|
|
550
554
|
}
|
|
551
555
|
n || e.push(t);
|
|
552
556
|
}
|
|
553
|
-
return
|
|
557
|
+
return S(me, this, []), e;
|
|
554
558
|
}
|
|
555
|
-
function
|
|
556
|
-
|
|
557
|
-
for (const a of l(
|
|
558
|
-
l(je, this).delete(a),
|
|
559
|
+
function Vn() {
|
|
560
|
+
S(jn, this, !0);
|
|
561
|
+
for (const a of l(vt, this))
|
|
562
|
+
l(je, this).delete(a), j(a, ce), this.schedule(a);
|
|
559
563
|
for (const a of l(je, this))
|
|
560
|
-
|
|
564
|
+
j(a, pt), this.schedule(a);
|
|
561
565
|
this.apply();
|
|
562
|
-
for (var e =
|
|
563
|
-
|
|
564
|
-
for (const a of
|
|
565
|
-
|
|
566
|
+
for (var e = an = [], t = [], n = Dn = []; l(me, this).length > 0; ) {
|
|
567
|
+
Xi++ > 1e3 && ($(D, this, Fn).call(this), is());
|
|
568
|
+
for (const a of $(D, this, Ji).call(this)) try {
|
|
569
|
+
$(D, this, Qi).call(this, a, e, t);
|
|
566
570
|
} catch (f) {
|
|
567
|
-
throw
|
|
571
|
+
throw no(a), $(D, this, di).call(this) || this.discard(), f;
|
|
568
572
|
}
|
|
569
573
|
}
|
|
570
|
-
if (
|
|
571
|
-
var r =
|
|
574
|
+
if (x = null, n.length > 0) {
|
|
575
|
+
var r = Ki.ensure();
|
|
572
576
|
for (const a of n) r.schedule(a);
|
|
573
577
|
}
|
|
574
|
-
if (
|
|
575
|
-
|
|
576
|
-
for (const [a, f] of l(
|
|
577
|
-
n.length > 0 &&
|
|
578
|
+
if (an = null, Dn = null, $(D, this, di).call(this)) {
|
|
579
|
+
$(D, this, Kt).call(this, t), $(D, this, Kt).call(this, e);
|
|
580
|
+
for (const [a, f] of l(Xe, this)) to(a, f);
|
|
581
|
+
n.length > 0 && $(D, x, Vn).call(x);
|
|
578
582
|
return;
|
|
579
583
|
}
|
|
580
|
-
const i =
|
|
584
|
+
const i = $(D, this, ts).call(this);
|
|
581
585
|
if (i) {
|
|
582
|
-
|
|
586
|
+
$(D, this, Kt).call(this, t), $(D, this, Kt).call(this, e), $(D, i, ns).call(i, this);
|
|
583
587
|
return;
|
|
584
588
|
}
|
|
585
|
-
l(
|
|
586
|
-
for (const a of l(
|
|
587
|
-
l(
|
|
588
|
-
var o =
|
|
589
|
-
if (l(
|
|
589
|
+
l(vt, this).clear(), l(je, this).clear();
|
|
590
|
+
for (const a of l(Hn, this)) a(this);
|
|
591
|
+
l(Hn, this).clear(), At = this, hi(t), hi(e), At = null, l(Gt, this)?.resolve();
|
|
592
|
+
var o = x;
|
|
593
|
+
if (l($t, this) === 0 && (l(me, this).length === 0 || o !== null) && ($(D, this, Fn).call(this), Be && ($(D, this, rs).call(this), x = o)), l(me, this).length > 0)
|
|
590
594
|
if (o !== null) {
|
|
591
595
|
for (const a of l(me, this)) l(me, o).push(a);
|
|
592
|
-
|
|
596
|
+
S(me, this, []);
|
|
593
597
|
} else o = this;
|
|
594
|
-
o !== null && (Oe.clear(),
|
|
598
|
+
o !== null && (Oe.clear(), $(D, o, Vn).call(o));
|
|
595
599
|
}
|
|
596
|
-
function
|
|
600
|
+
function Qi(e, t, n) {
|
|
597
601
|
e.f ^= _e;
|
|
598
602
|
for (var r = e.first; r !== null; ) {
|
|
599
603
|
var i = r.f, o = (i & 96) !== 0;
|
|
600
|
-
if (!(o && (i & 1024) !== 0 || (i & 8192) !== 0 || l(
|
|
601
|
-
o ? r.f ^= _e : (i & 4) !== 0 ? t.push(r) :
|
|
604
|
+
if (!(o && (i & 1024) !== 0 || (i & 8192) !== 0 || l(Xe, this).has(r)) && r.fn !== null) {
|
|
605
|
+
o ? r.f ^= _e : (i & 4) !== 0 ? t.push(r) : Be && (i & 16777224) !== 0 ? n.push(r) : hn(r) && ((i & 16) !== 0 && l(je, this).add(r), Ot(r));
|
|
602
606
|
var a = r.first;
|
|
603
607
|
if (a !== null) {
|
|
604
608
|
r = a;
|
|
@@ -616,11 +620,11 @@ function Ji(e, t, n) {
|
|
|
616
620
|
}
|
|
617
621
|
}
|
|
618
622
|
function ts() {
|
|
619
|
-
for (var e = l(
|
|
623
|
+
for (var e = l(ut, this); e !== null; ) {
|
|
620
624
|
if (!e.is_fork) {
|
|
621
625
|
for (const [t, [, n]] of this.current) if (e.current.has(t) && !n) return e;
|
|
622
626
|
}
|
|
623
|
-
e = l(
|
|
627
|
+
e = l(ut, e);
|
|
624
628
|
}
|
|
625
629
|
return null;
|
|
626
630
|
}
|
|
@@ -631,7 +635,7 @@ function ns(e) {
|
|
|
631
635
|
const i = this.async_deriveds.get(n);
|
|
632
636
|
i && r.promise.then(i.resolve).catch(i.reject);
|
|
633
637
|
}
|
|
634
|
-
e.async_deriveds.clear(), this.transfer_effects(l(
|
|
638
|
+
e.async_deriveds.clear(), this.transfer_effects(l(vt, e), l(je, e));
|
|
635
639
|
const t = (n) => {
|
|
636
640
|
var r = n.reactions;
|
|
637
641
|
if (r !== null && !((n.f & 2) !== 0 && (n.f & 6144) === 0))
|
|
@@ -640,97 +644,97 @@ function ns(e) {
|
|
|
640
644
|
if ((i & 2) !== 0) t(a);
|
|
641
645
|
else {
|
|
642
646
|
var o = a;
|
|
643
|
-
i & 4194320 && !this.async_deriveds.has(o) && (l(je, this).delete(o),
|
|
647
|
+
i & 4194320 && !this.async_deriveds.has(o) && (l(je, this).delete(o), j(o, ce), this.schedule(o));
|
|
644
648
|
}
|
|
645
649
|
}
|
|
646
650
|
};
|
|
647
651
|
for (const n of this.current.keys()) t(n);
|
|
648
|
-
this.oncommit(() => e.discard()),
|
|
652
|
+
this.oncommit(() => e.discard()), $(D, e, Fn).call(e), x = this, $(D, this, Vn).call(this);
|
|
649
653
|
}
|
|
650
|
-
function
|
|
651
|
-
for (var t = 0; t < e.length; t += 1)
|
|
654
|
+
function Kt(e) {
|
|
655
|
+
for (var t = 0; t < e.length; t += 1) Bi(e[t], l(vt, this), l(je, this));
|
|
652
656
|
}
|
|
653
657
|
function rs() {
|
|
654
|
-
for (let
|
|
655
|
-
var e =
|
|
658
|
+
for (let _ = Wn; _ !== null; _ = l(at, _)) {
|
|
659
|
+
var e = _.id < this.id, t = [];
|
|
656
660
|
for (const [u, [d, h]] of this.current) {
|
|
657
|
-
if (
|
|
658
|
-
var n =
|
|
659
|
-
if (e && d !== n)
|
|
661
|
+
if (_.current.has(u)) {
|
|
662
|
+
var n = _.current.get(u)[0];
|
|
663
|
+
if (e && d !== n) _.current.set(u, [d, h]);
|
|
660
664
|
else continue;
|
|
661
665
|
}
|
|
662
666
|
t.push(u);
|
|
663
667
|
}
|
|
664
668
|
if (e) for (const [u, d] of this.async_deriveds) {
|
|
665
|
-
const h =
|
|
669
|
+
const h = _.async_deriveds.get(u);
|
|
666
670
|
h && d.promise.then(h.resolve).catch(h.reject);
|
|
667
671
|
}
|
|
668
|
-
var r = [...
|
|
669
|
-
if (!(!l(
|
|
672
|
+
var r = [..._.current.keys()].filter((u) => !_.current.get(u)[1]);
|
|
673
|
+
if (!(!l(jn, _) || r.length === 0)) {
|
|
670
674
|
var i = r.filter((u) => !this.current.has(u));
|
|
671
675
|
if (i.length === 0)
|
|
672
|
-
e &&
|
|
676
|
+
e && _.discard();
|
|
673
677
|
else if (t.length > 0) {
|
|
674
|
-
if (e) for (const u of l(
|
|
675
|
-
(d.f & 4194320) !== 0 ?
|
|
678
|
+
if (e) for (const u of l(Cn, this)) _.unskip_effect(u, (d) => {
|
|
679
|
+
(d.f & 4194320) !== 0 ? _.schedule(d) : $(D, _, Kt).call(_, [d]);
|
|
676
680
|
});
|
|
677
|
-
|
|
681
|
+
_.activate();
|
|
678
682
|
var o = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map();
|
|
679
|
-
for (var f of t)
|
|
683
|
+
for (var f of t) eo(f, i, o, a);
|
|
680
684
|
a = /* @__PURE__ */ new Map();
|
|
681
|
-
var c = [...
|
|
685
|
+
var c = [..._.current].filter(([u, d]) => {
|
|
682
686
|
const h = this.current.get(u);
|
|
683
687
|
return h ? h[0] !== d[0] || h[1] !== d[1] : !0;
|
|
684
688
|
}).map(([u]) => u);
|
|
685
689
|
if (c.length > 0)
|
|
686
|
-
for (const u of l(
|
|
687
|
-
if (l(me,
|
|
688
|
-
|
|
689
|
-
for (var
|
|
690
|
+
for (const u of l(Er, this)) (u.f & 155648) === 0 && zr(u, c, a) && ((u.f & 4194320) !== 0 ? (j(u, ce), _.schedule(u)) : l(vt, _).add(u));
|
|
691
|
+
if (l(me, _).length > 0 && !l(Yt, _)) {
|
|
692
|
+
_.apply();
|
|
693
|
+
for (var p of $(D, _, Ji).call(_)) $(D, _, Qi).call(_, p, [], []);
|
|
690
694
|
}
|
|
691
|
-
|
|
695
|
+
_.deactivate();
|
|
692
696
|
}
|
|
693
697
|
}
|
|
694
698
|
}
|
|
695
699
|
}
|
|
696
|
-
function
|
|
700
|
+
function Fn() {
|
|
697
701
|
if (this.linked) {
|
|
698
|
-
var e = l(
|
|
699
|
-
e === null ?
|
|
702
|
+
var e = l(ut, this), t = l(at, this);
|
|
703
|
+
e === null ? Wn = t : S(at, e, t), t === null ? kt = e : S(ut, t, e), this.linked = !1;
|
|
700
704
|
}
|
|
701
705
|
}
|
|
702
|
-
function
|
|
703
|
-
var t =
|
|
704
|
-
|
|
706
|
+
function sn(e) {
|
|
707
|
+
var t = Qt, n = At;
|
|
708
|
+
At = null, Qt = !0;
|
|
705
709
|
try {
|
|
706
|
-
var
|
|
707
|
-
for (e && (
|
|
708
|
-
if (Ua(),
|
|
709
|
-
|
|
710
|
+
var r;
|
|
711
|
+
for (e && (sn(), r = e()); ; ) {
|
|
712
|
+
if (Ua(), x === null) return r;
|
|
713
|
+
x.flush();
|
|
710
714
|
}
|
|
711
715
|
} finally {
|
|
712
|
-
|
|
716
|
+
Qt = t, At = n;
|
|
713
717
|
}
|
|
714
718
|
}
|
|
715
719
|
function is() {
|
|
716
720
|
if (0) {
|
|
717
721
|
var e;
|
|
718
|
-
for (const n of
|
|
722
|
+
for (const n of x.current.keys()) for (const [r, i] of n.updated ?? [])
|
|
719
723
|
var t;
|
|
720
724
|
}
|
|
721
725
|
try {
|
|
722
726
|
Wa();
|
|
723
727
|
} catch (n) {
|
|
724
|
-
Le(n,
|
|
728
|
+
Le(n, Sr);
|
|
725
729
|
}
|
|
726
730
|
}
|
|
727
731
|
var Re = null;
|
|
728
|
-
function
|
|
732
|
+
function hi(e) {
|
|
729
733
|
var t = e.length;
|
|
730
734
|
if (t !== 0) {
|
|
731
735
|
for (var n = 0; n < t; ) {
|
|
732
736
|
var r = e[n++];
|
|
733
|
-
if ((r.f & 24576) === 0 &&
|
|
737
|
+
if ((r.f & 24576) === 0 && hn(r) && (Re = /* @__PURE__ */ new Set(), Ot(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && po(r), Re?.size > 0)) {
|
|
734
738
|
Oe.clear();
|
|
735
739
|
for (const i of Re) {
|
|
736
740
|
if ((i.f & 24576) !== 0) continue;
|
|
@@ -740,7 +744,7 @@ function di(e) {
|
|
|
740
744
|
Re.has(a) && (Re.delete(a), o.push(a)), a = a.parent;
|
|
741
745
|
for (let f = o.length - 1; f >= 0; f--) {
|
|
742
746
|
const c = o[f];
|
|
743
|
-
(c.f & 24576) === 0 &&
|
|
747
|
+
(c.f & 24576) === 0 && Ot(c);
|
|
744
748
|
}
|
|
745
749
|
}
|
|
746
750
|
Re.clear();
|
|
@@ -749,144 +753,144 @@ function di(e) {
|
|
|
749
753
|
Re = null;
|
|
750
754
|
}
|
|
751
755
|
}
|
|
752
|
-
function
|
|
756
|
+
function eo(e, t, n, r) {
|
|
753
757
|
if (!n.has(e) && (n.add(e), e.reactions !== null))
|
|
754
758
|
for (const i of e.reactions) {
|
|
755
759
|
const o = i.f;
|
|
756
|
-
(o & 2) !== 0 ?
|
|
760
|
+
(o & 2) !== 0 ? eo(i, t, n, r) : (o & 4194320) !== 0 && (o & 2048) === 0 && zr(i, t, r) && (j(i, ce), Ur(i));
|
|
757
761
|
}
|
|
758
762
|
}
|
|
759
|
-
function
|
|
763
|
+
function zr(e, t, n) {
|
|
760
764
|
const r = n.get(e);
|
|
761
765
|
if (r !== void 0) return r;
|
|
762
766
|
if (e.deps !== null) for (const i of e.deps) {
|
|
763
|
-
if (
|
|
764
|
-
if ((i.f & 2) !== 0 &&
|
|
767
|
+
if (tn.call(t, i)) return !0;
|
|
768
|
+
if ((i.f & 2) !== 0 && zr(i, t, n))
|
|
765
769
|
return n.set(i, !0), !0;
|
|
766
770
|
}
|
|
767
771
|
return n.set(e, !1), !1;
|
|
768
772
|
}
|
|
769
|
-
function
|
|
770
|
-
|
|
773
|
+
function Ur(e) {
|
|
774
|
+
x.schedule(e);
|
|
771
775
|
}
|
|
772
|
-
function
|
|
776
|
+
function to(e, t) {
|
|
773
777
|
if (!((e.f & 32) !== 0 && (e.f & 1024) !== 0)) {
|
|
774
|
-
(e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e),
|
|
778
|
+
(e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), j(e, _e);
|
|
775
779
|
for (var n = e.first; n !== null; )
|
|
776
|
-
|
|
780
|
+
to(n, t), n = n.next;
|
|
777
781
|
}
|
|
778
782
|
}
|
|
779
|
-
function
|
|
780
|
-
|
|
783
|
+
function no(e) {
|
|
784
|
+
j(e, _e);
|
|
781
785
|
for (var t = e.first; t !== null; )
|
|
782
|
-
|
|
786
|
+
no(t), t = t.next;
|
|
783
787
|
}
|
|
784
|
-
var
|
|
785
|
-
var
|
|
786
|
-
function
|
|
788
|
+
var Bn = /* @__PURE__ */ new Set(), Oe = /* @__PURE__ */ new Map();
|
|
789
|
+
var ro = !1;
|
|
790
|
+
function _t(e, t) {
|
|
787
791
|
var n = {
|
|
788
792
|
f: 0,
|
|
789
793
|
v: e,
|
|
790
794
|
reactions: null,
|
|
791
|
-
equals:
|
|
795
|
+
equals: Di,
|
|
792
796
|
rv: 0,
|
|
793
797
|
wv: 0
|
|
794
798
|
};
|
|
795
799
|
return n;
|
|
796
800
|
}
|
|
797
801
|
// @__NO_SIDE_EFFECTS__
|
|
798
|
-
function
|
|
799
|
-
const n =
|
|
800
|
-
return
|
|
802
|
+
function V(e, t) {
|
|
803
|
+
const n = _t(e, t);
|
|
804
|
+
return wo(n), n;
|
|
801
805
|
}
|
|
802
806
|
// @__NO_SIDE_EFFECTS__
|
|
803
|
-
function
|
|
804
|
-
const r =
|
|
805
|
-
if (t || (r.equals =
|
|
807
|
+
function io(e, t = !1, n = !0) {
|
|
808
|
+
const r = _t(e);
|
|
809
|
+
if (t || (r.equals = ji), Kn && n && F !== null && F.l !== null) {
|
|
806
810
|
var i;
|
|
807
|
-
((i =
|
|
811
|
+
((i = F.l).s ?? (i.s = [])).push(r);
|
|
808
812
|
}
|
|
809
813
|
return r;
|
|
810
814
|
}
|
|
811
815
|
function L(e, t, n = !1) {
|
|
812
|
-
R !== null && (!ye || (R.f & 131072) !== 0) &&
|
|
813
|
-
let r = n ?
|
|
814
|
-
return
|
|
816
|
+
R !== null && (!ye || (R.f & 131072) !== 0) && dn() && (R.f & 4325394) !== 0 && ($e === null || !$e.has(e)) && Fa();
|
|
817
|
+
let r = n ? st(t) : t;
|
|
818
|
+
return Ct(e, r, Dn);
|
|
815
819
|
}
|
|
816
|
-
var
|
|
817
|
-
function
|
|
820
|
+
var it = null, Tr = 0;
|
|
821
|
+
function Ct(e, t, n = null) {
|
|
818
822
|
if (!e.equals(t)) {
|
|
819
|
-
|
|
820
|
-
var r =
|
|
823
|
+
Fe ? Oe.set(e, t) : Oe.has(e) || Oe.set(e, e.v);
|
|
824
|
+
var r = gt.ensure();
|
|
821
825
|
if (r.capture(e, t), (e.f & 2) !== 0) {
|
|
822
826
|
const i = e;
|
|
823
|
-
(e.f & 2048) !== 0 &&
|
|
827
|
+
(e.f & 2048) !== 0 && Fr(i), te === null && Hr(i);
|
|
824
828
|
}
|
|
825
|
-
e.wv =
|
|
829
|
+
e.wv = yo(), it = null, Tr = 0, oo(e, ce, n), it = null, dn() && A !== null && (A.f & 1024) !== 0 && (A.f & 96) === 0 && (ve === null ? bs([e]) : ve.push(e)), !r.is_fork && Bn.size > 0 && !ro && os();
|
|
826
830
|
}
|
|
827
831
|
return t;
|
|
828
832
|
}
|
|
829
833
|
function os() {
|
|
830
|
-
|
|
831
|
-
for (const e of
|
|
832
|
-
(e.f & 1024) !== 0 &&
|
|
834
|
+
ro = !1;
|
|
835
|
+
for (const e of Bn) {
|
|
836
|
+
(e.f & 1024) !== 0 && j(e, pt);
|
|
833
837
|
let t;
|
|
834
838
|
try {
|
|
835
|
-
t =
|
|
839
|
+
t = hn(e);
|
|
836
840
|
} catch {
|
|
837
841
|
t = !0;
|
|
838
842
|
}
|
|
839
|
-
t &&
|
|
843
|
+
t && Ot(e);
|
|
840
844
|
}
|
|
841
|
-
|
|
845
|
+
Bn.clear();
|
|
842
846
|
}
|
|
843
|
-
function
|
|
847
|
+
function en(e) {
|
|
844
848
|
L(e, e.v + 1);
|
|
845
849
|
}
|
|
846
|
-
function
|
|
850
|
+
function oo(e, t, n) {
|
|
847
851
|
var r = e.reactions;
|
|
848
852
|
if (r !== null) {
|
|
849
|
-
var i =
|
|
850
|
-
if (
|
|
851
|
-
if (
|
|
852
|
-
|
|
853
|
+
var i = dn(), o = r.length;
|
|
854
|
+
if (Tr += o, Tr > 1e5 && it === null && (it = /* @__PURE__ */ new Set()), it !== null) {
|
|
855
|
+
if (it.has(e)) return;
|
|
856
|
+
it.add(e);
|
|
853
857
|
}
|
|
854
858
|
for (var a = 0; a < o; a++) {
|
|
855
859
|
var f = r[a], c = f.f;
|
|
856
|
-
if (!(!i && f ===
|
|
857
|
-
var
|
|
858
|
-
if (
|
|
860
|
+
if (!(!i && f === A)) {
|
|
861
|
+
var p = (c & ce) === 0;
|
|
862
|
+
if (p && j(f, t), (c & 131072) !== 0) Bn.add(f);
|
|
859
863
|
else if ((c & 2) !== 0) {
|
|
860
|
-
var
|
|
861
|
-
te?.delete(
|
|
862
|
-
} else if (
|
|
864
|
+
var _ = f;
|
|
865
|
+
te?.delete(_), oo(_, pt, n);
|
|
866
|
+
} else if (p) {
|
|
863
867
|
var u = f;
|
|
864
|
-
(c & 16) !== 0 && Re !== null && Re.add(u), n !== null ? n.push(u) :
|
|
868
|
+
(c & 16) !== 0 && Re !== null && Re.add(u), n !== null ? n.push(u) : Ur(u);
|
|
865
869
|
}
|
|
866
870
|
}
|
|
867
871
|
}
|
|
868
872
|
}
|
|
869
873
|
}
|
|
870
874
|
var as = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
871
|
-
function
|
|
872
|
-
if (typeof e != "object" || e === null ||
|
|
873
|
-
const t =
|
|
874
|
-
if (t !==
|
|
875
|
-
var n = /* @__PURE__ */ new Map(), r =
|
|
876
|
-
if (
|
|
877
|
-
var d = R, h =
|
|
878
|
-
ge(null),
|
|
875
|
+
function st(e) {
|
|
876
|
+
if (typeof e != "object" || e === null || Jt in e || qi in e) return e;
|
|
877
|
+
const t = Ni(e);
|
|
878
|
+
if (t !== ba && t !== wa) return e;
|
|
879
|
+
var n = /* @__PURE__ */ new Map(), r = Li(e), i = /* @__PURE__ */ V(0), o = null, a = ct, f = (u) => {
|
|
880
|
+
if (ct === a) return u();
|
|
881
|
+
var d = R, h = ct;
|
|
882
|
+
ge(null), pi(a);
|
|
879
883
|
var b = u();
|
|
880
|
-
return ge(d),
|
|
884
|
+
return ge(d), pi(h), b;
|
|
881
885
|
};
|
|
882
|
-
r && n.set("length", /* @__PURE__ */
|
|
886
|
+
r && n.set("length", /* @__PURE__ */ V(e.length, o));
|
|
883
887
|
var c = "";
|
|
884
|
-
let
|
|
885
|
-
function
|
|
886
|
-
if (!
|
|
887
|
-
|
|
888
|
-
for (const [d, h] of n)
|
|
889
|
-
|
|
888
|
+
let p = !1;
|
|
889
|
+
function _(u) {
|
|
890
|
+
if (!p) {
|
|
891
|
+
p = !0, c = u, ci(i, `${c} version`);
|
|
892
|
+
for (const [d, h] of n) ci(h, ss(c, d));
|
|
893
|
+
p = !1;
|
|
890
894
|
}
|
|
891
895
|
}
|
|
892
896
|
return new Proxy(e, {
|
|
@@ -894,30 +898,30 @@ function at(e) {
|
|
|
894
898
|
(!("value" in h) || h.configurable === !1 || h.enumerable === !1 || h.writable === !1) && Ha();
|
|
895
899
|
var b = n.get(d);
|
|
896
900
|
return b === void 0 ? f(() => {
|
|
897
|
-
var
|
|
898
|
-
return n.set(d,
|
|
901
|
+
var w = /* @__PURE__ */ V(h.value, o);
|
|
902
|
+
return n.set(d, w), w;
|
|
899
903
|
}) : L(b, h.value, !0), !0;
|
|
900
904
|
},
|
|
901
905
|
deleteProperty(u, d) {
|
|
902
906
|
var h = n.get(d);
|
|
903
907
|
if (h === void 0) {
|
|
904
908
|
if (d in u) {
|
|
905
|
-
const b = f(() => /* @__PURE__ */
|
|
906
|
-
n.set(d, b),
|
|
909
|
+
const b = f(() => /* @__PURE__ */ V(z, o));
|
|
910
|
+
n.set(d, b), en(i);
|
|
907
911
|
}
|
|
908
912
|
} else
|
|
909
|
-
L(h,
|
|
913
|
+
L(h, z), en(i);
|
|
910
914
|
return !0;
|
|
911
915
|
},
|
|
912
916
|
get(u, d, h) {
|
|
913
|
-
if (d ===
|
|
914
|
-
var b = n.get(d),
|
|
915
|
-
if (b === void 0 && (!
|
|
916
|
-
var
|
|
917
|
-
return
|
|
917
|
+
if (d === Jt) return e;
|
|
918
|
+
var b = n.get(d), w = d in u;
|
|
919
|
+
if (b === void 0 && (!w || ft(u, d)?.writable) && (b = f(() => {
|
|
920
|
+
var y = st(w ? u[d] : z), P = /* @__PURE__ */ V(y, o);
|
|
921
|
+
return P;
|
|
918
922
|
}), n.set(d, b)), b !== void 0) {
|
|
919
923
|
var g = s(b);
|
|
920
|
-
return g ===
|
|
924
|
+
return g === z ? void 0 : g;
|
|
921
925
|
}
|
|
922
926
|
return Reflect.get(u, d, h);
|
|
923
927
|
},
|
|
@@ -925,56 +929,56 @@ function at(e) {
|
|
|
925
929
|
this.has?.(u, d);
|
|
926
930
|
var h = Reflect.getOwnPropertyDescriptor(u, d), b = n.get(d);
|
|
927
931
|
if (b !== void 0) {
|
|
928
|
-
var
|
|
929
|
-
if (
|
|
930
|
-
if (h && "value" in h) h.value =
|
|
932
|
+
var w = s(b);
|
|
933
|
+
if (w === z) return;
|
|
934
|
+
if (h && "value" in h) h.value = w;
|
|
931
935
|
else return {
|
|
932
936
|
enumerable: !0,
|
|
933
937
|
configurable: !0,
|
|
934
|
-
value:
|
|
938
|
+
value: w,
|
|
935
939
|
writable: !0
|
|
936
940
|
};
|
|
937
941
|
}
|
|
938
942
|
return h;
|
|
939
943
|
},
|
|
940
944
|
has(u, d) {
|
|
941
|
-
if (d ===
|
|
942
|
-
var h = n.get(d), b = h !== void 0 && h.v !==
|
|
943
|
-
return (h !== void 0 ||
|
|
944
|
-
var
|
|
945
|
+
if (d === Jt) return !0;
|
|
946
|
+
var h = n.get(d), b = h !== void 0 && h.v !== z || Reflect.has(u, d);
|
|
947
|
+
return (h !== void 0 || A !== null && (!b || ft(u, d)?.writable)) && (h === void 0 && (h = f(() => {
|
|
948
|
+
var w = b ? st(u[d]) : z, g = /* @__PURE__ */ V(w, o);
|
|
945
949
|
return g;
|
|
946
|
-
}), n.set(d, h)), s(h) ===
|
|
950
|
+
}), n.set(d, h)), s(h) === z) ? !1 : b;
|
|
947
951
|
},
|
|
948
952
|
set(u, d, h, b) {
|
|
949
|
-
var
|
|
950
|
-
if (r && d === "length") for (var
|
|
951
|
-
var
|
|
952
|
-
|
|
953
|
+
var w = n.get(d), g = d in u;
|
|
954
|
+
if (r && d === "length") for (var y = h; y < w.v; y += 1) {
|
|
955
|
+
var P = n.get(y + "");
|
|
956
|
+
P !== void 0 ? L(P, z) : y in u && (P = f(() => /* @__PURE__ */ V(z, o)), n.set(y + "", P));
|
|
953
957
|
}
|
|
954
|
-
if (
|
|
955
|
-
(!g ||
|
|
958
|
+
if (w === void 0)
|
|
959
|
+
(!g || ft(u, d)?.writable) && (w = f(() => /* @__PURE__ */ V(void 0, o)), L(w, st(h)), n.set(d, w));
|
|
956
960
|
else {
|
|
957
|
-
g =
|
|
958
|
-
var k = f(() =>
|
|
959
|
-
L(
|
|
961
|
+
g = w.v !== z;
|
|
962
|
+
var k = f(() => st(h));
|
|
963
|
+
L(w, k);
|
|
960
964
|
}
|
|
961
965
|
var T = Reflect.getOwnPropertyDescriptor(u, d);
|
|
962
966
|
if (T?.set && T.set.call(b, h), !g) {
|
|
963
967
|
if (r && typeof d == "string") {
|
|
964
|
-
var G = n.get("length"),
|
|
965
|
-
Number.isInteger(
|
|
968
|
+
var G = n.get("length"), H = Number(d);
|
|
969
|
+
Number.isInteger(H) && H >= G.v && L(G, H + 1);
|
|
966
970
|
}
|
|
967
|
-
|
|
971
|
+
en(i);
|
|
968
972
|
}
|
|
969
973
|
return !0;
|
|
970
974
|
},
|
|
971
975
|
ownKeys(u) {
|
|
972
976
|
s(i);
|
|
973
|
-
var d = Reflect.ownKeys(u).filter((
|
|
974
|
-
var g = n.get(
|
|
975
|
-
return g === void 0 || g.v !==
|
|
977
|
+
var d = Reflect.ownKeys(u).filter((w) => {
|
|
978
|
+
var g = n.get(w);
|
|
979
|
+
return g === void 0 || g.v !== z;
|
|
976
980
|
});
|
|
977
|
-
for (var [h, b] of n) b.v !==
|
|
981
|
+
for (var [h, b] of n) b.v !== z && !(h in u) && d.push(h);
|
|
978
982
|
return d;
|
|
979
983
|
},
|
|
980
984
|
setPrototypeOf() {
|
|
@@ -985,38 +989,38 @@ function at(e) {
|
|
|
985
989
|
function ss(e, t) {
|
|
986
990
|
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : as.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
|
|
987
991
|
}
|
|
988
|
-
var
|
|
989
|
-
function
|
|
990
|
-
if (
|
|
991
|
-
|
|
992
|
+
var vi, ls, ao, so, lo;
|
|
993
|
+
function Ar() {
|
|
994
|
+
if (vi === void 0) {
|
|
995
|
+
vi = window, ls = document, ao = /Firefox/.test(navigator.userAgent);
|
|
992
996
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
993
|
-
|
|
997
|
+
so = ft(t, "firstChild").get, lo = ft(t, "nextSibling").get, fi(e) && (e[kr] = void 0, e[yr] = null, e[$r] = void 0, e.__e = void 0), fi(n) && (n[Rn] = void 0);
|
|
994
998
|
}
|
|
995
999
|
}
|
|
996
1000
|
function fe(e = "") {
|
|
997
1001
|
return document.createTextNode(e);
|
|
998
1002
|
}
|
|
999
1003
|
// @__NO_SIDE_EFFECTS__
|
|
1000
|
-
function
|
|
1001
|
-
return
|
|
1004
|
+
function le(e) {
|
|
1005
|
+
return so.call(e);
|
|
1002
1006
|
}
|
|
1003
1007
|
// @__NO_SIDE_EFFECTS__
|
|
1004
1008
|
function Te(e) {
|
|
1005
|
-
return
|
|
1009
|
+
return lo.call(e);
|
|
1006
1010
|
}
|
|
1007
|
-
function
|
|
1008
|
-
if (!M) return /* @__PURE__ */
|
|
1009
|
-
var n = /* @__PURE__ */
|
|
1011
|
+
function On(e, t) {
|
|
1012
|
+
if (!M) return /* @__PURE__ */ le(e);
|
|
1013
|
+
var n = /* @__PURE__ */ le(C);
|
|
1010
1014
|
if (n === null) n = C.appendChild(fe());
|
|
1011
1015
|
else if (t && n.nodeType !== 3) {
|
|
1012
1016
|
var r = fe();
|
|
1013
1017
|
return n?.before(r), X(r), r;
|
|
1014
1018
|
}
|
|
1015
|
-
return t &&
|
|
1019
|
+
return t && Jn(n), X(n), n;
|
|
1016
1020
|
}
|
|
1017
|
-
function
|
|
1021
|
+
function Sn(e, t = !1) {
|
|
1018
1022
|
if (!M) {
|
|
1019
|
-
var n = /* @__PURE__ */
|
|
1023
|
+
var n = /* @__PURE__ */ le(e);
|
|
1020
1024
|
return n instanceof Comment && n.data === "" ? /* @__PURE__ */ Te(n) : n;
|
|
1021
1025
|
}
|
|
1022
1026
|
if (t) {
|
|
@@ -1024,14 +1028,14 @@ function mn(e, t = !1) {
|
|
|
1024
1028
|
var r = fe();
|
|
1025
1029
|
return C?.before(r), X(r), r;
|
|
1026
1030
|
}
|
|
1027
|
-
|
|
1031
|
+
Jn(C);
|
|
1028
1032
|
}
|
|
1029
1033
|
return C;
|
|
1030
1034
|
}
|
|
1031
|
-
function
|
|
1032
|
-
if (!M) return /* @__PURE__ */
|
|
1033
|
-
var n =
|
|
1034
|
-
return
|
|
1035
|
+
function ur(e, t = !1) {
|
|
1036
|
+
if (!M) return /* @__PURE__ */ le(e);
|
|
1037
|
+
var n = On(e, t);
|
|
1038
|
+
return zt(e), n;
|
|
1035
1039
|
}
|
|
1036
1040
|
function xe(e, t = 1, n = !1) {
|
|
1037
1041
|
let r = M ? C : e;
|
|
@@ -1043,34 +1047,35 @@ function xe(e, t = 1, n = !1) {
|
|
|
1043
1047
|
var o = fe();
|
|
1044
1048
|
return r === null ? i?.after(o) : r.before(o), X(o), o;
|
|
1045
1049
|
}
|
|
1046
|
-
|
|
1050
|
+
Jn(r);
|
|
1047
1051
|
}
|
|
1048
1052
|
return X(r), r;
|
|
1049
1053
|
}
|
|
1050
|
-
function
|
|
1054
|
+
function fo(e) {
|
|
1051
1055
|
e.textContent = "";
|
|
1052
1056
|
}
|
|
1053
|
-
function
|
|
1054
|
-
return !
|
|
1057
|
+
function uo() {
|
|
1058
|
+
return !Be || Re !== null ? !1 : (A.f & qr) !== 0;
|
|
1055
1059
|
}
|
|
1056
|
-
function
|
|
1060
|
+
function Zn(e, t, n) {
|
|
1057
1061
|
return t == null || t === "http://www.w3.org/1999/xhtml" ? n ? document.createElement(e, { is: n }) : document.createElement(e) : n ? document.createElementNS(t, e, { is: n }) : document.createElementNS(t, e);
|
|
1058
1062
|
}
|
|
1059
|
-
function
|
|
1063
|
+
function Jn(e) {
|
|
1060
1064
|
if (e.nodeValue.length < 65536) return;
|
|
1061
1065
|
let t = e.nextSibling;
|
|
1062
1066
|
for (; t !== null && t.nodeType === 3; )
|
|
1063
1067
|
t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
1064
1068
|
}
|
|
1065
1069
|
function fs(e) {
|
|
1066
|
-
var t =
|
|
1070
|
+
var t = A;
|
|
1067
1071
|
if (t === null)
|
|
1068
|
-
return R.f |=
|
|
1072
|
+
return R.f |= Pn, e;
|
|
1069
1073
|
if ((t.f & 32768) === 0 && (t.f & 4) === 0)
|
|
1070
1074
|
throw e;
|
|
1071
1075
|
Le(e, t);
|
|
1072
1076
|
}
|
|
1073
1077
|
function Le(e, t) {
|
|
1078
|
+
if (e === Ve) throw e;
|
|
1074
1079
|
if (!(t !== null && (t.f & 16384) !== 0)) {
|
|
1075
1080
|
for (; t !== null; ) {
|
|
1076
1081
|
if ((t.f & 128) !== 0 && (t.f & 33570816) === 0) {
|
|
@@ -1088,17 +1093,17 @@ function Le(e, t) {
|
|
|
1088
1093
|
}
|
|
1089
1094
|
}
|
|
1090
1095
|
function us(e) {
|
|
1091
|
-
|
|
1096
|
+
A === null && (R === null && qa(e), Ia()), Fe && Pa(e);
|
|
1092
1097
|
}
|
|
1093
1098
|
function cs(e, t) {
|
|
1094
1099
|
var n = t.last;
|
|
1095
1100
|
n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
|
|
1096
1101
|
}
|
|
1097
1102
|
function Pe(e, t) {
|
|
1098
|
-
var n =
|
|
1099
|
-
n !== null && (n.f & 8192) !== 0 && (e |=
|
|
1103
|
+
var n = A;
|
|
1104
|
+
n !== null && (n.f & 8192) !== 0 && (e |= Ir);
|
|
1100
1105
|
var r = {
|
|
1101
|
-
ctx:
|
|
1106
|
+
ctx: F,
|
|
1102
1107
|
deps: null,
|
|
1103
1108
|
nodes: null,
|
|
1104
1109
|
f: e | ce | 512,
|
|
@@ -1113,17 +1118,17 @@ function Pe(e, t) {
|
|
|
1113
1118
|
wv: 0,
|
|
1114
1119
|
ac: null
|
|
1115
1120
|
};
|
|
1116
|
-
|
|
1121
|
+
x?.register_created_effect(r);
|
|
1117
1122
|
var i = r;
|
|
1118
1123
|
if ((e & 4) !== 0)
|
|
1119
|
-
|
|
1124
|
+
an !== null ? an.push(r) : gt.ensure().schedule(r);
|
|
1120
1125
|
else if (t !== null) {
|
|
1121
1126
|
try {
|
|
1122
|
-
|
|
1127
|
+
Ot(r);
|
|
1123
1128
|
} catch (a) {
|
|
1124
1129
|
throw ne(r), a;
|
|
1125
1130
|
}
|
|
1126
|
-
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && (i.f & 524288) === 0 && (i = i.first, (e & 16) !== 0 && (e & 65536) !== 0 && i !== null && (i.f |=
|
|
1131
|
+
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && (i.f & 524288) === 0 && (i = i.first, (e & 16) !== 0 && (e & 65536) !== 0 && i !== null && (i.f |= Wr));
|
|
1127
1132
|
}
|
|
1128
1133
|
if (i !== null && (i.parent = n, n !== null && cs(i, n), R !== null && (R.f & 2) !== 0 && (e & 64) === 0)) {
|
|
1129
1134
|
var o = R;
|
|
@@ -1131,47 +1136,47 @@ function Pe(e, t) {
|
|
|
1131
1136
|
}
|
|
1132
1137
|
return r;
|
|
1133
1138
|
}
|
|
1134
|
-
function
|
|
1139
|
+
function Gr() {
|
|
1135
1140
|
return R !== null && !ye;
|
|
1136
1141
|
}
|
|
1137
1142
|
function ds(e) {
|
|
1138
1143
|
const t = Pe(8, null);
|
|
1139
|
-
return
|
|
1144
|
+
return j(t, _e), t.teardown = e, t;
|
|
1140
1145
|
}
|
|
1141
|
-
function
|
|
1146
|
+
function Vt(e) {
|
|
1142
1147
|
us("$effect");
|
|
1143
|
-
var t =
|
|
1144
|
-
if (!R && (t & 32) !== 0 &&
|
|
1145
|
-
var n =
|
|
1148
|
+
var t = A.f;
|
|
1149
|
+
if (!R && (t & 32) !== 0 && F !== null && !F.i) {
|
|
1150
|
+
var n = F;
|
|
1146
1151
|
(n.e ?? (n.e = [])).push(e);
|
|
1147
|
-
} else return
|
|
1152
|
+
} else return co(e);
|
|
1148
1153
|
}
|
|
1149
|
-
function
|
|
1154
|
+
function co(e) {
|
|
1150
1155
|
return Pe(4 | Sa, e);
|
|
1151
1156
|
}
|
|
1152
1157
|
function hs(e) {
|
|
1153
|
-
|
|
1154
|
-
const t = Pe(64 |
|
|
1158
|
+
gt.ensure();
|
|
1159
|
+
const t = Pe(64 | Lt, e);
|
|
1155
1160
|
return () => {
|
|
1156
1161
|
ne(t);
|
|
1157
1162
|
};
|
|
1158
1163
|
}
|
|
1159
1164
|
function vs(e) {
|
|
1160
|
-
|
|
1161
|
-
const t = Pe(64 |
|
|
1165
|
+
gt.ensure();
|
|
1166
|
+
const t = Pe(64 | Lt, e);
|
|
1162
1167
|
return (n = {}) => new Promise((r) => {
|
|
1163
|
-
n.outro ?
|
|
1168
|
+
n.outro ? bt(t, () => {
|
|
1164
1169
|
ne(t), r(void 0);
|
|
1165
1170
|
}) : (ne(t), r(void 0));
|
|
1166
1171
|
});
|
|
1167
1172
|
}
|
|
1168
|
-
function
|
|
1173
|
+
function ho(e) {
|
|
1169
1174
|
return Pe(4, e);
|
|
1170
1175
|
}
|
|
1171
1176
|
function _s(e) {
|
|
1172
|
-
return Pe(Ea |
|
|
1177
|
+
return Pe(Ea | Lt, e);
|
|
1173
1178
|
}
|
|
1174
|
-
function
|
|
1179
|
+
function Yr(e, t = 0) {
|
|
1175
1180
|
return Pe(8 | t, e);
|
|
1176
1181
|
}
|
|
1177
1182
|
function We(e, t = [], n = [], r = []) {
|
|
@@ -1181,33 +1186,33 @@ function We(e, t = [], n = [], r = []) {
|
|
|
1181
1186
|
});
|
|
1182
1187
|
});
|
|
1183
1188
|
}
|
|
1184
|
-
function
|
|
1189
|
+
function Kr(e, t = 0) {
|
|
1185
1190
|
var n = Pe(16 | t, e);
|
|
1186
1191
|
return n;
|
|
1187
1192
|
}
|
|
1188
1193
|
function pe(e) {
|
|
1189
|
-
return Pe(32 |
|
|
1194
|
+
return Pe(32 | Lt, e);
|
|
1190
1195
|
}
|
|
1191
|
-
function
|
|
1196
|
+
function vo(e) {
|
|
1192
1197
|
var t = e.teardown;
|
|
1193
1198
|
if (t !== null) {
|
|
1194
|
-
const n =
|
|
1195
|
-
|
|
1199
|
+
const n = Fe, r = R;
|
|
1200
|
+
_i(!0), ge(null);
|
|
1196
1201
|
try {
|
|
1197
1202
|
t.call(null);
|
|
1198
1203
|
} catch (i) {
|
|
1199
1204
|
Le(i, e.parent);
|
|
1200
1205
|
} finally {
|
|
1201
|
-
|
|
1206
|
+
_i(n), ge(r);
|
|
1202
1207
|
}
|
|
1203
1208
|
}
|
|
1204
1209
|
}
|
|
1205
|
-
function
|
|
1210
|
+
function Xr(e, t = !1) {
|
|
1206
1211
|
var n = e.first;
|
|
1207
1212
|
for (e.first = e.last = null; n !== null; ) {
|
|
1208
1213
|
const i = n.ac;
|
|
1209
|
-
i !== null &&
|
|
1210
|
-
i.abort(
|
|
1214
|
+
i !== null && Xn(() => {
|
|
1215
|
+
i.abort(un);
|
|
1211
1216
|
});
|
|
1212
1217
|
var r = n.next;
|
|
1213
1218
|
(n.f & 64) !== 0 ? n.parent = null : ne(n, t), n = r;
|
|
@@ -1221,26 +1226,26 @@ function ps(e) {
|
|
|
1221
1226
|
}
|
|
1222
1227
|
function ne(e, t = !0) {
|
|
1223
1228
|
var n = !1;
|
|
1224
|
-
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (
|
|
1229
|
+
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (_o(e.nodes.start, e.nodes.end), n = !0), e.f |= mr, Xr(e, t && !n), ln(e, 0);
|
|
1225
1230
|
var r = e.nodes && e.nodes.t;
|
|
1226
1231
|
if (r !== null) for (const o of r) o.stop();
|
|
1227
|
-
|
|
1232
|
+
vo(e), e.f ^= mr, e.f |= Ii;
|
|
1228
1233
|
var i = e.parent;
|
|
1229
|
-
i !== null && i.first !== null &&
|
|
1234
|
+
i !== null && i.first !== null && po(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1230
1235
|
}
|
|
1231
|
-
function
|
|
1236
|
+
function _o(e, t) {
|
|
1232
1237
|
for (; e !== null; ) {
|
|
1233
1238
|
var n = e === t ? null : /* @__PURE__ */ Te(e);
|
|
1234
1239
|
e.remove(), e = n;
|
|
1235
1240
|
}
|
|
1236
1241
|
}
|
|
1237
|
-
function
|
|
1242
|
+
function po(e) {
|
|
1238
1243
|
var t = e.parent, n = e.prev, r = e.next;
|
|
1239
1244
|
n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
|
|
1240
1245
|
}
|
|
1241
|
-
function
|
|
1246
|
+
function bt(e, t, n = !0) {
|
|
1242
1247
|
var r = [];
|
|
1243
|
-
e.f |= 256,
|
|
1248
|
+
e.f |= 256, go(e, r, !0);
|
|
1244
1249
|
var i = () => {
|
|
1245
1250
|
n && ne(e), t && t();
|
|
1246
1251
|
}, o = r.length;
|
|
@@ -1249,9 +1254,9 @@ function gt(e, t, n = !0) {
|
|
|
1249
1254
|
for (var f of r) f.out(a);
|
|
1250
1255
|
} else i();
|
|
1251
1256
|
}
|
|
1252
|
-
function
|
|
1257
|
+
function go(e, t, n) {
|
|
1253
1258
|
if ((e.f & 8192) === 0) {
|
|
1254
|
-
e.f ^=
|
|
1259
|
+
e.f ^= Ir;
|
|
1255
1260
|
var r = e.nodes && e.nodes.t;
|
|
1256
1261
|
if (r !== null)
|
|
1257
1262
|
for (const f of r) (f.is_global || n) && t.push(f);
|
|
@@ -1259,210 +1264,212 @@ function po(e, t, n) {
|
|
|
1259
1264
|
var o = i.next;
|
|
1260
1265
|
if ((i.f & 64) === 0) {
|
|
1261
1266
|
var a = (i.f & 65536) !== 0 || (i.f & 32) !== 0 && (e.f & 16) !== 0;
|
|
1262
|
-
|
|
1267
|
+
go(i, t, a ? n : !1);
|
|
1263
1268
|
}
|
|
1264
1269
|
i = o;
|
|
1265
1270
|
}
|
|
1266
1271
|
}
|
|
1267
1272
|
}
|
|
1268
|
-
function
|
|
1269
|
-
e.f &= -257,
|
|
1273
|
+
function zn(e) {
|
|
1274
|
+
e.f &= -257, bo(e, !0);
|
|
1270
1275
|
}
|
|
1271
|
-
function
|
|
1276
|
+
function bo(e, t) {
|
|
1272
1277
|
if ((e.f & 256) === 0 && (e.f & 8192) !== 0) {
|
|
1273
|
-
e.f ^=
|
|
1278
|
+
e.f ^= Ir, (e.f & 1024) === 0 && (j(e, ce), gt.ensure().schedule(e));
|
|
1274
1279
|
for (var n = e.first; n !== null; ) {
|
|
1275
1280
|
var r = n.next, i = (n.f & 65536) !== 0 || (n.f & 32) !== 0;
|
|
1276
|
-
|
|
1281
|
+
bo(n, i ? t : !1), n = r;
|
|
1277
1282
|
}
|
|
1278
1283
|
var o = e.nodes && e.nodes.t;
|
|
1279
1284
|
if (o !== null)
|
|
1280
1285
|
for (const a of o) (a.is_global || t) && a.in();
|
|
1281
1286
|
}
|
|
1282
1287
|
}
|
|
1283
|
-
function
|
|
1288
|
+
function Zr(e, t) {
|
|
1284
1289
|
if (e.nodes)
|
|
1285
1290
|
for (var n = e.nodes.start, r = e.nodes.end; n !== null; ) {
|
|
1286
1291
|
var i = n === r ? null : /* @__PURE__ */ Te(n);
|
|
1287
1292
|
t.append(n), n = i;
|
|
1288
1293
|
}
|
|
1289
1294
|
}
|
|
1290
|
-
var gs = null,
|
|
1291
|
-
function
|
|
1292
|
-
|
|
1295
|
+
var gs = null, Fe = !1;
|
|
1296
|
+
function _i(e) {
|
|
1297
|
+
Fe = e;
|
|
1293
1298
|
}
|
|
1294
1299
|
var R = null, ye = !1;
|
|
1295
1300
|
function ge(e) {
|
|
1296
1301
|
R = e;
|
|
1297
1302
|
}
|
|
1298
|
-
var
|
|
1303
|
+
var A = null;
|
|
1299
1304
|
function Ne(e) {
|
|
1300
|
-
|
|
1305
|
+
A = e;
|
|
1301
1306
|
}
|
|
1302
1307
|
var $e = null;
|
|
1303
|
-
function
|
|
1304
|
-
R !== null && (!
|
|
1308
|
+
function wo(e) {
|
|
1309
|
+
R !== null && (!Be && (R.f & 2097152) !== 0 || (R.f & 2) !== 0) && ($e ?? ($e = /* @__PURE__ */ new Set())).add(e);
|
|
1305
1310
|
}
|
|
1306
|
-
var re = null,
|
|
1311
|
+
var re = null, se = 0, ve = null;
|
|
1307
1312
|
function bs(e) {
|
|
1308
1313
|
ve = e;
|
|
1309
1314
|
}
|
|
1310
|
-
var
|
|
1311
|
-
function
|
|
1312
|
-
|
|
1315
|
+
var mo = 1, lt = 0, ct = lt;
|
|
1316
|
+
function pi(e) {
|
|
1317
|
+
ct = e;
|
|
1313
1318
|
}
|
|
1314
|
-
function
|
|
1315
|
-
return ++
|
|
1319
|
+
function yo() {
|
|
1320
|
+
return ++mo;
|
|
1316
1321
|
}
|
|
1317
|
-
function
|
|
1322
|
+
function hn(e) {
|
|
1318
1323
|
var t = e.f;
|
|
1319
1324
|
if ((t & 2048) !== 0) return !0;
|
|
1320
1325
|
if ((t & 4096) !== 0) {
|
|
1321
1326
|
for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
|
|
1322
1327
|
var o = n[i];
|
|
1323
|
-
if (
|
|
1328
|
+
if (hn(o) && Ui(o), o.wv > e.wv) return !0;
|
|
1324
1329
|
}
|
|
1325
|
-
(t & 512) !== 0 && te === null &&
|
|
1330
|
+
(t & 512) !== 0 && te === null && j(e, _e);
|
|
1326
1331
|
}
|
|
1327
1332
|
return !1;
|
|
1328
1333
|
}
|
|
1329
|
-
function
|
|
1334
|
+
function ko(e, t, n = !0) {
|
|
1330
1335
|
var r = e.reactions;
|
|
1331
|
-
if (r !== null && !(!
|
|
1336
|
+
if (r !== null && !(!Be && $e !== null && $e.has(e)))
|
|
1332
1337
|
for (var i = 0; i < r.length; i++) {
|
|
1333
1338
|
var o = r[i];
|
|
1334
|
-
(o.f & 2) !== 0 ?
|
|
1339
|
+
(o.f & 2) !== 0 ? ko(o, t, !1) : t === o && (n ? j(o, ce) : (o.f & 1024) !== 0 && j(o, pt), Ur(o));
|
|
1335
1340
|
}
|
|
1336
1341
|
}
|
|
1337
|
-
function
|
|
1338
|
-
var t = re, n =
|
|
1339
|
-
re = null,
|
|
1340
|
-
e.ac.abort(
|
|
1342
|
+
function $o(e) {
|
|
1343
|
+
var t = re, n = se, r = ve, i = R, o = $e, a = F, f = ye, c = ct, p = e.f;
|
|
1344
|
+
re = null, se = 0, ve = null, R = (p & 96) === 0 ? e : null, $e = null, Rt(e.ctx), ye = !1, ct = ++lt, e.ac !== null && (Xn(() => {
|
|
1345
|
+
e.ac.abort(un);
|
|
1341
1346
|
}), e.ac = null);
|
|
1342
1347
|
try {
|
|
1343
|
-
e.f |=
|
|
1344
|
-
var
|
|
1345
|
-
e.f |=
|
|
1346
|
-
var d =
|
|
1347
|
-
if (
|
|
1348
|
+
e.f |= ui;
|
|
1349
|
+
var _ = e.fn, u = _();
|
|
1350
|
+
e.f |= qr;
|
|
1351
|
+
var d = gi(e);
|
|
1352
|
+
if (dn() && ve !== null && !ye && d !== null && (e.f & 6146) === 0) for (var h = 0; h < ve.length; h++) ko(ve[h], e);
|
|
1348
1353
|
if (i !== null && i !== e) {
|
|
1349
|
-
if (
|
|
1350
|
-
if (t !== null) for (const b of t) b.rv =
|
|
1354
|
+
if (lt++, i.deps !== null) for (let b = 0; b < n; b += 1) i.deps[b].rv = lt;
|
|
1355
|
+
if (t !== null) for (const b of t) b.rv = lt;
|
|
1351
1356
|
ve !== null && (r === null ? r = ve : r.push(...ve));
|
|
1352
1357
|
}
|
|
1353
|
-
return (e.f & 8388608) !== 0 && (e.f ^=
|
|
1358
|
+
return (e.f & 8388608) !== 0 && (e.f ^= Pn), u;
|
|
1354
1359
|
} catch (b) {
|
|
1355
|
-
return
|
|
1360
|
+
return gi(e), fs(b);
|
|
1356
1361
|
} finally {
|
|
1357
|
-
e.f ^=
|
|
1362
|
+
e.f ^= ui, re = t, se = n, ve = r, R = i, $e = o, Rt(a), ye = f, ct = c;
|
|
1358
1363
|
}
|
|
1359
1364
|
}
|
|
1360
|
-
function
|
|
1361
|
-
var t = e.deps, n =
|
|
1365
|
+
function gi(e) {
|
|
1366
|
+
var t = e.deps, n = x?.is_fork;
|
|
1362
1367
|
if (re !== null) {
|
|
1363
1368
|
var r;
|
|
1364
|
-
if (n ||
|
|
1365
|
-
for (t.length =
|
|
1369
|
+
if (n || ln(e, se), t !== null && se > 0)
|
|
1370
|
+
for (t.length = se + re.length, r = 0; r < re.length; r++) t[se + r] = re[r];
|
|
1366
1371
|
else e.deps = t = re;
|
|
1367
|
-
if (
|
|
1372
|
+
if (Gr() && (e.f & 512) !== 0) for (r = se; r < t.length; r++) {
|
|
1368
1373
|
var i;
|
|
1369
1374
|
((i = t[r]).reactions ?? (i.reactions = [])).push(e);
|
|
1370
1375
|
}
|
|
1371
|
-
} else !n && t !== null &&
|
|
1376
|
+
} else !n && t !== null && se < t.length && (ln(e, se), t.length = se);
|
|
1372
1377
|
return t;
|
|
1373
1378
|
}
|
|
1374
1379
|
function ws(e, t) {
|
|
1375
1380
|
let n = t.reactions;
|
|
1376
1381
|
if (n !== null) {
|
|
1377
|
-
var r =
|
|
1382
|
+
var r = pa.call(n, e);
|
|
1378
1383
|
if (r !== -1) {
|
|
1379
1384
|
var i = n.length - 1;
|
|
1380
1385
|
i === 0 ? n = t.reactions = null : (n[r] = n[i], n.pop());
|
|
1381
1386
|
}
|
|
1382
1387
|
}
|
|
1383
|
-
if (n === null && (t.f & 2) !== 0 && (re === null || !
|
|
1388
|
+
if (n === null && (t.f & 2) !== 0 && (re === null || !tn.call(re, t))) {
|
|
1384
1389
|
var o = t;
|
|
1385
|
-
(o.f & 512) !== 0 && (o.f ^= 512), o.v !==
|
|
1386
|
-
o.ac.abort(
|
|
1387
|
-
}), Qa(o),
|
|
1390
|
+
(o.f & 512) !== 0 && (o.f ^= 512), o.v !== z && Hr(o), o.ac !== null && Xn(() => {
|
|
1391
|
+
o.ac.abort(un), o.ac = null, j(o, ce);
|
|
1392
|
+
}), Qa(o), ln(o, 0);
|
|
1388
1393
|
}
|
|
1389
1394
|
}
|
|
1390
|
-
function
|
|
1395
|
+
function ln(e, t) {
|
|
1391
1396
|
var n = e.deps;
|
|
1392
1397
|
if (n !== null)
|
|
1393
1398
|
for (var r = t; r < n.length; r++) ws(e, n[r]);
|
|
1394
1399
|
}
|
|
1395
|
-
function
|
|
1400
|
+
function Ot(e) {
|
|
1396
1401
|
var t = e.f;
|
|
1397
1402
|
if ((t & 16384) === 0) {
|
|
1398
|
-
|
|
1399
|
-
var n =
|
|
1400
|
-
if (
|
|
1401
|
-
var
|
|
1403
|
+
j(e, _e);
|
|
1404
|
+
var n = A;
|
|
1405
|
+
if (A = e, 0)
|
|
1406
|
+
var r, i;
|
|
1402
1407
|
try {
|
|
1403
|
-
(t & 16777232) !== 0 ? ps(e) :
|
|
1404
|
-
var
|
|
1405
|
-
if (e.teardown = typeof
|
|
1406
|
-
for (var
|
|
1408
|
+
(t & 16777232) !== 0 ? ps(e) : Xr(e), vo(e);
|
|
1409
|
+
var o = $o(e);
|
|
1410
|
+
if (e.teardown = typeof o == "function" ? o : null, e.wv = mo, 0)
|
|
1411
|
+
for (var a of e.deps) ;
|
|
1407
1412
|
} finally {
|
|
1408
|
-
|
|
1413
|
+
A = n;
|
|
1409
1414
|
}
|
|
1410
1415
|
}
|
|
1411
1416
|
}
|
|
1412
1417
|
async function ms() {
|
|
1413
|
-
if (
|
|
1418
|
+
if (Be) return new Promise((e) => {
|
|
1414
1419
|
requestAnimationFrame(() => e()), setTimeout(() => e());
|
|
1415
1420
|
});
|
|
1416
|
-
await Promise.resolve(),
|
|
1421
|
+
await Promise.resolve(), sn();
|
|
1417
1422
|
}
|
|
1418
1423
|
function s(e) {
|
|
1419
1424
|
var t = (e.f & 2) !== 0;
|
|
1420
|
-
if (gs?.add(e), R !== null && !ye && !(
|
|
1425
|
+
if (gs?.add(e), R !== null && !ye && !(A !== null && (A.f & 16384) !== 0) && ($e === null || !$e.has(e))) {
|
|
1421
1426
|
var n = R.deps;
|
|
1422
1427
|
if ((R.f & 2097152) !== 0)
|
|
1423
|
-
e.rv <
|
|
1428
|
+
e.rv < lt && (e.rv = lt, re === null && n !== null && n[se] === e ? se++ : re === null ? re = [e] : re.push(e));
|
|
1424
1429
|
else {
|
|
1425
1430
|
var r;
|
|
1426
|
-
(r = R).deps ?? (r.deps = []),
|
|
1431
|
+
(r = R).deps ?? (r.deps = []), tn.call(R.deps, e) || R.deps.push(e);
|
|
1427
1432
|
var i = e.reactions;
|
|
1428
|
-
i === null ? e.reactions = [R] :
|
|
1433
|
+
i === null ? e.reactions = [R] : tn.call(i, R) || i.push(R);
|
|
1429
1434
|
}
|
|
1430
1435
|
}
|
|
1431
1436
|
if (0) {
|
|
1432
|
-
if (!ye && reactivity_loss_tracker &&
|
|
1437
|
+
if (!ye && reactivity_loss_tracker && x === null && At === null && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & 2097152) === 0 && !reactivity_loss_tracker.effect_deps.has(e))
|
|
1433
1438
|
var o;
|
|
1434
1439
|
if (tracing_mode_flag && !ye && tracing_expressions !== null && R !== null && tracing_expressions.reaction === R && !e.trace) {
|
|
1435
1440
|
if (o)
|
|
1436
1441
|
var a, f;
|
|
1437
1442
|
}
|
|
1438
1443
|
}
|
|
1439
|
-
if (
|
|
1444
|
+
if (Fe && Oe.has(e)) return Oe.get(e);
|
|
1440
1445
|
if (t) {
|
|
1441
1446
|
var c = e;
|
|
1442
|
-
if (
|
|
1443
|
-
var
|
|
1444
|
-
return ((c.f & 1024) === 0 && c.reactions !== null ||
|
|
1447
|
+
if (Fe) {
|
|
1448
|
+
var p = c.v;
|
|
1449
|
+
return ((c.f & 1024) === 0 && c.reactions !== null || Eo(c)) && (p = Fr(c)), Oe.set(c, p), p;
|
|
1445
1450
|
}
|
|
1446
|
-
var
|
|
1447
|
-
|
|
1451
|
+
var _ = (c.f & 512) === 0 && !ye && R !== null && (R.f & 512) !== 0, u = (c.f & qr) === 0;
|
|
1452
|
+
hn(c) && (_ && (c.f |= 512), Ui(c)), _ && !u && (Gi(c), So(c));
|
|
1448
1453
|
}
|
|
1449
1454
|
if (te?.has(e)) return te.get(e);
|
|
1450
1455
|
if ((e.f & 8388608) !== 0) throw e.v;
|
|
1451
1456
|
return e.v;
|
|
1452
1457
|
}
|
|
1453
|
-
function
|
|
1458
|
+
function So(e) {
|
|
1454
1459
|
if (e.f |= 512, e.deps !== null)
|
|
1455
|
-
for (const
|
|
1456
|
-
|
|
1460
|
+
for (const n of e.deps) {
|
|
1461
|
+
var t = n.reactions;
|
|
1462
|
+
t === null ? n.reactions = [e] : tn.call(t, e) || t.push(e), (n.f & 2) !== 0 && (n.f & 512) === 0 && (Gi(n), So(n));
|
|
1463
|
+
}
|
|
1457
1464
|
}
|
|
1458
|
-
function
|
|
1459
|
-
if (e.v ===
|
|
1465
|
+
function Eo(e) {
|
|
1466
|
+
if (e.v === z) return !0;
|
|
1460
1467
|
if (e.deps === null) return !1;
|
|
1461
1468
|
for (const t of e.deps)
|
|
1462
|
-
if (Oe.has(t) || (t.f & 2) !== 0 &&
|
|
1469
|
+
if (Oe.has(t) || (t.f & 2) !== 0 && Eo(t)) return !0;
|
|
1463
1470
|
return !1;
|
|
1464
1471
|
}
|
|
1465
|
-
function
|
|
1472
|
+
function xt(e) {
|
|
1466
1473
|
var t = ye;
|
|
1467
1474
|
try {
|
|
1468
1475
|
return ye = !0, e();
|
|
@@ -1470,59 +1477,59 @@ function Tt(e) {
|
|
|
1470
1477
|
ye = t;
|
|
1471
1478
|
}
|
|
1472
1479
|
}
|
|
1473
|
-
var
|
|
1474
|
-
function
|
|
1475
|
-
(t[
|
|
1480
|
+
var Tt = /* @__PURE__ */ Symbol("events"), To = /* @__PURE__ */ new Set(), xr = /* @__PURE__ */ new Set();
|
|
1481
|
+
function Ge(e, t, n) {
|
|
1482
|
+
(t[Tt] ?? (t[Tt] = {}))[e] = n;
|
|
1476
1483
|
}
|
|
1477
1484
|
function ys(e) {
|
|
1478
|
-
for (var t = 0; t < e.length; t++)
|
|
1479
|
-
for (var n of
|
|
1485
|
+
for (var t = 0; t < e.length; t++) To.add(e[t]);
|
|
1486
|
+
for (var n of xr) n(e);
|
|
1480
1487
|
}
|
|
1481
|
-
var
|
|
1482
|
-
function
|
|
1488
|
+
var cr = null, dr = !1;
|
|
1489
|
+
function bi(e) {
|
|
1483
1490
|
var t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], o = i[0] || e.target;
|
|
1484
|
-
|
|
1485
|
-
|
|
1491
|
+
cr = e, dr || (dr = !0, setTimeout(() => {
|
|
1492
|
+
dr = !1, cr = null;
|
|
1486
1493
|
}));
|
|
1487
|
-
var a = 0, f =
|
|
1494
|
+
var a = 0, f = cr === e && e[Tt];
|
|
1488
1495
|
if (f) {
|
|
1489
1496
|
var c = i.indexOf(f);
|
|
1490
1497
|
if (c !== -1 && (t === document || t === window)) {
|
|
1491
|
-
e[
|
|
1498
|
+
e[Tt] = t;
|
|
1492
1499
|
return;
|
|
1493
1500
|
}
|
|
1494
|
-
var
|
|
1495
|
-
if (
|
|
1496
|
-
c <=
|
|
1501
|
+
var p = i.indexOf(t);
|
|
1502
|
+
if (p === -1) return;
|
|
1503
|
+
c <= p && (a = c);
|
|
1497
1504
|
}
|
|
1498
1505
|
if (o = i[a] || e.target, o !== t) {
|
|
1499
|
-
|
|
1506
|
+
nn(e, "currentTarget", {
|
|
1500
1507
|
configurable: !0,
|
|
1501
1508
|
get() {
|
|
1502
1509
|
return o || n;
|
|
1503
1510
|
}
|
|
1504
1511
|
});
|
|
1505
|
-
var
|
|
1512
|
+
var _ = R, u = A;
|
|
1506
1513
|
ge(null), Ne(null);
|
|
1507
1514
|
try {
|
|
1508
1515
|
for (var d, h = []; o !== null && o !== t; ) {
|
|
1509
1516
|
try {
|
|
1510
|
-
var b = o[
|
|
1517
|
+
var b = o[Tt]?.[r];
|
|
1511
1518
|
b != null && (!o.disabled || e.target === o) && b.call(o, e);
|
|
1512
|
-
} catch (
|
|
1513
|
-
d ? h.push(
|
|
1519
|
+
} catch (w) {
|
|
1520
|
+
d ? h.push(w) : d = w;
|
|
1514
1521
|
}
|
|
1515
1522
|
if (e.cancelBubble) break;
|
|
1516
1523
|
a++, o = a < i.length ? i[a] : null;
|
|
1517
1524
|
}
|
|
1518
1525
|
if (d) {
|
|
1519
|
-
for (let
|
|
1520
|
-
throw
|
|
1526
|
+
for (let w of h) queueMicrotask(() => {
|
|
1527
|
+
throw w;
|
|
1521
1528
|
});
|
|
1522
1529
|
throw d;
|
|
1523
1530
|
}
|
|
1524
1531
|
} finally {
|
|
1525
|
-
e[
|
|
1532
|
+
e[Tt] = t, delete e.currentTarget, ge(_), Ne(u);
|
|
1526
1533
|
}
|
|
1527
1534
|
}
|
|
1528
1535
|
}
|
|
@@ -1531,11 +1538,11 @@ function $s(e) {
|
|
|
1531
1538
|
return ks?.createHTML(e) ?? e;
|
|
1532
1539
|
}
|
|
1533
1540
|
function Ss(e) {
|
|
1534
|
-
var t =
|
|
1541
|
+
var t = Zn("template");
|
|
1535
1542
|
return t.innerHTML = $s(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1536
1543
|
}
|
|
1537
1544
|
function He(e, t) {
|
|
1538
|
-
var n =
|
|
1545
|
+
var n = A;
|
|
1539
1546
|
n.nodes === null && (n.nodes = {
|
|
1540
1547
|
start: e,
|
|
1541
1548
|
end: t,
|
|
@@ -1549,10 +1556,10 @@ function Ie(e, t) {
|
|
|
1549
1556
|
return () => {
|
|
1550
1557
|
if (M)
|
|
1551
1558
|
return He(C, null), C;
|
|
1552
|
-
i === void 0 && (i = Ss(o ? e : "<!>" + e), n || (i = /* @__PURE__ */
|
|
1553
|
-
var a = r ||
|
|
1559
|
+
i === void 0 && (i = Ss(o ? e : "<!>" + e), n || (i = /* @__PURE__ */ le(i)));
|
|
1560
|
+
var a = r || ao ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1554
1561
|
if (n) {
|
|
1555
|
-
var f = /* @__PURE__ */
|
|
1562
|
+
var f = /* @__PURE__ */ le(a), c = a.lastChild;
|
|
1556
1563
|
He(f, c);
|
|
1557
1564
|
} else He(a, a);
|
|
1558
1565
|
return a;
|
|
@@ -1564,12 +1571,12 @@ function Es(e = "") {
|
|
|
1564
1571
|
return He(t, t), t;
|
|
1565
1572
|
}
|
|
1566
1573
|
var n = C;
|
|
1567
|
-
return n.nodeType !== 3 ? (n.before(n = fe()), X(n)) :
|
|
1574
|
+
return n.nodeType !== 3 ? (n.before(n = fe()), X(n)) : Jn(n), He(n, n), n;
|
|
1568
1575
|
}
|
|
1569
1576
|
function he(e, t) {
|
|
1570
1577
|
if (M) {
|
|
1571
|
-
var n =
|
|
1572
|
-
((n.f & 32768) === 0 || n.nodes.end === null) && (n.nodes.end = C),
|
|
1578
|
+
var n = A;
|
|
1579
|
+
((n.f & 32768) === 0 || n.nodes.end === null) && (n.nodes.end = C), Mt();
|
|
1573
1580
|
return;
|
|
1574
1581
|
}
|
|
1575
1582
|
e !== null && e.before(t);
|
|
@@ -1646,40 +1653,40 @@ var Ms = [
|
|
|
1646
1653
|
"$host"
|
|
1647
1654
|
];
|
|
1648
1655
|
function Rs(e) {
|
|
1649
|
-
let t = 0, n =
|
|
1656
|
+
let t = 0, n = _t(0), r;
|
|
1650
1657
|
return () => {
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
t -= 1, t === 0 && (r?.(), r = void 0,
|
|
1658
|
+
Gr() && (s(n), Yr(() => (t === 0 && (r = xt(() => e(() => en(n)))), t += 1, () => {
|
|
1659
|
+
Je(() => {
|
|
1660
|
+
t -= 1, t === 0 && (r?.(), r = void 0, en(n));
|
|
1654
1661
|
});
|
|
1655
1662
|
})));
|
|
1656
1663
|
};
|
|
1657
1664
|
}
|
|
1658
|
-
var Cs =
|
|
1665
|
+
var Cs = Wr | Lt;
|
|
1659
1666
|
function Os(e, t, n, r) {
|
|
1660
1667
|
new Ls(e, t, n, r);
|
|
1661
1668
|
}
|
|
1662
|
-
var Se = /* @__PURE__ */ new WeakMap(),
|
|
1669
|
+
var Se = /* @__PURE__ */ new WeakMap(), Mr = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), fn = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), En = /* @__PURE__ */ new WeakMap(), Rr = /* @__PURE__ */ new WeakMap(), Cr = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), wi = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakSet(), Ls = class {
|
|
1663
1670
|
constructor(e, t, n, r) {
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
}))),
|
|
1667
|
-
var o =
|
|
1671
|
+
Br(this, N), q(this, "parent", void 0), q(this, "is_pending", !1), q(this, "transform_error", void 0), E(this, Se, void 0), E(this, Mr, M ? C : null), E(this, Ce, void 0), E(this, fn, void 0), E(this, ie, void 0), E(this, Ee, null), E(this, ue, null), E(this, ke, null), E(this, Ze, null), E(this, St, 0), E(this, dt, 0), E(this, En, !1), E(this, Rr, /* @__PURE__ */ new Set()), E(this, Cr, /* @__PURE__ */ new Set()), E(this, et, null), E(this, wi, Rs(() => (S(et, this, _t(l(St, this))), () => {
|
|
1672
|
+
S(et, this, null);
|
|
1673
|
+
}))), S(Se, this, e), S(Ce, this, t), S(fn, this, (i) => {
|
|
1674
|
+
var o = A;
|
|
1668
1675
|
o.b = this, o.f |= 128, n(i);
|
|
1669
|
-
}), this.parent =
|
|
1676
|
+
}), this.parent = A.b, this.transform_error = r ?? this.parent?.transform_error ?? ((i) => i), S(ie, this, Kr(() => {
|
|
1670
1677
|
if (M) {
|
|
1671
|
-
const i = l(
|
|
1672
|
-
|
|
1673
|
-
const o = i
|
|
1674
|
-
if (i.
|
|
1675
|
-
const a = JSON.parse(i.
|
|
1676
|
-
|
|
1677
|
-
} else o ?
|
|
1678
|
-
} else
|
|
1679
|
-
}, Cs)), M &&
|
|
1678
|
+
const i = Dr(l(Mr, this));
|
|
1679
|
+
Mt();
|
|
1680
|
+
const o = i === "[!";
|
|
1681
|
+
if (i.startsWith("[?")) {
|
|
1682
|
+
const a = JSON.parse(i.slice(2));
|
|
1683
|
+
$(N, this, Ps).call(this, a);
|
|
1684
|
+
} else o ? $(N, this, Is).call(this) : $(N, this, Ns).call(this);
|
|
1685
|
+
} else $(N, this, xo).call(this);
|
|
1686
|
+
}, Cs)), M && S(Se, this, C);
|
|
1680
1687
|
}
|
|
1681
1688
|
defer_effect(e) {
|
|
1682
|
-
|
|
1689
|
+
Bi(e, l(Rr, this), l(Cr, this));
|
|
1683
1690
|
}
|
|
1684
1691
|
is_rendered() {
|
|
1685
1692
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
@@ -1688,162 +1695,173 @@ var Se = /* @__PURE__ */ new WeakMap(), xr = /* @__PURE__ */ new WeakMap(), Ce =
|
|
|
1688
1695
|
return !!l(Ce, this).pending;
|
|
1689
1696
|
}
|
|
1690
1697
|
update_pending_count(e, t) {
|
|
1691
|
-
|
|
1692
|
-
|
|
1698
|
+
$(N, this, Mo).call(this, e, t), S(St, this, l(St, this) + e), !(!l(et, this) || l(En, this)) && (S(En, this, !0), Je(() => {
|
|
1699
|
+
S(En, this, !1), l(et, this) && Ct(l(et, this), l(St, this));
|
|
1693
1700
|
}));
|
|
1694
1701
|
}
|
|
1695
1702
|
get_effect_pending() {
|
|
1696
|
-
return l(
|
|
1703
|
+
return l(wi, this).call(this), s(l(et, this));
|
|
1697
1704
|
}
|
|
1698
1705
|
error(e) {
|
|
1699
|
-
if (!l(Ce, this).onerror && !l(Ce, this).failed) throw e;
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
})) :
|
|
1706
|
+
if (e === Ve || !l(Ce, this).onerror && !l(Ce, this).failed) throw e;
|
|
1707
|
+
x?.is_fork ? (l(Ee, this) && x.skip_effect(l(Ee, this)), l(ue, this) && x.skip_effect(l(ue, this)), l(ke, this) && x.skip_effect(l(ke, this)), x.oncommit(() => {
|
|
1708
|
+
$(N, this, ht).call(this) || $(N, this, mi).call(this, e);
|
|
1709
|
+
})) : $(N, this, mi).call(this, e);
|
|
1703
1710
|
}
|
|
1704
1711
|
};
|
|
1705
1712
|
function Ns() {
|
|
1706
1713
|
try {
|
|
1707
|
-
|
|
1714
|
+
S(Ee, this, pe(() => l(fn, this).call(this, l(Se, this))));
|
|
1708
1715
|
} catch (e) {
|
|
1709
1716
|
this.error(e);
|
|
1710
1717
|
}
|
|
1711
1718
|
}
|
|
1712
1719
|
function Ps(e) {
|
|
1713
|
-
const t = l(Ce, this).failed, { reset: n, invoke_onerror: r } =
|
|
1714
|
-
|
|
1720
|
+
const t = l(Ce, this).failed, { reset: n, invoke_onerror: r } = $(N, this, Ao).call(this, e);
|
|
1721
|
+
Je(r), t && S(ke, this, pe(() => {
|
|
1715
1722
|
t(l(Se, this), () => e, () => n);
|
|
1716
1723
|
}));
|
|
1717
1724
|
}
|
|
1718
|
-
function
|
|
1725
|
+
function Ao(e) {
|
|
1719
1726
|
var t = !1, n = !1;
|
|
1720
1727
|
const r = () => {
|
|
1721
|
-
if (
|
|
1722
|
-
|
|
1723
|
-
|
|
1728
|
+
if (!$(N, this, ht).call(this)) {
|
|
1729
|
+
if (t) {
|
|
1730
|
+
Ra();
|
|
1731
|
+
return;
|
|
1732
|
+
}
|
|
1733
|
+
t = !0, n && Ba(), l(ke, this) !== null && bt(l(ke, this), () => {
|
|
1734
|
+
S(ke, this, null);
|
|
1735
|
+
}), $(N, this, Jr).call(this, () => {
|
|
1736
|
+
$(N, this, xo).call(this);
|
|
1737
|
+
});
|
|
1724
1738
|
}
|
|
1725
|
-
t = !0, n && Ba(), l(ke, this) !== null && gt(l(ke, this), () => {
|
|
1726
|
-
$(ke, this, null);
|
|
1727
|
-
}), E(z, this, Xr).call(this, () => {
|
|
1728
|
-
E(z, this, Ao).call(this);
|
|
1729
|
-
});
|
|
1730
1739
|
};
|
|
1731
1740
|
return {
|
|
1732
1741
|
reset: r,
|
|
1733
1742
|
invoke_onerror: () => {
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1743
|
+
if (!$(N, this, ht).call(this))
|
|
1744
|
+
try {
|
|
1745
|
+
n = !0, l(Ce, this).onerror?.(e, r), n = !1;
|
|
1746
|
+
} catch (o) {
|
|
1747
|
+
Le(o, l(ie, this) && l(ie, this).parent);
|
|
1748
|
+
}
|
|
1739
1749
|
}
|
|
1740
1750
|
};
|
|
1741
1751
|
}
|
|
1752
|
+
function ht() {
|
|
1753
|
+
return (l(ie, this).f & (Ii | mr)) !== 0;
|
|
1754
|
+
}
|
|
1742
1755
|
function Is() {
|
|
1743
1756
|
const e = l(Ce, this).pending;
|
|
1744
|
-
e && (this.is_pending = !0,
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
return pe(() => l(on, this).call(this, n));
|
|
1749
|
-
} catch (i) {
|
|
1757
|
+
e && (this.is_pending = !0, S(ue, this, pe(() => e(l(Se, this)))), Je(() => {
|
|
1758
|
+
if (!$(N, this, ht).call(this)) {
|
|
1759
|
+
var t = S(Ze, this, document.createDocumentFragment()), n = fe(), r = !1;
|
|
1760
|
+
if (t.append(n), S(Ee, this, $(N, this, Jr).call(this, () => {
|
|
1750
1761
|
try {
|
|
1751
|
-
this.
|
|
1752
|
-
} catch (
|
|
1753
|
-
|
|
1762
|
+
return pe(() => l(fn, this).call(this, n));
|
|
1763
|
+
} catch (i) {
|
|
1764
|
+
try {
|
|
1765
|
+
this.error(i), r = !0;
|
|
1766
|
+
} catch (o) {
|
|
1767
|
+
Le(o, l(ie, this).parent);
|
|
1768
|
+
}
|
|
1769
|
+
return null;
|
|
1754
1770
|
}
|
|
1755
|
-
|
|
1771
|
+
})), l(Ee, this) === null) {
|
|
1772
|
+
S(Ze, this, null), r && $(N, this, Un).call(this, x);
|
|
1773
|
+
return;
|
|
1756
1774
|
}
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1775
|
+
l(dt, this) === 0 && (l(Se, this).before(t), S(Ze, this, null), bt(l(ue, this), () => {
|
|
1776
|
+
S(ue, this, null);
|
|
1777
|
+
}), $(N, this, Un).call(this, x));
|
|
1760
1778
|
}
|
|
1761
|
-
l(ct, this) === 0 && (l(Se, this).before(t), $(Xe, this, null), gt(l(ue, this), () => {
|
|
1762
|
-
$(ue, this, null);
|
|
1763
|
-
}), E(z, this, zn).call(this, A));
|
|
1764
1779
|
}));
|
|
1765
1780
|
}
|
|
1766
|
-
function
|
|
1781
|
+
function xo() {
|
|
1767
1782
|
try {
|
|
1768
|
-
if (this.is_pending = this.has_pending_snippet(),
|
|
1769
|
-
l(
|
|
1770
|
-
})), l(
|
|
1771
|
-
var e =
|
|
1772
|
-
|
|
1783
|
+
if (this.is_pending = this.has_pending_snippet(), S(dt, this, 0), S(St, this, 0), S(Ee, this, pe(() => {
|
|
1784
|
+
l(fn, this).call(this, l(Se, this));
|
|
1785
|
+
})), l(dt, this) > 0) {
|
|
1786
|
+
var e = S(Ze, this, document.createDocumentFragment());
|
|
1787
|
+
Zr(l(Ee, this), e);
|
|
1773
1788
|
const t = l(Ce, this).pending;
|
|
1774
|
-
|
|
1775
|
-
} else
|
|
1789
|
+
S(ue, this, pe(() => t(l(Se, this))));
|
|
1790
|
+
} else $(N, this, Un).call(this, x);
|
|
1776
1791
|
} catch (t) {
|
|
1777
1792
|
this.error(t);
|
|
1778
1793
|
}
|
|
1779
1794
|
}
|
|
1780
|
-
function
|
|
1781
|
-
this.is_pending = !1, e.transfer_effects(l(
|
|
1795
|
+
function Un(e) {
|
|
1796
|
+
this.is_pending = !1, e.transfer_effects(l(Rr, this), l(Cr, this));
|
|
1782
1797
|
}
|
|
1783
|
-
function
|
|
1784
|
-
var t =
|
|
1785
|
-
Ne(l(
|
|
1798
|
+
function Jr(e) {
|
|
1799
|
+
var t = A, n = R, r = F;
|
|
1800
|
+
Ne(l(ie, this)), ge(l(ie, this)), Rt(l(ie, this).ctx);
|
|
1786
1801
|
try {
|
|
1787
|
-
return
|
|
1802
|
+
return gt.ensure(), e();
|
|
1788
1803
|
} finally {
|
|
1789
|
-
Ne(t), ge(n),
|
|
1804
|
+
Ne(t), ge(n), Rt(r);
|
|
1790
1805
|
}
|
|
1791
1806
|
}
|
|
1792
|
-
function
|
|
1807
|
+
function Mo(e, t) {
|
|
1793
1808
|
if (!this.has_pending_snippet()) {
|
|
1794
1809
|
if (this.parent) {
|
|
1795
1810
|
var n;
|
|
1796
|
-
|
|
1811
|
+
$(N, n = this.parent, Mo).call(n, e, t);
|
|
1797
1812
|
}
|
|
1798
1813
|
return;
|
|
1799
1814
|
}
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
}), l(
|
|
1815
|
+
S(dt, this, l(dt, this) + e), l(dt, this) === 0 && ($(N, this, Un).call(this, t), l(ue, this) && bt(l(ue, this), () => {
|
|
1816
|
+
S(ue, this, null);
|
|
1817
|
+
}), l(Ze, this) && (l(Se, this).before(l(Ze, this)), S(Ze, this, null)));
|
|
1803
1818
|
}
|
|
1804
|
-
function
|
|
1805
|
-
l(Ee, this) && (ne(l(Ee, this)),
|
|
1819
|
+
function mi(e) {
|
|
1820
|
+
l(Ee, this) && (ne(l(Ee, this)), S(Ee, this, null)), l(ue, this) && (ne(l(ue, this)), S(ue, this, null)), l(ke, this) && (ne(l(ke, this)), S(ke, this, null)), M && (X(l(Mr, this)), Ca(), X(In()));
|
|
1806
1821
|
let t = l(Ce, this).failed;
|
|
1807
1822
|
const n = (r) => {
|
|
1808
|
-
|
|
1809
|
-
|
|
1823
|
+
if ($(N, this, ht).call(this)) return;
|
|
1824
|
+
const { reset: i, invoke_onerror: o } = $(N, this, Ao).call(this, r);
|
|
1825
|
+
o(), t && !$(N, this, ht).call(this) && S(ke, this, $(N, this, Jr).call(this, () => {
|
|
1810
1826
|
try {
|
|
1811
1827
|
return pe(() => {
|
|
1812
|
-
var a =
|
|
1828
|
+
var a = A;
|
|
1813
1829
|
a.b = this, a.f |= 128, t(l(Se, this), () => r, () => i);
|
|
1814
1830
|
});
|
|
1815
1831
|
} catch (a) {
|
|
1816
|
-
return Le(a, l(
|
|
1832
|
+
return Le(a, l(ie, this).parent), null;
|
|
1817
1833
|
}
|
|
1818
1834
|
}));
|
|
1819
1835
|
};
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1836
|
+
Je(() => {
|
|
1837
|
+
if (!$(N, this, ht).call(this)) {
|
|
1838
|
+
var r;
|
|
1839
|
+
try {
|
|
1840
|
+
r = this.transform_error(e);
|
|
1841
|
+
} catch (i) {
|
|
1842
|
+
Le(i, l(ie, this) && l(ie, this).parent);
|
|
1843
|
+
return;
|
|
1844
|
+
}
|
|
1845
|
+
r !== null && typeof r == "object" && typeof r.then == "function" ? r.then(n, (i) => Le(i, l(ie, this) && l(ie, this).parent)) : n(r);
|
|
1827
1846
|
}
|
|
1828
|
-
r !== null && typeof r == "object" && typeof r.then == "function" ? r.then(n, (i) => Le(i, l(le, this) && l(le, this).parent)) : n(r);
|
|
1829
1847
|
});
|
|
1830
1848
|
}
|
|
1831
|
-
var
|
|
1832
|
-
function
|
|
1849
|
+
var yi = !0;
|
|
1850
|
+
function Tn(e, t) {
|
|
1833
1851
|
var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1834
|
-
n !== (e[
|
|
1852
|
+
n !== (e[Rn] ?? (e[Rn] = e.nodeValue)) && (e[Rn] = n, e.nodeValue = `${n}`);
|
|
1835
1853
|
}
|
|
1836
|
-
function
|
|
1837
|
-
return
|
|
1854
|
+
function Ro(e, t) {
|
|
1855
|
+
return Co(e, t);
|
|
1838
1856
|
}
|
|
1839
1857
|
function qs(e, t) {
|
|
1840
|
-
|
|
1858
|
+
Ar(), t.intro = t.intro ?? !1;
|
|
1841
1859
|
const n = t.target, r = M, i = C;
|
|
1842
1860
|
try {
|
|
1843
|
-
for (var o = /* @__PURE__ */
|
|
1844
|
-
if (!o) throw
|
|
1861
|
+
for (var o = /* @__PURE__ */ le(n); o && (o.nodeType !== 8 || o.data !== "["); ) o = /* @__PURE__ */ Te(o);
|
|
1862
|
+
if (!o) throw Ve;
|
|
1845
1863
|
De(!0), X(o);
|
|
1846
|
-
const a =
|
|
1864
|
+
const a = Co(e, {
|
|
1847
1865
|
...t,
|
|
1848
1866
|
anchor: o
|
|
1849
1867
|
});
|
|
@@ -1851,128 +1869,128 @@ function qs(e, t) {
|
|
|
1851
1869
|
} catch (a) {
|
|
1852
1870
|
if (a instanceof Error && a.message.split(`
|
|
1853
1871
|
`).some((f) => f.startsWith("https://svelte.dev/e/"))) throw a;
|
|
1854
|
-
return a !==
|
|
1872
|
+
return a !== Ve && console.warn("Failed to hydrate: ", a), t.recover === !1 && Da(), Ar(), fo(n), De(!1), Ro(e, t);
|
|
1855
1873
|
} finally {
|
|
1856
1874
|
De(r), X(i);
|
|
1857
1875
|
}
|
|
1858
1876
|
}
|
|
1859
|
-
var
|
|
1860
|
-
function
|
|
1861
|
-
|
|
1862
|
-
var c = void 0,
|
|
1863
|
-
var
|
|
1864
|
-
Os(
|
|
1877
|
+
var An = /* @__PURE__ */ new Map();
|
|
1878
|
+
function Co(e, { target: t, anchor: n, props: r = {}, events: i, context: o, intro: a = !0, transformError: f }) {
|
|
1879
|
+
Ar();
|
|
1880
|
+
var c = void 0, p = vs(() => {
|
|
1881
|
+
var _ = n ?? t.appendChild(fe());
|
|
1882
|
+
Os(_, { pending: () => {
|
|
1865
1883
|
} }, (h) => {
|
|
1866
|
-
|
|
1867
|
-
var b =
|
|
1868
|
-
if (o && (b.c = o), i && (r.$$events = i), M && He(h, null),
|
|
1869
|
-
throw
|
|
1870
|
-
|
|
1884
|
+
Hi({});
|
|
1885
|
+
var b = F;
|
|
1886
|
+
if (o && (b.c = o), i && (r.$$events = i), M && He(h, null), yi = a, c = e(h, r) || jr(), yi = !0, M && (A.nodes.end = C, C === null || C.nodeType !== 8 || C.data !== "]"))
|
|
1887
|
+
throw cn(), Ve;
|
|
1888
|
+
Vi();
|
|
1871
1889
|
}, f);
|
|
1872
1890
|
var u = /* @__PURE__ */ new Set(), d = (h) => {
|
|
1873
1891
|
for (var b = 0; b < h.length; b++) {
|
|
1874
|
-
var
|
|
1875
|
-
if (!u.has(
|
|
1876
|
-
u.add(
|
|
1877
|
-
var g = xs(
|
|
1892
|
+
var w = h[b];
|
|
1893
|
+
if (!u.has(w)) {
|
|
1894
|
+
u.add(w);
|
|
1895
|
+
var g = xs(w);
|
|
1878
1896
|
for (const k of [t, document]) {
|
|
1879
|
-
var
|
|
1880
|
-
|
|
1881
|
-
var
|
|
1882
|
-
|
|
1897
|
+
var y = An.get(k);
|
|
1898
|
+
y === void 0 && (y = /* @__PURE__ */ new Map(), An.set(k, y));
|
|
1899
|
+
var P = y.get(w);
|
|
1900
|
+
P === void 0 ? (k.addEventListener(w, bi, { passive: g }), y.set(w, 1)) : y.set(w, P + 1);
|
|
1883
1901
|
}
|
|
1884
1902
|
}
|
|
1885
1903
|
}
|
|
1886
1904
|
};
|
|
1887
|
-
return d(
|
|
1905
|
+
return d(Yn(To)), xr.add(d), () => {
|
|
1888
1906
|
for (var h of u) for (const g of [t, document]) {
|
|
1889
|
-
var b =
|
|
1890
|
-
--
|
|
1907
|
+
var b = An.get(g), w = b.get(h);
|
|
1908
|
+
--w == 0 ? (g.removeEventListener(h, bi), b.delete(h), b.size === 0 && An.delete(g)) : b.set(h, w);
|
|
1891
1909
|
}
|
|
1892
|
-
|
|
1910
|
+
xr.delete(d), _ !== n && _.parentNode?.removeChild(_);
|
|
1893
1911
|
};
|
|
1894
1912
|
});
|
|
1895
|
-
return
|
|
1913
|
+
return Or.set(c, p), c;
|
|
1896
1914
|
}
|
|
1897
|
-
var
|
|
1915
|
+
var Or = /* @__PURE__ */ new WeakMap();
|
|
1898
1916
|
function Ws(e, t) {
|
|
1899
|
-
const n =
|
|
1900
|
-
return n ? (
|
|
1917
|
+
const n = Or.get(e);
|
|
1918
|
+
return n ? (Or.delete(e), n(t)) : Promise.resolve();
|
|
1901
1919
|
}
|
|
1902
|
-
var qe = /* @__PURE__ */ new WeakMap(),
|
|
1920
|
+
var qe = /* @__PURE__ */ new WeakMap(), Ye = /* @__PURE__ */ new WeakMap(), we = /* @__PURE__ */ new WeakMap(), Ft = /* @__PURE__ */ new WeakMap(), hr = /* @__PURE__ */ new WeakMap(), vr = /* @__PURE__ */ new WeakMap(), ki = /* @__PURE__ */ new WeakMap(), Ds = class {
|
|
1903
1921
|
constructor(e, t = !0) {
|
|
1904
|
-
|
|
1922
|
+
q(this, "anchor", void 0), E(this, qe, /* @__PURE__ */ new Map()), E(this, Ye, /* @__PURE__ */ new Map()), E(this, we, /* @__PURE__ */ new Map()), E(this, Ft, /* @__PURE__ */ new Set()), E(this, hr, !0), E(this, vr, (n) => {
|
|
1905
1923
|
if (l(qe, this).has(n)) {
|
|
1906
|
-
var r = l(qe, this).get(n), i = l(
|
|
1924
|
+
var r = l(qe, this).get(n), i = l(Ye, this).get(r);
|
|
1907
1925
|
if (i)
|
|
1908
|
-
|
|
1926
|
+
zn(i), l(Ft, this).delete(r);
|
|
1909
1927
|
else {
|
|
1910
1928
|
var o = l(we, this).get(r);
|
|
1911
|
-
o && (
|
|
1929
|
+
o && (zn(o.effect), l(Ye, this).set(r, o.effect), l(we, this).delete(r), o.fragment.lastChild.remove(), this.anchor.before(o.fragment), i = o.effect);
|
|
1912
1930
|
}
|
|
1913
1931
|
for (const [a, f] of l(qe, this)) {
|
|
1914
1932
|
if (l(qe, this).delete(a), a === n) break;
|
|
1915
1933
|
const c = l(we, this).get(f);
|
|
1916
1934
|
c && (ne(c.effect), l(we, this).delete(f));
|
|
1917
1935
|
}
|
|
1918
|
-
for (const [a, f] of l(
|
|
1919
|
-
if (a === r || l(
|
|
1936
|
+
for (const [a, f] of l(Ye, this)) {
|
|
1937
|
+
if (a === r || l(Ft, this).has(a)) continue;
|
|
1920
1938
|
const c = () => {
|
|
1921
1939
|
if (Array.from(l(qe, this).values()).includes(a)) {
|
|
1922
|
-
var
|
|
1923
|
-
|
|
1940
|
+
var p = document.createDocumentFragment();
|
|
1941
|
+
Zr(f, p), p.append(fe()), l(we, this).set(a, {
|
|
1924
1942
|
effect: f,
|
|
1925
|
-
fragment:
|
|
1943
|
+
fragment: p
|
|
1926
1944
|
});
|
|
1927
1945
|
} else ne(f);
|
|
1928
|
-
l(
|
|
1946
|
+
l(Ft, this).delete(a), l(Ye, this).delete(a);
|
|
1929
1947
|
};
|
|
1930
|
-
l(
|
|
1948
|
+
l(hr, this) || !i ? (l(Ft, this).add(a), bt(f, c, !1)) : c();
|
|
1931
1949
|
}
|
|
1932
1950
|
}
|
|
1933
|
-
}),
|
|
1951
|
+
}), E(this, ki, (n) => {
|
|
1934
1952
|
l(qe, this).delete(n);
|
|
1935
1953
|
const r = Array.from(l(qe, this).values());
|
|
1936
1954
|
for (const [i, o] of l(we, this)) r.includes(i) || (ne(o.effect), l(we, this).delete(i));
|
|
1937
|
-
}), this.anchor = e,
|
|
1955
|
+
}), this.anchor = e, S(hr, this, t);
|
|
1938
1956
|
}
|
|
1939
1957
|
ensure(e, t) {
|
|
1940
|
-
var n =
|
|
1941
|
-
if (t && !l(
|
|
1958
|
+
var n = x, r = uo();
|
|
1959
|
+
if (t && !l(Ye, this).has(e) && !l(we, this).has(e))
|
|
1942
1960
|
if (r) {
|
|
1943
1961
|
var i = document.createDocumentFragment(), o = fe();
|
|
1944
1962
|
i.append(o), l(we, this).set(e, {
|
|
1945
1963
|
effect: pe(() => t(o)),
|
|
1946
1964
|
fragment: i
|
|
1947
1965
|
});
|
|
1948
|
-
} else l(
|
|
1966
|
+
} else l(Ye, this).set(e, pe(() => t(this.anchor)));
|
|
1949
1967
|
if (l(qe, this).set(n, e), r) {
|
|
1950
|
-
for (const [a, f] of l(
|
|
1968
|
+
for (const [a, f] of l(Ye, this)) a === e ? n.unskip_effect(f) : n.skip_effect(f);
|
|
1951
1969
|
for (const [a, f] of l(we, this)) a === e ? n.unskip_effect(f.effect) : n.skip_effect(f.effect);
|
|
1952
|
-
n.oncommit(l(
|
|
1970
|
+
n.oncommit(l(vr, this)), n.ondiscard(l(ki, this));
|
|
1953
1971
|
} else
|
|
1954
|
-
M && (this.anchor = C), l(
|
|
1972
|
+
M && (this.anchor = C), l(vr, this).call(this, n);
|
|
1955
1973
|
}
|
|
1956
1974
|
};
|
|
1957
|
-
function
|
|
1975
|
+
function tt(e, t, n = !1) {
|
|
1958
1976
|
var r;
|
|
1959
|
-
M && (r = C,
|
|
1960
|
-
var i = new Ds(e), o = n ?
|
|
1977
|
+
M && (r = C, Mt());
|
|
1978
|
+
var i = new Ds(e), o = n ? Wr : 0;
|
|
1961
1979
|
function a(f, c) {
|
|
1962
1980
|
if (M) {
|
|
1963
|
-
var
|
|
1964
|
-
if (f !== parseInt(
|
|
1965
|
-
var
|
|
1966
|
-
X(
|
|
1981
|
+
var p = Dr(r);
|
|
1982
|
+
if (f !== parseInt(p.substring(1))) {
|
|
1983
|
+
var _ = In();
|
|
1984
|
+
X(_), i.anchor = _, De(!1), i.ensure(f, c), De(!0);
|
|
1967
1985
|
return;
|
|
1968
1986
|
}
|
|
1969
1987
|
}
|
|
1970
1988
|
i.ensure(f, c);
|
|
1971
1989
|
}
|
|
1972
|
-
|
|
1990
|
+
Kr(() => {
|
|
1973
1991
|
var f = !1;
|
|
1974
|
-
t((c,
|
|
1975
|
-
f = !0, a(
|
|
1992
|
+
t((c, p = 0) => {
|
|
1993
|
+
f = !0, a(p, c);
|
|
1976
1994
|
}), f || a(-1, null);
|
|
1977
1995
|
}, o);
|
|
1978
1996
|
}
|
|
@@ -1982,11 +2000,11 @@ function js(e, t) {
|
|
|
1982
2000
|
function Hs(e, t, n) {
|
|
1983
2001
|
for (var r = [], i = t.length, o, a = t.length, f = 0; f < i; f++) {
|
|
1984
2002
|
let u = t[f];
|
|
1985
|
-
|
|
2003
|
+
bt(u, () => {
|
|
1986
2004
|
if (o) {
|
|
1987
2005
|
if (o.pending.delete(u), o.done.add(u), o.pending.size === 0) {
|
|
1988
2006
|
var d = e.outrogroups;
|
|
1989
|
-
|
|
2007
|
+
Lr(e, Yn(o.done)), d.delete(o), d.size === 0 && (e.outrogroups = null);
|
|
1990
2008
|
}
|
|
1991
2009
|
} else a -= 1;
|
|
1992
2010
|
}, !1);
|
|
@@ -1994,17 +2012,17 @@ function Hs(e, t, n) {
|
|
|
1994
2012
|
if (a === 0) {
|
|
1995
2013
|
var c = r.length === 0 && n !== null && e.pending.size === 0;
|
|
1996
2014
|
if (c) {
|
|
1997
|
-
var
|
|
1998
|
-
|
|
2015
|
+
var p = n, _ = p.parentNode;
|
|
2016
|
+
fo(_), _.append(p), e.items.clear();
|
|
1999
2017
|
}
|
|
2000
|
-
|
|
2018
|
+
Lr(e, t, !c);
|
|
2001
2019
|
} else
|
|
2002
2020
|
o = {
|
|
2003
2021
|
pending: new Set(t),
|
|
2004
2022
|
done: /* @__PURE__ */ new Set()
|
|
2005
2023
|
}, (e.outrogroups ?? (e.outrogroups = /* @__PURE__ */ new Set())).add(o);
|
|
2006
2024
|
}
|
|
2007
|
-
function
|
|
2025
|
+
function Lr(e, t, n = !0) {
|
|
2008
2026
|
var r;
|
|
2009
2027
|
if (e.pending.size > 0) {
|
|
2010
2028
|
r = /* @__PURE__ */ new Set();
|
|
@@ -2013,134 +2031,137 @@ function Or(e, t, n = !0) {
|
|
|
2013
2031
|
for (var i = 0; i < t.length; i++) {
|
|
2014
2032
|
var o = t[i];
|
|
2015
2033
|
if (r?.has(o)) {
|
|
2016
|
-
o.f |=
|
|
2034
|
+
o.f |= Zt;
|
|
2017
2035
|
const a = document.createDocumentFragment();
|
|
2018
|
-
|
|
2036
|
+
Zr(o, a);
|
|
2019
2037
|
} else ne(t[i], n);
|
|
2020
2038
|
}
|
|
2021
2039
|
}
|
|
2022
|
-
var
|
|
2023
|
-
function
|
|
2040
|
+
var xn;
|
|
2041
|
+
function $i(e, t, n, r, i, o = null) {
|
|
2024
2042
|
var a = e, f = /* @__PURE__ */ new Map();
|
|
2025
2043
|
if ((t & 4) !== 0) {
|
|
2026
2044
|
var c = e;
|
|
2027
|
-
a = M ? X(/* @__PURE__ */
|
|
2028
|
-
}
|
|
2029
|
-
M &&
|
|
2030
|
-
var
|
|
2031
|
-
var
|
|
2032
|
-
return
|
|
2033
|
-
}), u
|
|
2034
|
-
function
|
|
2035
|
-
(
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2045
|
+
a = M ? X(/* @__PURE__ */ le(c)) : c.appendChild(fe());
|
|
2046
|
+
}
|
|
2047
|
+
M && Mt();
|
|
2048
|
+
var p = null, _ = /* @__PURE__ */ Vr(() => {
|
|
2049
|
+
var g = n();
|
|
2050
|
+
return Li(g) ? g : g == null ? [] : Yn(g);
|
|
2051
|
+
}), u = /* @__PURE__ */ new Map(), d = !0;
|
|
2052
|
+
function h(g) {
|
|
2053
|
+
if ((w.effect.f & 16384) === 0) {
|
|
2054
|
+
w.pending.delete(g);
|
|
2055
|
+
var y = s(_);
|
|
2056
|
+
w.fallback = p, Vs(w, y, a, t, r), p !== null && (y.length === 0 ? (p.f & 33554432) === 0 ? zn(p) : (p.f ^= Zt, Xt(p, null, a)) : bt(p, () => {
|
|
2057
|
+
p = null;
|
|
2058
|
+
}));
|
|
2059
|
+
}
|
|
2060
|
+
}
|
|
2061
|
+
function b(g) {
|
|
2062
|
+
w.pending.delete(g);
|
|
2063
|
+
}
|
|
2064
|
+
var w = {
|
|
2065
|
+
effect: Kr(() => {
|
|
2066
|
+
var g = s(_), y = g.length;
|
|
2067
|
+
let P = !1;
|
|
2068
|
+
M && Dr(a) === "[!" != (y === 0) && (a = In(), X(a), De(!1), P = !0);
|
|
2069
|
+
for (var k = /* @__PURE__ */ new Set(), T = x, G = uo(), H = 0; H < y; H += 1) {
|
|
2070
|
+
M && C.nodeType === 8 && C.data === "]" && (a = C, P = !0, De(!1));
|
|
2071
|
+
var Y = g[H], Q = r(Y, H);
|
|
2051
2072
|
if (0)
|
|
2052
|
-
var
|
|
2053
|
-
var
|
|
2054
|
-
|
|
2073
|
+
var wt;
|
|
2074
|
+
var W = d ? null : f.get(Q);
|
|
2075
|
+
W ? (W.v && Ct(W.v, Y), W.i && Ct(W.i, H), G && T.unskip_effect(W.e)) : (W = Fs(f, d ? a : xn ?? (xn = fe()), Y, Q, H, i, t, n), d || (W.e.f |= Zt), f.set(Q, W)), k.add(Q);
|
|
2055
2076
|
}
|
|
2056
|
-
if (
|
|
2057
|
-
if (
|
|
2058
|
-
for (const [
|
|
2059
|
-
T.oncommit(
|
|
2060
|
-
} else
|
|
2061
|
-
|
|
2077
|
+
if (y === 0 && o && !p && (d ? p = pe(() => o(a)) : (p = pe(() => o(xn ?? (xn = fe()))), p.f |= Zt)), y > k.size && Na("", "", ""), M && y > 0 && X(In()), !d)
|
|
2078
|
+
if (u.set(T, k), G) {
|
|
2079
|
+
for (const [ze, Nt] of f) k.has(ze) || T.skip_effect(Nt.e);
|
|
2080
|
+
T.oncommit(h), T.ondiscard(b);
|
|
2081
|
+
} else h(T);
|
|
2082
|
+
P && De(!0), s(_);
|
|
2062
2083
|
}),
|
|
2063
2084
|
flags: t,
|
|
2064
2085
|
items: f,
|
|
2065
|
-
pending:
|
|
2086
|
+
pending: u,
|
|
2066
2087
|
outrogroups: null,
|
|
2067
|
-
fallback:
|
|
2088
|
+
fallback: p
|
|
2068
2089
|
};
|
|
2069
|
-
|
|
2090
|
+
d = !1, M && (a = C);
|
|
2070
2091
|
}
|
|
2071
|
-
function
|
|
2092
|
+
function Bt(e) {
|
|
2072
2093
|
for (; e !== null && (e.f & 32) === 0; ) e = e.next;
|
|
2073
2094
|
return e;
|
|
2074
2095
|
}
|
|
2075
2096
|
function Vs(e, t, n, r, i) {
|
|
2076
|
-
var o = (r & 8) !== 0, a = t.length, f = e.items, c =
|
|
2077
|
-
if (o) for (
|
|
2078
|
-
b = t[
|
|
2079
|
-
for (
|
|
2080
|
-
if (b = t[
|
|
2081
|
-
|
|
2082
|
-
if ((g.f & 8192) !== 0 && (
|
|
2083
|
-
if (g.f ^=
|
|
2097
|
+
var o = (r & 8) !== 0, a = t.length, f = e.items, c = Bt(e.effect.first), p, _ = null, u, d = [], h = [], b, w, g, y;
|
|
2098
|
+
if (o) for (y = 0; y < a; y += 1)
|
|
2099
|
+
b = t[y], w = i(b, y), g = f.get(w).e, (g.f & 33554432) === 0 && (g.nodes?.a?.measure(), (u ?? (u = /* @__PURE__ */ new Set())).add(g));
|
|
2100
|
+
for (y = 0; y < a; y += 1) {
|
|
2101
|
+
if (b = t[y], w = i(b, y), g = f.get(w).e, e.outrogroups !== null) for (const W of e.outrogroups)
|
|
2102
|
+
W.pending.delete(g), W.done.delete(g);
|
|
2103
|
+
if ((g.f & 8192) !== 0 && (zn(g), o && (g.nodes?.a?.unfix(), (u ?? (u = /* @__PURE__ */ new Set())).delete(g))), (g.f & 33554432) !== 0)
|
|
2104
|
+
if (g.f ^= Zt, g === c) Xt(g, null, n);
|
|
2084
2105
|
else {
|
|
2085
|
-
var
|
|
2086
|
-
g === e.effect.last && (e.effect.last = g.prev), g.prev && (g.prev.next = g.next), g.next && (g.next.prev = g.prev),
|
|
2106
|
+
var P = _ ? _.next : c;
|
|
2107
|
+
g === e.effect.last && (e.effect.last = g.prev), g.prev && (g.prev.next = g.next), g.next && (g.next.prev = g.prev), Ke(e, _, g), Ke(e, g, P), Xt(g, P, n), _ = g, d = [], h = [], c = Bt(_.next);
|
|
2087
2108
|
continue;
|
|
2088
2109
|
}
|
|
2089
2110
|
if (g !== c) {
|
|
2090
|
-
if (
|
|
2111
|
+
if (p !== void 0 && p.has(g)) {
|
|
2091
2112
|
if (d.length < h.length) {
|
|
2092
2113
|
var k = h[0], T;
|
|
2093
|
-
|
|
2094
|
-
var G = d[0],
|
|
2095
|
-
for (T = 0; T < d.length; T += 1)
|
|
2096
|
-
for (T = 0; T < h.length; T += 1)
|
|
2097
|
-
|
|
2114
|
+
_ = k.prev;
|
|
2115
|
+
var G = d[0], H = d[d.length - 1];
|
|
2116
|
+
for (T = 0; T < d.length; T += 1) Xt(d[T], k, n);
|
|
2117
|
+
for (T = 0; T < h.length; T += 1) p.delete(h[T]);
|
|
2118
|
+
Ke(e, G.prev, H.next), Ke(e, _, G), Ke(e, H, k), c = k, _ = H, y -= 1, d = [], h = [];
|
|
2098
2119
|
} else
|
|
2099
|
-
|
|
2120
|
+
p.delete(g), Xt(g, c, n), Ke(e, g.prev, g.next), Ke(e, g, _ === null ? e.effect.first : _.next), Ke(e, _, g), _ = g;
|
|
2100
2121
|
continue;
|
|
2101
2122
|
}
|
|
2102
2123
|
for (d = [], h = []; c !== null && c !== g; )
|
|
2103
|
-
(
|
|
2124
|
+
(p ?? (p = /* @__PURE__ */ new Set())).add(c), h.push(c), c = Bt(c.next);
|
|
2104
2125
|
if (c === null) continue;
|
|
2105
2126
|
}
|
|
2106
|
-
(g.f & 33554432) === 0 && d.push(g),
|
|
2127
|
+
(g.f & 33554432) === 0 && d.push(g), _ = g, c = Bt(g.next);
|
|
2107
2128
|
}
|
|
2108
2129
|
if (e.outrogroups !== null) {
|
|
2109
|
-
for (const
|
|
2130
|
+
for (const W of e.outrogroups) W.pending.size === 0 && (Lr(e, Yn(W.done)), e.outrogroups?.delete(W));
|
|
2110
2131
|
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
2111
2132
|
}
|
|
2112
|
-
if (c !== null ||
|
|
2133
|
+
if (c !== null || p !== void 0) {
|
|
2113
2134
|
var Y = [];
|
|
2114
|
-
if (
|
|
2115
|
-
for (g of
|
|
2135
|
+
if (p !== void 0)
|
|
2136
|
+
for (g of p) (g.f & 8192) === 0 && Y.push(g);
|
|
2116
2137
|
for (; c !== null; )
|
|
2117
|
-
(c.f & 8192) === 0 && c !== e.fallback && Y.push(c), c =
|
|
2138
|
+
(c.f & 8192) === 0 && c !== e.fallback && Y.push(c), c = Bt(c.next);
|
|
2118
2139
|
var Q = Y.length;
|
|
2119
2140
|
if (Q > 0) {
|
|
2120
|
-
var
|
|
2141
|
+
var wt = (r & 4) !== 0 && a === 0 ? n : null;
|
|
2121
2142
|
if (o) {
|
|
2122
|
-
for (
|
|
2123
|
-
for (
|
|
2143
|
+
for (y = 0; y < Q; y += 1) Y[y].nodes?.a?.measure();
|
|
2144
|
+
for (y = 0; y < Q; y += 1) Y[y].nodes?.a?.fix();
|
|
2124
2145
|
}
|
|
2125
|
-
Hs(e, Y,
|
|
2146
|
+
Hs(e, Y, wt);
|
|
2126
2147
|
}
|
|
2127
2148
|
}
|
|
2128
|
-
o &&
|
|
2149
|
+
o && Je(() => {
|
|
2129
2150
|
if (u !== void 0)
|
|
2130
2151
|
for (g of u) g.nodes?.a?.apply();
|
|
2131
2152
|
});
|
|
2132
2153
|
}
|
|
2133
2154
|
function Fs(e, t, n, r, i, o, a, f) {
|
|
2134
|
-
var c = (a & 1) !== 0 ? (a & 16) === 0 ? /* @__PURE__ */
|
|
2155
|
+
var c = (a & 1) !== 0 ? (a & 16) === 0 ? /* @__PURE__ */ io(n, !1, !1) : _t(n) : null, p = (a & 2) !== 0 ? _t(i) : null;
|
|
2135
2156
|
return {
|
|
2136
2157
|
v: c,
|
|
2137
|
-
i:
|
|
2138
|
-
e: pe(() => (o(t, c ?? n,
|
|
2158
|
+
i: p,
|
|
2159
|
+
e: pe(() => (o(t, c ?? n, p ?? i, f), () => {
|
|
2139
2160
|
e.delete(r);
|
|
2140
2161
|
}))
|
|
2141
2162
|
};
|
|
2142
2163
|
}
|
|
2143
|
-
function
|
|
2164
|
+
function Xt(e, t, n) {
|
|
2144
2165
|
if (e.nodes)
|
|
2145
2166
|
for (var r = e.nodes.start, i = e.nodes.end, o = t && (t.f & 33554432) === 0 ? t.nodes.start : n; r !== null; ) {
|
|
2146
2167
|
var a = /* @__PURE__ */ Te(r);
|
|
@@ -2148,53 +2169,53 @@ function Yt(e, t, n) {
|
|
|
2148
2169
|
r = a;
|
|
2149
2170
|
}
|
|
2150
2171
|
}
|
|
2151
|
-
function
|
|
2172
|
+
function Ke(e, t, n) {
|
|
2152
2173
|
t === null ? e.effect.first = n : t.next = n, n === null ? e.effect.last = t : n.prev = t;
|
|
2153
2174
|
}
|
|
2154
2175
|
function Bs(e, t, n = !1, r = !1, i = !1, o = !1) {
|
|
2155
2176
|
var a = e, f = "";
|
|
2156
2177
|
if (n) {
|
|
2157
2178
|
var c = e;
|
|
2158
|
-
M && (a = X(/* @__PURE__ */
|
|
2179
|
+
M && (a = X(/* @__PURE__ */ le(c)));
|
|
2159
2180
|
}
|
|
2160
2181
|
We(() => {
|
|
2161
|
-
var
|
|
2182
|
+
var p = A;
|
|
2162
2183
|
if (f === (f = t() ?? "")) {
|
|
2163
|
-
M &&
|
|
2184
|
+
M && Mt();
|
|
2164
2185
|
return;
|
|
2165
2186
|
}
|
|
2166
2187
|
if (n && !M) {
|
|
2167
|
-
|
|
2188
|
+
p.nodes = null, c.innerHTML = f, f !== "" && He(/* @__PURE__ */ le(c), c.lastChild);
|
|
2168
2189
|
return;
|
|
2169
2190
|
}
|
|
2170
|
-
if (
|
|
2191
|
+
if (p.nodes !== null && (_o(p.nodes.start, p.nodes.end), p.nodes = null), f !== "") {
|
|
2171
2192
|
if (M) {
|
|
2172
|
-
for (var
|
|
2193
|
+
for (var _ = C.data, u = Mt(), d = u; u !== null && (u.nodeType !== 8 || u.data !== ""); )
|
|
2173
2194
|
d = u, u = /* @__PURE__ */ Te(u);
|
|
2174
2195
|
if (u === null)
|
|
2175
|
-
throw
|
|
2196
|
+
throw cn(), Ve;
|
|
2176
2197
|
He(C, d), a = X(u);
|
|
2177
2198
|
return;
|
|
2178
2199
|
}
|
|
2179
|
-
var h =
|
|
2200
|
+
var h = Zn(r ? "svg" : i ? "math" : "template", r ? va : i ? _a : void 0);
|
|
2180
2201
|
h.innerHTML = f;
|
|
2181
2202
|
var b = r || i ? h : h.content;
|
|
2182
|
-
if (He(/* @__PURE__ */
|
|
2203
|
+
if (He(/* @__PURE__ */ le(b), b.lastChild), r || i) for (; /* @__PURE__ */ le(b); ) a.before(/* @__PURE__ */ le(b));
|
|
2183
2204
|
else a.before(b);
|
|
2184
2205
|
}
|
|
2185
2206
|
});
|
|
2186
2207
|
}
|
|
2187
2208
|
function zs(e, t) {
|
|
2188
|
-
|
|
2189
|
-
e =
|
|
2209
|
+
ho(() => {
|
|
2210
|
+
e = A?.parent?.nodes?.start ?? e;
|
|
2190
2211
|
var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
|
|
2191
2212
|
if (!r.querySelector("#" + t.hash)) {
|
|
2192
|
-
const i =
|
|
2213
|
+
const i = Zn("style");
|
|
2193
2214
|
i.id = t.hash, i.textContent = t.code, r.appendChild(i);
|
|
2194
2215
|
}
|
|
2195
2216
|
});
|
|
2196
2217
|
}
|
|
2197
|
-
var
|
|
2218
|
+
var Si = [...`
|
|
2198
2219
|
\r\f \v\uFEFF`];
|
|
2199
2220
|
function Us(e, t, n) {
|
|
2200
2221
|
var r = e == null ? "" : "" + e;
|
|
@@ -2203,12 +2224,12 @@ function Us(e, t, n) {
|
|
|
2203
2224
|
else if (r.length)
|
|
2204
2225
|
for (var o = i.length, a = 0; (a = r.indexOf(i, a)) >= 0; ) {
|
|
2205
2226
|
var f = a + o;
|
|
2206
|
-
(a === 0 ||
|
|
2227
|
+
(a === 0 || Si.includes(r[a - 1])) && (f === r.length || Si.includes(r[f])) ? r = (a === 0 ? "" : r.substring(0, a)) + r.substring(f + 1) : a = f;
|
|
2207
2228
|
}
|
|
2208
2229
|
}
|
|
2209
2230
|
return r === "" ? null : r;
|
|
2210
2231
|
}
|
|
2211
|
-
function
|
|
2232
|
+
function Ei(e, t = !1) {
|
|
2212
2233
|
var n = t ? " !important;" : ";", r = "";
|
|
2213
2234
|
for (var i of Object.keys(e)) {
|
|
2214
2235
|
var o = e[i];
|
|
@@ -2216,7 +2237,7 @@ function Si(e, t = !1) {
|
|
|
2216
2237
|
}
|
|
2217
2238
|
return r;
|
|
2218
2239
|
}
|
|
2219
|
-
function
|
|
2240
|
+
function _r(e) {
|
|
2220
2241
|
return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
|
|
2221
2242
|
}
|
|
2222
2243
|
function Gs(e, t) {
|
|
@@ -2225,54 +2246,54 @@ function Gs(e, t) {
|
|
|
2225
2246
|
if (Array.isArray(t) ? (r = t[0], i = t[1]) : r = t, e) {
|
|
2226
2247
|
e = String(e).replaceAll(/\/\*.*?\*\//g, "").trim();
|
|
2227
2248
|
var o = !1, a = 0, f = !1, c = [];
|
|
2228
|
-
r && c.push(...Object.keys(r).map(
|
|
2229
|
-
var
|
|
2230
|
-
const
|
|
2231
|
-
for (var u = 0; u <
|
|
2249
|
+
r && c.push(...Object.keys(r).map(_r)), i && c.push(...Object.keys(i).map(_r));
|
|
2250
|
+
var p = 0, _ = -1;
|
|
2251
|
+
const w = e.length;
|
|
2252
|
+
for (var u = 0; u < w; u++) {
|
|
2232
2253
|
var d = e[u];
|
|
2233
2254
|
if (f ? d === "/" && e[u - 1] === "*" && (f = !1) : o ? o === d && (o = !1) : d === "/" && e[u + 1] === "*" ? f = !0 : d === '"' || d === "'" ? o = d : d === "(" ? a++ : d === ")" && a--, !f && o === !1 && a === 0) {
|
|
2234
|
-
if (d === ":" &&
|
|
2235
|
-
else if (d === ";" || u ===
|
|
2236
|
-
if (
|
|
2237
|
-
var h =
|
|
2255
|
+
if (d === ":" && _ === -1) _ = u;
|
|
2256
|
+
else if (d === ";" || u === w - 1) {
|
|
2257
|
+
if (_ !== -1) {
|
|
2258
|
+
var h = _r(e.substring(p, _).trim());
|
|
2238
2259
|
if (!c.includes(h)) {
|
|
2239
2260
|
d !== ";" && u++;
|
|
2240
|
-
var b = e.substring(
|
|
2261
|
+
var b = e.substring(p, u).trim();
|
|
2241
2262
|
n += " " + b + ";";
|
|
2242
2263
|
}
|
|
2243
2264
|
}
|
|
2244
|
-
|
|
2265
|
+
p = u + 1, _ = -1;
|
|
2245
2266
|
}
|
|
2246
2267
|
}
|
|
2247
2268
|
}
|
|
2248
2269
|
}
|
|
2249
|
-
return r && (n +=
|
|
2270
|
+
return r && (n += Ei(r)), i && (n += Ei(i, !0)), n = n.trim(), n === "" ? null : n;
|
|
2250
2271
|
}
|
|
2251
2272
|
return e == null ? null : String(e);
|
|
2252
2273
|
}
|
|
2253
2274
|
function Ys(e, t, n, r, i, o) {
|
|
2254
|
-
var a = e[
|
|
2275
|
+
var a = e[kr];
|
|
2255
2276
|
if (M || a !== n || a === void 0) {
|
|
2256
2277
|
var f = Us(n, r, o);
|
|
2257
|
-
(!M || f !== e.getAttribute("class")) && (f == null ? e.removeAttribute("class") : t ? e.className = f : e.setAttribute("class", f)), e[
|
|
2278
|
+
(!M || f !== e.getAttribute("class")) && (f == null ? e.removeAttribute("class") : t ? e.className = f : e.setAttribute("class", f)), e[kr] = n;
|
|
2258
2279
|
} else if (o && i !== o) for (var c in o) {
|
|
2259
|
-
var
|
|
2260
|
-
(i == null ||
|
|
2280
|
+
var p = !!o[c];
|
|
2281
|
+
(i == null || p !== !!i[c]) && e.classList.toggle(c, p);
|
|
2261
2282
|
}
|
|
2262
2283
|
return o;
|
|
2263
2284
|
}
|
|
2264
|
-
function
|
|
2285
|
+
function pr(e, t = {}, n, r) {
|
|
2265
2286
|
for (var i in n) {
|
|
2266
2287
|
var o = n[i];
|
|
2267
2288
|
t[i] !== o && (n[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, o, r));
|
|
2268
2289
|
}
|
|
2269
2290
|
}
|
|
2270
|
-
function
|
|
2271
|
-
var i = e[
|
|
2291
|
+
function Ti(e, t, n, r) {
|
|
2292
|
+
var i = e[$r];
|
|
2272
2293
|
if (M || i !== t) {
|
|
2273
2294
|
var o = Gs(t, r);
|
|
2274
|
-
(!M || o !== e.getAttribute("style")) && (o == null ? e.removeAttribute("style") : e.style.cssText = o), e[
|
|
2275
|
-
} else r && (Array.isArray(r) ? (
|
|
2295
|
+
(!M || o !== e.getAttribute("style")) && (o == null ? e.removeAttribute("style") : e.style.cssText = o), e[$r] = t;
|
|
2296
|
+
} else r && (Array.isArray(r) ? (pr(e, n?.[0], r[0]), pr(e, n?.[1], r[1], "important")) : pr(e, n, r));
|
|
2276
2297
|
return r;
|
|
2277
2298
|
}
|
|
2278
2299
|
var Ks = /* @__PURE__ */ Symbol("is custom element"), Xs = /* @__PURE__ */ Symbol("is html"), Zs = xa ? "link" : "LINK";
|
|
@@ -2285,119 +2306,119 @@ function U(e, t, n, r) {
|
|
|
2285
2306
|
i[t] !== (i[t] = n) && (t === "loading" && (e[Ta] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && Qs(e).has(t) ? e[t] = n : e.setAttribute(t, n));
|
|
2286
2307
|
}
|
|
2287
2308
|
function Js(e) {
|
|
2288
|
-
return e[
|
|
2309
|
+
return e[yr] ?? (e[yr] = {
|
|
2289
2310
|
[Ks]: e.nodeName.includes("-"),
|
|
2290
2311
|
[Xs]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
|
|
2291
2312
|
});
|
|
2292
2313
|
}
|
|
2293
|
-
var
|
|
2314
|
+
var Ai = /* @__PURE__ */ new Map();
|
|
2294
2315
|
function Qs(e) {
|
|
2295
|
-
var t = e.getAttribute("is") || e.nodeName, n =
|
|
2316
|
+
var t = e.getAttribute("is") || e.nodeName, n = Ai.get(t);
|
|
2296
2317
|
if (n) return n;
|
|
2297
|
-
|
|
2318
|
+
Ai.set(t, n = /* @__PURE__ */ new Set());
|
|
2298
2319
|
for (var r, i = e, o = Element.prototype; o !== i; ) {
|
|
2299
|
-
r =
|
|
2320
|
+
r = ga(i);
|
|
2300
2321
|
for (var a in r) r[a].set && a !== "innerHTML" && a !== "textContent" && a !== "innerText" && n.add(a);
|
|
2301
|
-
i =
|
|
2322
|
+
i = Ni(i);
|
|
2302
2323
|
}
|
|
2303
2324
|
return n;
|
|
2304
2325
|
}
|
|
2305
|
-
var
|
|
2326
|
+
var Oo, Et = /* @__PURE__ */ new WeakMap(), Gn = /* @__PURE__ */ new WeakMap(), gr = /* @__PURE__ */ new WeakMap(), xi = /* @__PURE__ */ new WeakSet(), Lo = class {
|
|
2306
2327
|
constructor(e) {
|
|
2307
|
-
|
|
2328
|
+
Br(this, xi), E(this, Et, /* @__PURE__ */ new WeakMap()), E(this, Gn, void 0), E(this, gr, void 0), S(gr, this, e);
|
|
2308
2329
|
}
|
|
2309
2330
|
observe(e, t) {
|
|
2310
|
-
var n = l(
|
|
2311
|
-
return n.add(t), l(
|
|
2312
|
-
var r = l(
|
|
2313
|
-
r.delete(t), r.size === 0 && (l(
|
|
2331
|
+
var n = l(Et, this).get(e) || /* @__PURE__ */ new Set();
|
|
2332
|
+
return n.add(t), l(Et, this).set(e, n), $(xi, this, el).call(this).observe(e, l(gr, this)), () => {
|
|
2333
|
+
var r = l(Et, this).get(e);
|
|
2334
|
+
r.delete(t), r.size === 0 && (l(Et, this).delete(e), l(Gn, this).unobserve(e));
|
|
2314
2335
|
};
|
|
2315
2336
|
}
|
|
2316
2337
|
};
|
|
2317
|
-
|
|
2338
|
+
Oo = Lo;
|
|
2318
2339
|
function el() {
|
|
2319
|
-
return l(
|
|
2340
|
+
return l(Gn, this) ?? S(Gn, this, new ResizeObserver((e) => {
|
|
2320
2341
|
for (var t of e) {
|
|
2321
|
-
|
|
2322
|
-
for (var n of l(
|
|
2342
|
+
Oo.entries.set(t.target, t);
|
|
2343
|
+
for (var n of l(Et, this).get(t.target) || []) n(t);
|
|
2323
2344
|
}
|
|
2324
2345
|
}));
|
|
2325
2346
|
}
|
|
2326
|
-
|
|
2327
|
-
function
|
|
2328
|
-
return e === t || e?.[
|
|
2347
|
+
q(Lo, "entries", /* @__PURE__ */ new WeakMap());
|
|
2348
|
+
function br(e, t) {
|
|
2349
|
+
return e === t || e?.[Jt] === t;
|
|
2329
2350
|
}
|
|
2330
|
-
function
|
|
2331
|
-
var i =
|
|
2332
|
-
return
|
|
2351
|
+
function Mi(e = jr(), t, n, r) {
|
|
2352
|
+
var i = F.r, o = A;
|
|
2353
|
+
return ho(() => {
|
|
2333
2354
|
var a, f;
|
|
2334
|
-
return
|
|
2335
|
-
a = f, f = r?.() || [],
|
|
2336
|
-
|
|
2355
|
+
return Yr(() => {
|
|
2356
|
+
a = f, f = r?.() || [], xt(() => {
|
|
2357
|
+
br(n(...f), e) || (t(e, ...f), a && br(n(...a), e) && t(null, ...a));
|
|
2337
2358
|
});
|
|
2338
2359
|
}), () => {
|
|
2339
2360
|
let c = o;
|
|
2340
2361
|
for (; c !== i && c.parent !== null && c.parent.f & 33554432; ) c = c.parent;
|
|
2341
|
-
const
|
|
2342
|
-
f &&
|
|
2343
|
-
},
|
|
2362
|
+
const p = () => {
|
|
2363
|
+
f && br(n(...f), e) && t(null, ...f);
|
|
2364
|
+
}, _ = c.teardown;
|
|
2344
2365
|
c.teardown = () => {
|
|
2345
|
-
|
|
2366
|
+
p(), _?.();
|
|
2346
2367
|
};
|
|
2347
2368
|
};
|
|
2348
2369
|
}), e;
|
|
2349
2370
|
}
|
|
2350
|
-
var
|
|
2371
|
+
var Mn = !1;
|
|
2351
2372
|
function tl(e) {
|
|
2352
|
-
var t =
|
|
2373
|
+
var t = Mn;
|
|
2353
2374
|
try {
|
|
2354
|
-
return
|
|
2375
|
+
return Mn = !1, [e(), Mn];
|
|
2355
2376
|
} finally {
|
|
2356
|
-
|
|
2377
|
+
Mn = t;
|
|
2357
2378
|
}
|
|
2358
2379
|
}
|
|
2359
|
-
function
|
|
2360
|
-
var i = !
|
|
2380
|
+
function Ri(e, t, n, r) {
|
|
2381
|
+
var i = !Kn || (n & 2) !== 0, o = (n & 8) !== 0, a = (n & 16) !== 0, f = r, c = !0, p = void 0, _ = () => a && i ? (p ?? (p = /* @__PURE__ */ on(r)), s(p)) : (c && (c = !1, f = a ? xt(r) : r), f);
|
|
2361
2382
|
let u;
|
|
2362
2383
|
if (o) {
|
|
2363
|
-
var d =
|
|
2364
|
-
u =
|
|
2384
|
+
var d = Jt in e || Wi in e;
|
|
2385
|
+
u = ft(e, t)?.set ?? (d && t in e ? (T) => e[t] = T : void 0);
|
|
2365
2386
|
}
|
|
2366
2387
|
var h, b = !1;
|
|
2367
|
-
o ? [h, b] = tl(() => e[t]) : h = e[t], h === void 0 && r !== void 0 && (h =
|
|
2368
|
-
var
|
|
2369
|
-
if (i ?
|
|
2388
|
+
o ? [h, b] = tl(() => e[t]) : h = e[t], h === void 0 && r !== void 0 && (h = _(), u && (i && ja(t), u(h)));
|
|
2389
|
+
var w;
|
|
2390
|
+
if (i ? w = () => {
|
|
2370
2391
|
var T = e[t];
|
|
2371
|
-
return T === void 0 ?
|
|
2372
|
-
} :
|
|
2392
|
+
return T === void 0 ? _() : (c = !0, T);
|
|
2393
|
+
} : w = () => {
|
|
2373
2394
|
var T = e[t];
|
|
2374
2395
|
return T !== void 0 && (f = void 0), T === void 0 ? f : T;
|
|
2375
|
-
}, i && (n & 4) === 0) return
|
|
2396
|
+
}, i && (n & 4) === 0) return w;
|
|
2376
2397
|
if (u) {
|
|
2377
2398
|
var g = e.$$legacy;
|
|
2378
2399
|
return (function(T, G) {
|
|
2379
|
-
return arguments.length > 0 ? ((!i || !G || g || b) && u(G ?
|
|
2400
|
+
return arguments.length > 0 ? ((!i || !G || g || b) && u(G ? w() : T), T) : w();
|
|
2380
2401
|
});
|
|
2381
2402
|
}
|
|
2382
|
-
var
|
|
2383
|
-
o && s(
|
|
2384
|
-
var k =
|
|
2403
|
+
var y = !1, P = ((n & 1) !== 0 ? on : Vr)(() => (y = !1, w()));
|
|
2404
|
+
o && s(P);
|
|
2405
|
+
var k = A;
|
|
2385
2406
|
return (function(T, G) {
|
|
2386
2407
|
if (arguments.length > 0) {
|
|
2387
|
-
const
|
|
2388
|
-
return L(
|
|
2408
|
+
const H = G ? s(P) : i && o ? st(T) : T;
|
|
2409
|
+
return L(P, H), y = !0, f !== void 0 && (f = H), T;
|
|
2389
2410
|
}
|
|
2390
|
-
return
|
|
2411
|
+
return Fe && y || (k.f & 16384) !== 0 ? P.v : s(P);
|
|
2391
2412
|
});
|
|
2392
2413
|
}
|
|
2393
2414
|
function nl(e) {
|
|
2394
2415
|
return new rl(e);
|
|
2395
2416
|
}
|
|
2396
|
-
var
|
|
2417
|
+
var nt = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), rl = class {
|
|
2397
2418
|
constructor(e) {
|
|
2398
|
-
|
|
2419
|
+
E(this, nt, void 0), E(this, Me, void 0);
|
|
2399
2420
|
var t = /* @__PURE__ */ new Map(), n = (i, o) => {
|
|
2400
|
-
var a = /* @__PURE__ */
|
|
2421
|
+
var a = /* @__PURE__ */ io(o, !1, !1);
|
|
2401
2422
|
return t.set(i, a), a;
|
|
2402
2423
|
};
|
|
2403
2424
|
const r = new Proxy({
|
|
@@ -2408,13 +2429,13 @@ var tt = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), rl =
|
|
|
2408
2429
|
return s(t.get(o) ?? n(o, Reflect.get(i, o)));
|
|
2409
2430
|
},
|
|
2410
2431
|
has(i, o) {
|
|
2411
|
-
return o ===
|
|
2432
|
+
return o === Wi ? !0 : (s(t.get(o) ?? n(o, Reflect.get(i, o))), Reflect.has(i, o));
|
|
2412
2433
|
},
|
|
2413
2434
|
set(i, o, a) {
|
|
2414
2435
|
return L(t.get(o) ?? n(o, a), a), Reflect.set(i, o, a);
|
|
2415
2436
|
}
|
|
2416
2437
|
});
|
|
2417
|
-
|
|
2438
|
+
S(Me, this, (e.hydrate ? qs : Ro)(e.component, {
|
|
2418
2439
|
target: e.target,
|
|
2419
2440
|
anchor: e.anchor,
|
|
2420
2441
|
props: r,
|
|
@@ -2422,9 +2443,9 @@ var tt = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), rl =
|
|
|
2422
2443
|
intro: e.intro ?? !1,
|
|
2423
2444
|
recover: e.recover,
|
|
2424
2445
|
transformError: e.transformError
|
|
2425
|
-
})), !
|
|
2446
|
+
})), !Be && (!e?.props?.$$host || e.sync === !1) && sn(), S(nt, this, r.$$events);
|
|
2426
2447
|
for (const i of Object.keys(l(Me, this)))
|
|
2427
|
-
i === "$set" || i === "$destroy" || i === "$on" ||
|
|
2448
|
+
i === "$set" || i === "$destroy" || i === "$on" || nn(this, i, {
|
|
2428
2449
|
get() {
|
|
2429
2450
|
return l(Me, this)[i];
|
|
2430
2451
|
},
|
|
@@ -2443,19 +2464,19 @@ var tt = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), rl =
|
|
|
2443
2464
|
l(Me, this).$set(e);
|
|
2444
2465
|
}
|
|
2445
2466
|
$on(e, t) {
|
|
2446
|
-
l(
|
|
2467
|
+
l(nt, this)[e] = l(nt, this)[e] || [];
|
|
2447
2468
|
const n = (...r) => t.call(this, ...r);
|
|
2448
|
-
return l(
|
|
2449
|
-
l(
|
|
2469
|
+
return l(nt, this)[e].push(n), () => {
|
|
2470
|
+
l(nt, this)[e] = l(nt, this)[e].filter((r) => r !== n);
|
|
2450
2471
|
};
|
|
2451
2472
|
}
|
|
2452
2473
|
$destroy() {
|
|
2453
2474
|
l(Me, this).$destroy();
|
|
2454
2475
|
}
|
|
2455
|
-
},
|
|
2456
|
-
typeof HTMLElement == "function" && (
|
|
2476
|
+
}, No;
|
|
2477
|
+
typeof HTMLElement == "function" && (No = class extends HTMLElement {
|
|
2457
2478
|
constructor(e, t, n) {
|
|
2458
|
-
super(),
|
|
2479
|
+
super(), q(this, "$$ctor", void 0), q(this, "$$s", void 0), q(this, "$$c", void 0), q(this, "$$cn", !1), q(this, "$$d", {}), q(this, "$$r", !1), q(this, "$$p_d", {}), q(this, "$$l", {}), q(this, "$$l_u", /* @__PURE__ */ new Map()), q(this, "$$me", void 0), q(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, n && (this.$$shadowRoot = this.attachShadow(n));
|
|
2459
2480
|
}
|
|
2460
2481
|
addEventListener(e, t, n) {
|
|
2461
2482
|
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
@@ -2474,7 +2495,7 @@ typeof HTMLElement == "function" && (Lo = class extends HTMLElement {
|
|
|
2474
2495
|
if (this.$$cn = !0, !this.$$c) {
|
|
2475
2496
|
let e = function(r) {
|
|
2476
2497
|
return (i) => {
|
|
2477
|
-
const o =
|
|
2498
|
+
const o = Zn("slot");
|
|
2478
2499
|
r !== "default" && (o.name = r), he(i, o);
|
|
2479
2500
|
};
|
|
2480
2501
|
};
|
|
@@ -2483,7 +2504,7 @@ typeof HTMLElement == "function" && (Lo = class extends HTMLElement {
|
|
|
2483
2504
|
for (const r of this.$$s) r in n && (r === "default" && !this.$$d.children ? (this.$$d.children = e(r), t.default = !0) : t[r] = e(r));
|
|
2484
2505
|
for (const r of this.attributes) {
|
|
2485
2506
|
const i = this.$$g_p(r.name);
|
|
2486
|
-
i in this.$$d || (this.$$d[i] =
|
|
2507
|
+
i in this.$$d || (this.$$d[i] = Ln(i, r.value, this.$$p_d, "toProp"));
|
|
2487
2508
|
}
|
|
2488
2509
|
for (const r in this.$$p_d) !(r in this.$$d) && this[r] !== void 0 && (this.$$d[r] = this[r], delete this[r]);
|
|
2489
2510
|
this.$$c = nl({
|
|
@@ -2495,12 +2516,12 @@ typeof HTMLElement == "function" && (Lo = class extends HTMLElement {
|
|
|
2495
2516
|
$$host: this
|
|
2496
2517
|
}
|
|
2497
2518
|
}), this.$$me = hs(() => {
|
|
2498
|
-
|
|
2519
|
+
Yr(() => {
|
|
2499
2520
|
this.$$r = !0;
|
|
2500
|
-
for (const r of
|
|
2521
|
+
for (const r of Nn(this.$$c)) {
|
|
2501
2522
|
if (!this.$$p_d[r]?.reflect) continue;
|
|
2502
2523
|
this.$$d[r] = this.$$c[r];
|
|
2503
|
-
const i =
|
|
2524
|
+
const i = Ln(r, this.$$d[r], this.$$p_d, "toAttribute");
|
|
2504
2525
|
i == null ? this.removeAttribute(this.$$p_d[r].attribute || r) : this.setAttribute(this.$$p_d[r].attribute || r, i);
|
|
2505
2526
|
}
|
|
2506
2527
|
this.$$r = !1;
|
|
@@ -2514,7 +2535,7 @@ typeof HTMLElement == "function" && (Lo = class extends HTMLElement {
|
|
|
2514
2535
|
}
|
|
2515
2536
|
}
|
|
2516
2537
|
attributeChangedCallback(e, t, n) {
|
|
2517
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
2538
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ln(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
2518
2539
|
}
|
|
2519
2540
|
disconnectedCallback() {
|
|
2520
2541
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -2522,10 +2543,10 @@ typeof HTMLElement == "function" && (Lo = class extends HTMLElement {
|
|
|
2522
2543
|
});
|
|
2523
2544
|
}
|
|
2524
2545
|
$$g_p(e) {
|
|
2525
|
-
return
|
|
2546
|
+
return Nn(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
|
|
2526
2547
|
}
|
|
2527
2548
|
});
|
|
2528
|
-
function
|
|
2549
|
+
function Ln(e, t, n, r) {
|
|
2529
2550
|
const i = n[e]?.type;
|
|
2530
2551
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e]) return t;
|
|
2531
2552
|
if (r === "toAttribute") switch (i) {
|
|
@@ -2558,27 +2579,27 @@ function il(e) {
|
|
|
2558
2579
|
}), t;
|
|
2559
2580
|
}
|
|
2560
2581
|
function ol(e, t, n, r, i, o) {
|
|
2561
|
-
let a = class extends
|
|
2582
|
+
let a = class extends No {
|
|
2562
2583
|
constructor() {
|
|
2563
2584
|
super(e, n, i), this.$$p_d = t;
|
|
2564
2585
|
}
|
|
2565
2586
|
static get observedAttributes() {
|
|
2566
|
-
return
|
|
2587
|
+
return Nn(t).map((f) => (t[f].attribute || f).toLowerCase());
|
|
2567
2588
|
}
|
|
2568
2589
|
};
|
|
2569
|
-
return
|
|
2570
|
-
|
|
2590
|
+
return Nn(t).forEach((f) => {
|
|
2591
|
+
nn(a.prototype, f, {
|
|
2571
2592
|
get() {
|
|
2572
2593
|
return this.$$c && f in this.$$c ? this.$$c[f] : this.$$d[f];
|
|
2573
2594
|
},
|
|
2574
2595
|
set(c) {
|
|
2575
|
-
c =
|
|
2576
|
-
var
|
|
2577
|
-
|
|
2596
|
+
c = Ln(f, c, t), this.$$d[f] = c;
|
|
2597
|
+
var p = this.$$c;
|
|
2598
|
+
p && (ft(p, f)?.get ? p[f] = c : p.$set({ [f]: c }));
|
|
2578
2599
|
}
|
|
2579
2600
|
});
|
|
2580
2601
|
}), r.forEach((f) => {
|
|
2581
|
-
|
|
2602
|
+
nn(a.prototype, f, { get() {
|
|
2582
2603
|
return this.$$c?.[f];
|
|
2583
2604
|
} });
|
|
2584
2605
|
}), o && (a = o(a)), e.element = a, a;
|
|
@@ -2588,10 +2609,10 @@ function al(e) {
|
|
|
2588
2609
|
}
|
|
2589
2610
|
function sl({ key: e, activeIndex: t, count: n, direction: r }) {
|
|
2590
2611
|
if (n <= 0) return null;
|
|
2591
|
-
const i =
|
|
2612
|
+
const i = Nr(t, n), o = r === "rtl" ? "ArrowLeft" : "ArrowRight", a = r === "rtl" ? "ArrowRight" : "ArrowLeft";
|
|
2592
2613
|
return e === o ? (i + 1) % n : e === a ? (i - 1 + n) % n : e === "Home" ? 0 : e === "End" ? n - 1 : null;
|
|
2593
2614
|
}
|
|
2594
|
-
function
|
|
2615
|
+
function Nr(e, t) {
|
|
2595
2616
|
return t <= 0 || !Number.isFinite(e) || e < 0 ? 0 : Math.min(Math.trunc(e), t - 1);
|
|
2596
2617
|
}
|
|
2597
2618
|
function ll(e, t) {
|
|
@@ -2609,12 +2630,12 @@ function cl(e, t, n = {
|
|
|
2609
2630
|
}, r = 8) {
|
|
2610
2631
|
const o = e.left + (e.right - e.left) / 2 - n.width / 2, a = e.top - r - n.height, f = a < 4 && e.bottom + r + n.height <= t.height, c = f ? e.bottom + r : a;
|
|
2611
2632
|
return {
|
|
2612
|
-
x:
|
|
2613
|
-
y:
|
|
2633
|
+
x: Ci(o, n.width, t.width, 4),
|
|
2634
|
+
y: Ci(c, n.height, t.height, 4),
|
|
2614
2635
|
below: f
|
|
2615
2636
|
};
|
|
2616
2637
|
}
|
|
2617
|
-
function
|
|
2638
|
+
function Ci(e, t, n, r) {
|
|
2618
2639
|
const i = n - t - r;
|
|
2619
2640
|
return i <= r ? r : Math.min(Math.max(e, r), i);
|
|
2620
2641
|
}
|
|
@@ -2660,7 +2681,7 @@ var pl = (e) => {
|
|
|
2660
2681
|
const t = [];
|
|
2661
2682
|
for (const n of e) {
|
|
2662
2683
|
let r = n?.getRootNode?.();
|
|
2663
|
-
for (;
|
|
2684
|
+
for (; Pr(r); )
|
|
2664
2685
|
t.includes(r) || t.push(r), r = r.host.getRootNode?.();
|
|
2665
2686
|
}
|
|
2666
2687
|
return t;
|
|
@@ -2685,9 +2706,9 @@ var pl = (e) => {
|
|
|
2685
2706
|
const f = t.getRootNode();
|
|
2686
2707
|
if (r.getRootNode() === f)
|
|
2687
2708
|
return a.setEnd(r, i), a;
|
|
2688
|
-
const c =
|
|
2709
|
+
const c = ca(r, f);
|
|
2689
2710
|
if (c) a.setEndBefore(c);
|
|
2690
|
-
else if (
|
|
2711
|
+
else if (Pr(f)) a.setEnd(f, f.childNodes.length);
|
|
2691
2712
|
else return null;
|
|
2692
2713
|
return a;
|
|
2693
2714
|
} catch {
|
|
@@ -2708,11 +2729,11 @@ var pl = (e) => {
|
|
|
2708
2729
|
range: r,
|
|
2709
2730
|
text: n.startContainer.getRootNode() === n.endContainer.getRootNode() ? e.toString() : r.toString()
|
|
2710
2731
|
};
|
|
2711
|
-
},
|
|
2712
|
-
const t = e.startContainer, n =
|
|
2732
|
+
}, Oi = (e) => {
|
|
2733
|
+
const t = e.startContainer, n = la(t);
|
|
2713
2734
|
if (!n) return null;
|
|
2714
|
-
const r =
|
|
2715
|
-
return !
|
|
2735
|
+
const r = ua(n, t);
|
|
2736
|
+
return !wr(r, t) || !wr(r, e.endContainer) ? null : r;
|
|
2716
2737
|
}, ml = /* @__PURE__ */ Ie('<button class="pie-tool-annotation-toolbar__highlight-swatch svelte-1qnnvrt"><span class="pie-sr-only svelte-1qnnvrt"> </span></button>'), yl = /* @__PURE__ */ Ie('<div class="divider divider-horizontal mx-0 w-px svelte-1qnnvrt"></div> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-1qnnvrt"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-1qnnvrt"><path d="M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z"></path></svg></button>', 1), kl = /* @__PURE__ */ Ie('<span class="pie-tool-annotation-toolbar__action-icon svelte-1qnnvrt" aria-hidden="true"></span>'), $l = /* @__PURE__ */ Ie("<button><!></button>"), Sl = /* @__PURE__ */ Ie('<div class="divider divider-horizontal mx-0 w-px svelte-1qnnvrt"></div> <!>', 1), El = /* @__PURE__ */ Ie('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--warning svelte-1qnnvrt"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-1qnnvrt"><path d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"></path></svg></button>'), Tl = /* @__PURE__ */ Ie('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--danger svelte-1qnnvrt"> </button>'), Al = /* @__PURE__ */ Ie('<div class="divider divider-horizontal mx-0 w-px svelte-1qnnvrt"></div> <!> <!>', 1), xl = /* @__PURE__ */ Ie('<div class="pie-tool-annotation-toolbar notranslate svelte-1qnnvrt" role="toolbar" translate="no" tabindex="-1"><!> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-1qnnvrt"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-1qnnvrt"><path d="M5,21H19V19H5V21M12,17A6,6 0 0,0 18,11V3H15.5V11A3.5,3.5 0 0,1 12,14.5A3.5,3.5 0 0,1 8.5,11V3H6V11A6,6 0 0,0 12,17Z"></path></svg></button> <!> <!> <!></div>'), Ml = /* @__PURE__ */ Ie('<div style="display: none;" aria-hidden="true"></div> <!> <div role="status" aria-live="polite" aria-atomic="true" class="pie-sr-only svelte-1qnnvrt"> </div>', 1), Rl = {
|
|
2717
2738
|
hash: "svelte-1qnnvrt",
|
|
2718
2739
|
code: `.pie-tool-annotation-toolbar.svelte-1qnnvrt {position:fixed;z-index:4200;display:flex;gap:0.25rem;padding:0.5rem;border-radius:0.5rem;background:var(--pie-background, #fff);color:var(--pie-text, #111827);
|
|
@@ -2754,8 +2775,8 @@ var pl = (e) => {
|
|
|
2754
2775
|
ones — a strip of mismatched buttons reads as broken. */.pie-tool-annotation-toolbar__action-icon.svelte-1qnnvrt {display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;}.pie-tool-annotation-toolbar__action-icon.svelte-1qnnvrt svg {width:100%;height:100%;}`
|
|
2755
2776
|
};
|
|
2756
2777
|
function Cl(e, t) {
|
|
2757
|
-
|
|
2758
|
-
let n =
|
|
2778
|
+
Hi(t, !0), zs(e, Rl);
|
|
2779
|
+
let n = Ri(t, "enabled", 7, !0), r = Ri(t, "selectionActions", 7, null);
|
|
2759
2780
|
const i = typeof window < "u", o = "annotationToolbar", a = 2e3, f = [
|
|
2760
2781
|
"button",
|
|
2761
2782
|
"input",
|
|
@@ -2767,30 +2788,30 @@ function Cl(e, t) {
|
|
|
2767
2788
|
'[role="button"]',
|
|
2768
2789
|
'[role="textbox"]'
|
|
2769
2790
|
], c = 30;
|
|
2770
|
-
let
|
|
2771
|
-
const u = /* @__PURE__ */ de(() =>
|
|
2791
|
+
let p = /* @__PURE__ */ V(null), _ = /* @__PURE__ */ V(null);
|
|
2792
|
+
const u = /* @__PURE__ */ de(() => da(s(_))), d = /* @__PURE__ */ de(() => s(_)?.highlightCoordinator ?? null), h = /* @__PURE__ */ de(() => s(_)?.ttsService ?? null), b = /* @__PURE__ */ de(() => s(_)?.elementToolStateStore ?? null), w = /* @__PURE__ */ de(() => [
|
|
2772
2793
|
{
|
|
2773
|
-
name:
|
|
2794
|
+
name: yt.YELLOW,
|
|
2774
2795
|
hex: "#fde995",
|
|
2775
2796
|
label: s(u).t("tools.annotationToolbar.highlightYellowA11y")
|
|
2776
2797
|
},
|
|
2777
2798
|
{
|
|
2778
|
-
name:
|
|
2799
|
+
name: yt.PINK,
|
|
2779
2800
|
hex: "#ff9fae",
|
|
2780
2801
|
label: s(u).t("tools.annotationToolbar.highlightPinkA11y")
|
|
2781
2802
|
},
|
|
2782
2803
|
{
|
|
2783
|
-
name:
|
|
2804
|
+
name: yt.BLUE,
|
|
2784
2805
|
hex: "#a7e0f6",
|
|
2785
2806
|
label: s(u).t("tools.annotationToolbar.highlightBlueA11y")
|
|
2786
2807
|
},
|
|
2787
2808
|
{
|
|
2788
|
-
name:
|
|
2809
|
+
name: yt.GREEN,
|
|
2789
2810
|
hex: "#a6e1c5",
|
|
2790
2811
|
label: s(u).t("tools.annotationToolbar.highlightGreenA11y")
|
|
2791
2812
|
}
|
|
2792
2813
|
]);
|
|
2793
|
-
let g = /* @__PURE__ */
|
|
2814
|
+
let g = /* @__PURE__ */ V(null), y = /* @__PURE__ */ V(null), P = /* @__PURE__ */ V(null), k = /* @__PURE__ */ V(st({
|
|
2794
2815
|
isVisible: !1,
|
|
2795
2816
|
selectedText: "",
|
|
2796
2817
|
selectedRange: null,
|
|
@@ -2799,102 +2820,102 @@ function Cl(e, t) {
|
|
|
2799
2820
|
y: 0,
|
|
2800
2821
|
below: !1
|
|
2801
2822
|
}
|
|
2802
|
-
})), T = /* @__PURE__ */
|
|
2803
|
-
function
|
|
2804
|
-
|
|
2805
|
-
L(
|
|
2806
|
-
},
|
|
2823
|
+
})), T = /* @__PURE__ */ V(!1), G = /* @__PURE__ */ V(!1), H = /* @__PURE__ */ V(""), Y = /* @__PURE__ */ V(0), Q = /* @__PURE__ */ V(null), wt = null, W = null, ze = null, Nt = null, Pt = null, Ae = /* @__PURE__ */ V(0), It = null;
|
|
2824
|
+
function qt(v, m) {
|
|
2825
|
+
ze !== null && clearTimeout(ze), L(H, v, !0), ze = setTimeout(() => {
|
|
2826
|
+
L(H, ""), ze = null;
|
|
2827
|
+
}, m);
|
|
2807
2828
|
}
|
|
2808
|
-
function
|
|
2829
|
+
function Qn(v) {
|
|
2809
2830
|
return v.length > c ? v.substring(0, c) + "..." : v;
|
|
2810
2831
|
}
|
|
2811
|
-
let
|
|
2812
|
-
function
|
|
2813
|
-
const v = s(
|
|
2814
|
-
return s(
|
|
2832
|
+
let vn = /* @__PURE__ */ de(() => (s(k).isVisible, vl(r()))), er = /* @__PURE__ */ de(() => (s(k).isVisible, _l(s(h), s(_)?.toolkitCoordinator))), _n = /* @__PURE__ */ de(() => s(Y) > 0), pn = /* @__PURE__ */ de(() => s(Q) !== null), gn = /* @__PURE__ */ de(() => s(P)?.scopeElement || s(y)?.scopeElement || null);
|
|
2833
|
+
function tr() {
|
|
2834
|
+
const v = s(p)?.ownerDocument;
|
|
2835
|
+
return s(gn) || v?.documentElement || document.documentElement;
|
|
2815
2836
|
}
|
|
2816
|
-
let
|
|
2817
|
-
const v = s(
|
|
2818
|
-
return !s(b) || !v || !
|
|
2837
|
+
let nr = /* @__PURE__ */ de(() => {
|
|
2838
|
+
const v = s(_)?.assessmentId, m = s(_)?.sectionId;
|
|
2839
|
+
return !s(b) || !v || !m ? null : s(b).getGlobalElementId({
|
|
2819
2840
|
assessmentId: v,
|
|
2820
|
-
sectionId:
|
|
2821
|
-
attemptId: s(
|
|
2822
|
-
itemId: s(
|
|
2841
|
+
sectionId: m,
|
|
2842
|
+
attemptId: s(_)?.attemptId ?? "",
|
|
2843
|
+
itemId: s(y)?.canonicalItemId || s(y)?.itemId || "",
|
|
2823
2844
|
elementId: ""
|
|
2824
2845
|
});
|
|
2825
2846
|
});
|
|
2826
|
-
function
|
|
2847
|
+
function Po(v) {
|
|
2827
2848
|
if (!s(d)) return null;
|
|
2828
|
-
const
|
|
2829
|
-
for (const O of
|
|
2849
|
+
const m = s(d).getAnnotations();
|
|
2850
|
+
for (const O of m) {
|
|
2830
2851
|
if (v.startContainer.getRootNode() !== O.range.startContainer.getRootNode()) continue;
|
|
2831
|
-
const
|
|
2832
|
-
if (
|
|
2852
|
+
const I = v.compareBoundaryPoints(Range.START_TO_START, O.range), oe = v.compareBoundaryPoints(Range.END_TO_END, O.range), Wt = v.compareBoundaryPoints(Range.START_TO_END, O.range), kn = v.compareBoundaryPoints(Range.END_TO_START, O.range);
|
|
2853
|
+
if (I >= 0 && oe <= 0 || I <= 0 && oe >= 0 || Wt > 0 && kn < 0) return O.id;
|
|
2833
2854
|
}
|
|
2834
2855
|
return null;
|
|
2835
2856
|
}
|
|
2836
|
-
function
|
|
2837
|
-
const
|
|
2838
|
-
return
|
|
2857
|
+
function Io(v) {
|
|
2858
|
+
const m = Pr(v) ? v.host : v;
|
|
2859
|
+
return m.nodeType !== Node.ELEMENT_NODE && m.nodeType !== Node.TEXT_NODE ? !1 : !f.some((O) => {
|
|
2839
2860
|
try {
|
|
2840
|
-
return
|
|
2861
|
+
return ia(m, O) !== null;
|
|
2841
2862
|
} catch {
|
|
2842
2863
|
return !1;
|
|
2843
2864
|
}
|
|
2844
2865
|
});
|
|
2845
2866
|
}
|
|
2846
|
-
function
|
|
2847
|
-
return s(
|
|
2867
|
+
function qo(v) {
|
|
2868
|
+
return s(gn) ? wr(s(gn), v.commonAncestorContainer) : !0;
|
|
2848
2869
|
}
|
|
2849
|
-
function
|
|
2850
|
-
if (!(!s(d) || !s(b) || !s(
|
|
2870
|
+
function rr() {
|
|
2871
|
+
if (!(!s(d) || !s(b) || !s(nr)))
|
|
2851
2872
|
try {
|
|
2852
|
-
const v = s(d).exportAnnotations(
|
|
2853
|
-
s(b).setState(s(
|
|
2873
|
+
const v = s(d).exportAnnotations(tr());
|
|
2874
|
+
s(b).setState(s(nr), o, v);
|
|
2854
2875
|
} catch (v) {
|
|
2855
|
-
|
|
2876
|
+
lr(s(_)?.toolkitCoordinator, "annotationToolbar", "tool-state-save", v);
|
|
2856
2877
|
}
|
|
2857
2878
|
}
|
|
2858
|
-
function
|
|
2879
|
+
function Wo(v) {
|
|
2859
2880
|
if (!(!s(d) || !s(b)))
|
|
2860
2881
|
try {
|
|
2861
|
-
const
|
|
2862
|
-
s(d).clearAnnotations(), Array.isArray(
|
|
2863
|
-
} catch (
|
|
2864
|
-
|
|
2882
|
+
const m = s(b).getState(v, o);
|
|
2883
|
+
s(d).clearAnnotations(), Array.isArray(m) && s(d).importAnnotations(m, tr()), L(Y, s(d).getAnnotations().length, !0);
|
|
2884
|
+
} catch (m) {
|
|
2885
|
+
lr(s(_)?.toolkitCoordinator, "annotationToolbar", "tool-state-load", m);
|
|
2865
2886
|
}
|
|
2866
2887
|
}
|
|
2867
|
-
function
|
|
2868
|
-
!i ||
|
|
2869
|
-
|
|
2888
|
+
function ir() {
|
|
2889
|
+
!i || W !== null || (W = (typeof requestAnimationFrame == "function" ? requestAnimationFrame : (v) => setTimeout(v, 16))(() => {
|
|
2890
|
+
W = null, Qr();
|
|
2870
2891
|
}));
|
|
2871
2892
|
}
|
|
2872
|
-
function
|
|
2873
|
-
if (!n() || !i || ul(
|
|
2874
|
-
const
|
|
2875
|
-
if (!O) return
|
|
2876
|
-
const { range:
|
|
2877
|
-
if (!
|
|
2878
|
-
if (
|
|
2879
|
-
L(Q,
|
|
2880
|
-
const
|
|
2881
|
-
s(k).isVisible = !0, s(k).selectedText =
|
|
2893
|
+
function Qr(v = {}) {
|
|
2894
|
+
if (!n() || !i || ul(wt, Date.now())) return;
|
|
2895
|
+
const m = window.getSelection(), O = m ? wl(m) : null;
|
|
2896
|
+
if (!O) return Qe();
|
|
2897
|
+
const { range: I } = O, oe = O.text.trim();
|
|
2898
|
+
if (!oe || !qo(I) || !Oi(I) || !Io(I.commonAncestorContainer)) return Qe();
|
|
2899
|
+
if (Pt !== null && (v.force || Pt !== oe) && (Pt = null), Pt === oe) return;
|
|
2900
|
+
L(Q, Po(I), !0);
|
|
2901
|
+
const Wt = s(k).isVisible;
|
|
2902
|
+
s(k).isVisible = !0, s(k).selectedText = oe, s(k).selectedRange = I.cloneRange(), or(I), Nt !== oe && (Nt = oe, qt(`Annotation toolbar available for "${Qn(oe)}". Press Shift+F10 for annotation tools.`, 4e3)), Wt || (L(G, !0), setTimeout(() => {
|
|
2882
2903
|
L(G, !1);
|
|
2883
2904
|
}, 100));
|
|
2884
2905
|
}
|
|
2885
|
-
function
|
|
2906
|
+
function or(v = s(k).selectedRange) {
|
|
2886
2907
|
if (!v) return;
|
|
2887
|
-
const
|
|
2908
|
+
const m = v.getBoundingClientRect(), O = {
|
|
2888
2909
|
width: window.innerWidth || 0,
|
|
2889
2910
|
height: window.innerHeight || 0
|
|
2890
2911
|
};
|
|
2891
|
-
if (ll(
|
|
2912
|
+
if (ll(m, O)) {
|
|
2892
2913
|
s(k).isVisible = !1;
|
|
2893
2914
|
return;
|
|
2894
2915
|
}
|
|
2895
|
-
s(k).isVisible = !0, s(k).toolbarPosition = cl(
|
|
2916
|
+
s(k).isVisible = !0, s(k).toolbarPosition = cl(m, O, Do());
|
|
2896
2917
|
}
|
|
2897
|
-
function
|
|
2918
|
+
function Do() {
|
|
2898
2919
|
return s(g) ? {
|
|
2899
2920
|
width: s(g).offsetWidth,
|
|
2900
2921
|
height: s(g).offsetHeight
|
|
@@ -2903,51 +2924,51 @@ function Cl(e, t) {
|
|
|
2903
2924
|
height: 0
|
|
2904
2925
|
};
|
|
2905
2926
|
}
|
|
2906
|
-
function
|
|
2907
|
-
!s(k).isVisible && !s(k).selectedRange ||
|
|
2927
|
+
function bn() {
|
|
2928
|
+
!s(k).isVisible && !s(k).selectedRange || or();
|
|
2908
2929
|
}
|
|
2909
|
-
function
|
|
2910
|
-
|
|
2930
|
+
function ei() {
|
|
2931
|
+
wt = Date.now();
|
|
2911
2932
|
}
|
|
2912
|
-
function
|
|
2913
|
-
|
|
2933
|
+
function wn() {
|
|
2934
|
+
wt = null, ir();
|
|
2914
2935
|
}
|
|
2915
|
-
function
|
|
2916
|
-
|
|
2936
|
+
function mn() {
|
|
2937
|
+
Pt = s(k).selectedText || null, Qe();
|
|
2917
2938
|
}
|
|
2918
|
-
function
|
|
2919
|
-
s(T) && s(h) && (s(h).stop(), L(T, !1)),
|
|
2939
|
+
function Qe() {
|
|
2940
|
+
s(T) && s(h) && (s(h).stop(), L(T, !1)), jo(), s(k).isVisible = !1, s(k).selectedText = "", s(k).selectedRange = null, Nt = null, L(Ae, 0);
|
|
2920
2941
|
}
|
|
2921
|
-
function
|
|
2922
|
-
const v =
|
|
2923
|
-
|
|
2942
|
+
function jo() {
|
|
2943
|
+
const v = It;
|
|
2944
|
+
It = null, !(!v || !ti()) && typeof v.focus == "function" && v.isConnected && v.focus({ preventScroll: !0 });
|
|
2924
2945
|
}
|
|
2925
|
-
function
|
|
2946
|
+
function ti() {
|
|
2926
2947
|
if (!s(g) || !i) return !1;
|
|
2927
2948
|
const v = s(g).getRootNode().activeElement;
|
|
2928
2949
|
return !!v && s(g).contains(v);
|
|
2929
2950
|
}
|
|
2930
|
-
function
|
|
2951
|
+
function ar() {
|
|
2931
2952
|
return s(g) ? Array.from(s(g).querySelectorAll("button:not([disabled])")) : [];
|
|
2932
2953
|
}
|
|
2933
|
-
function
|
|
2934
|
-
const v =
|
|
2954
|
+
function Ho() {
|
|
2955
|
+
const v = ar();
|
|
2935
2956
|
if (v.length) {
|
|
2936
|
-
if (!
|
|
2937
|
-
const
|
|
2938
|
-
|
|
2957
|
+
if (!ti() && i) {
|
|
2958
|
+
const m = s(g)?.getRootNode()?.activeElement;
|
|
2959
|
+
It = m instanceof HTMLElement ? m : null;
|
|
2939
2960
|
}
|
|
2940
|
-
L(Ae,
|
|
2961
|
+
L(Ae, Nr(s(Ae), v.length), !0), v[s(Ae)]?.focus();
|
|
2941
2962
|
}
|
|
2942
2963
|
}
|
|
2943
|
-
function
|
|
2964
|
+
function ni(v) {
|
|
2944
2965
|
if (!s(k).selectedRange || !s(d)) return;
|
|
2945
|
-
const
|
|
2946
|
-
s(d).addAnnotation(s(k).selectedRange, v), L(Y, s(d).getAnnotations().length, !0),
|
|
2947
|
-
const O = v ===
|
|
2948
|
-
|
|
2966
|
+
const m = s(k).selectedText;
|
|
2967
|
+
s(d).addAnnotation(s(k).selectedRange, v), L(Y, s(d).getAnnotations().length, !0), rr();
|
|
2968
|
+
const O = v === yt.UNDERLINE ? "underlined" : `highlighted in ${v}`;
|
|
2969
|
+
qt(`"${Qn(m)}" ${O}`, 3e3), mn();
|
|
2949
2970
|
}
|
|
2950
|
-
function
|
|
2971
|
+
function Vo() {
|
|
2951
2972
|
if (!s(Q) || !s(d)) {
|
|
2952
2973
|
console.warn("[AnnotationToolbar] No overlapping annotation to remove");
|
|
2953
2974
|
return;
|
|
@@ -2957,208 +2978,208 @@ function Cl(e, t) {
|
|
|
2957
2978
|
console.warn("[AnnotationToolbar] Annotation not found:", s(Q));
|
|
2958
2979
|
return;
|
|
2959
2980
|
}
|
|
2960
|
-
const
|
|
2961
|
-
s(d).removeAnnotation(s(Q)), L(Y, s(d).getAnnotations().length, !0),
|
|
2981
|
+
const m = v.range.toString();
|
|
2982
|
+
s(d).removeAnnotation(s(Q)), L(Y, s(d).getAnnotations().length, !0), rr(), qt(`Removed annotation from "${Qn(m)}"`, 3e3), mn();
|
|
2962
2983
|
}
|
|
2963
|
-
function
|
|
2984
|
+
function Fo() {
|
|
2964
2985
|
const v = s(Y);
|
|
2965
|
-
s(d)?.clearAnnotations(), L(Y, 0),
|
|
2966
|
-
}
|
|
2967
|
-
function Fo(v) {
|
|
2968
|
-
return v.iconSvg ? da(v.iconSvg) : "";
|
|
2986
|
+
s(d)?.clearAnnotations(), L(Y, 0), rr(), qt(`${v} annotation${v === 1 ? "" : "s"} cleared`, 3e3), mn();
|
|
2969
2987
|
}
|
|
2970
2988
|
function Bo(v) {
|
|
2971
|
-
|
|
2989
|
+
return v.iconSvg ? ha(v.iconSvg) : "";
|
|
2990
|
+
}
|
|
2991
|
+
function zo(v) {
|
|
2992
|
+
const m = s(k).selectedText, O = s(k).selectedRange;
|
|
2972
2993
|
try {
|
|
2973
2994
|
v.run({
|
|
2974
|
-
text:
|
|
2995
|
+
text: m,
|
|
2975
2996
|
range: O
|
|
2976
2997
|
});
|
|
2977
|
-
} catch (
|
|
2978
|
-
console.error(`[AnnotationToolbar] Selection action "${v.id}" threw:`,
|
|
2998
|
+
} catch (I) {
|
|
2999
|
+
console.error(`[AnnotationToolbar] Selection action "${v.id}" threw:`, I);
|
|
2979
3000
|
}
|
|
2980
|
-
|
|
3001
|
+
mn();
|
|
2981
3002
|
}
|
|
2982
|
-
async function
|
|
2983
|
-
if (!(s(T) || !s(k).selectedRange || !s(h) || !s(
|
|
3003
|
+
async function Uo() {
|
|
3004
|
+
if (!(s(T) || !s(k).selectedRange || !s(h) || !s(er))) {
|
|
2984
3005
|
L(T, !0);
|
|
2985
3006
|
try {
|
|
2986
3007
|
const v = s(k).selectedRange;
|
|
2987
3008
|
await s(h).speak(v, {
|
|
2988
|
-
contentRoot:
|
|
2989
|
-
language: s(
|
|
2990
|
-
catalogContext:
|
|
3009
|
+
contentRoot: Oi(v) ?? tr(),
|
|
3010
|
+
language: s(_)?.contentLanguage,
|
|
3011
|
+
catalogContext: ra(v.startContainer, s(_))
|
|
2991
3012
|
});
|
|
2992
3013
|
} catch (v) {
|
|
2993
|
-
|
|
3014
|
+
fa(v) ? qt(s(u).t("tools.textToSpeech.initFailed"), 5e3) : lr(s(_)?.toolkitCoordinator, "textToSpeech", "tool-playback", v);
|
|
2994
3015
|
} finally {
|
|
2995
3016
|
L(T, !1);
|
|
2996
3017
|
}
|
|
2997
3018
|
}
|
|
2998
3019
|
}
|
|
2999
|
-
function
|
|
3020
|
+
function ri(v) {
|
|
3000
3021
|
if (v.key === "Escape" && s(k).isVisible) {
|
|
3001
|
-
v.preventDefault(),
|
|
3022
|
+
v.preventDefault(), Qe();
|
|
3002
3023
|
return;
|
|
3003
3024
|
}
|
|
3004
|
-
al(v) && (s(k).isVisible ||
|
|
3025
|
+
al(v) && (s(k).isVisible || Qr({ force: !0 }), s(k).isVisible && (v.preventDefault(), ms().then(() => Ho())));
|
|
3005
3026
|
}
|
|
3006
|
-
function
|
|
3027
|
+
function Go(v) {
|
|
3007
3028
|
if (v.key === "Escape") {
|
|
3008
|
-
v.preventDefault(),
|
|
3029
|
+
v.preventDefault(), Qe();
|
|
3009
3030
|
return;
|
|
3010
3031
|
}
|
|
3011
|
-
const
|
|
3032
|
+
const m = ar(), O = sl({
|
|
3012
3033
|
key: v.key,
|
|
3013
3034
|
activeIndex: s(Ae),
|
|
3014
|
-
count:
|
|
3035
|
+
count: m.length,
|
|
3015
3036
|
direction: i && s(g) && getComputedStyle(s(g)).direction === "rtl" ? "rtl" : "ltr"
|
|
3016
3037
|
});
|
|
3017
|
-
O !== null && (v.preventDefault(), L(Ae, O, !0),
|
|
3038
|
+
O !== null && (v.preventDefault(), L(Ae, O, !0), m[O]?.focus());
|
|
3018
3039
|
}
|
|
3019
|
-
function
|
|
3020
|
-
const
|
|
3021
|
-
|
|
3040
|
+
function Yo(v) {
|
|
3041
|
+
const m = v.relatedTarget;
|
|
3042
|
+
m instanceof Node && s(g)?.contains(m) || (It = null, Qe());
|
|
3022
3043
|
}
|
|
3023
|
-
function
|
|
3044
|
+
function yn(v) {
|
|
3024
3045
|
if (!s(k).isVisible || s(G) || !s(g)) return;
|
|
3025
|
-
const
|
|
3026
|
-
|
|
3046
|
+
const m = (typeof v.composedPath == "function" ? v.composedPath() : []).filter((O) => !!O);
|
|
3047
|
+
m.includes(s(g)) || m.length === 0 && s(g).contains(v.target) || (It = null, Qe());
|
|
3027
3048
|
}
|
|
3028
|
-
|
|
3049
|
+
Vt(() => {
|
|
3029
3050
|
if (!i) return;
|
|
3030
|
-
const v = s(
|
|
3051
|
+
const v = s(nr);
|
|
3031
3052
|
if (!v || !s(d)) return;
|
|
3032
|
-
const
|
|
3033
|
-
return () => clearTimeout(
|
|
3034
|
-
}),
|
|
3053
|
+
const m = setTimeout(() => xt(() => Wo(v)), a);
|
|
3054
|
+
return () => clearTimeout(m);
|
|
3055
|
+
}), Vt(() => {
|
|
3035
3056
|
if (!i) return;
|
|
3036
|
-
const v = s(
|
|
3037
|
-
return v.addEventListener("click",
|
|
3038
|
-
|
|
3057
|
+
const v = s(gn) || document;
|
|
3058
|
+
return v.addEventListener("click", yn), v.addEventListener("touchstart", yn), document.addEventListener("selectionchange", ir), v.addEventListener("pointerdown", ei), document.addEventListener("pointerup", wn), document.addEventListener("pointercancel", wn), document.addEventListener("keydown", ri), window.addEventListener("scroll", bn, !0), window.addEventListener("resize", bn), () => {
|
|
3059
|
+
ze !== null && clearTimeout(ze), W !== null && typeof cancelAnimationFrame == "function" && (cancelAnimationFrame(W), W = null), v.removeEventListener("click", yn), v.removeEventListener("touchstart", yn), document.removeEventListener("selectionchange", ir), v.removeEventListener("pointerdown", ei), document.removeEventListener("pointerup", wn), document.removeEventListener("pointercancel", wn), document.removeEventListener("keydown", ri), window.removeEventListener("scroll", bn, !0), window.removeEventListener("resize", bn);
|
|
3039
3060
|
};
|
|
3040
|
-
}),
|
|
3041
|
-
s(k).isVisible, s(g), s(
|
|
3042
|
-
!s(k).isVisible || !s(g) ||
|
|
3061
|
+
}), Vt(() => {
|
|
3062
|
+
s(k).isVisible, s(g), s(vn), s(pn), s(_n), s(er), xt(() => {
|
|
3063
|
+
!s(k).isVisible || !s(g) || or();
|
|
3043
3064
|
});
|
|
3044
|
-
}),
|
|
3045
|
-
s(k).isVisible, s(Ae), s(
|
|
3046
|
-
const v =
|
|
3065
|
+
}), Vt(() => {
|
|
3066
|
+
s(k).isVisible, s(Ae), s(pn), s(_n), s(T), s(vn), xt(() => {
|
|
3067
|
+
const v = ar();
|
|
3047
3068
|
if (v.length === 0) return;
|
|
3048
|
-
const
|
|
3049
|
-
|
|
3050
|
-
O.tabIndex =
|
|
3069
|
+
const m = Nr(s(Ae), v.length);
|
|
3070
|
+
m !== s(Ae) && L(Ae, m, !0), v.forEach((O, I) => {
|
|
3071
|
+
O.tabIndex = I === m ? 0 : -1;
|
|
3051
3072
|
});
|
|
3052
3073
|
});
|
|
3053
|
-
}),
|
|
3054
|
-
if (!s(
|
|
3055
|
-
const v =
|
|
3056
|
-
L(
|
|
3057
|
-
}),
|
|
3058
|
-
L(
|
|
3059
|
-
}), O =
|
|
3060
|
-
L(
|
|
3074
|
+
}), Vt(() => {
|
|
3075
|
+
if (!s(p)) return;
|
|
3076
|
+
const v = sa(s(p), (I) => {
|
|
3077
|
+
L(y, I, !0);
|
|
3078
|
+
}), m = oa(s(p), (I) => {
|
|
3079
|
+
L(P, I, !0);
|
|
3080
|
+
}), O = aa(s(p), (I) => {
|
|
3081
|
+
L(_, I, !0);
|
|
3061
3082
|
});
|
|
3062
3083
|
return () => {
|
|
3063
|
-
O(),
|
|
3084
|
+
O(), m(), v();
|
|
3064
3085
|
};
|
|
3065
3086
|
});
|
|
3066
|
-
var
|
|
3087
|
+
var Ko = {
|
|
3067
3088
|
get enabled() {
|
|
3068
3089
|
return n();
|
|
3069
3090
|
},
|
|
3070
3091
|
set enabled(v = !0) {
|
|
3071
|
-
n(v),
|
|
3092
|
+
n(v), sn();
|
|
3072
3093
|
},
|
|
3073
3094
|
get selectionActions() {
|
|
3074
3095
|
return r();
|
|
3075
3096
|
},
|
|
3076
3097
|
set selectionActions(v = null) {
|
|
3077
|
-
r(v),
|
|
3078
|
-
}
|
|
3079
|
-
},
|
|
3080
|
-
|
|
3081
|
-
var
|
|
3082
|
-
var
|
|
3083
|
-
|
|
3084
|
-
var
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
}),
|
|
3098
|
+
r(v), sn();
|
|
3099
|
+
}
|
|
3100
|
+
}, ii = Ml(), oi = Sn(ii);
|
|
3101
|
+
Mi(oi, (v) => L(p, v), () => s(p));
|
|
3102
|
+
var ai = xe(oi, 2), Xo = (v) => {
|
|
3103
|
+
var m = xl(), O = On(m);
|
|
3104
|
+
$i(O, 17, () => s(w), js, (K, Z) => {
|
|
3105
|
+
var B = ml(), be = On(B), ee = ur(be, !0);
|
|
3106
|
+
zt(B), We(() => {
|
|
3107
|
+
Ti(B, `background-color: ${s(Z).hex ?? ""};`), U(B, "aria-label", s(Z).label), U(B, "title", s(Z).label), Tn(ee, s(Z).label);
|
|
3108
|
+
}), Ge("click", B, () => ni(s(Z).name)), he(K, B);
|
|
3088
3109
|
});
|
|
3089
|
-
var
|
|
3090
|
-
var Z = yl(),
|
|
3110
|
+
var I = xe(O, 2), oe = xe(I, 2), Wt = (K) => {
|
|
3111
|
+
var Z = yl(), B = xe(Sn(Z), 2);
|
|
3091
3112
|
We((be, ee) => {
|
|
3092
|
-
U(
|
|
3093
|
-
}, [() => s(u).t("tools.annotationToolbar.readAloudA11y"), () => s(u).t("tools.annotationToolbar.readAloud")]),
|
|
3113
|
+
U(B, "aria-disabled", s(T)), U(B, "aria-label", be), U(B, "title", ee);
|
|
3114
|
+
}, [() => s(u).t("tools.annotationToolbar.readAloudA11y"), () => s(u).t("tools.annotationToolbar.readAloud")]), Ge("click", B, Uo), he(K, Z);
|
|
3094
3115
|
};
|
|
3095
|
-
|
|
3096
|
-
s(
|
|
3116
|
+
tt(oe, (K) => {
|
|
3117
|
+
s(er) && K(Wt);
|
|
3097
3118
|
});
|
|
3098
|
-
var
|
|
3099
|
-
var Z = Sl(),
|
|
3100
|
-
|
|
3101
|
-
const
|
|
3119
|
+
var kn = xe(oe, 2), Qo = (K) => {
|
|
3120
|
+
var Z = Sl(), B = xe(Sn(Z), 2);
|
|
3121
|
+
$i(B, 17, () => s(vn), (be) => be.id, (be, ee) => {
|
|
3122
|
+
const Dt = /* @__PURE__ */ de(() => Bo(s(ee)));
|
|
3102
3123
|
var J = $l();
|
|
3103
|
-
let
|
|
3104
|
-
var
|
|
3105
|
-
var
|
|
3106
|
-
Bs(
|
|
3107
|
-
},
|
|
3108
|
-
var
|
|
3109
|
-
We(() =>
|
|
3124
|
+
let ae;
|
|
3125
|
+
var jt = On(J), Ht = (Ue) => {
|
|
3126
|
+
var mt = kl();
|
|
3127
|
+
Bs(mt, () => s(Dt), !0), zt(mt), he(Ue, mt);
|
|
3128
|
+
}, sr = (Ue) => {
|
|
3129
|
+
var mt = Es();
|
|
3130
|
+
We(() => Tn(mt, s(ee).label)), he(Ue, mt);
|
|
3110
3131
|
};
|
|
3111
|
-
|
|
3112
|
-
s(
|
|
3113
|
-
}),
|
|
3114
|
-
|
|
3115
|
-
}),
|
|
3132
|
+
tt(jt, (Ue) => {
|
|
3133
|
+
s(Dt) ? Ue(Ht) : Ue(sr, -1);
|
|
3134
|
+
}), zt(J), We(() => {
|
|
3135
|
+
ae = Ys(J, 1, "pie-tool-annotation-toolbar__button svelte-1qnnvrt", null, ae, { "pie-tool-annotation-toolbar__button--icon": !!s(Dt) }), U(J, "data-pie-selection-action", s(ee).id), U(J, "aria-label", s(ee).label), U(J, "title", s(ee).tooltip || s(ee).label);
|
|
3136
|
+
}), Ge("click", J, () => zo(s(ee))), he(be, J);
|
|
3116
3137
|
}), he(K, Z);
|
|
3117
3138
|
};
|
|
3118
|
-
|
|
3119
|
-
s(
|
|
3139
|
+
tt(kn, (K) => {
|
|
3140
|
+
s(vn).length > 0 && K(Qo);
|
|
3120
3141
|
});
|
|
3121
|
-
var
|
|
3122
|
-
var Z = Al(),
|
|
3123
|
-
var
|
|
3124
|
-
We((
|
|
3125
|
-
U(
|
|
3126
|
-
}, [() => s(u).t("tools.annotationToolbar.removeA11y"), () => s(u).t("tools.annotationToolbar.remove")]),
|
|
3142
|
+
var ea = xe(kn, 2), ta = (K) => {
|
|
3143
|
+
var Z = Al(), B = xe(Sn(Z), 2), be = (J) => {
|
|
3144
|
+
var ae = El();
|
|
3145
|
+
We((jt, Ht) => {
|
|
3146
|
+
U(ae, "aria-label", jt), U(ae, "title", Ht);
|
|
3147
|
+
}, [() => s(u).t("tools.annotationToolbar.removeA11y"), () => s(u).t("tools.annotationToolbar.remove")]), Ge("click", ae, Vo), he(J, ae);
|
|
3127
3148
|
};
|
|
3128
|
-
|
|
3129
|
-
s(
|
|
3149
|
+
tt(B, (J) => {
|
|
3150
|
+
s(pn) && J(be);
|
|
3130
3151
|
});
|
|
3131
|
-
var ee = xe(
|
|
3132
|
-
var
|
|
3133
|
-
We((
|
|
3134
|
-
U(
|
|
3152
|
+
var ee = xe(B, 2), Dt = (J) => {
|
|
3153
|
+
var ae = Tl(), jt = ur(ae, !0);
|
|
3154
|
+
We((Ht, sr, Ue) => {
|
|
3155
|
+
U(ae, "aria-label", Ht), U(ae, "title", sr), Tn(jt, Ue);
|
|
3135
3156
|
}, [
|
|
3136
3157
|
() => s(u).t("tools.annotationToolbar.clearAllA11y"),
|
|
3137
3158
|
() => s(u).t("tools.annotationToolbar.clearAll"),
|
|
3138
3159
|
() => s(u).t("tools.annotationToolbar.clearAll")
|
|
3139
|
-
]),
|
|
3160
|
+
]), Ge("click", ae, Fo), he(J, ae);
|
|
3140
3161
|
};
|
|
3141
|
-
|
|
3142
|
-
s(
|
|
3162
|
+
tt(ee, (J) => {
|
|
3163
|
+
s(_n) && J(Dt);
|
|
3143
3164
|
}), he(K, Z);
|
|
3144
3165
|
};
|
|
3145
|
-
|
|
3146
|
-
(s(
|
|
3147
|
-
}),
|
|
3148
|
-
U(
|
|
3166
|
+
tt(ea, (K) => {
|
|
3167
|
+
(s(pn) || s(_n)) && K(ta);
|
|
3168
|
+
}), zt(m), Mi(m, (K) => L(g, K), () => s(g)), We((K, Z, B, be, ee) => {
|
|
3169
|
+
U(m, "data-pie-placement", s(k).toolbarPosition.below ? "below" : "above"), Ti(m, `left:${s(k).toolbarPosition.x}px; top:${s(k).toolbarPosition.y}px;`), U(m, "lang", K), U(m, "dir", Z), U(m, "aria-label", B), U(I, "aria-label", be), U(I, "title", ee), m.dir = m.dir;
|
|
3149
3170
|
}, [
|
|
3150
3171
|
() => s(u).getLocale(),
|
|
3151
3172
|
() => s(u).getDirection?.() ?? "ltr",
|
|
3152
3173
|
() => s(u).t("tools.annotationToolbar.toolbarA11y"),
|
|
3153
3174
|
() => s(u).t("tools.annotationToolbar.underlineA11y"),
|
|
3154
3175
|
() => s(u).t("tools.annotationToolbar.underline")
|
|
3155
|
-
]),
|
|
3176
|
+
]), Ge("keydown", m, Go), Ge("focusout", m, Yo), Ge("click", I, () => ni(yt.UNDERLINE)), he(v, m);
|
|
3156
3177
|
};
|
|
3157
|
-
|
|
3158
|
-
s(k).isVisible && v(
|
|
3178
|
+
tt(ai, (v) => {
|
|
3179
|
+
s(k).isVisible && v(Xo);
|
|
3159
3180
|
});
|
|
3160
|
-
var
|
|
3161
|
-
return We(() =>
|
|
3181
|
+
var Zo = xe(ai, 2), Jo = ur(Zo, !0);
|
|
3182
|
+
return We(() => Tn(Jo, s(H))), he(e, ii), Vi(Ko);
|
|
3162
3183
|
}
|
|
3163
3184
|
ys([
|
|
3164
3185
|
"keydown",
|
|
@@ -3171,7 +3192,7 @@ Ol("pie-tool-annotation-toolbar", ol(Cl, {
|
|
|
3171
3192
|
type: "Boolean"
|
|
3172
3193
|
},
|
|
3173
3194
|
selectionActions: { type: "Object" }
|
|
3174
|
-
}, [], [], { mode: "open" },
|
|
3195
|
+
}, [], [], { mode: "open" }, na));
|
|
3175
3196
|
function Ol(e, t) {
|
|
3176
3197
|
customElements.get(e) || customElements.define(e, t);
|
|
3177
3198
|
}
|