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