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