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