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