@everymatrix/loyalty-level 0.1.23 → 0.1.24
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/components/{LoyaltyLevel-CjQ4FcTN.cjs → LoyaltyLevel-5WT-oync.cjs} +1 -1
- package/components/{LoyaltyLevel-6SRDVW-R.js → LoyaltyLevel-BY67XiNt.js} +2 -2
- package/components/{LoyaltyLevel-BxI5oYmq.js → LoyaltyLevel-C3t8qaRE.js} +2 -2
- package/components/{LoyaltyLevel-BqERj3Ud.cjs → LoyaltyLevel-Ui6VYZoi.cjs} +1 -1
- package/components/LoyaltyPagination-4kQAmkN6.cjs +14 -0
- package/components/{LoyaltyPagination-DW8-2NaL.js → LoyaltyPagination-Dt2pqqFP.js} +925 -899
- package/components/LoyaltyPagination-DuXUw0Ef.cjs +14 -0
- package/components/{LoyaltyPagination-N19BLhCN.js → LoyaltyPagination-gA7hsvXk.js} +1721 -1695
- package/es2015/loyalty-level.cjs +1 -1
- package/es2015/loyalty-level.js +2 -2
- package/esnext/loyalty-level.cjs +1 -1
- package/esnext/loyalty-level.js +2 -2
- package/package.json +1 -1
- package/components/LoyaltyPagination-DI7y2xkv.cjs +0 -14
- package/components/LoyaltyPagination-DdmjCfyc.cjs +0 -14
|
@@ -5,27 +5,27 @@ typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
|
5
5
|
} });
|
|
6
6
|
const Ns = "5";
|
|
7
7
|
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(Ns);
|
|
8
|
-
const Ps = 1, $s = 2, Ls = 16, Is = 1, Bs = 2,
|
|
9
|
-
var
|
|
8
|
+
const Ps = 1, $s = 2, Ls = 16, Is = 1, Bs = 2, ui = "[", dn = "[!", Bn = "[?", pn = "]", tt = {}, Y = Symbol("uninitialized"), li = "http://www.w3.org/1999/xhtml", Cs = "http://www.w3.org/2000/svg", Rs = "http://www.w3.org/1998/Math/MathML", fi = !1;
|
|
9
|
+
var hi = Array.isArray, Ds = Array.prototype.indexOf, rr = Array.prototype.includes, vr = Array.from, nr = Object.keys, dt = Object.defineProperty, ft = Object.getOwnPropertyDescriptor, ci = Object.getOwnPropertyDescriptors, Us = Object.prototype, Fs = Array.prototype, vn = Object.getPrototypeOf, Cn = Object.isExtensible;
|
|
10
10
|
const Re = () => {
|
|
11
11
|
};
|
|
12
|
-
function
|
|
12
|
+
function di(e) {
|
|
13
13
|
for (var t = 0; t < e.length; t++)
|
|
14
14
|
e[t]();
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function pi() {
|
|
17
17
|
var e, t, r = new Promise((n, i) => {
|
|
18
18
|
e = n, t = i;
|
|
19
19
|
});
|
|
20
20
|
return { promise: r, resolve: e, reject: t };
|
|
21
21
|
}
|
|
22
|
-
const
|
|
22
|
+
const K = 2, pt = 4, Vt = 8, vi = 1 << 24, ye = 16, me = 32, $e = 64, kr = 128, _n = 256, we = 512, Z = 1024, W = 2048, _e = 4096, ie = 8192, se = 16384, nt = 32768, ir = 1 << 25, vt = 65536, sr = 1 << 17, Gs = 1 << 18, it = 1 << 19, _i = 1 << 20, Be = 1 << 25, ar = 1 << 21, ht = 1 << 22, Xe = 1 << 23, ct = Symbol("$state"), mi = Symbol("component"), ks = Symbol("legacy props"), js = Symbol(""), gi = Symbol("attributes"), jr = Symbol("class"), Vs = Symbol("style"), Vr = Symbol("text"), Xt = new class extends Error {
|
|
23
23
|
name = "StaleReactionError";
|
|
24
24
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
25
25
|
}(), Xs = (
|
|
26
26
|
// We gotta write it like this because after downleveling the pure comment may end up in the wrong location
|
|
27
27
|
!!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml")
|
|
28
|
-
), _r = 3,
|
|
28
|
+
), _r = 3, Tt = 8;
|
|
29
29
|
function Ws() {
|
|
30
30
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
31
31
|
}
|
|
@@ -40,18 +40,18 @@ function Ce(e) {
|
|
|
40
40
|
L = e;
|
|
41
41
|
}
|
|
42
42
|
let $;
|
|
43
|
-
function
|
|
43
|
+
function ue(e) {
|
|
44
44
|
if (e === null)
|
|
45
|
-
throw Wt(),
|
|
45
|
+
throw Wt(), tt;
|
|
46
46
|
return $ = e;
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
return
|
|
48
|
+
function _t() {
|
|
49
|
+
return ue(/* @__PURE__ */ Se($));
|
|
50
50
|
}
|
|
51
51
|
function Xr(e) {
|
|
52
52
|
if (L) {
|
|
53
53
|
if (/* @__PURE__ */ Se($) !== null)
|
|
54
|
-
throw Wt(),
|
|
54
|
+
throw Wt(), tt;
|
|
55
55
|
$ = e;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -65,15 +65,15 @@ function Ys(e = 1) {
|
|
|
65
65
|
}
|
|
66
66
|
function or(e = !0) {
|
|
67
67
|
for (var t = 0, r = $; ; ) {
|
|
68
|
-
if (r.nodeType ===
|
|
68
|
+
if (r.nodeType === Tt) {
|
|
69
69
|
var n = (
|
|
70
70
|
/** @type {Comment} */
|
|
71
71
|
r.data
|
|
72
72
|
);
|
|
73
|
-
if (n ===
|
|
73
|
+
if (n === pn) {
|
|
74
74
|
if (t === 0) return r;
|
|
75
75
|
t -= 1;
|
|
76
|
-
} else (n ===
|
|
76
|
+
} else (n === ui || n === dn || // "[1", "[2", etc. for if blocks
|
|
77
77
|
n[0] === "[" && !isNaN(Number(n.slice(1)))) && (t += 1);
|
|
78
78
|
}
|
|
79
79
|
var i = (
|
|
@@ -83,22 +83,22 @@ function or(e = !0) {
|
|
|
83
83
|
e && r.remove(), r = i;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
if (!e || e.nodeType !==
|
|
88
|
-
throw Wt(),
|
|
86
|
+
function bi(e) {
|
|
87
|
+
if (!e || e.nodeType !== Tt)
|
|
88
|
+
throw Wt(), tt;
|
|
89
89
|
return (
|
|
90
90
|
/** @type {Comment} */
|
|
91
91
|
e.data
|
|
92
92
|
);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function yi(e) {
|
|
95
95
|
return e === this.v;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function mn(e, t) {
|
|
98
98
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
99
99
|
}
|
|
100
|
-
function
|
|
101
|
-
return !
|
|
100
|
+
function Ei(e) {
|
|
101
|
+
return !mn(e, this.v);
|
|
102
102
|
}
|
|
103
103
|
function Zs() {
|
|
104
104
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
@@ -133,13 +133,13 @@ function ia() {
|
|
|
133
133
|
function sa() {
|
|
134
134
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
135
135
|
}
|
|
136
|
-
let aa = !1,
|
|
137
|
-
function
|
|
138
|
-
|
|
136
|
+
let aa = !1, ae = null;
|
|
137
|
+
function mt(e) {
|
|
138
|
+
ae = e;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
|
|
142
|
-
p:
|
|
140
|
+
function gn(e, t = !1, r) {
|
|
141
|
+
ae = {
|
|
142
|
+
p: ae,
|
|
143
143
|
i: !1,
|
|
144
144
|
c: null,
|
|
145
145
|
e: null,
|
|
@@ -147,184 +147,59 @@ function mn(e, t = !1, r) {
|
|
|
147
147
|
x: null,
|
|
148
148
|
r: (
|
|
149
149
|
/** @type {Effect} */
|
|
150
|
-
|
|
150
|
+
H
|
|
151
151
|
),
|
|
152
152
|
l: null
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function bn(e) {
|
|
156
156
|
var t = (
|
|
157
157
|
/** @type {ComponentContext} */
|
|
158
|
-
|
|
158
|
+
ae
|
|
159
159
|
), r = t.e;
|
|
160
160
|
if (r !== null) {
|
|
161
161
|
t.e = null;
|
|
162
162
|
for (var n of r)
|
|
163
163
|
Fi(n);
|
|
164
164
|
}
|
|
165
|
-
return e !== void 0 && (t.x = e), t.i = !0,
|
|
165
|
+
return e !== void 0 && (t.x = e), t.i = !0, ae = t.p, yn(e);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
168
|
-
return
|
|
167
|
+
function yn(e = {}) {
|
|
168
|
+
return dt(e, mi, { value: !0 }), e;
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function xi() {
|
|
171
171
|
return !0;
|
|
172
172
|
}
|
|
173
|
-
let
|
|
174
|
-
function
|
|
175
|
-
var e =
|
|
176
|
-
|
|
173
|
+
let qe = [];
|
|
174
|
+
function wi() {
|
|
175
|
+
var e = qe;
|
|
176
|
+
qe = [], di(e);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
if (
|
|
180
|
-
var t =
|
|
178
|
+
function Je(e) {
|
|
179
|
+
if (qe.length === 0 && !Rt) {
|
|
180
|
+
var t = qe;
|
|
181
181
|
queueMicrotask(() => {
|
|
182
|
-
t ===
|
|
182
|
+
t === qe && wi();
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
|
-
|
|
185
|
+
qe.push(e);
|
|
186
186
|
}
|
|
187
187
|
function oa() {
|
|
188
|
-
for (;
|
|
189
|
-
|
|
188
|
+
for (; qe.length > 0; )
|
|
189
|
+
wi();
|
|
190
190
|
}
|
|
191
191
|
const ua = -7169;
|
|
192
192
|
function V(e, t) {
|
|
193
193
|
e.f = e.f & ua | t;
|
|
194
194
|
}
|
|
195
|
-
function
|
|
196
|
-
e.f &
|
|
197
|
-
}
|
|
198
|
-
function wi(e) {
|
|
199
|
-
if (e !== null)
|
|
200
|
-
for (const t of e)
|
|
201
|
-
!(t.f & J) || !(t.f & tt) || (t.f ^= tt, wi(
|
|
202
|
-
/** @type {Derived} */
|
|
203
|
-
t.deps
|
|
204
|
-
));
|
|
195
|
+
function En(e) {
|
|
196
|
+
e.f & we || e.deps === null ? V(e, Z) : V(e, _e);
|
|
205
197
|
}
|
|
206
198
|
function Ti(e, t, r) {
|
|
207
|
-
e.f &
|
|
208
|
-
}
|
|
209
|
-
function En(e, t, r) {
|
|
210
|
-
if (e == null)
|
|
211
|
-
return t(void 0), r && r(void 0), Re;
|
|
212
|
-
const n = xr(
|
|
213
|
-
() => e.subscribe(
|
|
214
|
-
t,
|
|
215
|
-
// @ts-expect-error
|
|
216
|
-
r
|
|
217
|
-
)
|
|
218
|
-
);
|
|
219
|
-
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
220
|
-
}
|
|
221
|
-
const at = [];
|
|
222
|
-
function la(e, t) {
|
|
223
|
-
return {
|
|
224
|
-
subscribe: mr(e, t).subscribe
|
|
225
|
-
};
|
|
199
|
+
e.f & W ? t.add(e) : e.f & _e && r.add(e), V(e, Z);
|
|
226
200
|
}
|
|
227
|
-
function mr(e
|
|
228
|
-
|
|
229
|
-
const n = /* @__PURE__ */ new Set();
|
|
230
|
-
function i(o) {
|
|
231
|
-
if (_n(e, o) && (e = o, r)) {
|
|
232
|
-
const u = !at.length;
|
|
233
|
-
for (const l of n)
|
|
234
|
-
l[1](), at.push(l, e);
|
|
235
|
-
if (u) {
|
|
236
|
-
for (let l = 0; l < at.length; l += 2)
|
|
237
|
-
at[l][0](at[l + 1]);
|
|
238
|
-
at.length = 0;
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
function s(o) {
|
|
243
|
-
i(o(
|
|
244
|
-
/** @type {T} */
|
|
245
|
-
e
|
|
246
|
-
));
|
|
247
|
-
}
|
|
248
|
-
function a(o, u = Re) {
|
|
249
|
-
const l = [o, u];
|
|
250
|
-
return n.add(l), n.size === 1 && (r = t(i, s) || Re), o(
|
|
251
|
-
/** @type {T} */
|
|
252
|
-
e
|
|
253
|
-
), () => {
|
|
254
|
-
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
255
|
-
};
|
|
256
|
-
}
|
|
257
|
-
return { set: i, update: s, subscribe: a };
|
|
258
|
-
}
|
|
259
|
-
function At(e, t, r) {
|
|
260
|
-
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
261
|
-
if (!i.every(Boolean))
|
|
262
|
-
throw new Error("derived() expects stores as input, got a falsy value");
|
|
263
|
-
const s = t.length < 2;
|
|
264
|
-
return la(r, (a, o) => {
|
|
265
|
-
let u = !1;
|
|
266
|
-
const l = [];
|
|
267
|
-
let f = 0, h = Re;
|
|
268
|
-
const d = () => {
|
|
269
|
-
if (f)
|
|
270
|
-
return;
|
|
271
|
-
h();
|
|
272
|
-
const c = t(n ? l[0] : l, a, o);
|
|
273
|
-
s ? a(c) : h = typeof c == "function" ? c : Re;
|
|
274
|
-
}, p = i.map(
|
|
275
|
-
(c, y) => En(
|
|
276
|
-
c,
|
|
277
|
-
(I) => {
|
|
278
|
-
l[y] = I, f &= ~(1 << y), u && d();
|
|
279
|
-
},
|
|
280
|
-
() => {
|
|
281
|
-
f |= 1 << y;
|
|
282
|
-
}
|
|
283
|
-
)
|
|
284
|
-
);
|
|
285
|
-
return u = !0, d(), function() {
|
|
286
|
-
ci(p), h(), u = !1;
|
|
287
|
-
};
|
|
288
|
-
});
|
|
289
|
-
}
|
|
290
|
-
function fa(e) {
|
|
291
|
-
let t;
|
|
292
|
-
return En(e, (r) => t = r)(), t;
|
|
293
|
-
}
|
|
294
|
-
let Wr = Symbol("unmounted");
|
|
295
|
-
function ha(e, t, r) {
|
|
296
|
-
const n = r[t] ??= {
|
|
297
|
-
store: null,
|
|
298
|
-
source: /* @__PURE__ */ Sn(void 0),
|
|
299
|
-
unsubscribe: Re
|
|
300
|
-
};
|
|
301
|
-
if (n.store !== e && !(Wr in r))
|
|
302
|
-
if (n.unsubscribe(), n.store = e ?? null, e == null)
|
|
303
|
-
n.source.v = void 0, n.unsubscribe = Re;
|
|
304
|
-
else {
|
|
305
|
-
var i = !0;
|
|
306
|
-
n.unsubscribe = En(e, (s) => {
|
|
307
|
-
i ? n.source.v = s : W(n.source, s);
|
|
308
|
-
}), i = !1;
|
|
309
|
-
}
|
|
310
|
-
return e && Wr in r ? fa(e) : x(n.source);
|
|
311
|
-
}
|
|
312
|
-
function ca() {
|
|
313
|
-
const e = {};
|
|
314
|
-
function t() {
|
|
315
|
-
Ui(() => {
|
|
316
|
-
for (var r in e)
|
|
317
|
-
e[r].unsubscribe();
|
|
318
|
-
pt(e, Wr, {
|
|
319
|
-
enumerable: !1,
|
|
320
|
-
value: !0
|
|
321
|
-
});
|
|
322
|
-
});
|
|
323
|
-
}
|
|
324
|
-
return [e, t];
|
|
325
|
-
}
|
|
326
|
-
function gr(e) {
|
|
327
|
-
var t = O, r = A;
|
|
201
|
+
function mr(e) {
|
|
202
|
+
var t = O, r = H;
|
|
328
203
|
ge(null), Le(null);
|
|
329
204
|
try {
|
|
330
205
|
return e();
|
|
@@ -332,8 +207,8 @@ function gr(e) {
|
|
|
332
207
|
ge(t), Le(r);
|
|
333
208
|
}
|
|
334
209
|
}
|
|
335
|
-
function
|
|
336
|
-
const i =
|
|
210
|
+
function la(e, t, r, n) {
|
|
211
|
+
const i = gr;
|
|
337
212
|
var s = e.filter((p) => !p.settled), a = t.map(i);
|
|
338
213
|
if (r.length === 0 && s.length === 0) {
|
|
339
214
|
n(a);
|
|
@@ -341,10 +216,10 @@ function da(e, t, r, n) {
|
|
|
341
216
|
}
|
|
342
217
|
var o = (
|
|
343
218
|
/** @type {Effect} */
|
|
344
|
-
|
|
345
|
-
), u =
|
|
219
|
+
H
|
|
220
|
+
), u = fa(), l = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((p) => p.promise)) : null;
|
|
346
221
|
function f(p) {
|
|
347
|
-
if (!(o.f &
|
|
222
|
+
if (!(o.f & se)) {
|
|
348
223
|
u();
|
|
349
224
|
try {
|
|
350
225
|
n([...a, ...p]);
|
|
@@ -360,31 +235,31 @@ function da(e, t, r, n) {
|
|
|
360
235
|
return;
|
|
361
236
|
}
|
|
362
237
|
function d() {
|
|
363
|
-
Promise.all(r.map((p) => /* @__PURE__ */
|
|
238
|
+
Promise.all(r.map((p) => /* @__PURE__ */ ha(p))).then(f).catch((p) => He(p, o)).finally(h);
|
|
364
239
|
}
|
|
365
240
|
l ? l.then(() => {
|
|
366
241
|
u(), d(), ur();
|
|
367
242
|
}) : d();
|
|
368
243
|
}
|
|
369
|
-
function
|
|
244
|
+
function fa() {
|
|
370
245
|
var e = (
|
|
371
246
|
/** @type {Effect} */
|
|
372
|
-
|
|
373
|
-
), t = O, r =
|
|
247
|
+
H
|
|
248
|
+
), t = O, r = ae, n = (
|
|
374
249
|
/** @type {Batch} */
|
|
375
250
|
P
|
|
376
251
|
);
|
|
377
252
|
return function(s = !0) {
|
|
378
|
-
Le(e), ge(t),
|
|
253
|
+
Le(e), ge(t), mt(r), s && !(e.f & se) && (n?.activate(), n?.apply());
|
|
379
254
|
};
|
|
380
255
|
}
|
|
381
256
|
function ur(e = !0) {
|
|
382
|
-
Le(null), ge(null),
|
|
257
|
+
Le(null), ge(null), mt(null), e && P?.deactivate();
|
|
383
258
|
}
|
|
384
259
|
function Si() {
|
|
385
260
|
var e = (
|
|
386
261
|
/** @type {Effect} */
|
|
387
|
-
|
|
262
|
+
H
|
|
388
263
|
), t = e.b, r = (
|
|
389
264
|
/** @type {Batch} */
|
|
390
265
|
P
|
|
@@ -394,13 +269,13 @@ function Si() {
|
|
|
394
269
|
};
|
|
395
270
|
}
|
|
396
271
|
// @__NO_SIDE_EFFECTS__
|
|
397
|
-
function
|
|
398
|
-
var t =
|
|
399
|
-
return
|
|
400
|
-
ctx:
|
|
272
|
+
function gr(e) {
|
|
273
|
+
var t = K | W;
|
|
274
|
+
return H !== null && (H.f |= it), {
|
|
275
|
+
ctx: ae,
|
|
401
276
|
deps: null,
|
|
402
277
|
effects: null,
|
|
403
|
-
equals:
|
|
278
|
+
equals: yi,
|
|
404
279
|
f: t,
|
|
405
280
|
fn: e,
|
|
406
281
|
reactions: null,
|
|
@@ -410,16 +285,16 @@ function br(e) {
|
|
|
410
285
|
Y
|
|
411
286
|
),
|
|
412
287
|
wv: 0,
|
|
413
|
-
parent:
|
|
288
|
+
parent: H,
|
|
414
289
|
ac: null
|
|
415
290
|
};
|
|
416
291
|
}
|
|
417
|
-
const
|
|
292
|
+
const Lt = Symbol("obsolete");
|
|
418
293
|
// @__NO_SIDE_EFFECTS__
|
|
419
|
-
function
|
|
294
|
+
function ha(e, t, r) {
|
|
420
295
|
let n = (
|
|
421
296
|
/** @type {Effect | null} */
|
|
422
|
-
|
|
297
|
+
H
|
|
423
298
|
);
|
|
424
299
|
n === null && Zs();
|
|
425
300
|
var i = (
|
|
@@ -430,11 +305,11 @@ function va(e, t, r) {
|
|
|
430
305
|
/** @type {V} */
|
|
431
306
|
Y
|
|
432
307
|
), a = !O, o = /* @__PURE__ */ new Set();
|
|
433
|
-
return
|
|
308
|
+
return wa(() => {
|
|
434
309
|
var u = (
|
|
435
310
|
/** @type {Effect} */
|
|
436
|
-
|
|
437
|
-
), l =
|
|
311
|
+
H
|
|
312
|
+
), l = pi();
|
|
438
313
|
i = l.promise;
|
|
439
314
|
try {
|
|
440
315
|
Promise.resolve(e()).then(l.resolve, (p) => {
|
|
@@ -454,19 +329,19 @@ function va(e, t, r) {
|
|
|
454
329
|
// boundary can be null if the async derived is inside an $effect.root not connected to the component render tree
|
|
455
330
|
n.b?.is_rendered()
|
|
456
331
|
)
|
|
457
|
-
f.async_deriveds.get(u)?.reject(
|
|
332
|
+
f.async_deriveds.get(u)?.reject(Lt);
|
|
458
333
|
else
|
|
459
334
|
for (const p of o.values())
|
|
460
|
-
p.reject(
|
|
335
|
+
p.reject(Lt);
|
|
461
336
|
o.add(l), f.async_deriveds.set(u, l);
|
|
462
337
|
}
|
|
463
338
|
const d = (p, c = void 0) => {
|
|
464
|
-
h?.(), o.delete(l), c !==
|
|
339
|
+
h?.(), o.delete(l), c !== Lt && (f.activate(), c ? (s.f |= Xe, gt(s, c)) : (s.f & Xe && (s.f ^= Xe), gt(s, p)), f.deactivate());
|
|
465
340
|
};
|
|
466
341
|
l.promise.then(d, (p) => d(null, p || "unknown"));
|
|
467
342
|
}), Ui(() => {
|
|
468
343
|
for (const u of o)
|
|
469
|
-
u.reject(
|
|
344
|
+
u.reject(Lt);
|
|
470
345
|
}), new Promise((u) => {
|
|
471
346
|
function l(f) {
|
|
472
347
|
function h() {
|
|
@@ -478,34 +353,34 @@ function va(e, t, r) {
|
|
|
478
353
|
});
|
|
479
354
|
}
|
|
480
355
|
// @__NO_SIDE_EFFECTS__
|
|
481
|
-
function
|
|
482
|
-
const t = /* @__PURE__ */
|
|
356
|
+
function at(e) {
|
|
357
|
+
const t = /* @__PURE__ */ gr(e);
|
|
483
358
|
return Wi(t), t;
|
|
484
359
|
}
|
|
485
360
|
// @__NO_SIDE_EFFECTS__
|
|
486
|
-
function
|
|
487
|
-
const t = /* @__PURE__ */
|
|
488
|
-
return t.equals =
|
|
361
|
+
function ca(e) {
|
|
362
|
+
const t = /* @__PURE__ */ gr(e);
|
|
363
|
+
return t.equals = Ei, t;
|
|
489
364
|
}
|
|
490
|
-
function
|
|
365
|
+
function da(e) {
|
|
491
366
|
var t = e.effects;
|
|
492
367
|
if (t !== null) {
|
|
493
368
|
e.effects = null;
|
|
494
369
|
for (var r = 0; r < t.length; r += 1)
|
|
495
|
-
|
|
370
|
+
oe(
|
|
496
371
|
/** @type {Effect} */
|
|
497
372
|
t[r]
|
|
498
373
|
);
|
|
499
374
|
}
|
|
500
375
|
}
|
|
501
376
|
function xn(e) {
|
|
502
|
-
var t, r =
|
|
377
|
+
var t, r = H, n = e.parent;
|
|
503
378
|
if (!Fe && n !== null && e.v !== Y && // if it was never evaluated before, it's guaranteed to fail downstream, so we try to execute instead
|
|
504
|
-
n.f & (
|
|
379
|
+
n.f & (se | ie))
|
|
505
380
|
return Ws(), e.v;
|
|
506
381
|
Le(n);
|
|
507
382
|
try {
|
|
508
|
-
|
|
383
|
+
da(e), t = qi(e);
|
|
509
384
|
} finally {
|
|
510
385
|
Le(r);
|
|
511
386
|
}
|
|
@@ -513,29 +388,29 @@ function xn(e) {
|
|
|
513
388
|
}
|
|
514
389
|
function Ai(e) {
|
|
515
390
|
var t = xn(e);
|
|
516
|
-
if (!e.equals(t) && (e.wv = Yi(), (!P?.is_fork || e.deps === null) && (P !== null ? (P.capture(e, t, !0),
|
|
391
|
+
if (!e.equals(t) && (e.wv = Yi(), (!P?.is_fork || e.deps === null) && (P !== null ? (P.capture(e, t, !0), Wr?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
|
|
517
392
|
V(e, Z);
|
|
518
393
|
return;
|
|
519
394
|
}
|
|
520
|
-
Fe || (Ee !== null ? (Hn() || P?.is_fork) && Ee.set(e, t) :
|
|
395
|
+
Fe || (Ee !== null ? (Hn() || P?.is_fork) && Ee.set(e, t) : En(e));
|
|
521
396
|
}
|
|
522
|
-
function
|
|
397
|
+
function pa(e) {
|
|
523
398
|
if (e.effects !== null)
|
|
524
399
|
for (const t of e.effects)
|
|
525
|
-
(t.teardown || t.ac) && (t.teardown?.(), t.ac !== null &&
|
|
400
|
+
(t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && mr(() => {
|
|
526
401
|
t.ac.abort(Xt), t.ac = null;
|
|
527
402
|
}), t.fn !== null && (t.teardown = Re), Gt(t, 0), Nn(t));
|
|
528
403
|
}
|
|
529
404
|
function Hi(e) {
|
|
530
405
|
if (e.effects !== null)
|
|
531
406
|
for (const t of e.effects)
|
|
532
|
-
t.teardown && t.fn !== null &&
|
|
407
|
+
t.teardown && t.fn !== null && bt(t);
|
|
533
408
|
}
|
|
534
|
-
let Mr = null,
|
|
535
|
-
var
|
|
536
|
-
let
|
|
409
|
+
let Mr = null, ot = null, P = null, Wr = null, Ee = null, zr = null, Rt = !1, Or = !1, Dt = null, Jt = null;
|
|
410
|
+
var Rn = 0;
|
|
411
|
+
let va = 1;
|
|
537
412
|
class Ue {
|
|
538
|
-
id =
|
|
413
|
+
id = va++;
|
|
539
414
|
/** True as soon as `#process` was called */
|
|
540
415
|
#e = !1;
|
|
541
416
|
linked = !0;
|
|
@@ -585,7 +460,14 @@ class Ue {
|
|
|
585
460
|
*/
|
|
586
461
|
#o = null;
|
|
587
462
|
/**
|
|
588
|
-
*
|
|
463
|
+
* Effects that were scheduled in this batch but not yet 'resolved' into the
|
|
464
|
+
* root effects that need to be flushed. Resolving — the upwards traversal that
|
|
465
|
+
* marks the path to each effect on the shared effect tree (see #resolve) — is
|
|
466
|
+
* deferred until the batch is processed, so that the markers are created and
|
|
467
|
+
* consumed within a single traversal. Scheduling into other batches (which can
|
|
468
|
+
* happen concurrently, e.g. while a batch is committed) can therefore never
|
|
469
|
+
* observe (and be confused by) this batch's markers.
|
|
470
|
+
* May contain duplicates — deduplication happens during resolving
|
|
589
471
|
* @type {Effect[]}
|
|
590
472
|
*/
|
|
591
473
|
#s = [];
|
|
@@ -593,7 +475,7 @@ class Ue {
|
|
|
593
475
|
* Effects created while this batch was active.
|
|
594
476
|
* @type {Effect[]}
|
|
595
477
|
*/
|
|
596
|
-
#
|
|
478
|
+
#p = [];
|
|
597
479
|
/**
|
|
598
480
|
* Deferred effects (which run after async work has completed) that are DIRTY
|
|
599
481
|
* @type {Set<Effect>}
|
|
@@ -620,7 +502,7 @@ class Ue {
|
|
|
620
502
|
is_fork = !1;
|
|
621
503
|
#h = !1;
|
|
622
504
|
constructor() {
|
|
623
|
-
|
|
505
|
+
ot === null ? Mr = ot = this : (ot.#r = this, this.#t = ot), ot = this;
|
|
624
506
|
}
|
|
625
507
|
#b() {
|
|
626
508
|
if (this.is_fork) return !0;
|
|
@@ -655,60 +537,90 @@ class Ue {
|
|
|
655
537
|
if (n) {
|
|
656
538
|
this.#c.delete(t);
|
|
657
539
|
for (var i of n.d)
|
|
658
|
-
V(i,
|
|
540
|
+
V(i, W), r(i);
|
|
659
541
|
for (i of n.m)
|
|
660
|
-
V(i,
|
|
542
|
+
V(i, _e), r(i);
|
|
661
543
|
}
|
|
662
544
|
this.#_.add(t);
|
|
663
545
|
}
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
546
|
+
/**
|
|
547
|
+
* Convert the effects that were scheduled in this batch into the root effects
|
|
548
|
+
* that need to be traversed, marking the path to each effect (by clearing the
|
|
549
|
+
* `CLEAN` flag on ancestor branches) so that the traversal can find them.
|
|
550
|
+
* This happens right before traversal rather than at scheduling time, so that
|
|
551
|
+
* the markers left on the (shared) effect tree are created and consumed within
|
|
552
|
+
* a single traversal — scheduling into other batches can never observe them
|
|
553
|
+
* @returns {Effect[]}
|
|
554
|
+
*/
|
|
555
|
+
#y() {
|
|
556
|
+
var t = [];
|
|
557
|
+
for (const s of this.#s)
|
|
558
|
+
if (!(s.f & se || !(s.f & (W | _e)))) {
|
|
559
|
+
for (var r = s, n = !1; r.parent !== null; ) {
|
|
560
|
+
r = r.parent;
|
|
561
|
+
var i = r.f;
|
|
562
|
+
if (i & ($e | me)) {
|
|
563
|
+
if (!(i & Z)) {
|
|
564
|
+
n = !0;
|
|
565
|
+
break;
|
|
566
|
+
}
|
|
567
|
+
r.f ^= Z;
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
n || t.push(r);
|
|
678
571
|
}
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
572
|
+
return this.#s = [], t;
|
|
573
|
+
}
|
|
574
|
+
#m() {
|
|
575
|
+
this.#e = !0;
|
|
576
|
+
for (const o of this.#l)
|
|
577
|
+
this.#f.delete(o), V(o, W), this.schedule(o);
|
|
578
|
+
for (const o of this.#f)
|
|
579
|
+
V(o, _e), this.schedule(o);
|
|
580
|
+
this.apply();
|
|
581
|
+
for (var t = Dt = [], r = [], n = Jt = []; this.#s.length > 0; ) {
|
|
582
|
+
Rn++ > 1e3 && (this.#v(), _a());
|
|
583
|
+
for (const o of this.#y())
|
|
584
|
+
try {
|
|
585
|
+
this.#g(o, t, r);
|
|
586
|
+
} catch (u) {
|
|
587
|
+
throw Ni(o), this.#b() || this.discard(), u;
|
|
588
|
+
}
|
|
683
589
|
}
|
|
684
|
-
if (
|
|
685
|
-
|
|
686
|
-
for (const
|
|
687
|
-
|
|
688
|
-
|
|
590
|
+
if (P = null, n.length > 0) {
|
|
591
|
+
var i = Ue.ensure();
|
|
592
|
+
for (const o of n)
|
|
593
|
+
i.schedule(o);
|
|
594
|
+
}
|
|
595
|
+
if (Dt = null, Jt = null, this.#b()) {
|
|
596
|
+
this.#d(r), this.#d(t);
|
|
597
|
+
for (const [o, u] of this.#c)
|
|
598
|
+
Oi(o, u);
|
|
599
|
+
n.length > 0 && /** @type {unknown} */
|
|
689
600
|
P.#m();
|
|
690
601
|
return;
|
|
691
602
|
}
|
|
692
|
-
const
|
|
693
|
-
if (
|
|
694
|
-
this.#d(
|
|
603
|
+
const s = this.#w();
|
|
604
|
+
if (s) {
|
|
605
|
+
this.#d(r), this.#d(t), s.#E(this);
|
|
695
606
|
return;
|
|
696
607
|
}
|
|
697
608
|
this.#l.clear(), this.#f.clear();
|
|
698
|
-
for (const
|
|
699
|
-
this.#u.clear(),
|
|
700
|
-
var
|
|
609
|
+
for (const o of this.#u) o(this);
|
|
610
|
+
this.#u.clear(), Wr = this, Dn(r), Dn(t), Wr = null, this.#o?.resolve();
|
|
611
|
+
var a = (
|
|
701
612
|
/** @type {Batch | null} */
|
|
702
613
|
/** @type {unknown} */
|
|
703
614
|
P
|
|
704
615
|
);
|
|
705
|
-
if (this.#a === 0 && (this.#s.length === 0 ||
|
|
706
|
-
if (
|
|
707
|
-
const
|
|
708
|
-
|
|
616
|
+
if (this.#a === 0 && (this.#s.length === 0 || a !== null) && this.#v(), this.#s.length > 0)
|
|
617
|
+
if (a !== null) {
|
|
618
|
+
for (const o of this.#s)
|
|
619
|
+
a.#s.push(o);
|
|
620
|
+
this.#s = [];
|
|
709
621
|
} else
|
|
710
|
-
|
|
711
|
-
|
|
622
|
+
a = this;
|
|
623
|
+
a !== null && (Ne.clear(), a.#m());
|
|
712
624
|
}
|
|
713
625
|
/**
|
|
714
626
|
* Traverse the effect tree, executing effects or stashing
|
|
@@ -717,12 +629,12 @@ class Ue {
|
|
|
717
629
|
* @param {Effect[]} effects
|
|
718
630
|
* @param {Effect[]} render_effects
|
|
719
631
|
*/
|
|
720
|
-
#
|
|
632
|
+
#g(t, r, n) {
|
|
721
633
|
t.f ^= Z;
|
|
722
634
|
for (var i = t.first; i !== null; ) {
|
|
723
635
|
var s = i.f, a = (s & (me | $e)) !== 0, o = a && (s & Z) !== 0, u = o || (s & ie) !== 0 || this.#c.has(i);
|
|
724
636
|
if (!u && i.fn !== null) {
|
|
725
|
-
a ? i.f ^= Z : s &
|
|
637
|
+
a ? i.f ^= Z : s & pt ? r.push(i) : zt(i) && (s & ye && this.#f.add(i), bt(i));
|
|
726
638
|
var l = i.first;
|
|
727
639
|
if (l !== null) {
|
|
728
640
|
i = l;
|
|
@@ -739,7 +651,7 @@ class Ue {
|
|
|
739
651
|
}
|
|
740
652
|
}
|
|
741
653
|
}
|
|
742
|
-
#
|
|
654
|
+
#w() {
|
|
743
655
|
for (var t = this.#t; t !== null; ) {
|
|
744
656
|
if (!t.is_fork) {
|
|
745
657
|
for (const [r, [, n]] of this.current)
|
|
@@ -753,7 +665,7 @@ class Ue {
|
|
|
753
665
|
/**
|
|
754
666
|
* @param {Batch} batch
|
|
755
667
|
*/
|
|
756
|
-
#
|
|
668
|
+
#E(t) {
|
|
757
669
|
for (const [n, i] of t.current)
|
|
758
670
|
!this.previous.has(n) && t.previous.has(n) && this.previous.set(n, t.previous.get(n)), this.current.set(n, i);
|
|
759
671
|
for (const [n, i] of t.async_deriveds) {
|
|
@@ -763,10 +675,10 @@ class Ue {
|
|
|
763
675
|
t.async_deriveds.clear(), this.transfer_effects(t.#l, t.#f);
|
|
764
676
|
const r = (n) => {
|
|
765
677
|
var i = n.reactions;
|
|
766
|
-
if (i !== null && !(n.f &
|
|
678
|
+
if (i !== null && !(n.f & K && !(n.f & (W | _e))))
|
|
767
679
|
for (const o of i) {
|
|
768
680
|
var s = o.f;
|
|
769
|
-
if (s &
|
|
681
|
+
if (s & K)
|
|
770
682
|
r(
|
|
771
683
|
/** @type {Derived} */
|
|
772
684
|
o
|
|
@@ -776,13 +688,13 @@ class Ue {
|
|
|
776
688
|
/** @type {Effect} */
|
|
777
689
|
o
|
|
778
690
|
);
|
|
779
|
-
s & (
|
|
691
|
+
s & (ht | ye) && !this.async_deriveds.has(a) && (this.#f.delete(a), V(a, W), this.schedule(a));
|
|
780
692
|
}
|
|
781
693
|
}
|
|
782
694
|
};
|
|
783
695
|
for (const n of this.current.keys())
|
|
784
696
|
r(n);
|
|
785
|
-
this.oncommit(() => t.discard()), t.#
|
|
697
|
+
this.oncommit(() => t.discard()), t.#v(), P = this, this.#m();
|
|
786
698
|
}
|
|
787
699
|
/**
|
|
788
700
|
* @param {Effect[]} effects
|
|
@@ -811,23 +723,23 @@ class Ue {
|
|
|
811
723
|
try {
|
|
812
724
|
Or = !0, P = this, this.#m();
|
|
813
725
|
} finally {
|
|
814
|
-
|
|
726
|
+
Rn = 0, zr = null, Dt = null, Jt = null, Or = !1, P = null, Ee = null, Ne.clear();
|
|
815
727
|
}
|
|
816
728
|
}
|
|
817
729
|
discard() {
|
|
818
730
|
for (const t of this.#i) t(this);
|
|
819
731
|
this.#i.clear();
|
|
820
732
|
for (const t of this.async_deriveds.values())
|
|
821
|
-
t.reject(
|
|
822
|
-
this.#
|
|
733
|
+
t.reject(Lt);
|
|
734
|
+
this.#v(), this.#o?.resolve();
|
|
823
735
|
}
|
|
824
736
|
/**
|
|
825
737
|
* @param {Effect} effect
|
|
826
738
|
*/
|
|
827
739
|
register_created_effect(t) {
|
|
828
|
-
this.#
|
|
740
|
+
this.#p.push(t);
|
|
829
741
|
}
|
|
830
|
-
#
|
|
742
|
+
#x() {
|
|
831
743
|
for (let h = Mr; h !== null; h = h.#r) {
|
|
832
744
|
var t = h.id < this.id, r = [];
|
|
833
745
|
for (const [d, [p, c]] of this.current) {
|
|
@@ -860,7 +772,7 @@ class Ue {
|
|
|
860
772
|
if (t)
|
|
861
773
|
for (const d of this.#_)
|
|
862
774
|
h.unskip_effect(d, (p) => {
|
|
863
|
-
p.f & (ye |
|
|
775
|
+
p.f & (ye | ht) ? h.schedule(p) : h.#d([p]);
|
|
864
776
|
});
|
|
865
777
|
h.activate();
|
|
866
778
|
var a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
|
|
@@ -872,13 +784,12 @@ class Ue {
|
|
|
872
784
|
return c ? c[0] !== p[0] || c[1] !== p[1] : !0;
|
|
873
785
|
}).map(([d]) => d);
|
|
874
786
|
if (l.length > 0)
|
|
875
|
-
for (const d of this.#
|
|
876
|
-
!(d.f & (
|
|
787
|
+
for (const d of this.#p)
|
|
788
|
+
!(d.f & (se | ie | sr)) && wn(d, l, o) && (d.f & (ht | ye) ? (V(d, W), h.schedule(d)) : h.#l.add(d));
|
|
877
789
|
if (h.#s.length > 0 && !h.#h) {
|
|
878
790
|
h.apply();
|
|
879
|
-
for (var f of h.#
|
|
880
|
-
h.#
|
|
881
|
-
h.#s = [];
|
|
791
|
+
for (var f of h.#y())
|
|
792
|
+
h.#g(f, [], []);
|
|
882
793
|
}
|
|
883
794
|
h.deactivate();
|
|
884
795
|
}
|
|
@@ -904,7 +815,7 @@ class Ue {
|
|
|
904
815
|
let n = this.#n.get(r) ?? 0;
|
|
905
816
|
n === 1 ? this.#n.delete(r) : this.#n.set(r, n - 1);
|
|
906
817
|
}
|
|
907
|
-
this.#h || (this.#h = !0,
|
|
818
|
+
this.#h || (this.#h = !0, Je(() => {
|
|
908
819
|
this.#h = !1, this.linked && this.flush();
|
|
909
820
|
}));
|
|
910
821
|
}
|
|
@@ -928,12 +839,12 @@ class Ue {
|
|
|
928
839
|
this.#i.add(t);
|
|
929
840
|
}
|
|
930
841
|
settled() {
|
|
931
|
-
return (this.#o ??=
|
|
842
|
+
return (this.#o ??= pi()).promise;
|
|
932
843
|
}
|
|
933
844
|
static ensure() {
|
|
934
845
|
if (P === null) {
|
|
935
846
|
const t = P = new Ue();
|
|
936
|
-
!Or && !
|
|
847
|
+
!Or && !Rt && Je(() => {
|
|
937
848
|
t.#e || t.flush();
|
|
938
849
|
});
|
|
939
850
|
}
|
|
@@ -950,33 +861,22 @@ class Ue {
|
|
|
950
861
|
* @param {Effect} effect
|
|
951
862
|
*/
|
|
952
863
|
schedule(t) {
|
|
953
|
-
if (
|
|
864
|
+
if (zr = t, t.b?.is_pending && t.f & (pt | Vt | vi) && !(t.f & nt)) {
|
|
954
865
|
t.b.defer_effect(t);
|
|
955
866
|
return;
|
|
956
867
|
}
|
|
957
|
-
|
|
958
|
-
r = r.parent;
|
|
959
|
-
var n = r.f;
|
|
960
|
-
if (ft !== null && r === A && (O === null || !(O.f & J)))
|
|
961
|
-
return;
|
|
962
|
-
if (n & ($e | me)) {
|
|
963
|
-
if (!(n & Z))
|
|
964
|
-
return;
|
|
965
|
-
r.f ^= Z;
|
|
966
|
-
}
|
|
967
|
-
}
|
|
968
|
-
this.#s.push(r);
|
|
868
|
+
this.#s.push(t);
|
|
969
869
|
}
|
|
970
|
-
#
|
|
870
|
+
#v() {
|
|
971
871
|
if (this.linked) {
|
|
972
872
|
var t = this.#t, r = this.#r;
|
|
973
|
-
t === null ? Mr = r : t.#r = r, r === null ?
|
|
873
|
+
t === null ? Mr = r : t.#r = r, r === null ? ot = t : r.#t = t, this.linked = !1;
|
|
974
874
|
}
|
|
975
875
|
}
|
|
976
876
|
}
|
|
977
877
|
function pe(e) {
|
|
978
|
-
var t =
|
|
979
|
-
|
|
878
|
+
var t = Rt;
|
|
879
|
+
Rt = !0;
|
|
980
880
|
try {
|
|
981
881
|
for (var r; ; ) {
|
|
982
882
|
if (oa(), P === null)
|
|
@@ -987,33 +887,33 @@ function pe(e) {
|
|
|
987
887
|
P.flush();
|
|
988
888
|
}
|
|
989
889
|
} finally {
|
|
990
|
-
|
|
890
|
+
Rt = t;
|
|
991
891
|
}
|
|
992
892
|
}
|
|
993
|
-
function
|
|
893
|
+
function _a() {
|
|
994
894
|
try {
|
|
995
895
|
ea();
|
|
996
896
|
} catch (e) {
|
|
997
|
-
He(e,
|
|
897
|
+
He(e, zr);
|
|
998
898
|
}
|
|
999
899
|
}
|
|
1000
900
|
let Ie = null;
|
|
1001
|
-
function
|
|
901
|
+
function Dn(e) {
|
|
1002
902
|
var t = e.length;
|
|
1003
903
|
if (t !== 0) {
|
|
1004
904
|
for (var r = 0; r < t; ) {
|
|
1005
905
|
var n = e[r++];
|
|
1006
|
-
if (!(n.f & (
|
|
906
|
+
if (!(n.f & (se | ie)) && zt(n) && (Ie = /* @__PURE__ */ new Set(), bt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && ji(n), Ie?.size > 0)) {
|
|
1007
907
|
Ne.clear();
|
|
1008
908
|
for (const i of Ie) {
|
|
1009
|
-
if (i.f & (
|
|
909
|
+
if (i.f & (se | ie)) continue;
|
|
1010
910
|
const s = [i];
|
|
1011
911
|
let a = i.parent;
|
|
1012
912
|
for (; a !== null; )
|
|
1013
913
|
Ie.has(a) && (Ie.delete(a), s.push(a)), a = a.parent;
|
|
1014
914
|
for (let o = s.length - 1; o >= 0; o--) {
|
|
1015
915
|
const u = s[o];
|
|
1016
|
-
u.f & (
|
|
916
|
+
u.f & (se | ie) || bt(u);
|
|
1017
917
|
}
|
|
1018
918
|
}
|
|
1019
919
|
Ie.clear();
|
|
@@ -1026,13 +926,13 @@ function Mi(e, t, r, n) {
|
|
|
1026
926
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
1027
927
|
for (const i of e.reactions) {
|
|
1028
928
|
const s = i.f;
|
|
1029
|
-
s &
|
|
929
|
+
s & K ? Mi(
|
|
1030
930
|
/** @type {Derived} */
|
|
1031
931
|
i,
|
|
1032
932
|
t,
|
|
1033
933
|
r,
|
|
1034
934
|
n
|
|
1035
|
-
) : s & (
|
|
935
|
+
) : s & (ht | ye) && !(s & W) && wn(i, t, n) && (V(i, W), Tn(
|
|
1036
936
|
/** @type {Effect} */
|
|
1037
937
|
i
|
|
1038
938
|
));
|
|
@@ -1045,7 +945,7 @@ function wn(e, t, r) {
|
|
|
1045
945
|
for (const i of e.deps) {
|
|
1046
946
|
if (rr.call(t, i))
|
|
1047
947
|
return !0;
|
|
1048
|
-
if (i.f &
|
|
948
|
+
if (i.f & K && wn(
|
|
1049
949
|
/** @type {Derived} */
|
|
1050
950
|
i,
|
|
1051
951
|
t,
|
|
@@ -1064,7 +964,7 @@ function Tn(e) {
|
|
|
1064
964
|
}
|
|
1065
965
|
function Oi(e, t) {
|
|
1066
966
|
if (!(e.f & me && e.f & Z)) {
|
|
1067
|
-
e.f &
|
|
967
|
+
e.f & W ? t.d.push(e) : e.f & _e && t.m.push(e), V(e, Z);
|
|
1068
968
|
for (var r = e.first; r !== null; )
|
|
1069
969
|
Oi(r, t), r = r.next;
|
|
1070
970
|
}
|
|
@@ -1083,7 +983,7 @@ function rt(e, t) {
|
|
|
1083
983
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
1084
984
|
v: e,
|
|
1085
985
|
reactions: null,
|
|
1086
|
-
equals:
|
|
986
|
+
equals: yi,
|
|
1087
987
|
rv: 0,
|
|
1088
988
|
wv: 0
|
|
1089
989
|
};
|
|
@@ -1097,63 +997,69 @@ function ne(e, t) {
|
|
|
1097
997
|
// @__NO_SIDE_EFFECTS__
|
|
1098
998
|
function Sn(e, t = !1, r = !0) {
|
|
1099
999
|
const n = rt(e);
|
|
1100
|
-
return t || (n.equals =
|
|
1000
|
+
return t || (n.equals = Ei), n;
|
|
1101
1001
|
}
|
|
1102
|
-
function
|
|
1002
|
+
function z(e, t, r = !1) {
|
|
1103
1003
|
O !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
1104
1004
|
// to ensure we error if state is set inside an inspect effect
|
|
1105
|
-
(!xe || O.f & sr) &&
|
|
1106
|
-
let n = r ?
|
|
1107
|
-
return
|
|
1005
|
+
(!xe || O.f & sr) && xi() && O.f & (K | ye | ht | sr) && (Pe === null || !Pe.has(e)) && ia();
|
|
1006
|
+
let n = r ? It(t) : t;
|
|
1007
|
+
return gt(e, n, Jt);
|
|
1108
1008
|
}
|
|
1109
|
-
|
|
1009
|
+
var Ze = null, Yr = 0;
|
|
1010
|
+
function gt(e, t, r = null) {
|
|
1110
1011
|
if (!e.equals(t)) {
|
|
1111
1012
|
Fe ? Ne.set(e, t) : Ne.has(e) || Ne.set(e, e.v);
|
|
1112
1013
|
var n = Ue.ensure();
|
|
1113
|
-
if (n.capture(e, t), e.f &
|
|
1014
|
+
if (n.capture(e, t), e.f & K) {
|
|
1114
1015
|
const i = (
|
|
1115
1016
|
/** @type {Derived} */
|
|
1116
1017
|
e
|
|
1117
1018
|
);
|
|
1118
|
-
e.f &
|
|
1019
|
+
e.f & W && xn(i), Ee === null && En(i);
|
|
1119
1020
|
}
|
|
1120
|
-
e.wv = Yi(), $i(e,
|
|
1021
|
+
e.wv = Yi(), Ze = null, Yr = 0, $i(e, W, r), Ze = null, H !== null && H.f & Z && !(H.f & (me | $e)) && (ce === null ? Sa([e]) : ce.push(e)), !n.is_fork && lr.size > 0 && !Pi && ma();
|
|
1121
1022
|
}
|
|
1122
1023
|
return t;
|
|
1123
1024
|
}
|
|
1124
|
-
function
|
|
1025
|
+
function ma() {
|
|
1125
1026
|
Pi = !1;
|
|
1126
1027
|
for (const e of lr) {
|
|
1127
|
-
e.f & Z && V(e,
|
|
1028
|
+
e.f & Z && V(e, _e);
|
|
1128
1029
|
let t;
|
|
1129
1030
|
try {
|
|
1130
1031
|
t = zt(e);
|
|
1131
1032
|
} catch {
|
|
1132
1033
|
t = !0;
|
|
1133
1034
|
}
|
|
1134
|
-
t &&
|
|
1035
|
+
t && bt(e);
|
|
1135
1036
|
}
|
|
1136
1037
|
lr.clear();
|
|
1137
1038
|
}
|
|
1138
1039
|
function Ut(e) {
|
|
1139
|
-
|
|
1040
|
+
z(e, e.v + 1);
|
|
1140
1041
|
}
|
|
1141
1042
|
function $i(e, t, r) {
|
|
1142
1043
|
var n = e.reactions;
|
|
1143
|
-
if (n !== null)
|
|
1144
|
-
|
|
1145
|
-
|
|
1044
|
+
if (n !== null) {
|
|
1045
|
+
var i = n.length;
|
|
1046
|
+
if (Yr += i, Yr > 1e5 && Ze === null && (Ze = /* @__PURE__ */ new Set()), Ze !== null) {
|
|
1047
|
+
if (Ze.has(e)) return;
|
|
1048
|
+
Ze.add(e);
|
|
1049
|
+
}
|
|
1050
|
+
for (var s = 0; s < i; s++) {
|
|
1051
|
+
var a = n[s], o = a.f, u = (o & W) === 0;
|
|
1146
1052
|
if (u && V(a, t), o & sr)
|
|
1147
1053
|
lr.add(
|
|
1148
1054
|
/** @type {Effect} */
|
|
1149
1055
|
a
|
|
1150
1056
|
);
|
|
1151
|
-
else if (o &
|
|
1057
|
+
else if (o & K) {
|
|
1152
1058
|
var l = (
|
|
1153
1059
|
/** @type {Derived} */
|
|
1154
1060
|
a
|
|
1155
1061
|
);
|
|
1156
|
-
Ee?.delete(l),
|
|
1062
|
+
Ee?.delete(l), $i(l, _e, r);
|
|
1157
1063
|
} else if (u) {
|
|
1158
1064
|
var f = (
|
|
1159
1065
|
/** @type {Effect} */
|
|
@@ -1162,20 +1068,21 @@ function $i(e, t, r) {
|
|
|
1162
1068
|
o & ye && Ie !== null && Ie.add(f), r !== null ? r.push(f) : Tn(f);
|
|
1163
1069
|
}
|
|
1164
1070
|
}
|
|
1071
|
+
}
|
|
1165
1072
|
}
|
|
1166
|
-
function
|
|
1167
|
-
if (typeof e != "object" || e === null ||
|
|
1073
|
+
function It(e) {
|
|
1074
|
+
if (typeof e != "object" || e === null || ct in e || mi in e)
|
|
1168
1075
|
return e;
|
|
1169
|
-
const t =
|
|
1076
|
+
const t = vn(e);
|
|
1170
1077
|
if (t !== Us && t !== Fs)
|
|
1171
1078
|
return e;
|
|
1172
|
-
var r = /* @__PURE__ */ new Map(), n =
|
|
1173
|
-
if (
|
|
1079
|
+
var r = /* @__PURE__ */ new Map(), n = hi(e), i = /* @__PURE__ */ ne(0), s = et, a = (o) => {
|
|
1080
|
+
if (et === s)
|
|
1174
1081
|
return o();
|
|
1175
|
-
var u = O, l =
|
|
1176
|
-
ge(null),
|
|
1082
|
+
var u = O, l = et;
|
|
1083
|
+
ge(null), kn(s);
|
|
1177
1084
|
var f = o();
|
|
1178
|
-
return ge(u),
|
|
1085
|
+
return ge(u), kn(l), f;
|
|
1179
1086
|
};
|
|
1180
1087
|
return n && r.set("length", /* @__PURE__ */ ne(
|
|
1181
1088
|
/** @type {any[]} */
|
|
@@ -1190,7 +1097,7 @@ function Bt(e) {
|
|
|
1190
1097
|
return f === void 0 ? a(() => {
|
|
1191
1098
|
var h = /* @__PURE__ */ ne(l.value);
|
|
1192
1099
|
return r.set(u, h), h;
|
|
1193
|
-
}) :
|
|
1100
|
+
}) : z(f, l.value, !0), !0;
|
|
1194
1101
|
},
|
|
1195
1102
|
deleteProperty(o, u) {
|
|
1196
1103
|
var l = r.get(u);
|
|
@@ -1200,15 +1107,15 @@ function Bt(e) {
|
|
|
1200
1107
|
r.set(u, f), Ut(i);
|
|
1201
1108
|
}
|
|
1202
1109
|
} else
|
|
1203
|
-
|
|
1110
|
+
z(l, Y), Ut(i);
|
|
1204
1111
|
return !0;
|
|
1205
1112
|
},
|
|
1206
1113
|
get(o, u, l) {
|
|
1207
|
-
if (u ===
|
|
1114
|
+
if (u === ct)
|
|
1208
1115
|
return e;
|
|
1209
1116
|
var f = r.get(u), h = u in o;
|
|
1210
|
-
if (f === void 0 && (!h ||
|
|
1211
|
-
var p =
|
|
1117
|
+
if (f === void 0 && (!h || ft(o, u)?.writable) && (f = a(() => {
|
|
1118
|
+
var p = It(h ? o[u] : Y), c = /* @__PURE__ */ ne(p);
|
|
1212
1119
|
return c;
|
|
1213
1120
|
}), r.set(u, f)), f !== void 0) {
|
|
1214
1121
|
var d = x(f);
|
|
@@ -1217,29 +1124,31 @@ function Bt(e) {
|
|
|
1217
1124
|
return Reflect.get(o, u, l);
|
|
1218
1125
|
},
|
|
1219
1126
|
getOwnPropertyDescriptor(o, u) {
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
if (
|
|
1127
|
+
this.has?.(o, u);
|
|
1128
|
+
var l = Reflect.getOwnPropertyDescriptor(o, u), f = r.get(u);
|
|
1129
|
+
if (f !== void 0) {
|
|
1130
|
+
var h = x(f);
|
|
1131
|
+
if (h === Y)
|
|
1132
|
+
return;
|
|
1133
|
+
if (l && "value" in l)
|
|
1134
|
+
l.value = h;
|
|
1135
|
+
else
|
|
1227
1136
|
return {
|
|
1228
1137
|
enumerable: !0,
|
|
1229
1138
|
configurable: !0,
|
|
1230
|
-
value:
|
|
1139
|
+
value: h,
|
|
1231
1140
|
writable: !0
|
|
1232
1141
|
};
|
|
1233
1142
|
}
|
|
1234
1143
|
return l;
|
|
1235
1144
|
},
|
|
1236
1145
|
has(o, u) {
|
|
1237
|
-
if (u ===
|
|
1146
|
+
if (u === ct)
|
|
1238
1147
|
return !0;
|
|
1239
1148
|
var l = r.get(u), f = l !== void 0 && l.v !== Y || Reflect.has(o, u);
|
|
1240
|
-
if (l !== void 0 ||
|
|
1149
|
+
if (l !== void 0 || H !== null && (!f || ft(o, u)?.writable)) {
|
|
1241
1150
|
l === void 0 && (l = a(() => {
|
|
1242
|
-
var d = f ?
|
|
1151
|
+
var d = f ? It(o[u]) : Y, p = /* @__PURE__ */ ne(d);
|
|
1243
1152
|
return p;
|
|
1244
1153
|
}), r.set(u, l));
|
|
1245
1154
|
var h = x(l);
|
|
@@ -1254,23 +1163,23 @@ function Bt(e) {
|
|
|
1254
1163
|
for (var p = l; p < /** @type {Source<number>} */
|
|
1255
1164
|
h.v; p += 1) {
|
|
1256
1165
|
var c = r.get(p + "");
|
|
1257
|
-
c !== void 0 ?
|
|
1166
|
+
c !== void 0 ? z(c, Y) : p in o && (c = a(() => /* @__PURE__ */ ne(Y)), r.set(p + "", c));
|
|
1258
1167
|
}
|
|
1259
1168
|
if (h === void 0)
|
|
1260
|
-
(!d ||
|
|
1169
|
+
(!d || ft(o, u)?.writable) && (h = a(() => /* @__PURE__ */ ne(void 0)), z(h, It(l)), r.set(u, h));
|
|
1261
1170
|
else {
|
|
1262
1171
|
d = h.v !== Y;
|
|
1263
|
-
var y = a(() =>
|
|
1264
|
-
|
|
1172
|
+
var y = a(() => It(l));
|
|
1173
|
+
z(h, y);
|
|
1265
1174
|
}
|
|
1266
1175
|
var I = Reflect.getOwnPropertyDescriptor(o, u);
|
|
1267
1176
|
if (I?.set && I.set.call(f, l), !d) {
|
|
1268
1177
|
if (n && typeof u == "string") {
|
|
1269
|
-
var
|
|
1178
|
+
var A = (
|
|
1270
1179
|
/** @type {Source<number>} */
|
|
1271
1180
|
r.get("length")
|
|
1272
1181
|
), B = Number(u);
|
|
1273
|
-
Number.isInteger(B) && B >=
|
|
1182
|
+
Number.isInteger(B) && B >= A.v && z(A, B + 1);
|
|
1274
1183
|
}
|
|
1275
1184
|
Ut(i);
|
|
1276
1185
|
}
|
|
@@ -1292,12 +1201,12 @@ function Bt(e) {
|
|
|
1292
1201
|
}
|
|
1293
1202
|
);
|
|
1294
1203
|
}
|
|
1295
|
-
var
|
|
1204
|
+
var Un, Li, Ii, Bi;
|
|
1296
1205
|
function Zr() {
|
|
1297
|
-
if (
|
|
1298
|
-
|
|
1206
|
+
if (Un === void 0) {
|
|
1207
|
+
Un = window, Li = /Firefox/.test(navigator.userAgent);
|
|
1299
1208
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
1300
|
-
Ii =
|
|
1209
|
+
Ii = ft(t, "firstChild").get, Bi = ft(t, "nextSibling").get, Cn(e) && (e[jr] = void 0, e[gi] = null, e[Vs] = void 0, e.__e = void 0), Cn(r) && (r[Vr] = void 0);
|
|
1301
1210
|
}
|
|
1302
1211
|
}
|
|
1303
1212
|
function Te(e = "") {
|
|
@@ -1325,14 +1234,14 @@ function qr(e, t) {
|
|
|
1325
1234
|
r = $.appendChild(Te());
|
|
1326
1235
|
else if (t && r.nodeType !== _r) {
|
|
1327
1236
|
var n = Te();
|
|
1328
|
-
return r?.before(n),
|
|
1237
|
+
return r?.before(n), ue(n), n;
|
|
1329
1238
|
}
|
|
1330
1239
|
return t && An(
|
|
1331
1240
|
/** @type {Text} */
|
|
1332
1241
|
r
|
|
1333
|
-
),
|
|
1242
|
+
), ue(r), r;
|
|
1334
1243
|
}
|
|
1335
|
-
function
|
|
1244
|
+
function ga(e, t = !1) {
|
|
1336
1245
|
if (!L) {
|
|
1337
1246
|
var r = /* @__PURE__ */ ve(e);
|
|
1338
1247
|
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ Se(r) : r;
|
|
@@ -1340,7 +1249,7 @@ function xa(e, t = !1) {
|
|
|
1340
1249
|
if (t) {
|
|
1341
1250
|
if ($?.nodeType !== _r) {
|
|
1342
1251
|
var n = Te();
|
|
1343
|
-
return $?.before(n),
|
|
1252
|
+
return $?.before(n), ue(n), n;
|
|
1344
1253
|
}
|
|
1345
1254
|
An(
|
|
1346
1255
|
/** @type {Text} */
|
|
@@ -1355,7 +1264,7 @@ function Nr(e, t = !1) {
|
|
|
1355
1264
|
var r = qr(e, t);
|
|
1356
1265
|
return Xr(e), r;
|
|
1357
1266
|
}
|
|
1358
|
-
function
|
|
1267
|
+
function Fn(e, t = 1, r = !1) {
|
|
1359
1268
|
let n = L ? $ : e;
|
|
1360
1269
|
for (var i; t--; )
|
|
1361
1270
|
i = n, n = /** @type {TemplateNode} */
|
|
@@ -1365,14 +1274,14 @@ function Un(e, t = 1, r = !1) {
|
|
|
1365
1274
|
if (r) {
|
|
1366
1275
|
if (n?.nodeType !== _r) {
|
|
1367
1276
|
var s = Te();
|
|
1368
|
-
return n === null ? i?.after(s) : n.before(s),
|
|
1277
|
+
return n === null ? i?.after(s) : n.before(s), ue(s), s;
|
|
1369
1278
|
}
|
|
1370
1279
|
An(
|
|
1371
1280
|
/** @type {Text} */
|
|
1372
1281
|
n
|
|
1373
1282
|
);
|
|
1374
1283
|
}
|
|
1375
|
-
return
|
|
1284
|
+
return ue(n), n;
|
|
1376
1285
|
}
|
|
1377
1286
|
function Ci(e) {
|
|
1378
1287
|
e.textContent = "";
|
|
@@ -1380,8 +1289,8 @@ function Ci(e) {
|
|
|
1380
1289
|
function Ri() {
|
|
1381
1290
|
return !1;
|
|
1382
1291
|
}
|
|
1383
|
-
function
|
|
1384
|
-
return t == null || t ===
|
|
1292
|
+
function br(e, t, r) {
|
|
1293
|
+
return t == null || t === li ? (
|
|
1385
1294
|
/** @type {T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : Element} */
|
|
1386
1295
|
r ? document.createElement(e, { is: r }) : document.createElement(e)
|
|
1387
1296
|
) : (
|
|
@@ -1400,18 +1309,18 @@ function An(e) {
|
|
|
1400
1309
|
t.remove(), e.nodeValue += /** @type {string} */
|
|
1401
1310
|
t.nodeValue, t = e.nextSibling;
|
|
1402
1311
|
}
|
|
1403
|
-
function
|
|
1404
|
-
var t =
|
|
1312
|
+
function ba(e) {
|
|
1313
|
+
var t = H;
|
|
1405
1314
|
if (t === null)
|
|
1406
1315
|
return O.f |= Xe, e;
|
|
1407
|
-
if (!(t.f & nt) && !(t.f &
|
|
1316
|
+
if (!(t.f & nt) && !(t.f & pt))
|
|
1408
1317
|
throw e;
|
|
1409
1318
|
He(e, t);
|
|
1410
1319
|
}
|
|
1411
1320
|
function He(e, t) {
|
|
1412
|
-
if (!(t !== null && t.f &
|
|
1321
|
+
if (!(t !== null && t.f & se)) {
|
|
1413
1322
|
for (; t !== null; ) {
|
|
1414
|
-
if (t.f & kr && !(t.f & (
|
|
1323
|
+
if (t.f & kr && !(t.f & (se | ir))) {
|
|
1415
1324
|
if (!(t.f & nt))
|
|
1416
1325
|
throw e;
|
|
1417
1326
|
try {
|
|
@@ -1427,20 +1336,20 @@ function He(e, t) {
|
|
|
1427
1336
|
}
|
|
1428
1337
|
}
|
|
1429
1338
|
function Di(e) {
|
|
1430
|
-
|
|
1339
|
+
H === null && (O === null && Ks(), Qs()), Fe && Js();
|
|
1431
1340
|
}
|
|
1432
|
-
function
|
|
1341
|
+
function ya(e, t) {
|
|
1433
1342
|
var r = t.last;
|
|
1434
1343
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
1435
1344
|
}
|
|
1436
1345
|
function Ae(e, t) {
|
|
1437
|
-
var r =
|
|
1346
|
+
var r = H;
|
|
1438
1347
|
r !== null && r.f & ie && (e |= ie);
|
|
1439
1348
|
var n = {
|
|
1440
|
-
ctx:
|
|
1349
|
+
ctx: ae,
|
|
1441
1350
|
deps: null,
|
|
1442
1351
|
nodes: null,
|
|
1443
|
-
f: e |
|
|
1352
|
+
f: e | W | we,
|
|
1444
1353
|
first: null,
|
|
1445
1354
|
fn: t,
|
|
1446
1355
|
last: null,
|
|
@@ -1454,18 +1363,18 @@ function Ae(e, t) {
|
|
|
1454
1363
|
};
|
|
1455
1364
|
P?.register_created_effect(n);
|
|
1456
1365
|
var i = n;
|
|
1457
|
-
if (e &
|
|
1458
|
-
|
|
1366
|
+
if (e & pt)
|
|
1367
|
+
Dt !== null ? Dt.push(n) : Ue.ensure().schedule(n);
|
|
1459
1368
|
else if (t !== null) {
|
|
1460
1369
|
try {
|
|
1461
|
-
|
|
1370
|
+
bt(n);
|
|
1462
1371
|
} catch (a) {
|
|
1463
|
-
throw
|
|
1372
|
+
throw oe(n), a;
|
|
1464
1373
|
}
|
|
1465
1374
|
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && // either `null`, or a singular child
|
|
1466
|
-
!(i.f & it) && (i = i.first, e & ye && e &
|
|
1375
|
+
!(i.f & it) && (i = i.first, e & ye && e & vt && i !== null && (i.f |= vt));
|
|
1467
1376
|
}
|
|
1468
|
-
if (i !== null && (i.parent = r, r !== null &&
|
|
1377
|
+
if (i !== null && (i.parent = r, r !== null && ya(i, r), O !== null && O.f & K && !(e & $e))) {
|
|
1469
1378
|
var s = (
|
|
1470
1379
|
/** @type {Derived} */
|
|
1471
1380
|
O
|
|
@@ -1485,50 +1394,50 @@ function fr(e) {
|
|
|
1485
1394
|
Di();
|
|
1486
1395
|
var t = (
|
|
1487
1396
|
/** @type {Effect} */
|
|
1488
|
-
|
|
1489
|
-
), r = !O && (t & me) !== 0 &&
|
|
1397
|
+
H.f
|
|
1398
|
+
), r = !O && (t & me) !== 0 && ae !== null && !ae.i;
|
|
1490
1399
|
if (r) {
|
|
1491
1400
|
var n = (
|
|
1492
1401
|
/** @type {ComponentContext} */
|
|
1493
|
-
|
|
1402
|
+
ae
|
|
1494
1403
|
);
|
|
1495
1404
|
(n.e ??= []).push(e);
|
|
1496
1405
|
} else
|
|
1497
1406
|
return Fi(e);
|
|
1498
1407
|
}
|
|
1499
1408
|
function Fi(e) {
|
|
1500
|
-
return Ae(
|
|
1409
|
+
return Ae(pt | _i, e);
|
|
1501
1410
|
}
|
|
1502
1411
|
function vl(e) {
|
|
1503
|
-
return Di(), Ae(Vt |
|
|
1412
|
+
return Di(), Ae(Vt | _i, e);
|
|
1504
1413
|
}
|
|
1505
|
-
function
|
|
1414
|
+
function Ea(e) {
|
|
1506
1415
|
Ue.ensure();
|
|
1507
1416
|
const t = Ae($e | it, e);
|
|
1508
1417
|
return () => {
|
|
1509
|
-
|
|
1418
|
+
oe(t);
|
|
1510
1419
|
};
|
|
1511
1420
|
}
|
|
1512
|
-
function
|
|
1421
|
+
function xa(e) {
|
|
1513
1422
|
Ue.ensure();
|
|
1514
1423
|
const t = Ae($e | it, e);
|
|
1515
1424
|
return (r = {}) => new Promise((n) => {
|
|
1516
|
-
r.outro ?
|
|
1517
|
-
|
|
1518
|
-
}) : (
|
|
1425
|
+
r.outro ? Ke(t, () => {
|
|
1426
|
+
oe(t), n(void 0);
|
|
1427
|
+
}) : (oe(t), n(void 0));
|
|
1519
1428
|
});
|
|
1520
1429
|
}
|
|
1521
1430
|
function Mn(e) {
|
|
1522
|
-
return Ae(
|
|
1431
|
+
return Ae(pt, e);
|
|
1523
1432
|
}
|
|
1524
|
-
function
|
|
1525
|
-
return Ae(
|
|
1433
|
+
function wa(e) {
|
|
1434
|
+
return Ae(ht | it, e);
|
|
1526
1435
|
}
|
|
1527
|
-
function
|
|
1436
|
+
function yr(e, t = 0) {
|
|
1528
1437
|
return Ae(Vt | t, e);
|
|
1529
1438
|
}
|
|
1530
1439
|
function Jr(e, t = [], r = [], n = []) {
|
|
1531
|
-
|
|
1440
|
+
la(n, t, r, (i) => {
|
|
1532
1441
|
Ae(Vt, () => {
|
|
1533
1442
|
e(...i.map(x));
|
|
1534
1443
|
});
|
|
@@ -1545,13 +1454,13 @@ function Gi(e) {
|
|
|
1545
1454
|
var t = e.teardown;
|
|
1546
1455
|
if (t !== null) {
|
|
1547
1456
|
const r = Fe, n = O;
|
|
1548
|
-
|
|
1457
|
+
Gn(!0), ge(null);
|
|
1549
1458
|
try {
|
|
1550
1459
|
t.call(null);
|
|
1551
1460
|
} catch (i) {
|
|
1552
1461
|
He(i, e.parent);
|
|
1553
1462
|
} finally {
|
|
1554
|
-
|
|
1463
|
+
Gn(r), ge(n);
|
|
1555
1464
|
}
|
|
1556
1465
|
}
|
|
1557
1466
|
}
|
|
@@ -1559,20 +1468,20 @@ function Nn(e, t = !1) {
|
|
|
1559
1468
|
var r = e.first;
|
|
1560
1469
|
for (e.first = e.last = null; r !== null; ) {
|
|
1561
1470
|
const i = r.ac;
|
|
1562
|
-
i !== null &&
|
|
1471
|
+
i !== null && mr(() => {
|
|
1563
1472
|
i.abort(Xt);
|
|
1564
1473
|
});
|
|
1565
1474
|
var n = r.next;
|
|
1566
|
-
r.f & $e ? r.parent = null :
|
|
1475
|
+
r.f & $e ? r.parent = null : oe(r, t), r = n;
|
|
1567
1476
|
}
|
|
1568
1477
|
}
|
|
1569
|
-
function
|
|
1478
|
+
function Ta(e) {
|
|
1570
1479
|
for (var t = e.first; t !== null; ) {
|
|
1571
1480
|
var r = t.next;
|
|
1572
|
-
t.f & me ||
|
|
1481
|
+
t.f & me || oe(t), t = r;
|
|
1573
1482
|
}
|
|
1574
1483
|
}
|
|
1575
|
-
function
|
|
1484
|
+
function oe(e, t = !0) {
|
|
1576
1485
|
var r = !1;
|
|
1577
1486
|
(t || e.f & Gs) && e.nodes !== null && e.nodes.end !== null && (ki(
|
|
1578
1487
|
e.nodes.start,
|
|
@@ -1583,7 +1492,7 @@ function ae(e, t = !0) {
|
|
|
1583
1492
|
if (n !== null)
|
|
1584
1493
|
for (const s of n)
|
|
1585
1494
|
s.stop();
|
|
1586
|
-
Gi(e), e.f ^= ir, e.f |=
|
|
1495
|
+
Gi(e), e.f ^= ir, e.f |= se;
|
|
1587
1496
|
var i = e.parent;
|
|
1588
1497
|
i !== null && i.first !== null && ji(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1589
1498
|
}
|
|
@@ -1597,11 +1506,11 @@ function ji(e) {
|
|
|
1597
1506
|
var t = e.parent, r = e.prev, n = e.next;
|
|
1598
1507
|
r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
|
|
1599
1508
|
}
|
|
1600
|
-
function
|
|
1509
|
+
function Ke(e, t, r = !0) {
|
|
1601
1510
|
var n = [];
|
|
1602
|
-
e.f |=
|
|
1511
|
+
e.f |= _n, Vi(e, n, !0);
|
|
1603
1512
|
var i = () => {
|
|
1604
|
-
r &&
|
|
1513
|
+
r && oe(e), t && t();
|
|
1605
1514
|
}, s = n.length;
|
|
1606
1515
|
if (s > 0) {
|
|
1607
1516
|
var a = () => --s || i();
|
|
@@ -1620,7 +1529,7 @@ function Vi(e, t, r) {
|
|
|
1620
1529
|
for (var i = e.first; i !== null; ) {
|
|
1621
1530
|
var s = i.next;
|
|
1622
1531
|
if (!(i.f & $e)) {
|
|
1623
|
-
var a = (i.f &
|
|
1532
|
+
var a = (i.f & vt) !== 0 || // If this is a branch effect without a block effect parent,
|
|
1624
1533
|
// it means the parent block effect was pruned. In that case,
|
|
1625
1534
|
// transparency information was transferred to the branch effect.
|
|
1626
1535
|
(i.f & me) !== 0 && (e.f & ye) !== 0;
|
|
@@ -1631,13 +1540,13 @@ function Vi(e, t, r) {
|
|
|
1631
1540
|
}
|
|
1632
1541
|
}
|
|
1633
1542
|
function hr(e) {
|
|
1634
|
-
e.f &= ~
|
|
1543
|
+
e.f &= ~_n, Xi(e, !0);
|
|
1635
1544
|
}
|
|
1636
1545
|
function Xi(e, t) {
|
|
1637
|
-
if (!(e.f &
|
|
1638
|
-
e.f ^= ie, e.f & Z || (V(e,
|
|
1546
|
+
if (!(e.f & _n) && e.f & ie) {
|
|
1547
|
+
e.f ^= ie, e.f & Z || (V(e, W), Ue.ensure().schedule(e));
|
|
1639
1548
|
for (var r = e.first; r !== null; ) {
|
|
1640
|
-
var n = r.next, i = (r.f &
|
|
1549
|
+
var n = r.next, i = (r.f & vt) !== 0 || (r.f & me) !== 0;
|
|
1641
1550
|
Xi(r, i ? t : !1), r = n;
|
|
1642
1551
|
}
|
|
1643
1552
|
var s = e.nodes && e.nodes.t;
|
|
@@ -1654,37 +1563,37 @@ function Pn(e, t) {
|
|
|
1654
1563
|
}
|
|
1655
1564
|
}
|
|
1656
1565
|
let Qt = !1, Fe = !1;
|
|
1657
|
-
function
|
|
1566
|
+
function Gn(e) {
|
|
1658
1567
|
Fe = e;
|
|
1659
1568
|
}
|
|
1660
1569
|
let O = null, xe = !1;
|
|
1661
1570
|
function ge(e) {
|
|
1662
1571
|
O = e;
|
|
1663
1572
|
}
|
|
1664
|
-
let
|
|
1573
|
+
let H = null;
|
|
1665
1574
|
function Le(e) {
|
|
1666
|
-
|
|
1575
|
+
H = e;
|
|
1667
1576
|
}
|
|
1668
1577
|
let Pe = null;
|
|
1669
1578
|
function Wi(e) {
|
|
1670
|
-
O !== null && (Pe ??= /* @__PURE__ */ new Set()).add(e);
|
|
1579
|
+
O !== null && (O.f & ar || O.f & K) && (Pe ??= /* @__PURE__ */ new Set()).add(e);
|
|
1671
1580
|
}
|
|
1672
|
-
let
|
|
1673
|
-
function
|
|
1581
|
+
let fe = null, he = 0, ce = null;
|
|
1582
|
+
function Sa(e) {
|
|
1674
1583
|
ce = e;
|
|
1675
1584
|
}
|
|
1676
|
-
let zi = 1,
|
|
1677
|
-
function
|
|
1678
|
-
|
|
1585
|
+
let zi = 1, Qe = 0, et = Qe;
|
|
1586
|
+
function kn(e) {
|
|
1587
|
+
et = e;
|
|
1679
1588
|
}
|
|
1680
1589
|
function Yi() {
|
|
1681
1590
|
return ++zi;
|
|
1682
1591
|
}
|
|
1683
1592
|
function zt(e) {
|
|
1684
1593
|
var t = e.f;
|
|
1685
|
-
if (t &
|
|
1594
|
+
if (t & W)
|
|
1686
1595
|
return !0;
|
|
1687
|
-
if (t &
|
|
1596
|
+
if (t & _e) {
|
|
1688
1597
|
for (var r = (
|
|
1689
1598
|
/** @type {Value[]} */
|
|
1690
1599
|
e.deps
|
|
@@ -1699,7 +1608,7 @@ function zt(e) {
|
|
|
1699
1608
|
), s.wv > e.wv)
|
|
1700
1609
|
return !0;
|
|
1701
1610
|
}
|
|
1702
|
-
t &
|
|
1611
|
+
t & we && // During time traveling we don't want to reset the status so that
|
|
1703
1612
|
// traversal of the graph in the other batches still happens
|
|
1704
1613
|
Ee === null && V(e, Z);
|
|
1705
1614
|
}
|
|
@@ -1710,21 +1619,21 @@ function Zi(e, t, r = !0) {
|
|
|
1710
1619
|
if (n !== null && !(Pe !== null && Pe.has(e)))
|
|
1711
1620
|
for (var i = 0; i < n.length; i++) {
|
|
1712
1621
|
var s = n[i];
|
|
1713
|
-
s.f &
|
|
1622
|
+
s.f & K ? Zi(
|
|
1714
1623
|
/** @type {Derived} */
|
|
1715
1624
|
s,
|
|
1716
1625
|
t,
|
|
1717
1626
|
!1
|
|
1718
|
-
) : t === s && (r ? V(s,
|
|
1627
|
+
) : t === s && (r ? V(s, W) : s.f & Z && V(s, _e), Tn(
|
|
1719
1628
|
/** @type {Effect} */
|
|
1720
1629
|
s
|
|
1721
1630
|
));
|
|
1722
1631
|
}
|
|
1723
1632
|
}
|
|
1724
1633
|
function qi(e) {
|
|
1725
|
-
var t =
|
|
1726
|
-
|
|
1727
|
-
null, he = 0, ce = null, O = l & (me | $e) ? null : e, Pe = null,
|
|
1634
|
+
var t = fe, r = he, n = ce, i = O, s = Pe, a = ae, o = xe, u = et, l = e.f;
|
|
1635
|
+
fe = /** @type {null | Value[]} */
|
|
1636
|
+
null, he = 0, ce = null, O = l & (me | $e) ? null : e, Pe = null, mt(e.ctx), xe = !1, et = ++Qe, e.ac !== null && (mr(() => {
|
|
1728
1637
|
e.ac.abort(Xt);
|
|
1729
1638
|
}), e.ac = null);
|
|
1730
1639
|
try {
|
|
@@ -1734,8 +1643,8 @@ function qi(e) {
|
|
|
1734
1643
|
e.fn
|
|
1735
1644
|
), h = f();
|
|
1736
1645
|
e.f |= nt;
|
|
1737
|
-
var d =
|
|
1738
|
-
if (
|
|
1646
|
+
var d = jn(e);
|
|
1647
|
+
if (xi() && ce !== null && !xe && d !== null && !(e.f & (K | _e | W)))
|
|
1739
1648
|
for (var p = 0; p < /** @type {Source[]} */
|
|
1740
1649
|
ce.length; p++)
|
|
1741
1650
|
Zi(
|
|
@@ -1744,38 +1653,38 @@ function qi(e) {
|
|
|
1744
1653
|
e
|
|
1745
1654
|
);
|
|
1746
1655
|
if (i !== null && i !== e) {
|
|
1747
|
-
if (
|
|
1656
|
+
if (Qe++, i.deps !== null)
|
|
1748
1657
|
for (let c = 0; c < r; c += 1)
|
|
1749
|
-
i.deps[c].rv =
|
|
1658
|
+
i.deps[c].rv = Qe;
|
|
1750
1659
|
if (t !== null)
|
|
1751
1660
|
for (const c of t)
|
|
1752
|
-
c.rv =
|
|
1661
|
+
c.rv = Qe;
|
|
1753
1662
|
ce !== null && (n === null ? n = ce : n.push(.../** @type {Source[]} */
|
|
1754
1663
|
ce));
|
|
1755
1664
|
}
|
|
1756
1665
|
return e.f & Xe && (e.f ^= Xe), h;
|
|
1757
1666
|
} catch (c) {
|
|
1758
|
-
return
|
|
1667
|
+
return jn(e), ba(c);
|
|
1759
1668
|
} finally {
|
|
1760
|
-
e.f ^= ar,
|
|
1669
|
+
e.f ^= ar, fe = t, he = r, ce = n, O = i, Pe = s, mt(a), xe = o, et = u;
|
|
1761
1670
|
}
|
|
1762
1671
|
}
|
|
1763
|
-
function
|
|
1672
|
+
function jn(e) {
|
|
1764
1673
|
var t = e.deps, r = P?.is_fork;
|
|
1765
|
-
if (
|
|
1674
|
+
if (fe !== null) {
|
|
1766
1675
|
var n;
|
|
1767
1676
|
if (r || Gt(e, he), t !== null && he > 0)
|
|
1768
|
-
for (t.length = he +
|
|
1769
|
-
t[he + n] =
|
|
1677
|
+
for (t.length = he + fe.length, n = 0; n < fe.length; n++)
|
|
1678
|
+
t[he + n] = fe[n];
|
|
1770
1679
|
else
|
|
1771
|
-
e.deps = t =
|
|
1772
|
-
if (Hn() && e.f &
|
|
1680
|
+
e.deps = t = fe;
|
|
1681
|
+
if (Hn() && e.f & we)
|
|
1773
1682
|
for (n = he; n < t.length; n++)
|
|
1774
1683
|
(t[n].reactions ??= []).push(e);
|
|
1775
1684
|
} else !r && t !== null && he < t.length && (Gt(e, he), t.length = he);
|
|
1776
1685
|
return t;
|
|
1777
1686
|
}
|
|
1778
|
-
function
|
|
1687
|
+
function Aa(e, t) {
|
|
1779
1688
|
let r = t.reactions;
|
|
1780
1689
|
if (r !== null) {
|
|
1781
1690
|
var n = Ds.call(r, e);
|
|
@@ -1784,53 +1693,53 @@ function Na(e, t) {
|
|
|
1784
1693
|
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
1785
1694
|
}
|
|
1786
1695
|
}
|
|
1787
|
-
if (r === null && t.f &
|
|
1696
|
+
if (r === null && t.f & K && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
1788
1697
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
1789
1698
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
1790
|
-
(
|
|
1699
|
+
(fe === null || !rr.call(fe, t))) {
|
|
1791
1700
|
var s = (
|
|
1792
1701
|
/** @type {Derived} */
|
|
1793
1702
|
t
|
|
1794
1703
|
);
|
|
1795
|
-
s.f &
|
|
1796
|
-
s.ac.abort(Xt), s.ac = null, V(s,
|
|
1797
|
-
}),
|
|
1704
|
+
s.f & we && (s.f ^= we), s.v !== Y && En(s), s.ac !== null && mr(() => {
|
|
1705
|
+
s.ac.abort(Xt), s.ac = null, V(s, W);
|
|
1706
|
+
}), pa(s), Gt(s, 0);
|
|
1798
1707
|
}
|
|
1799
1708
|
}
|
|
1800
1709
|
function Gt(e, t) {
|
|
1801
1710
|
var r = e.deps;
|
|
1802
1711
|
if (r !== null)
|
|
1803
1712
|
for (var n = t; n < r.length; n++)
|
|
1804
|
-
|
|
1713
|
+
Aa(e, r[n]);
|
|
1805
1714
|
}
|
|
1806
|
-
function
|
|
1715
|
+
function bt(e) {
|
|
1807
1716
|
var t = e.f;
|
|
1808
|
-
if (!(t &
|
|
1717
|
+
if (!(t & se)) {
|
|
1809
1718
|
V(e, Z);
|
|
1810
|
-
var r =
|
|
1811
|
-
|
|
1719
|
+
var r = H, n = Qt;
|
|
1720
|
+
H = e, Qt = (t & (me | $e)) === 0;
|
|
1812
1721
|
try {
|
|
1813
|
-
t & (ye |
|
|
1722
|
+
t & (ye | vi) ? Ta(e) : Nn(e), Gi(e);
|
|
1814
1723
|
var i = qi(e);
|
|
1815
1724
|
e.teardown = typeof i == "function" ? i : null, e.wv = zi;
|
|
1816
1725
|
var s;
|
|
1817
|
-
|
|
1726
|
+
fi && aa && e.f & W && e.deps;
|
|
1818
1727
|
} finally {
|
|
1819
|
-
Qt = n,
|
|
1728
|
+
Qt = n, H = r;
|
|
1820
1729
|
}
|
|
1821
1730
|
}
|
|
1822
1731
|
}
|
|
1823
|
-
async function
|
|
1732
|
+
async function Ha() {
|
|
1824
1733
|
await Promise.resolve(), pe();
|
|
1825
1734
|
}
|
|
1826
1735
|
function x(e) {
|
|
1827
|
-
var t = e.f, r = (t &
|
|
1736
|
+
var t = e.f, r = (t & K) !== 0;
|
|
1828
1737
|
if (O !== null && !xe) {
|
|
1829
|
-
var n =
|
|
1738
|
+
var n = H !== null && (H.f & se) !== 0;
|
|
1830
1739
|
if (!n && (Pe === null || !Pe.has(e))) {
|
|
1831
1740
|
var i = O.deps;
|
|
1832
1741
|
if (O.f & ar)
|
|
1833
|
-
e.rv <
|
|
1742
|
+
e.rv < Qe && (e.rv = Qe, fe === null && i !== null && i[he] === e ? he++ : fe === null ? fe = [e] : fe.push(e));
|
|
1834
1743
|
else {
|
|
1835
1744
|
O.deps ??= [], rr.call(O.deps, e) || O.deps.push(e);
|
|
1836
1745
|
var s = e.reactions;
|
|
@@ -1849,8 +1758,8 @@ function x(e) {
|
|
|
1849
1758
|
var o = a.v;
|
|
1850
1759
|
return (!(a.f & Z) && a.reactions !== null || Qi(a)) && (o = xn(a)), Ne.set(a, o), o;
|
|
1851
1760
|
}
|
|
1852
|
-
var u = (a.f &
|
|
1853
|
-
zt(a) && (u && (a.f |=
|
|
1761
|
+
var u = (a.f & we) === 0 && !xe && O !== null && (Qt || (O.f & we) !== 0), l = (a.f & nt) === 0;
|
|
1762
|
+
zt(a) && (u && (a.f |= we), Ai(a)), u && !l && (Hi(a), Ji(a));
|
|
1854
1763
|
}
|
|
1855
1764
|
if (Ee?.has(e))
|
|
1856
1765
|
return Ee.get(e);
|
|
@@ -1859,9 +1768,9 @@ function x(e) {
|
|
|
1859
1768
|
return e.v;
|
|
1860
1769
|
}
|
|
1861
1770
|
function Ji(e) {
|
|
1862
|
-
if (e.f |=
|
|
1771
|
+
if (e.f |= we, e.deps !== null)
|
|
1863
1772
|
for (const t of e.deps)
|
|
1864
|
-
(t.reactions ??= []).push(e), t.f &
|
|
1773
|
+
(t.reactions ??= []).push(e), t.f & K && !(t.f & we) && (Hi(
|
|
1865
1774
|
/** @type {Derived} */
|
|
1866
1775
|
t
|
|
1867
1776
|
), Ji(
|
|
@@ -1873,14 +1782,14 @@ function Qi(e) {
|
|
|
1873
1782
|
if (e.v === Y) return !0;
|
|
1874
1783
|
if (e.deps === null) return !1;
|
|
1875
1784
|
for (const t of e.deps)
|
|
1876
|
-
if (Ne.has(t) || t.f &
|
|
1785
|
+
if (Ne.has(t) || t.f & K && Qi(
|
|
1877
1786
|
/** @type {Derived} */
|
|
1878
1787
|
t
|
|
1879
1788
|
))
|
|
1880
1789
|
return !0;
|
|
1881
1790
|
return !1;
|
|
1882
1791
|
}
|
|
1883
|
-
function
|
|
1792
|
+
function Er(e) {
|
|
1884
1793
|
var t = xe;
|
|
1885
1794
|
try {
|
|
1886
1795
|
return xe = !0, e();
|
|
@@ -1888,14 +1797,14 @@ function xr(e) {
|
|
|
1888
1797
|
xe = t;
|
|
1889
1798
|
}
|
|
1890
1799
|
}
|
|
1891
|
-
function
|
|
1800
|
+
function Ma(e) {
|
|
1892
1801
|
if (!(typeof e != "object" || !e || e instanceof EventTarget)) {
|
|
1893
|
-
if (
|
|
1802
|
+
if (ct in e)
|
|
1894
1803
|
Qr(e);
|
|
1895
1804
|
else if (!Array.isArray(e))
|
|
1896
1805
|
for (let t in e) {
|
|
1897
1806
|
const r = e[t];
|
|
1898
|
-
typeof r == "object" && r &&
|
|
1807
|
+
typeof r == "object" && r && ct in r && Qr(r);
|
|
1899
1808
|
}
|
|
1900
1809
|
}
|
|
1901
1810
|
}
|
|
@@ -1908,9 +1817,9 @@ function Qr(e, t = /* @__PURE__ */ new Set()) {
|
|
|
1908
1817
|
Qr(e[n], t);
|
|
1909
1818
|
} catch {
|
|
1910
1819
|
}
|
|
1911
|
-
const r =
|
|
1820
|
+
const r = vn(e);
|
|
1912
1821
|
if (r !== Object.prototype && r !== Array.prototype && r !== Map.prototype && r !== Set.prototype && r !== Date.prototype) {
|
|
1913
|
-
const n =
|
|
1822
|
+
const n = ci(r);
|
|
1914
1823
|
for (let i in n) {
|
|
1915
1824
|
const s = n[i].get;
|
|
1916
1825
|
if (s)
|
|
@@ -1922,18 +1831,18 @@ function Qr(e, t = /* @__PURE__ */ new Set()) {
|
|
|
1922
1831
|
}
|
|
1923
1832
|
}
|
|
1924
1833
|
}
|
|
1925
|
-
const
|
|
1834
|
+
const Bt = Symbol("events"), Ki = /* @__PURE__ */ new Set(), Kr = /* @__PURE__ */ new Set();
|
|
1926
1835
|
function Pr(e, t, r) {
|
|
1927
|
-
(t[
|
|
1836
|
+
(t[Bt] ??= {})[e] = r;
|
|
1928
1837
|
}
|
|
1929
|
-
function
|
|
1838
|
+
function Oa(e) {
|
|
1930
1839
|
for (var t = 0; t < e.length; t++)
|
|
1931
1840
|
Ki.add(e[t]);
|
|
1932
1841
|
for (var r of Kr)
|
|
1933
1842
|
r(e);
|
|
1934
1843
|
}
|
|
1935
1844
|
let $r = null, Lr = !1;
|
|
1936
|
-
function
|
|
1845
|
+
function Vn(e) {
|
|
1937
1846
|
var t = this, r = (
|
|
1938
1847
|
/** @type {Node} */
|
|
1939
1848
|
t.ownerDocument
|
|
@@ -1944,12 +1853,12 @@ function jn(e) {
|
|
|
1944
1853
|
$r = e, Lr || (Lr = !0, setTimeout(() => {
|
|
1945
1854
|
Lr = !1, $r = null;
|
|
1946
1855
|
}));
|
|
1947
|
-
var a = 0, o = $r === e && e[
|
|
1856
|
+
var a = 0, o = $r === e && e[Bt];
|
|
1948
1857
|
if (o) {
|
|
1949
1858
|
var u = i.indexOf(o);
|
|
1950
1859
|
if (u !== -1 && (t === document || t === /** @type {any} */
|
|
1951
1860
|
window)) {
|
|
1952
|
-
e[
|
|
1861
|
+
e[Bt] = t;
|
|
1953
1862
|
return;
|
|
1954
1863
|
}
|
|
1955
1864
|
var l = i.indexOf(t);
|
|
@@ -1959,18 +1868,18 @@ function jn(e) {
|
|
|
1959
1868
|
}
|
|
1960
1869
|
if (s = /** @type {Element} */
|
|
1961
1870
|
i[a] || e.target, s !== t) {
|
|
1962
|
-
|
|
1871
|
+
dt(e, "currentTarget", {
|
|
1963
1872
|
configurable: !0,
|
|
1964
1873
|
get() {
|
|
1965
1874
|
return s || r;
|
|
1966
1875
|
}
|
|
1967
1876
|
});
|
|
1968
|
-
var f = O, h =
|
|
1877
|
+
var f = O, h = H;
|
|
1969
1878
|
ge(null), Le(null);
|
|
1970
1879
|
try {
|
|
1971
1880
|
for (var d, p = []; s !== null && s !== t; ) {
|
|
1972
1881
|
try {
|
|
1973
|
-
var c = s[
|
|
1882
|
+
var c = s[Bt]?.[n];
|
|
1974
1883
|
c != null && (!/** @type {any} */
|
|
1975
1884
|
s.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
1976
1885
|
// -> the target could not have been disabled because it emits the event in the first place
|
|
@@ -1992,41 +1901,41 @@ function jn(e) {
|
|
|
1992
1901
|
throw d;
|
|
1993
1902
|
}
|
|
1994
1903
|
} finally {
|
|
1995
|
-
e[
|
|
1904
|
+
e[Bt] = t, delete e.currentTarget, ge(f), Le(h);
|
|
1996
1905
|
}
|
|
1997
1906
|
}
|
|
1998
1907
|
}
|
|
1999
|
-
const
|
|
1908
|
+
const Na = (
|
|
2000
1909
|
// We gotta write it like this because after downleveling the pure comment may end up in the wrong location
|
|
2001
1910
|
globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
|
|
2002
1911
|
/** @param {string} html */
|
|
2003
1912
|
createHTML: (e) => e
|
|
2004
1913
|
})
|
|
2005
1914
|
);
|
|
2006
|
-
function
|
|
1915
|
+
function Pa(e) {
|
|
2007
1916
|
return (
|
|
2008
1917
|
/** @type {string} */
|
|
2009
|
-
|
|
1918
|
+
Na?.createHTML(e) ?? e
|
|
2010
1919
|
);
|
|
2011
1920
|
}
|
|
2012
|
-
function
|
|
2013
|
-
var t =
|
|
2014
|
-
return t.innerHTML =
|
|
1921
|
+
function $a(e) {
|
|
1922
|
+
var t = br("template");
|
|
1923
|
+
return t.innerHTML = Pa(e.replaceAll("<!>", "<!---->")), t.content;
|
|
2015
1924
|
}
|
|
2016
1925
|
function De(e, t) {
|
|
2017
1926
|
var r = (
|
|
2018
1927
|
/** @type {Effect} */
|
|
2019
|
-
|
|
1928
|
+
H
|
|
2020
1929
|
);
|
|
2021
1930
|
r.nodes === null && (r.nodes = { start: e, end: t, a: null, t: null });
|
|
2022
1931
|
}
|
|
2023
1932
|
// @__NO_SIDE_EFFECTS__
|
|
2024
|
-
function
|
|
1933
|
+
function xr(e, t) {
|
|
2025
1934
|
var r = (t & Is) !== 0, n = (t & Bs) !== 0, i, s = !e.startsWith("<!>");
|
|
2026
1935
|
return () => {
|
|
2027
1936
|
if (L)
|
|
2028
1937
|
return De($, null), $;
|
|
2029
|
-
i === void 0 && (i =
|
|
1938
|
+
i === void 0 && (i = $a(s ? e : "<!>" + e), r || (i = /** @type {TemplateNode} */
|
|
2030
1939
|
/* @__PURE__ */ ve(i)));
|
|
2031
1940
|
var a = (
|
|
2032
1941
|
/** @type {TemplateNode} */
|
|
@@ -2046,7 +1955,7 @@ function wr(e, t) {
|
|
|
2046
1955
|
return a;
|
|
2047
1956
|
};
|
|
2048
1957
|
}
|
|
2049
|
-
function
|
|
1958
|
+
function La() {
|
|
2050
1959
|
if (L)
|
|
2051
1960
|
return De($, null), $;
|
|
2052
1961
|
var e = document.createDocumentFragment(), t = document.createComment(""), r = Te();
|
|
@@ -2056,9 +1965,9 @@ function lt(e, t) {
|
|
|
2056
1965
|
if (L) {
|
|
2057
1966
|
var r = (
|
|
2058
1967
|
/** @type {Effect & { nodes: EffectNodes }} */
|
|
2059
|
-
|
|
1968
|
+
H
|
|
2060
1969
|
);
|
|
2061
|
-
(!(r.f & nt) || r.nodes.end === null) && (r.nodes.end = $),
|
|
1970
|
+
(!(r.f & nt) || r.nodes.end === null) && (r.nodes.end = $), _t();
|
|
2062
1971
|
return;
|
|
2063
1972
|
}
|
|
2064
1973
|
e !== null && e.before(
|
|
@@ -2066,25 +1975,25 @@ function lt(e, t) {
|
|
|
2066
1975
|
t
|
|
2067
1976
|
);
|
|
2068
1977
|
}
|
|
2069
|
-
const
|
|
2070
|
-
function
|
|
2071
|
-
return
|
|
1978
|
+
const Ia = ["touchstart", "touchmove"];
|
|
1979
|
+
function Ba(e) {
|
|
1980
|
+
return Ia.includes(e);
|
|
2072
1981
|
}
|
|
2073
|
-
function
|
|
1982
|
+
function Ca(e) {
|
|
2074
1983
|
let t = 0, r = rt(0), n;
|
|
2075
1984
|
return () => {
|
|
2076
|
-
Hn() && (x(r),
|
|
2077
|
-
|
|
1985
|
+
Hn() && (x(r), yr(() => (t === 0 && (n = Er(() => e(() => Ut(r)))), t += 1, () => {
|
|
1986
|
+
Je(() => {
|
|
2078
1987
|
t -= 1, t === 0 && (n?.(), n = void 0, Ut(r));
|
|
2079
1988
|
});
|
|
2080
1989
|
})));
|
|
2081
1990
|
};
|
|
2082
1991
|
}
|
|
2083
|
-
var
|
|
2084
|
-
function
|
|
2085
|
-
new
|
|
1992
|
+
var Ra = vt | it;
|
|
1993
|
+
function Da(e, t, r, n) {
|
|
1994
|
+
new Ua(e, t, r, n);
|
|
2086
1995
|
}
|
|
2087
|
-
class
|
|
1996
|
+
class Ua {
|
|
2088
1997
|
/** @type {Boundary | null} */
|
|
2089
1998
|
parent;
|
|
2090
1999
|
is_pending = !1;
|
|
@@ -2112,7 +2021,7 @@ class ja {
|
|
|
2112
2021
|
#o = null;
|
|
2113
2022
|
/** @type {DocumentFragment | null} */
|
|
2114
2023
|
#s = null;
|
|
2115
|
-
#
|
|
2024
|
+
#p = 0;
|
|
2116
2025
|
#l = 0;
|
|
2117
2026
|
#f = !1;
|
|
2118
2027
|
/** @type {Set<Effect>} */
|
|
@@ -2127,7 +2036,7 @@ class ja {
|
|
|
2127
2036
|
* @type {Source<number> | null}
|
|
2128
2037
|
*/
|
|
2129
2038
|
#h = null;
|
|
2130
|
-
#b =
|
|
2039
|
+
#b = Ca(() => (this.#h = rt(this.#p), () => {
|
|
2131
2040
|
this.#h = null;
|
|
2132
2041
|
}));
|
|
2133
2042
|
/**
|
|
@@ -2140,27 +2049,27 @@ class ja {
|
|
|
2140
2049
|
this.#e = t, this.#r = r, this.#u = (s) => {
|
|
2141
2050
|
var a = (
|
|
2142
2051
|
/** @type {Effect} */
|
|
2143
|
-
|
|
2052
|
+
H
|
|
2144
2053
|
);
|
|
2145
2054
|
a.b = this, a.f |= kr, n(s);
|
|
2146
2055
|
}, this.parent = /** @type {Effect} */
|
|
2147
|
-
|
|
2056
|
+
H.b, this.transform_error = i ?? this.parent?.transform_error ?? ((s) => s), this.#i = On(() => {
|
|
2148
2057
|
if (L) {
|
|
2149
2058
|
const s = (
|
|
2150
2059
|
/** @type {Comment} */
|
|
2151
2060
|
this.#t
|
|
2152
2061
|
);
|
|
2153
|
-
|
|
2154
|
-
const a = s.data ===
|
|
2155
|
-
if (s.data.startsWith(
|
|
2156
|
-
const u = JSON.parse(s.data.slice(
|
|
2157
|
-
this.#
|
|
2158
|
-
} else a ? this.#
|
|
2062
|
+
_t();
|
|
2063
|
+
const a = s.data === dn;
|
|
2064
|
+
if (s.data.startsWith(Bn)) {
|
|
2065
|
+
const u = JSON.parse(s.data.slice(Bn.length));
|
|
2066
|
+
this.#m(u);
|
|
2067
|
+
} else a ? this.#w() : this.#y();
|
|
2159
2068
|
} else
|
|
2160
|
-
this.#
|
|
2161
|
-
},
|
|
2069
|
+
this.#E();
|
|
2070
|
+
}, Ra), L && (this.#e = $);
|
|
2162
2071
|
}
|
|
2163
|
-
#
|
|
2072
|
+
#y() {
|
|
2164
2073
|
try {
|
|
2165
2074
|
this.#a = de(() => this.#u(this.#e));
|
|
2166
2075
|
} catch (t) {
|
|
@@ -2170,9 +2079,9 @@ class ja {
|
|
|
2170
2079
|
/**
|
|
2171
2080
|
* @param {unknown} error The deserialized error from the server's hydration comment
|
|
2172
2081
|
*/
|
|
2173
|
-
#
|
|
2174
|
-
const r = this.#r.failed, { reset: n, invoke_onerror: i } = this.#
|
|
2175
|
-
|
|
2082
|
+
#m(t) {
|
|
2083
|
+
const r = this.#r.failed, { reset: n, invoke_onerror: i } = this.#g(t);
|
|
2084
|
+
Je(i), r && (this.#o = de(() => {
|
|
2176
2085
|
r(
|
|
2177
2086
|
this.#e,
|
|
2178
2087
|
() => t,
|
|
@@ -2186,17 +2095,17 @@ class ja {
|
|
|
2186
2095
|
* @param {unknown} error
|
|
2187
2096
|
* @returns {{ reset: () => void, invoke_onerror: () => void }}
|
|
2188
2097
|
*/
|
|
2189
|
-
#
|
|
2098
|
+
#g(t) {
|
|
2190
2099
|
var r = !1, n = !1;
|
|
2191
2100
|
const i = () => {
|
|
2192
2101
|
if (r) {
|
|
2193
2102
|
zs();
|
|
2194
2103
|
return;
|
|
2195
2104
|
}
|
|
2196
|
-
r = !0, n && sa(), this.#o !== null &&
|
|
2105
|
+
r = !0, n && sa(), this.#o !== null && Ke(this.#o, () => {
|
|
2197
2106
|
this.#o = null;
|
|
2198
|
-
}), this.#
|
|
2199
|
-
this.#
|
|
2107
|
+
}), this.#x(() => {
|
|
2108
|
+
this.#E();
|
|
2200
2109
|
});
|
|
2201
2110
|
};
|
|
2202
2111
|
return { reset: i, invoke_onerror: () => {
|
|
@@ -2207,11 +2116,11 @@ class ja {
|
|
|
2207
2116
|
}
|
|
2208
2117
|
} };
|
|
2209
2118
|
}
|
|
2210
|
-
#
|
|
2119
|
+
#w() {
|
|
2211
2120
|
const t = this.#r.pending;
|
|
2212
|
-
t && (this.is_pending = !0, this.#n = de(() => t(this.#e)),
|
|
2121
|
+
t && (this.is_pending = !0, this.#n = de(() => t(this.#e)), Je(() => {
|
|
2213
2122
|
var r = this.#s = document.createDocumentFragment(), n = Te(), i = !1;
|
|
2214
|
-
if (r.append(n), this.#a = this.#
|
|
2123
|
+
if (r.append(n), this.#a = this.#x(() => {
|
|
2215
2124
|
try {
|
|
2216
2125
|
return de(() => this.#u(n));
|
|
2217
2126
|
} catch (s) {
|
|
@@ -2223,27 +2132,27 @@ class ja {
|
|
|
2223
2132
|
return null;
|
|
2224
2133
|
}
|
|
2225
2134
|
}), this.#a === null) {
|
|
2226
|
-
this.#s = null, i && this.#
|
|
2135
|
+
this.#s = null, i && this.#d(
|
|
2227
2136
|
/** @type {Batch} */
|
|
2228
2137
|
P
|
|
2229
2138
|
);
|
|
2230
2139
|
return;
|
|
2231
2140
|
}
|
|
2232
|
-
this.#l === 0 && (this.#e.before(r), this.#s = null,
|
|
2141
|
+
this.#l === 0 && (this.#e.before(r), this.#s = null, Ke(
|
|
2233
2142
|
/** @type {Effect} */
|
|
2234
2143
|
this.#n,
|
|
2235
2144
|
() => {
|
|
2236
2145
|
this.#n = null;
|
|
2237
2146
|
}
|
|
2238
|
-
), this.#
|
|
2147
|
+
), this.#d(
|
|
2239
2148
|
/** @type {Batch} */
|
|
2240
2149
|
P
|
|
2241
2150
|
));
|
|
2242
2151
|
}));
|
|
2243
2152
|
}
|
|
2244
|
-
#
|
|
2153
|
+
#E() {
|
|
2245
2154
|
try {
|
|
2246
|
-
if (this.is_pending = this.has_pending_snippet(), this.#l = 0, this.#
|
|
2155
|
+
if (this.is_pending = this.has_pending_snippet(), this.#l = 0, this.#p = 0, this.#a = de(() => {
|
|
2247
2156
|
this.#u(this.#e);
|
|
2248
2157
|
}), this.#l > 0) {
|
|
2249
2158
|
var t = this.#s = document.createDocumentFragment();
|
|
@@ -2254,7 +2163,7 @@ class ja {
|
|
|
2254
2163
|
);
|
|
2255
2164
|
this.#n = de(() => r(this.#e));
|
|
2256
2165
|
} else
|
|
2257
|
-
this.#
|
|
2166
|
+
this.#d(
|
|
2258
2167
|
/** @type {Batch} */
|
|
2259
2168
|
P
|
|
2260
2169
|
);
|
|
@@ -2265,7 +2174,7 @@ class ja {
|
|
|
2265
2174
|
/**
|
|
2266
2175
|
* @param {Batch} batch
|
|
2267
2176
|
*/
|
|
2268
|
-
#
|
|
2177
|
+
#d(t) {
|
|
2269
2178
|
this.is_pending = !1, t.transfer_effects(this.#c, this.#_);
|
|
2270
2179
|
}
|
|
2271
2180
|
/**
|
|
@@ -2289,13 +2198,13 @@ class ja {
|
|
|
2289
2198
|
* @template T
|
|
2290
2199
|
* @param {() => T} fn
|
|
2291
2200
|
*/
|
|
2292
|
-
#
|
|
2293
|
-
var r =
|
|
2294
|
-
Le(this.#i), ge(this.#i),
|
|
2201
|
+
#x(t) {
|
|
2202
|
+
var r = H, n = O, i = ae;
|
|
2203
|
+
Le(this.#i), ge(this.#i), mt(this.#i.ctx);
|
|
2295
2204
|
try {
|
|
2296
2205
|
return Ue.ensure(), t();
|
|
2297
2206
|
} finally {
|
|
2298
|
-
Le(r), ge(n),
|
|
2207
|
+
Le(r), ge(n), mt(i);
|
|
2299
2208
|
}
|
|
2300
2209
|
}
|
|
2301
2210
|
/**
|
|
@@ -2304,12 +2213,12 @@ class ja {
|
|
|
2304
2213
|
* @param {1 | -1} d
|
|
2305
2214
|
* @param {Batch} batch
|
|
2306
2215
|
*/
|
|
2307
|
-
#
|
|
2216
|
+
#v(t, r) {
|
|
2308
2217
|
if (!this.has_pending_snippet()) {
|
|
2309
|
-
this.parent && this.parent.#
|
|
2218
|
+
this.parent && this.parent.#v(t, r);
|
|
2310
2219
|
return;
|
|
2311
2220
|
}
|
|
2312
|
-
this.#l += t, this.#l === 0 && (this.#
|
|
2221
|
+
this.#l += t, this.#l === 0 && (this.#d(r), this.#n && Ke(this.#n, () => {
|
|
2313
2222
|
this.#n = null;
|
|
2314
2223
|
}), this.#s && (this.#e.before(this.#s), this.#s = null));
|
|
2315
2224
|
}
|
|
@@ -2321,8 +2230,8 @@ class ja {
|
|
|
2321
2230
|
* @param {Batch} batch
|
|
2322
2231
|
*/
|
|
2323
2232
|
update_pending_count(t, r) {
|
|
2324
|
-
this.#
|
|
2325
|
-
this.#f = !1, this.#h &&
|
|
2233
|
+
this.#v(t, r), this.#p += t, !(!this.#h || this.#f) && (this.#f = !0, Je(() => {
|
|
2234
|
+
this.#f = !1, this.#h && gt(this.#h, this.#p);
|
|
2326
2235
|
}));
|
|
2327
2236
|
}
|
|
2328
2237
|
get_effect_pending() {
|
|
@@ -2343,19 +2252,19 @@ class ja {
|
|
|
2343
2252
|
* @param {unknown} error
|
|
2344
2253
|
*/
|
|
2345
2254
|
#T(t) {
|
|
2346
|
-
this.#a && (
|
|
2255
|
+
this.#a && (oe(this.#a), this.#a = null), this.#n && (oe(this.#n), this.#n = null), this.#o && (oe(this.#o), this.#o = null), L && (ue(
|
|
2347
2256
|
/** @type {TemplateNode} */
|
|
2348
2257
|
this.#t
|
|
2349
|
-
), Ys(),
|
|
2258
|
+
), Ys(), ue(or()));
|
|
2350
2259
|
let r = this.#r.failed;
|
|
2351
2260
|
const n = (i) => {
|
|
2352
|
-
const { reset: s, invoke_onerror: a } = this.#
|
|
2353
|
-
a(), r && (this.#o = this.#
|
|
2261
|
+
const { reset: s, invoke_onerror: a } = this.#g(i);
|
|
2262
|
+
a(), r && (this.#o = this.#x(() => {
|
|
2354
2263
|
try {
|
|
2355
2264
|
return de(() => {
|
|
2356
2265
|
var o = (
|
|
2357
2266
|
/** @type {Effect} */
|
|
2358
|
-
|
|
2267
|
+
H
|
|
2359
2268
|
);
|
|
2360
2269
|
o.b = this, o.f |= kr, r(
|
|
2361
2270
|
this.#e,
|
|
@@ -2372,7 +2281,7 @@ class ja {
|
|
|
2372
2281
|
}
|
|
2373
2282
|
}));
|
|
2374
2283
|
};
|
|
2375
|
-
|
|
2284
|
+
Je(() => {
|
|
2376
2285
|
var i;
|
|
2377
2286
|
try {
|
|
2378
2287
|
i = this.transform_error(t);
|
|
@@ -2397,16 +2306,16 @@ function Ir(e, t) {
|
|
|
2397
2306
|
function es(e, t) {
|
|
2398
2307
|
return ts(e, t);
|
|
2399
2308
|
}
|
|
2400
|
-
function
|
|
2309
|
+
function Fa(e, t) {
|
|
2401
2310
|
Zr(), t.intro = t.intro ?? !1;
|
|
2402
2311
|
const r = t.target, n = L, i = $;
|
|
2403
2312
|
try {
|
|
2404
|
-
for (var s = /* @__PURE__ */ ve(r); s && (s.nodeType !==
|
|
2405
|
-
s.data !==
|
|
2313
|
+
for (var s = /* @__PURE__ */ ve(r); s && (s.nodeType !== Tt || /** @type {Comment} */
|
|
2314
|
+
s.data !== ui); )
|
|
2406
2315
|
s = /* @__PURE__ */ Se(s);
|
|
2407
2316
|
if (!s)
|
|
2408
|
-
throw
|
|
2409
|
-
Ce(!0),
|
|
2317
|
+
throw tt;
|
|
2318
|
+
Ce(!0), ue(
|
|
2410
2319
|
/** @type {Comment} */
|
|
2411
2320
|
s
|
|
2412
2321
|
);
|
|
@@ -2417,17 +2326,17 @@ function Va(e, t) {
|
|
|
2417
2326
|
if (a instanceof Error && a.message.split(`
|
|
2418
2327
|
`).some((o) => o.startsWith("https://svelte.dev/e/")))
|
|
2419
2328
|
throw a;
|
|
2420
|
-
return a !==
|
|
2329
|
+
return a !== tt && console.warn("Failed to hydrate: ", a), t.recover === !1 && ta(), Zr(), Ci(r), Ce(!1), es(e, t);
|
|
2421
2330
|
} finally {
|
|
2422
|
-
Ce(n),
|
|
2331
|
+
Ce(n), ue(i);
|
|
2423
2332
|
}
|
|
2424
2333
|
}
|
|
2425
2334
|
const Zt = /* @__PURE__ */ new Map();
|
|
2426
2335
|
function ts(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: a = !0, transformError: o }) {
|
|
2427
2336
|
Zr();
|
|
2428
|
-
var u = void 0, l =
|
|
2337
|
+
var u = void 0, l = xa(() => {
|
|
2429
2338
|
var f = r ?? t.appendChild(Te());
|
|
2430
|
-
|
|
2339
|
+
Da(
|
|
2431
2340
|
/** @type {TemplateNode} */
|
|
2432
2341
|
f,
|
|
2433
2342
|
{
|
|
@@ -2435,19 +2344,19 @@ function ts(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
2435
2344
|
}
|
|
2436
2345
|
},
|
|
2437
2346
|
(p) => {
|
|
2438
|
-
|
|
2347
|
+
gn({});
|
|
2439
2348
|
var c = (
|
|
2440
2349
|
/** @type {ComponentContext} */
|
|
2441
|
-
|
|
2350
|
+
ae
|
|
2442
2351
|
);
|
|
2443
2352
|
if (s && (c.c = s), i && (n.$$events = i), L && De(
|
|
2444
2353
|
/** @type {TemplateNode} */
|
|
2445
2354
|
p,
|
|
2446
2355
|
null
|
|
2447
|
-
), u = e(p, n) ||
|
|
2448
|
-
$.data !==
|
|
2449
|
-
throw Wt(),
|
|
2450
|
-
|
|
2356
|
+
), u = e(p, n) || yn(), L && (H.nodes.end = $, $ === null || $.nodeType !== Tt || /** @type {Comment} */
|
|
2357
|
+
$.data !== pn))
|
|
2358
|
+
throw Wt(), tt;
|
|
2359
|
+
bn();
|
|
2451
2360
|
},
|
|
2452
2361
|
o
|
|
2453
2362
|
);
|
|
@@ -2456,12 +2365,12 @@ function ts(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
2456
2365
|
var y = p[c];
|
|
2457
2366
|
if (!h.has(y)) {
|
|
2458
2367
|
h.add(y);
|
|
2459
|
-
var I =
|
|
2368
|
+
var I = Ba(y);
|
|
2460
2369
|
for (const D of [t, document]) {
|
|
2461
|
-
var
|
|
2462
|
-
|
|
2463
|
-
var B =
|
|
2464
|
-
B === void 0 ? (D.addEventListener(y,
|
|
2370
|
+
var A = Zt.get(D);
|
|
2371
|
+
A === void 0 && (A = /* @__PURE__ */ new Map(), Zt.set(D, A));
|
|
2372
|
+
var B = A.get(y);
|
|
2373
|
+
B === void 0 ? (D.addEventListener(y, Vn, { passive: I }), A.set(y, 1)) : A.set(y, B + 1);
|
|
2465
2374
|
}
|
|
2466
2375
|
}
|
|
2467
2376
|
}
|
|
@@ -2476,7 +2385,7 @@ function ts(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
2476
2385
|
/** @type {number} */
|
|
2477
2386
|
c.get(p)
|
|
2478
2387
|
);
|
|
2479
|
-
--y == 0 ? (I.removeEventListener(p,
|
|
2388
|
+
--y == 0 ? (I.removeEventListener(p, Vn), c.delete(p), c.size === 0 && Zt.delete(I)) : c.set(p, y);
|
|
2480
2389
|
}
|
|
2481
2390
|
Kr.delete(d), f !== r && f.parentNode?.removeChild(f);
|
|
2482
2391
|
};
|
|
@@ -2484,11 +2393,11 @@ function ts(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
2484
2393
|
return en.set(u, l), u;
|
|
2485
2394
|
}
|
|
2486
2395
|
let en = /* @__PURE__ */ new WeakMap();
|
|
2487
|
-
function
|
|
2396
|
+
function Ga(e, t) {
|
|
2488
2397
|
const r = en.get(e);
|
|
2489
2398
|
return r ? (en.delete(e), r(t)) : Promise.resolve();
|
|
2490
2399
|
}
|
|
2491
|
-
class
|
|
2400
|
+
class ka {
|
|
2492
2401
|
/** @type {TemplateNode} */
|
|
2493
2402
|
anchor;
|
|
2494
2403
|
/** @type {Map<Batch, Key>} */
|
|
@@ -2550,7 +2459,7 @@ class Wa {
|
|
|
2550
2459
|
if (this.#e.delete(s), s === t)
|
|
2551
2460
|
break;
|
|
2552
2461
|
const o = this.#r.get(a);
|
|
2553
|
-
o && (
|
|
2462
|
+
o && (oe(o.effect), this.#r.delete(a));
|
|
2554
2463
|
}
|
|
2555
2464
|
for (const [s, a] of this.#t) {
|
|
2556
2465
|
if (s === r || this.#u.has(s)) continue;
|
|
@@ -2559,10 +2468,10 @@ class Wa {
|
|
|
2559
2468
|
var l = document.createDocumentFragment();
|
|
2560
2469
|
Pn(a, l), l.append(Te()), this.#r.set(s, { effect: a, fragment: l });
|
|
2561
2470
|
} else
|
|
2562
|
-
|
|
2471
|
+
oe(a);
|
|
2563
2472
|
this.#u.delete(s), this.#t.delete(s);
|
|
2564
2473
|
};
|
|
2565
|
-
this.#i || !n ? (this.#u.add(s),
|
|
2474
|
+
this.#i || !n ? (this.#u.add(s), Ke(a, o, !1)) : o();
|
|
2566
2475
|
}
|
|
2567
2476
|
}
|
|
2568
2477
|
};
|
|
@@ -2573,7 +2482,7 @@ class Wa {
|
|
|
2573
2482
|
this.#e.delete(t);
|
|
2574
2483
|
const r = Array.from(this.#e.values());
|
|
2575
2484
|
for (const [n, i] of this.#r)
|
|
2576
|
-
r.includes(n) || (
|
|
2485
|
+
r.includes(n) || (oe(i.effect), this.#r.delete(n));
|
|
2577
2486
|
};
|
|
2578
2487
|
/**
|
|
2579
2488
|
*
|
|
@@ -2607,19 +2516,19 @@ class Wa {
|
|
|
2607
2516
|
L && (this.anchor = $), this.#a(n);
|
|
2608
2517
|
}
|
|
2609
2518
|
}
|
|
2610
|
-
function
|
|
2519
|
+
function Xn(e, t, r = !1) {
|
|
2611
2520
|
var n;
|
|
2612
|
-
L && (n = $,
|
|
2613
|
-
var i = new
|
|
2521
|
+
L && (n = $, _t());
|
|
2522
|
+
var i = new ka(e), s = r ? vt : 0;
|
|
2614
2523
|
function a(o, u) {
|
|
2615
2524
|
if (L) {
|
|
2616
|
-
var l =
|
|
2525
|
+
var l = bi(
|
|
2617
2526
|
/** @type {TemplateNode} */
|
|
2618
2527
|
n
|
|
2619
2528
|
);
|
|
2620
2529
|
if (o !== parseInt(l.substring(1))) {
|
|
2621
2530
|
var f = or();
|
|
2622
|
-
|
|
2531
|
+
ue(f), i.anchor = f, Ce(!1), i.ensure(o, u), Ce(!0);
|
|
2623
2532
|
return;
|
|
2624
2533
|
}
|
|
2625
2534
|
}
|
|
@@ -2632,13 +2541,13 @@ function Vn(e, t, r = !1) {
|
|
|
2632
2541
|
}), o || a(-1, null);
|
|
2633
2542
|
}, s);
|
|
2634
2543
|
}
|
|
2635
|
-
function
|
|
2544
|
+
function ja(e, t) {
|
|
2636
2545
|
return t;
|
|
2637
2546
|
}
|
|
2638
|
-
function
|
|
2547
|
+
function Va(e, t, r) {
|
|
2639
2548
|
for (var n = [], i = t.length, s, a = t.length, o = 0; o < i; o++) {
|
|
2640
2549
|
let h = t[o];
|
|
2641
|
-
|
|
2550
|
+
Ke(
|
|
2642
2551
|
h,
|
|
2643
2552
|
() => {
|
|
2644
2553
|
if (s) {
|
|
@@ -2692,57 +2601,57 @@ function tn(e, t, r = !0) {
|
|
|
2692
2601
|
const a = document.createDocumentFragment();
|
|
2693
2602
|
Pn(s, a);
|
|
2694
2603
|
} else
|
|
2695
|
-
|
|
2604
|
+
oe(t[i], r);
|
|
2696
2605
|
}
|
|
2697
2606
|
}
|
|
2698
|
-
var
|
|
2699
|
-
function
|
|
2607
|
+
var Wn;
|
|
2608
|
+
function Xa(e, t, r, n, i, s = null) {
|
|
2700
2609
|
var a = e, o = /* @__PURE__ */ new Map();
|
|
2701
|
-
L &&
|
|
2702
|
-
var u = null, l = /* @__PURE__ */
|
|
2703
|
-
var
|
|
2610
|
+
L && _t();
|
|
2611
|
+
var u = null, l = /* @__PURE__ */ ca(() => {
|
|
2612
|
+
var A = r();
|
|
2704
2613
|
return (
|
|
2705
2614
|
/** @type {V[]} */
|
|
2706
|
-
|
|
2615
|
+
hi(A) ? A : A == null ? [] : vr(A)
|
|
2707
2616
|
);
|
|
2708
2617
|
}), f, h = /* @__PURE__ */ new Map(), d = !0;
|
|
2709
|
-
function p(
|
|
2710
|
-
I.effect.f &
|
|
2618
|
+
function p(A) {
|
|
2619
|
+
I.effect.f & se || (I.pending.delete(A), I.fallback = u, Wa(I, f, a, t, n), u !== null && (f.length === 0 ? u.f & Be ? (u.f ^= Be, Ct(u, null, a)) : hr(u) : Ke(u, () => {
|
|
2711
2620
|
u = null;
|
|
2712
2621
|
})));
|
|
2713
2622
|
}
|
|
2714
|
-
function c(
|
|
2715
|
-
I.pending.delete(
|
|
2623
|
+
function c(A) {
|
|
2624
|
+
I.pending.delete(A);
|
|
2716
2625
|
}
|
|
2717
2626
|
var y = On(() => {
|
|
2718
2627
|
f = /** @type {V[]} */
|
|
2719
2628
|
x(l);
|
|
2720
|
-
var
|
|
2629
|
+
var A = f.length;
|
|
2721
2630
|
let B = !1;
|
|
2722
2631
|
if (L) {
|
|
2723
|
-
var D =
|
|
2724
|
-
D !== (
|
|
2632
|
+
var D = bi(a) === dn;
|
|
2633
|
+
D !== (A === 0) && (a = or(), ue(a), Ce(!1), B = !0);
|
|
2725
2634
|
}
|
|
2726
2635
|
for (var q = /* @__PURE__ */ new Set(), R = (
|
|
2727
2636
|
/** @type {Batch} */
|
|
2728
2637
|
P
|
|
2729
|
-
), X = Ri(),
|
|
2730
|
-
L && $.nodeType ===
|
|
2731
|
-
$.data ===
|
|
2638
|
+
), X = Ri(), J = 0; J < A; J += 1) {
|
|
2639
|
+
L && $.nodeType === Tt && /** @type {Comment} */
|
|
2640
|
+
$.data === pn && (a = /** @type {Comment} */
|
|
2732
2641
|
$, B = !0, Ce(!1));
|
|
2733
|
-
var
|
|
2734
|
-
b ? (b.v &&
|
|
2642
|
+
var Q = f[J], be = n(Q, J), b = d ? null : o.get(be);
|
|
2643
|
+
b ? (b.v && gt(b.v, Q), b.i && gt(b.i, J), X && R.unskip_effect(b.e)) : (b = za(
|
|
2735
2644
|
o,
|
|
2736
|
-
d ? a :
|
|
2737
|
-
K,
|
|
2738
|
-
be,
|
|
2645
|
+
d ? a : Wn ??= Te(),
|
|
2739
2646
|
Q,
|
|
2647
|
+
be,
|
|
2648
|
+
J,
|
|
2740
2649
|
i,
|
|
2741
2650
|
t,
|
|
2742
2651
|
r
|
|
2743
2652
|
), d || (b.e.f |= Be), o.set(be, b)), q.add(be);
|
|
2744
2653
|
}
|
|
2745
|
-
if (
|
|
2654
|
+
if (A === 0 && s && !u && (d ? u = de(() => s(a)) : (u = de(() => s(Wn ??= Te())), u.f |= Be)), A > q.size && qs(), L && A > 0 && ue(or()), !d)
|
|
2746
2655
|
if (h.set(R, q), X) {
|
|
2747
2656
|
for (const [w, ee] of o)
|
|
2748
2657
|
q.has(w) || R.skip_effect(ee.e);
|
|
@@ -2753,51 +2662,51 @@ function Za(e, t, r, n, i, s = null) {
|
|
|
2753
2662
|
}), I = { effect: y, items: o, pending: h, outrogroups: null, fallback: u };
|
|
2754
2663
|
d = !1, L && (a = $);
|
|
2755
2664
|
}
|
|
2756
|
-
function
|
|
2665
|
+
function Pt(e) {
|
|
2757
2666
|
for (; e !== null && !(e.f & me); )
|
|
2758
2667
|
e = e.next;
|
|
2759
2668
|
return e;
|
|
2760
2669
|
}
|
|
2761
|
-
function
|
|
2762
|
-
var s = t.length, a = e.items, o =
|
|
2670
|
+
function Wa(e, t, r, n, i) {
|
|
2671
|
+
var s = t.length, a = e.items, o = Pt(e.effect.first), u, l = null, f = [], h = [], d, p, c, y;
|
|
2763
2672
|
for (y = 0; y < s; y += 1) {
|
|
2764
2673
|
if (d = t[y], p = i(d, y), c = /** @type {EachItem} */
|
|
2765
2674
|
a.get(p).e, e.outrogroups !== null)
|
|
2766
|
-
for (const
|
|
2767
|
-
|
|
2675
|
+
for (const Q of e.outrogroups)
|
|
2676
|
+
Q.pending.delete(c), Q.done.delete(c);
|
|
2768
2677
|
if (c.f & ie && hr(c), c.f & Be)
|
|
2769
2678
|
if (c.f ^= Be, c === o)
|
|
2770
|
-
|
|
2679
|
+
Ct(c, null, r);
|
|
2771
2680
|
else {
|
|
2772
2681
|
var I = l ? l.next : o;
|
|
2773
|
-
c === e.effect.last && (e.effect.last = c.prev), c.prev && (c.prev.next = c.next), c.next && (c.next.prev = c.prev), je(e, l, c), je(e, c, I),
|
|
2682
|
+
c === e.effect.last && (e.effect.last = c.prev), c.prev && (c.prev.next = c.next), c.next && (c.next.prev = c.prev), je(e, l, c), je(e, c, I), Ct(c, I, r), l = c, f = [], h = [], o = Pt(l.next);
|
|
2774
2683
|
continue;
|
|
2775
2684
|
}
|
|
2776
2685
|
if (c !== o) {
|
|
2777
2686
|
if (u !== void 0 && u.has(c)) {
|
|
2778
2687
|
if (f.length < h.length) {
|
|
2779
|
-
var
|
|
2780
|
-
l =
|
|
2688
|
+
var A = h[0], B;
|
|
2689
|
+
l = A.prev;
|
|
2781
2690
|
var D = f[0], q = f[f.length - 1];
|
|
2782
2691
|
for (B = 0; B < f.length; B += 1)
|
|
2783
|
-
|
|
2692
|
+
Ct(f[B], A, r);
|
|
2784
2693
|
for (B = 0; B < h.length; B += 1)
|
|
2785
2694
|
u.delete(h[B]);
|
|
2786
|
-
je(e, D.prev, q.next), je(e, l, D), je(e, q,
|
|
2695
|
+
je(e, D.prev, q.next), je(e, l, D), je(e, q, A), o = A, l = q, y -= 1, f = [], h = [];
|
|
2787
2696
|
} else
|
|
2788
|
-
u.delete(c),
|
|
2697
|
+
u.delete(c), Ct(c, o, r), je(e, c.prev, c.next), je(e, c, l === null ? e.effect.first : l.next), je(e, l, c), l = c;
|
|
2789
2698
|
continue;
|
|
2790
2699
|
}
|
|
2791
2700
|
for (f = [], h = []; o !== null && o !== c; )
|
|
2792
|
-
(u ??= /* @__PURE__ */ new Set()).add(o), h.push(o), o =
|
|
2701
|
+
(u ??= /* @__PURE__ */ new Set()).add(o), h.push(o), o = Pt(o.next);
|
|
2793
2702
|
if (o === null)
|
|
2794
2703
|
continue;
|
|
2795
2704
|
}
|
|
2796
|
-
c.f & Be || f.push(c), l = c, o =
|
|
2705
|
+
c.f & Be || f.push(c), l = c, o = Pt(c.next);
|
|
2797
2706
|
}
|
|
2798
2707
|
if (e.outrogroups !== null) {
|
|
2799
|
-
for (const
|
|
2800
|
-
|
|
2708
|
+
for (const Q of e.outrogroups)
|
|
2709
|
+
Q.pending.size === 0 && (tn(e, vr(Q.done)), e.outrogroups?.delete(Q));
|
|
2801
2710
|
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
2802
2711
|
}
|
|
2803
2712
|
if (o !== null || u !== void 0) {
|
|
@@ -2806,15 +2715,15 @@ function qa(e, t, r, n, i) {
|
|
|
2806
2715
|
for (c of u)
|
|
2807
2716
|
c.f & ie || R.push(c);
|
|
2808
2717
|
for (; o !== null; )
|
|
2809
|
-
!(o.f & ie) && o !== e.fallback && R.push(o), o =
|
|
2718
|
+
!(o.f & ie) && o !== e.fallback && R.push(o), o = Pt(o.next);
|
|
2810
2719
|
var X = R.length;
|
|
2811
2720
|
if (X > 0) {
|
|
2812
|
-
var
|
|
2813
|
-
|
|
2721
|
+
var J = null;
|
|
2722
|
+
Va(e, R, J);
|
|
2814
2723
|
}
|
|
2815
2724
|
}
|
|
2816
2725
|
}
|
|
2817
|
-
function
|
|
2726
|
+
function za(e, t, r, n, i, s, a, o) {
|
|
2818
2727
|
var u = a & Ps ? a & Ls ? rt(r) : /* @__PURE__ */ Sn(r, !1, !1) : null, l = a & $s ? rt(i) : null;
|
|
2819
2728
|
return {
|
|
2820
2729
|
v: u,
|
|
@@ -2824,7 +2733,7 @@ function Ja(e, t, r, n, i, s, a, o) {
|
|
|
2824
2733
|
}))
|
|
2825
2734
|
};
|
|
2826
2735
|
}
|
|
2827
|
-
function
|
|
2736
|
+
function Ct(e, t, r) {
|
|
2828
2737
|
if (e.nodes)
|
|
2829
2738
|
for (var n = e.nodes.start, i = e.nodes.end, s = t && !(t.f & Be) ? (
|
|
2830
2739
|
/** @type {EffectNodes} */
|
|
@@ -2849,15 +2758,15 @@ function _l(e, t, r = !1, n = !1, i = !1, s = !1) {
|
|
|
2849
2758
|
/** @type {Element} */
|
|
2850
2759
|
e
|
|
2851
2760
|
);
|
|
2852
|
-
L && (a =
|
|
2761
|
+
L && (a = ue(/* @__PURE__ */ ve(u)));
|
|
2853
2762
|
}
|
|
2854
2763
|
Jr(() => {
|
|
2855
2764
|
var l = (
|
|
2856
2765
|
/** @type {Effect} */
|
|
2857
|
-
|
|
2766
|
+
H
|
|
2858
2767
|
);
|
|
2859
2768
|
if (o === (o = t() ?? "")) {
|
|
2860
|
-
L &&
|
|
2769
|
+
L && _t();
|
|
2861
2770
|
return;
|
|
2862
2771
|
}
|
|
2863
2772
|
if (r && !L) {
|
|
@@ -2877,17 +2786,17 @@ function _l(e, t, r = !1, n = !1, i = !1, s = !1) {
|
|
|
2877
2786
|
), l.nodes = null), o !== "") {
|
|
2878
2787
|
if (L) {
|
|
2879
2788
|
$.data;
|
|
2880
|
-
for (var f =
|
|
2789
|
+
for (var f = _t(), h = f; f !== null && (f.nodeType !== Tt || /** @type {Comment} */
|
|
2881
2790
|
f.data !== ""); )
|
|
2882
2791
|
h = f, f = /* @__PURE__ */ Se(f);
|
|
2883
2792
|
if (f === null)
|
|
2884
|
-
throw Wt(),
|
|
2885
|
-
De($, h), a =
|
|
2793
|
+
throw Wt(), tt;
|
|
2794
|
+
De($, h), a = ue(f);
|
|
2886
2795
|
return;
|
|
2887
2796
|
}
|
|
2888
2797
|
var d = n ? Cs : i ? Rs : void 0, p = (
|
|
2889
2798
|
/** @type {HTMLTemplateElement | SVGElement | MathMLElement} */
|
|
2890
|
-
|
|
2799
|
+
br(n ? "svg" : i ? "math" : "template", d)
|
|
2891
2800
|
);
|
|
2892
2801
|
p.innerHTML = /** @type {any} */
|
|
2893
2802
|
o;
|
|
@@ -2911,9 +2820,9 @@ function _l(e, t, r = !1, n = !1, i = !1, s = !1) {
|
|
|
2911
2820
|
}
|
|
2912
2821
|
});
|
|
2913
2822
|
}
|
|
2914
|
-
function
|
|
2823
|
+
function Ya(e, t) {
|
|
2915
2824
|
Mn(() => {
|
|
2916
|
-
e =
|
|
2825
|
+
e = H?.parent?.nodes?.start ?? e;
|
|
2917
2826
|
var r = e.getRootNode(), n = (
|
|
2918
2827
|
/** @type {ShadowRoot} */
|
|
2919
2828
|
r.host ? (
|
|
@@ -2926,22 +2835,22 @@ function Qa(e, t) {
|
|
|
2926
2835
|
)
|
|
2927
2836
|
);
|
|
2928
2837
|
if (!n.querySelector("#" + t.hash)) {
|
|
2929
|
-
const i =
|
|
2838
|
+
const i = br("style");
|
|
2930
2839
|
i.id = t.hash, i.textContent = t.code, n.appendChild(i);
|
|
2931
2840
|
}
|
|
2932
2841
|
});
|
|
2933
2842
|
}
|
|
2934
2843
|
function ml(e, t, r) {
|
|
2935
2844
|
Mn(() => {
|
|
2936
|
-
var n =
|
|
2845
|
+
var n = Er(() => t(e, r?.()) || {});
|
|
2937
2846
|
if (r && n?.update) {
|
|
2938
2847
|
var i = !1, s = (
|
|
2939
2848
|
/** @type {any} */
|
|
2940
2849
|
{}
|
|
2941
2850
|
);
|
|
2942
|
-
|
|
2851
|
+
yr(() => {
|
|
2943
2852
|
var a = r();
|
|
2944
|
-
|
|
2853
|
+
Ma(a), i && mn(s, a) && (s = a, n.update(a));
|
|
2945
2854
|
}), i = !0;
|
|
2946
2855
|
}
|
|
2947
2856
|
if (n?.destroy)
|
|
@@ -2951,9 +2860,9 @@ function ml(e, t, r) {
|
|
|
2951
2860
|
);
|
|
2952
2861
|
});
|
|
2953
2862
|
}
|
|
2954
|
-
const
|
|
2863
|
+
const zn = [...`
|
|
2955
2864
|
\r\f \v\uFEFF`];
|
|
2956
|
-
function
|
|
2865
|
+
function Za(e, t, r) {
|
|
2957
2866
|
var n = e == null ? "" : "" + e;
|
|
2958
2867
|
if (r) {
|
|
2959
2868
|
for (var i of Object.keys(r))
|
|
@@ -2962,18 +2871,18 @@ function Ka(e, t, r) {
|
|
|
2962
2871
|
else if (n.length)
|
|
2963
2872
|
for (var s = i.length, a = 0; (a = n.indexOf(i, a)) >= 0; ) {
|
|
2964
2873
|
var o = a + s;
|
|
2965
|
-
(a === 0 ||
|
|
2874
|
+
(a === 0 || zn.includes(n[a - 1])) && (o === n.length || zn.includes(n[o])) ? n = (a === 0 ? "" : n.substring(0, a)) + n.substring(o + 1) : a = o;
|
|
2966
2875
|
}
|
|
2967
2876
|
}
|
|
2968
2877
|
return n === "" ? null : n;
|
|
2969
2878
|
}
|
|
2970
|
-
function
|
|
2879
|
+
function qa(e, t, r, n, i, s) {
|
|
2971
2880
|
var a = (
|
|
2972
2881
|
/** @type {any} */
|
|
2973
2882
|
e[jr]
|
|
2974
2883
|
);
|
|
2975
2884
|
if (L || a !== r || a === void 0) {
|
|
2976
|
-
var o =
|
|
2885
|
+
var o = Za(r, n, s);
|
|
2977
2886
|
(!L || o !== e.getAttribute("class")) && (o == null ? e.removeAttribute("class") : e.className = o), e[jr] = r;
|
|
2978
2887
|
} else if (s && i !== s)
|
|
2979
2888
|
for (var u in s) {
|
|
@@ -2982,50 +2891,50 @@ function eo(e, t, r, n, i, s) {
|
|
|
2982
2891
|
}
|
|
2983
2892
|
return s;
|
|
2984
2893
|
}
|
|
2985
|
-
const
|
|
2894
|
+
const Ja = Symbol("is custom element"), Qa = Symbol("is html"), Ka = Xs ? "link" : "LINK";
|
|
2986
2895
|
function gl(e, t, r, n) {
|
|
2987
|
-
var i =
|
|
2988
|
-
L && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName ===
|
|
2896
|
+
var i = eo(e);
|
|
2897
|
+
L && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Ka) || i[t] !== (i[t] = r) && (t === "loading" && (e[js] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && to(e).has(t) ? e[t] = r : e.setAttribute(t, r));
|
|
2989
2898
|
}
|
|
2990
|
-
function
|
|
2899
|
+
function eo(e) {
|
|
2991
2900
|
return (
|
|
2992
2901
|
/** @type {Record<string | symbol, unknown>} **/
|
|
2993
2902
|
/** @type {any} */
|
|
2994
|
-
e[
|
|
2995
|
-
[
|
|
2996
|
-
[
|
|
2903
|
+
e[gi] ??= {
|
|
2904
|
+
[Ja]: e.nodeName.includes("-"),
|
|
2905
|
+
[Qa]: e.namespaceURI === li
|
|
2997
2906
|
}
|
|
2998
2907
|
);
|
|
2999
2908
|
}
|
|
3000
|
-
var
|
|
3001
|
-
function
|
|
3002
|
-
var t = e.getAttribute("is") || e.nodeName, r =
|
|
2909
|
+
var Yn = /* @__PURE__ */ new Map();
|
|
2910
|
+
function to(e) {
|
|
2911
|
+
var t = e.getAttribute("is") || e.nodeName, r = Yn.get(t);
|
|
3003
2912
|
if (r) return r;
|
|
3004
|
-
|
|
2913
|
+
Yn.set(t, r = /* @__PURE__ */ new Set());
|
|
3005
2914
|
for (var n, i = e, s = Element.prototype; s !== i; ) {
|
|
3006
|
-
n =
|
|
2915
|
+
n = ci(i);
|
|
3007
2916
|
for (var a in n)
|
|
3008
2917
|
n[a].set && // better safe than sorry, we don't want spread attributes to mess with HTML content
|
|
3009
2918
|
a !== "innerHTML" && a !== "textContent" && a !== "innerText" && r.add(a);
|
|
3010
|
-
i =
|
|
2919
|
+
i = vn(i);
|
|
3011
2920
|
}
|
|
3012
2921
|
return r;
|
|
3013
2922
|
}
|
|
3014
2923
|
function Br(e, t) {
|
|
3015
|
-
return e === t || e?.[
|
|
2924
|
+
return e === t || e?.[ct] === t;
|
|
3016
2925
|
}
|
|
3017
|
-
function bl(e =
|
|
2926
|
+
function bl(e = yn(), t, r, n) {
|
|
3018
2927
|
var i = (
|
|
3019
2928
|
/** @type {ComponentContext} */
|
|
3020
|
-
|
|
2929
|
+
ae.r
|
|
3021
2930
|
), s = (
|
|
3022
2931
|
/** @type {Effect} */
|
|
3023
|
-
|
|
2932
|
+
H
|
|
3024
2933
|
);
|
|
3025
2934
|
return Mn(() => {
|
|
3026
2935
|
var a, o;
|
|
3027
|
-
return
|
|
3028
|
-
a = o, o = [],
|
|
2936
|
+
return yr(() => {
|
|
2937
|
+
a = o, o = [], Er(() => {
|
|
3029
2938
|
Br(r(...o), e) || (t(e, ...o), a && Br(r(...a), e) && t(null, ...a));
|
|
3030
2939
|
});
|
|
3031
2940
|
}), () => {
|
|
@@ -3041,6 +2950,123 @@ function bl(e = bn(), t, r, n) {
|
|
|
3041
2950
|
};
|
|
3042
2951
|
}), e;
|
|
3043
2952
|
}
|
|
2953
|
+
function $n(e, t, r) {
|
|
2954
|
+
if (e == null)
|
|
2955
|
+
return t(void 0), r && r(void 0), Re;
|
|
2956
|
+
const n = Er(
|
|
2957
|
+
() => e.subscribe(
|
|
2958
|
+
t,
|
|
2959
|
+
// @ts-expect-error
|
|
2960
|
+
r
|
|
2961
|
+
)
|
|
2962
|
+
);
|
|
2963
|
+
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
2964
|
+
}
|
|
2965
|
+
const ut = [];
|
|
2966
|
+
function ro(e, t) {
|
|
2967
|
+
return {
|
|
2968
|
+
subscribe: wr(e, t).subscribe
|
|
2969
|
+
};
|
|
2970
|
+
}
|
|
2971
|
+
function wr(e, t = Re) {
|
|
2972
|
+
let r = null;
|
|
2973
|
+
const n = /* @__PURE__ */ new Set();
|
|
2974
|
+
function i(o) {
|
|
2975
|
+
if (mn(e, o) && (e = o, r)) {
|
|
2976
|
+
const u = !ut.length;
|
|
2977
|
+
for (const l of n)
|
|
2978
|
+
l[1](), ut.push(l, e);
|
|
2979
|
+
if (u) {
|
|
2980
|
+
for (let l = 0; l < ut.length; l += 2)
|
|
2981
|
+
ut[l][0](ut[l + 1]);
|
|
2982
|
+
ut.length = 0;
|
|
2983
|
+
}
|
|
2984
|
+
}
|
|
2985
|
+
}
|
|
2986
|
+
function s(o) {
|
|
2987
|
+
i(o(
|
|
2988
|
+
/** @type {T} */
|
|
2989
|
+
e
|
|
2990
|
+
));
|
|
2991
|
+
}
|
|
2992
|
+
function a(o, u = Re) {
|
|
2993
|
+
const l = [o, u];
|
|
2994
|
+
return n.add(l), n.size === 1 && (r = t(i, s) || Re), o(
|
|
2995
|
+
/** @type {T} */
|
|
2996
|
+
e
|
|
2997
|
+
), () => {
|
|
2998
|
+
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
2999
|
+
};
|
|
3000
|
+
}
|
|
3001
|
+
return { set: i, update: s, subscribe: a };
|
|
3002
|
+
}
|
|
3003
|
+
function St(e, t, r) {
|
|
3004
|
+
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
3005
|
+
if (!i.every(Boolean))
|
|
3006
|
+
throw new Error("derived() expects stores as input, got a falsy value");
|
|
3007
|
+
const s = t.length < 2;
|
|
3008
|
+
return ro(r, (a, o) => {
|
|
3009
|
+
let u = !1;
|
|
3010
|
+
const l = [];
|
|
3011
|
+
let f = 0, h = Re;
|
|
3012
|
+
const d = () => {
|
|
3013
|
+
if (f)
|
|
3014
|
+
return;
|
|
3015
|
+
h();
|
|
3016
|
+
const c = t(n ? l[0] : l, a, o);
|
|
3017
|
+
s ? a(c) : h = typeof c == "function" ? c : Re;
|
|
3018
|
+
}, p = i.map(
|
|
3019
|
+
(c, y) => $n(
|
|
3020
|
+
c,
|
|
3021
|
+
(I) => {
|
|
3022
|
+
l[y] = I, f &= ~(1 << y), u && d();
|
|
3023
|
+
},
|
|
3024
|
+
() => {
|
|
3025
|
+
f |= 1 << y;
|
|
3026
|
+
}
|
|
3027
|
+
)
|
|
3028
|
+
);
|
|
3029
|
+
return u = !0, d(), function() {
|
|
3030
|
+
di(p), h(), u = !1;
|
|
3031
|
+
};
|
|
3032
|
+
});
|
|
3033
|
+
}
|
|
3034
|
+
function no(e) {
|
|
3035
|
+
let t;
|
|
3036
|
+
return $n(e, (r) => t = r)(), t;
|
|
3037
|
+
}
|
|
3038
|
+
let rn = Symbol("unmounted");
|
|
3039
|
+
function io(e, t, r) {
|
|
3040
|
+
const n = r[t] ??= {
|
|
3041
|
+
store: null,
|
|
3042
|
+
source: /* @__PURE__ */ Sn(void 0),
|
|
3043
|
+
unsubscribe: Re
|
|
3044
|
+
};
|
|
3045
|
+
if (n.store !== e && !(rn in r))
|
|
3046
|
+
if (n.unsubscribe(), n.store = e ?? null, e == null)
|
|
3047
|
+
n.source.v = void 0, n.unsubscribe = Re;
|
|
3048
|
+
else {
|
|
3049
|
+
var i = !0;
|
|
3050
|
+
n.unsubscribe = $n(e, (s) => {
|
|
3051
|
+
i ? n.source.v = s : z(n.source, s);
|
|
3052
|
+
}), i = !1;
|
|
3053
|
+
}
|
|
3054
|
+
return e && rn in r ? no(e) : x(n.source);
|
|
3055
|
+
}
|
|
3056
|
+
function so() {
|
|
3057
|
+
const e = {};
|
|
3058
|
+
function t() {
|
|
3059
|
+
Ui(() => {
|
|
3060
|
+
for (var r in e)
|
|
3061
|
+
e[r].unsubscribe();
|
|
3062
|
+
dt(e, rn, {
|
|
3063
|
+
enumerable: !1,
|
|
3064
|
+
value: !0
|
|
3065
|
+
});
|
|
3066
|
+
});
|
|
3067
|
+
}
|
|
3068
|
+
return [e, t];
|
|
3069
|
+
}
|
|
3044
3070
|
function Me(e, t, r, n) {
|
|
3045
3071
|
var i = (
|
|
3046
3072
|
/** @type {V} */
|
|
@@ -3057,18 +3083,18 @@ function Me(e, t, r, n) {
|
|
|
3057
3083
|
);
|
|
3058
3084
|
return d === void 0 ? a() : (s = !0, d);
|
|
3059
3085
|
};
|
|
3060
|
-
var l = !1, f = /* @__PURE__ */
|
|
3086
|
+
var l = !1, f = /* @__PURE__ */ gr(() => (l = !1, u())), h = (
|
|
3061
3087
|
/** @type {Effect} */
|
|
3062
|
-
|
|
3088
|
+
H
|
|
3063
3089
|
);
|
|
3064
3090
|
return (
|
|
3065
3091
|
/** @type {() => V} */
|
|
3066
3092
|
function(d, p) {
|
|
3067
3093
|
if (arguments.length > 0) {
|
|
3068
3094
|
const c = p ? x(f) : d;
|
|
3069
|
-
return
|
|
3095
|
+
return z(f, c), l = !0, i !== void 0 && (i = c), d;
|
|
3070
3096
|
}
|
|
3071
|
-
return Fe && l || h.f &
|
|
3097
|
+
return Fe && l || h.f & se ? f.v : x(f);
|
|
3072
3098
|
}
|
|
3073
3099
|
);
|
|
3074
3100
|
}
|
|
@@ -3100,11 +3126,11 @@ class oo {
|
|
|
3100
3126
|
return a === ks ? !0 : (x(r.get(a) ?? n(a, Reflect.get(s, a))), Reflect.has(s, a));
|
|
3101
3127
|
},
|
|
3102
3128
|
set(s, a, o) {
|
|
3103
|
-
return
|
|
3129
|
+
return z(r.get(a) ?? n(a, o), o), Reflect.set(s, a, o);
|
|
3104
3130
|
}
|
|
3105
3131
|
}
|
|
3106
3132
|
);
|
|
3107
|
-
this.#t = (t.hydrate ?
|
|
3133
|
+
this.#t = (t.hydrate ? Fa : es)(t.component, {
|
|
3108
3134
|
target: t.target,
|
|
3109
3135
|
anchor: t.anchor,
|
|
3110
3136
|
props: i,
|
|
@@ -3114,7 +3140,7 @@ class oo {
|
|
|
3114
3140
|
transformError: t.transformError
|
|
3115
3141
|
}), (!t?.props?.$$host || t.sync === !1) && pe(), this.#e = i.$$events;
|
|
3116
3142
|
for (const s of Object.keys(this.#t))
|
|
3117
|
-
s === "$set" || s === "$destroy" || s === "$on" ||
|
|
3143
|
+
s === "$set" || s === "$destroy" || s === "$on" || dt(this, s, {
|
|
3118
3144
|
get() {
|
|
3119
3145
|
return this.#t[s];
|
|
3120
3146
|
},
|
|
@@ -3128,7 +3154,7 @@ class oo {
|
|
|
3128
3154
|
(s) => {
|
|
3129
3155
|
Object.assign(i, s);
|
|
3130
3156
|
}, this.#t.$destroy = () => {
|
|
3131
|
-
|
|
3157
|
+
Ga(this.#t);
|
|
3132
3158
|
};
|
|
3133
3159
|
}
|
|
3134
3160
|
/** @param {Record<string, any>} props */
|
|
@@ -3213,7 +3239,7 @@ typeof HTMLElement == "function" && (rs = class extends HTMLElement {
|
|
|
3213
3239
|
if (this.$$cn = !0, !this.$$c) {
|
|
3214
3240
|
let e = function(n) {
|
|
3215
3241
|
return (i) => {
|
|
3216
|
-
const s =
|
|
3242
|
+
const s = br("slot");
|
|
3217
3243
|
n !== "default" && (s.name = n), lt(i, s);
|
|
3218
3244
|
};
|
|
3219
3245
|
};
|
|
@@ -3236,8 +3262,8 @@ typeof HTMLElement == "function" && (rs = class extends HTMLElement {
|
|
|
3236
3262
|
$$slots: t,
|
|
3237
3263
|
$$host: this
|
|
3238
3264
|
}
|
|
3239
|
-
}), this.$$me =
|
|
3240
|
-
|
|
3265
|
+
}), this.$$me = Ea(() => {
|
|
3266
|
+
yr(() => {
|
|
3241
3267
|
this.$$r = !0;
|
|
3242
3268
|
for (const n of nr(this.$$c)) {
|
|
3243
3269
|
if (!this.$$p_d[n]?.reflect) continue;
|
|
@@ -3335,7 +3361,7 @@ function ns(e, t, r, n, i, s) {
|
|
|
3335
3361
|
}
|
|
3336
3362
|
};
|
|
3337
3363
|
return nr(t).forEach((o) => {
|
|
3338
|
-
|
|
3364
|
+
dt(a.prototype, o, {
|
|
3339
3365
|
get() {
|
|
3340
3366
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
3341
3367
|
},
|
|
@@ -3343,13 +3369,13 @@ function ns(e, t, r, n, i, s) {
|
|
|
3343
3369
|
u = Kt(o, u, t), this.$$d[o] = u;
|
|
3344
3370
|
var l = this.$$c;
|
|
3345
3371
|
if (l) {
|
|
3346
|
-
var f =
|
|
3372
|
+
var f = ft(l, o)?.get;
|
|
3347
3373
|
f ? l[o] = u : l.$set({ [o]: u });
|
|
3348
3374
|
}
|
|
3349
3375
|
}
|
|
3350
3376
|
});
|
|
3351
3377
|
}), n.forEach((o) => {
|
|
3352
|
-
|
|
3378
|
+
dt(a.prototype, o, {
|
|
3353
3379
|
get() {
|
|
3354
3380
|
return this.$$c?.[o];
|
|
3355
3381
|
}
|
|
@@ -3388,7 +3414,7 @@ var _o = { exports: {} };
|
|
|
3388
3414
|
(function(r, n) {
|
|
3389
3415
|
e.exports = n();
|
|
3390
3416
|
})(po, function() {
|
|
3391
|
-
var r = 1e3, n = 6e4, i = 36e5, s = "millisecond", a = "second", o = "minute", u = "hour", l = "day", f = "week", h = "month", d = "quarter", p = "year", c = "date", y = "Invalid Date", I = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
|
|
3417
|
+
var r = 1e3, n = 6e4, i = 36e5, s = "millisecond", a = "second", o = "minute", u = "hour", l = "day", f = "week", h = "month", d = "quarter", p = "year", c = "date", y = "Invalid Date", I = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, A = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, B = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(E) {
|
|
3392
3418
|
var m = ["th", "st", "nd", "rd"], v = E % 100;
|
|
3393
3419
|
return "[" + E + (m[(v - 20) % 10] || m[v] || m[0]) + "]";
|
|
3394
3420
|
} }, D = function(E, m, v) {
|
|
@@ -3409,8 +3435,8 @@ var _o = { exports: {} };
|
|
|
3409
3435
|
return E === void 0;
|
|
3410
3436
|
} }, R = "en", X = {};
|
|
3411
3437
|
X[R] = B;
|
|
3412
|
-
var
|
|
3413
|
-
return E instanceof ee || !(!E || !E[
|
|
3438
|
+
var J = "$isDayjsObject", Q = function(E) {
|
|
3439
|
+
return E instanceof ee || !(!E || !E[J]);
|
|
3414
3440
|
}, be = function E(m, v, g) {
|
|
3415
3441
|
var _;
|
|
3416
3442
|
if (!m) return R;
|
|
@@ -3425,16 +3451,16 @@ var _o = { exports: {} };
|
|
|
3425
3451
|
}
|
|
3426
3452
|
return !g && _ && (R = _), _ || !g && R;
|
|
3427
3453
|
}, b = function(E, m) {
|
|
3428
|
-
if (
|
|
3454
|
+
if (Q(E)) return E.clone();
|
|
3429
3455
|
var v = typeof m == "object" ? m : {};
|
|
3430
3456
|
return v.date = E, v.args = arguments, new ee(v);
|
|
3431
3457
|
}, w = q;
|
|
3432
|
-
w.l = be, w.i =
|
|
3458
|
+
w.l = be, w.i = Q, w.w = function(E, m) {
|
|
3433
3459
|
return b(E, { locale: m.$L, utc: m.$u, x: m.$x, $offset: m.$offset });
|
|
3434
3460
|
};
|
|
3435
3461
|
var ee = function() {
|
|
3436
3462
|
function E(v) {
|
|
3437
|
-
this.$L = be(v.locale, null, !0), this.parse(v), this.$x = this.$x || v.x || {}, this[
|
|
3463
|
+
this.$L = be(v.locale, null, !0), this.parse(v), this.$x = this.$x || v.x || {}, this[J] = !0;
|
|
3438
3464
|
}
|
|
3439
3465
|
var m = E.prototype;
|
|
3440
3466
|
return m.parse = function(v) {
|
|
@@ -3473,11 +3499,11 @@ var _o = { exports: {} };
|
|
|
3473
3499
|
}, m.valueOf = function() {
|
|
3474
3500
|
return this.$d.getTime();
|
|
3475
3501
|
}, m.startOf = function(v, g) {
|
|
3476
|
-
var _ = this, T = !!w.u(g) || g, S = w.p(v), C = function(Ye,
|
|
3477
|
-
var ke = w.w(_.$u ? Date.UTC(_.$y,
|
|
3502
|
+
var _ = this, T = !!w.u(g) || g, S = w.p(v), C = function(Ye, le) {
|
|
3503
|
+
var ke = w.w(_.$u ? Date.UTC(_.$y, le, Ye) : new Date(_.$y, le, Ye), _);
|
|
3478
3504
|
return T ? ke : ke.endOf(l);
|
|
3479
|
-
}, G = function(Ye,
|
|
3480
|
-
return w.w(_.toDate()[Ye].apply(_.toDate("s"), (T ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(
|
|
3505
|
+
}, G = function(Ye, le) {
|
|
3506
|
+
return w.w(_.toDate()[Ye].apply(_.toDate("s"), (T ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(le)), _);
|
|
3481
3507
|
}, U = this.$W, k = this.$M, te = this.$D, Ge = "set" + (this.$u ? "UTC" : "");
|
|
3482
3508
|
switch (S) {
|
|
3483
3509
|
case p:
|
|
@@ -3485,8 +3511,8 @@ var _o = { exports: {} };
|
|
|
3485
3511
|
case h:
|
|
3486
3512
|
return T ? C(1, k) : C(0, k + 1);
|
|
3487
3513
|
case f:
|
|
3488
|
-
var ze = this.$locale().weekStart || 0,
|
|
3489
|
-
return C(T ? te -
|
|
3514
|
+
var ze = this.$locale().weekStart || 0, Ot = (U < ze ? U + 7 : U) - ze;
|
|
3515
|
+
return C(T ? te - Ot : te + (6 - Ot), k);
|
|
3490
3516
|
case l:
|
|
3491
3517
|
case c:
|
|
3492
3518
|
return G(Ge + "Hours", 0);
|
|
@@ -3530,17 +3556,17 @@ var _o = { exports: {} };
|
|
|
3530
3556
|
}, m.format = function(v) {
|
|
3531
3557
|
var g = this, _ = this.$locale();
|
|
3532
3558
|
if (!this.isValid()) return _.invalidDate || y;
|
|
3533
|
-
var T = v || "YYYY-MM-DDTHH:mm:ssZ", S = w.z(this), C = this.$H, G = this.$m, U = this.$M, k = _.weekdays, te = _.months, Ge = _.meridiem, ze = function(
|
|
3534
|
-
return
|
|
3535
|
-
},
|
|
3536
|
-
return w.s(C % 12 || 12,
|
|
3537
|
-
}, Ye = Ge || function(
|
|
3538
|
-
var Yt =
|
|
3539
|
-
return
|
|
3559
|
+
var T = v || "YYYY-MM-DDTHH:mm:ssZ", S = w.z(this), C = this.$H, G = this.$m, U = this.$M, k = _.weekdays, te = _.months, Ge = _.meridiem, ze = function(le, ke, Nt, Yt) {
|
|
3560
|
+
return le && (le[ke] || le(g, T)) || Nt[ke].slice(0, Yt);
|
|
3561
|
+
}, Ot = function(le) {
|
|
3562
|
+
return w.s(C % 12 || 12, le, "0");
|
|
3563
|
+
}, Ye = Ge || function(le, ke, Nt) {
|
|
3564
|
+
var Yt = le < 12 ? "AM" : "PM";
|
|
3565
|
+
return Nt ? Yt.toLowerCase() : Yt;
|
|
3540
3566
|
};
|
|
3541
|
-
return T.replace(
|
|
3542
|
-
return ke || function(
|
|
3543
|
-
switch (
|
|
3567
|
+
return T.replace(A, function(le, ke) {
|
|
3568
|
+
return ke || function(Nt) {
|
|
3569
|
+
switch (Nt) {
|
|
3544
3570
|
case "YY":
|
|
3545
3571
|
return String(g.$y).slice(-2);
|
|
3546
3572
|
case "YYYY":
|
|
@@ -3570,9 +3596,9 @@ var _o = { exports: {} };
|
|
|
3570
3596
|
case "HH":
|
|
3571
3597
|
return w.s(C, 2, "0");
|
|
3572
3598
|
case "h":
|
|
3573
|
-
return
|
|
3599
|
+
return Ot(1);
|
|
3574
3600
|
case "hh":
|
|
3575
|
-
return
|
|
3601
|
+
return Ot(2);
|
|
3576
3602
|
case "a":
|
|
3577
3603
|
return Ye(C, G, !0);
|
|
3578
3604
|
case "A":
|
|
@@ -3591,7 +3617,7 @@ var _o = { exports: {} };
|
|
|
3591
3617
|
return S;
|
|
3592
3618
|
}
|
|
3593
3619
|
return null;
|
|
3594
|
-
}(
|
|
3620
|
+
}(le) || S.replace(":", "");
|
|
3595
3621
|
});
|
|
3596
3622
|
}, m.utcOffset = function() {
|
|
3597
3623
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
@@ -3647,14 +3673,14 @@ var _o = { exports: {} };
|
|
|
3647
3673
|
}, m.toString = function() {
|
|
3648
3674
|
return this.$d.toUTCString();
|
|
3649
3675
|
}, E;
|
|
3650
|
-
}(),
|
|
3651
|
-
return b.prototype =
|
|
3652
|
-
|
|
3676
|
+
}(), Mt = ee.prototype;
|
|
3677
|
+
return b.prototype = Mt, [["$ms", s], ["$s", a], ["$m", o], ["$H", u], ["$W", l], ["$M", h], ["$y", p], ["$D", c]].forEach(function(E) {
|
|
3678
|
+
Mt[E[1]] = function(m) {
|
|
3653
3679
|
return this.$g(m, E[0], E[1]);
|
|
3654
3680
|
};
|
|
3655
3681
|
}), b.extend = function(E, m) {
|
|
3656
3682
|
return E.$i || (E(m, ee, b), E.$i = !0), b;
|
|
3657
|
-
}, b.locale = be, b.isDayjs =
|
|
3683
|
+
}, b.locale = be, b.isDayjs = Q, b.unix = function(E) {
|
|
3658
3684
|
return b(1e3 * E);
|
|
3659
3685
|
}, b.en = X[R], b.Ls = X, b.p = {}, b;
|
|
3660
3686
|
});
|
|
@@ -3680,7 +3706,7 @@ function wo(e) {
|
|
|
3680
3706
|
return Array.isArray(e) ? [] : {};
|
|
3681
3707
|
}
|
|
3682
3708
|
function kt(e, t) {
|
|
3683
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
3709
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? yt(wo(e), e, t) : e;
|
|
3684
3710
|
}
|
|
3685
3711
|
function To(e, t, r) {
|
|
3686
3712
|
return e.concat(t).map(function(n) {
|
|
@@ -3689,16 +3715,16 @@ function To(e, t, r) {
|
|
|
3689
3715
|
}
|
|
3690
3716
|
function So(e, t) {
|
|
3691
3717
|
if (!t.customMerge)
|
|
3692
|
-
return
|
|
3718
|
+
return yt;
|
|
3693
3719
|
var r = t.customMerge(e);
|
|
3694
|
-
return typeof r == "function" ? r :
|
|
3720
|
+
return typeof r == "function" ? r : yt;
|
|
3695
3721
|
}
|
|
3696
3722
|
function Ao(e) {
|
|
3697
3723
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
3698
3724
|
return Object.propertyIsEnumerable.call(e, t);
|
|
3699
3725
|
}) : [];
|
|
3700
3726
|
}
|
|
3701
|
-
function
|
|
3727
|
+
function Zn(e) {
|
|
3702
3728
|
return Object.keys(e).concat(Ao(e));
|
|
3703
3729
|
}
|
|
3704
3730
|
function is(e, t) {
|
|
@@ -3713,37 +3739,37 @@ function Ho(e, t) {
|
|
|
3713
3739
|
}
|
|
3714
3740
|
function Mo(e, t, r) {
|
|
3715
3741
|
var n = {};
|
|
3716
|
-
return r.isMergeableObject(e) &&
|
|
3742
|
+
return r.isMergeableObject(e) && Zn(e).forEach(function(i) {
|
|
3717
3743
|
n[i] = kt(e[i], r);
|
|
3718
|
-
}),
|
|
3744
|
+
}), Zn(t).forEach(function(i) {
|
|
3719
3745
|
Ho(e, i) || (is(e, i) && r.isMergeableObject(t[i]) ? n[i] = So(i, r)(e[i], t[i], r) : n[i] = kt(t[i], r));
|
|
3720
3746
|
}), n;
|
|
3721
3747
|
}
|
|
3722
|
-
function
|
|
3748
|
+
function yt(e, t, r) {
|
|
3723
3749
|
r = r || {}, r.arrayMerge = r.arrayMerge || To, r.isMergeableObject = r.isMergeableObject || mo, r.cloneUnlessOtherwiseSpecified = kt;
|
|
3724
3750
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
3725
3751
|
return s ? n ? r.arrayMerge(e, t, r) : Mo(e, t, r) : kt(t, r);
|
|
3726
3752
|
}
|
|
3727
|
-
|
|
3753
|
+
yt.all = function(t, r) {
|
|
3728
3754
|
if (!Array.isArray(t))
|
|
3729
3755
|
throw new Error("first argument should be an array");
|
|
3730
3756
|
return t.reduce(function(n, i) {
|
|
3731
|
-
return
|
|
3757
|
+
return yt(n, i, r);
|
|
3732
3758
|
}, {});
|
|
3733
3759
|
};
|
|
3734
|
-
var Oo =
|
|
3760
|
+
var Oo = yt, No = Oo;
|
|
3735
3761
|
const Po = /* @__PURE__ */ vo(No);
|
|
3736
|
-
var
|
|
3737
|
-
return
|
|
3762
|
+
var nn = function(e, t) {
|
|
3763
|
+
return nn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
3738
3764
|
r.__proto__ = n;
|
|
3739
3765
|
} || function(r, n) {
|
|
3740
3766
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
3741
|
-
},
|
|
3767
|
+
}, nn(e, t);
|
|
3742
3768
|
};
|
|
3743
3769
|
function Tr(e, t) {
|
|
3744
3770
|
if (typeof t != "function" && t !== null)
|
|
3745
3771
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
3746
|
-
|
|
3772
|
+
nn(e, t);
|
|
3747
3773
|
function r() {
|
|
3748
3774
|
this.constructor = e;
|
|
3749
3775
|
}
|
|
@@ -3836,11 +3862,11 @@ var F;
|
|
|
3836
3862
|
(function(e) {
|
|
3837
3863
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
3838
3864
|
})(F || (F = {}));
|
|
3839
|
-
var
|
|
3865
|
+
var Et;
|
|
3840
3866
|
(function(e) {
|
|
3841
3867
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
3842
|
-
})(
|
|
3843
|
-
function
|
|
3868
|
+
})(Et || (Et = {}));
|
|
3869
|
+
function qn(e) {
|
|
3844
3870
|
return e.type === F.literal;
|
|
3845
3871
|
}
|
|
3846
3872
|
function Fo(e) {
|
|
@@ -3868,10 +3894,10 @@ function cs(e) {
|
|
|
3868
3894
|
return e.type === F.tag;
|
|
3869
3895
|
}
|
|
3870
3896
|
function ds(e) {
|
|
3871
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
3897
|
+
return !!(e && typeof e == "object" && e.type === Et.number);
|
|
3872
3898
|
}
|
|
3873
|
-
function
|
|
3874
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
3899
|
+
function sn(e) {
|
|
3900
|
+
return !!(e && typeof e == "object" && e.type === Et.dateTime);
|
|
3875
3901
|
}
|
|
3876
3902
|
var ps = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ko = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
3877
3903
|
function jo(e) {
|
|
@@ -3996,8 +4022,8 @@ function Xo(e) {
|
|
|
3996
4022
|
function Wo(e) {
|
|
3997
4023
|
return e.replace(/^(.*?)-/, "");
|
|
3998
4024
|
}
|
|
3999
|
-
var
|
|
4000
|
-
function
|
|
4025
|
+
var Jn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, vs = /^(@+)?(\+|#+)?[rs]?$/g, zo = /(\*)(0+)|(#+)(0+)|(0+)/g, _s = /^(0+)$/;
|
|
4026
|
+
function Qn(e) {
|
|
4001
4027
|
var t = {};
|
|
4002
4028
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(vs, function(r, n, i) {
|
|
4003
4029
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
@@ -4057,7 +4083,7 @@ function Yo(e) {
|
|
|
4057
4083
|
}
|
|
4058
4084
|
return t;
|
|
4059
4085
|
}
|
|
4060
|
-
function
|
|
4086
|
+
function Kn(e) {
|
|
4061
4087
|
var t = {}, r = ms(e);
|
|
4062
4088
|
return r || t;
|
|
4063
4089
|
}
|
|
@@ -4097,12 +4123,12 @@ function Zo(e) {
|
|
|
4097
4123
|
continue;
|
|
4098
4124
|
case "scientific":
|
|
4099
4125
|
t = j(j(j({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
4100
|
-
return j(j({}, u),
|
|
4126
|
+
return j(j({}, u), Kn(l));
|
|
4101
4127
|
}, {}));
|
|
4102
4128
|
continue;
|
|
4103
4129
|
case "engineering":
|
|
4104
4130
|
t = j(j(j({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
4105
|
-
return j(j({}, u),
|
|
4131
|
+
return j(j({}, u), Kn(l));
|
|
4106
4132
|
}, {}));
|
|
4107
4133
|
continue;
|
|
4108
4134
|
case "notation-simple":
|
|
@@ -4164,18 +4190,18 @@ function Zo(e) {
|
|
|
4164
4190
|
t.minimumIntegerDigits = i.stem.length;
|
|
4165
4191
|
continue;
|
|
4166
4192
|
}
|
|
4167
|
-
if (
|
|
4193
|
+
if (Jn.test(i.stem)) {
|
|
4168
4194
|
if (i.options.length > 1)
|
|
4169
4195
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
4170
|
-
i.stem.replace(
|
|
4196
|
+
i.stem.replace(Jn, function(u, l, f, h, d, p) {
|
|
4171
4197
|
return f === "*" ? t.minimumFractionDigits = l.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : d && p ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + p.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
4172
4198
|
});
|
|
4173
4199
|
var s = i.options[0];
|
|
4174
|
-
s === "w" ? t = j(j({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = j(j({}, t),
|
|
4200
|
+
s === "w" ? t = j(j({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = j(j({}, t), Qn(s)));
|
|
4175
4201
|
continue;
|
|
4176
4202
|
}
|
|
4177
4203
|
if (vs.test(i.stem)) {
|
|
4178
|
-
t = j(j({}, t),
|
|
4204
|
+
t = j(j({}, t), Qn(i.stem));
|
|
4179
4205
|
continue;
|
|
4180
4206
|
}
|
|
4181
4207
|
var a = ms(i.stem);
|
|
@@ -5643,14 +5669,14 @@ function N(e, t) {
|
|
|
5643
5669
|
}
|
|
5644
5670
|
var eu = !!String.prototype.startsWith && "_a".startsWith("a", 1), tu = !!String.fromCodePoint, ru = !!Object.fromEntries, nu = !!String.prototype.codePointAt, iu = !!String.prototype.trimStart, su = !!String.prototype.trimEnd, au = !!Number.isSafeInteger, ou = au ? Number.isSafeInteger : function(e) {
|
|
5645
5671
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
5646
|
-
},
|
|
5672
|
+
}, an = !0;
|
|
5647
5673
|
try {
|
|
5648
5674
|
var uu = bs("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
5649
|
-
|
|
5675
|
+
an = ((Ur = uu.exec("a")) === null || Ur === void 0 ? void 0 : Ur[0]) === "a";
|
|
5650
5676
|
} catch {
|
|
5651
|
-
|
|
5677
|
+
an = !1;
|
|
5652
5678
|
}
|
|
5653
|
-
var
|
|
5679
|
+
var ei = eu ? (
|
|
5654
5680
|
// Native
|
|
5655
5681
|
function(t, r, n) {
|
|
5656
5682
|
return t.startsWith(r, n);
|
|
@@ -5660,7 +5686,7 @@ var Kn = eu ? (
|
|
|
5660
5686
|
function(t, r, n) {
|
|
5661
5687
|
return t.slice(n, n + r.length) === r;
|
|
5662
5688
|
}
|
|
5663
|
-
),
|
|
5689
|
+
), on = tu ? String.fromCodePoint : (
|
|
5664
5690
|
// IE11
|
|
5665
5691
|
function() {
|
|
5666
5692
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -5672,7 +5698,7 @@ var Kn = eu ? (
|
|
|
5672
5698
|
}
|
|
5673
5699
|
return n;
|
|
5674
5700
|
}
|
|
5675
|
-
),
|
|
5701
|
+
), ti = (
|
|
5676
5702
|
// native
|
|
5677
5703
|
ru ? Object.fromEntries : (
|
|
5678
5704
|
// Ponyfill
|
|
@@ -5722,24 +5748,24 @@ var Kn = eu ? (
|
|
|
5722
5748
|
function bs(e, t) {
|
|
5723
5749
|
return new RegExp(e, t);
|
|
5724
5750
|
}
|
|
5725
|
-
var
|
|
5726
|
-
if (
|
|
5727
|
-
var
|
|
5728
|
-
|
|
5751
|
+
var un;
|
|
5752
|
+
if (an) {
|
|
5753
|
+
var ri = bs("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
5754
|
+
un = function(t, r) {
|
|
5729
5755
|
var n;
|
|
5730
|
-
|
|
5731
|
-
var i =
|
|
5756
|
+
ri.lastIndex = r;
|
|
5757
|
+
var i = ri.exec(t);
|
|
5732
5758
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
5733
5759
|
};
|
|
5734
5760
|
} else
|
|
5735
|
-
|
|
5761
|
+
un = function(t, r) {
|
|
5736
5762
|
for (var n = []; ; ) {
|
|
5737
5763
|
var i = gs(t, r);
|
|
5738
5764
|
if (i === void 0 || ys(i) || pu(i))
|
|
5739
5765
|
break;
|
|
5740
5766
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
5741
5767
|
}
|
|
5742
|
-
return
|
|
5768
|
+
return on.apply(void 0, n);
|
|
5743
5769
|
};
|
|
5744
5770
|
var hu = (
|
|
5745
5771
|
/** @class */
|
|
@@ -5772,7 +5798,7 @@ var hu = (
|
|
|
5772
5798
|
if (n)
|
|
5773
5799
|
break;
|
|
5774
5800
|
return this.error(M.UNMATCHED_CLOSING_TAG, N(this.clonePosition(), this.clonePosition()));
|
|
5775
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
5801
|
+
} else if (s === 60 && !this.ignoreTag && ln(this.peek() || 0)) {
|
|
5776
5802
|
var a = this.parseTag(t, r);
|
|
5777
5803
|
if (a.err)
|
|
5778
5804
|
return a;
|
|
@@ -5805,7 +5831,7 @@ var hu = (
|
|
|
5805
5831
|
return s;
|
|
5806
5832
|
var a = s.val, o = this.clonePosition();
|
|
5807
5833
|
if (this.bumpIf("</")) {
|
|
5808
|
-
if (this.isEOF() || !
|
|
5834
|
+
if (this.isEOF() || !ln(this.char()))
|
|
5809
5835
|
return this.error(M.INVALID_TAG, N(o, this.clonePosition()));
|
|
5810
5836
|
var u = this.clonePosition(), l = this.parseTagName();
|
|
5811
5837
|
return i !== l ? this.error(M.UNMATCHED_CLOSING_TAG, N(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -5886,12 +5912,12 @@ var hu = (
|
|
|
5886
5912
|
r.push(n);
|
|
5887
5913
|
this.bump();
|
|
5888
5914
|
}
|
|
5889
|
-
return
|
|
5915
|
+
return on.apply(void 0, r);
|
|
5890
5916
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
5891
5917
|
if (this.isEOF())
|
|
5892
5918
|
return null;
|
|
5893
5919
|
var n = this.char();
|
|
5894
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
5920
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), on(n));
|
|
5895
5921
|
}, e.prototype.parseArgument = function(t, r) {
|
|
5896
5922
|
var n = this.clonePosition();
|
|
5897
5923
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -5920,7 +5946,7 @@ var hu = (
|
|
|
5920
5946
|
return this.error(M.MALFORMED_ARGUMENT, N(n, this.clonePosition()));
|
|
5921
5947
|
}
|
|
5922
5948
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
5923
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
5949
|
+
var t = this.clonePosition(), r = this.offset(), n = un(this.message, r), i = r + n.length;
|
|
5924
5950
|
this.bumpTo(i);
|
|
5925
5951
|
var s = this.clonePosition(), a = N(t, s);
|
|
5926
5952
|
return { value: n, location: a };
|
|
@@ -5949,7 +5975,7 @@ var hu = (
|
|
|
5949
5975
|
if (c.err)
|
|
5950
5976
|
return c;
|
|
5951
5977
|
var y = N(i, this.clonePosition());
|
|
5952
|
-
if (l &&
|
|
5978
|
+
if (l && ei(l?.style, "::", 0)) {
|
|
5953
5979
|
var I = lu(l.style.slice(2));
|
|
5954
5980
|
if (o === "number") {
|
|
5955
5981
|
var h = this.parseNumberSkeletonFromString(I, l.styleLocation);
|
|
@@ -5960,13 +5986,13 @@ var hu = (
|
|
|
5960
5986
|
} else {
|
|
5961
5987
|
if (I.length === 0)
|
|
5962
5988
|
return this.error(M.EXPECT_DATE_TIME_SKELETON, y);
|
|
5963
|
-
var
|
|
5964
|
-
this.locale && (
|
|
5989
|
+
var A = I;
|
|
5990
|
+
this.locale && (A = qo(I, this.locale));
|
|
5965
5991
|
var d = {
|
|
5966
|
-
type:
|
|
5967
|
-
pattern:
|
|
5992
|
+
type: Et.dateTime,
|
|
5993
|
+
pattern: A,
|
|
5968
5994
|
location: l.styleLocation,
|
|
5969
|
-
parsedOptions: this.shouldParseSkeletons ? jo(
|
|
5995
|
+
parsedOptions: this.shouldParseSkeletons ? jo(A) : {}
|
|
5970
5996
|
}, B = o === "date" ? F.date : F.time;
|
|
5971
5997
|
return {
|
|
5972
5998
|
val: { type: B, value: n, location: y, style: d },
|
|
@@ -6007,23 +6033,23 @@ var hu = (
|
|
|
6007
6033
|
var c = this.tryParseArgumentClose(i);
|
|
6008
6034
|
if (c.err)
|
|
6009
6035
|
return c;
|
|
6010
|
-
var
|
|
6036
|
+
var J = N(i, this.clonePosition());
|
|
6011
6037
|
return o === "select" ? {
|
|
6012
6038
|
val: {
|
|
6013
6039
|
type: F.select,
|
|
6014
6040
|
value: n,
|
|
6015
|
-
options:
|
|
6016
|
-
location:
|
|
6041
|
+
options: ti(X.val),
|
|
6042
|
+
location: J
|
|
6017
6043
|
},
|
|
6018
6044
|
err: null
|
|
6019
6045
|
} : {
|
|
6020
6046
|
val: {
|
|
6021
6047
|
type: F.plural,
|
|
6022
6048
|
value: n,
|
|
6023
|
-
options:
|
|
6049
|
+
options: ti(X.val),
|
|
6024
6050
|
offset: R,
|
|
6025
6051
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
6026
|
-
location:
|
|
6052
|
+
location: J
|
|
6027
6053
|
},
|
|
6028
6054
|
err: null
|
|
6029
6055
|
};
|
|
@@ -6077,7 +6103,7 @@ var hu = (
|
|
|
6077
6103
|
}
|
|
6078
6104
|
return {
|
|
6079
6105
|
val: {
|
|
6080
|
-
type:
|
|
6106
|
+
type: Et.number,
|
|
6081
6107
|
tokens: n,
|
|
6082
6108
|
location: r,
|
|
6083
6109
|
parsedOptions: this.shouldParseSkeletons ? Zo(n) : {}
|
|
@@ -6162,7 +6188,7 @@ var hu = (
|
|
|
6162
6188
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
6163
6189
|
}
|
|
6164
6190
|
}, e.prototype.bumpIf = function(t) {
|
|
6165
|
-
if (
|
|
6191
|
+
if (ei(this.message, t, this.offset())) {
|
|
6166
6192
|
for (var r = 0; r < t.length; r++)
|
|
6167
6193
|
this.bump();
|
|
6168
6194
|
return !0;
|
|
@@ -6194,11 +6220,11 @@ var hu = (
|
|
|
6194
6220
|
}, e;
|
|
6195
6221
|
}()
|
|
6196
6222
|
);
|
|
6197
|
-
function
|
|
6223
|
+
function ln(e) {
|
|
6198
6224
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
6199
6225
|
}
|
|
6200
6226
|
function cu(e) {
|
|
6201
|
-
return
|
|
6227
|
+
return ln(e) || e === 47;
|
|
6202
6228
|
}
|
|
6203
6229
|
function du(e) {
|
|
6204
6230
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
@@ -6209,12 +6235,12 @@ function ys(e) {
|
|
|
6209
6235
|
function pu(e) {
|
|
6210
6236
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
6211
6237
|
}
|
|
6212
|
-
function
|
|
6238
|
+
function fn(e) {
|
|
6213
6239
|
e.forEach(function(t) {
|
|
6214
6240
|
if (delete t.location, fs(t) || hs(t))
|
|
6215
6241
|
for (var r in t.options)
|
|
6216
|
-
delete t.options[r].location,
|
|
6217
|
-
else os(t) && ds(t.style) || (us(t) || ls(t)) &&
|
|
6242
|
+
delete t.options[r].location, fn(t.options[r].value);
|
|
6243
|
+
else os(t) && ds(t.style) || (us(t) || ls(t)) && sn(t.style) ? delete t.style.location : cs(t) && fn(t.children);
|
|
6218
6244
|
});
|
|
6219
6245
|
}
|
|
6220
6246
|
function vu(e, t) {
|
|
@@ -6224,12 +6250,12 @@ function vu(e, t) {
|
|
|
6224
6250
|
var n = SyntaxError(M[r.err.kind]);
|
|
6225
6251
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
6226
6252
|
}
|
|
6227
|
-
return t?.captureLocation ||
|
|
6253
|
+
return t?.captureLocation || fn(r.val), r.val;
|
|
6228
6254
|
}
|
|
6229
|
-
var
|
|
6255
|
+
var xt;
|
|
6230
6256
|
(function(e) {
|
|
6231
6257
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
6232
|
-
})(
|
|
6258
|
+
})(xt || (xt = {}));
|
|
6233
6259
|
var Sr = (
|
|
6234
6260
|
/** @class */
|
|
6235
6261
|
function(e) {
|
|
@@ -6242,12 +6268,12 @@ var Sr = (
|
|
|
6242
6268
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
6243
6269
|
}, t;
|
|
6244
6270
|
}(Error)
|
|
6245
|
-
),
|
|
6271
|
+
), ni = (
|
|
6246
6272
|
/** @class */
|
|
6247
6273
|
function(e) {
|
|
6248
6274
|
Tr(t, e);
|
|
6249
6275
|
function t(r, n, i, s) {
|
|
6250
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
6276
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), xt.INVALID_VALUE, s) || this;
|
|
6251
6277
|
}
|
|
6252
6278
|
return t;
|
|
6253
6279
|
}(Sr)
|
|
@@ -6256,7 +6282,7 @@ var Sr = (
|
|
|
6256
6282
|
function(e) {
|
|
6257
6283
|
Tr(t, e);
|
|
6258
6284
|
function t(r, n, i) {
|
|
6259
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
6285
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), xt.INVALID_VALUE, i) || this;
|
|
6260
6286
|
}
|
|
6261
6287
|
return t;
|
|
6262
6288
|
}(Sr)
|
|
@@ -6265,7 +6291,7 @@ var Sr = (
|
|
|
6265
6291
|
function(e) {
|
|
6266
6292
|
Tr(t, e);
|
|
6267
6293
|
function t(r, n) {
|
|
6268
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
6294
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), xt.MISSING_VALUE, n) || this;
|
|
6269
6295
|
}
|
|
6270
6296
|
return t;
|
|
6271
6297
|
}(Sr)
|
|
@@ -6283,7 +6309,7 @@ function bu(e) {
|
|
|
6283
6309
|
return typeof e == "function";
|
|
6284
6310
|
}
|
|
6285
6311
|
function er(e, t, r, n, i, s, a) {
|
|
6286
|
-
if (e.length === 1 &&
|
|
6312
|
+
if (e.length === 1 && qn(e[0]))
|
|
6287
6313
|
return [
|
|
6288
6314
|
{
|
|
6289
6315
|
type: re.literal,
|
|
@@ -6292,7 +6318,7 @@ function er(e, t, r, n, i, s, a) {
|
|
|
6292
6318
|
];
|
|
6293
6319
|
for (var o = [], u = 0, l = e; u < l.length; u++) {
|
|
6294
6320
|
var f = l[u];
|
|
6295
|
-
if (
|
|
6321
|
+
if (qn(f)) {
|
|
6296
6322
|
o.push({
|
|
6297
6323
|
type: re.literal,
|
|
6298
6324
|
value: f.value
|
|
@@ -6318,7 +6344,7 @@ function er(e, t, r, n, i, s, a) {
|
|
|
6318
6344
|
continue;
|
|
6319
6345
|
}
|
|
6320
6346
|
if (us(f)) {
|
|
6321
|
-
var p = typeof f.style == "string" ? n.date[f.style] :
|
|
6347
|
+
var p = typeof f.style == "string" ? n.date[f.style] : sn(f.style) ? f.style.parsedOptions : void 0;
|
|
6322
6348
|
o.push({
|
|
6323
6349
|
type: re.literal,
|
|
6324
6350
|
value: r.getDateTimeFormat(t, p).format(d)
|
|
@@ -6326,7 +6352,7 @@ function er(e, t, r, n, i, s, a) {
|
|
|
6326
6352
|
continue;
|
|
6327
6353
|
}
|
|
6328
6354
|
if (ls(f)) {
|
|
6329
|
-
var p = typeof f.style == "string" ? n.time[f.style] :
|
|
6355
|
+
var p = typeof f.style == "string" ? n.time[f.style] : sn(f.style) ? f.style.parsedOptions : n.time.medium;
|
|
6330
6356
|
o.push({
|
|
6331
6357
|
type: re.literal,
|
|
6332
6358
|
value: r.getDateTimeFormat(t, p).format(d)
|
|
@@ -6345,7 +6371,7 @@ function er(e, t, r, n, i, s, a) {
|
|
|
6345
6371
|
var c = f.children, y = f.value, I = i[y];
|
|
6346
6372
|
if (!bu(I))
|
|
6347
6373
|
throw new _u(y, "function", a);
|
|
6348
|
-
var
|
|
6374
|
+
var A = er(c, t, r, n, i, s), B = I(A.map(function(R) {
|
|
6349
6375
|
return R.value;
|
|
6350
6376
|
}));
|
|
6351
6377
|
Array.isArray(B) || (B = [B]), o.push.apply(o, B.map(function(R) {
|
|
@@ -6358,7 +6384,7 @@ function er(e, t, r, n, i, s, a) {
|
|
|
6358
6384
|
if (fs(f)) {
|
|
6359
6385
|
var D = f.options[d] || f.options.other;
|
|
6360
6386
|
if (!D)
|
|
6361
|
-
throw new
|
|
6387
|
+
throw new ni(f.value, d, Object.keys(f.options), a);
|
|
6362
6388
|
o.push.apply(o, er(D.value, t, r, n, i));
|
|
6363
6389
|
continue;
|
|
6364
6390
|
}
|
|
@@ -6368,12 +6394,12 @@ function er(e, t, r, n, i, s, a) {
|
|
|
6368
6394
|
if (!Intl.PluralRules)
|
|
6369
6395
|
throw new Sr(`Intl.PluralRules is not available in this environment.
|
|
6370
6396
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
6371
|
-
`,
|
|
6397
|
+
`, xt.MISSING_INTL_API, a);
|
|
6372
6398
|
var q = r.getPluralRules(t, { type: f.pluralType }).select(d - (f.offset || 0));
|
|
6373
6399
|
D = f.options[q] || f.options.other;
|
|
6374
6400
|
}
|
|
6375
6401
|
if (!D)
|
|
6376
|
-
throw new
|
|
6402
|
+
throw new ni(f.value, d, Object.keys(f.options), a);
|
|
6377
6403
|
o.push.apply(o, er(D.value, t, r, n, i, d - (f.offset || 0)));
|
|
6378
6404
|
continue;
|
|
6379
6405
|
}
|
|
@@ -6581,13 +6607,13 @@ const Ve = {}, Su = (e, t, r) => r && (t in Ve || (Ve[t] = {}), e in Ve[t] || (V
|
|
|
6581
6607
|
return Su(e, t, s);
|
|
6582
6608
|
}
|
|
6583
6609
|
};
|
|
6584
|
-
let
|
|
6585
|
-
const
|
|
6610
|
+
let Ln;
|
|
6611
|
+
const At = wr({});
|
|
6586
6612
|
function Au(e) {
|
|
6587
|
-
return
|
|
6613
|
+
return Ln[e] || null;
|
|
6588
6614
|
}
|
|
6589
6615
|
function xs(e) {
|
|
6590
|
-
return e in
|
|
6616
|
+
return e in Ln;
|
|
6591
6617
|
}
|
|
6592
6618
|
function Hu(e, t) {
|
|
6593
6619
|
if (!xs(e))
|
|
@@ -6606,13 +6632,13 @@ function Mu(e) {
|
|
|
6606
6632
|
}
|
|
6607
6633
|
}
|
|
6608
6634
|
function ws(e, ...t) {
|
|
6609
|
-
delete Ve[e],
|
|
6635
|
+
delete Ve[e], At.update((r) => (r[e] = Po.all([r[e] || {}, ...t]), r));
|
|
6610
6636
|
}
|
|
6611
|
-
|
|
6612
|
-
[
|
|
6637
|
+
St(
|
|
6638
|
+
[At],
|
|
6613
6639
|
([e]) => Object.keys(e)
|
|
6614
6640
|
);
|
|
6615
|
-
|
|
6641
|
+
At.subscribe((e) => Ln = e);
|
|
6616
6642
|
const tr = {};
|
|
6617
6643
|
function Ou(e, t) {
|
|
6618
6644
|
tr[e].delete(t), tr[e].size === 0 && delete tr[e];
|
|
@@ -6626,7 +6652,7 @@ function Nu(e) {
|
|
|
6626
6652
|
return [t, r ? [...r] : []];
|
|
6627
6653
|
}).filter(([, t]) => t.length > 0);
|
|
6628
6654
|
}
|
|
6629
|
-
function
|
|
6655
|
+
function hn(e) {
|
|
6630
6656
|
return e == null ? !1 : Ar(e).some(
|
|
6631
6657
|
(t) => {
|
|
6632
6658
|
var r;
|
|
@@ -6639,20 +6665,20 @@ function Pu(e, t) {
|
|
|
6639
6665
|
t.map((n) => (Ou(e, n), n().then((i) => i.default || i)))
|
|
6640
6666
|
).then((n) => ws(e, ...n));
|
|
6641
6667
|
}
|
|
6642
|
-
const
|
|
6668
|
+
const $t = {};
|
|
6643
6669
|
function Ss(e) {
|
|
6644
|
-
if (!
|
|
6645
|
-
return e in
|
|
6670
|
+
if (!hn(e))
|
|
6671
|
+
return e in $t ? $t[e] : Promise.resolve();
|
|
6646
6672
|
const t = Nu(e);
|
|
6647
|
-
return
|
|
6673
|
+
return $t[e] = Promise.all(
|
|
6648
6674
|
t.map(
|
|
6649
6675
|
([r, n]) => Pu(r, n)
|
|
6650
6676
|
)
|
|
6651
6677
|
).then(() => {
|
|
6652
|
-
if (
|
|
6678
|
+
if (hn(e))
|
|
6653
6679
|
return Ss(e);
|
|
6654
|
-
delete
|
|
6655
|
-
}),
|
|
6680
|
+
delete $t[e];
|
|
6681
|
+
}), $t[e];
|
|
6656
6682
|
}
|
|
6657
6683
|
const $u = {
|
|
6658
6684
|
number: {
|
|
@@ -6691,36 +6717,36 @@ const $u = {
|
|
|
6691
6717
|
handleMissingMessage: void 0,
|
|
6692
6718
|
ignoreTag: !0
|
|
6693
6719
|
}, Iu = Lu;
|
|
6694
|
-
function
|
|
6720
|
+
function wt() {
|
|
6695
6721
|
return Iu;
|
|
6696
6722
|
}
|
|
6697
|
-
const Gr =
|
|
6698
|
-
var Bu = Object.defineProperty, Cu = Object.defineProperties, Ru = Object.getOwnPropertyDescriptors,
|
|
6723
|
+
const Gr = wr(!1);
|
|
6724
|
+
var Bu = Object.defineProperty, Cu = Object.defineProperties, Ru = Object.getOwnPropertyDescriptors, ii = Object.getOwnPropertySymbols, Du = Object.prototype.hasOwnProperty, Uu = Object.prototype.propertyIsEnumerable, si = (e, t, r) => t in e ? Bu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Fu = (e, t) => {
|
|
6699
6725
|
for (var r in t || (t = {}))
|
|
6700
|
-
Du.call(t, r) &&
|
|
6701
|
-
if (
|
|
6702
|
-
for (var r of
|
|
6703
|
-
Uu.call(t, r) &&
|
|
6726
|
+
Du.call(t, r) && si(e, r, t[r]);
|
|
6727
|
+
if (ii)
|
|
6728
|
+
for (var r of ii(t))
|
|
6729
|
+
Uu.call(t, r) && si(e, r, t[r]);
|
|
6704
6730
|
return e;
|
|
6705
6731
|
}, Gu = (e, t) => Cu(e, Ru(t));
|
|
6706
|
-
let
|
|
6707
|
-
const dr =
|
|
6708
|
-
function
|
|
6732
|
+
let cn;
|
|
6733
|
+
const dr = wr(null);
|
|
6734
|
+
function ai(e) {
|
|
6709
6735
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
6710
6736
|
}
|
|
6711
|
-
function Ar(e, t =
|
|
6712
|
-
const r =
|
|
6713
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
6737
|
+
function Ar(e, t = wt().fallbackLocale) {
|
|
6738
|
+
const r = ai(e);
|
|
6739
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...ai(t)])] : r;
|
|
6714
6740
|
}
|
|
6715
6741
|
function st() {
|
|
6716
|
-
return
|
|
6742
|
+
return cn ?? void 0;
|
|
6717
6743
|
}
|
|
6718
6744
|
dr.subscribe((e) => {
|
|
6719
|
-
|
|
6745
|
+
cn = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
6720
6746
|
});
|
|
6721
6747
|
const ku = (e) => {
|
|
6722
|
-
if (e && Mu(e) &&
|
|
6723
|
-
const { loadingDelay: t } =
|
|
6748
|
+
if (e && Mu(e) && hn(e)) {
|
|
6749
|
+
const { loadingDelay: t } = wt();
|
|
6724
6750
|
let r;
|
|
6725
6751
|
return typeof window < "u" && st() != null && t ? r = window.setTimeout(
|
|
6726
6752
|
() => Gr.set(!0),
|
|
@@ -6741,14 +6767,14 @@ const ku = (e) => {
|
|
|
6741
6767
|
return i in t ? t[i] : t[i] = e(n);
|
|
6742
6768
|
};
|
|
6743
6769
|
};
|
|
6744
|
-
var ju = Object.defineProperty, pr = Object.getOwnPropertySymbols, As = Object.prototype.hasOwnProperty, Hs = Object.prototype.propertyIsEnumerable,
|
|
6770
|
+
var ju = Object.defineProperty, pr = Object.getOwnPropertySymbols, As = Object.prototype.hasOwnProperty, Hs = Object.prototype.propertyIsEnumerable, oi = (e, t, r) => t in e ? ju(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, In = (e, t) => {
|
|
6745
6771
|
for (var r in t || (t = {}))
|
|
6746
|
-
As.call(t, r) &&
|
|
6772
|
+
As.call(t, r) && oi(e, r, t[r]);
|
|
6747
6773
|
if (pr)
|
|
6748
6774
|
for (var r of pr(t))
|
|
6749
|
-
Hs.call(t, r) &&
|
|
6775
|
+
Hs.call(t, r) && oi(e, r, t[r]);
|
|
6750
6776
|
return e;
|
|
6751
|
-
},
|
|
6777
|
+
}, Ht = (e, t) => {
|
|
6752
6778
|
var r = {};
|
|
6753
6779
|
for (var n in e)
|
|
6754
6780
|
As.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -6758,27 +6784,27 @@ var ju = Object.defineProperty, pr = Object.getOwnPropertySymbols, As = Object.p
|
|
|
6758
6784
|
return r;
|
|
6759
6785
|
};
|
|
6760
6786
|
const jt = (e, t) => {
|
|
6761
|
-
const { formats: r } =
|
|
6787
|
+
const { formats: r } = wt();
|
|
6762
6788
|
if (e in r && t in r[e])
|
|
6763
6789
|
return r[e][t];
|
|
6764
6790
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
6765
6791
|
}, Vu = Hr(
|
|
6766
6792
|
(e) => {
|
|
6767
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
6793
|
+
var t = e, { locale: r, format: n } = t, i = Ht(t, ["locale", "format"]);
|
|
6768
6794
|
if (r == null)
|
|
6769
6795
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
6770
6796
|
return n && (i = jt("number", n)), new Intl.NumberFormat(r, i);
|
|
6771
6797
|
}
|
|
6772
6798
|
), Xu = Hr(
|
|
6773
6799
|
(e) => {
|
|
6774
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
6800
|
+
var t = e, { locale: r, format: n } = t, i = Ht(t, ["locale", "format"]);
|
|
6775
6801
|
if (r == null)
|
|
6776
6802
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
6777
6803
|
return n ? i = jt("date", n) : Object.keys(i).length === 0 && (i = jt("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
6778
6804
|
}
|
|
6779
6805
|
), Wu = Hr(
|
|
6780
6806
|
(e) => {
|
|
6781
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
6807
|
+
var t = e, { locale: r, format: n } = t, i = Ht(t, ["locale", "format"]);
|
|
6782
6808
|
if (r == null)
|
|
6783
6809
|
throw new Error(
|
|
6784
6810
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
@@ -6788,28 +6814,28 @@ const jt = (e, t) => {
|
|
|
6788
6814
|
), zu = (e = {}) => {
|
|
6789
6815
|
var t = e, {
|
|
6790
6816
|
locale: r = st()
|
|
6791
|
-
} = t, n =
|
|
6817
|
+
} = t, n = Ht(t, [
|
|
6792
6818
|
"locale"
|
|
6793
6819
|
]);
|
|
6794
|
-
return Vu(
|
|
6820
|
+
return Vu(In({ locale: r }, n));
|
|
6795
6821
|
}, Yu = (e = {}) => {
|
|
6796
6822
|
var t = e, {
|
|
6797
6823
|
locale: r = st()
|
|
6798
|
-
} = t, n =
|
|
6824
|
+
} = t, n = Ht(t, [
|
|
6799
6825
|
"locale"
|
|
6800
6826
|
]);
|
|
6801
|
-
return Xu(
|
|
6827
|
+
return Xu(In({ locale: r }, n));
|
|
6802
6828
|
}, Zu = (e = {}) => {
|
|
6803
6829
|
var t = e, {
|
|
6804
6830
|
locale: r = st()
|
|
6805
|
-
} = t, n =
|
|
6831
|
+
} = t, n = Ht(t, [
|
|
6806
6832
|
"locale"
|
|
6807
6833
|
]);
|
|
6808
|
-
return Wu(
|
|
6834
|
+
return Wu(In({ locale: r }, n));
|
|
6809
6835
|
}, qu = Hr(
|
|
6810
6836
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
6811
|
-
(e, t = st()) => new wu(e, t,
|
|
6812
|
-
ignoreTag:
|
|
6837
|
+
(e, t = st()) => new wu(e, t, wt().formats, {
|
|
6838
|
+
ignoreTag: wt().ignoreTag
|
|
6813
6839
|
})
|
|
6814
6840
|
), Ju = (e, t = {}) => {
|
|
6815
6841
|
var r, n, i, s;
|
|
@@ -6826,7 +6852,7 @@ const jt = (e, t) => {
|
|
|
6826
6852
|
);
|
|
6827
6853
|
let f = Es(e, u);
|
|
6828
6854
|
if (!f)
|
|
6829
|
-
f = (s = (i = (n = (r =
|
|
6855
|
+
f = (s = (i = (n = (r = wt()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? s : e;
|
|
6830
6856
|
else if (typeof f != "string")
|
|
6831
6857
|
return console.warn(
|
|
6832
6858
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -6843,14 +6869,14 @@ const jt = (e, t) => {
|
|
|
6843
6869
|
);
|
|
6844
6870
|
}
|
|
6845
6871
|
return h;
|
|
6846
|
-
}, Qu = (e, t) => Zu(t).format(e), Ku = (e, t) => Yu(t).format(e), el = (e, t) => zu(t).format(e), tl = (e, t = st()) => Es(e, t), rl =
|
|
6847
|
-
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6872
|
+
}, Qu = (e, t) => Zu(t).format(e), Ku = (e, t) => Yu(t).format(e), el = (e, t) => zu(t).format(e), tl = (e, t = st()) => Es(e, t), rl = St([We, At], () => Ju);
|
|
6873
|
+
St([We], () => Qu);
|
|
6874
|
+
St([We], () => Ku);
|
|
6875
|
+
St([We], () => el);
|
|
6876
|
+
St([We, At], () => tl);
|
|
6851
6877
|
function nl({ withLocale: e, translations: t }) {
|
|
6852
6878
|
We.subscribe((r) => {
|
|
6853
|
-
r == null && (
|
|
6879
|
+
r == null && (At.set(t), We.set(e));
|
|
6854
6880
|
});
|
|
6855
6881
|
}
|
|
6856
6882
|
function il(e, t) {
|
|
@@ -6864,26 +6890,26 @@ const wl = (e) => {
|
|
|
6864
6890
|
const o = async () => {
|
|
6865
6891
|
const { apiEndpoint: u, userSession: l, locale: f, loadLevels: h, onLevelLoaded: d } = e();
|
|
6866
6892
|
if (!(!u || !l)) {
|
|
6867
|
-
|
|
6893
|
+
z(s, !0), z(a, void 0);
|
|
6868
6894
|
try {
|
|
6869
6895
|
const p = [
|
|
6870
6896
|
fo({ apiEndpoint: u, userSession: l, locale: f }).then((c) => {
|
|
6871
6897
|
const y = c.level;
|
|
6872
|
-
y.name = y.presentation?.displayName || y.name, y.spendablePoints = c.spendableWallet?.total.points || 0,
|
|
6898
|
+
y.name = y.presentation?.displayName || y.name, y.spendablePoints = c.spendableWallet?.total.points || 0, z(t, y, !0), z(n, c.loyaltyWallet?.total, !0), z(i, c.spendableWallet?.total, !0), d?.({ elevateLevel: y }), d?.({
|
|
6873
6899
|
elevateLevelWalletTotal: c.spendableWallet?.total,
|
|
6874
6900
|
loyaltyWalletTotal: c.loyaltyWallet?.total
|
|
6875
6901
|
});
|
|
6876
6902
|
})
|
|
6877
6903
|
];
|
|
6878
6904
|
h && p.push(ho({ apiEndpoint: u, userSession: l, locale: f }).then((c) => {
|
|
6879
|
-
|
|
6880
|
-
})), await Promise.all(p), await
|
|
6905
|
+
z(r, c, !0);
|
|
6906
|
+
})), await Promise.all(p), await Ha(), x(r) && x(t) && d?.({
|
|
6881
6907
|
calculatedLevelFlag: co(x(r), x(t).loyaltyPoints ?? 0)
|
|
6882
6908
|
});
|
|
6883
6909
|
} catch (p) {
|
|
6884
|
-
|
|
6910
|
+
z(a, p, !0), console.error("Failed to load elevate info:", p);
|
|
6885
6911
|
} finally {
|
|
6886
|
-
|
|
6912
|
+
z(s, !1);
|
|
6887
6913
|
}
|
|
6888
6914
|
}
|
|
6889
6915
|
};
|
|
@@ -6946,7 +6972,7 @@ const wl = (e) => {
|
|
|
6946
6972
|
next: "Következő"
|
|
6947
6973
|
}
|
|
6948
6974
|
}, Ft = 10, ol = 7, ul = 4;
|
|
6949
|
-
var ll = /* @__PURE__ */
|
|
6975
|
+
var ll = /* @__PURE__ */ xr('<span class="loyalty-pagination__ellipsis svelte-1op0ean" aria-hidden="true">...</span>'), fl = /* @__PURE__ */ xr('<button type="button"> </button>'), hl = /* @__PURE__ */ xr('<div class="loyalty-pagination__pages svelte-1op0ean"><button class="loyalty-pagination__btn loyalty-pagination__btn--prev svelte-1op0ean" type="button"> </button> <!> <button class="loyalty-pagination__btn loyalty-pagination__btn--next svelte-1op0ean" type="button"> </button></div>'), cl = /* @__PURE__ */ xr('<div class="loyalty-pagination svelte-1op0ean"><!></div>');
|
|
6950
6976
|
const dl = {
|
|
6951
6977
|
hash: "svelte-1op0ean",
|
|
6952
6978
|
code: `.loyalty-pagination.svelte-1op0ean {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;box-sizing:border-box;width:100%;}
|
|
@@ -6961,23 +6987,23 @@ const dl = {
|
|
|
6961
6987
|
.loyalty-pagination__btn--next.svelte-1op0ean:not(:disabled) {color:var(--text-default, #dfe3e8);}`
|
|
6962
6988
|
};
|
|
6963
6989
|
function Ms(e, t) {
|
|
6964
|
-
|
|
6965
|
-
const r = () =>
|
|
6990
|
+
gn(t, !0), Ya(e, dl);
|
|
6991
|
+
const r = () => io(rl, "$_", n), [n, i] = so(), s = Me(t, "offset", 7, 0), a = Me(t, "limit", 7, Ft), o = Me(t, "total", 7, 0), u = Me(t, "onPageChange", 7, (b) => {
|
|
6966
6992
|
}), l = Me(t, "locale", 7, "en");
|
|
6967
6993
|
nl({ withLocale: l(), translations: {} }), Object.entries(al).forEach(([b, w]) => {
|
|
6968
6994
|
il(b, w);
|
|
6969
6995
|
}), fr(() => {
|
|
6970
6996
|
sl(l() ?? "en");
|
|
6971
6997
|
});
|
|
6972
|
-
const f = /* @__PURE__ */
|
|
6998
|
+
const f = /* @__PURE__ */ at(() => Number(s()) || 0), h = /* @__PURE__ */ at(() => Number(a()) || Ft), d = /* @__PURE__ */ at(() => Number(o()) || 0), p = /* @__PURE__ */ at(() => Math.max(1, Math.ceil(x(d) / Math.max(1, x(h))))), c = /* @__PURE__ */ at(() => x(h) > 0 ? Math.floor(x(f) / x(h)) : 0);
|
|
6973
6999
|
let y = /* @__PURE__ */ ne(!1);
|
|
6974
7000
|
fr(() => {
|
|
6975
7001
|
const b = window.matchMedia("(max-width: 767px)"), w = (ee) => {
|
|
6976
|
-
|
|
7002
|
+
z(y, ee.matches, !0);
|
|
6977
7003
|
};
|
|
6978
|
-
return
|
|
7004
|
+
return z(y, b.matches, !0), b.addEventListener("change", w), () => b.removeEventListener("change", w);
|
|
6979
7005
|
});
|
|
6980
|
-
const I = (b, w, ee) => b <= (ee ? ul : ol) ? Array.from({ length: b }, (v, g) => g) : w <= 1 || w >= b - 2 ? [0, 1, "ellipsis", b - 2, b - 1] : [0, "ellipsis", w, "ellipsis", b - 1],
|
|
7006
|
+
const I = (b, w, ee) => b <= (ee ? ul : ol) ? Array.from({ length: b }, (v, g) => g) : w <= 1 || w >= b - 2 ? [0, 1, "ellipsis", b - 2, b - 1] : [0, "ellipsis", w, "ellipsis", b - 1], A = /* @__PURE__ */ at(() => I(x(p), x(c), x(y))), B = (b) => u()(b * x(h)), D = () => u()(Math.max(0, x(c) - 1) * x(h)), q = () => u()(Math.min(x(p) - 1, x(c) + 1) * x(h));
|
|
6981
7007
|
var R = {
|
|
6982
7008
|
get offset() {
|
|
6983
7009
|
return s();
|
|
@@ -7010,12 +7036,12 @@ function Ms(e, t) {
|
|
|
7010
7036
|
set locale(b = "en") {
|
|
7011
7037
|
l(b), pe();
|
|
7012
7038
|
}
|
|
7013
|
-
}, X = cl(),
|
|
7039
|
+
}, X = cl(), J = qr(X);
|
|
7014
7040
|
{
|
|
7015
|
-
var
|
|
7016
|
-
var w = hl(), ee = qr(w),
|
|
7017
|
-
|
|
7018
|
-
var T =
|
|
7041
|
+
var Q = (b) => {
|
|
7042
|
+
var w = hl(), ee = qr(w), Mt = Nr(ee, !0), E = Fn(ee, 2);
|
|
7043
|
+
Xa(E, 17, () => x(A), ja, (g, _) => {
|
|
7044
|
+
var T = La(), S = ga(T);
|
|
7019
7045
|
{
|
|
7020
7046
|
var C = (U) => {
|
|
7021
7047
|
var k = ll();
|
|
@@ -7025,34 +7051,34 @@ function Ms(e, t) {
|
|
|
7025
7051
|
let te;
|
|
7026
7052
|
var Ge = Nr(k, !0);
|
|
7027
7053
|
Jr(() => {
|
|
7028
|
-
te =
|
|
7054
|
+
te = qa(k, 1, "loyalty-pagination__btn svelte-1op0ean", null, te, {
|
|
7029
7055
|
"loyalty-pagination__btn--active": x(_) === x(c)
|
|
7030
7056
|
}), Ir(Ge, x(_) + 1);
|
|
7031
7057
|
}), Pr("click", k, () => B(x(_))), lt(U, k);
|
|
7032
7058
|
};
|
|
7033
|
-
|
|
7059
|
+
Xn(S, (U) => {
|
|
7034
7060
|
x(_) === "ellipsis" ? U(C) : U(G, -1);
|
|
7035
7061
|
});
|
|
7036
7062
|
}
|
|
7037
7063
|
lt(g, T);
|
|
7038
7064
|
});
|
|
7039
|
-
var m =
|
|
7065
|
+
var m = Fn(E, 2), v = Nr(m, !0);
|
|
7040
7066
|
Xr(w), Jr(
|
|
7041
7067
|
(g, _) => {
|
|
7042
|
-
ee.disabled = x(c) <= 0, Ir(
|
|
7068
|
+
ee.disabled = x(c) <= 0, Ir(Mt, g), m.disabled = x(c) >= x(p) - 1, Ir(v, _);
|
|
7043
7069
|
},
|
|
7044
7070
|
[() => r()("prev"), () => r()("next")]
|
|
7045
7071
|
), Pr("click", ee, D), Pr("click", m, q), lt(b, w);
|
|
7046
7072
|
};
|
|
7047
|
-
|
|
7048
|
-
x(p) > 1 && b(
|
|
7073
|
+
Xn(J, (b) => {
|
|
7074
|
+
x(p) > 1 && b(Q);
|
|
7049
7075
|
});
|
|
7050
7076
|
}
|
|
7051
7077
|
Xr(X), lt(e, X);
|
|
7052
|
-
var be =
|
|
7078
|
+
var be = bn(R);
|
|
7053
7079
|
return i(), be;
|
|
7054
7080
|
}
|
|
7055
|
-
|
|
7081
|
+
Oa(["click"]);
|
|
7056
7082
|
ns(
|
|
7057
7083
|
Ms,
|
|
7058
7084
|
{
|
|
@@ -7067,7 +7093,7 @@ ns(
|
|
|
7067
7093
|
{ mode: "open" }
|
|
7068
7094
|
);
|
|
7069
7095
|
function Os(e, t) {
|
|
7070
|
-
|
|
7096
|
+
gn(t, !0);
|
|
7071
7097
|
let r = Me(t, "offset", 7, 0), n = Me(t, "limit", 7, Ft), i = Me(t, "total", 7, 0), s = Me(t, "onPageChange"), a = Me(t, "locale", 7, "en");
|
|
7072
7098
|
var o = {
|
|
7073
7099
|
get offset() {
|
|
@@ -7117,7 +7143,7 @@ function Os(e, t) {
|
|
|
7117
7143
|
get locale() {
|
|
7118
7144
|
return a();
|
|
7119
7145
|
}
|
|
7120
|
-
}),
|
|
7146
|
+
}), bn(o);
|
|
7121
7147
|
}
|
|
7122
7148
|
customElements.define("loyalty-pagination", ns(
|
|
7123
7149
|
Os,
|
|
@@ -7137,17 +7163,17 @@ const Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7137
7163
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
7138
7164
|
export {
|
|
7139
7165
|
rl as $,
|
|
7140
|
-
|
|
7141
|
-
|
|
7142
|
-
|
|
7166
|
+
La as A,
|
|
7167
|
+
Xa as B,
|
|
7168
|
+
ja as C,
|
|
7143
7169
|
bl as D,
|
|
7144
7170
|
Nr as E,
|
|
7145
7171
|
Jr as F,
|
|
7146
7172
|
Ir as G,
|
|
7147
7173
|
Pr as H,
|
|
7148
7174
|
El as I,
|
|
7149
|
-
|
|
7150
|
-
|
|
7175
|
+
io as J,
|
|
7176
|
+
qa as K,
|
|
7151
7177
|
Ms as L,
|
|
7152
7178
|
yl as M,
|
|
7153
7179
|
gl as N,
|
|
@@ -7155,30 +7181,30 @@ export {
|
|
|
7155
7181
|
ml as P,
|
|
7156
7182
|
xl as Q,
|
|
7157
7183
|
Tl as R,
|
|
7158
|
-
|
|
7184
|
+
Ya as a,
|
|
7159
7185
|
Me as b,
|
|
7160
7186
|
ns as c,
|
|
7161
|
-
|
|
7187
|
+
Oa as d,
|
|
7162
7188
|
il as e,
|
|
7163
7189
|
sl as f,
|
|
7164
7190
|
vl as g,
|
|
7165
7191
|
wl as h,
|
|
7166
7192
|
ne as i,
|
|
7167
|
-
|
|
7193
|
+
It as j,
|
|
7168
7194
|
x as k,
|
|
7169
|
-
|
|
7170
|
-
|
|
7171
|
-
|
|
7195
|
+
z as l,
|
|
7196
|
+
ga as m,
|
|
7197
|
+
Xn as n,
|
|
7172
7198
|
lt as o,
|
|
7173
|
-
|
|
7174
|
-
|
|
7175
|
-
|
|
7199
|
+
gn as p,
|
|
7200
|
+
bn as q,
|
|
7201
|
+
at as r,
|
|
7176
7202
|
nl as s,
|
|
7177
|
-
|
|
7203
|
+
xr as t,
|
|
7178
7204
|
fr as u,
|
|
7179
7205
|
pe as v,
|
|
7180
|
-
|
|
7206
|
+
so as w,
|
|
7181
7207
|
qr as x,
|
|
7182
7208
|
Xr as y,
|
|
7183
|
-
|
|
7209
|
+
Fn as z
|
|
7184
7210
|
};
|