@pie-players/pie-tool-sign-language 0.3.67 → 0.3.68
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/src/sign-language-cards.d.ts +11 -1
- package/dist/tool-sign-language.js +937 -934
- package/package.json +7 -5
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { applyMediaFragment as hi, isSafeMediaSrc as
|
|
2
|
-
import {
|
|
1
|
+
import { applyMediaFragment as hi, bindTtsAudioHandoff as _i, enforceMediaFragment as pi, isSafeMediaSrc as gi, isUnsupportedMediaAssetVersion as mi, normalizeMediaFragment as wi, normalizeMediaSources as yi, pauseTtsForMediaAudio as bi, trimmedOrUndefined as nt } from "@pie-players/pie-assessment-toolkit";
|
|
2
|
+
import { resolveInterfaceI18n as un } from "@pie-players/pie-players-shared/i18n/provider";
|
|
3
|
+
import { resolveToolTag as $i } from "@pie-players/pie-assessment-toolkit/tools/internal";
|
|
3
4
|
if (typeof window < "u") {
|
|
4
|
-
var qr,
|
|
5
|
-
((qr = (
|
|
5
|
+
var qr, Ur;
|
|
6
|
+
((qr = (Ur = window).__svelte ?? (Ur.__svelte = {})).v ?? (qr.v = /* @__PURE__ */ new Set())).add("5");
|
|
6
7
|
}
|
|
7
|
-
var Je = {},
|
|
8
|
-
var
|
|
8
|
+
var Je = {}, W = /* @__PURE__ */ Symbol("uninitialized");
|
|
9
|
+
var cn = Array.isArray, ki = Array.prototype.indexOf, Pt = Array.prototype.includes, Jt = Array.from, Wt = Object.keys, jt = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, Si = Object.getOwnPropertyDescriptors, Ei = Object.prototype, xi = Array.prototype, dn = Object.getPrototypeOf, Gr = Object.isExtensible, Mi = () => {
|
|
9
10
|
};
|
|
10
|
-
function
|
|
11
|
+
function Ti(e) {
|
|
11
12
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
12
13
|
}
|
|
13
|
-
function
|
|
14
|
+
function vn() {
|
|
14
15
|
var e, t;
|
|
15
16
|
return {
|
|
16
17
|
promise: new Promise((r, n) => {
|
|
@@ -28,7 +29,7 @@ function _t(e) {
|
|
|
28
29
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
29
30
|
}, _t(e);
|
|
30
31
|
}
|
|
31
|
-
function
|
|
32
|
+
function Ai(e, t) {
|
|
32
33
|
if (_t(e) != "object" || !e) return e;
|
|
33
34
|
var r = e[Symbol.toPrimitive];
|
|
34
35
|
if (r !== void 0) {
|
|
@@ -38,97 +39,97 @@ function Si(e, t) {
|
|
|
38
39
|
}
|
|
39
40
|
return (t === "string" ? String : Number)(e);
|
|
40
41
|
}
|
|
41
|
-
function
|
|
42
|
-
var t =
|
|
42
|
+
function Li(e) {
|
|
43
|
+
var t = Ai(e, "string");
|
|
43
44
|
return _t(t) == "symbol" ? t : t + "";
|
|
44
45
|
}
|
|
45
|
-
function
|
|
46
|
-
return (t =
|
|
46
|
+
function L(e, t, r) {
|
|
47
|
+
return (t = Li(t)) in e ? Object.defineProperty(e, t, {
|
|
47
48
|
value: r,
|
|
48
49
|
enumerable: !0,
|
|
49
50
|
configurable: !0,
|
|
50
51
|
writable: !0
|
|
51
52
|
}) : e[t] = r, e;
|
|
52
53
|
}
|
|
53
|
-
var
|
|
54
|
+
var Pa = 1 << 24, Z = 1024, Y = 2048, qe = 4096, br = 8192, Oi = 16384, $r = 32768, Hr = 1 << 25, kr = 65536, Wa = 1 << 17, ja = 1 << 18, rt = 1 << 19, Ri = 1 << 20, ct = 1 << 25, wt = 65536, Br = 1 << 21, Ni = 1 << 22, Ft = 1 << 23, dt = /* @__PURE__ */ Symbol("$state"), hn = /* @__PURE__ */ Symbol("legacy props"), Ci = /* @__PURE__ */ Symbol(""), Ii = /* @__PURE__ */ Symbol("proxy path"), ur = /* @__PURE__ */ Symbol("attributes"), Pi = /* @__PURE__ */ Symbol("class"), Wi = /* @__PURE__ */ Symbol("style"), Lt = /* @__PURE__ */ Symbol("text");
|
|
54
55
|
var yt = new class extends Error {
|
|
55
56
|
constructor(...t) {
|
|
56
|
-
super(...t),
|
|
57
|
+
super(...t), L(this, "name", "StaleReactionError"), L(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
57
58
|
}
|
|
58
|
-
}(),
|
|
59
|
-
function
|
|
59
|
+
}(), ji = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
60
|
+
function Fi() {
|
|
60
61
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
61
62
|
}
|
|
62
|
-
function
|
|
63
|
+
function Di(e, t, r) {
|
|
63
64
|
throw new Error("https://svelte.dev/e/each_key_duplicate");
|
|
64
65
|
}
|
|
65
|
-
function
|
|
66
|
+
function qi(e) {
|
|
66
67
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
67
68
|
}
|
|
68
|
-
function
|
|
69
|
+
function Ui() {
|
|
69
70
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
70
71
|
}
|
|
71
|
-
function
|
|
72
|
+
function Gi(e) {
|
|
72
73
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
73
74
|
}
|
|
74
|
-
function
|
|
75
|
+
function Hi() {
|
|
75
76
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
76
77
|
}
|
|
77
|
-
function
|
|
78
|
+
function Bi() {
|
|
78
79
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
79
80
|
}
|
|
80
|
-
function
|
|
81
|
+
function zi(e) {
|
|
81
82
|
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
82
83
|
}
|
|
83
|
-
function
|
|
84
|
+
function Yi() {
|
|
84
85
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
85
86
|
}
|
|
86
|
-
function
|
|
87
|
+
function Vi() {
|
|
87
88
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
88
89
|
}
|
|
89
|
-
function
|
|
90
|
+
function Ki() {
|
|
90
91
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
91
92
|
}
|
|
92
|
-
function
|
|
93
|
+
function Xi() {
|
|
93
94
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
94
95
|
}
|
|
95
|
-
function
|
|
96
|
+
function Ji() {
|
|
96
97
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
97
98
|
}
|
|
98
|
-
function
|
|
99
|
+
function Zt(e) {
|
|
99
100
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
100
101
|
}
|
|
101
|
-
function
|
|
102
|
+
function Zi() {
|
|
102
103
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
103
104
|
}
|
|
104
|
-
var
|
|
105
|
-
function
|
|
106
|
-
|
|
105
|
+
var A = !1;
|
|
106
|
+
function pe(e) {
|
|
107
|
+
A = e;
|
|
107
108
|
}
|
|
108
|
-
var
|
|
109
|
-
function
|
|
109
|
+
var x;
|
|
110
|
+
function H(e) {
|
|
110
111
|
if (e === null)
|
|
111
|
-
throw
|
|
112
|
-
return
|
|
112
|
+
throw Zt(), Je;
|
|
113
|
+
return x = e;
|
|
113
114
|
}
|
|
114
|
-
function
|
|
115
|
-
return
|
|
115
|
+
function Qt() {
|
|
116
|
+
return H(/* @__PURE__ */ de(x));
|
|
116
117
|
}
|
|
117
|
-
function
|
|
118
|
-
if (
|
|
119
|
-
if (/* @__PURE__ */
|
|
120
|
-
throw
|
|
121
|
-
|
|
118
|
+
function tr(e) {
|
|
119
|
+
if (A) {
|
|
120
|
+
if (/* @__PURE__ */ de(x) !== null)
|
|
121
|
+
throw Zt(), Je;
|
|
122
|
+
x = e;
|
|
122
123
|
}
|
|
123
124
|
}
|
|
124
|
-
function
|
|
125
|
-
if (
|
|
126
|
-
for (var t = e, r =
|
|
127
|
-
|
|
125
|
+
function Qi(e = 1) {
|
|
126
|
+
if (A) {
|
|
127
|
+
for (var t = e, r = x; t--; ) r = /* @__PURE__ */ de(r);
|
|
128
|
+
x = r;
|
|
128
129
|
}
|
|
129
130
|
}
|
|
130
|
-
function
|
|
131
|
-
for (var t = 0, r =
|
|
131
|
+
function Dt(e = !0) {
|
|
132
|
+
for (var t = 0, r = x; ; ) {
|
|
132
133
|
if (r.nodeType === 8) {
|
|
133
134
|
var n = r.data;
|
|
134
135
|
if (n === "]") {
|
|
@@ -136,83 +137,83 @@ function Ft(e = !0) {
|
|
|
136
137
|
t -= 1;
|
|
137
138
|
} else (n === "[" || n === "[!" || n[0] === "[" && !isNaN(Number(n.slice(1)))) && (t += 1);
|
|
138
139
|
}
|
|
139
|
-
var i = /* @__PURE__ */
|
|
140
|
+
var i = /* @__PURE__ */ de(r);
|
|
140
141
|
e && r.remove(), r = i;
|
|
141
142
|
}
|
|
142
143
|
}
|
|
143
|
-
function
|
|
144
|
+
function _n(e) {
|
|
144
145
|
if (!e || e.nodeType !== 8)
|
|
145
|
-
throw
|
|
146
|
+
throw Zt(), Je;
|
|
146
147
|
return e.data;
|
|
147
148
|
}
|
|
148
|
-
function
|
|
149
|
+
function pn(e) {
|
|
149
150
|
return e === this.v;
|
|
150
151
|
}
|
|
151
|
-
function
|
|
152
|
+
function es(e, t) {
|
|
152
153
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
153
154
|
}
|
|
154
|
-
function
|
|
155
|
-
return !
|
|
155
|
+
function gn(e) {
|
|
156
|
+
return !es(e, this.v);
|
|
156
157
|
}
|
|
157
|
-
var
|
|
158
|
+
var me = !1, er = !1;
|
|
158
159
|
function zr(e, t) {
|
|
159
|
-
return e.label = t,
|
|
160
|
+
return e.label = t, ts(e.v, t), e;
|
|
160
161
|
}
|
|
161
|
-
function
|
|
162
|
-
return e?.[
|
|
162
|
+
function ts(e, t) {
|
|
163
|
+
return e?.[Ii]?.(t), e;
|
|
163
164
|
}
|
|
164
|
-
var
|
|
165
|
+
var I = null;
|
|
165
166
|
function Ze(e) {
|
|
166
|
-
|
|
167
|
+
I = e;
|
|
167
168
|
}
|
|
168
|
-
function
|
|
169
|
-
|
|
170
|
-
p:
|
|
169
|
+
function mn(e, t = !1, r) {
|
|
170
|
+
I = {
|
|
171
|
+
p: I,
|
|
171
172
|
i: !1,
|
|
172
173
|
c: null,
|
|
173
174
|
e: null,
|
|
174
175
|
s: e,
|
|
175
176
|
x: null,
|
|
176
177
|
r: $,
|
|
177
|
-
l:
|
|
178
|
+
l: er && !t ? {
|
|
178
179
|
s: null,
|
|
179
180
|
u: null,
|
|
180
181
|
$: []
|
|
181
182
|
} : null
|
|
182
183
|
};
|
|
183
184
|
}
|
|
184
|
-
function
|
|
185
|
-
var t =
|
|
185
|
+
function wn(e) {
|
|
186
|
+
var t = I, r = t.e;
|
|
186
187
|
if (r !== null) {
|
|
187
188
|
t.e = null;
|
|
188
|
-
for (var n of r)
|
|
189
|
+
for (var n of r) Yn(n);
|
|
189
190
|
}
|
|
190
|
-
return e !== void 0 && (t.x = e), t.i = !0,
|
|
191
|
+
return e !== void 0 && (t.x = e), t.i = !0, I = t.p, e ?? {};
|
|
191
192
|
}
|
|
192
193
|
function bt() {
|
|
193
|
-
return !
|
|
194
|
+
return !er || I !== null && I.l === null;
|
|
194
195
|
}
|
|
195
196
|
var Ae = [];
|
|
196
|
-
function
|
|
197
|
+
function yn() {
|
|
197
198
|
var e = Ae;
|
|
198
|
-
Ae = [],
|
|
199
|
+
Ae = [], Ti(e);
|
|
199
200
|
}
|
|
200
|
-
function
|
|
201
|
-
if (Ae.length === 0 && !
|
|
201
|
+
function we(e) {
|
|
202
|
+
if (Ae.length === 0 && !vt) {
|
|
202
203
|
var t = Ae;
|
|
203
204
|
queueMicrotask(() => {
|
|
204
|
-
t === Ae &&
|
|
205
|
+
t === Ae && yn();
|
|
205
206
|
});
|
|
206
207
|
}
|
|
207
208
|
Ae.push(e);
|
|
208
209
|
}
|
|
209
|
-
function
|
|
210
|
-
for (; Ae.length > 0; )
|
|
210
|
+
function rs() {
|
|
211
|
+
for (; Ae.length > 0; ) yn();
|
|
211
212
|
}
|
|
212
|
-
function
|
|
213
|
+
function bn(e) {
|
|
213
214
|
var t = $;
|
|
214
215
|
if (t === null)
|
|
215
|
-
return E.f |=
|
|
216
|
+
return E.f |= Ft, e;
|
|
216
217
|
if ((t.f & 32768) === 0 && (t.f & 4) === 0)
|
|
217
218
|
throw e;
|
|
218
219
|
Ee(e, t);
|
|
@@ -234,23 +235,23 @@ function Ee(e, t) {
|
|
|
234
235
|
throw e;
|
|
235
236
|
}
|
|
236
237
|
}
|
|
237
|
-
var
|
|
238
|
-
function
|
|
239
|
-
e.f = e.f &
|
|
238
|
+
var ns = ~(Y | qe | Z);
|
|
239
|
+
function O(e, t) {
|
|
240
|
+
e.f = e.f & ns | t;
|
|
240
241
|
}
|
|
241
242
|
function Sr(e) {
|
|
242
|
-
(e.f & 512) !== 0 || e.deps === null ?
|
|
243
|
+
(e.f & 512) !== 0 || e.deps === null ? O(e, Z) : O(e, qe);
|
|
243
244
|
}
|
|
244
|
-
function
|
|
245
|
+
function $n(e) {
|
|
245
246
|
if (e !== null)
|
|
246
247
|
for (const t of e)
|
|
247
|
-
(t.f & 2) === 0 || (t.f & 65536) === 0 || (t.f ^= wt,
|
|
248
|
+
(t.f & 2) === 0 || (t.f & 65536) === 0 || (t.f ^= wt, $n(t.deps));
|
|
248
249
|
}
|
|
249
|
-
function
|
|
250
|
-
(e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && r.add(e),
|
|
250
|
+
function kn(e, t, r) {
|
|
251
|
+
(e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && r.add(e), $n(e.deps), O(e, Z);
|
|
251
252
|
}
|
|
252
|
-
var
|
|
253
|
-
function
|
|
253
|
+
var is = !1, St = !1;
|
|
254
|
+
function ss(e) {
|
|
254
255
|
var t = St;
|
|
255
256
|
try {
|
|
256
257
|
return St = !1, [e(), St];
|
|
@@ -260,31 +261,31 @@ function es(e) {
|
|
|
260
261
|
}
|
|
261
262
|
function $t(e) {
|
|
262
263
|
var t = E, r = $;
|
|
263
|
-
|
|
264
|
+
ee(null), ce(null);
|
|
264
265
|
try {
|
|
265
266
|
return e();
|
|
266
267
|
} finally {
|
|
267
|
-
|
|
268
|
+
ee(t), ce(r);
|
|
268
269
|
}
|
|
269
270
|
}
|
|
270
|
-
function
|
|
271
|
+
function as(e) {
|
|
271
272
|
let t = 0, r = Fe(0), n;
|
|
272
273
|
return () => {
|
|
273
|
-
Cr() && (
|
|
274
|
-
|
|
275
|
-
t -= 1, t === 0 && (n?.(), n = void 0,
|
|
274
|
+
Cr() && (T(r), Ir(() => (t === 0 && (n = Fr(() => e(() => ht(r)))), t += 1, () => {
|
|
275
|
+
we(() => {
|
|
276
|
+
t -= 1, t === 0 && (n?.(), n = void 0, ht(r));
|
|
276
277
|
});
|
|
277
278
|
})));
|
|
278
279
|
};
|
|
279
280
|
}
|
|
280
|
-
function
|
|
281
|
+
function Sn(e, t) {
|
|
281
282
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
282
283
|
}
|
|
283
284
|
function Er(e, t) {
|
|
284
|
-
|
|
285
|
+
Sn(e, t), t.add(e);
|
|
285
286
|
}
|
|
286
287
|
function y(e, t, r) {
|
|
287
|
-
|
|
288
|
+
Sn(e, t), t.set(e, r);
|
|
288
289
|
}
|
|
289
290
|
function b(e, t, r) {
|
|
290
291
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : r;
|
|
@@ -296,208 +297,208 @@ function w(e, t, r) {
|
|
|
296
297
|
function a(e, t) {
|
|
297
298
|
return e.get(b(e, t));
|
|
298
299
|
}
|
|
299
|
-
var
|
|
300
|
-
function
|
|
301
|
-
new
|
|
300
|
+
var ls = kr | rt;
|
|
301
|
+
function os(e, t, r, n) {
|
|
302
|
+
new fs(e, t, r, n);
|
|
302
303
|
}
|
|
303
|
-
var
|
|
304
|
+
var ie = /* @__PURE__ */ new WeakMap(), cr = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakMap(), pt = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), re = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakMap(), dr = /* @__PURE__ */ new WeakMap(), vr = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), Yr = /* @__PURE__ */ new WeakMap(), j = /* @__PURE__ */ new WeakSet(), fs = class {
|
|
304
305
|
constructor(e, t, r, n) {
|
|
305
|
-
Er(this,
|
|
306
|
+
Er(this, j), L(this, "parent", void 0), L(this, "is_pending", !1), L(this, "transform_error", void 0), y(this, ie, void 0), y(this, cr, A ? x : null), y(this, fe, void 0), y(this, pt, void 0), y(this, X, void 0), y(this, ue, null), y(this, z, null), y(this, re, null), y(this, Ne, null), y(this, Be, 0), y(this, Ce, 0), y(this, Et, !1), y(this, dr, /* @__PURE__ */ new Set()), y(this, vr, /* @__PURE__ */ new Set()), y(this, xe, null), y(this, Yr, as(() => (w(xe, this, Fe(a(Be, this))), () => {
|
|
306
307
|
w(xe, this, null);
|
|
307
|
-
}))), w(
|
|
308
|
+
}))), w(ie, this, e), w(fe, this, t), w(pt, this, (i) => {
|
|
308
309
|
var s = $;
|
|
309
310
|
s.b = this, s.f |= 128, r(i);
|
|
310
|
-
}), this.parent = $.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), w(
|
|
311
|
-
if (
|
|
312
|
-
const i = a(
|
|
313
|
-
|
|
311
|
+
}), this.parent = $.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), w(X, this, Pr(() => {
|
|
312
|
+
if (A) {
|
|
313
|
+
const i = a(cr, this);
|
|
314
|
+
Qt();
|
|
314
315
|
const s = i.data === "[!";
|
|
315
316
|
if (i.data.startsWith("[?")) {
|
|
316
317
|
const l = JSON.parse(i.data.slice(2));
|
|
317
|
-
b(
|
|
318
|
-
} else s ? b(
|
|
319
|
-
} else b(
|
|
320
|
-
},
|
|
318
|
+
b(j, this, cs).call(this, l);
|
|
319
|
+
} else s ? b(j, this, ds).call(this) : b(j, this, us).call(this);
|
|
320
|
+
} else b(j, this, xn).call(this);
|
|
321
|
+
}, ls)), A && w(ie, this, x);
|
|
321
322
|
}
|
|
322
323
|
defer_effect(e) {
|
|
323
|
-
|
|
324
|
+
kn(e, a(dr, this), a(vr, this));
|
|
324
325
|
}
|
|
325
326
|
is_rendered() {
|
|
326
327
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
327
328
|
}
|
|
328
329
|
has_pending_snippet() {
|
|
329
|
-
return !!a(
|
|
330
|
+
return !!a(fe, this).pending;
|
|
330
331
|
}
|
|
331
332
|
update_pending_count(e, t) {
|
|
332
|
-
b(
|
|
333
|
+
b(j, this, Mn).call(this, e, t), w(Be, this, a(Be, this) + e), !(!a(xe, this) || a(Et, this)) && (w(Et, this, !0), we(() => {
|
|
333
334
|
w(Et, this, !1), a(xe, this) && et(a(xe, this), a(Be, this));
|
|
334
335
|
}));
|
|
335
336
|
}
|
|
336
337
|
get_effect_pending() {
|
|
337
|
-
return a(Yr, this).call(this),
|
|
338
|
+
return a(Yr, this).call(this), T(a(xe, this));
|
|
338
339
|
}
|
|
339
340
|
error(e) {
|
|
340
|
-
if (!a(
|
|
341
|
-
k?.is_fork ? (a(
|
|
342
|
-
b(
|
|
343
|
-
})) : b(
|
|
341
|
+
if (!a(fe, this).onerror && !a(fe, this).failed) throw e;
|
|
342
|
+
k?.is_fork ? (a(ue, this) && k.skip_effect(a(ue, this)), a(z, this) && k.skip_effect(a(z, this)), a(re, this) && k.skip_effect(a(re, this)), k.oncommit(() => {
|
|
343
|
+
b(j, this, Vr).call(this, e);
|
|
344
|
+
})) : b(j, this, Vr).call(this, e);
|
|
344
345
|
}
|
|
345
346
|
};
|
|
346
|
-
function
|
|
347
|
+
function us() {
|
|
347
348
|
try {
|
|
348
|
-
w(
|
|
349
|
+
w(ue, this, Q(() => a(pt, this).call(this, a(ie, this))));
|
|
349
350
|
} catch (e) {
|
|
350
351
|
this.error(e);
|
|
351
352
|
}
|
|
352
353
|
}
|
|
353
|
-
function
|
|
354
|
-
const t = a(
|
|
355
|
-
|
|
356
|
-
t(a(
|
|
354
|
+
function cs(e) {
|
|
355
|
+
const t = a(fe, this).failed, { reset: r, invoke_onerror: n } = b(j, this, En).call(this, e);
|
|
356
|
+
we(n), t && w(re, this, Q(() => {
|
|
357
|
+
t(a(ie, this), () => e, () => r);
|
|
357
358
|
}));
|
|
358
359
|
}
|
|
359
|
-
function
|
|
360
|
+
function En(e) {
|
|
360
361
|
var t = !1, r = !1;
|
|
361
362
|
const n = () => {
|
|
362
363
|
if (t) {
|
|
363
|
-
|
|
364
|
+
Zi();
|
|
364
365
|
return;
|
|
365
366
|
}
|
|
366
|
-
t = !0, r &&
|
|
367
|
-
w(
|
|
368
|
-
}), b(
|
|
369
|
-
b(
|
|
367
|
+
t = !0, r && Xi(), a(re, this) !== null && Ge(a(re, this), () => {
|
|
368
|
+
w(re, this, null);
|
|
369
|
+
}), b(j, this, Mr).call(this, () => {
|
|
370
|
+
b(j, this, xn).call(this);
|
|
370
371
|
});
|
|
371
372
|
};
|
|
372
373
|
return {
|
|
373
374
|
reset: n,
|
|
374
375
|
invoke_onerror: () => {
|
|
375
376
|
try {
|
|
376
|
-
r = !0, a(
|
|
377
|
+
r = !0, a(fe, this).onerror?.(e, n), r = !1;
|
|
377
378
|
} catch (s) {
|
|
378
|
-
Ee(s, a(
|
|
379
|
+
Ee(s, a(X, this) && a(X, this).parent);
|
|
379
380
|
}
|
|
380
381
|
}
|
|
381
382
|
};
|
|
382
383
|
}
|
|
383
|
-
function
|
|
384
|
-
const e = a(
|
|
385
|
-
e && (this.is_pending = !0, w(z, this,
|
|
386
|
-
var t = w(Ne, this, document.createDocumentFragment()), r =
|
|
387
|
-
t.append(r), w(
|
|
384
|
+
function ds() {
|
|
385
|
+
const e = a(fe, this).pending;
|
|
386
|
+
e && (this.is_pending = !0, w(z, this, Q(() => e(a(ie, this)))), we(() => {
|
|
387
|
+
var t = w(Ne, this, document.createDocumentFragment()), r = J();
|
|
388
|
+
t.append(r), w(ue, this, b(j, this, Mr).call(this, () => Q(() => a(pt, this).call(this, r)))), a(Ce, this) === 0 && (a(ie, this).before(t), w(Ne, this, null), Ge(a(z, this), () => {
|
|
388
389
|
w(z, this, null);
|
|
389
|
-
}), b(
|
|
390
|
+
}), b(j, this, xr).call(this, k));
|
|
390
391
|
}));
|
|
391
392
|
}
|
|
392
|
-
function
|
|
393
|
+
function xn() {
|
|
393
394
|
try {
|
|
394
|
-
if (this.is_pending = this.has_pending_snippet(), w(Ce, this, 0), w(Be, this, 0), w(
|
|
395
|
-
a(pt, this).call(this, a(
|
|
395
|
+
if (this.is_pending = this.has_pending_snippet(), w(Ce, this, 0), w(Be, this, 0), w(ue, this, Q(() => {
|
|
396
|
+
a(pt, this).call(this, a(ie, this));
|
|
396
397
|
})), a(Ce, this) > 0) {
|
|
397
398
|
var e = w(Ne, this, document.createDocumentFragment());
|
|
398
|
-
jr(a(
|
|
399
|
-
const t = a(
|
|
400
|
-
w(z, this,
|
|
401
|
-
} else b(
|
|
399
|
+
jr(a(ue, this), e);
|
|
400
|
+
const t = a(fe, this).pending;
|
|
401
|
+
w(z, this, Q(() => t(a(ie, this))));
|
|
402
|
+
} else b(j, this, xr).call(this, k);
|
|
402
403
|
} catch (t) {
|
|
403
404
|
this.error(t);
|
|
404
405
|
}
|
|
405
406
|
}
|
|
406
407
|
function xr(e) {
|
|
407
|
-
this.is_pending = !1, e.transfer_effects(a(
|
|
408
|
+
this.is_pending = !1, e.transfer_effects(a(dr, this), a(vr, this));
|
|
408
409
|
}
|
|
409
410
|
function Mr(e) {
|
|
410
|
-
var t = $, r = E, n =
|
|
411
|
-
|
|
411
|
+
var t = $, r = E, n = I;
|
|
412
|
+
ce(a(X, this)), ee(a(X, this)), Ze(a(X, this).ctx);
|
|
412
413
|
try {
|
|
413
|
-
return
|
|
414
|
+
return Ue.ensure(), e();
|
|
414
415
|
} catch (i) {
|
|
415
|
-
return
|
|
416
|
+
return bn(i), null;
|
|
416
417
|
} finally {
|
|
417
|
-
|
|
418
|
+
ce(t), ee(r), Ze(n);
|
|
418
419
|
}
|
|
419
420
|
}
|
|
420
|
-
function
|
|
421
|
+
function Mn(e, t) {
|
|
421
422
|
if (!this.has_pending_snippet()) {
|
|
422
423
|
if (this.parent) {
|
|
423
424
|
var r;
|
|
424
|
-
b(
|
|
425
|
+
b(j, r = this.parent, Mn).call(r, e, t);
|
|
425
426
|
}
|
|
426
427
|
return;
|
|
427
428
|
}
|
|
428
|
-
w(Ce, this, a(Ce, this) + e), a(Ce, this) === 0 && (b(
|
|
429
|
+
w(Ce, this, a(Ce, this) + e), a(Ce, this) === 0 && (b(j, this, xr).call(this, t), a(z, this) && Ge(a(z, this), () => {
|
|
429
430
|
w(z, this, null);
|
|
430
|
-
}), a(Ne, this) && (a(
|
|
431
|
+
}), a(Ne, this) && (a(ie, this).before(a(Ne, this)), w(Ne, this, null)));
|
|
431
432
|
}
|
|
432
433
|
function Vr(e) {
|
|
433
|
-
a(
|
|
434
|
-
let t = a(
|
|
434
|
+
a(ue, this) && (q(a(ue, this)), w(ue, this, null)), a(z, this) && (q(a(z, this)), w(z, this, null)), a(re, this) && (q(a(re, this)), w(re, this, null)), A && (H(a(cr, this)), Qi(), H(Dt()));
|
|
435
|
+
let t = a(fe, this).failed;
|
|
435
436
|
const r = (n) => {
|
|
436
|
-
const { reset: i, invoke_onerror: s } = b(
|
|
437
|
-
s(), t && w(
|
|
437
|
+
const { reset: i, invoke_onerror: s } = b(j, this, En).call(this, n);
|
|
438
|
+
s(), t && w(re, this, b(j, this, Mr).call(this, () => {
|
|
438
439
|
try {
|
|
439
|
-
return
|
|
440
|
+
return Q(() => {
|
|
440
441
|
var l = $;
|
|
441
|
-
l.b = this, l.f |= 128, t(a(
|
|
442
|
+
l.b = this, l.f |= 128, t(a(ie, this), () => n, () => i);
|
|
442
443
|
});
|
|
443
444
|
} catch (l) {
|
|
444
|
-
return Ee(l, a(
|
|
445
|
+
return Ee(l, a(X, this).parent), null;
|
|
445
446
|
}
|
|
446
447
|
}));
|
|
447
448
|
};
|
|
448
|
-
|
|
449
|
+
we(() => {
|
|
449
450
|
var n;
|
|
450
451
|
try {
|
|
451
452
|
n = this.transform_error(e);
|
|
452
453
|
} catch (i) {
|
|
453
|
-
Ee(i, a(
|
|
454
|
+
Ee(i, a(X, this) && a(X, this).parent);
|
|
454
455
|
return;
|
|
455
456
|
}
|
|
456
|
-
n !== null && typeof n == "object" && typeof n.then == "function" ? n.then(r, (i) => Ee(i, a(
|
|
457
|
+
n !== null && typeof n == "object" && typeof n.then == "function" ? n.then(r, (i) => Ee(i, a(X, this) && a(X, this).parent)) : r(n);
|
|
457
458
|
});
|
|
458
459
|
}
|
|
459
|
-
function
|
|
460
|
+
function vs(e, t, r, n) {
|
|
460
461
|
const i = bt() ? gt : Tr;
|
|
461
462
|
var s = e.filter((u) => !u.settled), l = t.map(i);
|
|
462
463
|
if (r.length === 0 && s.length === 0) {
|
|
463
464
|
n(l);
|
|
464
465
|
return;
|
|
465
466
|
}
|
|
466
|
-
var o = $, f =
|
|
467
|
-
function
|
|
467
|
+
var o = $, f = hs(), h = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((u) => u.promise)) : null;
|
|
468
|
+
function _(u) {
|
|
468
469
|
if ((o.f & 16384) === 0) {
|
|
469
470
|
f();
|
|
470
471
|
try {
|
|
471
472
|
n([...l, ...u]);
|
|
472
|
-
} catch (
|
|
473
|
-
Ee(
|
|
473
|
+
} catch (p) {
|
|
474
|
+
Ee(p, o);
|
|
474
475
|
}
|
|
475
|
-
|
|
476
|
+
qt();
|
|
476
477
|
}
|
|
477
478
|
}
|
|
478
|
-
var d =
|
|
479
|
+
var d = Tn();
|
|
479
480
|
if (r.length === 0) {
|
|
480
|
-
h.then(() =>
|
|
481
|
+
h.then(() => _([])).finally(d);
|
|
481
482
|
return;
|
|
482
483
|
}
|
|
483
484
|
function c() {
|
|
484
|
-
Promise.all(r.map((u) => /* @__PURE__ */
|
|
485
|
+
Promise.all(r.map((u) => /* @__PURE__ */ _s(u))).then(_).catch((u) => Ee(u, o)).finally(d);
|
|
485
486
|
}
|
|
486
487
|
h ? h.then(() => {
|
|
487
|
-
f(), c(),
|
|
488
|
+
f(), c(), qt();
|
|
488
489
|
}) : c();
|
|
489
490
|
}
|
|
490
|
-
function
|
|
491
|
-
var e = $, t = E, r =
|
|
491
|
+
function hs() {
|
|
492
|
+
var e = $, t = E, r = I, n = k;
|
|
492
493
|
if (0) var i;
|
|
493
494
|
return function(l = !0) {
|
|
494
|
-
|
|
495
|
+
ce(e), ee(t), Ze(r), l && (e.f & 16384) === 0 && (n?.activate(), n?.apply());
|
|
495
496
|
};
|
|
496
497
|
}
|
|
497
|
-
function
|
|
498
|
-
|
|
498
|
+
function qt(e = !0) {
|
|
499
|
+
ce(null), ee(null), Ze(null), e && k?.deactivate();
|
|
499
500
|
}
|
|
500
|
-
function
|
|
501
|
+
function Tn() {
|
|
501
502
|
var e = $, t = e.b, r = k, n = !!t?.is_rendered();
|
|
502
503
|
return t?.update_pending_count(1, r), r.increment(n, e), () => {
|
|
503
504
|
t?.update_pending_count(-1, r), r.decrement(n, e);
|
|
@@ -507,15 +508,15 @@ function Mn() {
|
|
|
507
508
|
function gt(e) {
|
|
508
509
|
var t = 2 | Y;
|
|
509
510
|
return $ !== null && ($.f |= rt), {
|
|
510
|
-
ctx:
|
|
511
|
+
ctx: I,
|
|
511
512
|
deps: null,
|
|
512
513
|
effects: null,
|
|
513
|
-
equals:
|
|
514
|
+
equals: pn,
|
|
514
515
|
f: t,
|
|
515
516
|
fn: e,
|
|
516
517
|
reactions: null,
|
|
517
518
|
rv: 0,
|
|
518
|
-
v:
|
|
519
|
+
v: W,
|
|
519
520
|
wv: 0,
|
|
520
521
|
parent: $,
|
|
521
522
|
ac: null
|
|
@@ -523,54 +524,54 @@ function gt(e) {
|
|
|
523
524
|
}
|
|
524
525
|
var at = /* @__PURE__ */ Symbol("obsolete");
|
|
525
526
|
// @__NO_SIDE_EFFECTS__
|
|
526
|
-
function
|
|
527
|
+
function _s(e, t, r) {
|
|
527
528
|
let n = $;
|
|
528
|
-
n === null &&
|
|
529
|
-
var i = void 0, s = Fe(
|
|
530
|
-
return
|
|
531
|
-
var f = $, h =
|
|
529
|
+
n === null && Fi();
|
|
530
|
+
var i = void 0, s = Fe(W), l = !E, o = /* @__PURE__ */ new Set();
|
|
531
|
+
return Ns(() => {
|
|
532
|
+
var f = $, h = vn();
|
|
532
533
|
i = h.promise;
|
|
533
534
|
try {
|
|
534
535
|
Promise.resolve(e()).then(h.resolve, (u) => {
|
|
535
536
|
u !== yt && h.reject(u);
|
|
536
|
-
}).finally(
|
|
537
|
+
}).finally(qt);
|
|
537
538
|
} catch (u) {
|
|
538
|
-
h.reject(u),
|
|
539
|
+
h.reject(u), qt();
|
|
539
540
|
}
|
|
540
|
-
var
|
|
541
|
+
var _ = k;
|
|
541
542
|
if (l) {
|
|
542
|
-
if ((f.f & 32768) !== 0) var d =
|
|
543
|
-
if (n.b?.is_rendered())
|
|
543
|
+
if ((f.f & 32768) !== 0) var d = Tn();
|
|
544
|
+
if (n.b?.is_rendered()) _.async_deriveds.get(f)?.reject(at);
|
|
544
545
|
else for (const u of o.values()) u.reject(at);
|
|
545
|
-
o.add(h),
|
|
546
|
+
o.add(h), _.async_deriveds.set(f, h);
|
|
546
547
|
}
|
|
547
|
-
const c = (u,
|
|
548
|
-
d?.(), o.delete(h),
|
|
548
|
+
const c = (u, p = void 0) => {
|
|
549
|
+
d?.(), o.delete(h), p !== at && (_.activate(), p ? (s.f |= Ft, et(s, p)) : ((s.f & 8388608) !== 0 && (s.f ^= Ft), et(s, u)), _.deactivate());
|
|
549
550
|
};
|
|
550
551
|
h.promise.then(c, (u) => c(null, u || "unknown"));
|
|
551
|
-
}),
|
|
552
|
+
}), zn(() => {
|
|
552
553
|
for (const f of o) f.reject(at);
|
|
553
554
|
}), new Promise((f) => {
|
|
554
|
-
function h(
|
|
555
|
+
function h(_) {
|
|
555
556
|
function d() {
|
|
556
|
-
|
|
557
|
+
_ === i ? f(s) : h(i);
|
|
557
558
|
}
|
|
558
|
-
|
|
559
|
+
_.then(d, d);
|
|
559
560
|
}
|
|
560
561
|
h(i);
|
|
561
562
|
});
|
|
562
563
|
}
|
|
563
564
|
// @__NO_SIDE_EFFECTS__
|
|
564
|
-
function
|
|
565
|
+
function rr(e) {
|
|
565
566
|
const t = /* @__PURE__ */ gt(e);
|
|
566
|
-
return
|
|
567
|
+
return me || Qn(t), t;
|
|
567
568
|
}
|
|
568
569
|
// @__NO_SIDE_EFFECTS__
|
|
569
570
|
function Tr(e) {
|
|
570
571
|
const t = /* @__PURE__ */ gt(e);
|
|
571
|
-
return t.equals =
|
|
572
|
+
return t.equals = gn, t;
|
|
572
573
|
}
|
|
573
|
-
function
|
|
574
|
+
function ps(e) {
|
|
574
575
|
var t = e.effects;
|
|
575
576
|
if (t !== null) {
|
|
576
577
|
e.effects = null;
|
|
@@ -579,38 +580,38 @@ function cs(e) {
|
|
|
579
580
|
}
|
|
580
581
|
function Ar(e) {
|
|
581
582
|
var t, r = $, n = e.parent;
|
|
582
|
-
if (!
|
|
583
|
-
return
|
|
584
|
-
|
|
583
|
+
if (!ye && n !== null && e.v !== W && (n.f & 24576) !== 0)
|
|
584
|
+
return Ji(), e.v;
|
|
585
|
+
ce(n);
|
|
585
586
|
try {
|
|
586
|
-
e.f &= ~wt,
|
|
587
|
+
e.f &= ~wt, ps(e), t = ni(e);
|
|
587
588
|
} finally {
|
|
588
|
-
|
|
589
|
+
ce(r);
|
|
589
590
|
}
|
|
590
591
|
return t;
|
|
591
592
|
}
|
|
592
|
-
function
|
|
593
|
+
function An(e) {
|
|
593
594
|
var t = Ar(e);
|
|
594
|
-
if (!e.equals(t) && (e.wv =
|
|
595
|
-
|
|
595
|
+
if (!e.equals(t) && (e.wv = ti(), (!k?.is_fork || e.deps === null) && (k !== null ? (k.capture(e, t, !0), hr?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
|
|
596
|
+
O(e, Z);
|
|
596
597
|
return;
|
|
597
598
|
}
|
|
598
|
-
|
|
599
|
+
ye || (D !== null ? (Cr() || k?.is_fork) && D.set(e, t) : Sr(e));
|
|
599
600
|
}
|
|
600
|
-
function
|
|
601
|
+
function gs(e) {
|
|
601
602
|
if (e.effects !== null)
|
|
602
603
|
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && $t(() => {
|
|
603
604
|
t.ac.abort(yt), t.ac = null;
|
|
604
|
-
}), t.fn !== null && (t.teardown =
|
|
605
|
+
}), t.fn !== null && (t.teardown = Mi), mt(t, 0), Wr(t));
|
|
605
606
|
}
|
|
606
|
-
function
|
|
607
|
+
function Ln(e) {
|
|
607
608
|
if (e.effects !== null)
|
|
608
609
|
for (const t of e.effects) t.teardown && t.fn !== null && tt(t);
|
|
609
610
|
}
|
|
610
|
-
var
|
|
611
|
-
var
|
|
611
|
+
var On, Ut = null, ze = null, k = null, hr = null, D = null, _r = null, vt = !1, nr = !1, Qe = null, Gt = null, Rn = 0;
|
|
612
|
+
var ms = 1, Ht = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), Bt = /* @__PURE__ */ new WeakMap(), xt = /* @__PURE__ */ new WeakMap(), Ye = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), pr = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), ge = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), Ot = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakSet(), Ue = class Nn {
|
|
612
613
|
constructor() {
|
|
613
|
-
Er(this,
|
|
614
|
+
Er(this, R), L(this, "id", ms++), y(this, Ht, !1), L(this, "linked", !0), y(this, Ie, null), y(this, Le, null), L(this, "async_deriveds", /* @__PURE__ */ new Map()), L(this, "current", /* @__PURE__ */ new Map()), L(this, "previous", /* @__PURE__ */ new Map()), y(this, Bt, /* @__PURE__ */ new Set()), y(this, xt, /* @__PURE__ */ new Set()), y(this, Ye, 0), y(this, Te, /* @__PURE__ */ new Map()), y(this, lt, null), y(this, K, []), y(this, pr, []), y(this, je, /* @__PURE__ */ new Set()), y(this, ge, /* @__PURE__ */ new Set()), y(this, Se, /* @__PURE__ */ new Map()), y(this, Ot, /* @__PURE__ */ new Set()), L(this, "is_fork", !1), y(this, ot, !1), ze === null ? Ut = ze = this : (w(Le, ze, this), w(Ie, this, ze)), ze = this;
|
|
614
615
|
}
|
|
615
616
|
skip_effect(t) {
|
|
616
617
|
a(Se, this).has(t) || a(Se, this).set(t, {
|
|
@@ -623,14 +624,14 @@ var hs = 1, Ut = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap
|
|
|
623
624
|
if (n) {
|
|
624
625
|
a(Se, this).delete(t);
|
|
625
626
|
for (var i of n.d)
|
|
626
|
-
|
|
627
|
+
O(i, Y), r(i);
|
|
627
628
|
for (i of n.m)
|
|
628
|
-
|
|
629
|
+
O(i, qe), r(i);
|
|
629
630
|
}
|
|
630
631
|
a(Ot, this).add(t);
|
|
631
632
|
}
|
|
632
633
|
capture(t, r, n = !1) {
|
|
633
|
-
t.v !==
|
|
634
|
+
t.v !== W && !this.previous.has(t) && this.previous.set(t, t.v), (t.f & 8388608) === 0 && (this.current.set(t, [r, n]), D?.set(t, r)), this.is_fork || (t.v = r);
|
|
634
635
|
}
|
|
635
636
|
activate() {
|
|
636
637
|
k = this;
|
|
@@ -640,19 +641,19 @@ var hs = 1, Ut = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap
|
|
|
640
641
|
}
|
|
641
642
|
flush() {
|
|
642
643
|
try {
|
|
643
|
-
|
|
644
|
+
nr = !0, k = this, b(R, this, zt).call(this);
|
|
644
645
|
} finally {
|
|
645
|
-
|
|
646
|
+
Rn = 0, _r = null, Qe = null, Gt = null, nr = !1, k = null, D = null, Pe.clear();
|
|
646
647
|
}
|
|
647
648
|
}
|
|
648
649
|
discard() {
|
|
649
650
|
for (const t of a(xt, this)) t(this);
|
|
650
651
|
a(xt, this).clear();
|
|
651
652
|
for (const t of this.async_deriveds.values()) t.reject(at);
|
|
652
|
-
b(
|
|
653
|
+
b(R, this, Yt).call(this), a(lt, this)?.resolve();
|
|
653
654
|
}
|
|
654
655
|
register_created_effect(t) {
|
|
655
|
-
a(
|
|
656
|
+
a(pr, this).push(t);
|
|
656
657
|
}
|
|
657
658
|
increment(t, r) {
|
|
658
659
|
if (w(Ye, this, a(Ye, this) + 1), t) {
|
|
@@ -665,41 +666,41 @@ var hs = 1, Ut = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap
|
|
|
665
666
|
let n = a(Te, this).get(r) ?? 0;
|
|
666
667
|
n === 1 ? a(Te, this).delete(r) : a(Te, this).set(r, n - 1);
|
|
667
668
|
}
|
|
668
|
-
a(ot, this) || (w(ot, this, !0),
|
|
669
|
+
a(ot, this) || (w(ot, this, !0), we(() => {
|
|
669
670
|
w(ot, this, !1), this.linked && this.flush();
|
|
670
671
|
}));
|
|
671
672
|
}
|
|
672
673
|
transfer_effects(t, r) {
|
|
673
674
|
for (const n of t) a(je, this).add(n);
|
|
674
|
-
for (const n of r) a(
|
|
675
|
+
for (const n of r) a(ge, this).add(n);
|
|
675
676
|
t.clear(), r.clear();
|
|
676
677
|
}
|
|
677
678
|
oncommit(t) {
|
|
678
|
-
a(
|
|
679
|
+
a(Bt, this).add(t);
|
|
679
680
|
}
|
|
680
681
|
ondiscard(t) {
|
|
681
682
|
a(xt, this).add(t);
|
|
682
683
|
}
|
|
683
684
|
settled() {
|
|
684
|
-
return (a(lt, this) ?? w(lt, this,
|
|
685
|
+
return (a(lt, this) ?? w(lt, this, vn())).promise;
|
|
685
686
|
}
|
|
686
687
|
static ensure() {
|
|
687
688
|
if (k === null) {
|
|
688
|
-
const t = k = new
|
|
689
|
-
!
|
|
690
|
-
a(
|
|
689
|
+
const t = k = new Nn();
|
|
690
|
+
!nr && !vt && we(() => {
|
|
691
|
+
a(Ht, t) || t.flush();
|
|
691
692
|
});
|
|
692
693
|
}
|
|
693
694
|
return k;
|
|
694
695
|
}
|
|
695
696
|
apply() {
|
|
696
|
-
if (!
|
|
697
|
+
if (!me || !this.is_fork && a(Ie, this) === null && a(Le, this) === null) {
|
|
697
698
|
D = null;
|
|
698
699
|
return;
|
|
699
700
|
}
|
|
700
701
|
D = /* @__PURE__ */ new Map();
|
|
701
702
|
for (const [r, [n]] of this.current) D.set(r, n);
|
|
702
|
-
for (let r =
|
|
703
|
+
for (let r = Ut; r !== null; r = a(Le, r))
|
|
703
704
|
if (!(r === this || r.is_fork)) {
|
|
704
705
|
var t = !1;
|
|
705
706
|
if (r.id < this.id) {
|
|
@@ -714,24 +715,24 @@ var hs = 1, Ut = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap
|
|
|
714
715
|
}
|
|
715
716
|
}
|
|
716
717
|
schedule(t) {
|
|
717
|
-
if (
|
|
718
|
+
if (_r = t, t.b?.is_pending && (t.f & 16777228) !== 0 && (t.f & 32768) === 0) {
|
|
718
719
|
t.b.defer_effect(t);
|
|
719
720
|
return;
|
|
720
721
|
}
|
|
721
722
|
for (var r = t; r.parent !== null; ) {
|
|
722
723
|
r = r.parent;
|
|
723
724
|
var n = r.f;
|
|
724
|
-
if (Qe !== null && r === $ && (
|
|
725
|
+
if (Qe !== null && r === $ && (me || (E === null || (E.f & 2) === 0) && !is))
|
|
725
726
|
return;
|
|
726
727
|
if ((n & 96) !== 0) {
|
|
727
728
|
if ((n & 1024) === 0) return;
|
|
728
|
-
r.f ^=
|
|
729
|
+
r.f ^= Z;
|
|
729
730
|
}
|
|
730
731
|
}
|
|
731
|
-
a(
|
|
732
|
+
a(K, this).push(r);
|
|
732
733
|
}
|
|
733
734
|
};
|
|
734
|
-
|
|
735
|
+
On = Ue;
|
|
735
736
|
function Kr() {
|
|
736
737
|
if (this.is_fork) return !0;
|
|
737
738
|
for (const r of a(Te, this).keys()) {
|
|
@@ -746,51 +747,52 @@ function Kr() {
|
|
|
746
747
|
}
|
|
747
748
|
return !1;
|
|
748
749
|
}
|
|
749
|
-
function
|
|
750
|
-
w(
|
|
750
|
+
function zt() {
|
|
751
|
+
w(Ht, this, !0), Rn++ > 1e3 && (b(R, this, Yt).call(this), $s());
|
|
751
752
|
for (const o of a(je, this))
|
|
752
|
-
a(
|
|
753
|
-
for (const o of a(
|
|
754
|
-
|
|
755
|
-
const e = a(
|
|
756
|
-
w(
|
|
753
|
+
a(ge, this).delete(o), O(o, Y), this.schedule(o);
|
|
754
|
+
for (const o of a(ge, this))
|
|
755
|
+
O(o, qe), this.schedule(o);
|
|
756
|
+
const e = a(K, this);
|
|
757
|
+
w(K, this, []), this.apply();
|
|
757
758
|
var t = Qe = [], r = [], n = Gt = [];
|
|
758
759
|
for (const o of e) try {
|
|
759
|
-
b(
|
|
760
|
+
b(R, this, Cn).call(this, o, t, r);
|
|
760
761
|
} catch (f) {
|
|
761
|
-
throw
|
|
762
|
+
throw Wn(o), b(R, this, Kr).call(this) || this.discard(), f;
|
|
762
763
|
}
|
|
763
764
|
if (k = null, n.length > 0) {
|
|
764
|
-
var i =
|
|
765
|
+
var i = On.ensure();
|
|
765
766
|
for (const o of n) i.schedule(o);
|
|
766
767
|
}
|
|
767
|
-
if (Qe = null, Gt = null, b(
|
|
768
|
-
b(
|
|
768
|
+
if (Qe = null, Gt = null, b(R, this, Kr).call(this)) {
|
|
769
|
+
b(R, this, ft).call(this, r), b(R, this, ft).call(this, t);
|
|
769
770
|
for (const [o, f] of a(Se, this)) Pn(o, f);
|
|
770
|
-
n.length > 0 && b(
|
|
771
|
+
n.length > 0 && b(R, k, zt).call(k);
|
|
771
772
|
return;
|
|
772
773
|
}
|
|
773
|
-
const s = b(
|
|
774
|
+
const s = b(R, this, ws).call(this);
|
|
774
775
|
if (s) {
|
|
775
|
-
b(
|
|
776
|
+
b(R, this, ft).call(this, r), b(R, this, ft).call(this, t), b(R, s, ys).call(s, this);
|
|
776
777
|
return;
|
|
777
778
|
}
|
|
778
|
-
a(je, this).clear(), a(
|
|
779
|
-
for (const o of a(
|
|
780
|
-
a(
|
|
779
|
+
a(je, this).clear(), a(ge, this).clear();
|
|
780
|
+
for (const o of a(Bt, this)) o(this);
|
|
781
|
+
a(Bt, this).clear(), hr = this, Xr(r), Xr(t), hr = null, a(lt, this)?.resolve();
|
|
781
782
|
var l = k;
|
|
782
|
-
if (a(Ye, this) === 0 && (a(
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
783
|
+
if (a(Ye, this) === 0 && (a(K, this).length === 0 || l !== null) && (b(R, this, Yt).call(this), me && (b(R, this, bs).call(this), k = l)), a(K, this).length > 0)
|
|
784
|
+
if (l !== null) {
|
|
785
|
+
const o = l;
|
|
786
|
+
a(K, o).push(...a(K, this).filter((f) => !a(K, o).includes(f)));
|
|
787
|
+
} else l = this;
|
|
788
|
+
l !== null && b(R, l, zt).call(l);
|
|
789
|
+
}
|
|
790
|
+
function Cn(e, t, r) {
|
|
791
|
+
e.f ^= Z;
|
|
790
792
|
for (var n = e.first; n !== null; ) {
|
|
791
793
|
var i = n.f, s = (i & 96) !== 0;
|
|
792
794
|
if (!(s && (i & 1024) !== 0 || (i & 8192) !== 0 || a(Se, this).has(n)) && n.fn !== null) {
|
|
793
|
-
s ? n.f ^=
|
|
795
|
+
s ? n.f ^= Z : (i & 4) !== 0 ? t.push(n) : me && (i & 16777224) !== 0 ? r.push(n) : kt(n) && ((i & 16) !== 0 && a(ge, this).add(n), tt(n));
|
|
794
796
|
var l = n.first;
|
|
795
797
|
if (l !== null) {
|
|
796
798
|
n = l;
|
|
@@ -807,23 +809,23 @@ function Nn(e, t, r) {
|
|
|
807
809
|
}
|
|
808
810
|
}
|
|
809
811
|
}
|
|
810
|
-
function
|
|
811
|
-
for (var e = a(
|
|
812
|
+
function ws() {
|
|
813
|
+
for (var e = a(Ie, this); e !== null; ) {
|
|
812
814
|
if (!e.is_fork) {
|
|
813
815
|
for (const [t, [, r]] of this.current) if (e.current.has(t) && !r) return e;
|
|
814
816
|
}
|
|
815
|
-
e = a(
|
|
817
|
+
e = a(Ie, e);
|
|
816
818
|
}
|
|
817
819
|
return null;
|
|
818
820
|
}
|
|
819
|
-
function
|
|
821
|
+
function ys(e) {
|
|
820
822
|
for (const [r, n] of e.current)
|
|
821
823
|
!this.previous.has(r) && e.previous.has(r) && this.previous.set(r, e.previous.get(r)), this.current.set(r, n);
|
|
822
824
|
for (const [r, n] of e.async_deriveds) {
|
|
823
825
|
const i = this.async_deriveds.get(r);
|
|
824
826
|
i && n.promise.then(i.resolve).catch(i.reject);
|
|
825
827
|
}
|
|
826
|
-
e.async_deriveds.clear(), this.transfer_effects(a(je, e), a(
|
|
828
|
+
e.async_deriveds.clear(), this.transfer_effects(a(je, e), a(ge, e));
|
|
827
829
|
const t = (r) => {
|
|
828
830
|
var n = r.reactions;
|
|
829
831
|
if (n !== null && !((r.f & 2) !== 0 && (r.f & 6144) === 0))
|
|
@@ -832,121 +834,121 @@ function _s(e) {
|
|
|
832
834
|
if ((i & 2) !== 0) t(l);
|
|
833
835
|
else {
|
|
834
836
|
var s = l;
|
|
835
|
-
i & 4194320 && !this.async_deriveds.has(s) && (a(
|
|
837
|
+
i & 4194320 && !this.async_deriveds.has(s) && (a(ge, this).delete(s), O(s, Y), this.schedule(s));
|
|
836
838
|
}
|
|
837
839
|
}
|
|
838
840
|
};
|
|
839
841
|
for (const r of this.current.keys()) t(r);
|
|
840
|
-
this.oncommit(() => e.discard()), b(
|
|
842
|
+
this.oncommit(() => e.discard()), b(R, e, Yt).call(e), k = this, b(R, this, zt).call(this);
|
|
841
843
|
}
|
|
842
844
|
function ft(e) {
|
|
843
|
-
for (var t = 0; t < e.length; t += 1)
|
|
845
|
+
for (var t = 0; t < e.length; t += 1) kn(e[t], a(je, this), a(ge, this));
|
|
844
846
|
}
|
|
845
|
-
function
|
|
846
|
-
for (let
|
|
847
|
-
var e =
|
|
847
|
+
function bs() {
|
|
848
|
+
for (let _ = Ut; _ !== null; _ = a(Le, _)) {
|
|
849
|
+
var e = _.id < this.id, t = [];
|
|
848
850
|
for (const [d, [c, u]] of this.current) {
|
|
849
|
-
if (
|
|
850
|
-
var r =
|
|
851
|
-
if (e && c !== r)
|
|
851
|
+
if (_.current.has(d)) {
|
|
852
|
+
var r = _.current.get(d)[0];
|
|
853
|
+
if (e && c !== r) _.current.set(d, [c, u]);
|
|
852
854
|
else continue;
|
|
853
855
|
}
|
|
854
856
|
t.push(d);
|
|
855
857
|
}
|
|
856
858
|
if (e) for (const [d, c] of this.async_deriveds) {
|
|
857
|
-
const u =
|
|
859
|
+
const u = _.async_deriveds.get(d);
|
|
858
860
|
u && c.promise.then(u.resolve).catch(u.reject);
|
|
859
861
|
}
|
|
860
|
-
var n = [...
|
|
861
|
-
if (!(!a(
|
|
862
|
+
var n = [..._.current.keys()].filter((d) => !_.current.get(d)[1]);
|
|
863
|
+
if (!(!a(Ht, _) || n.length === 0)) {
|
|
862
864
|
var i = n.filter((d) => !this.current.has(d));
|
|
863
865
|
if (i.length === 0)
|
|
864
|
-
e &&
|
|
866
|
+
e && _.discard();
|
|
865
867
|
else if (t.length > 0) {
|
|
866
|
-
if (e) for (const d of a(Ot, this))
|
|
867
|
-
(c.f & 4194320) !== 0 ?
|
|
868
|
+
if (e) for (const d of a(Ot, this)) _.unskip_effect(d, (c) => {
|
|
869
|
+
(c.f & 4194320) !== 0 ? _.schedule(c) : b(R, _, ft).call(_, [c]);
|
|
868
870
|
});
|
|
869
|
-
|
|
871
|
+
_.activate();
|
|
870
872
|
var s = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map();
|
|
871
|
-
for (var o of t)
|
|
873
|
+
for (var o of t) In(o, i, s, l);
|
|
872
874
|
l = /* @__PURE__ */ new Map();
|
|
873
|
-
var f = [...
|
|
875
|
+
var f = [..._.current].filter(([d, c]) => {
|
|
874
876
|
const u = this.current.get(d);
|
|
875
877
|
return u ? u[0] !== c[0] || u[1] !== c[1] : !0;
|
|
876
878
|
}).map(([d]) => d);
|
|
877
879
|
if (f.length > 0)
|
|
878
|
-
for (const d of a(
|
|
879
|
-
if (a(
|
|
880
|
-
|
|
881
|
-
for (var h of a(
|
|
882
|
-
w(
|
|
880
|
+
for (const d of a(pr, this)) (d.f & 155648) === 0 && Lr(d, f, l) && ((d.f & 4194320) !== 0 ? (O(d, Y), _.schedule(d)) : a(je, _).add(d));
|
|
881
|
+
if (a(K, _).length > 0 && !a(ot, _)) {
|
|
882
|
+
_.apply();
|
|
883
|
+
for (var h of a(K, _)) b(R, _, Cn).call(_, h, [], []);
|
|
884
|
+
w(K, _, []);
|
|
883
885
|
}
|
|
884
|
-
|
|
886
|
+
_.deactivate();
|
|
885
887
|
}
|
|
886
888
|
}
|
|
887
889
|
}
|
|
888
890
|
}
|
|
889
|
-
function
|
|
891
|
+
function Yt() {
|
|
890
892
|
if (this.linked) {
|
|
891
|
-
var e = a(
|
|
892
|
-
e === null ?
|
|
893
|
+
var e = a(Ie, this), t = a(Le, this);
|
|
894
|
+
e === null ? Ut = t : w(Le, e, t), t === null ? ze = e : w(Ie, t, e), this.linked = !1;
|
|
893
895
|
}
|
|
894
896
|
}
|
|
895
|
-
function
|
|
896
|
-
var t =
|
|
897
|
-
|
|
897
|
+
function Rt(e) {
|
|
898
|
+
var t = vt;
|
|
899
|
+
vt = !0;
|
|
898
900
|
try {
|
|
899
901
|
var r;
|
|
900
902
|
for (e && (k !== null && !k.is_fork && k.flush(), r = e()); ; ) {
|
|
901
|
-
if (
|
|
903
|
+
if (rs(), k === null) return r;
|
|
902
904
|
k.flush();
|
|
903
905
|
}
|
|
904
906
|
} finally {
|
|
905
|
-
|
|
907
|
+
vt = t;
|
|
906
908
|
}
|
|
907
909
|
}
|
|
908
|
-
function
|
|
910
|
+
function $s() {
|
|
909
911
|
if (0) {
|
|
910
912
|
var e;
|
|
911
913
|
for (const r of k.current.keys()) for (const [n, i] of r.updated ?? [])
|
|
912
914
|
var t;
|
|
913
915
|
}
|
|
914
916
|
try {
|
|
915
|
-
|
|
917
|
+
Hi();
|
|
916
918
|
} catch (r) {
|
|
917
|
-
Ee(r,
|
|
919
|
+
Ee(r, _r);
|
|
918
920
|
}
|
|
919
921
|
}
|
|
920
|
-
var
|
|
922
|
+
var le = null;
|
|
921
923
|
function Xr(e) {
|
|
922
924
|
var t = e.length;
|
|
923
925
|
if (t !== 0) {
|
|
924
926
|
for (var r = 0; r < t; ) {
|
|
925
927
|
var n = e[r++];
|
|
926
|
-
if ((n.f & 24576) === 0 && kt(n) && (
|
|
927
|
-
|
|
928
|
-
for (const i of
|
|
928
|
+
if ((n.f & 24576) === 0 && kt(n) && (le = /* @__PURE__ */ new Set(), tt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Xn(n), le?.size > 0)) {
|
|
929
|
+
Pe.clear();
|
|
930
|
+
for (const i of le) {
|
|
929
931
|
if ((i.f & 24576) !== 0) continue;
|
|
930
932
|
const s = [i];
|
|
931
933
|
let l = i.parent;
|
|
932
934
|
for (; l !== null; )
|
|
933
|
-
|
|
935
|
+
le.has(l) && (le.delete(l), s.push(l)), l = l.parent;
|
|
934
936
|
for (let o = s.length - 1; o >= 0; o--) {
|
|
935
937
|
const f = s[o];
|
|
936
938
|
(f.f & 24576) === 0 && tt(f);
|
|
937
939
|
}
|
|
938
940
|
}
|
|
939
|
-
|
|
941
|
+
le.clear();
|
|
940
942
|
}
|
|
941
943
|
}
|
|
942
|
-
|
|
944
|
+
le = null;
|
|
943
945
|
}
|
|
944
946
|
}
|
|
945
|
-
function
|
|
947
|
+
function In(e, t, r, n) {
|
|
946
948
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
947
949
|
for (const i of e.reactions) {
|
|
948
950
|
const s = i.f;
|
|
949
|
-
(s & 2) !== 0 ?
|
|
951
|
+
(s & 2) !== 0 ? In(i, t, r, n) : (s & 4194320) !== 0 && (s & 2048) === 0 && Lr(i, t, n) && (O(i, Y), Or(i));
|
|
950
952
|
}
|
|
951
953
|
}
|
|
952
954
|
function Lr(e, t, r) {
|
|
@@ -964,64 +966,64 @@ function Or(e) {
|
|
|
964
966
|
}
|
|
965
967
|
function Pn(e, t) {
|
|
966
968
|
if (!((e.f & 32) !== 0 && (e.f & 1024) !== 0)) {
|
|
967
|
-
(e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e),
|
|
969
|
+
(e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), O(e, Z);
|
|
968
970
|
for (var r = e.first; r !== null; )
|
|
969
971
|
Pn(r, t), r = r.next;
|
|
970
972
|
}
|
|
971
973
|
}
|
|
972
|
-
function
|
|
973
|
-
|
|
974
|
+
function Wn(e) {
|
|
975
|
+
O(e, Z);
|
|
974
976
|
for (var t = e.first; t !== null; )
|
|
975
|
-
|
|
977
|
+
Wn(t), t = t.next;
|
|
976
978
|
}
|
|
977
|
-
var
|
|
978
|
-
var
|
|
979
|
+
var Vt = /* @__PURE__ */ new Set(), Pe = /* @__PURE__ */ new Map();
|
|
980
|
+
var jn = !1;
|
|
979
981
|
function Fe(e, t) {
|
|
980
982
|
var r = {
|
|
981
983
|
f: 0,
|
|
982
984
|
v: e,
|
|
983
985
|
reactions: null,
|
|
984
|
-
equals:
|
|
986
|
+
equals: pn,
|
|
985
987
|
rv: 0,
|
|
986
988
|
wv: 0
|
|
987
989
|
};
|
|
988
990
|
return r;
|
|
989
991
|
}
|
|
990
992
|
// @__NO_SIDE_EFFECTS__
|
|
991
|
-
function
|
|
993
|
+
function _e(e, t) {
|
|
992
994
|
const r = Fe(e, t);
|
|
993
|
-
return
|
|
995
|
+
return Qn(r), r;
|
|
994
996
|
}
|
|
995
997
|
// @__NO_SIDE_EFFECTS__
|
|
996
|
-
function
|
|
998
|
+
function Fn(e, t = !1, r = !0) {
|
|
997
999
|
const n = Fe(e);
|
|
998
|
-
if (t || (n.equals =
|
|
1000
|
+
if (t || (n.equals = gn), er && r && I !== null && I.l !== null) {
|
|
999
1001
|
var i;
|
|
1000
|
-
((i =
|
|
1002
|
+
((i = I.l).s ?? (i.s = [])).push(n);
|
|
1001
1003
|
}
|
|
1002
1004
|
return n;
|
|
1003
1005
|
}
|
|
1004
|
-
function
|
|
1005
|
-
E !== null && (!
|
|
1006
|
+
function oe(e, t, r = !1) {
|
|
1007
|
+
E !== null && (!ne || (E.f & 131072) !== 0) && bt() && (E.f & 4325394) !== 0 && (se === null || !se.has(e)) && Ki();
|
|
1006
1008
|
let n = r ? Ke(t) : t;
|
|
1007
1009
|
return et(e, n, Gt);
|
|
1008
1010
|
}
|
|
1009
1011
|
function et(e, t, r = null) {
|
|
1010
1012
|
if (!e.equals(t)) {
|
|
1011
|
-
|
|
1012
|
-
var n =
|
|
1013
|
+
Pe.set(e, ye ? t : e.v);
|
|
1014
|
+
var n = Ue.ensure();
|
|
1013
1015
|
if (n.capture(e, t), (e.f & 2) !== 0) {
|
|
1014
1016
|
const i = e;
|
|
1015
1017
|
(e.f & 2048) !== 0 && Ar(i), D === null && Sr(i);
|
|
1016
1018
|
}
|
|
1017
|
-
e.wv =
|
|
1019
|
+
e.wv = ti(), Dn(e, Y, r), bt() && $ !== null && ($.f & 1024) !== 0 && ($.f & 96) === 0 && (V === null ? Ws([e]) : V.push(e)), !n.is_fork && Vt.size > 0 && !jn && ks();
|
|
1018
1020
|
}
|
|
1019
1021
|
return t;
|
|
1020
1022
|
}
|
|
1021
|
-
function
|
|
1022
|
-
|
|
1023
|
-
for (const e of
|
|
1024
|
-
(e.f & 1024) !== 0 &&
|
|
1023
|
+
function ks() {
|
|
1024
|
+
jn = !1;
|
|
1025
|
+
for (const e of Vt) {
|
|
1026
|
+
(e.f & 1024) !== 0 && O(e, qe);
|
|
1025
1027
|
let t;
|
|
1026
1028
|
try {
|
|
1027
1029
|
t = kt(e);
|
|
@@ -1030,94 +1032,94 @@ function ms() {
|
|
|
1030
1032
|
}
|
|
1031
1033
|
t && tt(e);
|
|
1032
1034
|
}
|
|
1033
|
-
|
|
1035
|
+
Vt.clear();
|
|
1034
1036
|
}
|
|
1035
|
-
function
|
|
1036
|
-
|
|
1037
|
+
function ht(e) {
|
|
1038
|
+
oe(e, e.v + 1);
|
|
1037
1039
|
}
|
|
1038
|
-
function
|
|
1040
|
+
function Dn(e, t, r) {
|
|
1039
1041
|
var n = e.reactions;
|
|
1040
1042
|
if (n !== null)
|
|
1041
1043
|
for (var i = bt(), s = n.length, l = 0; l < s; l++) {
|
|
1042
1044
|
var o = n[l], f = o.f;
|
|
1043
1045
|
if (!(!i && o === $)) {
|
|
1044
1046
|
var h = (f & Y) === 0;
|
|
1045
|
-
if (h &&
|
|
1047
|
+
if (h && O(o, t), (f & 131072) !== 0) Vt.add(o);
|
|
1046
1048
|
else if ((f & 2) !== 0) {
|
|
1047
|
-
var
|
|
1048
|
-
D?.delete(
|
|
1049
|
+
var _ = o;
|
|
1050
|
+
D?.delete(_), (f & 65536) === 0 && (f & 512 && ($ === null || ($.f & 2097152) === 0) && (o.f |= wt), Dn(_, qe, r));
|
|
1049
1051
|
} else if (h) {
|
|
1050
1052
|
var d = o;
|
|
1051
|
-
(f & 16) !== 0 &&
|
|
1053
|
+
(f & 16) !== 0 && le !== null && le.add(d), r !== null ? r.push(d) : Or(d);
|
|
1052
1054
|
}
|
|
1053
1055
|
}
|
|
1054
1056
|
}
|
|
1055
1057
|
}
|
|
1056
|
-
var
|
|
1058
|
+
var Ss = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
1057
1059
|
function Ke(e) {
|
|
1058
1060
|
if (typeof e != "object" || e === null || dt in e) return e;
|
|
1059
|
-
const t =
|
|
1060
|
-
if (t !==
|
|
1061
|
-
var r = /* @__PURE__ */ new Map(), n =
|
|
1061
|
+
const t = dn(e);
|
|
1062
|
+
if (t !== Ei && t !== xi) return e;
|
|
1063
|
+
var r = /* @__PURE__ */ new Map(), n = cn(e), i = /* @__PURE__ */ _e(0), s = null, l = We, o = (d) => {
|
|
1062
1064
|
if (We === l) return d();
|
|
1063
1065
|
var c = E, u = We;
|
|
1064
|
-
|
|
1065
|
-
var
|
|
1066
|
-
return
|
|
1066
|
+
ee(null), rn(l);
|
|
1067
|
+
var p = d();
|
|
1068
|
+
return ee(c), rn(u), p;
|
|
1067
1069
|
};
|
|
1068
|
-
n && r.set("length", /* @__PURE__ */
|
|
1070
|
+
n && r.set("length", /* @__PURE__ */ _e(e.length, s));
|
|
1069
1071
|
var f = "";
|
|
1070
1072
|
let h = !1;
|
|
1071
|
-
function
|
|
1073
|
+
function _(d) {
|
|
1072
1074
|
if (!h) {
|
|
1073
1075
|
h = !0, f = d, zr(i, `${f} version`);
|
|
1074
|
-
for (const [c, u] of r) zr(u,
|
|
1076
|
+
for (const [c, u] of r) zr(u, Es(f, c));
|
|
1075
1077
|
h = !1;
|
|
1076
1078
|
}
|
|
1077
1079
|
}
|
|
1078
1080
|
return new Proxy(e, {
|
|
1079
1081
|
defineProperty(d, c, u) {
|
|
1080
|
-
(!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) &&
|
|
1081
|
-
var
|
|
1082
|
-
return
|
|
1083
|
-
var m = /* @__PURE__ */
|
|
1082
|
+
(!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && Yi();
|
|
1083
|
+
var p = r.get(c);
|
|
1084
|
+
return p === void 0 ? o(() => {
|
|
1085
|
+
var m = /* @__PURE__ */ _e(u.value, s);
|
|
1084
1086
|
return r.set(c, m), m;
|
|
1085
|
-
}) :
|
|
1087
|
+
}) : oe(p, u.value, !0), !0;
|
|
1086
1088
|
},
|
|
1087
1089
|
deleteProperty(d, c) {
|
|
1088
1090
|
var u = r.get(c);
|
|
1089
1091
|
if (u === void 0) {
|
|
1090
1092
|
if (c in d) {
|
|
1091
|
-
const
|
|
1092
|
-
r.set(c,
|
|
1093
|
+
const p = o(() => /* @__PURE__ */ _e(W, s));
|
|
1094
|
+
r.set(c, p), ht(i);
|
|
1093
1095
|
}
|
|
1094
1096
|
} else
|
|
1095
|
-
|
|
1097
|
+
oe(u, W), ht(i);
|
|
1096
1098
|
return !0;
|
|
1097
1099
|
},
|
|
1098
1100
|
get(d, c, u) {
|
|
1099
1101
|
if (c === dt) return e;
|
|
1100
|
-
var
|
|
1101
|
-
if (
|
|
1102
|
-
var
|
|
1103
|
-
return
|
|
1104
|
-
}), r.set(c,
|
|
1105
|
-
var
|
|
1106
|
-
return
|
|
1102
|
+
var p = r.get(c), m = c in d;
|
|
1103
|
+
if (p === void 0 && (!m || Re(d, c)?.writable) && (p = o(() => {
|
|
1104
|
+
var g = Ke(m ? d[c] : W), M = /* @__PURE__ */ _e(g, s);
|
|
1105
|
+
return M;
|
|
1106
|
+
}), r.set(c, p)), p !== void 0) {
|
|
1107
|
+
var v = T(p);
|
|
1108
|
+
return v === W ? void 0 : v;
|
|
1107
1109
|
}
|
|
1108
1110
|
return Reflect.get(d, c, u);
|
|
1109
1111
|
},
|
|
1110
1112
|
getOwnPropertyDescriptor(d, c) {
|
|
1111
1113
|
var u = Reflect.getOwnPropertyDescriptor(d, c);
|
|
1112
1114
|
if (u && "value" in u) {
|
|
1113
|
-
var
|
|
1114
|
-
|
|
1115
|
+
var p = r.get(c);
|
|
1116
|
+
p && (u.value = T(p));
|
|
1115
1117
|
} else if (u === void 0) {
|
|
1116
|
-
var m = r.get(c),
|
|
1117
|
-
if (m !== void 0 &&
|
|
1118
|
+
var m = r.get(c), v = m?.v;
|
|
1119
|
+
if (m !== void 0 && v !== W) return {
|
|
1118
1120
|
enumerable: !0,
|
|
1119
1121
|
configurable: !0,
|
|
1120
|
-
value:
|
|
1122
|
+
value: v,
|
|
1121
1123
|
writable: !0
|
|
1122
1124
|
};
|
|
1123
1125
|
}
|
|
@@ -1125,114 +1127,114 @@ function Ke(e) {
|
|
|
1125
1127
|
},
|
|
1126
1128
|
has(d, c) {
|
|
1127
1129
|
if (c === dt) return !0;
|
|
1128
|
-
var u = r.get(c),
|
|
1129
|
-
return (u !== void 0 || $ !== null && (!
|
|
1130
|
-
var m =
|
|
1131
|
-
return
|
|
1132
|
-
}), r.set(c, u)),
|
|
1130
|
+
var u = r.get(c), p = u !== void 0 && u.v !== W || Reflect.has(d, c);
|
|
1131
|
+
return (u !== void 0 || $ !== null && (!p || Re(d, c)?.writable)) && (u === void 0 && (u = o(() => {
|
|
1132
|
+
var m = p ? Ke(d[c]) : W, v = /* @__PURE__ */ _e(m, s);
|
|
1133
|
+
return v;
|
|
1134
|
+
}), r.set(c, u)), T(u) === W) ? !1 : p;
|
|
1133
1135
|
},
|
|
1134
|
-
set(d, c, u,
|
|
1135
|
-
var m = r.get(c),
|
|
1136
|
-
if (n && c === "length") for (var
|
|
1137
|
-
var
|
|
1138
|
-
|
|
1136
|
+
set(d, c, u, p) {
|
|
1137
|
+
var m = r.get(c), v = c in d;
|
|
1138
|
+
if (n && c === "length") for (var g = u; g < m.v; g += 1) {
|
|
1139
|
+
var M = r.get(g + "");
|
|
1140
|
+
M !== void 0 ? oe(M, W) : g in d && (M = o(() => /* @__PURE__ */ _e(W, s)), r.set(g + "", M));
|
|
1139
1141
|
}
|
|
1140
1142
|
if (m === void 0)
|
|
1141
|
-
(!
|
|
1143
|
+
(!v || Re(d, c)?.writable) && (m = o(() => /* @__PURE__ */ _e(void 0, s)), oe(m, Ke(u)), r.set(c, m));
|
|
1142
1144
|
else {
|
|
1143
|
-
|
|
1144
|
-
var
|
|
1145
|
-
|
|
1145
|
+
v = m.v !== W;
|
|
1146
|
+
var N = o(() => Ke(u));
|
|
1147
|
+
oe(m, N);
|
|
1146
1148
|
}
|
|
1147
1149
|
var S = Reflect.getOwnPropertyDescriptor(d, c);
|
|
1148
|
-
if (S?.set && S.set.call(
|
|
1150
|
+
if (S?.set && S.set.call(p, u), !v) {
|
|
1149
1151
|
if (n && typeof c == "string") {
|
|
1150
|
-
var
|
|
1151
|
-
Number.isInteger(
|
|
1152
|
+
var P = r.get("length"), C = Number(c);
|
|
1153
|
+
Number.isInteger(C) && C >= P.v && oe(P, C + 1);
|
|
1152
1154
|
}
|
|
1153
|
-
|
|
1155
|
+
ht(i);
|
|
1154
1156
|
}
|
|
1155
1157
|
return !0;
|
|
1156
1158
|
},
|
|
1157
1159
|
ownKeys(d) {
|
|
1158
|
-
|
|
1160
|
+
T(i);
|
|
1159
1161
|
var c = Reflect.ownKeys(d).filter((m) => {
|
|
1160
|
-
var
|
|
1161
|
-
return
|
|
1162
|
+
var v = r.get(m);
|
|
1163
|
+
return v === void 0 || v.v !== W;
|
|
1162
1164
|
});
|
|
1163
|
-
for (var [u,
|
|
1165
|
+
for (var [u, p] of r) p.v !== W && !(u in d) && c.push(u);
|
|
1164
1166
|
return c;
|
|
1165
1167
|
},
|
|
1166
1168
|
setPrototypeOf() {
|
|
1167
|
-
|
|
1169
|
+
Vi();
|
|
1168
1170
|
}
|
|
1169
1171
|
});
|
|
1170
1172
|
}
|
|
1171
|
-
function
|
|
1172
|
-
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` :
|
|
1173
|
+
function Es(e, t) {
|
|
1174
|
+
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : Ss.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
|
|
1173
1175
|
}
|
|
1174
|
-
var Jr,
|
|
1176
|
+
var Jr, xs, qn, Un, Gn;
|
|
1175
1177
|
function gr() {
|
|
1176
1178
|
if (Jr === void 0) {
|
|
1177
|
-
Jr = window,
|
|
1179
|
+
Jr = window, xs = document, qn = /Firefox/.test(navigator.userAgent);
|
|
1178
1180
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
1179
|
-
|
|
1181
|
+
Un = Re(t, "firstChild").get, Gn = Re(t, "nextSibling").get, Gr(e) && (e[Pi] = void 0, e[ur] = null, e[Wi] = void 0, e.__e = void 0), Gr(r) && (r[Lt] = void 0);
|
|
1180
1182
|
}
|
|
1181
1183
|
}
|
|
1182
|
-
function
|
|
1184
|
+
function J(e = "") {
|
|
1183
1185
|
return document.createTextNode(e);
|
|
1184
1186
|
}
|
|
1185
1187
|
// @__NO_SIDE_EFFECTS__
|
|
1186
1188
|
function De(e) {
|
|
1187
|
-
return
|
|
1189
|
+
return Un.call(e);
|
|
1188
1190
|
}
|
|
1189
1191
|
// @__NO_SIDE_EFFECTS__
|
|
1190
|
-
function
|
|
1192
|
+
function de(e) {
|
|
1191
1193
|
return Gn.call(e);
|
|
1192
1194
|
}
|
|
1193
1195
|
function Zr(e, t) {
|
|
1194
|
-
if (!
|
|
1195
|
-
var r = /* @__PURE__ */ De(
|
|
1196
|
-
if (r === null) r =
|
|
1196
|
+
if (!A) return /* @__PURE__ */ De(e);
|
|
1197
|
+
var r = /* @__PURE__ */ De(x);
|
|
1198
|
+
if (r === null) r = x.appendChild(J());
|
|
1197
1199
|
else if (t && r.nodeType !== 3) {
|
|
1198
|
-
var n =
|
|
1199
|
-
return r?.before(n),
|
|
1200
|
+
var n = J();
|
|
1201
|
+
return r?.before(n), H(n), n;
|
|
1200
1202
|
}
|
|
1201
|
-
return t && Nr(r),
|
|
1203
|
+
return t && Nr(r), H(r), r;
|
|
1202
1204
|
}
|
|
1203
|
-
function
|
|
1204
|
-
if (!
|
|
1205
|
+
function Ms(e, t = !1) {
|
|
1206
|
+
if (!A) {
|
|
1205
1207
|
var r = /* @__PURE__ */ De(e);
|
|
1206
|
-
return r instanceof Comment && r.data === "" ? /* @__PURE__ */
|
|
1208
|
+
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ de(r) : r;
|
|
1207
1209
|
}
|
|
1208
1210
|
if (t) {
|
|
1209
|
-
if (
|
|
1210
|
-
var n =
|
|
1211
|
-
return
|
|
1211
|
+
if (x?.nodeType !== 3) {
|
|
1212
|
+
var n = J();
|
|
1213
|
+
return x?.before(n), H(n), n;
|
|
1212
1214
|
}
|
|
1213
|
-
Nr(
|
|
1215
|
+
Nr(x);
|
|
1214
1216
|
}
|
|
1215
|
-
return
|
|
1217
|
+
return x;
|
|
1216
1218
|
}
|
|
1217
|
-
function
|
|
1218
|
-
let n =
|
|
1219
|
+
function Ts(e, t = 1, r = !1) {
|
|
1220
|
+
let n = A ? x : e;
|
|
1219
1221
|
for (var i; t--; )
|
|
1220
|
-
i = n, n = /* @__PURE__ */
|
|
1221
|
-
if (!
|
|
1222
|
+
i = n, n = /* @__PURE__ */ de(n);
|
|
1223
|
+
if (!A) return n;
|
|
1222
1224
|
if (r) {
|
|
1223
1225
|
if (n?.nodeType !== 3) {
|
|
1224
|
-
var s =
|
|
1225
|
-
return n === null ? i?.after(s) : n.before(s),
|
|
1226
|
+
var s = J();
|
|
1227
|
+
return n === null ? i?.after(s) : n.before(s), H(s), s;
|
|
1226
1228
|
}
|
|
1227
1229
|
Nr(n);
|
|
1228
1230
|
}
|
|
1229
|
-
return
|
|
1231
|
+
return H(n), n;
|
|
1230
1232
|
}
|
|
1231
|
-
function
|
|
1233
|
+
function Hn(e) {
|
|
1232
1234
|
e.textContent = "";
|
|
1233
1235
|
}
|
|
1234
|
-
function
|
|
1235
|
-
return !
|
|
1236
|
+
function Bn() {
|
|
1237
|
+
return !me || le !== null ? !1 : ($.f & $r) !== 0;
|
|
1236
1238
|
}
|
|
1237
1239
|
function Rr(e, t, r) {
|
|
1238
1240
|
return t == null || t === "http://www.w3.org/1999/xhtml" ? r ? document.createElement(e, { is: r }) : document.createElement(e) : r ? document.createElementNS(t, e, { is: r }) : document.createElementNS(t, e);
|
|
@@ -1243,10 +1245,10 @@ function Nr(e) {
|
|
|
1243
1245
|
for (; t !== null && t.nodeType === 3; )
|
|
1244
1246
|
t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
1245
1247
|
}
|
|
1246
|
-
function
|
|
1247
|
-
$ === null && (E === null &&
|
|
1248
|
+
function As(e) {
|
|
1249
|
+
$ === null && (E === null && Gi(e), Ui()), ye && qi(e);
|
|
1248
1250
|
}
|
|
1249
|
-
function
|
|
1251
|
+
function Ls(e, t) {
|
|
1250
1252
|
var r = t.last;
|
|
1251
1253
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
1252
1254
|
}
|
|
@@ -1254,7 +1256,7 @@ function ve(e, t) {
|
|
|
1254
1256
|
var r = $;
|
|
1255
1257
|
r !== null && (r.f & 8192) !== 0 && (e |= br);
|
|
1256
1258
|
var n = {
|
|
1257
|
-
ctx:
|
|
1259
|
+
ctx: I,
|
|
1258
1260
|
deps: null,
|
|
1259
1261
|
nodes: null,
|
|
1260
1262
|
f: e | Y | 512,
|
|
@@ -1271,7 +1273,8 @@ function ve(e, t) {
|
|
|
1271
1273
|
};
|
|
1272
1274
|
k?.register_created_effect(n);
|
|
1273
1275
|
var i = n;
|
|
1274
|
-
if ((e & 4) !== 0)
|
|
1276
|
+
if ((e & 4) !== 0)
|
|
1277
|
+
Qe !== null ? Qe.push(n) : Ue.ensure().schedule(n);
|
|
1275
1278
|
else if (t !== null) {
|
|
1276
1279
|
try {
|
|
1277
1280
|
tt(n);
|
|
@@ -1280,78 +1283,78 @@ function ve(e, t) {
|
|
|
1280
1283
|
}
|
|
1281
1284
|
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 |= kr));
|
|
1282
1285
|
}
|
|
1283
|
-
if (i !== null && (i.parent = r, r !== null &&
|
|
1286
|
+
if (i !== null && (i.parent = r, r !== null && Ls(i, r), E !== null && (E.f & 2) !== 0 && (e & 64) === 0)) {
|
|
1284
1287
|
var s = E;
|
|
1285
1288
|
(s.effects ?? (s.effects = [])).push(i);
|
|
1286
1289
|
}
|
|
1287
1290
|
return n;
|
|
1288
1291
|
}
|
|
1289
1292
|
function Cr() {
|
|
1290
|
-
return E !== null && !
|
|
1293
|
+
return E !== null && !ne;
|
|
1291
1294
|
}
|
|
1292
|
-
function
|
|
1295
|
+
function zn(e) {
|
|
1293
1296
|
const t = ve(8, null);
|
|
1294
|
-
return
|
|
1297
|
+
return O(t, Z), t.teardown = e, t;
|
|
1295
1298
|
}
|
|
1296
|
-
function
|
|
1297
|
-
|
|
1299
|
+
function Qr(e) {
|
|
1300
|
+
As("$effect");
|
|
1298
1301
|
var t = $.f;
|
|
1299
|
-
if (!E && (t & 32) !== 0 &&
|
|
1300
|
-
var r =
|
|
1302
|
+
if (!E && (t & 32) !== 0 && I !== null && !I.i) {
|
|
1303
|
+
var r = I;
|
|
1301
1304
|
(r.e ?? (r.e = [])).push(e);
|
|
1302
|
-
} else return
|
|
1305
|
+
} else return Yn(e);
|
|
1303
1306
|
}
|
|
1304
|
-
function
|
|
1305
|
-
return ve(4 |
|
|
1307
|
+
function Yn(e) {
|
|
1308
|
+
return ve(4 | Ri, e);
|
|
1306
1309
|
}
|
|
1307
|
-
function
|
|
1308
|
-
|
|
1310
|
+
function Os(e) {
|
|
1311
|
+
Ue.ensure();
|
|
1309
1312
|
const t = ve(64 | rt, e);
|
|
1310
1313
|
return () => {
|
|
1311
1314
|
q(t);
|
|
1312
1315
|
};
|
|
1313
1316
|
}
|
|
1314
|
-
function
|
|
1315
|
-
|
|
1317
|
+
function Rs(e) {
|
|
1318
|
+
Ue.ensure();
|
|
1316
1319
|
const t = ve(64 | rt, e);
|
|
1317
1320
|
return (r = {}) => new Promise((n) => {
|
|
1318
|
-
r.outro ?
|
|
1321
|
+
r.outro ? Ge(t, () => {
|
|
1319
1322
|
q(t), n(void 0);
|
|
1320
1323
|
}) : (q(t), n(void 0));
|
|
1321
1324
|
});
|
|
1322
1325
|
}
|
|
1323
|
-
function
|
|
1326
|
+
function Vn(e) {
|
|
1324
1327
|
return ve(4, e);
|
|
1325
1328
|
}
|
|
1326
|
-
function
|
|
1327
|
-
return ve(
|
|
1329
|
+
function Ns(e) {
|
|
1330
|
+
return ve(Ni | rt, e);
|
|
1328
1331
|
}
|
|
1329
|
-
function
|
|
1332
|
+
function Ir(e, t = 0) {
|
|
1330
1333
|
return ve(8 | t, e);
|
|
1331
1334
|
}
|
|
1332
|
-
function
|
|
1333
|
-
|
|
1335
|
+
function en(e, t = [], r = [], n = []) {
|
|
1336
|
+
vs(n, t, r, (i) => {
|
|
1334
1337
|
ve(8, () => {
|
|
1335
|
-
e(...i.map(
|
|
1338
|
+
e(...i.map(T));
|
|
1336
1339
|
});
|
|
1337
1340
|
});
|
|
1338
1341
|
}
|
|
1339
|
-
function
|
|
1342
|
+
function Pr(e, t = 0) {
|
|
1340
1343
|
var r = ve(16 | t, e);
|
|
1341
1344
|
return r;
|
|
1342
1345
|
}
|
|
1343
|
-
function
|
|
1346
|
+
function Q(e) {
|
|
1344
1347
|
return ve(32 | rt, e);
|
|
1345
1348
|
}
|
|
1346
|
-
function
|
|
1349
|
+
function Kn(e) {
|
|
1347
1350
|
var t = e.teardown;
|
|
1348
1351
|
if (t !== null) {
|
|
1349
|
-
const r =
|
|
1350
|
-
|
|
1352
|
+
const r = ye, n = E;
|
|
1353
|
+
tn(!0), ee(null);
|
|
1351
1354
|
try {
|
|
1352
1355
|
t.call(null);
|
|
1353
1356
|
} finally {
|
|
1354
|
-
|
|
1357
|
+
tn(r), ee(n);
|
|
1355
1358
|
}
|
|
1356
1359
|
}
|
|
1357
1360
|
}
|
|
@@ -1366,7 +1369,7 @@ function Wr(e, t = !1) {
|
|
|
1366
1369
|
(r.f & 64) !== 0 ? r.parent = null : q(r, t), r = n;
|
|
1367
1370
|
}
|
|
1368
1371
|
}
|
|
1369
|
-
function
|
|
1372
|
+
function Cs(e) {
|
|
1370
1373
|
for (var t = e.first; t !== null; ) {
|
|
1371
1374
|
var r = t.next;
|
|
1372
1375
|
(t.f & 32) === 0 && q(t), t = r;
|
|
@@ -1374,26 +1377,26 @@ function Ls(e) {
|
|
|
1374
1377
|
}
|
|
1375
1378
|
function q(e, t = !0) {
|
|
1376
1379
|
var r = !1;
|
|
1377
|
-
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (
|
|
1380
|
+
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (Is(e.nodes.start, e.nodes.end), r = !0), e.f |= Hr, Wr(e, t && !r), mt(e, 0);
|
|
1378
1381
|
var n = e.nodes && e.nodes.t;
|
|
1379
1382
|
if (n !== null) for (const s of n) s.stop();
|
|
1380
|
-
|
|
1383
|
+
Kn(e), e.f ^= Hr, e.f |= Oi;
|
|
1381
1384
|
var i = e.parent;
|
|
1382
|
-
i !== null && i.first !== null &&
|
|
1385
|
+
i !== null && i.first !== null && Xn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1383
1386
|
}
|
|
1384
|
-
function
|
|
1387
|
+
function Is(e, t) {
|
|
1385
1388
|
for (; e !== null; ) {
|
|
1386
|
-
var r = e === t ? null : /* @__PURE__ */
|
|
1389
|
+
var r = e === t ? null : /* @__PURE__ */ de(e);
|
|
1387
1390
|
e.remove(), e = r;
|
|
1388
1391
|
}
|
|
1389
1392
|
}
|
|
1390
|
-
function
|
|
1393
|
+
function Xn(e) {
|
|
1391
1394
|
var t = e.parent, r = e.prev, n = e.next;
|
|
1392
1395
|
r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
|
|
1393
1396
|
}
|
|
1394
|
-
function
|
|
1397
|
+
function Ge(e, t, r = !0) {
|
|
1395
1398
|
var n = [];
|
|
1396
|
-
|
|
1399
|
+
Jn(e, n, !0);
|
|
1397
1400
|
var i = () => {
|
|
1398
1401
|
r && q(e), t && t();
|
|
1399
1402
|
}, s = n.length;
|
|
@@ -1402,7 +1405,7 @@ function Ue(e, t, r = !0) {
|
|
|
1402
1405
|
for (var o of n) o.out(l);
|
|
1403
1406
|
} else i();
|
|
1404
1407
|
}
|
|
1405
|
-
function
|
|
1408
|
+
function Jn(e, t, r) {
|
|
1406
1409
|
if ((e.f & 8192) === 0) {
|
|
1407
1410
|
e.f ^= br;
|
|
1408
1411
|
var n = e.nodes && e.nodes.t;
|
|
@@ -1412,21 +1415,21 @@ function Xn(e, t, r) {
|
|
|
1412
1415
|
var s = i.next;
|
|
1413
1416
|
if ((i.f & 64) === 0) {
|
|
1414
1417
|
var l = (i.f & 65536) !== 0 || (i.f & 32) !== 0 && (e.f & 16) !== 0;
|
|
1415
|
-
|
|
1418
|
+
Jn(i, t, l ? r : !1);
|
|
1416
1419
|
}
|
|
1417
1420
|
i = s;
|
|
1418
1421
|
}
|
|
1419
1422
|
}
|
|
1420
1423
|
}
|
|
1421
|
-
function
|
|
1422
|
-
|
|
1424
|
+
function Kt(e) {
|
|
1425
|
+
Zn(e, !0);
|
|
1423
1426
|
}
|
|
1424
|
-
function
|
|
1427
|
+
function Zn(e, t) {
|
|
1425
1428
|
if ((e.f & 8192) !== 0) {
|
|
1426
|
-
e.f ^= br, (e.f & 1024) === 0 && (
|
|
1429
|
+
e.f ^= br, (e.f & 1024) === 0 && (O(e, Y), Ue.ensure().schedule(e));
|
|
1427
1430
|
for (var r = e.first; r !== null; ) {
|
|
1428
1431
|
var n = r.next, i = (r.f & 65536) !== 0 || (r.f & 32) !== 0;
|
|
1429
|
-
|
|
1432
|
+
Zn(r, i ? t : !1), r = n;
|
|
1430
1433
|
}
|
|
1431
1434
|
var s = e.nodes && e.nodes.t;
|
|
1432
1435
|
if (s !== null)
|
|
@@ -1436,36 +1439,36 @@ function Jn(e, t) {
|
|
|
1436
1439
|
function jr(e, t) {
|
|
1437
1440
|
if (e.nodes)
|
|
1438
1441
|
for (var r = e.nodes.start, n = e.nodes.end; r !== null; ) {
|
|
1439
|
-
var i = r === n ? null : /* @__PURE__ */
|
|
1442
|
+
var i = r === n ? null : /* @__PURE__ */ de(r);
|
|
1440
1443
|
t.append(r), r = i;
|
|
1441
1444
|
}
|
|
1442
1445
|
}
|
|
1443
|
-
var
|
|
1444
|
-
function
|
|
1445
|
-
|
|
1446
|
+
var Ps = null, Nt = !1, ye = !1;
|
|
1447
|
+
function tn(e) {
|
|
1448
|
+
ye = e;
|
|
1446
1449
|
}
|
|
1447
|
-
var E = null,
|
|
1448
|
-
function
|
|
1450
|
+
var E = null, ne = !1;
|
|
1451
|
+
function ee(e) {
|
|
1449
1452
|
E = e;
|
|
1450
1453
|
}
|
|
1451
1454
|
var $ = null;
|
|
1452
|
-
function
|
|
1455
|
+
function ce(e) {
|
|
1453
1456
|
$ = e;
|
|
1454
1457
|
}
|
|
1455
|
-
var
|
|
1456
|
-
function
|
|
1457
|
-
E !== null && (!
|
|
1458
|
+
var se = null;
|
|
1459
|
+
function Qn(e) {
|
|
1460
|
+
E !== null && (!me || (E.f & 2) !== 0) && (se ?? (se = /* @__PURE__ */ new Set())).add(e);
|
|
1458
1461
|
}
|
|
1459
|
-
var G = null, B = 0,
|
|
1460
|
-
function
|
|
1461
|
-
|
|
1462
|
+
var G = null, B = 0, V = null;
|
|
1463
|
+
function Ws(e) {
|
|
1464
|
+
V = e;
|
|
1462
1465
|
}
|
|
1463
|
-
var
|
|
1464
|
-
function
|
|
1466
|
+
var ei = 1, Oe = 0, We = Oe;
|
|
1467
|
+
function rn(e) {
|
|
1465
1468
|
We = e;
|
|
1466
1469
|
}
|
|
1467
|
-
function
|
|
1468
|
-
return ++
|
|
1470
|
+
function ti() {
|
|
1471
|
+
return ++ei;
|
|
1469
1472
|
}
|
|
1470
1473
|
function kt(e) {
|
|
1471
1474
|
var t = e.f;
|
|
@@ -1473,57 +1476,57 @@ function kt(e) {
|
|
|
1473
1476
|
if (t & 2 && (e.f &= ~wt), (t & 4096) !== 0) {
|
|
1474
1477
|
for (var r = e.deps, n = r.length, i = 0; i < n; i++) {
|
|
1475
1478
|
var s = r[i];
|
|
1476
|
-
if (kt(s) &&
|
|
1479
|
+
if (kt(s) && An(s), s.wv > e.wv) return !0;
|
|
1477
1480
|
}
|
|
1478
|
-
(t & 512) !== 0 && D === null &&
|
|
1481
|
+
(t & 512) !== 0 && D === null && O(e, Z);
|
|
1479
1482
|
}
|
|
1480
1483
|
return !1;
|
|
1481
1484
|
}
|
|
1482
|
-
function
|
|
1485
|
+
function ri(e, t, r = !0) {
|
|
1483
1486
|
var n = e.reactions;
|
|
1484
|
-
if (n !== null && !(!
|
|
1487
|
+
if (n !== null && !(!me && se !== null && se.has(e)))
|
|
1485
1488
|
for (var i = 0; i < n.length; i++) {
|
|
1486
1489
|
var s = n[i];
|
|
1487
|
-
(s.f & 2) !== 0 ?
|
|
1490
|
+
(s.f & 2) !== 0 ? ri(s, t, !1) : t === s && (r ? O(s, Y) : (s.f & 1024) !== 0 && O(s, qe), Or(s));
|
|
1488
1491
|
}
|
|
1489
1492
|
}
|
|
1490
|
-
function
|
|
1491
|
-
var t = G, r = B, n =
|
|
1492
|
-
G = null, B = 0,
|
|
1493
|
+
function ni(e) {
|
|
1494
|
+
var t = G, r = B, n = V, i = E, s = se, l = I, o = ne, f = We, h = e.f;
|
|
1495
|
+
G = null, B = 0, V = null, E = (h & 96) === 0 ? e : null, se = null, Ze(e.ctx), ne = !1, We = ++Oe, e.ac !== null && ($t(() => {
|
|
1493
1496
|
e.ac.abort(yt);
|
|
1494
1497
|
}), e.ac = null);
|
|
1495
1498
|
try {
|
|
1496
1499
|
e.f |= Br;
|
|
1497
|
-
var
|
|
1500
|
+
var _ = e.fn, d = _();
|
|
1498
1501
|
e.f |= $r;
|
|
1499
1502
|
var c = e.deps, u = k?.is_fork;
|
|
1500
1503
|
if (G !== null) {
|
|
1501
|
-
var
|
|
1504
|
+
var p;
|
|
1502
1505
|
if (u || mt(e, B), c !== null && B > 0)
|
|
1503
|
-
for (c.length = B + G.length,
|
|
1506
|
+
for (c.length = B + G.length, p = 0; p < G.length; p++) c[B + p] = G[p];
|
|
1504
1507
|
else e.deps = c = G;
|
|
1505
|
-
if (Cr() && (e.f & 512) !== 0) for (
|
|
1508
|
+
if (Cr() && (e.f & 512) !== 0) for (p = B; p < c.length; p++) {
|
|
1506
1509
|
var m;
|
|
1507
|
-
((m = c[
|
|
1510
|
+
((m = c[p]).reactions ?? (m.reactions = [])).push(e);
|
|
1508
1511
|
}
|
|
1509
1512
|
} else !u && c !== null && B < c.length && (mt(e, B), c.length = B);
|
|
1510
|
-
if (bt() &&
|
|
1513
|
+
if (bt() && V !== null && !ne && c !== null && (e.f & 6146) === 0) for (p = 0; p < V.length; p++) ri(V[p], e);
|
|
1511
1514
|
if (i !== null && i !== e) {
|
|
1512
|
-
if (Oe++, i.deps !== null) for (let
|
|
1513
|
-
if (t !== null) for (const
|
|
1514
|
-
|
|
1515
|
+
if (Oe++, i.deps !== null) for (let v = 0; v < r; v += 1) i.deps[v].rv = Oe;
|
|
1516
|
+
if (t !== null) for (const v of t) v.rv = Oe;
|
|
1517
|
+
V !== null && (n === null ? n = V : n.push(...V));
|
|
1515
1518
|
}
|
|
1516
|
-
return (e.f & 8388608) !== 0 && (e.f ^=
|
|
1517
|
-
} catch (
|
|
1518
|
-
return
|
|
1519
|
+
return (e.f & 8388608) !== 0 && (e.f ^= Ft), d;
|
|
1520
|
+
} catch (v) {
|
|
1521
|
+
return bn(v);
|
|
1519
1522
|
} finally {
|
|
1520
|
-
e.f ^= Br, G = t, B = r,
|
|
1523
|
+
e.f ^= Br, G = t, B = r, V = n, E = i, se = s, Ze(l), ne = o, We = f;
|
|
1521
1524
|
}
|
|
1522
1525
|
}
|
|
1523
|
-
function
|
|
1526
|
+
function js(e, t) {
|
|
1524
1527
|
let r = t.reactions;
|
|
1525
1528
|
if (r !== null) {
|
|
1526
|
-
var n =
|
|
1529
|
+
var n = ki.call(r, e);
|
|
1527
1530
|
if (n !== -1) {
|
|
1528
1531
|
var i = r.length - 1;
|
|
1529
1532
|
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
@@ -1531,36 +1534,36 @@ function Cs(e, t) {
|
|
|
1531
1534
|
}
|
|
1532
1535
|
if (r === null && (t.f & 2) !== 0 && (G === null || !Pt.call(G, t))) {
|
|
1533
1536
|
var s = t;
|
|
1534
|
-
(s.f & 512) !== 0 && (s.f ^= 512, s.f &= ~wt), s.v !==
|
|
1535
|
-
s.ac.abort(yt), s.ac = null,
|
|
1536
|
-
}),
|
|
1537
|
+
(s.f & 512) !== 0 && (s.f ^= 512, s.f &= ~wt), s.v !== W && Sr(s), s.ac !== null && $t(() => {
|
|
1538
|
+
s.ac.abort(yt), s.ac = null, O(s, Y);
|
|
1539
|
+
}), gs(s), mt(s, 0);
|
|
1537
1540
|
}
|
|
1538
1541
|
}
|
|
1539
1542
|
function mt(e, t) {
|
|
1540
1543
|
var r = e.deps;
|
|
1541
1544
|
if (r !== null)
|
|
1542
|
-
for (var n = t; n < r.length; n++)
|
|
1545
|
+
for (var n = t; n < r.length; n++) js(e, r[n]);
|
|
1543
1546
|
}
|
|
1544
1547
|
function tt(e) {
|
|
1545
1548
|
var t = e.f;
|
|
1546
1549
|
if ((t & 16384) === 0) {
|
|
1547
|
-
|
|
1548
|
-
var r = $, n =
|
|
1549
|
-
if ($ = e,
|
|
1550
|
+
O(e, Z);
|
|
1551
|
+
var r = $, n = Nt;
|
|
1552
|
+
if ($ = e, Nt = (t & 96) === 0, 0)
|
|
1550
1553
|
var i, s;
|
|
1551
1554
|
try {
|
|
1552
|
-
(t & 16777232) !== 0 ?
|
|
1553
|
-
var l =
|
|
1554
|
-
if (e.teardown = typeof l == "function" ? l : null, e.wv =
|
|
1555
|
+
(t & 16777232) !== 0 ? Cs(e) : Wr(e), Kn(e);
|
|
1556
|
+
var l = ni(e);
|
|
1557
|
+
if (e.teardown = typeof l == "function" ? l : null, e.wv = ei, 0)
|
|
1555
1558
|
for (var o of e.deps) ;
|
|
1556
1559
|
} finally {
|
|
1557
|
-
|
|
1560
|
+
Nt = n, $ = r;
|
|
1558
1561
|
}
|
|
1559
1562
|
}
|
|
1560
1563
|
}
|
|
1561
|
-
function
|
|
1564
|
+
function T(e) {
|
|
1562
1565
|
var t = (e.f & 2) !== 0;
|
|
1563
|
-
if (
|
|
1566
|
+
if (Ps?.add(e), E !== null && !ne && !($ !== null && ($.f & 16384) !== 0) && (se === null || !se.has(e))) {
|
|
1564
1567
|
var r = E.deps;
|
|
1565
1568
|
if ((E.f & 2097152) !== 0)
|
|
1566
1569
|
e.rv < Oe && (e.rv = Oe, G === null && r !== null && r[B] === e ? B++ : G === null ? G = [e] : G.push(e));
|
|
@@ -1572,70 +1575,70 @@ function x(e) {
|
|
|
1572
1575
|
}
|
|
1573
1576
|
}
|
|
1574
1577
|
if (0) {
|
|
1575
|
-
if (!
|
|
1578
|
+
if (!ne && reactivity_loss_tracker && k === null && hr === null && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & 2097152) === 0 && !reactivity_loss_tracker.effect_deps.has(e))
|
|
1576
1579
|
var s;
|
|
1577
|
-
if (tracing_mode_flag && !
|
|
1580
|
+
if (tracing_mode_flag && !ne && tracing_expressions !== null && E !== null && tracing_expressions.reaction === E && !e.trace) {
|
|
1578
1581
|
if (s)
|
|
1579
1582
|
var l, o;
|
|
1580
1583
|
}
|
|
1581
1584
|
}
|
|
1582
|
-
if (
|
|
1585
|
+
if (ye && Pe.has(e)) return Pe.get(e);
|
|
1583
1586
|
if (t) {
|
|
1584
1587
|
var f = e;
|
|
1585
|
-
if (
|
|
1588
|
+
if (ye) {
|
|
1586
1589
|
var h = f.v;
|
|
1587
|
-
return ((f.f & 1024) === 0 && f.reactions !== null ||
|
|
1590
|
+
return ((f.f & 1024) === 0 && f.reactions !== null || si(f)) && (h = Ar(f)), Pe.set(f, h), h;
|
|
1588
1591
|
}
|
|
1589
|
-
var
|
|
1590
|
-
kt(f) && (
|
|
1592
|
+
var _ = (f.f & 512) === 0 && !ne && E !== null && (Nt || (E.f & 512) !== 0), d = (f.f & $r) === 0;
|
|
1593
|
+
kt(f) && (_ && (f.f |= 512), An(f)), _ && !d && (Ln(f), ii(f));
|
|
1591
1594
|
}
|
|
1592
1595
|
if (D?.has(e)) return D.get(e);
|
|
1593
1596
|
if ((e.f & 8388608) !== 0) throw e.v;
|
|
1594
1597
|
return e.v;
|
|
1595
1598
|
}
|
|
1596
|
-
function
|
|
1599
|
+
function ii(e) {
|
|
1597
1600
|
if (e.f |= 512, e.deps !== null)
|
|
1598
1601
|
for (const t of e.deps)
|
|
1599
|
-
(t.reactions ?? (t.reactions = [])).push(e), (t.f & 2) !== 0 && (t.f & 512) === 0 && (
|
|
1602
|
+
(t.reactions ?? (t.reactions = [])).push(e), (t.f & 2) !== 0 && (t.f & 512) === 0 && (Ln(t), ii(t));
|
|
1600
1603
|
}
|
|
1601
|
-
function
|
|
1602
|
-
if (e.v ===
|
|
1604
|
+
function si(e) {
|
|
1605
|
+
if (e.v === W) return !0;
|
|
1603
1606
|
if (e.deps === null) return !1;
|
|
1604
1607
|
for (const t of e.deps)
|
|
1605
|
-
if (
|
|
1608
|
+
if (Pe.has(t) || (t.f & 2) !== 0 && si(t)) return !0;
|
|
1606
1609
|
return !1;
|
|
1607
1610
|
}
|
|
1608
1611
|
function Fr(e) {
|
|
1609
|
-
var t =
|
|
1612
|
+
var t = ne;
|
|
1610
1613
|
try {
|
|
1611
|
-
return
|
|
1614
|
+
return ne = !0, e();
|
|
1612
1615
|
} finally {
|
|
1613
|
-
|
|
1616
|
+
ne = t;
|
|
1614
1617
|
}
|
|
1615
1618
|
}
|
|
1616
|
-
var Mt = /* @__PURE__ */ Symbol("events"),
|
|
1617
|
-
function
|
|
1619
|
+
var Mt = /* @__PURE__ */ Symbol("events"), Fs = /* @__PURE__ */ new Set(), nn = /* @__PURE__ */ new Set();
|
|
1620
|
+
function Ds(e, t, r, n = {}) {
|
|
1618
1621
|
function i(s) {
|
|
1619
1622
|
if (n.capture || mr.call(t, s), !s.cancelBubble) return $t(() => r?.call(this, s));
|
|
1620
1623
|
}
|
|
1621
|
-
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ?
|
|
1624
|
+
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? we(() => {
|
|
1622
1625
|
t.addEventListener(e, i, n);
|
|
1623
1626
|
}) : t.addEventListener(e, i, n), i;
|
|
1624
1627
|
}
|
|
1625
|
-
function
|
|
1628
|
+
function qs(e, t, r, n, i) {
|
|
1626
1629
|
var s = {
|
|
1627
1630
|
capture: n,
|
|
1628
1631
|
passive: i
|
|
1629
|
-
}, l =
|
|
1630
|
-
(t === document.body || t === window || t === document || t instanceof HTMLMediaElement) &&
|
|
1632
|
+
}, l = Ds(e, t, r, s);
|
|
1633
|
+
(t === document.body || t === window || t === document || t instanceof HTMLMediaElement) && zn(() => {
|
|
1631
1634
|
t.removeEventListener(e, l, s);
|
|
1632
1635
|
});
|
|
1633
1636
|
}
|
|
1634
|
-
var
|
|
1637
|
+
var sn = null;
|
|
1635
1638
|
function mr(e) {
|
|
1636
1639
|
var t = this, r = t.ownerDocument, n = e.type, i = e.composedPath?.() || [], s = i[0] || e.target;
|
|
1637
|
-
|
|
1638
|
-
var l = 0, o =
|
|
1640
|
+
sn = e;
|
|
1641
|
+
var l = 0, o = sn === e && e[Mt];
|
|
1639
1642
|
if (o) {
|
|
1640
1643
|
var f = i.indexOf(o);
|
|
1641
1644
|
if (f !== -1 && (t === document || t === window)) {
|
|
@@ -1647,19 +1650,19 @@ function mr(e) {
|
|
|
1647
1650
|
f <= h && (l = f);
|
|
1648
1651
|
}
|
|
1649
1652
|
if (s = i[l] || e.target, s !== t) {
|
|
1650
|
-
|
|
1653
|
+
jt(e, "currentTarget", {
|
|
1651
1654
|
configurable: !0,
|
|
1652
1655
|
get() {
|
|
1653
1656
|
return s || r;
|
|
1654
1657
|
}
|
|
1655
1658
|
});
|
|
1656
|
-
var
|
|
1657
|
-
|
|
1659
|
+
var _ = E, d = $;
|
|
1660
|
+
ee(null), ce(null);
|
|
1658
1661
|
try {
|
|
1659
1662
|
for (var c, u = []; s !== null && s !== t; ) {
|
|
1660
1663
|
try {
|
|
1661
|
-
var
|
|
1662
|
-
|
|
1664
|
+
var p = s[Mt]?.[n];
|
|
1665
|
+
p != null && (!s.disabled || e.target === s) && p.call(s, e);
|
|
1663
1666
|
} catch (m) {
|
|
1664
1667
|
c ? u.push(m) : c = m;
|
|
1665
1668
|
}
|
|
@@ -1673,17 +1676,17 @@ function mr(e) {
|
|
|
1673
1676
|
throw c;
|
|
1674
1677
|
}
|
|
1675
1678
|
} finally {
|
|
1676
|
-
e[Mt] = t, delete e.currentTarget,
|
|
1679
|
+
e[Mt] = t, delete e.currentTarget, ee(_), ce(d);
|
|
1677
1680
|
}
|
|
1678
1681
|
}
|
|
1679
1682
|
}
|
|
1680
|
-
var
|
|
1681
|
-
function
|
|
1682
|
-
return
|
|
1683
|
+
var Us = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1684
|
+
function Gs(e) {
|
|
1685
|
+
return Us?.createHTML(e) ?? e;
|
|
1683
1686
|
}
|
|
1684
|
-
function
|
|
1687
|
+
function Hs(e) {
|
|
1685
1688
|
var t = Rr("template");
|
|
1686
|
-
return t.innerHTML =
|
|
1689
|
+
return t.innerHTML = Gs(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1687
1690
|
}
|
|
1688
1691
|
function Xe(e, t) {
|
|
1689
1692
|
var r = $;
|
|
@@ -1695,13 +1698,13 @@ function Xe(e, t) {
|
|
|
1695
1698
|
});
|
|
1696
1699
|
}
|
|
1697
1700
|
// @__NO_SIDE_EFFECTS__
|
|
1698
|
-
function
|
|
1701
|
+
function ai(e, t) {
|
|
1699
1702
|
var r = (t & 1) !== 0, n = (t & 2) !== 0, i, s = !e.startsWith("<!>");
|
|
1700
1703
|
return () => {
|
|
1701
|
-
if (
|
|
1702
|
-
return Xe(
|
|
1703
|
-
i === void 0 && (i =
|
|
1704
|
-
var l = n ||
|
|
1704
|
+
if (A)
|
|
1705
|
+
return Xe(x, null), x;
|
|
1706
|
+
i === void 0 && (i = Hs(s ? e : "<!>" + e), r || (i = /* @__PURE__ */ De(i)));
|
|
1707
|
+
var l = n || qn ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1705
1708
|
if (r) {
|
|
1706
1709
|
var o = /* @__PURE__ */ De(l), f = l.lastChild;
|
|
1707
1710
|
Xe(o, f);
|
|
@@ -1709,21 +1712,21 @@ function si(e, t) {
|
|
|
1709
1712
|
return l;
|
|
1710
1713
|
};
|
|
1711
1714
|
}
|
|
1712
|
-
function
|
|
1713
|
-
if (
|
|
1714
|
-
return Xe(
|
|
1715
|
-
var e = document.createDocumentFragment(), t = document.createComment(""), r =
|
|
1715
|
+
function Bs() {
|
|
1716
|
+
if (A)
|
|
1717
|
+
return Xe(x, null), x;
|
|
1718
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), r = J();
|
|
1716
1719
|
return e.append(t, r), Xe(t, r), e;
|
|
1717
1720
|
}
|
|
1718
|
-
function
|
|
1719
|
-
if (
|
|
1721
|
+
function Ct(e, t) {
|
|
1722
|
+
if (A) {
|
|
1720
1723
|
var r = $;
|
|
1721
|
-
((r.f & 32768) === 0 || r.nodes.end === null) && (r.nodes.end =
|
|
1724
|
+
((r.f & 32768) === 0 || r.nodes.end === null) && (r.nodes.end = x), Qt();
|
|
1722
1725
|
return;
|
|
1723
1726
|
}
|
|
1724
1727
|
e !== null && e.before(t);
|
|
1725
1728
|
}
|
|
1726
|
-
var
|
|
1729
|
+
var zs = [
|
|
1727
1730
|
"allowfullscreen",
|
|
1728
1731
|
"async",
|
|
1729
1732
|
"autofocus",
|
|
@@ -1752,8 +1755,8 @@ var qs = [
|
|
|
1752
1755
|
"defer",
|
|
1753
1756
|
"disablepictureinpicture",
|
|
1754
1757
|
"disableremoteplayback"
|
|
1755
|
-
],
|
|
1756
|
-
...
|
|
1758
|
+
], Da = [
|
|
1759
|
+
...zs,
|
|
1757
1760
|
"formNoValidate",
|
|
1758
1761
|
"isMap",
|
|
1759
1762
|
"noModule",
|
|
@@ -1768,17 +1771,17 @@ var qs = [
|
|
|
1768
1771
|
"allowFullscreen",
|
|
1769
1772
|
"disablePictureInPicture",
|
|
1770
1773
|
"disableRemotePlayback"
|
|
1771
|
-
],
|
|
1772
|
-
function
|
|
1773
|
-
return
|
|
1774
|
+
], Ys = ["touchstart", "touchmove"];
|
|
1775
|
+
function Vs(e) {
|
|
1776
|
+
return Ys.includes(e);
|
|
1774
1777
|
}
|
|
1775
|
-
var
|
|
1778
|
+
var Ks = [
|
|
1776
1779
|
"$state",
|
|
1777
1780
|
"$state.raw",
|
|
1778
1781
|
"$derived",
|
|
1779
1782
|
"$derived.by"
|
|
1780
|
-
],
|
|
1781
|
-
...
|
|
1783
|
+
], qa = [
|
|
1784
|
+
...Ks,
|
|
1782
1785
|
"$state.eager",
|
|
1783
1786
|
"$state.snapshot",
|
|
1784
1787
|
"$props",
|
|
@@ -1793,161 +1796,162 @@ var Hs = [
|
|
|
1793
1796
|
"$inspect().with",
|
|
1794
1797
|
"$inspect.trace",
|
|
1795
1798
|
"$host"
|
|
1796
|
-
],
|
|
1797
|
-
function
|
|
1798
|
-
var r
|
|
1799
|
-
|
|
1799
|
+
], an = !0;
|
|
1800
|
+
function Xs(e, t) {
|
|
1801
|
+
var r = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1802
|
+
r !== (e[Lt] ?? (e[Lt] = e.nodeValue)) && (e[Lt] = r, e.nodeValue = `${r}`);
|
|
1800
1803
|
}
|
|
1801
|
-
function
|
|
1802
|
-
return
|
|
1804
|
+
function li(e, t) {
|
|
1805
|
+
return oi(e, t);
|
|
1803
1806
|
}
|
|
1804
|
-
function
|
|
1807
|
+
function Js(e, t) {
|
|
1805
1808
|
gr(), t.intro = t.intro ?? !1;
|
|
1806
|
-
const r = t.target, n =
|
|
1809
|
+
const r = t.target, n = A, i = x;
|
|
1807
1810
|
try {
|
|
1808
|
-
for (var s = /* @__PURE__ */ De(r); s && (s.nodeType !== 8 || s.data !== "["); ) s = /* @__PURE__ */
|
|
1811
|
+
for (var s = /* @__PURE__ */ De(r); s && (s.nodeType !== 8 || s.data !== "["); ) s = /* @__PURE__ */ de(s);
|
|
1809
1812
|
if (!s) throw Je;
|
|
1810
|
-
|
|
1811
|
-
const l =
|
|
1813
|
+
pe(!0), H(s);
|
|
1814
|
+
const l = oi(e, {
|
|
1812
1815
|
...t,
|
|
1813
1816
|
anchor: s
|
|
1814
1817
|
});
|
|
1815
|
-
return
|
|
1818
|
+
return pe(!1), l;
|
|
1816
1819
|
} catch (l) {
|
|
1817
1820
|
if (l instanceof Error && l.message.split(`
|
|
1818
1821
|
`).some((o) => o.startsWith("https://svelte.dev/e/"))) throw l;
|
|
1819
|
-
return l !== Je && console.warn("Failed to hydrate: ", l), t.recover === !1 &&
|
|
1822
|
+
return l !== Je && console.warn("Failed to hydrate: ", l), t.recover === !1 && Bi(), gr(), Hn(r), pe(!1), li(e, t);
|
|
1820
1823
|
} finally {
|
|
1821
|
-
|
|
1824
|
+
pe(n), H(i);
|
|
1822
1825
|
}
|
|
1823
1826
|
}
|
|
1824
1827
|
var Tt = /* @__PURE__ */ new Map();
|
|
1825
|
-
function
|
|
1828
|
+
function oi(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: l = !0, transformError: o }) {
|
|
1826
1829
|
gr();
|
|
1827
|
-
var f = void 0, h =
|
|
1828
|
-
var
|
|
1829
|
-
|
|
1830
|
+
var f = void 0, h = Rs(() => {
|
|
1831
|
+
var _ = r ?? t.appendChild(J());
|
|
1832
|
+
os(_, { pending: () => {
|
|
1830
1833
|
} }, (u) => {
|
|
1831
|
-
|
|
1832
|
-
var
|
|
1833
|
-
if (s && (
|
|
1834
|
-
throw
|
|
1835
|
-
|
|
1834
|
+
mn({});
|
|
1835
|
+
var p = I;
|
|
1836
|
+
if (s && (p.c = s), i && (n.$$events = i), A && Xe(u, null), an = l, f = e(u, n) || {}, an = !0, A && ($.nodes.end = x, x === null || x.nodeType !== 8 || x.data !== "]"))
|
|
1837
|
+
throw Zt(), Je;
|
|
1838
|
+
wn();
|
|
1836
1839
|
}, o);
|
|
1837
1840
|
var d = /* @__PURE__ */ new Set(), c = (u) => {
|
|
1838
|
-
for (var
|
|
1839
|
-
var m = u[
|
|
1841
|
+
for (var p = 0; p < u.length; p++) {
|
|
1842
|
+
var m = u[p];
|
|
1840
1843
|
if (!d.has(m)) {
|
|
1841
1844
|
d.add(m);
|
|
1842
|
-
var
|
|
1843
|
-
for (const
|
|
1844
|
-
var
|
|
1845
|
-
|
|
1846
|
-
var
|
|
1847
|
-
|
|
1845
|
+
var v = Vs(m);
|
|
1846
|
+
for (const N of [t, document]) {
|
|
1847
|
+
var g = Tt.get(N);
|
|
1848
|
+
g === void 0 && (g = /* @__PURE__ */ new Map(), Tt.set(N, g));
|
|
1849
|
+
var M = g.get(m);
|
|
1850
|
+
M === void 0 ? (N.addEventListener(m, mr, { passive: v }), g.set(m, 1)) : g.set(m, M + 1);
|
|
1848
1851
|
}
|
|
1849
1852
|
}
|
|
1850
1853
|
}
|
|
1851
1854
|
};
|
|
1852
|
-
return c(
|
|
1853
|
-
for (var u of d) for (const
|
|
1854
|
-
var
|
|
1855
|
-
--m == 0 ? (
|
|
1855
|
+
return c(Jt(Fs)), nn.add(c), () => {
|
|
1856
|
+
for (var u of d) for (const v of [t, document]) {
|
|
1857
|
+
var p = Tt.get(v), m = p.get(u);
|
|
1858
|
+
--m == 0 ? (v.removeEventListener(u, mr), p.delete(u), p.size === 0 && Tt.delete(v)) : p.set(u, m);
|
|
1856
1859
|
}
|
|
1857
|
-
|
|
1860
|
+
nn.delete(c), _ !== r && _.parentNode?.removeChild(_);
|
|
1858
1861
|
};
|
|
1859
1862
|
});
|
|
1860
1863
|
return wr.set(f, h), f;
|
|
1861
1864
|
}
|
|
1862
1865
|
var wr = /* @__PURE__ */ new WeakMap();
|
|
1863
|
-
function
|
|
1866
|
+
function Zs(e, t) {
|
|
1864
1867
|
const r = wr.get(e);
|
|
1865
1868
|
return r ? (wr.delete(e), r(t)) : Promise.resolve();
|
|
1866
1869
|
}
|
|
1867
|
-
var
|
|
1870
|
+
var he = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), ir = /* @__PURE__ */ new WeakMap(), sr = /* @__PURE__ */ new WeakMap(), ln = /* @__PURE__ */ new WeakMap(), Qs = class {
|
|
1868
1871
|
constructor(e, t = !0) {
|
|
1869
|
-
|
|
1870
|
-
if (a(
|
|
1871
|
-
var n = a(
|
|
1872
|
+
L(this, "anchor", void 0), y(this, he, /* @__PURE__ */ new Map()), y(this, $e, /* @__PURE__ */ new Map()), y(this, te, /* @__PURE__ */ new Map()), y(this, it, /* @__PURE__ */ new Set()), y(this, ir, !0), y(this, sr, (r) => {
|
|
1873
|
+
if (a(he, this).has(r)) {
|
|
1874
|
+
var n = a(he, this).get(r), i = a($e, this).get(n);
|
|
1872
1875
|
if (i)
|
|
1873
|
-
|
|
1876
|
+
Kt(i), a(it, this).delete(n);
|
|
1874
1877
|
else {
|
|
1875
|
-
var s = a(
|
|
1876
|
-
s && (
|
|
1878
|
+
var s = a(te, this).get(n);
|
|
1879
|
+
s && (Kt(s.effect), a($e, this).set(n, s.effect), a(te, this).delete(n), s.fragment.lastChild.remove(), this.anchor.before(s.fragment), i = s.effect);
|
|
1877
1880
|
}
|
|
1878
|
-
for (const [l, o] of a(
|
|
1879
|
-
if (a(
|
|
1880
|
-
const f = a(
|
|
1881
|
-
f && (q(f.effect), a(
|
|
1881
|
+
for (const [l, o] of a(he, this)) {
|
|
1882
|
+
if (a(he, this).delete(l), l === r) break;
|
|
1883
|
+
const f = a(te, this).get(o);
|
|
1884
|
+
f && (q(f.effect), a(te, this).delete(o));
|
|
1882
1885
|
}
|
|
1883
1886
|
for (const [l, o] of a($e, this)) {
|
|
1884
1887
|
if (l === n || a(it, this).has(l)) continue;
|
|
1885
1888
|
const f = () => {
|
|
1886
|
-
if (Array.from(a(
|
|
1889
|
+
if (Array.from(a(he, this).values()).includes(l)) {
|
|
1887
1890
|
var h = document.createDocumentFragment();
|
|
1888
|
-
jr(o, h), h.append(
|
|
1891
|
+
jr(o, h), h.append(J()), a(te, this).set(l, {
|
|
1889
1892
|
effect: o,
|
|
1890
1893
|
fragment: h
|
|
1891
1894
|
});
|
|
1892
1895
|
} else q(o);
|
|
1893
1896
|
a(it, this).delete(l), a($e, this).delete(l);
|
|
1894
1897
|
};
|
|
1895
|
-
a(ir, this) || !i ? (a(it, this).add(l),
|
|
1898
|
+
a(ir, this) || !i ? (a(it, this).add(l), Ge(o, f, !1)) : f();
|
|
1896
1899
|
}
|
|
1897
1900
|
}
|
|
1898
|
-
}), y(this,
|
|
1899
|
-
a(
|
|
1900
|
-
const n = Array.from(a(
|
|
1901
|
-
for (const [i, s] of a(
|
|
1901
|
+
}), y(this, ln, (r) => {
|
|
1902
|
+
a(he, this).delete(r);
|
|
1903
|
+
const n = Array.from(a(he, this).values());
|
|
1904
|
+
for (const [i, s] of a(te, this)) n.includes(i) || (q(s.effect), a(te, this).delete(i));
|
|
1902
1905
|
}), this.anchor = e, w(ir, this, t);
|
|
1903
1906
|
}
|
|
1904
1907
|
ensure(e, t) {
|
|
1905
|
-
var r = k, n =
|
|
1906
|
-
if (t && !a($e, this).has(e) && !a(
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1908
|
+
var r = k, n = Bn();
|
|
1909
|
+
if (t && !a($e, this).has(e) && !a(te, this).has(e))
|
|
1910
|
+
if (n) {
|
|
1911
|
+
var i = document.createDocumentFragment(), s = J();
|
|
1912
|
+
i.append(s), a(te, this).set(e, {
|
|
1913
|
+
effect: Q(() => t(s)),
|
|
1914
|
+
fragment: i
|
|
1915
|
+
});
|
|
1916
|
+
} else a($e, this).set(e, Q(() => t(this.anchor)));
|
|
1917
|
+
if (a(he, this).set(r, e), n) {
|
|
1914
1918
|
for (const [l, o] of a($e, this)) l === e ? r.unskip_effect(o) : r.skip_effect(o);
|
|
1915
|
-
for (const [l, o] of a(
|
|
1916
|
-
r.oncommit(a(sr, this)), r.ondiscard(a(
|
|
1919
|
+
for (const [l, o] of a(te, this)) l === e ? r.unskip_effect(o.effect) : r.skip_effect(o.effect);
|
|
1920
|
+
r.oncommit(a(sr, this)), r.ondiscard(a(ln, this));
|
|
1917
1921
|
} else
|
|
1918
|
-
|
|
1922
|
+
A && (this.anchor = x), a(sr, this).call(this, r);
|
|
1919
1923
|
}
|
|
1920
1924
|
};
|
|
1921
|
-
function
|
|
1925
|
+
function ea(e, t, r = !1) {
|
|
1922
1926
|
var n;
|
|
1923
|
-
|
|
1924
|
-
var i = new
|
|
1927
|
+
A && (n = x, Qt());
|
|
1928
|
+
var i = new Qs(e), s = r ? kr : 0;
|
|
1925
1929
|
function l(o, f) {
|
|
1926
|
-
if (
|
|
1927
|
-
var h =
|
|
1930
|
+
if (A) {
|
|
1931
|
+
var h = _n(n);
|
|
1928
1932
|
if (o !== parseInt(h.substring(1))) {
|
|
1929
|
-
var
|
|
1930
|
-
|
|
1933
|
+
var _ = Dt();
|
|
1934
|
+
H(_), i.anchor = _, pe(!1), i.ensure(o, f), pe(!0);
|
|
1931
1935
|
return;
|
|
1932
1936
|
}
|
|
1933
1937
|
}
|
|
1934
1938
|
i.ensure(o, f);
|
|
1935
1939
|
}
|
|
1936
|
-
|
|
1940
|
+
Pr(() => {
|
|
1937
1941
|
var o = !1;
|
|
1938
1942
|
t((f, h = 0) => {
|
|
1939
1943
|
o = !0, l(h, f);
|
|
1940
1944
|
}), o || l(-1, null);
|
|
1941
1945
|
}, s);
|
|
1942
1946
|
}
|
|
1943
|
-
function
|
|
1947
|
+
function ta(e, t, r) {
|
|
1944
1948
|
for (var n = [], i = t.length, s, l = t.length, o = 0; o < i; o++) {
|
|
1945
1949
|
let d = t[o];
|
|
1946
|
-
|
|
1950
|
+
Ge(d, () => {
|
|
1947
1951
|
if (s) {
|
|
1948
1952
|
if (s.pending.delete(d), s.done.add(d), s.pending.size === 0) {
|
|
1949
1953
|
var c = e.outrogroups;
|
|
1950
|
-
yr(e,
|
|
1954
|
+
yr(e, Jt(s.done)), c.delete(s), c.size === 0 && (e.outrogroups = null);
|
|
1951
1955
|
}
|
|
1952
1956
|
} else l -= 1;
|
|
1953
1957
|
}, !1);
|
|
@@ -1955,8 +1959,8 @@ function Xs(e, t, r) {
|
|
|
1955
1959
|
if (l === 0) {
|
|
1956
1960
|
var f = n.length === 0 && r !== null;
|
|
1957
1961
|
if (f) {
|
|
1958
|
-
var h = r,
|
|
1959
|
-
|
|
1962
|
+
var h = r, _ = h.parentNode;
|
|
1963
|
+
Hn(_), _.append(h), e.items.clear();
|
|
1960
1964
|
}
|
|
1961
1965
|
yr(e, t, !f);
|
|
1962
1966
|
} else
|
|
@@ -1973,49 +1977,53 @@ function yr(e, t, r = !0) {
|
|
|
1973
1977
|
}
|
|
1974
1978
|
for (var i = 0; i < t.length; i++) {
|
|
1975
1979
|
var s = t[i];
|
|
1976
|
-
n?.has(s)
|
|
1980
|
+
if (n?.has(s)) {
|
|
1981
|
+
s.f |= ct;
|
|
1982
|
+
const l = document.createDocumentFragment();
|
|
1983
|
+
jr(s, l);
|
|
1984
|
+
} else q(t[i], r);
|
|
1977
1985
|
}
|
|
1978
1986
|
}
|
|
1979
1987
|
var At;
|
|
1980
|
-
function
|
|
1988
|
+
function ra(e, t, r, n, i, s = null) {
|
|
1981
1989
|
var l = e, o = /* @__PURE__ */ new Map();
|
|
1982
1990
|
if ((t & 4) !== 0) {
|
|
1983
1991
|
var f = e;
|
|
1984
|
-
l =
|
|
1992
|
+
l = A ? H(/* @__PURE__ */ De(f)) : f.appendChild(J());
|
|
1985
1993
|
}
|
|
1986
|
-
|
|
1987
|
-
var h = null,
|
|
1988
|
-
var
|
|
1989
|
-
return
|
|
1994
|
+
A && Qt();
|
|
1995
|
+
var h = null, _ = /* @__PURE__ */ Tr(() => {
|
|
1996
|
+
var g = r();
|
|
1997
|
+
return cn(g) ? g : g == null ? [] : Jt(g);
|
|
1990
1998
|
}), d, c = /* @__PURE__ */ new Map(), u = !0;
|
|
1991
|
-
function g
|
|
1992
|
-
(
|
|
1999
|
+
function p(g) {
|
|
2000
|
+
(v.effect.f & 16384) === 0 && (v.pending.delete(g), v.fallback = h, na(v, d, l, t, n), h !== null && (d.length === 0 ? (h.f & 33554432) === 0 ? Kt(h) : (h.f ^= ct, ut(h, null, l)) : Ge(h, () => {
|
|
1993
2001
|
h = null;
|
|
1994
2002
|
})));
|
|
1995
2003
|
}
|
|
1996
|
-
function m(
|
|
1997
|
-
|
|
1998
|
-
}
|
|
1999
|
-
var
|
|
2000
|
-
effect:
|
|
2001
|
-
d =
|
|
2002
|
-
var
|
|
2003
|
-
let
|
|
2004
|
-
|
|
2005
|
-
for (var
|
|
2006
|
-
|
|
2007
|
-
var
|
|
2004
|
+
function m(g) {
|
|
2005
|
+
v.pending.delete(g);
|
|
2006
|
+
}
|
|
2007
|
+
var v = {
|
|
2008
|
+
effect: Pr(() => {
|
|
2009
|
+
d = T(_);
|
|
2010
|
+
var g = d.length;
|
|
2011
|
+
let M = !1;
|
|
2012
|
+
A && _n(l) === "[!" != (g === 0) && (l = Dt(), H(l), pe(!1), M = !0);
|
|
2013
|
+
for (var N = /* @__PURE__ */ new Set(), S = k, P = Bn(), C = 0; C < g; C += 1) {
|
|
2014
|
+
A && x.nodeType === 8 && x.data === "]" && (l = x, M = !0, pe(!1));
|
|
2015
|
+
var U = d[C], be = n(U, C);
|
|
2008
2016
|
if (0)
|
|
2009
2017
|
var Dr;
|
|
2010
|
-
var
|
|
2011
|
-
|
|
2018
|
+
var F = u ? null : o.get(be);
|
|
2019
|
+
F ? (F.v && et(F.v, U), F.i && et(F.i, C), P && S.unskip_effect(F.e)) : (F = ia(o, u ? l : At ?? (At = J()), U, be, C, i, t, r), u || (F.e.f |= ct), o.set(be, F)), N.add(be);
|
|
2012
2020
|
}
|
|
2013
|
-
if (
|
|
2014
|
-
if (c.set(S,
|
|
2015
|
-
for (const [
|
|
2016
|
-
S.oncommit(
|
|
2017
|
-
} else
|
|
2018
|
-
|
|
2021
|
+
if (g === 0 && s && !h && (u ? h = Q(() => s(l)) : (h = Q(() => s(At ?? (At = J()))), h.f |= ct)), g > N.size && Di("", "", ""), A && g > 0 && H(Dt()), !u)
|
|
2022
|
+
if (c.set(S, N), P) {
|
|
2023
|
+
for (const [di, vi] of o) N.has(di) || S.skip_effect(vi.e);
|
|
2024
|
+
S.oncommit(p), S.ondiscard(m);
|
|
2025
|
+
} else p(S);
|
|
2026
|
+
M && pe(!0), T(_);
|
|
2019
2027
|
}),
|
|
2020
2028
|
flags: t,
|
|
2021
2029
|
items: o,
|
|
@@ -2023,76 +2031,76 @@ function Js(e, t, r, n, i, s = null) {
|
|
|
2023
2031
|
outrogroups: null,
|
|
2024
2032
|
fallback: h
|
|
2025
2033
|
};
|
|
2026
|
-
u = !1,
|
|
2034
|
+
u = !1, A && (l = x);
|
|
2027
2035
|
}
|
|
2028
2036
|
function st(e) {
|
|
2029
2037
|
for (; e !== null && (e.f & 32) === 0; ) e = e.next;
|
|
2030
2038
|
return e;
|
|
2031
2039
|
}
|
|
2032
|
-
function
|
|
2033
|
-
var s = (n & 8) !== 0, l = t.length, o = e.items, f = st(e.effect.first), h,
|
|
2034
|
-
if (s) for (
|
|
2035
|
-
|
|
2036
|
-
for (
|
|
2037
|
-
if (
|
|
2038
|
-
|
|
2039
|
-
if ((
|
|
2040
|
-
if (
|
|
2040
|
+
function na(e, t, r, n, i) {
|
|
2041
|
+
var s = (n & 8) !== 0, l = t.length, o = e.items, f = st(e.effect.first), h, _ = null, d, c = [], u = [], p, m, v, g;
|
|
2042
|
+
if (s) for (g = 0; g < l; g += 1)
|
|
2043
|
+
p = t[g], m = i(p, g), v = o.get(m).e, (v.f & 33554432) === 0 && (v.nodes?.a?.measure(), (d ?? (d = /* @__PURE__ */ new Set())).add(v));
|
|
2044
|
+
for (g = 0; g < l; g += 1) {
|
|
2045
|
+
if (p = t[g], m = i(p, g), v = o.get(m).e, e.outrogroups !== null) for (const F of e.outrogroups)
|
|
2046
|
+
F.pending.delete(v), F.done.delete(v);
|
|
2047
|
+
if ((v.f & 8192) !== 0 && (Kt(v), s && (v.nodes?.a?.unfix(), (d ?? (d = /* @__PURE__ */ new Set())).delete(v))), (v.f & 33554432) !== 0)
|
|
2048
|
+
if (v.f ^= ct, v === f) ut(v, null, r);
|
|
2041
2049
|
else {
|
|
2042
|
-
var
|
|
2043
|
-
|
|
2050
|
+
var M = _ ? _.next : f;
|
|
2051
|
+
v === e.effect.last && (e.effect.last = v.prev), v.prev && (v.prev.next = v.next), v.next && (v.next.prev = v.prev), ke(e, _, v), ke(e, v, M), ut(v, M, r), _ = v, c = [], u = [], f = st(_.next);
|
|
2044
2052
|
continue;
|
|
2045
2053
|
}
|
|
2046
|
-
if (
|
|
2047
|
-
if (h !== void 0 && h.has(
|
|
2054
|
+
if (v !== f) {
|
|
2055
|
+
if (h !== void 0 && h.has(v)) {
|
|
2048
2056
|
if (c.length < u.length) {
|
|
2049
|
-
var
|
|
2050
|
-
|
|
2051
|
-
var
|
|
2052
|
-
for (S = 0; S < c.length; S += 1) ut(c[S],
|
|
2057
|
+
var N = u[0], S;
|
|
2058
|
+
_ = N.prev;
|
|
2059
|
+
var P = c[0], C = c[c.length - 1];
|
|
2060
|
+
for (S = 0; S < c.length; S += 1) ut(c[S], N, r);
|
|
2053
2061
|
for (S = 0; S < u.length; S += 1) h.delete(u[S]);
|
|
2054
|
-
ke(e,
|
|
2062
|
+
ke(e, P.prev, C.next), ke(e, _, P), ke(e, C, N), f = N, _ = C, g -= 1, c = [], u = [];
|
|
2055
2063
|
} else
|
|
2056
|
-
h.delete(
|
|
2064
|
+
h.delete(v), ut(v, f, r), ke(e, v.prev, v.next), ke(e, v, _ === null ? e.effect.first : _.next), ke(e, _, v), _ = v;
|
|
2057
2065
|
continue;
|
|
2058
2066
|
}
|
|
2059
|
-
for (c = [], u = []; f !== null && f !==
|
|
2067
|
+
for (c = [], u = []; f !== null && f !== v; )
|
|
2060
2068
|
(h ?? (h = /* @__PURE__ */ new Set())).add(f), u.push(f), f = st(f.next);
|
|
2061
2069
|
if (f === null) continue;
|
|
2062
2070
|
}
|
|
2063
|
-
(
|
|
2071
|
+
(v.f & 33554432) === 0 && c.push(v), _ = v, f = st(v.next);
|
|
2064
2072
|
}
|
|
2065
2073
|
if (e.outrogroups !== null) {
|
|
2066
|
-
for (const
|
|
2074
|
+
for (const F of e.outrogroups) F.pending.size === 0 && (yr(e, Jt(F.done)), e.outrogroups?.delete(F));
|
|
2067
2075
|
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
2068
2076
|
}
|
|
2069
2077
|
if (f !== null || h !== void 0) {
|
|
2070
|
-
var
|
|
2078
|
+
var U = [];
|
|
2071
2079
|
if (h !== void 0)
|
|
2072
|
-
for (
|
|
2080
|
+
for (v of h) (v.f & 8192) === 0 && U.push(v);
|
|
2073
2081
|
for (; f !== null; )
|
|
2074
|
-
(f.f & 8192) === 0 && f !== e.fallback &&
|
|
2075
|
-
var
|
|
2076
|
-
if (
|
|
2082
|
+
(f.f & 8192) === 0 && f !== e.fallback && U.push(f), f = st(f.next);
|
|
2083
|
+
var be = U.length;
|
|
2084
|
+
if (be > 0) {
|
|
2077
2085
|
var Dr = (n & 4) !== 0 && l === 0 ? r : null;
|
|
2078
2086
|
if (s) {
|
|
2079
|
-
for (
|
|
2080
|
-
for (
|
|
2087
|
+
for (g = 0; g < be; g += 1) U[g].nodes?.a?.measure();
|
|
2088
|
+
for (g = 0; g < be; g += 1) U[g].nodes?.a?.fix();
|
|
2081
2089
|
}
|
|
2082
|
-
|
|
2090
|
+
ta(e, U, Dr);
|
|
2083
2091
|
}
|
|
2084
2092
|
}
|
|
2085
|
-
s &&
|
|
2093
|
+
s && we(() => {
|
|
2086
2094
|
if (d !== void 0)
|
|
2087
|
-
for (
|
|
2095
|
+
for (v of d) v.nodes?.a?.apply();
|
|
2088
2096
|
});
|
|
2089
2097
|
}
|
|
2090
|
-
function
|
|
2091
|
-
var f = (l & 1) !== 0 ? (l & 16) === 0 ? /* @__PURE__ */
|
|
2098
|
+
function ia(e, t, r, n, i, s, l, o) {
|
|
2099
|
+
var f = (l & 1) !== 0 ? (l & 16) === 0 ? /* @__PURE__ */ Fn(r, !1, !1) : Fe(r) : null, h = (l & 2) !== 0 ? Fe(i) : null;
|
|
2092
2100
|
return {
|
|
2093
2101
|
v: f,
|
|
2094
2102
|
i: h,
|
|
2095
|
-
e:
|
|
2103
|
+
e: Q(() => (s(t, f ?? r, h ?? i, o), () => {
|
|
2096
2104
|
e.delete(n);
|
|
2097
2105
|
}))
|
|
2098
2106
|
};
|
|
@@ -2100,7 +2108,7 @@ function Qs(e, t, r, n, i, s, l, o) {
|
|
|
2100
2108
|
function ut(e, t, r) {
|
|
2101
2109
|
if (e.nodes)
|
|
2102
2110
|
for (var n = e.nodes.start, i = e.nodes.end, s = t && (t.f & 33554432) === 0 ? t.nodes.start : r; n !== null; ) {
|
|
2103
|
-
var l = /* @__PURE__ */
|
|
2111
|
+
var l = /* @__PURE__ */ de(n);
|
|
2104
2112
|
if (s.before(n), n === i) return;
|
|
2105
2113
|
n = l;
|
|
2106
2114
|
}
|
|
@@ -2108,8 +2116,8 @@ function ut(e, t, r) {
|
|
|
2108
2116
|
function ke(e, t, r) {
|
|
2109
2117
|
t === null ? e.effect.first = r : t.next = r, r === null ? e.effect.last = t : r.prev = t;
|
|
2110
2118
|
}
|
|
2111
|
-
function
|
|
2112
|
-
|
|
2119
|
+
function sa(e, t) {
|
|
2120
|
+
Vn(() => {
|
|
2113
2121
|
var r = e.getRootNode(), n = r.host ? r : r.head ?? r.ownerDocument.head;
|
|
2114
2122
|
if (!n.querySelector("#" + t.hash)) {
|
|
2115
2123
|
const i = Rr("style");
|
|
@@ -2117,64 +2125,63 @@ function ea(e, t) {
|
|
|
2117
2125
|
}
|
|
2118
2126
|
});
|
|
2119
2127
|
}
|
|
2120
|
-
var
|
|
2128
|
+
var aa = /* @__PURE__ */ Symbol("is custom element"), la = /* @__PURE__ */ Symbol("is html"), oa = ji ? "link" : "LINK";
|
|
2121
2129
|
function He(e, t, r, n) {
|
|
2122
|
-
var i =
|
|
2123
|
-
if (
|
|
2130
|
+
var i = fa(e);
|
|
2131
|
+
if (A && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === oa)) {
|
|
2124
2132
|
n || void 0;
|
|
2125
2133
|
return;
|
|
2126
2134
|
}
|
|
2127
|
-
i[t] !== (i[t] = r) && (t === "loading" && (e[
|
|
2135
|
+
i[t] !== (i[t] = r) && (t === "loading" && (e[Ci] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && ua(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
|
|
2128
2136
|
}
|
|
2129
|
-
function
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
[
|
|
2133
|
-
[ra]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
|
|
2137
|
+
function fa(e) {
|
|
2138
|
+
return e[ur] ?? (e[ur] = {
|
|
2139
|
+
[aa]: e.nodeName.includes("-"),
|
|
2140
|
+
[la]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
|
|
2134
2141
|
});
|
|
2135
2142
|
}
|
|
2136
|
-
var
|
|
2137
|
-
function
|
|
2138
|
-
var t = e.getAttribute("is") || e.nodeName, r =
|
|
2143
|
+
var on = /* @__PURE__ */ new Map();
|
|
2144
|
+
function ua(e) {
|
|
2145
|
+
var t = e.getAttribute("is") || e.nodeName, r = on.get(t);
|
|
2139
2146
|
if (r) return r;
|
|
2140
|
-
|
|
2147
|
+
on.set(t, r = []);
|
|
2141
2148
|
for (var n, i = e, s = Element.prototype; s !== i; ) {
|
|
2142
|
-
n =
|
|
2149
|
+
n = Si(i);
|
|
2143
2150
|
for (var l in n) n[l].set && l !== "innerHTML" && l !== "textContent" && l !== "innerText" && r.push(l);
|
|
2144
|
-
i =
|
|
2151
|
+
i = dn(i);
|
|
2145
2152
|
}
|
|
2146
2153
|
return r;
|
|
2147
2154
|
}
|
|
2148
|
-
var
|
|
2155
|
+
var fi, Ve = /* @__PURE__ */ new WeakMap(), Xt = /* @__PURE__ */ new WeakMap(), ar = /* @__PURE__ */ new WeakMap(), fn = /* @__PURE__ */ new WeakSet(), ui = class {
|
|
2149
2156
|
constructor(e) {
|
|
2150
|
-
Er(this,
|
|
2157
|
+
Er(this, fn), y(this, Ve, /* @__PURE__ */ new WeakMap()), y(this, Xt, void 0), y(this, ar, void 0), w(ar, this, e);
|
|
2151
2158
|
}
|
|
2152
2159
|
observe(e, t) {
|
|
2153
2160
|
var r = a(Ve, this).get(e) || /* @__PURE__ */ new Set();
|
|
2154
|
-
return r.add(t), a(Ve, this).set(e, r), b(
|
|
2161
|
+
return r.add(t), a(Ve, this).set(e, r), b(fn, this, ca).call(this).observe(e, a(ar, this)), () => {
|
|
2155
2162
|
var n = a(Ve, this).get(e);
|
|
2156
|
-
n.delete(t), n.size === 0 && (a(Ve, this).delete(e), a(
|
|
2163
|
+
n.delete(t), n.size === 0 && (a(Ve, this).delete(e), a(Xt, this).unobserve(e));
|
|
2157
2164
|
};
|
|
2158
2165
|
}
|
|
2159
2166
|
};
|
|
2160
|
-
|
|
2161
|
-
function
|
|
2162
|
-
return a(
|
|
2167
|
+
fi = ui;
|
|
2168
|
+
function ca() {
|
|
2169
|
+
return a(Xt, this) ?? w(Xt, this, new ResizeObserver((e) => {
|
|
2163
2170
|
for (var t of e) {
|
|
2164
|
-
|
|
2171
|
+
fi.entries.set(t.target, t);
|
|
2165
2172
|
for (var r of a(Ve, this).get(t.target) || []) r(t);
|
|
2166
2173
|
}
|
|
2167
2174
|
}));
|
|
2168
2175
|
}
|
|
2169
|
-
|
|
2176
|
+
L(ui, "entries", /* @__PURE__ */ new WeakMap());
|
|
2170
2177
|
function lr(e, t) {
|
|
2171
2178
|
return e === t || e?.[dt] === t;
|
|
2172
2179
|
}
|
|
2173
|
-
function
|
|
2174
|
-
var i =
|
|
2175
|
-
return
|
|
2180
|
+
function da(e = {}, t, r, n) {
|
|
2181
|
+
var i = I.r, s = $;
|
|
2182
|
+
return Vn(() => {
|
|
2176
2183
|
var l, o;
|
|
2177
|
-
return
|
|
2184
|
+
return Ir(() => {
|
|
2178
2185
|
l = o, o = n?.() || [], Fr(() => {
|
|
2179
2186
|
lr(r(...o), e) || (t(e, ...o), l && lr(r(...l), e) && t(null, ...l));
|
|
2180
2187
|
});
|
|
@@ -2183,55 +2190,55 @@ function la(e = {}, t, r, n) {
|
|
|
2183
2190
|
for (; f !== i && f.parent !== null && f.parent.f & 33554432; ) f = f.parent;
|
|
2184
2191
|
const h = () => {
|
|
2185
2192
|
o && lr(r(...o), e) && t(null, ...o);
|
|
2186
|
-
},
|
|
2193
|
+
}, _ = f.teardown;
|
|
2187
2194
|
f.teardown = () => {
|
|
2188
|
-
h(),
|
|
2195
|
+
h(), _?.();
|
|
2189
2196
|
};
|
|
2190
2197
|
};
|
|
2191
2198
|
}), e;
|
|
2192
2199
|
}
|
|
2193
|
-
function
|
|
2194
|
-
var i = !
|
|
2200
|
+
function or(e, t, r, n) {
|
|
2201
|
+
var i = !er || (r & 2) !== 0, s = (r & 8) !== 0, l = (r & 16) !== 0, o = n, f = !0, h = void 0, _ = () => l && i ? (h ?? (h = /* @__PURE__ */ gt(n)), T(h)) : (f && (f = !1, o = l ? Fr(n) : n), o);
|
|
2195
2202
|
let d;
|
|
2196
2203
|
if (s) {
|
|
2197
2204
|
var c = dt in e || hn in e;
|
|
2198
2205
|
d = Re(e, t)?.set ?? (c && t in e ? (S) => e[t] = S : void 0);
|
|
2199
2206
|
}
|
|
2200
|
-
var u,
|
|
2201
|
-
s ? [u,
|
|
2207
|
+
var u, p = !1;
|
|
2208
|
+
s ? [u, p] = ss(() => e[t]) : u = e[t], u === void 0 && n !== void 0 && (u = _(), d && (i && zi(t), d(u)));
|
|
2202
2209
|
var m;
|
|
2203
2210
|
if (i ? m = () => {
|
|
2204
2211
|
var S = e[t];
|
|
2205
|
-
return S === void 0 ?
|
|
2212
|
+
return S === void 0 ? _() : (f = !0, S);
|
|
2206
2213
|
} : m = () => {
|
|
2207
2214
|
var S = e[t];
|
|
2208
2215
|
return S !== void 0 && (o = void 0), S === void 0 ? o : S;
|
|
2209
2216
|
}, i && (r & 4) === 0) return m;
|
|
2210
2217
|
if (d) {
|
|
2211
|
-
var
|
|
2212
|
-
return (function(S,
|
|
2213
|
-
return arguments.length > 0 ? ((!i || !
|
|
2218
|
+
var v = e.$$legacy;
|
|
2219
|
+
return (function(S, P) {
|
|
2220
|
+
return arguments.length > 0 ? ((!i || !P || v || p) && d(P ? m() : S), S) : m();
|
|
2214
2221
|
});
|
|
2215
2222
|
}
|
|
2216
|
-
var
|
|
2217
|
-
s &&
|
|
2218
|
-
var
|
|
2219
|
-
return (function(S,
|
|
2223
|
+
var g = !1, M = ((r & 1) !== 0 ? gt : Tr)(() => (g = !1, m()));
|
|
2224
|
+
s && T(M);
|
|
2225
|
+
var N = $;
|
|
2226
|
+
return (function(S, P) {
|
|
2220
2227
|
if (arguments.length > 0) {
|
|
2221
|
-
const
|
|
2222
|
-
return
|
|
2228
|
+
const C = P ? T(M) : i && s ? Ke(S) : S;
|
|
2229
|
+
return oe(M, C), g = !0, o !== void 0 && (o = C), S;
|
|
2223
2230
|
}
|
|
2224
|
-
return
|
|
2231
|
+
return ye && g || (N.f & 16384) !== 0 ? M.v : T(M);
|
|
2225
2232
|
});
|
|
2226
2233
|
}
|
|
2227
|
-
function
|
|
2228
|
-
return new
|
|
2234
|
+
function va(e) {
|
|
2235
|
+
return new ha(e);
|
|
2229
2236
|
}
|
|
2230
|
-
var Me = /* @__PURE__ */ new WeakMap(),
|
|
2237
|
+
var Me = /* @__PURE__ */ new WeakMap(), ae = /* @__PURE__ */ new WeakMap(), ha = class {
|
|
2231
2238
|
constructor(e) {
|
|
2232
|
-
y(this, Me, void 0), y(this,
|
|
2239
|
+
y(this, Me, void 0), y(this, ae, void 0);
|
|
2233
2240
|
var t = /* @__PURE__ */ new Map(), r = (i, s) => {
|
|
2234
|
-
var l = /* @__PURE__ */
|
|
2241
|
+
var l = /* @__PURE__ */ Fn(s, !1, !1);
|
|
2235
2242
|
return t.set(i, l), l;
|
|
2236
2243
|
};
|
|
2237
2244
|
const n = new Proxy({
|
|
@@ -2239,16 +2246,16 @@ var Me = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), fa =
|
|
|
2239
2246
|
$$events: {}
|
|
2240
2247
|
}, {
|
|
2241
2248
|
get(i, s) {
|
|
2242
|
-
return
|
|
2249
|
+
return T(t.get(s) ?? r(s, Reflect.get(i, s)));
|
|
2243
2250
|
},
|
|
2244
2251
|
has(i, s) {
|
|
2245
|
-
return s === hn ? !0 : (
|
|
2252
|
+
return s === hn ? !0 : (T(t.get(s) ?? r(s, Reflect.get(i, s))), Reflect.has(i, s));
|
|
2246
2253
|
},
|
|
2247
2254
|
set(i, s, l) {
|
|
2248
|
-
return
|
|
2255
|
+
return oe(t.get(s) ?? r(s, l), l), Reflect.set(i, s, l);
|
|
2249
2256
|
}
|
|
2250
2257
|
});
|
|
2251
|
-
w(
|
|
2258
|
+
w(ae, this, (e.hydrate ? Js : li)(e.component, {
|
|
2252
2259
|
target: e.target,
|
|
2253
2260
|
anchor: e.anchor,
|
|
2254
2261
|
props: n,
|
|
@@ -2256,25 +2263,25 @@ var Me = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), fa =
|
|
|
2256
2263
|
intro: e.intro ?? !1,
|
|
2257
2264
|
recover: e.recover,
|
|
2258
2265
|
transformError: e.transformError
|
|
2259
|
-
})), !
|
|
2260
|
-
for (const i of Object.keys(a(
|
|
2261
|
-
i === "$set" || i === "$destroy" || i === "$on" ||
|
|
2266
|
+
})), !me && (!e?.props?.$$host || e.sync === !1) && Rt(), w(Me, this, n.$$events);
|
|
2267
|
+
for (const i of Object.keys(a(ae, this)))
|
|
2268
|
+
i === "$set" || i === "$destroy" || i === "$on" || jt(this, i, {
|
|
2262
2269
|
get() {
|
|
2263
|
-
return a(
|
|
2270
|
+
return a(ae, this)[i];
|
|
2264
2271
|
},
|
|
2265
2272
|
set(s) {
|
|
2266
|
-
a(
|
|
2273
|
+
a(ae, this)[i] = s;
|
|
2267
2274
|
},
|
|
2268
2275
|
enumerable: !0
|
|
2269
2276
|
});
|
|
2270
|
-
a(
|
|
2277
|
+
a(ae, this).$set = (i) => {
|
|
2271
2278
|
Object.assign(n, i);
|
|
2272
|
-
}, a(
|
|
2273
|
-
|
|
2279
|
+
}, a(ae, this).$destroy = () => {
|
|
2280
|
+
Zs(a(ae, this));
|
|
2274
2281
|
};
|
|
2275
2282
|
}
|
|
2276
2283
|
$set(e) {
|
|
2277
|
-
a(
|
|
2284
|
+
a(ae, this).$set(e);
|
|
2278
2285
|
}
|
|
2279
2286
|
$on(e, t) {
|
|
2280
2287
|
a(Me, this)[e] = a(Me, this)[e] || [];
|
|
@@ -2284,12 +2291,12 @@ var Me = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), fa =
|
|
|
2284
2291
|
};
|
|
2285
2292
|
}
|
|
2286
2293
|
$destroy() {
|
|
2287
|
-
a(
|
|
2294
|
+
a(ae, this).$destroy();
|
|
2288
2295
|
}
|
|
2289
|
-
},
|
|
2290
|
-
typeof HTMLElement == "function" && (
|
|
2296
|
+
}, ci;
|
|
2297
|
+
typeof HTMLElement == "function" && (ci = class extends HTMLElement {
|
|
2291
2298
|
constructor(e, t, r) {
|
|
2292
|
-
super(),
|
|
2299
|
+
super(), L(this, "$$ctor", void 0), L(this, "$$s", void 0), L(this, "$$c", void 0), L(this, "$$cn", !1), L(this, "$$d", {}), L(this, "$$r", !1), L(this, "$$p_d", {}), L(this, "$$l", {}), L(this, "$$l_u", /* @__PURE__ */ new Map()), L(this, "$$me", void 0), L(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, r && (this.$$shadowRoot = this.attachShadow(r));
|
|
2293
2300
|
}
|
|
2294
2301
|
addEventListener(e, t, r) {
|
|
2295
2302
|
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
@@ -2309,18 +2316,18 @@ typeof HTMLElement == "function" && (ui = class extends HTMLElement {
|
|
|
2309
2316
|
let e = function(n) {
|
|
2310
2317
|
return (i) => {
|
|
2311
2318
|
const s = Rr("slot");
|
|
2312
|
-
n !== "default" && (s.name = n),
|
|
2319
|
+
n !== "default" && (s.name = n), Ct(i, s);
|
|
2313
2320
|
};
|
|
2314
2321
|
};
|
|
2315
2322
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
2316
|
-
const t = {}, r =
|
|
2323
|
+
const t = {}, r = _a(this);
|
|
2317
2324
|
for (const n of this.$$s) n in r && (n === "default" && !this.$$d.children ? (this.$$d.children = e(n), t.default = !0) : t[n] = e(n));
|
|
2318
2325
|
for (const n of this.attributes) {
|
|
2319
2326
|
const i = this.$$g_p(n.name);
|
|
2320
|
-
i in this.$$d || (this.$$d[i] =
|
|
2327
|
+
i in this.$$d || (this.$$d[i] = It(i, n.value, this.$$p_d, "toProp"));
|
|
2321
2328
|
}
|
|
2322
2329
|
for (const n in this.$$p_d) !(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
|
|
2323
|
-
this.$$c =
|
|
2330
|
+
this.$$c = va({
|
|
2324
2331
|
component: this.$$ctor,
|
|
2325
2332
|
target: this.$$shadowRoot || this,
|
|
2326
2333
|
props: {
|
|
@@ -2328,13 +2335,13 @@ typeof HTMLElement == "function" && (ui = class extends HTMLElement {
|
|
|
2328
2335
|
$$slots: t,
|
|
2329
2336
|
$$host: this
|
|
2330
2337
|
}
|
|
2331
|
-
}), this.$$me =
|
|
2332
|
-
|
|
2338
|
+
}), this.$$me = Os(() => {
|
|
2339
|
+
Ir(() => {
|
|
2333
2340
|
this.$$r = !0;
|
|
2334
|
-
for (const n of
|
|
2341
|
+
for (const n of Wt(this.$$c)) {
|
|
2335
2342
|
if (!this.$$p_d[n]?.reflect) continue;
|
|
2336
2343
|
this.$$d[n] = this.$$c[n];
|
|
2337
|
-
const i =
|
|
2344
|
+
const i = It(n, this.$$d[n], this.$$p_d, "toAttribute");
|
|
2338
2345
|
i == null ? this.removeAttribute(this.$$p_d[n].attribute || n) : this.setAttribute(this.$$p_d[n].attribute || n, i);
|
|
2339
2346
|
}
|
|
2340
2347
|
this.$$r = !1;
|
|
@@ -2348,7 +2355,7 @@ typeof HTMLElement == "function" && (ui = class extends HTMLElement {
|
|
|
2348
2355
|
}
|
|
2349
2356
|
}
|
|
2350
2357
|
attributeChangedCallback(e, t, r) {
|
|
2351
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
2358
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = It(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
2352
2359
|
}
|
|
2353
2360
|
disconnectedCallback() {
|
|
2354
2361
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -2356,10 +2363,10 @@ typeof HTMLElement == "function" && (ui = class extends HTMLElement {
|
|
|
2356
2363
|
});
|
|
2357
2364
|
}
|
|
2358
2365
|
$$g_p(e) {
|
|
2359
|
-
return
|
|
2366
|
+
return Wt(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
|
|
2360
2367
|
}
|
|
2361
2368
|
});
|
|
2362
|
-
function
|
|
2369
|
+
function It(e, t, r, n) {
|
|
2363
2370
|
const i = r[e]?.type;
|
|
2364
2371
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e]) return t;
|
|
2365
2372
|
if (n === "toAttribute") switch (i) {
|
|
@@ -2385,76 +2392,81 @@ function Ct(e, t, r, n) {
|
|
|
2385
2392
|
return t;
|
|
2386
2393
|
}
|
|
2387
2394
|
}
|
|
2388
|
-
function
|
|
2395
|
+
function _a(e) {
|
|
2389
2396
|
const t = {};
|
|
2390
2397
|
return e.childNodes.forEach((r) => {
|
|
2391
2398
|
t[r.slot || "default"] = !0;
|
|
2392
2399
|
}), t;
|
|
2393
2400
|
}
|
|
2394
|
-
function
|
|
2395
|
-
let l = class extends
|
|
2401
|
+
function pa(e, t, r, n, i, s) {
|
|
2402
|
+
let l = class extends ci {
|
|
2396
2403
|
constructor() {
|
|
2397
2404
|
super(e, r, i), this.$$p_d = t;
|
|
2398
2405
|
}
|
|
2399
2406
|
static get observedAttributes() {
|
|
2400
|
-
return
|
|
2407
|
+
return Wt(t).map((o) => (t[o].attribute || o).toLowerCase());
|
|
2401
2408
|
}
|
|
2402
2409
|
};
|
|
2403
|
-
return
|
|
2404
|
-
|
|
2410
|
+
return Wt(t).forEach((o) => {
|
|
2411
|
+
jt(l.prototype, o, {
|
|
2405
2412
|
get() {
|
|
2406
2413
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
2407
2414
|
},
|
|
2408
2415
|
set(f) {
|
|
2409
|
-
f =
|
|
2416
|
+
f = It(o, f, t), this.$$d[o] = f;
|
|
2410
2417
|
var h = this.$$c;
|
|
2411
2418
|
h && (Re(h, o)?.get ? h[o] = f : h.$set({ [o]: f }));
|
|
2412
2419
|
}
|
|
2413
2420
|
});
|
|
2414
2421
|
}), n.forEach((o) => {
|
|
2415
|
-
|
|
2422
|
+
jt(l.prototype, o, { get() {
|
|
2416
2423
|
return this.$$c?.[o];
|
|
2417
2424
|
} });
|
|
2418
2425
|
}), s && (l = s(l)), e.element = l, l;
|
|
2419
2426
|
}
|
|
2420
|
-
var
|
|
2421
|
-
ase: "
|
|
2422
|
-
bfi: "
|
|
2423
|
-
fsl: "
|
|
2424
|
-
gss: "
|
|
2425
|
-
mfs: "
|
|
2426
|
-
"eng-US": "
|
|
2427
|
-
"en-US": "
|
|
2427
|
+
var ga = "sign-language", Ua = "ase", ma = {
|
|
2428
|
+
ase: "tools.signLanguage.ase",
|
|
2429
|
+
bfi: "tools.signLanguage.bfi",
|
|
2430
|
+
fsl: "tools.signLanguage.fsl",
|
|
2431
|
+
gss: "tools.signLanguage.gss",
|
|
2432
|
+
mfs: "tools.signLanguage.mfs",
|
|
2433
|
+
"eng-US": "tools.signLanguage.signedEnglish",
|
|
2434
|
+
"en-US": "tools.signLanguage.signedEnglish"
|
|
2428
2435
|
};
|
|
2429
|
-
function
|
|
2430
|
-
const t = (e || "").trim();
|
|
2431
|
-
|
|
2436
|
+
function wa(e, t) {
|
|
2437
|
+
const r = un({ i18n: t }), n = (e || "").trim();
|
|
2438
|
+
if (!n) return r.t("tools.signLanguage.generic");
|
|
2439
|
+
const i = ma[n];
|
|
2440
|
+
return i ? r.t(i) : r.t("tools.signLanguage.unknown", { code: n });
|
|
2432
2441
|
}
|
|
2433
|
-
function
|
|
2442
|
+
function ya(e) {
|
|
2434
2443
|
if (!e) return null;
|
|
2435
2444
|
const t = nt(e.language), r = e.payload;
|
|
2436
2445
|
if (!r || typeof r != "object")
|
|
2437
2446
|
return nt(e.content) ? console.warn("[sign-language] card carries `content` but no `payload`; signing media must be a structured payload, so this card is ignored") : console.warn("[sign-language] card carries no `payload`; signing media lives in `payload` (a card written against the older `signLanguage` key needs re-importing), so this card is ignored"), null;
|
|
2438
|
-
const n = r.media
|
|
2447
|
+
const n = r.media;
|
|
2448
|
+
if (mi(n?.version))
|
|
2449
|
+
return console.warn(`[sign-language] card's media declares version ${String(n?.version)}, which this build does not render, so this card is ignored`), null;
|
|
2450
|
+
const i = yi(n?.sources);
|
|
2439
2451
|
if (i.length === 0) return null;
|
|
2440
2452
|
const s = nt(n?.poster);
|
|
2441
2453
|
return {
|
|
2442
2454
|
signLang: nt(r.signLang) ?? t,
|
|
2443
2455
|
sources: i,
|
|
2444
|
-
poster: s &&
|
|
2456
|
+
poster: s && gi(s) ? s : void 0,
|
|
2445
2457
|
label: nt(n?.label),
|
|
2446
|
-
fragment:
|
|
2458
|
+
fragment: wi(r.fragment)
|
|
2447
2459
|
};
|
|
2448
2460
|
}
|
|
2449
|
-
function
|
|
2461
|
+
function ba(e, t) {
|
|
2450
2462
|
if (!e.signLang) return !0;
|
|
2451
2463
|
const r = (t || "").trim();
|
|
2452
2464
|
return r ? e.signLang.toLowerCase() === r.toLowerCase() : !0;
|
|
2453
2465
|
}
|
|
2454
|
-
function
|
|
2455
|
-
return e?.catalog ===
|
|
2466
|
+
function $a(e) {
|
|
2467
|
+
return e?.catalog === ga;
|
|
2456
2468
|
}
|
|
2457
|
-
var
|
|
2469
|
+
var ka = 0, Sa = /* @__PURE__ */ ai("<source/>"), Ea = /* @__PURE__ */ ai('<figure class="pie-tool-sign-language svelte-detmj8"><video class="pie-tool-sign-language__video svelte-detmj8" controls="" playsinline="" preload="metadata"></video> <figcaption class="pie-tool-sign-language__caption svelte-detmj8"> </figcaption></figure>', 2), xa = {
|
|
2458
2470
|
hash: "svelte-detmj8",
|
|
2459
2471
|
code: `:host {display:block;min-width:0;}.pie-tool-sign-language.svelte-detmj8 {display:flex;flex-direction:column;gap:0.5rem;margin:0;min-width:0;}.pie-tool-sign-language__video.svelte-detmj8 {width:100%;
|
|
2460
2472
|
/* Signing needs height for hands and face, so the recording's own frame
|
|
@@ -2463,89 +2475,80 @@ var ma = 0, wa = /* @__PURE__ */ si("<source/>"), ya = /* @__PURE__ */ si('<figu
|
|
|
2463
2475
|
width percentage alone either wastes space or makes signing
|
|
2464
2476
|
unreadable. */aspect-ratio:var(--pie-section-player-item-media-aspect-ratio, 3 / 4);min-height:var(--pie-section-player-item-media-min-height, 220px);max-height:var(--pie-section-player-item-media-max-height, 60vh);object-fit:contain;border-radius:var(--pie-section-player-card-radius, 8px);background:var(--pie-blue-grey-900, #111827);}.pie-tool-sign-language__caption.svelte-detmj8 {font-size:0.8125rem;color:var(--pie-text-light, var(--pie-text, #111827));}`
|
|
2465
2477
|
};
|
|
2466
|
-
function
|
|
2467
|
-
|
|
2468
|
-
let r =
|
|
2469
|
-
const
|
|
2470
|
-
...
|
|
2471
|
-
src: hi(
|
|
2478
|
+
function Ma(e, t) {
|
|
2479
|
+
mn(t, !0), sa(e, xa);
|
|
2480
|
+
let r = or(t, "media", 7, null), n = or(t, "ttsService", 7, null), i = or(t, "i18n", 7, void 0), s = /* @__PURE__ */ _e(null);
|
|
2481
|
+
const l = `pie-tool-sign-language-${ka += 1}`, o = /* @__PURE__ */ rr(() => wa(r()?.signLang, i())), f = /* @__PURE__ */ rr(() => r()?.label || un({ i18n: i() }).t("tools.signLanguage.regionA11y", { language: T(o) })), h = /* @__PURE__ */ rr(() => (r()?.sources ?? []).map((v) => ({
|
|
2482
|
+
...v,
|
|
2483
|
+
src: hi(v.src, r()?.fragment)
|
|
2472
2484
|
})));
|
|
2473
|
-
function
|
|
2474
|
-
|
|
2475
|
-
}
|
|
2476
|
-
function v() {
|
|
2477
|
-
if (n())
|
|
2478
|
-
try {
|
|
2479
|
-
n().isPlaying() && n().pause();
|
|
2480
|
-
} catch {
|
|
2481
|
-
}
|
|
2485
|
+
function _() {
|
|
2486
|
+
T(s) && !T(s).paused && T(s).pause();
|
|
2482
2487
|
}
|
|
2483
2488
|
function d() {
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
};
|
|
2496
|
-
return n().onStateChange(s, p), () => {
|
|
2497
|
-
try {
|
|
2498
|
-
n().offStateChange(s, p);
|
|
2499
|
-
} catch {
|
|
2500
|
-
}
|
|
2501
|
-
};
|
|
2502
|
-
});
|
|
2503
|
-
var u = {
|
|
2489
|
+
bi(n());
|
|
2490
|
+
}
|
|
2491
|
+
Qr(() => {
|
|
2492
|
+
if (T(s))
|
|
2493
|
+
return pi(T(s), r()?.fragment, _);
|
|
2494
|
+
}), Qr(() => _i({
|
|
2495
|
+
ttsService: n(),
|
|
2496
|
+
listenerId: l,
|
|
2497
|
+
silence: _
|
|
2498
|
+
}));
|
|
2499
|
+
var c = {
|
|
2504
2500
|
get media() {
|
|
2505
2501
|
return r();
|
|
2506
2502
|
},
|
|
2507
|
-
set media(
|
|
2508
|
-
r(
|
|
2503
|
+
set media(v = null) {
|
|
2504
|
+
r(v), Rt();
|
|
2509
2505
|
},
|
|
2510
2506
|
get ttsService() {
|
|
2511
2507
|
return n();
|
|
2512
2508
|
},
|
|
2513
|
-
set ttsService(
|
|
2514
|
-
n(
|
|
2515
|
-
}
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2509
|
+
set ttsService(v = null) {
|
|
2510
|
+
n(v), Rt();
|
|
2511
|
+
},
|
|
2512
|
+
get i18n() {
|
|
2513
|
+
return i();
|
|
2514
|
+
},
|
|
2515
|
+
set i18n(v = void 0) {
|
|
2516
|
+
i(v), Rt();
|
|
2517
|
+
}
|
|
2518
|
+
}, u = Bs(), p = Ms(u), m = (v) => {
|
|
2519
|
+
var g = Ea(), M = Zr(g);
|
|
2520
|
+
M.muted = !0, ra(M, 21, () => T(h), (P) => P.src, (P, C) => {
|
|
2521
|
+
var U = Sa();
|
|
2522
|
+
en(() => {
|
|
2523
|
+
He(U, "src", T(C).src), He(U, "type", T(C).type || void 0);
|
|
2524
|
+
}), Ct(P, U);
|
|
2525
|
+
}), tr(M), da(M, (P) => oe(s, P), () => T(s));
|
|
2526
|
+
var N = Ts(M, 2), S = Zr(N, !0);
|
|
2527
|
+
tr(N), tr(g), en(() => {
|
|
2528
|
+
He(g, "data-pie-sign-language", r().signLang || void 0), He(g, "data-pie-catalog-id", r().catalogId || void 0), He(M, "aria-label", T(f)), He(M, "poster", r().poster || void 0), Xs(S, T(o));
|
|
2529
|
+
}), qs("play", M, d), Ct(v, g);
|
|
2528
2530
|
};
|
|
2529
|
-
return
|
|
2530
|
-
r() &&
|
|
2531
|
-
}),
|
|
2531
|
+
return ea(p, (v) => {
|
|
2532
|
+
r() && T(h).length > 0 && v(m);
|
|
2533
|
+
}), Ct(e, u), wn(c);
|
|
2532
2534
|
}
|
|
2533
|
-
customElements.define("pie-tool-sign-language",
|
|
2535
|
+
customElements.define("pie-tool-sign-language", pa(Ma, {
|
|
2534
2536
|
media: { type: "Object" },
|
|
2535
|
-
ttsService: { type: "Object" }
|
|
2537
|
+
ttsService: { type: "Object" },
|
|
2538
|
+
i18n: {}
|
|
2536
2539
|
}, [], [], { mode: "open" }));
|
|
2537
|
-
var
|
|
2538
|
-
function
|
|
2540
|
+
var fr = "signLanguage";
|
|
2541
|
+
function Ta(e) {
|
|
2539
2542
|
const t = e.requestedSignLang?.trim() || "ase", r = e.catalogs.cards.flatMap(({ catalogId: n, card: i }) => {
|
|
2540
|
-
if (
|
|
2541
|
-
const s =
|
|
2543
|
+
if (!$a(i)) return [];
|
|
2544
|
+
const s = ya(i);
|
|
2542
2545
|
return s ? [{
|
|
2543
2546
|
catalogId: n,
|
|
2544
2547
|
media: s
|
|
2545
2548
|
}] : [];
|
|
2546
2549
|
});
|
|
2547
2550
|
for (const n of r)
|
|
2548
|
-
if (n.media.signLang &&
|
|
2551
|
+
if (n.media.signLang && ba(n.media, t))
|
|
2549
2552
|
return {
|
|
2550
2553
|
...n.media,
|
|
2551
2554
|
catalogId: n.catalogId
|
|
@@ -2558,35 +2561,35 @@ function ka(e) {
|
|
|
2558
2561
|
};
|
|
2559
2562
|
return null;
|
|
2560
2563
|
}
|
|
2561
|
-
function
|
|
2564
|
+
function Aa(e) {
|
|
2562
2565
|
if (!e || typeof e != "object") return;
|
|
2563
2566
|
const t = e.signLang;
|
|
2564
2567
|
if (typeof t == "string" && t.trim()) return t.trim();
|
|
2565
2568
|
}
|
|
2566
|
-
function
|
|
2567
|
-
return e.catalogs ?
|
|
2569
|
+
function La(e) {
|
|
2570
|
+
return e.catalogs ? Ta({
|
|
2568
2571
|
catalogs: e.catalogs,
|
|
2569
|
-
requestedSignLang:
|
|
2572
|
+
requestedSignLang: Aa(e.parameters)
|
|
2570
2573
|
}) : null;
|
|
2571
2574
|
}
|
|
2572
|
-
var
|
|
2573
|
-
toolId:
|
|
2575
|
+
var Oa = "content-media", Ra = "pie-tool-sign-language", Ga = {
|
|
2576
|
+
toolId: fr,
|
|
2574
2577
|
name: "Sign Language",
|
|
2575
2578
|
description: "Signed translation, docked beside the content it interprets",
|
|
2576
2579
|
supportedLevels: ["item", "passage"],
|
|
2577
|
-
pnpSupportIds: [
|
|
2580
|
+
pnpSupportIds: [fr],
|
|
2578
2581
|
activation: "region",
|
|
2579
|
-
surfaces: [
|
|
2582
|
+
surfaces: [Oa],
|
|
2580
2583
|
requiresAuthoredContent: { resolve(e) {
|
|
2581
|
-
return
|
|
2584
|
+
return La(e);
|
|
2582
2585
|
} },
|
|
2583
2586
|
renderSurface(e) {
|
|
2584
2587
|
const t = e.content;
|
|
2585
2588
|
if (!t) return null;
|
|
2586
|
-
const r = e.componentOverrides ?? {}, n =
|
|
2589
|
+
const r = e.componentOverrides ?? {}, n = $i(e.toolId, {
|
|
2587
2590
|
...r,
|
|
2588
2591
|
toolTagMap: {
|
|
2589
|
-
[
|
|
2592
|
+
[fr]: Ra,
|
|
2590
2593
|
...r.toolTagMap
|
|
2591
2594
|
}
|
|
2592
2595
|
});
|
|
@@ -2602,17 +2605,17 @@ var xa = "content-media", Ma = "pie-tool-sign-language", Wa = {
|
|
|
2602
2605
|
}
|
|
2603
2606
|
};
|
|
2604
2607
|
export {
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2608
|
+
Ua as AMERICAN_SIGN_LANGUAGE,
|
|
2609
|
+
Oa as CONTENT_MEDIA_SURFACE,
|
|
2610
|
+
ga as SIGN_LANGUAGE_CATALOG_TYPE,
|
|
2611
|
+
Ra as SIGN_LANGUAGE_ELEMENT_TAG,
|
|
2612
|
+
fr as SIGN_LANGUAGE_FEATURE_ID,
|
|
2613
|
+
wa as describeSignLanguage,
|
|
2614
|
+
$a as isSignLanguageCard,
|
|
2615
|
+
ba as matchesRequestedSignLanguage,
|
|
2616
|
+
Aa as resolveRequestedSignLanguage,
|
|
2617
|
+
Ta as resolveSignLanguageAlternate,
|
|
2618
|
+
La as resolveSignLanguageContent,
|
|
2619
|
+
ya as resolveSignLanguageMedia,
|
|
2620
|
+
Ga as signLanguageRegistration
|
|
2618
2621
|
};
|