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