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