@everymatrix/loyalty-rakeback 0.1.22 → 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/LoyaltyRakeback-5EpaRuS3.cjs +23 -0
- package/components/{LoyaltyRakeback-DYvlu1t5.js → LoyaltyRakeback-BWoukf9t.js} +1512 -1486
- package/components/LoyaltyRakeback-BX_GMJuy.cjs +23 -0
- package/components/{LoyaltyRakeback-Bc1CXZkc.js → LoyaltyRakeback-CvK9iU0v.js} +895 -869
- package/es2015/loyalty-rakeback.cjs +1 -1
- package/es2015/loyalty-rakeback.js +2 -2
- package/esnext/loyalty-rakeback.cjs +1 -1
- package/esnext/loyalty-rakeback.js +2 -2
- package/package.json +1 -1
- package/components/LoyaltyRakeback-CExei7VH.cjs +0 -23
- package/components/LoyaltyRakeback-DbDlNqmn.cjs +0 -23
|
@@ -5,21 +5,21 @@ typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
|
5
5
|
} });
|
|
6
6
|
const is = "5";
|
|
7
7
|
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(is);
|
|
8
|
-
const ss = 2,
|
|
9
|
-
var as = Array.isArray, os = Array.prototype.indexOf, Wt = Array.prototype.includes, us = Array.from, Yt = Object.keys,
|
|
8
|
+
const ss = 2, Pn = "[", kn = "[!", an = "[?", Cn = "]", nt = {}, j = Symbol("uninitialized"), Rn = !1;
|
|
9
|
+
var as = Array.isArray, os = Array.prototype.indexOf, Wt = Array.prototype.includes, us = Array.from, Yt = Object.keys, it = Object.defineProperty, tt = Object.getOwnPropertyDescriptor, ls = Object.prototype, fs = Array.prototype, hs = Object.getPrototypeOf, on = Object.isExtensible;
|
|
10
10
|
const $e = () => {
|
|
11
11
|
};
|
|
12
|
-
function
|
|
12
|
+
function In(e) {
|
|
13
13
|
for (var t = 0; t < e.length; t++)
|
|
14
14
|
e[t]();
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function Ln() {
|
|
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 q = 2, st = 4, Nt = 8, Dn = 1 << 24, he = 16, ve = 32, xe = 64, xr = 128, jr = 256, pe = 512, V = 1024, L = 2048, ue = 4096, le = 8192, te = 16384, Ye = 32768, wr = 1 << 25, at = 65536, zt = 1 << 17, cs = 1 << 18, ze = 1 << 19, Un = 1 << 20, qt = 1 << 21, rt = 1 << 22, Ie = 1 << 23, hr = Symbol("$state"), Fn = Symbol("component"), ds = Symbol("legacy props"), ps = Symbol("attributes"), vs = Symbol("class"), ms = Symbol("style"), Sr = Symbol("text"), Pt = new class extends Error {
|
|
23
23
|
name = "StaleReactionError";
|
|
24
24
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
25
25
|
}(), rr = 3, nr = 8;
|
|
@@ -32,45 +32,45 @@ function ir(e) {
|
|
|
32
32
|
function bs() {
|
|
33
33
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
34
34
|
}
|
|
35
|
-
let
|
|
35
|
+
let D = !1;
|
|
36
36
|
function et(e) {
|
|
37
|
-
|
|
37
|
+
D = e;
|
|
38
38
|
}
|
|
39
39
|
let M;
|
|
40
40
|
function me(e) {
|
|
41
41
|
if (e === null)
|
|
42
|
-
throw ir(),
|
|
42
|
+
throw ir(), nt;
|
|
43
43
|
return M = e;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Vr() {
|
|
46
46
|
return me(/* @__PURE__ */ Ne(M));
|
|
47
47
|
}
|
|
48
48
|
function Tr(e) {
|
|
49
|
-
if (
|
|
49
|
+
if (D) {
|
|
50
50
|
if (/* @__PURE__ */ Ne(M) !== null)
|
|
51
|
-
throw ir(),
|
|
51
|
+
throw ir(), nt;
|
|
52
52
|
M = e;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
function gs(e = 1) {
|
|
56
|
-
if (
|
|
56
|
+
if (D) {
|
|
57
57
|
for (var t = e, r = M; t--; )
|
|
58
58
|
r = /** @type {TemplateNode} */
|
|
59
59
|
/* @__PURE__ */ Ne(r);
|
|
60
60
|
M = r;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Gn(e = !0) {
|
|
64
64
|
for (var t = 0, r = M; ; ) {
|
|
65
65
|
if (r.nodeType === nr) {
|
|
66
66
|
var n = (
|
|
67
67
|
/** @type {Comment} */
|
|
68
68
|
r.data
|
|
69
69
|
);
|
|
70
|
-
if (n ===
|
|
70
|
+
if (n === Cn) {
|
|
71
71
|
if (t === 0) return r;
|
|
72
72
|
t -= 1;
|
|
73
|
-
} else (n ===
|
|
73
|
+
} else (n === Pn || n === kn || // "[1", "[2", etc. for if blocks
|
|
74
74
|
n[0] === "[" && !isNaN(Number(n.slice(1)))) && (t += 1);
|
|
75
75
|
}
|
|
76
76
|
var i = (
|
|
@@ -82,20 +82,20 @@ function Fn(e = !0) {
|
|
|
82
82
|
}
|
|
83
83
|
function ys(e) {
|
|
84
84
|
if (!e || e.nodeType !== nr)
|
|
85
|
-
throw ir(),
|
|
85
|
+
throw ir(), nt;
|
|
86
86
|
return (
|
|
87
87
|
/** @type {Comment} */
|
|
88
88
|
e.data
|
|
89
89
|
);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function jn(e) {
|
|
92
92
|
return e === this.v;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function Vn(e, t) {
|
|
95
95
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
96
96
|
}
|
|
97
97
|
function Es(e) {
|
|
98
|
-
return !
|
|
98
|
+
return !Vn(e, this.v);
|
|
99
99
|
}
|
|
100
100
|
function xs() {
|
|
101
101
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
@@ -127,13 +127,13 @@ function Ms() {
|
|
|
127
127
|
function Bs() {
|
|
128
128
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
129
129
|
}
|
|
130
|
-
let Ns = !1,
|
|
131
|
-
function
|
|
132
|
-
|
|
130
|
+
let Ns = !1, re = null;
|
|
131
|
+
function ot(e) {
|
|
132
|
+
re = e;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
|
|
136
|
-
p:
|
|
134
|
+
function Xr(e, t = !1, r) {
|
|
135
|
+
re = {
|
|
136
|
+
p: re,
|
|
137
137
|
i: !1,
|
|
138
138
|
c: null,
|
|
139
139
|
e: null,
|
|
@@ -141,184 +141,59 @@ function Vr(e, t = !1, r) {
|
|
|
141
141
|
x: null,
|
|
142
142
|
r: (
|
|
143
143
|
/** @type {Effect} */
|
|
144
|
-
|
|
144
|
+
H
|
|
145
145
|
),
|
|
146
146
|
l: null
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function Wr(e) {
|
|
150
150
|
var t = (
|
|
151
151
|
/** @type {ComponentContext} */
|
|
152
|
-
|
|
152
|
+
re
|
|
153
153
|
), r = t.e;
|
|
154
154
|
if (r !== null) {
|
|
155
155
|
t.e = null;
|
|
156
156
|
for (var n of r)
|
|
157
157
|
li(n);
|
|
158
158
|
}
|
|
159
|
-
return e !== void 0 && (t.x = e), t.i = !0,
|
|
159
|
+
return e !== void 0 && (t.x = e), t.i = !0, re = t.p, Xn(e);
|
|
160
160
|
}
|
|
161
|
-
function
|
|
162
|
-
return
|
|
161
|
+
function Xn(e = {}) {
|
|
162
|
+
return it(e, Fn, { value: !0 }), e;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function Wn() {
|
|
165
165
|
return !0;
|
|
166
166
|
}
|
|
167
|
-
let
|
|
168
|
-
function
|
|
169
|
-
var e =
|
|
170
|
-
|
|
167
|
+
let Ge = [];
|
|
168
|
+
function Yn() {
|
|
169
|
+
var e = Ge;
|
|
170
|
+
Ge = [], In(e);
|
|
171
171
|
}
|
|
172
|
-
function
|
|
173
|
-
if (
|
|
174
|
-
var t =
|
|
172
|
+
function je(e) {
|
|
173
|
+
if (Ge.length === 0 && !St) {
|
|
174
|
+
var t = Ge;
|
|
175
175
|
queueMicrotask(() => {
|
|
176
|
-
t ===
|
|
176
|
+
t === Ge && Yn();
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
|
-
|
|
179
|
+
Ge.push(e);
|
|
180
180
|
}
|
|
181
181
|
function Ps() {
|
|
182
|
-
for (;
|
|
183
|
-
|
|
182
|
+
for (; Ge.length > 0; )
|
|
183
|
+
Yn();
|
|
184
184
|
}
|
|
185
185
|
const ks = -7169;
|
|
186
186
|
function C(e, t) {
|
|
187
187
|
e.f = e.f & ks | t;
|
|
188
188
|
}
|
|
189
|
-
function
|
|
190
|
-
e.f &
|
|
191
|
-
}
|
|
192
|
-
function Yn(e) {
|
|
193
|
-
if (e !== null)
|
|
194
|
-
for (const t of e)
|
|
195
|
-
!(t.f & Y) || !(t.f & Xe) || (t.f ^= Xe, Yn(
|
|
196
|
-
/** @type {Derived} */
|
|
197
|
-
t.deps
|
|
198
|
-
));
|
|
189
|
+
function Yr(e) {
|
|
190
|
+
e.f & pe || e.deps === null ? C(e, V) : C(e, ue);
|
|
199
191
|
}
|
|
200
192
|
function zn(e, t, r) {
|
|
201
|
-
e.f &
|
|
202
|
-
}
|
|
203
|
-
function Yr(e, t, r) {
|
|
204
|
-
if (e == null)
|
|
205
|
-
return t(void 0), r && r(void 0), $e;
|
|
206
|
-
const n = Si(
|
|
207
|
-
() => e.subscribe(
|
|
208
|
-
t,
|
|
209
|
-
// @ts-expect-error
|
|
210
|
-
r
|
|
211
|
-
)
|
|
212
|
-
);
|
|
213
|
-
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
214
|
-
}
|
|
215
|
-
const Qe = [];
|
|
216
|
-
function Cs(e, t) {
|
|
217
|
-
return {
|
|
218
|
-
subscribe: sr(e, t).subscribe
|
|
219
|
-
};
|
|
220
|
-
}
|
|
221
|
-
function sr(e, t = $e) {
|
|
222
|
-
let r = null;
|
|
223
|
-
const n = /* @__PURE__ */ new Set();
|
|
224
|
-
function i(a) {
|
|
225
|
-
if (jn(e, a) && (e = a, r)) {
|
|
226
|
-
const u = !Qe.length;
|
|
227
|
-
for (const l of n)
|
|
228
|
-
l[1](), Qe.push(l, e);
|
|
229
|
-
if (u) {
|
|
230
|
-
for (let l = 0; l < Qe.length; l += 2)
|
|
231
|
-
Qe[l][0](Qe[l + 1]);
|
|
232
|
-
Qe.length = 0;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
function s(a) {
|
|
237
|
-
i(a(
|
|
238
|
-
/** @type {T} */
|
|
239
|
-
e
|
|
240
|
-
));
|
|
241
|
-
}
|
|
242
|
-
function o(a, u = $e) {
|
|
243
|
-
const l = [a, u];
|
|
244
|
-
return n.add(l), n.size === 1 && (r = t(i, s) || $e), a(
|
|
245
|
-
/** @type {T} */
|
|
246
|
-
e
|
|
247
|
-
), () => {
|
|
248
|
-
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
249
|
-
};
|
|
250
|
-
}
|
|
251
|
-
return { set: i, update: s, subscribe: o };
|
|
193
|
+
e.f & L ? t.add(e) : e.f & ue && r.add(e), C(e, V);
|
|
252
194
|
}
|
|
253
|
-
function
|
|
254
|
-
|
|
255
|
-
if (!i.every(Boolean))
|
|
256
|
-
throw new Error("derived() expects stores as input, got a falsy value");
|
|
257
|
-
const s = t.length < 2;
|
|
258
|
-
return Cs(r, (o, a) => {
|
|
259
|
-
let u = !1;
|
|
260
|
-
const l = [];
|
|
261
|
-
let f = 0, h = $e;
|
|
262
|
-
const c = () => {
|
|
263
|
-
if (f)
|
|
264
|
-
return;
|
|
265
|
-
h();
|
|
266
|
-
const p = t(n ? l[0] : l, o, a);
|
|
267
|
-
s ? o(p) : h = typeof p == "function" ? p : $e;
|
|
268
|
-
}, d = i.map(
|
|
269
|
-
(p, S) => Yr(
|
|
270
|
-
p,
|
|
271
|
-
(P) => {
|
|
272
|
-
l[S] = P, f &= ~(1 << S), u && c();
|
|
273
|
-
},
|
|
274
|
-
() => {
|
|
275
|
-
f |= 1 << S;
|
|
276
|
-
}
|
|
277
|
-
)
|
|
278
|
-
);
|
|
279
|
-
return u = !0, c(), function() {
|
|
280
|
-
Rn(d), h(), u = !1;
|
|
281
|
-
};
|
|
282
|
-
});
|
|
283
|
-
}
|
|
284
|
-
function Rs(e) {
|
|
285
|
-
let t;
|
|
286
|
-
return Yr(e, (r) => t = r)(), t;
|
|
287
|
-
}
|
|
288
|
-
let Hr = Symbol("unmounted");
|
|
289
|
-
function Is(e, t, r) {
|
|
290
|
-
const n = r[t] ??= {
|
|
291
|
-
store: null,
|
|
292
|
-
source: /* @__PURE__ */ ri(void 0),
|
|
293
|
-
unsubscribe: $e
|
|
294
|
-
};
|
|
295
|
-
if (n.store !== e && !(Hr in r))
|
|
296
|
-
if (n.unsubscribe(), n.store = e ?? null, e == null)
|
|
297
|
-
n.source.v = void 0, n.unsubscribe = $e;
|
|
298
|
-
else {
|
|
299
|
-
var i = !0;
|
|
300
|
-
n.unsubscribe = Yr(e, (s) => {
|
|
301
|
-
i ? n.source.v = s : z(n.source, s);
|
|
302
|
-
}), i = !1;
|
|
303
|
-
}
|
|
304
|
-
return e && Hr in r ? Rs(e) : O(n.source);
|
|
305
|
-
}
|
|
306
|
-
function Ls() {
|
|
307
|
-
const e = {};
|
|
308
|
-
function t() {
|
|
309
|
-
ui(() => {
|
|
310
|
-
for (var r in e)
|
|
311
|
-
e[r].unsubscribe();
|
|
312
|
-
st(e, Hr, {
|
|
313
|
-
enumerable: !1,
|
|
314
|
-
value: !0
|
|
315
|
-
});
|
|
316
|
-
});
|
|
317
|
-
}
|
|
318
|
-
return [e, t];
|
|
319
|
-
}
|
|
320
|
-
function ar(e) {
|
|
321
|
-
var t = H, r = w;
|
|
195
|
+
function sr(e) {
|
|
196
|
+
var t = T, r = H;
|
|
322
197
|
fe(null), we(null);
|
|
323
198
|
try {
|
|
324
199
|
return e();
|
|
@@ -326,7 +201,7 @@ function ar(e) {
|
|
|
326
201
|
fe(t), we(r);
|
|
327
202
|
}
|
|
328
203
|
}
|
|
329
|
-
function
|
|
204
|
+
function Cs(e, t, r, n) {
|
|
330
205
|
const i = zr;
|
|
331
206
|
var s = e.filter((d) => !d.settled), o = t.map(i);
|
|
332
207
|
if (r.length === 0 && s.length === 0) {
|
|
@@ -335,10 +210,10 @@ function Ds(e, t, r, n) {
|
|
|
335
210
|
}
|
|
336
211
|
var a = (
|
|
337
212
|
/** @type {Effect} */
|
|
338
|
-
|
|
339
|
-
), u =
|
|
213
|
+
H
|
|
214
|
+
), u = Rs(), l = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((d) => d.promise)) : null;
|
|
340
215
|
function f(d) {
|
|
341
|
-
if (!(a.f &
|
|
216
|
+
if (!(a.f & te)) {
|
|
342
217
|
u();
|
|
343
218
|
try {
|
|
344
219
|
n([...o, ...d]);
|
|
@@ -354,31 +229,31 @@ function Ds(e, t, r, n) {
|
|
|
354
229
|
return;
|
|
355
230
|
}
|
|
356
231
|
function c() {
|
|
357
|
-
Promise.all(r.map((d) => /* @__PURE__ */
|
|
232
|
+
Promise.all(r.map((d) => /* @__PURE__ */ Is(d))).then(f).catch((d) => be(d, a)).finally(h);
|
|
358
233
|
}
|
|
359
234
|
l ? l.then(() => {
|
|
360
235
|
u(), c(), Zt();
|
|
361
236
|
}) : c();
|
|
362
237
|
}
|
|
363
|
-
function
|
|
238
|
+
function Rs() {
|
|
364
239
|
var e = (
|
|
365
240
|
/** @type {Effect} */
|
|
366
|
-
|
|
367
|
-
), t =
|
|
241
|
+
H
|
|
242
|
+
), t = T, r = re, n = (
|
|
368
243
|
/** @type {Batch} */
|
|
369
244
|
$
|
|
370
245
|
);
|
|
371
246
|
return function(s = !0) {
|
|
372
|
-
we(e), fe(t),
|
|
247
|
+
we(e), fe(t), ot(r), s && !(e.f & te) && (n?.activate(), n?.apply());
|
|
373
248
|
};
|
|
374
249
|
}
|
|
375
250
|
function Zt(e = !0) {
|
|
376
|
-
we(null), fe(null),
|
|
251
|
+
we(null), fe(null), ot(null), e && $?.deactivate();
|
|
377
252
|
}
|
|
378
253
|
function qn() {
|
|
379
254
|
var e = (
|
|
380
255
|
/** @type {Effect} */
|
|
381
|
-
|
|
256
|
+
H
|
|
382
257
|
), t = e.b, r = (
|
|
383
258
|
/** @type {Batch} */
|
|
384
259
|
$
|
|
@@ -389,12 +264,12 @@ function qn() {
|
|
|
389
264
|
}
|
|
390
265
|
// @__NO_SIDE_EFFECTS__
|
|
391
266
|
function zr(e) {
|
|
392
|
-
var t =
|
|
393
|
-
return
|
|
394
|
-
ctx:
|
|
267
|
+
var t = q | L;
|
|
268
|
+
return H !== null && (H.f |= ze), {
|
|
269
|
+
ctx: re,
|
|
395
270
|
deps: null,
|
|
396
271
|
effects: null,
|
|
397
|
-
equals:
|
|
272
|
+
equals: jn,
|
|
398
273
|
f: t,
|
|
399
274
|
fn: e,
|
|
400
275
|
reactions: null,
|
|
@@ -404,16 +279,16 @@ function zr(e) {
|
|
|
404
279
|
j
|
|
405
280
|
),
|
|
406
281
|
wv: 0,
|
|
407
|
-
parent:
|
|
282
|
+
parent: H,
|
|
408
283
|
ac: null
|
|
409
284
|
};
|
|
410
285
|
}
|
|
411
|
-
const
|
|
286
|
+
const Et = Symbol("obsolete");
|
|
412
287
|
// @__NO_SIDE_EFFECTS__
|
|
413
|
-
function
|
|
288
|
+
function Is(e, t, r) {
|
|
414
289
|
let n = (
|
|
415
290
|
/** @type {Effect | null} */
|
|
416
|
-
|
|
291
|
+
H
|
|
417
292
|
);
|
|
418
293
|
n === null && xs();
|
|
419
294
|
var i = (
|
|
@@ -423,12 +298,12 @@ function Fs(e, t, r) {
|
|
|
423
298
|
), s = kt(
|
|
424
299
|
/** @type {V} */
|
|
425
300
|
j
|
|
426
|
-
), o = !
|
|
427
|
-
return
|
|
301
|
+
), o = !T, a = /* @__PURE__ */ new Set();
|
|
302
|
+
return Ks(() => {
|
|
428
303
|
var u = (
|
|
429
304
|
/** @type {Effect} */
|
|
430
|
-
|
|
431
|
-
), l =
|
|
305
|
+
H
|
|
306
|
+
), l = Ln();
|
|
432
307
|
i = l.promise;
|
|
433
308
|
try {
|
|
434
309
|
Promise.resolve(e()).then(l.resolve, (d) => {
|
|
@@ -448,19 +323,19 @@ function Fs(e, t, r) {
|
|
|
448
323
|
// boundary can be null if the async derived is inside an $effect.root not connected to the component render tree
|
|
449
324
|
n.b?.is_rendered()
|
|
450
325
|
)
|
|
451
|
-
f.async_deriveds.get(u)?.reject(
|
|
326
|
+
f.async_deriveds.get(u)?.reject(Et);
|
|
452
327
|
else
|
|
453
328
|
for (const d of a.values())
|
|
454
|
-
d.reject(
|
|
329
|
+
d.reject(Et);
|
|
455
330
|
a.add(l), f.async_deriveds.set(u, l);
|
|
456
331
|
}
|
|
457
332
|
const c = (d, p = void 0) => {
|
|
458
|
-
h?.(), a.delete(l), p !==
|
|
333
|
+
h?.(), a.delete(l), p !== Et && (f.activate(), p ? (s.f |= Ie, Qt(s, p)) : (s.f & Ie && (s.f ^= Ie), Qt(s, d)), f.deactivate());
|
|
459
334
|
};
|
|
460
335
|
l.promise.then(c, (d) => c(null, d || "unknown"));
|
|
461
336
|
}), ui(() => {
|
|
462
337
|
for (const u of a)
|
|
463
|
-
u.reject(
|
|
338
|
+
u.reject(Et);
|
|
464
339
|
}), new Promise((u) => {
|
|
465
340
|
function l(f) {
|
|
466
341
|
function h() {
|
|
@@ -476,25 +351,25 @@ function It(e) {
|
|
|
476
351
|
const t = /* @__PURE__ */ zr(e);
|
|
477
352
|
return _i(t), t;
|
|
478
353
|
}
|
|
479
|
-
function
|
|
354
|
+
function Ls(e) {
|
|
480
355
|
var t = e.effects;
|
|
481
356
|
if (t !== null) {
|
|
482
357
|
e.effects = null;
|
|
483
358
|
for (var r = 0; r < t.length; r += 1)
|
|
484
|
-
|
|
359
|
+
ne(
|
|
485
360
|
/** @type {Effect} */
|
|
486
361
|
t[r]
|
|
487
362
|
);
|
|
488
363
|
}
|
|
489
364
|
}
|
|
490
365
|
function qr(e) {
|
|
491
|
-
var t, r =
|
|
366
|
+
var t, r = H, n = e.parent;
|
|
492
367
|
if (!Be && n !== null && e.v !== j && // if it was never evaluated before, it's guaranteed to fail downstream, so we try to execute instead
|
|
493
|
-
n.f & (
|
|
368
|
+
n.f & (te | le))
|
|
494
369
|
return _s(), e.v;
|
|
495
370
|
we(n);
|
|
496
371
|
try {
|
|
497
|
-
|
|
372
|
+
Ls(e), t = Ei(e);
|
|
498
373
|
} finally {
|
|
499
374
|
we(r);
|
|
500
375
|
}
|
|
@@ -502,29 +377,29 @@ function qr(e) {
|
|
|
502
377
|
}
|
|
503
378
|
function Zn(e) {
|
|
504
379
|
var t = qr(e);
|
|
505
|
-
if (!e.equals(t) && (e.wv = gi(), (!$?.is_fork || e.deps === null) && ($ !== null ? ($.capture(e, t, !0),
|
|
380
|
+
if (!e.equals(t) && (e.wv = gi(), (!$?.is_fork || e.deps === null) && ($ !== null ? ($.capture(e, t, !0), Hr?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
|
|
506
381
|
C(e, V);
|
|
507
382
|
return;
|
|
508
383
|
}
|
|
509
|
-
Be || (ce !== null ? (en() || $?.is_fork) && ce.set(e, t) :
|
|
384
|
+
Be || (ce !== null ? (en() || $?.is_fork) && ce.set(e, t) : Yr(e));
|
|
510
385
|
}
|
|
511
|
-
function
|
|
386
|
+
function Ds(e) {
|
|
512
387
|
if (e.effects !== null)
|
|
513
388
|
for (const t of e.effects)
|
|
514
|
-
(t.teardown || t.ac) && (t.teardown?.(), t.ac !== null &&
|
|
389
|
+
(t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && sr(() => {
|
|
515
390
|
t.ac.abort(Pt), t.ac = null;
|
|
516
391
|
}), t.fn !== null && (t.teardown = $e), $t(t, 0), tn(t));
|
|
517
392
|
}
|
|
518
393
|
function Jn(e) {
|
|
519
394
|
if (e.effects !== null)
|
|
520
395
|
for (const t of e.effects)
|
|
521
|
-
t.teardown && t.fn !== null &&
|
|
396
|
+
t.teardown && t.fn !== null && lt(t);
|
|
522
397
|
}
|
|
523
|
-
let cr = null,
|
|
524
|
-
var
|
|
525
|
-
let
|
|
398
|
+
let cr = null, Qe = null, $ = null, Hr = null, ce = null, Ar = null, St = !1, dr = !1, Tt = null, Ut = null;
|
|
399
|
+
var un = 0;
|
|
400
|
+
let Us = 1;
|
|
526
401
|
class Oe {
|
|
527
|
-
id =
|
|
402
|
+
id = Us++;
|
|
528
403
|
/** True as soon as `#process` was called */
|
|
529
404
|
#e = !1;
|
|
530
405
|
linked = !0;
|
|
@@ -574,7 +449,14 @@ class Oe {
|
|
|
574
449
|
*/
|
|
575
450
|
#o = null;
|
|
576
451
|
/**
|
|
577
|
-
*
|
|
452
|
+
* Effects that were scheduled in this batch but not yet 'resolved' into the
|
|
453
|
+
* root effects that need to be flushed. Resolving — the upwards traversal that
|
|
454
|
+
* marks the path to each effect on the shared effect tree (see #resolve) — is
|
|
455
|
+
* deferred until the batch is processed, so that the markers are created and
|
|
456
|
+
* consumed within a single traversal. Scheduling into other batches (which can
|
|
457
|
+
* happen concurrently, e.g. while a batch is committed) can therefore never
|
|
458
|
+
* observe (and be confused by) this batch's markers.
|
|
459
|
+
* May contain duplicates — deduplication happens during resolving
|
|
578
460
|
* @type {Effect[]}
|
|
579
461
|
*/
|
|
580
462
|
#s = [];
|
|
@@ -582,7 +464,7 @@ class Oe {
|
|
|
582
464
|
* Effects created while this batch was active.
|
|
583
465
|
* @type {Effect[]}
|
|
584
466
|
*/
|
|
585
|
-
#
|
|
467
|
+
#p = [];
|
|
586
468
|
/**
|
|
587
469
|
* Deferred effects (which run after async work has completed) that are DIRTY
|
|
588
470
|
* @type {Set<Effect>}
|
|
@@ -609,7 +491,7 @@ class Oe {
|
|
|
609
491
|
is_fork = !1;
|
|
610
492
|
#h = !1;
|
|
611
493
|
constructor() {
|
|
612
|
-
|
|
494
|
+
Qe === null ? cr = Qe = this : (Qe.#r = this, this.#t = Qe), Qe = this;
|
|
613
495
|
}
|
|
614
496
|
#g() {
|
|
615
497
|
if (this.is_fork) return !0;
|
|
@@ -644,60 +526,90 @@ class Oe {
|
|
|
644
526
|
if (n) {
|
|
645
527
|
this.#c.delete(t);
|
|
646
528
|
for (var i of n.d)
|
|
647
|
-
C(i,
|
|
529
|
+
C(i, L), r(i);
|
|
648
530
|
for (i of n.m)
|
|
649
|
-
C(i,
|
|
531
|
+
C(i, ue), r(i);
|
|
650
532
|
}
|
|
651
533
|
this.#m.add(t);
|
|
652
534
|
}
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
535
|
+
/**
|
|
536
|
+
* Convert the effects that were scheduled in this batch into the root effects
|
|
537
|
+
* that need to be traversed, marking the path to each effect (by clearing the
|
|
538
|
+
* `CLEAN` flag on ancestor branches) so that the traversal can find them.
|
|
539
|
+
* This happens right before traversal rather than at scheduling time, so that
|
|
540
|
+
* the markers left on the (shared) effect tree are created and consumed within
|
|
541
|
+
* a single traversal — scheduling into other batches can never observe them
|
|
542
|
+
* @returns {Effect[]}
|
|
543
|
+
*/
|
|
544
|
+
#y() {
|
|
545
|
+
var t = [];
|
|
546
|
+
for (const s of this.#s)
|
|
547
|
+
if (!(s.f & te || !(s.f & (L | ue)))) {
|
|
548
|
+
for (var r = s, n = !1; r.parent !== null; ) {
|
|
549
|
+
r = r.parent;
|
|
550
|
+
var i = r.f;
|
|
551
|
+
if (i & (xe | ve)) {
|
|
552
|
+
if (!(i & V)) {
|
|
553
|
+
n = !0;
|
|
554
|
+
break;
|
|
555
|
+
}
|
|
556
|
+
r.f ^= V;
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
n || t.push(r);
|
|
667
560
|
}
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
561
|
+
return this.#s = [], t;
|
|
562
|
+
}
|
|
563
|
+
#_() {
|
|
564
|
+
this.#e = !0;
|
|
565
|
+
for (const a of this.#l)
|
|
566
|
+
this.#f.delete(a), C(a, L), this.schedule(a);
|
|
567
|
+
for (const a of this.#f)
|
|
568
|
+
C(a, ue), this.schedule(a);
|
|
569
|
+
this.apply();
|
|
570
|
+
for (var t = Tt = [], r = [], n = Ut = []; this.#s.length > 0; ) {
|
|
571
|
+
un++ > 1e3 && (this.#v(), Fs());
|
|
572
|
+
for (const a of this.#y())
|
|
573
|
+
try {
|
|
574
|
+
this.#b(a, t, r);
|
|
575
|
+
} catch (u) {
|
|
576
|
+
throw ei(a), this.#g() || this.discard(), u;
|
|
577
|
+
}
|
|
672
578
|
}
|
|
673
|
-
if (
|
|
674
|
-
|
|
675
|
-
for (const
|
|
676
|
-
|
|
677
|
-
|
|
579
|
+
if ($ = null, n.length > 0) {
|
|
580
|
+
var i = Oe.ensure();
|
|
581
|
+
for (const a of n)
|
|
582
|
+
i.schedule(a);
|
|
583
|
+
}
|
|
584
|
+
if (Tt = null, Ut = null, this.#g()) {
|
|
585
|
+
this.#d(r), this.#d(t);
|
|
586
|
+
for (const [a, u] of this.#c)
|
|
587
|
+
Kn(a, u);
|
|
588
|
+
n.length > 0 && /** @type {unknown} */
|
|
678
589
|
$.#_();
|
|
679
590
|
return;
|
|
680
591
|
}
|
|
681
|
-
const
|
|
682
|
-
if (
|
|
683
|
-
this.#d(
|
|
592
|
+
const s = this.#w();
|
|
593
|
+
if (s) {
|
|
594
|
+
this.#d(r), this.#d(t), s.#E(this);
|
|
684
595
|
return;
|
|
685
596
|
}
|
|
686
597
|
this.#l.clear(), this.#f.clear();
|
|
687
|
-
for (const
|
|
688
|
-
this.#u.clear(),
|
|
689
|
-
var
|
|
598
|
+
for (const a of this.#u) a(this);
|
|
599
|
+
this.#u.clear(), Hr = this, ln(r), ln(t), Hr = null, this.#o?.resolve();
|
|
600
|
+
var o = (
|
|
690
601
|
/** @type {Batch | null} */
|
|
691
602
|
/** @type {unknown} */
|
|
692
603
|
$
|
|
693
604
|
);
|
|
694
|
-
if (this.#a === 0 && (this.#s.length === 0 ||
|
|
695
|
-
if (
|
|
696
|
-
const
|
|
697
|
-
|
|
605
|
+
if (this.#a === 0 && (this.#s.length === 0 || o !== null) && this.#v(), this.#s.length > 0)
|
|
606
|
+
if (o !== null) {
|
|
607
|
+
for (const a of this.#s)
|
|
608
|
+
o.#s.push(a);
|
|
609
|
+
this.#s = [];
|
|
698
610
|
} else
|
|
699
|
-
|
|
700
|
-
|
|
611
|
+
o = this;
|
|
612
|
+
o !== null && (ye.clear(), o.#_());
|
|
701
613
|
}
|
|
702
614
|
/**
|
|
703
615
|
* Traverse the effect tree, executing effects or stashing
|
|
@@ -706,12 +618,12 @@ class Oe {
|
|
|
706
618
|
* @param {Effect[]} effects
|
|
707
619
|
* @param {Effect[]} render_effects
|
|
708
620
|
*/
|
|
709
|
-
#
|
|
621
|
+
#b(t, r, n) {
|
|
710
622
|
t.f ^= V;
|
|
711
623
|
for (var i = t.first; i !== null; ) {
|
|
712
624
|
var s = i.f, o = (s & (ve | xe)) !== 0, a = o && (s & V) !== 0, u = a || (s & le) !== 0 || this.#c.has(i);
|
|
713
625
|
if (!u && i.fn !== null) {
|
|
714
|
-
o ? i.f ^= V : s &
|
|
626
|
+
o ? i.f ^= V : s & st ? r.push(i) : Ct(i) && (s & he && this.#f.add(i), lt(i));
|
|
715
627
|
var l = i.first;
|
|
716
628
|
if (l !== null) {
|
|
717
629
|
i = l;
|
|
@@ -728,7 +640,7 @@ class Oe {
|
|
|
728
640
|
}
|
|
729
641
|
}
|
|
730
642
|
}
|
|
731
|
-
#
|
|
643
|
+
#w() {
|
|
732
644
|
for (var t = this.#t; t !== null; ) {
|
|
733
645
|
if (!t.is_fork) {
|
|
734
646
|
for (const [r, [, n]] of this.current)
|
|
@@ -742,7 +654,7 @@ class Oe {
|
|
|
742
654
|
/**
|
|
743
655
|
* @param {Batch} batch
|
|
744
656
|
*/
|
|
745
|
-
#
|
|
657
|
+
#E(t) {
|
|
746
658
|
for (const [n, i] of t.current)
|
|
747
659
|
!this.previous.has(n) && t.previous.has(n) && this.previous.set(n, t.previous.get(n)), this.current.set(n, i);
|
|
748
660
|
for (const [n, i] of t.async_deriveds) {
|
|
@@ -752,10 +664,10 @@ class Oe {
|
|
|
752
664
|
t.async_deriveds.clear(), this.transfer_effects(t.#l, t.#f);
|
|
753
665
|
const r = (n) => {
|
|
754
666
|
var i = n.reactions;
|
|
755
|
-
if (i !== null && !(n.f &
|
|
667
|
+
if (i !== null && !(n.f & q && !(n.f & (L | ue))))
|
|
756
668
|
for (const a of i) {
|
|
757
669
|
var s = a.f;
|
|
758
|
-
if (s &
|
|
670
|
+
if (s & q)
|
|
759
671
|
r(
|
|
760
672
|
/** @type {Derived} */
|
|
761
673
|
a
|
|
@@ -765,13 +677,13 @@ class Oe {
|
|
|
765
677
|
/** @type {Effect} */
|
|
766
678
|
a
|
|
767
679
|
);
|
|
768
|
-
s & (
|
|
680
|
+
s & (rt | he) && !this.async_deriveds.has(o) && (this.#f.delete(o), C(o, L), this.schedule(o));
|
|
769
681
|
}
|
|
770
682
|
}
|
|
771
683
|
};
|
|
772
684
|
for (const n of this.current.keys())
|
|
773
685
|
r(n);
|
|
774
|
-
this.oncommit(() => t.discard()), t.#
|
|
686
|
+
this.oncommit(() => t.discard()), t.#v(), $ = this, this.#_();
|
|
775
687
|
}
|
|
776
688
|
/**
|
|
777
689
|
* @param {Effect[]} effects
|
|
@@ -800,23 +712,23 @@ class Oe {
|
|
|
800
712
|
try {
|
|
801
713
|
dr = !0, $ = this, this.#_();
|
|
802
714
|
} finally {
|
|
803
|
-
|
|
715
|
+
un = 0, Ar = null, Tt = null, Ut = null, dr = !1, $ = null, ce = null, ye.clear();
|
|
804
716
|
}
|
|
805
717
|
}
|
|
806
718
|
discard() {
|
|
807
719
|
for (const t of this.#i) t(this);
|
|
808
720
|
this.#i.clear();
|
|
809
721
|
for (const t of this.async_deriveds.values())
|
|
810
|
-
t.reject(
|
|
811
|
-
this.#
|
|
722
|
+
t.reject(Et);
|
|
723
|
+
this.#v(), this.#o?.resolve();
|
|
812
724
|
}
|
|
813
725
|
/**
|
|
814
726
|
* @param {Effect} effect
|
|
815
727
|
*/
|
|
816
728
|
register_created_effect(t) {
|
|
817
|
-
this.#
|
|
729
|
+
this.#p.push(t);
|
|
818
730
|
}
|
|
819
|
-
#
|
|
731
|
+
#x() {
|
|
820
732
|
for (let h = cr; h !== null; h = h.#r) {
|
|
821
733
|
var t = h.id < this.id, r = [];
|
|
822
734
|
for (const [c, [d, p]] of this.current) {
|
|
@@ -849,7 +761,7 @@ class Oe {
|
|
|
849
761
|
if (t)
|
|
850
762
|
for (const c of this.#m)
|
|
851
763
|
h.unskip_effect(c, (d) => {
|
|
852
|
-
d.f & (he |
|
|
764
|
+
d.f & (he | rt) ? h.schedule(d) : h.#d([d]);
|
|
853
765
|
});
|
|
854
766
|
h.activate();
|
|
855
767
|
var o = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map();
|
|
@@ -861,13 +773,12 @@ class Oe {
|
|
|
861
773
|
return p ? p[0] !== d[0] || p[1] !== d[1] : !0;
|
|
862
774
|
}).map(([c]) => c);
|
|
863
775
|
if (l.length > 0)
|
|
864
|
-
for (const c of this.#
|
|
865
|
-
!(c.f & (
|
|
776
|
+
for (const c of this.#p)
|
|
777
|
+
!(c.f & (te | le | zt)) && Zr(c, l, a) && (c.f & (rt | he) ? (C(c, L), h.schedule(c)) : h.#l.add(c));
|
|
866
778
|
if (h.#s.length > 0 && !h.#h) {
|
|
867
779
|
h.apply();
|
|
868
|
-
for (var f of h.#
|
|
869
|
-
h.#
|
|
870
|
-
h.#s = [];
|
|
780
|
+
for (var f of h.#y())
|
|
781
|
+
h.#b(f, [], []);
|
|
871
782
|
}
|
|
872
783
|
h.deactivate();
|
|
873
784
|
}
|
|
@@ -893,7 +804,7 @@ class Oe {
|
|
|
893
804
|
let n = this.#n.get(r) ?? 0;
|
|
894
805
|
n === 1 ? this.#n.delete(r) : this.#n.set(r, n - 1);
|
|
895
806
|
}
|
|
896
|
-
this.#h || (this.#h = !0,
|
|
807
|
+
this.#h || (this.#h = !0, je(() => {
|
|
897
808
|
this.#h = !1, this.linked && this.flush();
|
|
898
809
|
}));
|
|
899
810
|
}
|
|
@@ -917,12 +828,12 @@ class Oe {
|
|
|
917
828
|
this.#i.add(t);
|
|
918
829
|
}
|
|
919
830
|
settled() {
|
|
920
|
-
return (this.#o ??=
|
|
831
|
+
return (this.#o ??= Ln()).promise;
|
|
921
832
|
}
|
|
922
833
|
static ensure() {
|
|
923
834
|
if ($ === null) {
|
|
924
835
|
const t = $ = new Oe();
|
|
925
|
-
!dr && !
|
|
836
|
+
!dr && !St && je(() => {
|
|
926
837
|
t.#e || t.flush();
|
|
927
838
|
});
|
|
928
839
|
}
|
|
@@ -939,33 +850,22 @@ class Oe {
|
|
|
939
850
|
* @param {Effect} effect
|
|
940
851
|
*/
|
|
941
852
|
schedule(t) {
|
|
942
|
-
if (
|
|
853
|
+
if (Ar = t, t.b?.is_pending && t.f & (st | Nt | Dn) && !(t.f & Ye)) {
|
|
943
854
|
t.b.defer_effect(t);
|
|
944
855
|
return;
|
|
945
856
|
}
|
|
946
|
-
|
|
947
|
-
r = r.parent;
|
|
948
|
-
var n = r.f;
|
|
949
|
-
if (tt !== null && r === w && (H === null || !(H.f & Y)))
|
|
950
|
-
return;
|
|
951
|
-
if (n & (xe | ve)) {
|
|
952
|
-
if (!(n & V))
|
|
953
|
-
return;
|
|
954
|
-
r.f ^= V;
|
|
955
|
-
}
|
|
956
|
-
}
|
|
957
|
-
this.#s.push(r);
|
|
857
|
+
this.#s.push(t);
|
|
958
858
|
}
|
|
959
|
-
#
|
|
859
|
+
#v() {
|
|
960
860
|
if (this.linked) {
|
|
961
861
|
var t = this.#t, r = this.#r;
|
|
962
|
-
t === null ? cr = r : t.#r = r, r === null ?
|
|
862
|
+
t === null ? cr = r : t.#r = r, r === null ? Qe = t : r.#t = t, this.linked = !1;
|
|
963
863
|
}
|
|
964
864
|
}
|
|
965
865
|
}
|
|
966
866
|
function Ae(e) {
|
|
967
|
-
var t =
|
|
968
|
-
|
|
867
|
+
var t = St;
|
|
868
|
+
St = !0;
|
|
969
869
|
try {
|
|
970
870
|
for (var r; ; ) {
|
|
971
871
|
if (Ps(), $ === null)
|
|
@@ -976,33 +876,33 @@ function Ae(e) {
|
|
|
976
876
|
$.flush();
|
|
977
877
|
}
|
|
978
878
|
} finally {
|
|
979
|
-
|
|
879
|
+
St = t;
|
|
980
880
|
}
|
|
981
881
|
}
|
|
982
|
-
function
|
|
882
|
+
function Fs() {
|
|
983
883
|
try {
|
|
984
884
|
Hs();
|
|
985
885
|
} catch (e) {
|
|
986
|
-
be(e,
|
|
886
|
+
be(e, Ar);
|
|
987
887
|
}
|
|
988
888
|
}
|
|
989
889
|
let Te = null;
|
|
990
|
-
function
|
|
890
|
+
function ln(e) {
|
|
991
891
|
var t = e.length;
|
|
992
892
|
if (t !== 0) {
|
|
993
893
|
for (var r = 0; r < t; ) {
|
|
994
894
|
var n = e[r++];
|
|
995
|
-
if (!(n.f & (
|
|
895
|
+
if (!(n.f & (te | le)) && Ct(n) && (Te = /* @__PURE__ */ new Set(), lt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && di(n), Te?.size > 0)) {
|
|
996
896
|
ye.clear();
|
|
997
897
|
for (const i of Te) {
|
|
998
|
-
if (i.f & (
|
|
898
|
+
if (i.f & (te | le)) continue;
|
|
999
899
|
const s = [i];
|
|
1000
900
|
let o = i.parent;
|
|
1001
901
|
for (; o !== null; )
|
|
1002
902
|
Te.has(o) && (Te.delete(o), s.push(o)), o = o.parent;
|
|
1003
903
|
for (let a = s.length - 1; a >= 0; a--) {
|
|
1004
904
|
const u = s[a];
|
|
1005
|
-
u.f & (
|
|
905
|
+
u.f & (te | le) || lt(u);
|
|
1006
906
|
}
|
|
1007
907
|
}
|
|
1008
908
|
Te.clear();
|
|
@@ -1015,13 +915,13 @@ function Qn(e, t, r, n) {
|
|
|
1015
915
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
1016
916
|
for (const i of e.reactions) {
|
|
1017
917
|
const s = i.f;
|
|
1018
|
-
s &
|
|
918
|
+
s & q ? Qn(
|
|
1019
919
|
/** @type {Derived} */
|
|
1020
920
|
i,
|
|
1021
921
|
t,
|
|
1022
922
|
r,
|
|
1023
923
|
n
|
|
1024
|
-
) : s & (
|
|
924
|
+
) : s & (rt | he) && !(s & L) && Zr(i, t, n) && (C(i, L), Jr(
|
|
1025
925
|
/** @type {Effect} */
|
|
1026
926
|
i
|
|
1027
927
|
));
|
|
@@ -1034,7 +934,7 @@ function Zr(e, t, r) {
|
|
|
1034
934
|
for (const i of e.deps) {
|
|
1035
935
|
if (Wt.call(t, i))
|
|
1036
936
|
return !0;
|
|
1037
|
-
if (i.f &
|
|
937
|
+
if (i.f & q && Zr(
|
|
1038
938
|
/** @type {Derived} */
|
|
1039
939
|
i,
|
|
1040
940
|
t,
|
|
@@ -1053,7 +953,7 @@ function Jr(e) {
|
|
|
1053
953
|
}
|
|
1054
954
|
function Kn(e, t) {
|
|
1055
955
|
if (!(e.f & ve && e.f & V)) {
|
|
1056
|
-
e.f &
|
|
956
|
+
e.f & L ? t.d.push(e) : e.f & ue && t.m.push(e), C(e, V);
|
|
1057
957
|
for (var r = e.first; r !== null; )
|
|
1058
958
|
Kn(r, t), r = r.next;
|
|
1059
959
|
}
|
|
@@ -1072,7 +972,7 @@ function kt(e, t) {
|
|
|
1072
972
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
1073
973
|
v: e,
|
|
1074
974
|
reactions: null,
|
|
1075
|
-
equals:
|
|
975
|
+
equals: jn,
|
|
1076
976
|
rv: 0,
|
|
1077
977
|
wv: 0
|
|
1078
978
|
};
|
|
@@ -1088,61 +988,67 @@ function ri(e, t = !1, r = !0) {
|
|
|
1088
988
|
const n = kt(e);
|
|
1089
989
|
return t || (n.equals = Es), n;
|
|
1090
990
|
}
|
|
1091
|
-
function
|
|
1092
|
-
|
|
991
|
+
function Y(e, t, r = !1) {
|
|
992
|
+
T !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
1093
993
|
// to ensure we error if state is set inside an inspect effect
|
|
1094
|
-
(!de ||
|
|
1095
|
-
let n = r ?
|
|
994
|
+
(!de || T.f & zt) && Wn() && T.f & (q | he | rt | zt) && (Ee === null || !Ee.has(e)) && Ms();
|
|
995
|
+
let n = r ? xt(t) : t;
|
|
1096
996
|
return Qt(e, n, Ut);
|
|
1097
997
|
}
|
|
998
|
+
var Fe = null, $r = 0;
|
|
1098
999
|
function Qt(e, t, r = null) {
|
|
1099
1000
|
if (!e.equals(t)) {
|
|
1100
1001
|
Be ? ye.set(e, t) : ye.has(e) || ye.set(e, e.v);
|
|
1101
1002
|
var n = Oe.ensure();
|
|
1102
|
-
if (n.capture(e, t), e.f &
|
|
1003
|
+
if (n.capture(e, t), e.f & q) {
|
|
1103
1004
|
const i = (
|
|
1104
1005
|
/** @type {Derived} */
|
|
1105
1006
|
e
|
|
1106
1007
|
);
|
|
1107
|
-
e.f &
|
|
1008
|
+
e.f & L && qr(i), ce === null && Yr(i);
|
|
1108
1009
|
}
|
|
1109
|
-
e.wv = gi(), ni(e,
|
|
1010
|
+
e.wv = gi(), Fe = null, $r = 0, ni(e, L, r), Fe = null, H !== null && H.f & V && !(H.f & (ve | xe)) && (ae === null ? na([e]) : ae.push(e)), !n.is_fork && Jt.size > 0 && !ti && Gs();
|
|
1110
1011
|
}
|
|
1111
1012
|
return t;
|
|
1112
1013
|
}
|
|
1113
|
-
function
|
|
1014
|
+
function Gs() {
|
|
1114
1015
|
ti = !1;
|
|
1115
1016
|
for (const e of Jt) {
|
|
1116
|
-
e.f & V && C(e,
|
|
1017
|
+
e.f & V && C(e, ue);
|
|
1117
1018
|
let t;
|
|
1118
1019
|
try {
|
|
1119
1020
|
t = Ct(e);
|
|
1120
1021
|
} catch {
|
|
1121
1022
|
t = !0;
|
|
1122
1023
|
}
|
|
1123
|
-
t &&
|
|
1024
|
+
t && lt(e);
|
|
1124
1025
|
}
|
|
1125
1026
|
Jt.clear();
|
|
1126
1027
|
}
|
|
1127
1028
|
function Ht(e) {
|
|
1128
|
-
|
|
1029
|
+
Y(e, e.v + 1);
|
|
1129
1030
|
}
|
|
1130
1031
|
function ni(e, t, r) {
|
|
1131
1032
|
var n = e.reactions;
|
|
1132
|
-
if (n !== null)
|
|
1133
|
-
|
|
1134
|
-
|
|
1033
|
+
if (n !== null) {
|
|
1034
|
+
var i = n.length;
|
|
1035
|
+
if ($r += i, $r > 1e5 && Fe === null && (Fe = /* @__PURE__ */ new Set()), Fe !== null) {
|
|
1036
|
+
if (Fe.has(e)) return;
|
|
1037
|
+
Fe.add(e);
|
|
1038
|
+
}
|
|
1039
|
+
for (var s = 0; s < i; s++) {
|
|
1040
|
+
var o = n[s], a = o.f, u = (a & L) === 0;
|
|
1135
1041
|
if (u && C(o, t), a & zt)
|
|
1136
1042
|
Jt.add(
|
|
1137
1043
|
/** @type {Effect} */
|
|
1138
1044
|
o
|
|
1139
1045
|
);
|
|
1140
|
-
else if (a &
|
|
1046
|
+
else if (a & q) {
|
|
1141
1047
|
var l = (
|
|
1142
1048
|
/** @type {Derived} */
|
|
1143
1049
|
o
|
|
1144
1050
|
);
|
|
1145
|
-
ce?.delete(l),
|
|
1051
|
+
ce?.delete(l), ni(l, ue, r);
|
|
1146
1052
|
} else if (u) {
|
|
1147
1053
|
var f = (
|
|
1148
1054
|
/** @type {Effect} */
|
|
@@ -1151,20 +1057,21 @@ function ni(e, t, r) {
|
|
|
1151
1057
|
a & he && Te !== null && Te.add(f), r !== null ? r.push(f) : Jr(f);
|
|
1152
1058
|
}
|
|
1153
1059
|
}
|
|
1060
|
+
}
|
|
1154
1061
|
}
|
|
1155
|
-
function
|
|
1156
|
-
if (typeof e != "object" || e === null || hr in e ||
|
|
1062
|
+
function xt(e) {
|
|
1063
|
+
if (typeof e != "object" || e === null || hr in e || Fn in e)
|
|
1157
1064
|
return e;
|
|
1158
1065
|
const t = hs(e);
|
|
1159
1066
|
if (t !== ls && t !== fs)
|
|
1160
1067
|
return e;
|
|
1161
|
-
var r = /* @__PURE__ */ new Map(), n = as(e), i = /* @__PURE__ */ oe(0), s =
|
|
1162
|
-
if (
|
|
1068
|
+
var r = /* @__PURE__ */ new Map(), n = as(e), i = /* @__PURE__ */ oe(0), s = Xe, o = (a) => {
|
|
1069
|
+
if (Xe === s)
|
|
1163
1070
|
return a();
|
|
1164
|
-
var u =
|
|
1165
|
-
fe(null),
|
|
1071
|
+
var u = T, l = Xe;
|
|
1072
|
+
fe(null), vn(s);
|
|
1166
1073
|
var f = a();
|
|
1167
|
-
return fe(u),
|
|
1074
|
+
return fe(u), vn(l), f;
|
|
1168
1075
|
};
|
|
1169
1076
|
return n && r.set("length", /* @__PURE__ */ oe(
|
|
1170
1077
|
/** @type {any[]} */
|
|
@@ -1179,7 +1086,7 @@ function wt(e) {
|
|
|
1179
1086
|
return f === void 0 ? o(() => {
|
|
1180
1087
|
var h = /* @__PURE__ */ oe(l.value);
|
|
1181
1088
|
return r.set(u, h), h;
|
|
1182
|
-
}) :
|
|
1089
|
+
}) : Y(f, l.value, !0), !0;
|
|
1183
1090
|
},
|
|
1184
1091
|
deleteProperty(a, u) {
|
|
1185
1092
|
var l = r.get(u);
|
|
@@ -1189,15 +1096,15 @@ function wt(e) {
|
|
|
1189
1096
|
r.set(u, f), Ht(i);
|
|
1190
1097
|
}
|
|
1191
1098
|
} else
|
|
1192
|
-
|
|
1099
|
+
Y(l, j), Ht(i);
|
|
1193
1100
|
return !0;
|
|
1194
1101
|
},
|
|
1195
1102
|
get(a, u, l) {
|
|
1196
1103
|
if (u === hr)
|
|
1197
1104
|
return e;
|
|
1198
1105
|
var f = r.get(u), h = u in a;
|
|
1199
|
-
if (f === void 0 && (!h ||
|
|
1200
|
-
var d =
|
|
1106
|
+
if (f === void 0 && (!h || tt(a, u)?.writable) && (f = o(() => {
|
|
1107
|
+
var d = xt(h ? a[u] : j), p = /* @__PURE__ */ oe(d);
|
|
1201
1108
|
return p;
|
|
1202
1109
|
}), r.set(u, f)), f !== void 0) {
|
|
1203
1110
|
var c = O(f);
|
|
@@ -1206,17 +1113,19 @@ function wt(e) {
|
|
|
1206
1113
|
return Reflect.get(a, u, l);
|
|
1207
1114
|
},
|
|
1208
1115
|
getOwnPropertyDescriptor(a, u) {
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
if (
|
|
1116
|
+
this.has?.(a, u);
|
|
1117
|
+
var l = Reflect.getOwnPropertyDescriptor(a, u), f = r.get(u);
|
|
1118
|
+
if (f !== void 0) {
|
|
1119
|
+
var h = O(f);
|
|
1120
|
+
if (h === j)
|
|
1121
|
+
return;
|
|
1122
|
+
if (l && "value" in l)
|
|
1123
|
+
l.value = h;
|
|
1124
|
+
else
|
|
1216
1125
|
return {
|
|
1217
1126
|
enumerable: !0,
|
|
1218
1127
|
configurable: !0,
|
|
1219
|
-
value:
|
|
1128
|
+
value: h,
|
|
1220
1129
|
writable: !0
|
|
1221
1130
|
};
|
|
1222
1131
|
}
|
|
@@ -1226,9 +1135,9 @@ function wt(e) {
|
|
|
1226
1135
|
if (u === hr)
|
|
1227
1136
|
return !0;
|
|
1228
1137
|
var l = r.get(u), f = l !== void 0 && l.v !== j || Reflect.has(a, u);
|
|
1229
|
-
if (l !== void 0 ||
|
|
1138
|
+
if (l !== void 0 || H !== null && (!f || tt(a, u)?.writable)) {
|
|
1230
1139
|
l === void 0 && (l = o(() => {
|
|
1231
|
-
var c = f ?
|
|
1140
|
+
var c = f ? xt(a[u]) : j, d = /* @__PURE__ */ oe(c);
|
|
1232
1141
|
return d;
|
|
1233
1142
|
}), r.set(u, l));
|
|
1234
1143
|
var h = O(l);
|
|
@@ -1243,14 +1152,14 @@ function wt(e) {
|
|
|
1243
1152
|
for (var d = l; d < /** @type {Source<number>} */
|
|
1244
1153
|
h.v; d += 1) {
|
|
1245
1154
|
var p = r.get(d + "");
|
|
1246
|
-
p !== void 0 ?
|
|
1155
|
+
p !== void 0 ? Y(p, j) : d in a && (p = o(() => /* @__PURE__ */ oe(j)), r.set(d + "", p));
|
|
1247
1156
|
}
|
|
1248
1157
|
if (h === void 0)
|
|
1249
|
-
(!c ||
|
|
1158
|
+
(!c || tt(a, u)?.writable) && (h = o(() => /* @__PURE__ */ oe(void 0)), Y(h, xt(l)), r.set(u, h));
|
|
1250
1159
|
else {
|
|
1251
1160
|
c = h.v !== j;
|
|
1252
|
-
var
|
|
1253
|
-
|
|
1161
|
+
var w = o(() => xt(l));
|
|
1162
|
+
Y(h, w);
|
|
1254
1163
|
}
|
|
1255
1164
|
var P = Reflect.getOwnPropertyDescriptor(a, u);
|
|
1256
1165
|
if (P?.set && P.set.call(f, l), !c) {
|
|
@@ -1259,7 +1168,7 @@ function wt(e) {
|
|
|
1259
1168
|
/** @type {Source<number>} */
|
|
1260
1169
|
r.get("length")
|
|
1261
1170
|
), X = Number(u);
|
|
1262
|
-
Number.isInteger(X) && X >= G.v &&
|
|
1171
|
+
Number.isInteger(X) && X >= G.v && Y(G, X + 1);
|
|
1263
1172
|
}
|
|
1264
1173
|
Ht(i);
|
|
1265
1174
|
}
|
|
@@ -1281,19 +1190,19 @@ function wt(e) {
|
|
|
1281
1190
|
}
|
|
1282
1191
|
);
|
|
1283
1192
|
}
|
|
1284
|
-
var
|
|
1193
|
+
var fn, ii, si, ai;
|
|
1285
1194
|
function Or() {
|
|
1286
|
-
if (
|
|
1287
|
-
|
|
1195
|
+
if (fn === void 0) {
|
|
1196
|
+
fn = window, ii = /Firefox/.test(navigator.userAgent);
|
|
1288
1197
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
1289
|
-
si =
|
|
1198
|
+
si = tt(t, "firstChild").get, ai = tt(t, "nextSibling").get, on(e) && (e[vs] = void 0, e[ps] = null, e[ms] = void 0, e.__e = void 0), on(r) && (r[Sr] = void 0);
|
|
1290
1199
|
}
|
|
1291
1200
|
}
|
|
1292
1201
|
function Me(e = "") {
|
|
1293
1202
|
return document.createTextNode(e);
|
|
1294
1203
|
}
|
|
1295
1204
|
// @__NO_SIDE_EFFECTS__
|
|
1296
|
-
function
|
|
1205
|
+
function ut(e) {
|
|
1297
1206
|
return (
|
|
1298
1207
|
/** @type {TemplateNode | null} */
|
|
1299
1208
|
si.call(e)
|
|
@@ -1307,9 +1216,9 @@ function Ne(e) {
|
|
|
1307
1216
|
);
|
|
1308
1217
|
}
|
|
1309
1218
|
function Mr(e, t) {
|
|
1310
|
-
if (!
|
|
1311
|
-
return /* @__PURE__ */
|
|
1312
|
-
var r = /* @__PURE__ */
|
|
1219
|
+
if (!D)
|
|
1220
|
+
return /* @__PURE__ */ ut(e);
|
|
1221
|
+
var r = /* @__PURE__ */ ut(M);
|
|
1313
1222
|
if (r === null)
|
|
1314
1223
|
r = M.appendChild(Me());
|
|
1315
1224
|
else if (t && r.nodeType !== rr) {
|
|
@@ -1321,9 +1230,9 @@ function Mr(e, t) {
|
|
|
1321
1230
|
r
|
|
1322
1231
|
), me(r), r;
|
|
1323
1232
|
}
|
|
1324
|
-
function
|
|
1325
|
-
if (!
|
|
1326
|
-
var r = /* @__PURE__ */
|
|
1233
|
+
function js(e, t = !1) {
|
|
1234
|
+
if (!D) {
|
|
1235
|
+
var r = /* @__PURE__ */ ut(e);
|
|
1327
1236
|
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ Ne(r) : r;
|
|
1328
1237
|
}
|
|
1329
1238
|
if (t) {
|
|
@@ -1338,18 +1247,18 @@ function Ys(e, t = !1) {
|
|
|
1338
1247
|
}
|
|
1339
1248
|
return M;
|
|
1340
1249
|
}
|
|
1341
|
-
function
|
|
1342
|
-
if (!
|
|
1343
|
-
return /* @__PURE__ */
|
|
1250
|
+
function hn(e, t = !1) {
|
|
1251
|
+
if (!D)
|
|
1252
|
+
return /* @__PURE__ */ ut(e);
|
|
1344
1253
|
var r = Mr(e, t);
|
|
1345
1254
|
return Tr(e), r;
|
|
1346
1255
|
}
|
|
1347
|
-
function
|
|
1348
|
-
let n =
|
|
1256
|
+
function Vs(e, t = 1, r = !1) {
|
|
1257
|
+
let n = D ? M : e;
|
|
1349
1258
|
for (var i; t--; )
|
|
1350
1259
|
i = n, n = /** @type {TemplateNode} */
|
|
1351
1260
|
/* @__PURE__ */ Ne(n);
|
|
1352
|
-
if (!
|
|
1261
|
+
if (!D)
|
|
1353
1262
|
return n;
|
|
1354
1263
|
if (r) {
|
|
1355
1264
|
if (n?.nodeType !== rr) {
|
|
@@ -1363,10 +1272,10 @@ function zs(e, t = 1, r = !1) {
|
|
|
1363
1272
|
}
|
|
1364
1273
|
return me(n), n;
|
|
1365
1274
|
}
|
|
1366
|
-
function
|
|
1275
|
+
function Xs(e) {
|
|
1367
1276
|
e.textContent = "";
|
|
1368
1277
|
}
|
|
1369
|
-
function
|
|
1278
|
+
function Ws() {
|
|
1370
1279
|
return !1;
|
|
1371
1280
|
}
|
|
1372
1281
|
function Qr(e, t, r) {
|
|
@@ -1386,18 +1295,18 @@ function Kr(e) {
|
|
|
1386
1295
|
t.remove(), e.nodeValue += /** @type {string} */
|
|
1387
1296
|
t.nodeValue, t = e.nextSibling;
|
|
1388
1297
|
}
|
|
1389
|
-
function
|
|
1390
|
-
var t =
|
|
1298
|
+
function Ys(e) {
|
|
1299
|
+
var t = H;
|
|
1391
1300
|
if (t === null)
|
|
1392
|
-
return
|
|
1393
|
-
if (!(t.f & Ye) && !(t.f &
|
|
1301
|
+
return T.f |= Ie, e;
|
|
1302
|
+
if (!(t.f & Ye) && !(t.f & st))
|
|
1394
1303
|
throw e;
|
|
1395
1304
|
be(e, t);
|
|
1396
1305
|
}
|
|
1397
1306
|
function be(e, t) {
|
|
1398
|
-
if (!(t !== null && t.f &
|
|
1307
|
+
if (!(t !== null && t.f & te)) {
|
|
1399
1308
|
for (; t !== null; ) {
|
|
1400
|
-
if (t.f & xr && !(t.f & (
|
|
1309
|
+
if (t.f & xr && !(t.f & (te | wr))) {
|
|
1401
1310
|
if (!(t.f & Ye))
|
|
1402
1311
|
throw e;
|
|
1403
1312
|
try {
|
|
@@ -1413,20 +1322,20 @@ function be(e, t) {
|
|
|
1413
1322
|
}
|
|
1414
1323
|
}
|
|
1415
1324
|
function oi(e) {
|
|
1416
|
-
|
|
1325
|
+
H === null && (T === null && Ts(), Ss()), Be && ws();
|
|
1417
1326
|
}
|
|
1418
|
-
function
|
|
1327
|
+
function zs(e, t) {
|
|
1419
1328
|
var r = t.last;
|
|
1420
1329
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
1421
1330
|
}
|
|
1422
1331
|
function _e(e, t) {
|
|
1423
|
-
var r =
|
|
1332
|
+
var r = H;
|
|
1424
1333
|
r !== null && r.f & le && (e |= le);
|
|
1425
1334
|
var n = {
|
|
1426
|
-
ctx:
|
|
1335
|
+
ctx: re,
|
|
1427
1336
|
deps: null,
|
|
1428
1337
|
nodes: null,
|
|
1429
|
-
f: e |
|
|
1338
|
+
f: e | L | pe,
|
|
1430
1339
|
first: null,
|
|
1431
1340
|
fn: t,
|
|
1432
1341
|
last: null,
|
|
@@ -1440,81 +1349,81 @@ function _e(e, t) {
|
|
|
1440
1349
|
};
|
|
1441
1350
|
$?.register_created_effect(n);
|
|
1442
1351
|
var i = n;
|
|
1443
|
-
if (e &
|
|
1444
|
-
|
|
1352
|
+
if (e & st)
|
|
1353
|
+
Tt !== null ? Tt.push(n) : Oe.ensure().schedule(n);
|
|
1445
1354
|
else if (t !== null) {
|
|
1446
1355
|
try {
|
|
1447
|
-
|
|
1356
|
+
lt(n);
|
|
1448
1357
|
} catch (o) {
|
|
1449
|
-
throw
|
|
1358
|
+
throw ne(n), o;
|
|
1450
1359
|
}
|
|
1451
1360
|
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && // either `null`, or a singular child
|
|
1452
|
-
!(i.f & ze) && (i = i.first, e & he && e &
|
|
1361
|
+
!(i.f & ze) && (i = i.first, e & he && e & at && i !== null && (i.f |= at));
|
|
1453
1362
|
}
|
|
1454
|
-
if (i !== null && (i.parent = r, r !== null &&
|
|
1363
|
+
if (i !== null && (i.parent = r, r !== null && zs(i, r), T !== null && T.f & q && !(e & xe))) {
|
|
1455
1364
|
var s = (
|
|
1456
1365
|
/** @type {Derived} */
|
|
1457
|
-
|
|
1366
|
+
T
|
|
1458
1367
|
);
|
|
1459
1368
|
(s.effects ??= []).push(i);
|
|
1460
1369
|
}
|
|
1461
1370
|
return n;
|
|
1462
1371
|
}
|
|
1463
1372
|
function en() {
|
|
1464
|
-
return
|
|
1373
|
+
return T !== null && !de;
|
|
1465
1374
|
}
|
|
1466
1375
|
function ui(e) {
|
|
1467
1376
|
const t = _e(Nt, null);
|
|
1468
1377
|
return C(t, V), t.teardown = e, t;
|
|
1469
1378
|
}
|
|
1470
|
-
function
|
|
1379
|
+
function cn(e) {
|
|
1471
1380
|
oi();
|
|
1472
1381
|
var t = (
|
|
1473
1382
|
/** @type {Effect} */
|
|
1474
|
-
|
|
1475
|
-
), r = !
|
|
1383
|
+
H.f
|
|
1384
|
+
), r = !T && (t & ve) !== 0 && re !== null && !re.i;
|
|
1476
1385
|
if (r) {
|
|
1477
1386
|
var n = (
|
|
1478
1387
|
/** @type {ComponentContext} */
|
|
1479
|
-
|
|
1388
|
+
re
|
|
1480
1389
|
);
|
|
1481
1390
|
(n.e ??= []).push(e);
|
|
1482
1391
|
} else
|
|
1483
1392
|
return li(e);
|
|
1484
1393
|
}
|
|
1485
1394
|
function li(e) {
|
|
1486
|
-
return _e(
|
|
1395
|
+
return _e(st | Un, e);
|
|
1487
1396
|
}
|
|
1488
|
-
function
|
|
1489
|
-
return oi(), _e(Nt |
|
|
1397
|
+
function qs(e) {
|
|
1398
|
+
return oi(), _e(Nt | Un, e);
|
|
1490
1399
|
}
|
|
1491
|
-
function
|
|
1400
|
+
function Zs(e) {
|
|
1492
1401
|
Oe.ensure();
|
|
1493
1402
|
const t = _e(xe | ze, e);
|
|
1494
1403
|
return () => {
|
|
1495
|
-
|
|
1404
|
+
ne(t);
|
|
1496
1405
|
};
|
|
1497
1406
|
}
|
|
1498
|
-
function
|
|
1407
|
+
function Js(e) {
|
|
1499
1408
|
Oe.ensure();
|
|
1500
1409
|
const t = _e(xe | ze, e);
|
|
1501
1410
|
return (r = {}) => new Promise((n) => {
|
|
1502
1411
|
r.outro ? At(t, () => {
|
|
1503
|
-
|
|
1504
|
-
}) : (
|
|
1412
|
+
ne(t), n(void 0);
|
|
1413
|
+
}) : (ne(t), n(void 0));
|
|
1505
1414
|
});
|
|
1506
1415
|
}
|
|
1507
|
-
function
|
|
1508
|
-
return _e(
|
|
1416
|
+
function Qs(e) {
|
|
1417
|
+
return _e(st, e);
|
|
1509
1418
|
}
|
|
1510
|
-
function
|
|
1511
|
-
return _e(
|
|
1419
|
+
function Ks(e) {
|
|
1420
|
+
return _e(rt | ze, e);
|
|
1512
1421
|
}
|
|
1513
1422
|
function fi(e, t = 0) {
|
|
1514
1423
|
return _e(Nt | t, e);
|
|
1515
1424
|
}
|
|
1516
|
-
function
|
|
1517
|
-
|
|
1425
|
+
function ea(e, t = [], r = [], n = []) {
|
|
1426
|
+
Cs(n, t, r, (i) => {
|
|
1518
1427
|
_e(Nt, () => {
|
|
1519
1428
|
e(...i.map(O));
|
|
1520
1429
|
});
|
|
@@ -1530,14 +1439,14 @@ function He(e) {
|
|
|
1530
1439
|
function ci(e) {
|
|
1531
1440
|
var t = e.teardown;
|
|
1532
1441
|
if (t !== null) {
|
|
1533
|
-
const r = Be, n =
|
|
1534
|
-
|
|
1442
|
+
const r = Be, n = T;
|
|
1443
|
+
pn(!0), fe(null);
|
|
1535
1444
|
try {
|
|
1536
1445
|
t.call(null);
|
|
1537
1446
|
} catch (i) {
|
|
1538
1447
|
be(i, e.parent);
|
|
1539
1448
|
} finally {
|
|
1540
|
-
|
|
1449
|
+
pn(r), fe(n);
|
|
1541
1450
|
}
|
|
1542
1451
|
}
|
|
1543
1452
|
}
|
|
@@ -1545,22 +1454,22 @@ function tn(e, t = !1) {
|
|
|
1545
1454
|
var r = e.first;
|
|
1546
1455
|
for (e.first = e.last = null; r !== null; ) {
|
|
1547
1456
|
const i = r.ac;
|
|
1548
|
-
i !== null &&
|
|
1457
|
+
i !== null && sr(() => {
|
|
1549
1458
|
i.abort(Pt);
|
|
1550
1459
|
});
|
|
1551
1460
|
var n = r.next;
|
|
1552
|
-
r.f & xe ? r.parent = null :
|
|
1461
|
+
r.f & xe ? r.parent = null : ne(r, t), r = n;
|
|
1553
1462
|
}
|
|
1554
1463
|
}
|
|
1555
|
-
function
|
|
1464
|
+
function ta(e) {
|
|
1556
1465
|
for (var t = e.first; t !== null; ) {
|
|
1557
1466
|
var r = t.next;
|
|
1558
|
-
t.f & ve ||
|
|
1467
|
+
t.f & ve || ne(t), t = r;
|
|
1559
1468
|
}
|
|
1560
1469
|
}
|
|
1561
|
-
function
|
|
1470
|
+
function ne(e, t = !0) {
|
|
1562
1471
|
var r = !1;
|
|
1563
|
-
(t || e.f & cs) && e.nodes !== null && e.nodes.end !== null && (
|
|
1472
|
+
(t || e.f & cs) && e.nodes !== null && e.nodes.end !== null && (ra(
|
|
1564
1473
|
e.nodes.start,
|
|
1565
1474
|
/** @type {TemplateNode} */
|
|
1566
1475
|
e.nodes.end
|
|
@@ -1569,11 +1478,11 @@ function re(e, t = !0) {
|
|
|
1569
1478
|
if (n !== null)
|
|
1570
1479
|
for (const s of n)
|
|
1571
1480
|
s.stop();
|
|
1572
|
-
ci(e), e.f ^= wr, e.f |=
|
|
1481
|
+
ci(e), e.f ^= wr, e.f |= te;
|
|
1573
1482
|
var i = e.parent;
|
|
1574
1483
|
i !== null && i.first !== null && di(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1575
1484
|
}
|
|
1576
|
-
function
|
|
1485
|
+
function ra(e, t) {
|
|
1577
1486
|
for (; e !== null; ) {
|
|
1578
1487
|
var r = e === t ? null : /* @__PURE__ */ Ne(e);
|
|
1579
1488
|
e.remove(), e = r;
|
|
@@ -1585,9 +1494,9 @@ function di(e) {
|
|
|
1585
1494
|
}
|
|
1586
1495
|
function At(e, t, r = !0) {
|
|
1587
1496
|
var n = [];
|
|
1588
|
-
e.f |=
|
|
1497
|
+
e.f |= jr, pi(e, n, !0);
|
|
1589
1498
|
var i = () => {
|
|
1590
|
-
r &&
|
|
1499
|
+
r && ne(e), t && t();
|
|
1591
1500
|
}, s = n.length;
|
|
1592
1501
|
if (s > 0) {
|
|
1593
1502
|
var o = () => --s || i();
|
|
@@ -1606,7 +1515,7 @@ function pi(e, t, r) {
|
|
|
1606
1515
|
for (var i = e.first; i !== null; ) {
|
|
1607
1516
|
var s = i.next;
|
|
1608
1517
|
if (!(i.f & xe)) {
|
|
1609
|
-
var o = (i.f &
|
|
1518
|
+
var o = (i.f & at) !== 0 || // If this is a branch effect without a block effect parent,
|
|
1610
1519
|
// it means the parent block effect was pruned. In that case,
|
|
1611
1520
|
// transparency information was transferred to the branch effect.
|
|
1612
1521
|
(i.f & ve) !== 0 && (e.f & he) !== 0;
|
|
@@ -1616,14 +1525,14 @@ function pi(e, t, r) {
|
|
|
1616
1525
|
}
|
|
1617
1526
|
}
|
|
1618
1527
|
}
|
|
1619
|
-
function
|
|
1620
|
-
e.f &= ~
|
|
1528
|
+
function dn(e) {
|
|
1529
|
+
e.f &= ~jr, vi(e, !0);
|
|
1621
1530
|
}
|
|
1622
1531
|
function vi(e, t) {
|
|
1623
|
-
if (!(e.f &
|
|
1624
|
-
e.f ^= le, e.f & V || (C(e,
|
|
1532
|
+
if (!(e.f & jr) && e.f & le) {
|
|
1533
|
+
e.f ^= le, e.f & V || (C(e, L), Oe.ensure().schedule(e));
|
|
1625
1534
|
for (var r = e.first; r !== null; ) {
|
|
1626
|
-
var n = r.next, i = (r.f &
|
|
1535
|
+
var n = r.next, i = (r.f & at) !== 0 || (r.f & ve) !== 0;
|
|
1627
1536
|
vi(r, i ? t : !1), r = n;
|
|
1628
1537
|
}
|
|
1629
1538
|
var s = e.nodes && e.nodes.t;
|
|
@@ -1640,37 +1549,37 @@ function mi(e, t) {
|
|
|
1640
1549
|
}
|
|
1641
1550
|
}
|
|
1642
1551
|
let Ft = !1, Be = !1;
|
|
1643
|
-
function
|
|
1552
|
+
function pn(e) {
|
|
1644
1553
|
Be = e;
|
|
1645
1554
|
}
|
|
1646
|
-
let
|
|
1555
|
+
let T = null, de = !1;
|
|
1647
1556
|
function fe(e) {
|
|
1648
|
-
|
|
1557
|
+
T = e;
|
|
1649
1558
|
}
|
|
1650
|
-
let
|
|
1559
|
+
let H = null;
|
|
1651
1560
|
function we(e) {
|
|
1652
|
-
|
|
1561
|
+
H = e;
|
|
1653
1562
|
}
|
|
1654
1563
|
let Ee = null;
|
|
1655
1564
|
function _i(e) {
|
|
1656
|
-
|
|
1565
|
+
T !== null && (T.f & qt || T.f & q) && (Ee ??= /* @__PURE__ */ new Set()).add(e);
|
|
1657
1566
|
}
|
|
1658
|
-
let ee = null,
|
|
1659
|
-
function
|
|
1567
|
+
let ee = null, ie = 0, ae = null;
|
|
1568
|
+
function na(e) {
|
|
1660
1569
|
ae = e;
|
|
1661
1570
|
}
|
|
1662
|
-
let bi = 1,
|
|
1663
|
-
function
|
|
1664
|
-
|
|
1571
|
+
let bi = 1, Ve = 0, Xe = Ve;
|
|
1572
|
+
function vn(e) {
|
|
1573
|
+
Xe = e;
|
|
1665
1574
|
}
|
|
1666
1575
|
function gi() {
|
|
1667
1576
|
return ++bi;
|
|
1668
1577
|
}
|
|
1669
1578
|
function Ct(e) {
|
|
1670
1579
|
var t = e.f;
|
|
1671
|
-
if (t &
|
|
1580
|
+
if (t & L)
|
|
1672
1581
|
return !0;
|
|
1673
|
-
if (t &
|
|
1582
|
+
if (t & ue) {
|
|
1674
1583
|
for (var r = (
|
|
1675
1584
|
/** @type {Value[]} */
|
|
1676
1585
|
e.deps
|
|
@@ -1685,7 +1594,7 @@ function Ct(e) {
|
|
|
1685
1594
|
), s.wv > e.wv)
|
|
1686
1595
|
return !0;
|
|
1687
1596
|
}
|
|
1688
|
-
t &
|
|
1597
|
+
t & pe && // During time traveling we don't want to reset the status so that
|
|
1689
1598
|
// traversal of the graph in the other batches still happens
|
|
1690
1599
|
ce === null && C(e, V);
|
|
1691
1600
|
}
|
|
@@ -1696,21 +1605,21 @@ function yi(e, t, r = !0) {
|
|
|
1696
1605
|
if (n !== null && !(Ee !== null && Ee.has(e)))
|
|
1697
1606
|
for (var i = 0; i < n.length; i++) {
|
|
1698
1607
|
var s = n[i];
|
|
1699
|
-
s.f &
|
|
1608
|
+
s.f & q ? yi(
|
|
1700
1609
|
/** @type {Derived} */
|
|
1701
1610
|
s,
|
|
1702
1611
|
t,
|
|
1703
1612
|
!1
|
|
1704
|
-
) : t === s && (r ? C(s,
|
|
1613
|
+
) : t === s && (r ? C(s, L) : s.f & V && C(s, ue), Jr(
|
|
1705
1614
|
/** @type {Effect} */
|
|
1706
1615
|
s
|
|
1707
1616
|
));
|
|
1708
1617
|
}
|
|
1709
1618
|
}
|
|
1710
1619
|
function Ei(e) {
|
|
1711
|
-
var t = ee, r =
|
|
1620
|
+
var t = ee, r = ie, n = ae, i = T, s = Ee, o = re, a = de, u = Xe, l = e.f;
|
|
1712
1621
|
ee = /** @type {null | Value[]} */
|
|
1713
|
-
null,
|
|
1622
|
+
null, ie = 0, ae = null, T = l & (ve | xe) ? null : e, Ee = null, ot(e.ctx), de = !1, Xe = ++Ve, e.ac !== null && (sr(() => {
|
|
1714
1623
|
e.ac.abort(Pt);
|
|
1715
1624
|
}), e.ac = null);
|
|
1716
1625
|
try {
|
|
@@ -1720,8 +1629,8 @@ function Ei(e) {
|
|
|
1720
1629
|
e.fn
|
|
1721
1630
|
), h = f();
|
|
1722
1631
|
e.f |= Ye;
|
|
1723
|
-
var c =
|
|
1724
|
-
if (
|
|
1632
|
+
var c = mn(e);
|
|
1633
|
+
if (Wn() && ae !== null && !de && c !== null && !(e.f & (q | ue | L)))
|
|
1725
1634
|
for (var d = 0; d < /** @type {Source[]} */
|
|
1726
1635
|
ae.length; d++)
|
|
1727
1636
|
yi(
|
|
@@ -1730,38 +1639,38 @@ function Ei(e) {
|
|
|
1730
1639
|
e
|
|
1731
1640
|
);
|
|
1732
1641
|
if (i !== null && i !== e) {
|
|
1733
|
-
if (
|
|
1642
|
+
if (Ve++, i.deps !== null)
|
|
1734
1643
|
for (let p = 0; p < r; p += 1)
|
|
1735
|
-
i.deps[p].rv =
|
|
1644
|
+
i.deps[p].rv = Ve;
|
|
1736
1645
|
if (t !== null)
|
|
1737
1646
|
for (const p of t)
|
|
1738
|
-
p.rv =
|
|
1647
|
+
p.rv = Ve;
|
|
1739
1648
|
ae !== null && (n === null ? n = ae : n.push(.../** @type {Source[]} */
|
|
1740
1649
|
ae));
|
|
1741
1650
|
}
|
|
1742
1651
|
return e.f & Ie && (e.f ^= Ie), h;
|
|
1743
1652
|
} catch (p) {
|
|
1744
|
-
return
|
|
1653
|
+
return mn(e), Ys(p);
|
|
1745
1654
|
} finally {
|
|
1746
|
-
e.f ^= qt, ee = t,
|
|
1655
|
+
e.f ^= qt, ee = t, ie = r, ae = n, T = i, Ee = s, ot(o), de = a, Xe = u;
|
|
1747
1656
|
}
|
|
1748
1657
|
}
|
|
1749
|
-
function
|
|
1658
|
+
function mn(e) {
|
|
1750
1659
|
var t = e.deps, r = $?.is_fork;
|
|
1751
1660
|
if (ee !== null) {
|
|
1752
1661
|
var n;
|
|
1753
|
-
if (r || $t(e,
|
|
1754
|
-
for (t.length =
|
|
1755
|
-
t[
|
|
1662
|
+
if (r || $t(e, ie), t !== null && ie > 0)
|
|
1663
|
+
for (t.length = ie + ee.length, n = 0; n < ee.length; n++)
|
|
1664
|
+
t[ie + n] = ee[n];
|
|
1756
1665
|
else
|
|
1757
1666
|
e.deps = t = ee;
|
|
1758
|
-
if (en() && e.f &
|
|
1759
|
-
for (n =
|
|
1667
|
+
if (en() && e.f & pe)
|
|
1668
|
+
for (n = ie; n < t.length; n++)
|
|
1760
1669
|
(t[n].reactions ??= []).push(e);
|
|
1761
|
-
} else !r && t !== null &&
|
|
1670
|
+
} else !r && t !== null && ie < t.length && ($t(e, ie), t.length = ie);
|
|
1762
1671
|
return t;
|
|
1763
1672
|
}
|
|
1764
|
-
function
|
|
1673
|
+
function ia(e, t) {
|
|
1765
1674
|
let r = t.reactions;
|
|
1766
1675
|
if (r !== null) {
|
|
1767
1676
|
var n = os.call(r, e);
|
|
@@ -1770,7 +1679,7 @@ function ua(e, t) {
|
|
|
1770
1679
|
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
1771
1680
|
}
|
|
1772
1681
|
}
|
|
1773
|
-
if (r === null && t.f &
|
|
1682
|
+
if (r === null && t.f & q && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
1774
1683
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
1775
1684
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
1776
1685
|
(ee === null || !Wt.call(ee, t))) {
|
|
@@ -1778,46 +1687,46 @@ function ua(e, t) {
|
|
|
1778
1687
|
/** @type {Derived} */
|
|
1779
1688
|
t
|
|
1780
1689
|
);
|
|
1781
|
-
s.f &
|
|
1782
|
-
s.ac.abort(Pt), s.ac = null, C(s,
|
|
1783
|
-
}),
|
|
1690
|
+
s.f & pe && (s.f ^= pe), s.v !== j && Yr(s), s.ac !== null && sr(() => {
|
|
1691
|
+
s.ac.abort(Pt), s.ac = null, C(s, L);
|
|
1692
|
+
}), Ds(s), $t(s, 0);
|
|
1784
1693
|
}
|
|
1785
1694
|
}
|
|
1786
1695
|
function $t(e, t) {
|
|
1787
1696
|
var r = e.deps;
|
|
1788
1697
|
if (r !== null)
|
|
1789
1698
|
for (var n = t; n < r.length; n++)
|
|
1790
|
-
|
|
1699
|
+
ia(e, r[n]);
|
|
1791
1700
|
}
|
|
1792
|
-
function
|
|
1701
|
+
function lt(e) {
|
|
1793
1702
|
var t = e.f;
|
|
1794
|
-
if (!(t &
|
|
1703
|
+
if (!(t & te)) {
|
|
1795
1704
|
C(e, V);
|
|
1796
|
-
var r =
|
|
1797
|
-
|
|
1705
|
+
var r = H, n = Ft;
|
|
1706
|
+
H = e, Ft = (t & (ve | xe)) === 0;
|
|
1798
1707
|
try {
|
|
1799
|
-
t & (he |
|
|
1708
|
+
t & (he | Dn) ? ta(e) : tn(e), ci(e);
|
|
1800
1709
|
var i = Ei(e);
|
|
1801
1710
|
e.teardown = typeof i == "function" ? i : null, e.wv = bi;
|
|
1802
1711
|
var s;
|
|
1803
|
-
|
|
1712
|
+
Rn && Ns && e.f & L && e.deps;
|
|
1804
1713
|
} finally {
|
|
1805
|
-
Ft = n,
|
|
1714
|
+
Ft = n, H = r;
|
|
1806
1715
|
}
|
|
1807
1716
|
}
|
|
1808
1717
|
}
|
|
1809
1718
|
function O(e) {
|
|
1810
|
-
var t = e.f, r = (t &
|
|
1811
|
-
if (
|
|
1812
|
-
var n =
|
|
1719
|
+
var t = e.f, r = (t & q) !== 0;
|
|
1720
|
+
if (T !== null && !de) {
|
|
1721
|
+
var n = H !== null && (H.f & te) !== 0;
|
|
1813
1722
|
if (!n && (Ee === null || !Ee.has(e))) {
|
|
1814
|
-
var i =
|
|
1815
|
-
if (
|
|
1816
|
-
e.rv <
|
|
1723
|
+
var i = T.deps;
|
|
1724
|
+
if (T.f & qt)
|
|
1725
|
+
e.rv < Ve && (e.rv = Ve, ee === null && i !== null && i[ie] === e ? ie++ : ee === null ? ee = [e] : ee.push(e));
|
|
1817
1726
|
else {
|
|
1818
|
-
|
|
1727
|
+
T.deps ??= [], Wt.call(T.deps, e) || T.deps.push(e);
|
|
1819
1728
|
var s = e.reactions;
|
|
1820
|
-
s === null ? e.reactions = [
|
|
1729
|
+
s === null ? e.reactions = [T] : Wt.call(s, T) || s.push(T);
|
|
1821
1730
|
}
|
|
1822
1731
|
}
|
|
1823
1732
|
}
|
|
@@ -1832,8 +1741,8 @@ function O(e) {
|
|
|
1832
1741
|
var a = o.v;
|
|
1833
1742
|
return (!(o.f & V) && o.reactions !== null || wi(o)) && (a = qr(o)), ye.set(o, a), a;
|
|
1834
1743
|
}
|
|
1835
|
-
var u = (o.f &
|
|
1836
|
-
Ct(o) && (u && (o.f |=
|
|
1744
|
+
var u = (o.f & pe) === 0 && !de && T !== null && (Ft || (T.f & pe) !== 0), l = (o.f & Ye) === 0;
|
|
1745
|
+
Ct(o) && (u && (o.f |= pe), Zn(o)), u && !l && (Jn(o), xi(o));
|
|
1837
1746
|
}
|
|
1838
1747
|
if (ce?.has(e))
|
|
1839
1748
|
return ce.get(e);
|
|
@@ -1842,9 +1751,9 @@ function O(e) {
|
|
|
1842
1751
|
return e.v;
|
|
1843
1752
|
}
|
|
1844
1753
|
function xi(e) {
|
|
1845
|
-
if (e.f |=
|
|
1754
|
+
if (e.f |= pe, e.deps !== null)
|
|
1846
1755
|
for (const t of e.deps)
|
|
1847
|
-
(t.reactions ??= []).push(e), t.f &
|
|
1756
|
+
(t.reactions ??= []).push(e), t.f & q && !(t.f & pe) && (Jn(
|
|
1848
1757
|
/** @type {Derived} */
|
|
1849
1758
|
t
|
|
1850
1759
|
), xi(
|
|
@@ -1856,7 +1765,7 @@ function wi(e) {
|
|
|
1856
1765
|
if (e.v === j) return !0;
|
|
1857
1766
|
if (e.deps === null) return !1;
|
|
1858
1767
|
for (const t of e.deps)
|
|
1859
|
-
if (ye.has(t) || t.f &
|
|
1768
|
+
if (ye.has(t) || t.f & q && wi(
|
|
1860
1769
|
/** @type {Derived} */
|
|
1861
1770
|
t
|
|
1862
1771
|
))
|
|
@@ -1871,18 +1780,18 @@ function Si(e) {
|
|
|
1871
1780
|
de = t;
|
|
1872
1781
|
}
|
|
1873
1782
|
}
|
|
1874
|
-
const
|
|
1875
|
-
function
|
|
1876
|
-
(t[
|
|
1783
|
+
const wt = Symbol("events"), Ti = /* @__PURE__ */ new Set(), Br = /* @__PURE__ */ new Set();
|
|
1784
|
+
function sa(e, t, r) {
|
|
1785
|
+
(t[wt] ??= {})[e] = r;
|
|
1877
1786
|
}
|
|
1878
|
-
function
|
|
1787
|
+
function aa(e) {
|
|
1879
1788
|
for (var t = 0; t < e.length; t++)
|
|
1880
1789
|
Ti.add(e[t]);
|
|
1881
1790
|
for (var r of Br)
|
|
1882
1791
|
r(e);
|
|
1883
1792
|
}
|
|
1884
1793
|
let pr = null, vr = !1;
|
|
1885
|
-
function
|
|
1794
|
+
function _n(e) {
|
|
1886
1795
|
var t = this, r = (
|
|
1887
1796
|
/** @type {Node} */
|
|
1888
1797
|
t.ownerDocument
|
|
@@ -1893,12 +1802,12 @@ function mn(e) {
|
|
|
1893
1802
|
pr = e, vr || (vr = !0, setTimeout(() => {
|
|
1894
1803
|
vr = !1, pr = null;
|
|
1895
1804
|
}));
|
|
1896
|
-
var o = 0, a = pr === e && e[
|
|
1805
|
+
var o = 0, a = pr === e && e[wt];
|
|
1897
1806
|
if (a) {
|
|
1898
1807
|
var u = i.indexOf(a);
|
|
1899
1808
|
if (u !== -1 && (t === document || t === /** @type {any} */
|
|
1900
1809
|
window)) {
|
|
1901
|
-
e[
|
|
1810
|
+
e[wt] = t;
|
|
1902
1811
|
return;
|
|
1903
1812
|
}
|
|
1904
1813
|
var l = i.indexOf(t);
|
|
@@ -1908,24 +1817,24 @@ function mn(e) {
|
|
|
1908
1817
|
}
|
|
1909
1818
|
if (s = /** @type {Element} */
|
|
1910
1819
|
i[o] || e.target, s !== t) {
|
|
1911
|
-
|
|
1820
|
+
it(e, "currentTarget", {
|
|
1912
1821
|
configurable: !0,
|
|
1913
1822
|
get() {
|
|
1914
1823
|
return s || r;
|
|
1915
1824
|
}
|
|
1916
1825
|
});
|
|
1917
|
-
var f =
|
|
1826
|
+
var f = T, h = H;
|
|
1918
1827
|
fe(null), we(null);
|
|
1919
1828
|
try {
|
|
1920
1829
|
for (var c, d = []; s !== null && s !== t; ) {
|
|
1921
1830
|
try {
|
|
1922
|
-
var p = s[
|
|
1831
|
+
var p = s[wt]?.[n];
|
|
1923
1832
|
p != null && (!/** @type {any} */
|
|
1924
1833
|
s.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
1925
1834
|
// -> the target could not have been disabled because it emits the event in the first place
|
|
1926
1835
|
e.target === s) && p.call(s, e);
|
|
1927
|
-
} catch (
|
|
1928
|
-
c ? d.push(
|
|
1836
|
+
} catch (w) {
|
|
1837
|
+
c ? d.push(w) : c = w;
|
|
1929
1838
|
}
|
|
1930
1839
|
if (e.cancelBubble) break;
|
|
1931
1840
|
o++, s = o < i.length ? (
|
|
@@ -1934,38 +1843,38 @@ function mn(e) {
|
|
|
1934
1843
|
) : null;
|
|
1935
1844
|
}
|
|
1936
1845
|
if (c) {
|
|
1937
|
-
for (let
|
|
1846
|
+
for (let w of d)
|
|
1938
1847
|
queueMicrotask(() => {
|
|
1939
|
-
throw
|
|
1848
|
+
throw w;
|
|
1940
1849
|
});
|
|
1941
1850
|
throw c;
|
|
1942
1851
|
}
|
|
1943
1852
|
} finally {
|
|
1944
|
-
e[
|
|
1853
|
+
e[wt] = t, delete e.currentTarget, fe(f), we(h);
|
|
1945
1854
|
}
|
|
1946
1855
|
}
|
|
1947
1856
|
}
|
|
1948
|
-
const
|
|
1857
|
+
const oa = (
|
|
1949
1858
|
// We gotta write it like this because after downleveling the pure comment may end up in the wrong location
|
|
1950
1859
|
globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
|
|
1951
1860
|
/** @param {string} html */
|
|
1952
1861
|
createHTML: (e) => e
|
|
1953
1862
|
})
|
|
1954
1863
|
);
|
|
1955
|
-
function
|
|
1864
|
+
function ua(e) {
|
|
1956
1865
|
return (
|
|
1957
1866
|
/** @type {string} */
|
|
1958
|
-
|
|
1867
|
+
oa?.createHTML(e) ?? e
|
|
1959
1868
|
);
|
|
1960
1869
|
}
|
|
1961
|
-
function
|
|
1870
|
+
function la(e) {
|
|
1962
1871
|
var t = Qr("template");
|
|
1963
|
-
return t.innerHTML =
|
|
1872
|
+
return t.innerHTML = ua(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1964
1873
|
}
|
|
1965
1874
|
function Ot(e, t) {
|
|
1966
1875
|
var r = (
|
|
1967
1876
|
/** @type {Effect} */
|
|
1968
|
-
|
|
1877
|
+
H
|
|
1969
1878
|
);
|
|
1970
1879
|
r.nodes === null && (r.nodes = { start: e, end: t, a: null, t: null });
|
|
1971
1880
|
}
|
|
@@ -1973,10 +1882,10 @@ function Ot(e, t) {
|
|
|
1973
1882
|
function Hi(e, t) {
|
|
1974
1883
|
var r = (t & ss) !== 0, n, i = !e.startsWith("<!>");
|
|
1975
1884
|
return () => {
|
|
1976
|
-
if (
|
|
1885
|
+
if (D)
|
|
1977
1886
|
return Ot(M, null), M;
|
|
1978
|
-
n === void 0 && (n =
|
|
1979
|
-
/* @__PURE__ */
|
|
1887
|
+
n === void 0 && (n = la(i ? e : "<!>" + e), n = /** @type {TemplateNode} */
|
|
1888
|
+
/* @__PURE__ */ ut(n));
|
|
1980
1889
|
var s = (
|
|
1981
1890
|
/** @type {TemplateNode} */
|
|
1982
1891
|
r || ii ? document.importNode(n, !0) : n.cloneNode(!0)
|
|
@@ -1984,19 +1893,19 @@ function Hi(e, t) {
|
|
|
1984
1893
|
return Ot(s, s), s;
|
|
1985
1894
|
};
|
|
1986
1895
|
}
|
|
1987
|
-
function
|
|
1988
|
-
if (
|
|
1896
|
+
function fa() {
|
|
1897
|
+
if (D)
|
|
1989
1898
|
return Ot(M, null), M;
|
|
1990
1899
|
var e = document.createDocumentFragment(), t = document.createComment(""), r = Me();
|
|
1991
1900
|
return e.append(t, r), Ot(t, r), e;
|
|
1992
1901
|
}
|
|
1993
1902
|
function Gt(e, t) {
|
|
1994
|
-
if (
|
|
1903
|
+
if (D) {
|
|
1995
1904
|
var r = (
|
|
1996
1905
|
/** @type {Effect & { nodes: EffectNodes }} */
|
|
1997
|
-
|
|
1906
|
+
H
|
|
1998
1907
|
);
|
|
1999
|
-
(!(r.f & Ye) || r.nodes.end === null) && (r.nodes.end = M),
|
|
1908
|
+
(!(r.f & Ye) || r.nodes.end === null) && (r.nodes.end = M), Vr();
|
|
2000
1909
|
return;
|
|
2001
1910
|
}
|
|
2002
1911
|
e !== null && e.before(
|
|
@@ -2004,25 +1913,25 @@ function Gt(e, t) {
|
|
|
2004
1913
|
t
|
|
2005
1914
|
);
|
|
2006
1915
|
}
|
|
2007
|
-
const
|
|
2008
|
-
function
|
|
2009
|
-
return
|
|
1916
|
+
const ha = ["touchstart", "touchmove"];
|
|
1917
|
+
function ca(e) {
|
|
1918
|
+
return ha.includes(e);
|
|
2010
1919
|
}
|
|
2011
|
-
function
|
|
1920
|
+
function da(e) {
|
|
2012
1921
|
let t = 0, r = kt(0), n;
|
|
2013
1922
|
return () => {
|
|
2014
1923
|
en() && (O(r), fi(() => (t === 0 && (n = Si(() => e(() => Ht(r)))), t += 1, () => {
|
|
2015
|
-
|
|
1924
|
+
je(() => {
|
|
2016
1925
|
t -= 1, t === 0 && (n?.(), n = void 0, Ht(r));
|
|
2017
1926
|
});
|
|
2018
1927
|
})));
|
|
2019
1928
|
};
|
|
2020
1929
|
}
|
|
2021
|
-
var
|
|
2022
|
-
function
|
|
2023
|
-
new
|
|
1930
|
+
var pa = at | ze;
|
|
1931
|
+
function va(e, t, r, n) {
|
|
1932
|
+
new ma(e, t, r, n);
|
|
2024
1933
|
}
|
|
2025
|
-
class
|
|
1934
|
+
class ma {
|
|
2026
1935
|
/** @type {Boundary | null} */
|
|
2027
1936
|
parent;
|
|
2028
1937
|
is_pending = !1;
|
|
@@ -2035,7 +1944,7 @@ class ya {
|
|
|
2035
1944
|
/** @type {TemplateNode} */
|
|
2036
1945
|
#e;
|
|
2037
1946
|
/** @type {TemplateNode | null} */
|
|
2038
|
-
#t =
|
|
1947
|
+
#t = D ? M : null;
|
|
2039
1948
|
/** @type {BoundaryProps} */
|
|
2040
1949
|
#r;
|
|
2041
1950
|
/** @type {((anchor: Node) => void)} */
|
|
@@ -2050,7 +1959,7 @@ class ya {
|
|
|
2050
1959
|
#o = null;
|
|
2051
1960
|
/** @type {DocumentFragment | null} */
|
|
2052
1961
|
#s = null;
|
|
2053
|
-
#
|
|
1962
|
+
#p = 0;
|
|
2054
1963
|
#l = 0;
|
|
2055
1964
|
#f = !1;
|
|
2056
1965
|
/** @type {Set<Effect>} */
|
|
@@ -2065,7 +1974,7 @@ class ya {
|
|
|
2065
1974
|
* @type {Source<number> | null}
|
|
2066
1975
|
*/
|
|
2067
1976
|
#h = null;
|
|
2068
|
-
#g =
|
|
1977
|
+
#g = da(() => (this.#h = kt(this.#p), () => {
|
|
2069
1978
|
this.#h = null;
|
|
2070
1979
|
}));
|
|
2071
1980
|
/**
|
|
@@ -2078,27 +1987,27 @@ class ya {
|
|
|
2078
1987
|
this.#e = t, this.#r = r, this.#u = (s) => {
|
|
2079
1988
|
var o = (
|
|
2080
1989
|
/** @type {Effect} */
|
|
2081
|
-
|
|
1990
|
+
H
|
|
2082
1991
|
);
|
|
2083
1992
|
o.b = this, o.f |= xr, n(s);
|
|
2084
1993
|
}, this.parent = /** @type {Effect} */
|
|
2085
|
-
|
|
2086
|
-
if (
|
|
1994
|
+
H.b, this.transform_error = i ?? this.parent?.transform_error ?? ((s) => s), this.#i = hi(() => {
|
|
1995
|
+
if (D) {
|
|
2087
1996
|
const s = (
|
|
2088
1997
|
/** @type {Comment} */
|
|
2089
1998
|
this.#t
|
|
2090
1999
|
);
|
|
2091
|
-
|
|
2092
|
-
const o = s.data ===
|
|
2093
|
-
if (s.data.startsWith(
|
|
2094
|
-
const u = JSON.parse(s.data.slice(
|
|
2095
|
-
this.#
|
|
2096
|
-
} else o ? this.#
|
|
2000
|
+
Vr();
|
|
2001
|
+
const o = s.data === kn;
|
|
2002
|
+
if (s.data.startsWith(an)) {
|
|
2003
|
+
const u = JSON.parse(s.data.slice(an.length));
|
|
2004
|
+
this.#_(u);
|
|
2005
|
+
} else o ? this.#w() : this.#y();
|
|
2097
2006
|
} else
|
|
2098
|
-
this.#
|
|
2099
|
-
},
|
|
2007
|
+
this.#E();
|
|
2008
|
+
}, pa), D && (this.#e = M);
|
|
2100
2009
|
}
|
|
2101
|
-
#
|
|
2010
|
+
#y() {
|
|
2102
2011
|
try {
|
|
2103
2012
|
this.#a = He(() => this.#u(this.#e));
|
|
2104
2013
|
} catch (t) {
|
|
@@ -2108,9 +2017,9 @@ class ya {
|
|
|
2108
2017
|
/**
|
|
2109
2018
|
* @param {unknown} error The deserialized error from the server's hydration comment
|
|
2110
2019
|
*/
|
|
2111
|
-
#
|
|
2112
|
-
const r = this.#r.failed, { reset: n, invoke_onerror: i } = this.#
|
|
2113
|
-
|
|
2020
|
+
#_(t) {
|
|
2021
|
+
const r = this.#r.failed, { reset: n, invoke_onerror: i } = this.#b(t);
|
|
2022
|
+
je(i), r && (this.#o = He(() => {
|
|
2114
2023
|
r(
|
|
2115
2024
|
this.#e,
|
|
2116
2025
|
() => t,
|
|
@@ -2124,7 +2033,7 @@ class ya {
|
|
|
2124
2033
|
* @param {unknown} error
|
|
2125
2034
|
* @returns {{ reset: () => void, invoke_onerror: () => void }}
|
|
2126
2035
|
*/
|
|
2127
|
-
#
|
|
2036
|
+
#b(t) {
|
|
2128
2037
|
var r = !1, n = !1;
|
|
2129
2038
|
const i = () => {
|
|
2130
2039
|
if (r) {
|
|
@@ -2133,8 +2042,8 @@ class ya {
|
|
|
2133
2042
|
}
|
|
2134
2043
|
r = !0, n && Bs(), this.#o !== null && At(this.#o, () => {
|
|
2135
2044
|
this.#o = null;
|
|
2136
|
-
}), this.#
|
|
2137
|
-
this.#
|
|
2045
|
+
}), this.#x(() => {
|
|
2046
|
+
this.#E();
|
|
2138
2047
|
});
|
|
2139
2048
|
};
|
|
2140
2049
|
return { reset: i, invoke_onerror: () => {
|
|
@@ -2145,11 +2054,11 @@ class ya {
|
|
|
2145
2054
|
}
|
|
2146
2055
|
} };
|
|
2147
2056
|
}
|
|
2148
|
-
#
|
|
2057
|
+
#w() {
|
|
2149
2058
|
const t = this.#r.pending;
|
|
2150
|
-
t && (this.is_pending = !0, this.#n = He(() => t(this.#e)),
|
|
2059
|
+
t && (this.is_pending = !0, this.#n = He(() => t(this.#e)), je(() => {
|
|
2151
2060
|
var r = this.#s = document.createDocumentFragment(), n = Me(), i = !1;
|
|
2152
|
-
if (r.append(n), this.#a = this.#
|
|
2061
|
+
if (r.append(n), this.#a = this.#x(() => {
|
|
2153
2062
|
try {
|
|
2154
2063
|
return He(() => this.#u(n));
|
|
2155
2064
|
} catch (s) {
|
|
@@ -2161,7 +2070,7 @@ class ya {
|
|
|
2161
2070
|
return null;
|
|
2162
2071
|
}
|
|
2163
2072
|
}), this.#a === null) {
|
|
2164
|
-
this.#s = null, i && this.#
|
|
2073
|
+
this.#s = null, i && this.#d(
|
|
2165
2074
|
/** @type {Batch} */
|
|
2166
2075
|
$
|
|
2167
2076
|
);
|
|
@@ -2173,15 +2082,15 @@ class ya {
|
|
|
2173
2082
|
() => {
|
|
2174
2083
|
this.#n = null;
|
|
2175
2084
|
}
|
|
2176
|
-
), this.#
|
|
2085
|
+
), this.#d(
|
|
2177
2086
|
/** @type {Batch} */
|
|
2178
2087
|
$
|
|
2179
2088
|
));
|
|
2180
2089
|
}));
|
|
2181
2090
|
}
|
|
2182
|
-
#
|
|
2091
|
+
#E() {
|
|
2183
2092
|
try {
|
|
2184
|
-
if (this.is_pending = this.has_pending_snippet(), this.#l = 0, this.#
|
|
2093
|
+
if (this.is_pending = this.has_pending_snippet(), this.#l = 0, this.#p = 0, this.#a = He(() => {
|
|
2185
2094
|
this.#u(this.#e);
|
|
2186
2095
|
}), this.#l > 0) {
|
|
2187
2096
|
var t = this.#s = document.createDocumentFragment();
|
|
@@ -2192,7 +2101,7 @@ class ya {
|
|
|
2192
2101
|
);
|
|
2193
2102
|
this.#n = He(() => r(this.#e));
|
|
2194
2103
|
} else
|
|
2195
|
-
this.#
|
|
2104
|
+
this.#d(
|
|
2196
2105
|
/** @type {Batch} */
|
|
2197
2106
|
$
|
|
2198
2107
|
);
|
|
@@ -2203,7 +2112,7 @@ class ya {
|
|
|
2203
2112
|
/**
|
|
2204
2113
|
* @param {Batch} batch
|
|
2205
2114
|
*/
|
|
2206
|
-
#
|
|
2115
|
+
#d(t) {
|
|
2207
2116
|
this.is_pending = !1, t.transfer_effects(this.#c, this.#m);
|
|
2208
2117
|
}
|
|
2209
2118
|
/**
|
|
@@ -2227,13 +2136,13 @@ class ya {
|
|
|
2227
2136
|
* @template T
|
|
2228
2137
|
* @param {() => T} fn
|
|
2229
2138
|
*/
|
|
2230
|
-
#
|
|
2231
|
-
var r =
|
|
2232
|
-
we(this.#i), fe(this.#i),
|
|
2139
|
+
#x(t) {
|
|
2140
|
+
var r = H, n = T, i = re;
|
|
2141
|
+
we(this.#i), fe(this.#i), ot(this.#i.ctx);
|
|
2233
2142
|
try {
|
|
2234
2143
|
return Oe.ensure(), t();
|
|
2235
2144
|
} finally {
|
|
2236
|
-
we(r), fe(n),
|
|
2145
|
+
we(r), fe(n), ot(i);
|
|
2237
2146
|
}
|
|
2238
2147
|
}
|
|
2239
2148
|
/**
|
|
@@ -2242,12 +2151,12 @@ class ya {
|
|
|
2242
2151
|
* @param {1 | -1} d
|
|
2243
2152
|
* @param {Batch} batch
|
|
2244
2153
|
*/
|
|
2245
|
-
#
|
|
2154
|
+
#v(t, r) {
|
|
2246
2155
|
if (!this.has_pending_snippet()) {
|
|
2247
|
-
this.parent && this.parent.#
|
|
2156
|
+
this.parent && this.parent.#v(t, r);
|
|
2248
2157
|
return;
|
|
2249
2158
|
}
|
|
2250
|
-
this.#l += t, this.#l === 0 && (this.#
|
|
2159
|
+
this.#l += t, this.#l === 0 && (this.#d(r), this.#n && At(this.#n, () => {
|
|
2251
2160
|
this.#n = null;
|
|
2252
2161
|
}), this.#s && (this.#e.before(this.#s), this.#s = null));
|
|
2253
2162
|
}
|
|
@@ -2259,8 +2168,8 @@ class ya {
|
|
|
2259
2168
|
* @param {Batch} batch
|
|
2260
2169
|
*/
|
|
2261
2170
|
update_pending_count(t, r) {
|
|
2262
|
-
this.#
|
|
2263
|
-
this.#f = !1, this.#h && Qt(this.#h, this.#
|
|
2171
|
+
this.#v(t, r), this.#p += t, !(!this.#h || this.#f) && (this.#f = !0, je(() => {
|
|
2172
|
+
this.#f = !1, this.#h && Qt(this.#h, this.#p);
|
|
2264
2173
|
}));
|
|
2265
2174
|
}
|
|
2266
2175
|
get_effect_pending() {
|
|
@@ -2281,19 +2190,19 @@ class ya {
|
|
|
2281
2190
|
* @param {unknown} error
|
|
2282
2191
|
*/
|
|
2283
2192
|
#S(t) {
|
|
2284
|
-
this.#a && (
|
|
2193
|
+
this.#a && (ne(this.#a), this.#a = null), this.#n && (ne(this.#n), this.#n = null), this.#o && (ne(this.#o), this.#o = null), D && (me(
|
|
2285
2194
|
/** @type {TemplateNode} */
|
|
2286
2195
|
this.#t
|
|
2287
|
-
), gs(), me(
|
|
2196
|
+
), gs(), me(Gn()));
|
|
2288
2197
|
let r = this.#r.failed;
|
|
2289
2198
|
const n = (i) => {
|
|
2290
|
-
const { reset: s, invoke_onerror: o } = this.#
|
|
2291
|
-
o(), r && (this.#o = this.#
|
|
2199
|
+
const { reset: s, invoke_onerror: o } = this.#b(i);
|
|
2200
|
+
o(), r && (this.#o = this.#x(() => {
|
|
2292
2201
|
try {
|
|
2293
2202
|
return He(() => {
|
|
2294
2203
|
var a = (
|
|
2295
2204
|
/** @type {Effect} */
|
|
2296
|
-
|
|
2205
|
+
H
|
|
2297
2206
|
);
|
|
2298
2207
|
a.b = this, a.f |= xr, r(
|
|
2299
2208
|
this.#e,
|
|
@@ -2310,7 +2219,7 @@ class ya {
|
|
|
2310
2219
|
}
|
|
2311
2220
|
}));
|
|
2312
2221
|
};
|
|
2313
|
-
|
|
2222
|
+
je(() => {
|
|
2314
2223
|
var i;
|
|
2315
2224
|
try {
|
|
2316
2225
|
i = this.transform_error(t);
|
|
@@ -2327,7 +2236,7 @@ class ya {
|
|
|
2327
2236
|
});
|
|
2328
2237
|
}
|
|
2329
2238
|
}
|
|
2330
|
-
function
|
|
2239
|
+
function bn(e, t) {
|
|
2331
2240
|
var r = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
2332
2241
|
r !== /** @type {any} */
|
|
2333
2242
|
(e[Sr] ??= e.nodeValue) && (e[Sr] = r, e.nodeValue = `${r}`);
|
|
@@ -2335,15 +2244,15 @@ function _n(e, t) {
|
|
|
2335
2244
|
function Ai(e, t) {
|
|
2336
2245
|
return $i(e, t);
|
|
2337
2246
|
}
|
|
2338
|
-
function
|
|
2247
|
+
function _a(e, t) {
|
|
2339
2248
|
Or(), t.intro = t.intro ?? !1;
|
|
2340
|
-
const r = t.target, n =
|
|
2249
|
+
const r = t.target, n = D, i = M;
|
|
2341
2250
|
try {
|
|
2342
|
-
for (var s = /* @__PURE__ */
|
|
2343
|
-
s.data !==
|
|
2251
|
+
for (var s = /* @__PURE__ */ ut(r); s && (s.nodeType !== nr || /** @type {Comment} */
|
|
2252
|
+
s.data !== Pn); )
|
|
2344
2253
|
s = /* @__PURE__ */ Ne(s);
|
|
2345
2254
|
if (!s)
|
|
2346
|
-
throw
|
|
2255
|
+
throw nt;
|
|
2347
2256
|
et(!0), me(
|
|
2348
2257
|
/** @type {Comment} */
|
|
2349
2258
|
s
|
|
@@ -2355,7 +2264,7 @@ function Ea(e, t) {
|
|
|
2355
2264
|
if (o instanceof Error && o.message.split(`
|
|
2356
2265
|
`).some((a) => a.startsWith("https://svelte.dev/e/")))
|
|
2357
2266
|
throw o;
|
|
2358
|
-
return o !==
|
|
2267
|
+
return o !== nt && console.warn("Failed to hydrate: ", o), t.recover === !1 && As(), Or(), Xs(r), et(!1), Ai(e, t);
|
|
2359
2268
|
} finally {
|
|
2360
2269
|
et(n), me(i);
|
|
2361
2270
|
}
|
|
@@ -2363,9 +2272,9 @@ function Ea(e, t) {
|
|
|
2363
2272
|
const Lt = /* @__PURE__ */ new Map();
|
|
2364
2273
|
function $i(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: o = !0, transformError: a }) {
|
|
2365
2274
|
Or();
|
|
2366
|
-
var u = void 0, l =
|
|
2275
|
+
var u = void 0, l = Js(() => {
|
|
2367
2276
|
var f = r ?? t.appendChild(Me());
|
|
2368
|
-
|
|
2277
|
+
va(
|
|
2369
2278
|
/** @type {TemplateNode} */
|
|
2370
2279
|
f,
|
|
2371
2280
|
{
|
|
@@ -2373,33 +2282,33 @@ function $i(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
2373
2282
|
}
|
|
2374
2283
|
},
|
|
2375
2284
|
(d) => {
|
|
2376
|
-
|
|
2285
|
+
Xr({});
|
|
2377
2286
|
var p = (
|
|
2378
2287
|
/** @type {ComponentContext} */
|
|
2379
|
-
|
|
2288
|
+
re
|
|
2380
2289
|
);
|
|
2381
|
-
if (s && (p.c = s), i && (n.$$events = i),
|
|
2290
|
+
if (s && (p.c = s), i && (n.$$events = i), D && Ot(
|
|
2382
2291
|
/** @type {TemplateNode} */
|
|
2383
2292
|
d,
|
|
2384
2293
|
null
|
|
2385
|
-
), u = e(d, n) ||
|
|
2386
|
-
M.data !==
|
|
2387
|
-
throw ir(),
|
|
2388
|
-
|
|
2294
|
+
), u = e(d, n) || Xn(), D && (H.nodes.end = M, M === null || M.nodeType !== nr || /** @type {Comment} */
|
|
2295
|
+
M.data !== Cn))
|
|
2296
|
+
throw ir(), nt;
|
|
2297
|
+
Wr();
|
|
2389
2298
|
},
|
|
2390
2299
|
a
|
|
2391
2300
|
);
|
|
2392
2301
|
var h = /* @__PURE__ */ new Set(), c = (d) => {
|
|
2393
2302
|
for (var p = 0; p < d.length; p++) {
|
|
2394
|
-
var
|
|
2395
|
-
if (!h.has(
|
|
2396
|
-
h.add(
|
|
2397
|
-
var P =
|
|
2398
|
-
for (const
|
|
2399
|
-
var G = Lt.get(
|
|
2400
|
-
G === void 0 && (G = /* @__PURE__ */ new Map(), Lt.set(
|
|
2401
|
-
var X = G.get(
|
|
2402
|
-
X === void 0 ? (
|
|
2303
|
+
var w = d[p];
|
|
2304
|
+
if (!h.has(w)) {
|
|
2305
|
+
h.add(w);
|
|
2306
|
+
var P = ca(w);
|
|
2307
|
+
for (const U of [t, document]) {
|
|
2308
|
+
var G = Lt.get(U);
|
|
2309
|
+
G === void 0 && (G = /* @__PURE__ */ new Map(), Lt.set(U, G));
|
|
2310
|
+
var X = G.get(w);
|
|
2311
|
+
X === void 0 ? (U.addEventListener(w, _n, { passive: P }), G.set(w, 1)) : G.set(w, X + 1);
|
|
2403
2312
|
}
|
|
2404
2313
|
}
|
|
2405
2314
|
}
|
|
@@ -2410,11 +2319,11 @@ function $i(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
2410
2319
|
var p = (
|
|
2411
2320
|
/** @type {Map<string, number>} */
|
|
2412
2321
|
Lt.get(P)
|
|
2413
|
-
),
|
|
2322
|
+
), w = (
|
|
2414
2323
|
/** @type {number} */
|
|
2415
2324
|
p.get(d)
|
|
2416
2325
|
);
|
|
2417
|
-
--
|
|
2326
|
+
--w == 0 ? (P.removeEventListener(d, _n), p.delete(d), p.size === 0 && Lt.delete(P)) : p.set(d, w);
|
|
2418
2327
|
}
|
|
2419
2328
|
Br.delete(c), f !== r && f.parentNode?.removeChild(f);
|
|
2420
2329
|
};
|
|
@@ -2422,11 +2331,11 @@ function $i(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
2422
2331
|
return Nr.set(u, l), u;
|
|
2423
2332
|
}
|
|
2424
2333
|
let Nr = /* @__PURE__ */ new WeakMap();
|
|
2425
|
-
function
|
|
2334
|
+
function ba(e, t) {
|
|
2426
2335
|
const r = Nr.get(e);
|
|
2427
2336
|
return r ? (Nr.delete(e), r(t)) : Promise.resolve();
|
|
2428
2337
|
}
|
|
2429
|
-
class
|
|
2338
|
+
class ga {
|
|
2430
2339
|
/** @type {TemplateNode} */
|
|
2431
2340
|
anchor;
|
|
2432
2341
|
/** @type {Map<Batch, Key>} */
|
|
@@ -2479,16 +2388,16 @@ class wa {
|
|
|
2479
2388
|
this.#e.get(t)
|
|
2480
2389
|
), n = this.#t.get(r);
|
|
2481
2390
|
if (n)
|
|
2482
|
-
|
|
2391
|
+
dn(n), this.#u.delete(r);
|
|
2483
2392
|
else {
|
|
2484
2393
|
var i = this.#r.get(r);
|
|
2485
|
-
i && (
|
|
2394
|
+
i && (dn(i.effect), this.#t.set(r, i.effect), this.#r.delete(r), i.fragment.lastChild.remove(), this.anchor.before(i.fragment), n = i.effect);
|
|
2486
2395
|
}
|
|
2487
2396
|
for (const [s, o] of this.#e) {
|
|
2488
2397
|
if (this.#e.delete(s), s === t)
|
|
2489
2398
|
break;
|
|
2490
2399
|
const a = this.#r.get(o);
|
|
2491
|
-
a && (
|
|
2400
|
+
a && (ne(a.effect), this.#r.delete(o));
|
|
2492
2401
|
}
|
|
2493
2402
|
for (const [s, o] of this.#t) {
|
|
2494
2403
|
if (s === r || this.#u.has(s)) continue;
|
|
@@ -2497,7 +2406,7 @@ class wa {
|
|
|
2497
2406
|
var l = document.createDocumentFragment();
|
|
2498
2407
|
mi(o, l), l.append(Me()), this.#r.set(s, { effect: o, fragment: l });
|
|
2499
2408
|
} else
|
|
2500
|
-
|
|
2409
|
+
ne(o);
|
|
2501
2410
|
this.#u.delete(s), this.#t.delete(s);
|
|
2502
2411
|
};
|
|
2503
2412
|
this.#i || !n ? (this.#u.add(s), At(o, a, !1)) : a();
|
|
@@ -2511,7 +2420,7 @@ class wa {
|
|
|
2511
2420
|
this.#e.delete(t);
|
|
2512
2421
|
const r = Array.from(this.#e.values());
|
|
2513
2422
|
for (const [n, i] of this.#r)
|
|
2514
|
-
r.includes(n) || (
|
|
2423
|
+
r.includes(n) || (ne(i.effect), this.#r.delete(n));
|
|
2515
2424
|
};
|
|
2516
2425
|
/**
|
|
2517
2426
|
*
|
|
@@ -2522,7 +2431,7 @@ class wa {
|
|
|
2522
2431
|
var n = (
|
|
2523
2432
|
/** @type {Batch} */
|
|
2524
2433
|
$
|
|
2525
|
-
), i =
|
|
2434
|
+
), i = Ws();
|
|
2526
2435
|
if (r && !this.#t.has(t) && !this.#r.has(t))
|
|
2527
2436
|
if (i) {
|
|
2528
2437
|
var s = document.createDocumentFragment(), o = Me();
|
|
@@ -2542,21 +2451,21 @@ class wa {
|
|
|
2542
2451
|
a === t ? n.unskip_effect(u.effect) : n.skip_effect(u.effect);
|
|
2543
2452
|
n.oncommit(this.#a), n.ondiscard(this.#n);
|
|
2544
2453
|
} else
|
|
2545
|
-
|
|
2454
|
+
D && (this.anchor = M), this.#a(n);
|
|
2546
2455
|
}
|
|
2547
2456
|
}
|
|
2548
|
-
function
|
|
2457
|
+
function ya(e, t, r = !1) {
|
|
2549
2458
|
var n;
|
|
2550
|
-
|
|
2551
|
-
var i = new
|
|
2459
|
+
D && (n = M, Vr());
|
|
2460
|
+
var i = new ga(e), s = r ? at : 0;
|
|
2552
2461
|
function o(a, u) {
|
|
2553
|
-
if (
|
|
2462
|
+
if (D) {
|
|
2554
2463
|
var l = ys(
|
|
2555
2464
|
/** @type {TemplateNode} */
|
|
2556
2465
|
n
|
|
2557
2466
|
);
|
|
2558
2467
|
if (a !== parseInt(l.substring(1))) {
|
|
2559
|
-
var f =
|
|
2468
|
+
var f = Gn();
|
|
2560
2469
|
me(f), i.anchor = f, et(!1), i.ensure(a, u), et(!0);
|
|
2561
2470
|
return;
|
|
2562
2471
|
}
|
|
@@ -2570,9 +2479,9 @@ function Sa(e, t, r = !1) {
|
|
|
2570
2479
|
}), a || o(-1, null);
|
|
2571
2480
|
}, s);
|
|
2572
2481
|
}
|
|
2573
|
-
function
|
|
2574
|
-
|
|
2575
|
-
e =
|
|
2482
|
+
function Ea(e, t) {
|
|
2483
|
+
Qs(() => {
|
|
2484
|
+
e = H?.parent?.nodes?.start ?? e;
|
|
2576
2485
|
var r = e.getRootNode(), n = (
|
|
2577
2486
|
/** @type {ShadowRoot} */
|
|
2578
2487
|
r.host ? (
|
|
@@ -2590,6 +2499,123 @@ function Ta(e, t) {
|
|
|
2590
2499
|
}
|
|
2591
2500
|
});
|
|
2592
2501
|
}
|
|
2502
|
+
function rn(e, t, r) {
|
|
2503
|
+
if (e == null)
|
|
2504
|
+
return t(void 0), r && r(void 0), $e;
|
|
2505
|
+
const n = Si(
|
|
2506
|
+
() => e.subscribe(
|
|
2507
|
+
t,
|
|
2508
|
+
// @ts-expect-error
|
|
2509
|
+
r
|
|
2510
|
+
)
|
|
2511
|
+
);
|
|
2512
|
+
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
2513
|
+
}
|
|
2514
|
+
const Ke = [];
|
|
2515
|
+
function xa(e, t) {
|
|
2516
|
+
return {
|
|
2517
|
+
subscribe: ar(e, t).subscribe
|
|
2518
|
+
};
|
|
2519
|
+
}
|
|
2520
|
+
function ar(e, t = $e) {
|
|
2521
|
+
let r = null;
|
|
2522
|
+
const n = /* @__PURE__ */ new Set();
|
|
2523
|
+
function i(a) {
|
|
2524
|
+
if (Vn(e, a) && (e = a, r)) {
|
|
2525
|
+
const u = !Ke.length;
|
|
2526
|
+
for (const l of n)
|
|
2527
|
+
l[1](), Ke.push(l, e);
|
|
2528
|
+
if (u) {
|
|
2529
|
+
for (let l = 0; l < Ke.length; l += 2)
|
|
2530
|
+
Ke[l][0](Ke[l + 1]);
|
|
2531
|
+
Ke.length = 0;
|
|
2532
|
+
}
|
|
2533
|
+
}
|
|
2534
|
+
}
|
|
2535
|
+
function s(a) {
|
|
2536
|
+
i(a(
|
|
2537
|
+
/** @type {T} */
|
|
2538
|
+
e
|
|
2539
|
+
));
|
|
2540
|
+
}
|
|
2541
|
+
function o(a, u = $e) {
|
|
2542
|
+
const l = [a, u];
|
|
2543
|
+
return n.add(l), n.size === 1 && (r = t(i, s) || $e), a(
|
|
2544
|
+
/** @type {T} */
|
|
2545
|
+
e
|
|
2546
|
+
), () => {
|
|
2547
|
+
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
2548
|
+
};
|
|
2549
|
+
}
|
|
2550
|
+
return { set: i, update: s, subscribe: o };
|
|
2551
|
+
}
|
|
2552
|
+
function pt(e, t, r) {
|
|
2553
|
+
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
2554
|
+
if (!i.every(Boolean))
|
|
2555
|
+
throw new Error("derived() expects stores as input, got a falsy value");
|
|
2556
|
+
const s = t.length < 2;
|
|
2557
|
+
return xa(r, (o, a) => {
|
|
2558
|
+
let u = !1;
|
|
2559
|
+
const l = [];
|
|
2560
|
+
let f = 0, h = $e;
|
|
2561
|
+
const c = () => {
|
|
2562
|
+
if (f)
|
|
2563
|
+
return;
|
|
2564
|
+
h();
|
|
2565
|
+
const p = t(n ? l[0] : l, o, a);
|
|
2566
|
+
s ? o(p) : h = typeof p == "function" ? p : $e;
|
|
2567
|
+
}, d = i.map(
|
|
2568
|
+
(p, w) => rn(
|
|
2569
|
+
p,
|
|
2570
|
+
(P) => {
|
|
2571
|
+
l[w] = P, f &= ~(1 << w), u && c();
|
|
2572
|
+
},
|
|
2573
|
+
() => {
|
|
2574
|
+
f |= 1 << w;
|
|
2575
|
+
}
|
|
2576
|
+
)
|
|
2577
|
+
);
|
|
2578
|
+
return u = !0, c(), function() {
|
|
2579
|
+
In(d), h(), u = !1;
|
|
2580
|
+
};
|
|
2581
|
+
});
|
|
2582
|
+
}
|
|
2583
|
+
function wa(e) {
|
|
2584
|
+
let t;
|
|
2585
|
+
return rn(e, (r) => t = r)(), t;
|
|
2586
|
+
}
|
|
2587
|
+
let Pr = Symbol("unmounted");
|
|
2588
|
+
function Sa(e, t, r) {
|
|
2589
|
+
const n = r[t] ??= {
|
|
2590
|
+
store: null,
|
|
2591
|
+
source: /* @__PURE__ */ ri(void 0),
|
|
2592
|
+
unsubscribe: $e
|
|
2593
|
+
};
|
|
2594
|
+
if (n.store !== e && !(Pr in r))
|
|
2595
|
+
if (n.unsubscribe(), n.store = e ?? null, e == null)
|
|
2596
|
+
n.source.v = void 0, n.unsubscribe = $e;
|
|
2597
|
+
else {
|
|
2598
|
+
var i = !0;
|
|
2599
|
+
n.unsubscribe = rn(e, (s) => {
|
|
2600
|
+
i ? n.source.v = s : Y(n.source, s);
|
|
2601
|
+
}), i = !1;
|
|
2602
|
+
}
|
|
2603
|
+
return e && Pr in r ? wa(e) : O(n.source);
|
|
2604
|
+
}
|
|
2605
|
+
function Ta() {
|
|
2606
|
+
const e = {};
|
|
2607
|
+
function t() {
|
|
2608
|
+
ui(() => {
|
|
2609
|
+
for (var r in e)
|
|
2610
|
+
e[r].unsubscribe();
|
|
2611
|
+
it(e, Pr, {
|
|
2612
|
+
enumerable: !1,
|
|
2613
|
+
value: !0
|
|
2614
|
+
});
|
|
2615
|
+
});
|
|
2616
|
+
}
|
|
2617
|
+
return [e, t];
|
|
2618
|
+
}
|
|
2593
2619
|
function Ce(e, t, r, n) {
|
|
2594
2620
|
var i = (
|
|
2595
2621
|
/** @type {V} */
|
|
@@ -2608,16 +2634,16 @@ function Ce(e, t, r, n) {
|
|
|
2608
2634
|
};
|
|
2609
2635
|
var l = !1, f = /* @__PURE__ */ zr(() => (l = !1, u())), h = (
|
|
2610
2636
|
/** @type {Effect} */
|
|
2611
|
-
|
|
2637
|
+
H
|
|
2612
2638
|
);
|
|
2613
2639
|
return (
|
|
2614
2640
|
/** @type {() => V} */
|
|
2615
2641
|
function(c, d) {
|
|
2616
2642
|
if (arguments.length > 0) {
|
|
2617
2643
|
const p = d ? O(f) : c;
|
|
2618
|
-
return
|
|
2644
|
+
return Y(f, p), l = !0, i !== void 0 && (i = p), c;
|
|
2619
2645
|
}
|
|
2620
|
-
return Be && l || h.f &
|
|
2646
|
+
return Be && l || h.f & te ? f.v : O(f);
|
|
2621
2647
|
}
|
|
2622
2648
|
);
|
|
2623
2649
|
}
|
|
@@ -2649,11 +2675,11 @@ class Aa {
|
|
|
2649
2675
|
return o === ds ? !0 : (O(r.get(o) ?? n(o, Reflect.get(s, o))), Reflect.has(s, o));
|
|
2650
2676
|
},
|
|
2651
2677
|
set(s, o, a) {
|
|
2652
|
-
return
|
|
2678
|
+
return Y(r.get(o) ?? n(o, a), a), Reflect.set(s, o, a);
|
|
2653
2679
|
}
|
|
2654
2680
|
}
|
|
2655
2681
|
);
|
|
2656
|
-
this.#t = (t.hydrate ?
|
|
2682
|
+
this.#t = (t.hydrate ? _a : Ai)(t.component, {
|
|
2657
2683
|
target: t.target,
|
|
2658
2684
|
anchor: t.anchor,
|
|
2659
2685
|
props: i,
|
|
@@ -2663,7 +2689,7 @@ class Aa {
|
|
|
2663
2689
|
transformError: t.transformError
|
|
2664
2690
|
}), (!t?.props?.$$host || t.sync === !1) && Ae(), this.#e = i.$$events;
|
|
2665
2691
|
for (const s of Object.keys(this.#t))
|
|
2666
|
-
s === "$set" || s === "$destroy" || s === "$on" ||
|
|
2692
|
+
s === "$set" || s === "$destroy" || s === "$on" || it(this, s, {
|
|
2667
2693
|
get() {
|
|
2668
2694
|
return this.#t[s];
|
|
2669
2695
|
},
|
|
@@ -2677,7 +2703,7 @@ class Aa {
|
|
|
2677
2703
|
(s) => {
|
|
2678
2704
|
Object.assign(i, s);
|
|
2679
2705
|
}, this.#t.$destroy = () => {
|
|
2680
|
-
|
|
2706
|
+
ba(this.#t);
|
|
2681
2707
|
};
|
|
2682
2708
|
}
|
|
2683
2709
|
/** @param {Record<string, any>} props */
|
|
@@ -2785,7 +2811,7 @@ typeof HTMLElement == "function" && (Oi = class extends HTMLElement {
|
|
|
2785
2811
|
$$slots: t,
|
|
2786
2812
|
$$host: this
|
|
2787
2813
|
}
|
|
2788
|
-
}), this.$$me =
|
|
2814
|
+
}), this.$$me = Zs(() => {
|
|
2789
2815
|
fi(() => {
|
|
2790
2816
|
this.$$r = !0;
|
|
2791
2817
|
for (const n of Yt(this.$$c)) {
|
|
@@ -2884,7 +2910,7 @@ function Mi(e, t, r, n, i, s) {
|
|
|
2884
2910
|
}
|
|
2885
2911
|
};
|
|
2886
2912
|
return Yt(t).forEach((a) => {
|
|
2887
|
-
|
|
2913
|
+
it(o.prototype, a, {
|
|
2888
2914
|
get() {
|
|
2889
2915
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
2890
2916
|
},
|
|
@@ -2892,13 +2918,13 @@ function Mi(e, t, r, n, i, s) {
|
|
|
2892
2918
|
u = jt(a, u, t), this.$$d[a] = u;
|
|
2893
2919
|
var l = this.$$c;
|
|
2894
2920
|
if (l) {
|
|
2895
|
-
var f =
|
|
2921
|
+
var f = tt(l, a)?.get;
|
|
2896
2922
|
f ? l[a] = u : l.$set({ [a]: u });
|
|
2897
2923
|
}
|
|
2898
2924
|
}
|
|
2899
2925
|
});
|
|
2900
2926
|
}), n.forEach((a) => {
|
|
2901
|
-
|
|
2927
|
+
it(o.prototype, a, {
|
|
2902
2928
|
get() {
|
|
2903
2929
|
return this.$$c?.[a];
|
|
2904
2930
|
}
|
|
@@ -2934,15 +2960,15 @@ var Pa = { exports: {} };
|
|
|
2934
2960
|
(function(r, n) {
|
|
2935
2961
|
e.exports = n();
|
|
2936
2962
|
})(Ba, function() {
|
|
2937
|
-
var r = 1e3, n = 6e4, i = 36e5, s = "millisecond", o = "second", a = "minute", u = "hour", l = "day", f = "week", h = "month", c = "quarter", d = "year", p = "date",
|
|
2963
|
+
var r = 1e3, n = 6e4, i = 36e5, s = "millisecond", o = "second", a = "minute", u = "hour", l = "day", f = "week", h = "month", c = "quarter", d = "year", p = "date", w = "Invalid Date", P = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, G = /\[([^\]]+)]|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, X = { 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(y) {
|
|
2938
2964
|
var _ = ["th", "st", "nd", "rd"], v = y % 100;
|
|
2939
2965
|
return "[" + y + (_[(v - 20) % 10] || _[v] || _[0]) + "]";
|
|
2940
|
-
} },
|
|
2966
|
+
} }, U = function(y, _, v) {
|
|
2941
2967
|
var g = String(y);
|
|
2942
2968
|
return !g || g.length >= _ ? y : "" + Array(_ + 1 - g.length).join(v) + y;
|
|
2943
|
-
}, Se = { s:
|
|
2969
|
+
}, Se = { s: U, z: function(y) {
|
|
2944
2970
|
var _ = -y.utcOffset(), v = Math.abs(_), g = Math.floor(v / 60), m = v % 60;
|
|
2945
|
-
return (_ <= 0 ? "+" : "-") +
|
|
2971
|
+
return (_ <= 0 ? "+" : "-") + U(g, 2, "0") + ":" + U(m, 2, "0");
|
|
2946
2972
|
}, m: function y(_, v) {
|
|
2947
2973
|
if (_.date() < v.date()) return -y(v, _);
|
|
2948
2974
|
var g = 12 * (v.year() - _.year()) + (v.month() - _.month()), m = _.clone().add(g, h), E = v - m < 0, x = _.clone().add(g + (E ? -1 : 1), h);
|
|
@@ -2955,7 +2981,7 @@ var Pa = { exports: {} };
|
|
|
2955
2981
|
return y === void 0;
|
|
2956
2982
|
} }, Z = "en", J = {};
|
|
2957
2983
|
J[Z] = X;
|
|
2958
|
-
var Le = "$isDayjsObject",
|
|
2984
|
+
var Le = "$isDayjsObject", _t = function(y) {
|
|
2959
2985
|
return y instanceof R || !(!y || !y[Le]);
|
|
2960
2986
|
}, Ze = function y(_, v, g) {
|
|
2961
2987
|
var m;
|
|
@@ -2970,13 +2996,13 @@ var Pa = { exports: {} };
|
|
|
2970
2996
|
J[B] = _, m = B;
|
|
2971
2997
|
}
|
|
2972
2998
|
return !g && m && (Z = m), m || !g && Z;
|
|
2973
|
-
},
|
|
2974
|
-
if (
|
|
2999
|
+
}, F = function(y, _) {
|
|
3000
|
+
if (_t(y)) return y.clone();
|
|
2975
3001
|
var v = typeof _ == "object" ? _ : {};
|
|
2976
3002
|
return v.date = y, v.args = arguments, new R(v);
|
|
2977
3003
|
}, b = Se;
|
|
2978
|
-
b.l = Ze, b.i =
|
|
2979
|
-
return
|
|
3004
|
+
b.l = Ze, b.i = _t, b.w = function(y, _) {
|
|
3005
|
+
return F(y, { locale: _.$L, utc: _.$u, x: _.$x, $offset: _.$offset });
|
|
2980
3006
|
};
|
|
2981
3007
|
var R = function() {
|
|
2982
3008
|
function y(v) {
|
|
@@ -3004,14 +3030,14 @@ var Pa = { exports: {} };
|
|
|
3004
3030
|
}, _.$utils = function() {
|
|
3005
3031
|
return b;
|
|
3006
3032
|
}, _.isValid = function() {
|
|
3007
|
-
return this.$d.toString() !==
|
|
3033
|
+
return this.$d.toString() !== w;
|
|
3008
3034
|
}, _.isSame = function(v, g) {
|
|
3009
|
-
var m =
|
|
3035
|
+
var m = F(v);
|
|
3010
3036
|
return this.startOf(g) <= m && m <= this.endOf(g);
|
|
3011
3037
|
}, _.isAfter = function(v, g) {
|
|
3012
|
-
return
|
|
3038
|
+
return F(v) < this.startOf(g);
|
|
3013
3039
|
}, _.isBefore = function(v, g) {
|
|
3014
|
-
return this.endOf(g) <
|
|
3040
|
+
return this.endOf(g) < F(v);
|
|
3015
3041
|
}, _.$g = function(v, g, m) {
|
|
3016
3042
|
return b.u(v) ? this[g] : this.set(m, v);
|
|
3017
3043
|
}, _.unix = function() {
|
|
@@ -3024,15 +3050,15 @@ var Pa = { exports: {} };
|
|
|
3024
3050
|
return E ? ke : ke.endOf(l);
|
|
3025
3051
|
}, I = function(Ue, K) {
|
|
3026
3052
|
return b.w(m.toDate()[Ue].apply(m.toDate("s"), (E ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(K)), m);
|
|
3027
|
-
}, W = this.$W,
|
|
3053
|
+
}, W = this.$W, z = this.$M, se = this.$D, Je = "set" + (this.$u ? "UTC" : "");
|
|
3028
3054
|
switch (x) {
|
|
3029
3055
|
case d:
|
|
3030
3056
|
return E ? B(1, 0) : B(31, 11);
|
|
3031
3057
|
case h:
|
|
3032
|
-
return E ? B(1,
|
|
3058
|
+
return E ? B(1, z) : B(0, z + 1);
|
|
3033
3059
|
case f:
|
|
3034
|
-
var De = this.$locale().weekStart || 0,
|
|
3035
|
-
return B(E ? se -
|
|
3060
|
+
var De = this.$locale().weekStart || 0, bt = (W < De ? W + 7 : W) - De;
|
|
3061
|
+
return B(E ? se - bt : se + (6 - bt), z);
|
|
3036
3062
|
case l:
|
|
3037
3063
|
case p:
|
|
3038
3064
|
return I(Je + "Hours", 0);
|
|
@@ -3061,9 +3087,9 @@ var Pa = { exports: {} };
|
|
|
3061
3087
|
}, _.add = function(v, g) {
|
|
3062
3088
|
var m, E = this;
|
|
3063
3089
|
v = Number(v);
|
|
3064
|
-
var x = b.p(g), B = function(
|
|
3065
|
-
var se =
|
|
3066
|
-
return b.w(se.date(se.date() + Math.round(
|
|
3090
|
+
var x = b.p(g), B = function(z) {
|
|
3091
|
+
var se = F(E);
|
|
3092
|
+
return b.w(se.date(se.date() + Math.round(z * v)), E);
|
|
3067
3093
|
};
|
|
3068
3094
|
if (x === h) return this.set(h, this.$M + v);
|
|
3069
3095
|
if (x === d) return this.set(d, this.$y + v);
|
|
@@ -3075,18 +3101,18 @@ var Pa = { exports: {} };
|
|
|
3075
3101
|
return this.add(-1 * v, g);
|
|
3076
3102
|
}, _.format = function(v) {
|
|
3077
3103
|
var g = this, m = this.$locale();
|
|
3078
|
-
if (!this.isValid()) return m.invalidDate ||
|
|
3079
|
-
var E = v || "YYYY-MM-DDTHH:mm:ssZ", x = b.z(this), B = this.$H, I = this.$m, W = this.$M,
|
|
3080
|
-
return K && (K[ke] || K(g, E)) ||
|
|
3081
|
-
},
|
|
3104
|
+
if (!this.isValid()) return m.invalidDate || w;
|
|
3105
|
+
var E = v || "YYYY-MM-DDTHH:mm:ssZ", x = b.z(this), B = this.$H, I = this.$m, W = this.$M, z = m.weekdays, se = m.months, Je = m.meridiem, De = function(K, ke, gt, Rt) {
|
|
3106
|
+
return K && (K[ke] || K(g, E)) || gt[ke].slice(0, Rt);
|
|
3107
|
+
}, bt = function(K) {
|
|
3082
3108
|
return b.s(B % 12 || 12, K, "0");
|
|
3083
|
-
}, Ue = Je || function(K, ke,
|
|
3109
|
+
}, Ue = Je || function(K, ke, gt) {
|
|
3084
3110
|
var Rt = K < 12 ? "AM" : "PM";
|
|
3085
|
-
return
|
|
3111
|
+
return gt ? Rt.toLowerCase() : Rt;
|
|
3086
3112
|
};
|
|
3087
3113
|
return E.replace(G, function(K, ke) {
|
|
3088
|
-
return ke || function(
|
|
3089
|
-
switch (
|
|
3114
|
+
return ke || function(gt) {
|
|
3115
|
+
switch (gt) {
|
|
3090
3116
|
case "YY":
|
|
3091
3117
|
return String(g.$y).slice(-2);
|
|
3092
3118
|
case "YYYY":
|
|
@@ -3106,19 +3132,19 @@ var Pa = { exports: {} };
|
|
|
3106
3132
|
case "d":
|
|
3107
3133
|
return String(g.$W);
|
|
3108
3134
|
case "dd":
|
|
3109
|
-
return De(m.weekdaysMin, g.$W,
|
|
3135
|
+
return De(m.weekdaysMin, g.$W, z, 2);
|
|
3110
3136
|
case "ddd":
|
|
3111
|
-
return De(m.weekdaysShort, g.$W,
|
|
3137
|
+
return De(m.weekdaysShort, g.$W, z, 3);
|
|
3112
3138
|
case "dddd":
|
|
3113
|
-
return
|
|
3139
|
+
return z[g.$W];
|
|
3114
3140
|
case "H":
|
|
3115
3141
|
return String(B);
|
|
3116
3142
|
case "HH":
|
|
3117
3143
|
return b.s(B, 2, "0");
|
|
3118
3144
|
case "h":
|
|
3119
|
-
return
|
|
3145
|
+
return bt(1);
|
|
3120
3146
|
case "hh":
|
|
3121
|
-
return
|
|
3147
|
+
return bt(2);
|
|
3122
3148
|
case "a":
|
|
3123
3149
|
return Ue(B, I, !0);
|
|
3124
3150
|
case "A":
|
|
@@ -3142,7 +3168,7 @@ var Pa = { exports: {} };
|
|
|
3142
3168
|
}, _.utcOffset = function() {
|
|
3143
3169
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
3144
3170
|
}, _.diff = function(v, g, m) {
|
|
3145
|
-
var E, x = this, B = b.p(g), I =
|
|
3171
|
+
var E, x = this, B = b.p(g), I = F(v), W = (I.utcOffset() - this.utcOffset()) * n, z = this - I, se = function() {
|
|
3146
3172
|
return b.m(x, I);
|
|
3147
3173
|
};
|
|
3148
3174
|
switch (B) {
|
|
@@ -3156,22 +3182,22 @@ var Pa = { exports: {} };
|
|
|
3156
3182
|
E = se() / 3;
|
|
3157
3183
|
break;
|
|
3158
3184
|
case f:
|
|
3159
|
-
E = (
|
|
3185
|
+
E = (z - W) / 6048e5;
|
|
3160
3186
|
break;
|
|
3161
3187
|
case l:
|
|
3162
|
-
E = (
|
|
3188
|
+
E = (z - W) / 864e5;
|
|
3163
3189
|
break;
|
|
3164
3190
|
case u:
|
|
3165
|
-
E =
|
|
3191
|
+
E = z / i;
|
|
3166
3192
|
break;
|
|
3167
3193
|
case a:
|
|
3168
|
-
E =
|
|
3194
|
+
E = z / n;
|
|
3169
3195
|
break;
|
|
3170
3196
|
case o:
|
|
3171
|
-
E =
|
|
3197
|
+
E = z / r;
|
|
3172
3198
|
break;
|
|
3173
3199
|
default:
|
|
3174
|
-
E =
|
|
3200
|
+
E = z;
|
|
3175
3201
|
}
|
|
3176
3202
|
return m ? E : b.a(E);
|
|
3177
3203
|
}, _.daysInMonth = function() {
|
|
@@ -3194,15 +3220,15 @@ var Pa = { exports: {} };
|
|
|
3194
3220
|
return this.$d.toUTCString();
|
|
3195
3221
|
}, y;
|
|
3196
3222
|
}(), Pe = R.prototype;
|
|
3197
|
-
return
|
|
3223
|
+
return F.prototype = Pe, [["$ms", s], ["$s", o], ["$m", a], ["$H", u], ["$W", l], ["$M", h], ["$y", d], ["$D", p]].forEach(function(y) {
|
|
3198
3224
|
Pe[y[1]] = function(_) {
|
|
3199
3225
|
return this.$g(_, y[0], y[1]);
|
|
3200
3226
|
};
|
|
3201
|
-
}),
|
|
3202
|
-
return y.$i || (y(_, R,
|
|
3203
|
-
},
|
|
3204
|
-
return
|
|
3205
|
-
},
|
|
3227
|
+
}), F.extend = function(y, _) {
|
|
3228
|
+
return y.$i || (y(_, R, F), y.$i = !0), F;
|
|
3229
|
+
}, F.locale = Ze, F.isDayjs = _t, F.unix = function(y) {
|
|
3230
|
+
return F(1e3 * y);
|
|
3231
|
+
}, F.en = J[Z], F.Ls = J, F.p = {}, F;
|
|
3206
3232
|
});
|
|
3207
3233
|
})(Pa);
|
|
3208
3234
|
const ka = (e, t = 2) => {
|
|
@@ -3247,7 +3273,7 @@ function Wa(e) {
|
|
|
3247
3273
|
return Array.isArray(e) ? [] : {};
|
|
3248
3274
|
}
|
|
3249
3275
|
function Mt(e, t) {
|
|
3250
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
3276
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ft(Wa(e), e, t) : e;
|
|
3251
3277
|
}
|
|
3252
3278
|
function Ya(e, t, r) {
|
|
3253
3279
|
return e.concat(t).map(function(n) {
|
|
@@ -3256,16 +3282,16 @@ function Ya(e, t, r) {
|
|
|
3256
3282
|
}
|
|
3257
3283
|
function za(e, t) {
|
|
3258
3284
|
if (!t.customMerge)
|
|
3259
|
-
return
|
|
3285
|
+
return ft;
|
|
3260
3286
|
var r = t.customMerge(e);
|
|
3261
|
-
return typeof r == "function" ? r :
|
|
3287
|
+
return typeof r == "function" ? r : ft;
|
|
3262
3288
|
}
|
|
3263
3289
|
function qa(e) {
|
|
3264
3290
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
3265
3291
|
return Object.propertyIsEnumerable.call(e, t);
|
|
3266
3292
|
}) : [];
|
|
3267
3293
|
}
|
|
3268
|
-
function
|
|
3294
|
+
function gn(e) {
|
|
3269
3295
|
return Object.keys(e).concat(qa(e));
|
|
3270
3296
|
}
|
|
3271
3297
|
function Ni(e, t) {
|
|
@@ -3280,37 +3306,37 @@ function Za(e, t) {
|
|
|
3280
3306
|
}
|
|
3281
3307
|
function Ja(e, t, r) {
|
|
3282
3308
|
var n = {};
|
|
3283
|
-
return r.isMergeableObject(e) &&
|
|
3309
|
+
return r.isMergeableObject(e) && gn(e).forEach(function(i) {
|
|
3284
3310
|
n[i] = Mt(e[i], r);
|
|
3285
|
-
}),
|
|
3311
|
+
}), gn(t).forEach(function(i) {
|
|
3286
3312
|
Za(e, i) || (Ni(e, i) && r.isMergeableObject(t[i]) ? n[i] = za(i, r)(e[i], t[i], r) : n[i] = Mt(t[i], r));
|
|
3287
3313
|
}), n;
|
|
3288
3314
|
}
|
|
3289
|
-
function
|
|
3315
|
+
function ft(e, t, r) {
|
|
3290
3316
|
r = r || {}, r.arrayMerge = r.arrayMerge || Ya, r.isMergeableObject = r.isMergeableObject || Ua, r.cloneUnlessOtherwiseSpecified = Mt;
|
|
3291
3317
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
3292
3318
|
return s ? n ? r.arrayMerge(e, t, r) : Ja(e, t, r) : Mt(t, r);
|
|
3293
3319
|
}
|
|
3294
|
-
|
|
3320
|
+
ft.all = function(t, r) {
|
|
3295
3321
|
if (!Array.isArray(t))
|
|
3296
3322
|
throw new Error("first argument should be an array");
|
|
3297
3323
|
return t.reduce(function(n, i) {
|
|
3298
|
-
return
|
|
3324
|
+
return ft(n, i, r);
|
|
3299
3325
|
}, {});
|
|
3300
3326
|
};
|
|
3301
|
-
var Qa =
|
|
3327
|
+
var Qa = ft, Ka = Qa;
|
|
3302
3328
|
const eo = /* @__PURE__ */ Na(Ka);
|
|
3303
|
-
var
|
|
3304
|
-
return
|
|
3329
|
+
var kr = function(e, t) {
|
|
3330
|
+
return kr = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
3305
3331
|
r.__proto__ = n;
|
|
3306
3332
|
} || function(r, n) {
|
|
3307
3333
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
3308
|
-
},
|
|
3334
|
+
}, kr(e, t);
|
|
3309
3335
|
};
|
|
3310
3336
|
function or(e, t) {
|
|
3311
3337
|
if (typeof t != "function" && t !== null)
|
|
3312
3338
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
3313
|
-
|
|
3339
|
+
kr(e, t);
|
|
3314
3340
|
function r() {
|
|
3315
3341
|
this.constructor = e;
|
|
3316
3342
|
}
|
|
@@ -3395,19 +3421,19 @@ var ao = function() {
|
|
|
3395
3421
|
return t;
|
|
3396
3422
|
}, Kt.apply(this, arguments);
|
|
3397
3423
|
};
|
|
3398
|
-
var
|
|
3424
|
+
var S;
|
|
3399
3425
|
(function(e) {
|
|
3400
3426
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
3401
|
-
})(
|
|
3427
|
+
})(S || (S = {}));
|
|
3402
3428
|
var N;
|
|
3403
3429
|
(function(e) {
|
|
3404
3430
|
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";
|
|
3405
3431
|
})(N || (N = {}));
|
|
3406
|
-
var
|
|
3432
|
+
var ht;
|
|
3407
3433
|
(function(e) {
|
|
3408
3434
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
3409
|
-
})(
|
|
3410
|
-
function
|
|
3435
|
+
})(ht || (ht = {}));
|
|
3436
|
+
function yn(e) {
|
|
3411
3437
|
return e.type === N.literal;
|
|
3412
3438
|
}
|
|
3413
3439
|
function lo(e) {
|
|
@@ -3435,10 +3461,10 @@ function Ui(e) {
|
|
|
3435
3461
|
return e.type === N.tag;
|
|
3436
3462
|
}
|
|
3437
3463
|
function Fi(e) {
|
|
3438
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
3464
|
+
return !!(e && typeof e == "object" && e.type === ht.number);
|
|
3439
3465
|
}
|
|
3440
|
-
function
|
|
3441
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
3466
|
+
function Cr(e) {
|
|
3467
|
+
return !!(e && typeof e == "object" && e.type === ht.dateTime);
|
|
3442
3468
|
}
|
|
3443
3469
|
var Gi = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ho = /(?:[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;
|
|
3444
3470
|
function co(e) {
|
|
@@ -3563,8 +3589,8 @@ function vo(e) {
|
|
|
3563
3589
|
function mo(e) {
|
|
3564
3590
|
return e.replace(/^(.*?)-/, "");
|
|
3565
3591
|
}
|
|
3566
|
-
var
|
|
3567
|
-
function
|
|
3592
|
+
var En = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ji = /^(@+)?(\+|#+)?[rs]?$/g, _o = /(\*)(0+)|(#+)(0+)|(0+)/g, Vi = /^(0+)$/;
|
|
3593
|
+
function xn(e) {
|
|
3568
3594
|
var t = {};
|
|
3569
3595
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ji, function(r, n, i) {
|
|
3570
3596
|
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)), "";
|
|
@@ -3624,7 +3650,7 @@ function bo(e) {
|
|
|
3624
3650
|
}
|
|
3625
3651
|
return t;
|
|
3626
3652
|
}
|
|
3627
|
-
function
|
|
3653
|
+
function wn(e) {
|
|
3628
3654
|
var t = {}, r = Xi(e);
|
|
3629
3655
|
return r || t;
|
|
3630
3656
|
}
|
|
@@ -3664,12 +3690,12 @@ function go(e) {
|
|
|
3664
3690
|
continue;
|
|
3665
3691
|
case "scientific":
|
|
3666
3692
|
t = k(k(k({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
3667
|
-
return k(k({}, u),
|
|
3693
|
+
return k(k({}, u), wn(l));
|
|
3668
3694
|
}, {}));
|
|
3669
3695
|
continue;
|
|
3670
3696
|
case "engineering":
|
|
3671
3697
|
t = k(k(k({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
3672
|
-
return k(k({}, u),
|
|
3698
|
+
return k(k({}, u), wn(l));
|
|
3673
3699
|
}, {}));
|
|
3674
3700
|
continue;
|
|
3675
3701
|
case "notation-simple":
|
|
@@ -3731,18 +3757,18 @@ function go(e) {
|
|
|
3731
3757
|
t.minimumIntegerDigits = i.stem.length;
|
|
3732
3758
|
continue;
|
|
3733
3759
|
}
|
|
3734
|
-
if (
|
|
3760
|
+
if (En.test(i.stem)) {
|
|
3735
3761
|
if (i.options.length > 1)
|
|
3736
3762
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
3737
|
-
i.stem.replace(
|
|
3763
|
+
i.stem.replace(En, function(u, l, f, h, c, d) {
|
|
3738
3764
|
return f === "*" ? t.minimumFractionDigits = l.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
3739
3765
|
});
|
|
3740
3766
|
var s = i.options[0];
|
|
3741
|
-
s === "w" ? t = k(k({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = k(k({}, t),
|
|
3767
|
+
s === "w" ? t = k(k({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = k(k({}, t), xn(s)));
|
|
3742
3768
|
continue;
|
|
3743
3769
|
}
|
|
3744
3770
|
if (ji.test(i.stem)) {
|
|
3745
|
-
t = k(k({}, t),
|
|
3771
|
+
t = k(k({}, t), xn(i.stem));
|
|
3746
3772
|
continue;
|
|
3747
3773
|
}
|
|
3748
3774
|
var o = Xi(i.stem);
|
|
@@ -5210,14 +5236,14 @@ function A(e, t) {
|
|
|
5210
5236
|
}
|
|
5211
5237
|
var So = !!String.prototype.startsWith && "_a".startsWith("a", 1), To = !!String.fromCodePoint, Ho = !!Object.fromEntries, Ao = !!String.prototype.codePointAt, $o = !!String.prototype.trimStart, Oo = !!String.prototype.trimEnd, Mo = !!Number.isSafeInteger, Bo = Mo ? Number.isSafeInteger : function(e) {
|
|
5212
5238
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
5213
|
-
},
|
|
5239
|
+
}, Rr = !0;
|
|
5214
5240
|
try {
|
|
5215
5241
|
var No = Yi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
5216
|
-
|
|
5242
|
+
Rr = ((gr = No.exec("a")) === null || gr === void 0 ? void 0 : gr[0]) === "a";
|
|
5217
5243
|
} catch {
|
|
5218
|
-
|
|
5244
|
+
Rr = !1;
|
|
5219
5245
|
}
|
|
5220
|
-
var
|
|
5246
|
+
var Sn = So ? (
|
|
5221
5247
|
// Native
|
|
5222
5248
|
function(t, r, n) {
|
|
5223
5249
|
return t.startsWith(r, n);
|
|
@@ -5227,7 +5253,7 @@ var wn = So ? (
|
|
|
5227
5253
|
function(t, r, n) {
|
|
5228
5254
|
return t.slice(n, n + r.length) === r;
|
|
5229
5255
|
}
|
|
5230
|
-
),
|
|
5256
|
+
), Ir = To ? String.fromCodePoint : (
|
|
5231
5257
|
// IE11
|
|
5232
5258
|
function() {
|
|
5233
5259
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -5239,7 +5265,7 @@ var wn = So ? (
|
|
|
5239
5265
|
}
|
|
5240
5266
|
return n;
|
|
5241
5267
|
}
|
|
5242
|
-
),
|
|
5268
|
+
), Tn = (
|
|
5243
5269
|
// native
|
|
5244
5270
|
Ho ? Object.fromEntries : (
|
|
5245
5271
|
// Ponyfill
|
|
@@ -5289,24 +5315,24 @@ var wn = So ? (
|
|
|
5289
5315
|
function Yi(e, t) {
|
|
5290
5316
|
return new RegExp(e, t);
|
|
5291
5317
|
}
|
|
5292
|
-
var
|
|
5293
|
-
if (
|
|
5294
|
-
var
|
|
5295
|
-
|
|
5318
|
+
var Lr;
|
|
5319
|
+
if (Rr) {
|
|
5320
|
+
var Hn = Yi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
5321
|
+
Lr = function(t, r) {
|
|
5296
5322
|
var n;
|
|
5297
|
-
|
|
5298
|
-
var i =
|
|
5323
|
+
Hn.lastIndex = r;
|
|
5324
|
+
var i = Hn.exec(t);
|
|
5299
5325
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
5300
5326
|
};
|
|
5301
5327
|
} else
|
|
5302
|
-
|
|
5328
|
+
Lr = function(t, r) {
|
|
5303
5329
|
for (var n = []; ; ) {
|
|
5304
5330
|
var i = Wi(t, r);
|
|
5305
5331
|
if (i === void 0 || zi(i) || Lo(i))
|
|
5306
5332
|
break;
|
|
5307
5333
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
5308
5334
|
}
|
|
5309
|
-
return
|
|
5335
|
+
return Ir.apply(void 0, n);
|
|
5310
5336
|
};
|
|
5311
5337
|
var Co = (
|
|
5312
5338
|
/** @class */
|
|
@@ -5338,8 +5364,8 @@ var Co = (
|
|
|
5338
5364
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
5339
5365
|
if (n)
|
|
5340
5366
|
break;
|
|
5341
|
-
return this.error(
|
|
5342
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
5367
|
+
return this.error(S.UNMATCHED_CLOSING_TAG, A(this.clonePosition(), this.clonePosition()));
|
|
5368
|
+
} else if (s === 60 && !this.ignoreTag && Dr(this.peek() || 0)) {
|
|
5343
5369
|
var o = this.parseTag(t, r);
|
|
5344
5370
|
if (o.err)
|
|
5345
5371
|
return o;
|
|
@@ -5372,10 +5398,10 @@ var Co = (
|
|
|
5372
5398
|
return s;
|
|
5373
5399
|
var o = s.val, a = this.clonePosition();
|
|
5374
5400
|
if (this.bumpIf("</")) {
|
|
5375
|
-
if (this.isEOF() || !
|
|
5376
|
-
return this.error(
|
|
5401
|
+
if (this.isEOF() || !Dr(this.char()))
|
|
5402
|
+
return this.error(S.INVALID_TAG, A(a, this.clonePosition()));
|
|
5377
5403
|
var u = this.clonePosition(), l = this.parseTagName();
|
|
5378
|
-
return i !== l ? this.error(
|
|
5404
|
+
return i !== l ? this.error(S.UNMATCHED_CLOSING_TAG, A(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
5379
5405
|
val: {
|
|
5380
5406
|
type: N.tag,
|
|
5381
5407
|
value: i,
|
|
@@ -5383,11 +5409,11 @@ var Co = (
|
|
|
5383
5409
|
location: A(n, this.clonePosition())
|
|
5384
5410
|
},
|
|
5385
5411
|
err: null
|
|
5386
|
-
} : this.error(
|
|
5412
|
+
} : this.error(S.INVALID_TAG, A(a, this.clonePosition())));
|
|
5387
5413
|
} else
|
|
5388
|
-
return this.error(
|
|
5414
|
+
return this.error(S.UNCLOSED_TAG, A(n, this.clonePosition()));
|
|
5389
5415
|
} else
|
|
5390
|
-
return this.error(
|
|
5416
|
+
return this.error(S.INVALID_TAG, A(n, this.clonePosition()));
|
|
5391
5417
|
}, e.prototype.parseTagName = function() {
|
|
5392
5418
|
var t = this.offset();
|
|
5393
5419
|
for (this.bump(); !this.isEOF() && Io(this.char()); )
|
|
@@ -5453,23 +5479,23 @@ var Co = (
|
|
|
5453
5479
|
r.push(n);
|
|
5454
5480
|
this.bump();
|
|
5455
5481
|
}
|
|
5456
|
-
return
|
|
5482
|
+
return Ir.apply(void 0, r);
|
|
5457
5483
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
5458
5484
|
if (this.isEOF())
|
|
5459
5485
|
return null;
|
|
5460
5486
|
var n = this.char();
|
|
5461
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
5487
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ir(n));
|
|
5462
5488
|
}, e.prototype.parseArgument = function(t, r) {
|
|
5463
5489
|
var n = this.clonePosition();
|
|
5464
5490
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
5465
|
-
return this.error(
|
|
5491
|
+
return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE, A(n, this.clonePosition()));
|
|
5466
5492
|
if (this.char() === 125)
|
|
5467
|
-
return this.bump(), this.error(
|
|
5493
|
+
return this.bump(), this.error(S.EMPTY_ARGUMENT, A(n, this.clonePosition()));
|
|
5468
5494
|
var i = this.parseIdentifierIfPossible().value;
|
|
5469
5495
|
if (!i)
|
|
5470
|
-
return this.error(
|
|
5496
|
+
return this.error(S.MALFORMED_ARGUMENT, A(n, this.clonePosition()));
|
|
5471
5497
|
if (this.bumpSpace(), this.isEOF())
|
|
5472
|
-
return this.error(
|
|
5498
|
+
return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE, A(n, this.clonePosition()));
|
|
5473
5499
|
switch (this.char()) {
|
|
5474
5500
|
case 125:
|
|
5475
5501
|
return this.bump(), {
|
|
@@ -5482,12 +5508,12 @@ var Co = (
|
|
|
5482
5508
|
err: null
|
|
5483
5509
|
};
|
|
5484
5510
|
case 44:
|
|
5485
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
5511
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE, A(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
5486
5512
|
default:
|
|
5487
|
-
return this.error(
|
|
5513
|
+
return this.error(S.MALFORMED_ARGUMENT, A(n, this.clonePosition()));
|
|
5488
5514
|
}
|
|
5489
5515
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
5490
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
5516
|
+
var t = this.clonePosition(), r = this.offset(), n = Lr(this.message, r), i = r + n.length;
|
|
5491
5517
|
this.bumpTo(i);
|
|
5492
5518
|
var s = this.clonePosition(), o = A(t, s);
|
|
5493
5519
|
return { value: n, location: o };
|
|
@@ -5495,7 +5521,7 @@ var Co = (
|
|
|
5495
5521
|
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
5496
5522
|
switch (a) {
|
|
5497
5523
|
case "":
|
|
5498
|
-
return this.error(
|
|
5524
|
+
return this.error(S.EXPECT_ARGUMENT_TYPE, A(o, u));
|
|
5499
5525
|
case "number":
|
|
5500
5526
|
case "date":
|
|
5501
5527
|
case "time": {
|
|
@@ -5508,35 +5534,35 @@ var Co = (
|
|
|
5508
5534
|
return h;
|
|
5509
5535
|
var c = ko(h.val);
|
|
5510
5536
|
if (c.length === 0)
|
|
5511
|
-
return this.error(
|
|
5537
|
+
return this.error(S.EXPECT_ARGUMENT_STYLE, A(this.clonePosition(), this.clonePosition()));
|
|
5512
5538
|
var d = A(f, this.clonePosition());
|
|
5513
5539
|
l = { style: c, styleLocation: d };
|
|
5514
5540
|
}
|
|
5515
5541
|
var p = this.tryParseArgumentClose(i);
|
|
5516
5542
|
if (p.err)
|
|
5517
5543
|
return p;
|
|
5518
|
-
var
|
|
5519
|
-
if (l &&
|
|
5544
|
+
var w = A(i, this.clonePosition());
|
|
5545
|
+
if (l && Sn(l?.style, "::", 0)) {
|
|
5520
5546
|
var P = Po(l.style.slice(2));
|
|
5521
5547
|
if (a === "number") {
|
|
5522
5548
|
var h = this.parseNumberSkeletonFromString(P, l.styleLocation);
|
|
5523
5549
|
return h.err ? h : {
|
|
5524
|
-
val: { type: N.number, value: n, location:
|
|
5550
|
+
val: { type: N.number, value: n, location: w, style: h.val },
|
|
5525
5551
|
err: null
|
|
5526
5552
|
};
|
|
5527
5553
|
} else {
|
|
5528
5554
|
if (P.length === 0)
|
|
5529
|
-
return this.error(
|
|
5555
|
+
return this.error(S.EXPECT_DATE_TIME_SKELETON, w);
|
|
5530
5556
|
var G = P;
|
|
5531
5557
|
this.locale && (G = yo(P, this.locale));
|
|
5532
5558
|
var c = {
|
|
5533
|
-
type:
|
|
5559
|
+
type: ht.dateTime,
|
|
5534
5560
|
pattern: G,
|
|
5535
5561
|
location: l.styleLocation,
|
|
5536
5562
|
parsedOptions: this.shouldParseSkeletons ? co(G) : {}
|
|
5537
5563
|
}, X = a === "date" ? N.date : N.time;
|
|
5538
5564
|
return {
|
|
5539
|
-
val: { type: X, value: n, location:
|
|
5565
|
+
val: { type: X, value: n, location: w, style: c },
|
|
5540
5566
|
err: null
|
|
5541
5567
|
};
|
|
5542
5568
|
}
|
|
@@ -5545,7 +5571,7 @@ var Co = (
|
|
|
5545
5571
|
val: {
|
|
5546
5572
|
type: a === "number" ? N.number : a === "date" ? N.date : N.time,
|
|
5547
5573
|
value: n,
|
|
5548
|
-
location:
|
|
5574
|
+
location: w,
|
|
5549
5575
|
style: (s = l?.style) !== null && s !== void 0 ? s : null
|
|
5550
5576
|
},
|
|
5551
5577
|
err: null
|
|
@@ -5554,16 +5580,16 @@ var Co = (
|
|
|
5554
5580
|
case "plural":
|
|
5555
5581
|
case "selectordinal":
|
|
5556
5582
|
case "select": {
|
|
5557
|
-
var
|
|
5583
|
+
var U = this.clonePosition();
|
|
5558
5584
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
5559
|
-
return this.error(
|
|
5585
|
+
return this.error(S.EXPECT_SELECT_ARGUMENT_OPTIONS, A(U, Kt({}, U)));
|
|
5560
5586
|
this.bumpSpace();
|
|
5561
5587
|
var Se = this.parseIdentifierIfPossible(), Z = 0;
|
|
5562
5588
|
if (a !== "select" && Se.value === "offset") {
|
|
5563
5589
|
if (!this.bumpIf(":"))
|
|
5564
|
-
return this.error(
|
|
5590
|
+
return this.error(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, A(this.clonePosition(), this.clonePosition()));
|
|
5565
5591
|
this.bumpSpace();
|
|
5566
|
-
var h = this.tryParseDecimalInteger(
|
|
5592
|
+
var h = this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, S.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
5567
5593
|
if (h.err)
|
|
5568
5594
|
return h;
|
|
5569
5595
|
this.bumpSpace(), Se = this.parseIdentifierIfPossible(), Z = h.val;
|
|
@@ -5579,7 +5605,7 @@ var Co = (
|
|
|
5579
5605
|
val: {
|
|
5580
5606
|
type: N.select,
|
|
5581
5607
|
value: n,
|
|
5582
|
-
options:
|
|
5608
|
+
options: Tn(J.val),
|
|
5583
5609
|
location: Le
|
|
5584
5610
|
},
|
|
5585
5611
|
err: null
|
|
@@ -5587,7 +5613,7 @@ var Co = (
|
|
|
5587
5613
|
val: {
|
|
5588
5614
|
type: N.plural,
|
|
5589
5615
|
value: n,
|
|
5590
|
-
options:
|
|
5616
|
+
options: Tn(J.val),
|
|
5591
5617
|
offset: Z,
|
|
5592
5618
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
5593
5619
|
location: Le
|
|
@@ -5596,10 +5622,10 @@ var Co = (
|
|
|
5596
5622
|
};
|
|
5597
5623
|
}
|
|
5598
5624
|
default:
|
|
5599
|
-
return this.error(
|
|
5625
|
+
return this.error(S.INVALID_ARGUMENT_TYPE, A(o, u));
|
|
5600
5626
|
}
|
|
5601
5627
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
5602
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
5628
|
+
return this.isEOF() || this.char() !== 125 ? this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE, A(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
5603
5629
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
5604
5630
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
5605
5631
|
var n = this.char();
|
|
@@ -5608,7 +5634,7 @@ var Co = (
|
|
|
5608
5634
|
this.bump();
|
|
5609
5635
|
var i = this.clonePosition();
|
|
5610
5636
|
if (!this.bumpUntil("'"))
|
|
5611
|
-
return this.error(
|
|
5637
|
+
return this.error(S.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, A(i, this.clonePosition()));
|
|
5612
5638
|
this.bump();
|
|
5613
5639
|
break;
|
|
5614
5640
|
}
|
|
@@ -5640,11 +5666,11 @@ var Co = (
|
|
|
5640
5666
|
try {
|
|
5641
5667
|
n = vo(t);
|
|
5642
5668
|
} catch {
|
|
5643
|
-
return this.error(
|
|
5669
|
+
return this.error(S.INVALID_NUMBER_SKELETON, r);
|
|
5644
5670
|
}
|
|
5645
5671
|
return {
|
|
5646
5672
|
val: {
|
|
5647
|
-
type:
|
|
5673
|
+
type: ht.number,
|
|
5648
5674
|
tokens: n,
|
|
5649
5675
|
location: r,
|
|
5650
5676
|
parsedOptions: this.shouldParseSkeletons ? go(n) : {}
|
|
@@ -5656,7 +5682,7 @@ var Co = (
|
|
|
5656
5682
|
if (l.length === 0) {
|
|
5657
5683
|
var h = this.clonePosition();
|
|
5658
5684
|
if (r !== "select" && this.bumpIf("=")) {
|
|
5659
|
-
var c = this.tryParseDecimalInteger(
|
|
5685
|
+
var c = this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_SELECTOR, S.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
5660
5686
|
if (c.err)
|
|
5661
5687
|
return c;
|
|
5662
5688
|
f = A(h, this.clonePosition()), l = this.message.slice(h.offset, this.offset());
|
|
@@ -5664,17 +5690,17 @@ var Co = (
|
|
|
5664
5690
|
break;
|
|
5665
5691
|
}
|
|
5666
5692
|
if (u.has(l))
|
|
5667
|
-
return this.error(r === "select" ?
|
|
5693
|
+
return this.error(r === "select" ? S.DUPLICATE_SELECT_ARGUMENT_SELECTOR : S.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
|
|
5668
5694
|
l === "other" && (o = !0), this.bumpSpace();
|
|
5669
5695
|
var d = this.clonePosition();
|
|
5670
5696
|
if (!this.bumpIf("{"))
|
|
5671
|
-
return this.error(r === "select" ?
|
|
5697
|
+
return this.error(r === "select" ? S.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : S.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, A(this.clonePosition(), this.clonePosition()));
|
|
5672
5698
|
var p = this.parseMessage(t + 1, r, n);
|
|
5673
5699
|
if (p.err)
|
|
5674
5700
|
return p;
|
|
5675
|
-
var
|
|
5676
|
-
if (
|
|
5677
|
-
return
|
|
5701
|
+
var w = this.tryParseArgumentClose(d);
|
|
5702
|
+
if (w.err)
|
|
5703
|
+
return w;
|
|
5678
5704
|
a.push([
|
|
5679
5705
|
l,
|
|
5680
5706
|
{
|
|
@@ -5683,7 +5709,7 @@ var Co = (
|
|
|
5683
5709
|
}
|
|
5684
5710
|
]), u.add(l), this.bumpSpace(), s = this.parseIdentifierIfPossible(), l = s.value, f = s.location;
|
|
5685
5711
|
}
|
|
5686
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
5712
|
+
return a.length === 0 ? this.error(r === "select" ? S.EXPECT_SELECT_ARGUMENT_SELECTOR : S.EXPECT_PLURAL_ARGUMENT_SELECTOR, A(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(S.MISSING_OTHER_CLAUSE, A(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
5687
5713
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
5688
5714
|
var n = 1, i = this.clonePosition();
|
|
5689
5715
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -5729,7 +5755,7 @@ var Co = (
|
|
|
5729
5755
|
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);
|
|
5730
5756
|
}
|
|
5731
5757
|
}, e.prototype.bumpIf = function(t) {
|
|
5732
|
-
if (
|
|
5758
|
+
if (Sn(this.message, t, this.offset())) {
|
|
5733
5759
|
for (var r = 0; r < t.length; r++)
|
|
5734
5760
|
this.bump();
|
|
5735
5761
|
return !0;
|
|
@@ -5761,11 +5787,11 @@ var Co = (
|
|
|
5761
5787
|
}, e;
|
|
5762
5788
|
}()
|
|
5763
5789
|
);
|
|
5764
|
-
function
|
|
5790
|
+
function Dr(e) {
|
|
5765
5791
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
5766
5792
|
}
|
|
5767
5793
|
function Ro(e) {
|
|
5768
|
-
return
|
|
5794
|
+
return Dr(e) || e === 47;
|
|
5769
5795
|
}
|
|
5770
5796
|
function Io(e) {
|
|
5771
5797
|
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;
|
|
@@ -5776,27 +5802,27 @@ function zi(e) {
|
|
|
5776
5802
|
function Lo(e) {
|
|
5777
5803
|
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;
|
|
5778
5804
|
}
|
|
5779
|
-
function
|
|
5805
|
+
function Ur(e) {
|
|
5780
5806
|
e.forEach(function(t) {
|
|
5781
5807
|
if (delete t.location, Li(t) || Di(t))
|
|
5782
5808
|
for (var r in t.options)
|
|
5783
|
-
delete t.options[r].location,
|
|
5784
|
-
else Ci(t) && Fi(t.style) || (Ri(t) || Ii(t)) &&
|
|
5809
|
+
delete t.options[r].location, Ur(t.options[r].value);
|
|
5810
|
+
else Ci(t) && Fi(t.style) || (Ri(t) || Ii(t)) && Cr(t.style) ? delete t.style.location : Ui(t) && Ur(t.children);
|
|
5785
5811
|
});
|
|
5786
5812
|
}
|
|
5787
5813
|
function Do(e, t) {
|
|
5788
5814
|
t === void 0 && (t = {}), t = Kt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
5789
5815
|
var r = new Co(e, t).parse();
|
|
5790
5816
|
if (r.err) {
|
|
5791
|
-
var n = SyntaxError(
|
|
5817
|
+
var n = SyntaxError(S[r.err.kind]);
|
|
5792
5818
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
5793
5819
|
}
|
|
5794
|
-
return t?.captureLocation ||
|
|
5820
|
+
return t?.captureLocation || Ur(r.val), r.val;
|
|
5795
5821
|
}
|
|
5796
|
-
var
|
|
5822
|
+
var ct;
|
|
5797
5823
|
(function(e) {
|
|
5798
5824
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
5799
|
-
})(
|
|
5825
|
+
})(ct || (ct = {}));
|
|
5800
5826
|
var ur = (
|
|
5801
5827
|
/** @class */
|
|
5802
5828
|
function(e) {
|
|
@@ -5809,12 +5835,12 @@ var ur = (
|
|
|
5809
5835
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
5810
5836
|
}, t;
|
|
5811
5837
|
}(Error)
|
|
5812
|
-
),
|
|
5838
|
+
), An = (
|
|
5813
5839
|
/** @class */
|
|
5814
5840
|
function(e) {
|
|
5815
5841
|
or(t, e);
|
|
5816
5842
|
function t(r, n, i, s) {
|
|
5817
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
5843
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ct.INVALID_VALUE, s) || this;
|
|
5818
5844
|
}
|
|
5819
5845
|
return t;
|
|
5820
5846
|
}(ur)
|
|
@@ -5823,7 +5849,7 @@ var ur = (
|
|
|
5823
5849
|
function(e) {
|
|
5824
5850
|
or(t, e);
|
|
5825
5851
|
function t(r, n, i) {
|
|
5826
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
5852
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ct.INVALID_VALUE, i) || this;
|
|
5827
5853
|
}
|
|
5828
5854
|
return t;
|
|
5829
5855
|
}(ur)
|
|
@@ -5832,7 +5858,7 @@ var ur = (
|
|
|
5832
5858
|
function(e) {
|
|
5833
5859
|
or(t, e);
|
|
5834
5860
|
function t(r, n) {
|
|
5835
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
5861
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ct.MISSING_VALUE, n) || this;
|
|
5836
5862
|
}
|
|
5837
5863
|
return t;
|
|
5838
5864
|
}(ur)
|
|
@@ -5850,7 +5876,7 @@ function jo(e) {
|
|
|
5850
5876
|
return typeof e == "function";
|
|
5851
5877
|
}
|
|
5852
5878
|
function Vt(e, t, r, n, i, s, o) {
|
|
5853
|
-
if (e.length === 1 &&
|
|
5879
|
+
if (e.length === 1 && yn(e[0]))
|
|
5854
5880
|
return [
|
|
5855
5881
|
{
|
|
5856
5882
|
type: Q.literal,
|
|
@@ -5859,7 +5885,7 @@ function Vt(e, t, r, n, i, s, o) {
|
|
|
5859
5885
|
];
|
|
5860
5886
|
for (var a = [], u = 0, l = e; u < l.length; u++) {
|
|
5861
5887
|
var f = l[u];
|
|
5862
|
-
if (
|
|
5888
|
+
if (yn(f)) {
|
|
5863
5889
|
a.push({
|
|
5864
5890
|
type: Q.literal,
|
|
5865
5891
|
value: f.value
|
|
@@ -5885,7 +5911,7 @@ function Vt(e, t, r, n, i, s, o) {
|
|
|
5885
5911
|
continue;
|
|
5886
5912
|
}
|
|
5887
5913
|
if (Ri(f)) {
|
|
5888
|
-
var d = typeof f.style == "string" ? n.date[f.style] :
|
|
5914
|
+
var d = typeof f.style == "string" ? n.date[f.style] : Cr(f.style) ? f.style.parsedOptions : void 0;
|
|
5889
5915
|
a.push({
|
|
5890
5916
|
type: Q.literal,
|
|
5891
5917
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
@@ -5893,7 +5919,7 @@ function Vt(e, t, r, n, i, s, o) {
|
|
|
5893
5919
|
continue;
|
|
5894
5920
|
}
|
|
5895
5921
|
if (Ii(f)) {
|
|
5896
|
-
var d = typeof f.style == "string" ? n.time[f.style] :
|
|
5922
|
+
var d = typeof f.style == "string" ? n.time[f.style] : Cr(f.style) ? f.style.parsedOptions : n.time.medium;
|
|
5897
5923
|
a.push({
|
|
5898
5924
|
type: Q.literal,
|
|
5899
5925
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
@@ -5909,9 +5935,9 @@ function Vt(e, t, r, n, i, s, o) {
|
|
|
5909
5935
|
continue;
|
|
5910
5936
|
}
|
|
5911
5937
|
if (Ui(f)) {
|
|
5912
|
-
var p = f.children,
|
|
5938
|
+
var p = f.children, w = f.value, P = i[w];
|
|
5913
5939
|
if (!jo(P))
|
|
5914
|
-
throw new Uo(
|
|
5940
|
+
throw new Uo(w, "function", o);
|
|
5915
5941
|
var G = Vt(p, t, r, n, i, s), X = P(G.map(function(Z) {
|
|
5916
5942
|
return Z.value;
|
|
5917
5943
|
}));
|
|
@@ -5923,25 +5949,25 @@ function Vt(e, t, r, n, i, s, o) {
|
|
|
5923
5949
|
}));
|
|
5924
5950
|
}
|
|
5925
5951
|
if (Li(f)) {
|
|
5926
|
-
var
|
|
5927
|
-
if (!
|
|
5928
|
-
throw new
|
|
5929
|
-
a.push.apply(a, Vt(
|
|
5952
|
+
var U = f.options[c] || f.options.other;
|
|
5953
|
+
if (!U)
|
|
5954
|
+
throw new An(f.value, c, Object.keys(f.options), o);
|
|
5955
|
+
a.push.apply(a, Vt(U.value, t, r, n, i));
|
|
5930
5956
|
continue;
|
|
5931
5957
|
}
|
|
5932
5958
|
if (Di(f)) {
|
|
5933
|
-
var
|
|
5934
|
-
if (!
|
|
5959
|
+
var U = f.options["=".concat(c)];
|
|
5960
|
+
if (!U) {
|
|
5935
5961
|
if (!Intl.PluralRules)
|
|
5936
5962
|
throw new ur(`Intl.PluralRules is not available in this environment.
|
|
5937
5963
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
5938
|
-
`,
|
|
5964
|
+
`, ct.MISSING_INTL_API, o);
|
|
5939
5965
|
var Se = r.getPluralRules(t, { type: f.pluralType }).select(c - (f.offset || 0));
|
|
5940
|
-
|
|
5966
|
+
U = f.options[Se] || f.options.other;
|
|
5941
5967
|
}
|
|
5942
|
-
if (!
|
|
5943
|
-
throw new
|
|
5944
|
-
a.push.apply(a, Vt(
|
|
5968
|
+
if (!U)
|
|
5969
|
+
throw new An(f.value, c, Object.keys(f.options), o);
|
|
5970
|
+
a.push.apply(a, Vt(U.value, t, r, n, i, c - (f.offset || 0)));
|
|
5945
5971
|
continue;
|
|
5946
5972
|
}
|
|
5947
5973
|
}
|
|
@@ -6148,13 +6174,13 @@ const Re = {}, qo = (e, t, r) => r && (t in Re || (Re[t] = {}), e in Re[t] || (R
|
|
|
6148
6174
|
return qo(e, t, s);
|
|
6149
6175
|
}
|
|
6150
6176
|
};
|
|
6151
|
-
let
|
|
6152
|
-
const
|
|
6177
|
+
let nn;
|
|
6178
|
+
const vt = ar({});
|
|
6153
6179
|
function Zo(e) {
|
|
6154
|
-
return
|
|
6180
|
+
return nn[e] || null;
|
|
6155
6181
|
}
|
|
6156
6182
|
function Zi(e) {
|
|
6157
|
-
return e in
|
|
6183
|
+
return e in nn;
|
|
6158
6184
|
}
|
|
6159
6185
|
function Jo(e, t) {
|
|
6160
6186
|
if (!Zi(e))
|
|
@@ -6173,13 +6199,13 @@ function Qo(e) {
|
|
|
6173
6199
|
}
|
|
6174
6200
|
}
|
|
6175
6201
|
function Ji(e, ...t) {
|
|
6176
|
-
delete Re[e],
|
|
6202
|
+
delete Re[e], vt.update((r) => (r[e] = eo.all([r[e] || {}, ...t]), r));
|
|
6177
6203
|
}
|
|
6178
|
-
|
|
6179
|
-
[
|
|
6204
|
+
pt(
|
|
6205
|
+
[vt],
|
|
6180
6206
|
([e]) => Object.keys(e)
|
|
6181
6207
|
);
|
|
6182
|
-
|
|
6208
|
+
vt.subscribe((e) => nn = e);
|
|
6183
6209
|
const Xt = {};
|
|
6184
6210
|
function Ko(e, t) {
|
|
6185
6211
|
Xt[e].delete(t), Xt[e].size === 0 && delete Xt[e];
|
|
@@ -6193,7 +6219,7 @@ function eu(e) {
|
|
|
6193
6219
|
return [t, r ? [...r] : []];
|
|
6194
6220
|
}).filter(([, t]) => t.length > 0);
|
|
6195
6221
|
}
|
|
6196
|
-
function
|
|
6222
|
+
function Fr(e) {
|
|
6197
6223
|
return e == null ? !1 : lr(e).some(
|
|
6198
6224
|
(t) => {
|
|
6199
6225
|
var r;
|
|
@@ -6206,20 +6232,20 @@ function tu(e, t) {
|
|
|
6206
6232
|
t.map((n) => (Ko(e, n), n().then((i) => i.default || i)))
|
|
6207
6233
|
).then((n) => Ji(e, ...n));
|
|
6208
6234
|
}
|
|
6209
|
-
const
|
|
6235
|
+
const yt = {};
|
|
6210
6236
|
function Ki(e) {
|
|
6211
|
-
if (!
|
|
6212
|
-
return e in
|
|
6237
|
+
if (!Fr(e))
|
|
6238
|
+
return e in yt ? yt[e] : Promise.resolve();
|
|
6213
6239
|
const t = eu(e);
|
|
6214
|
-
return
|
|
6240
|
+
return yt[e] = Promise.all(
|
|
6215
6241
|
t.map(
|
|
6216
6242
|
([r, n]) => tu(r, n)
|
|
6217
6243
|
)
|
|
6218
6244
|
).then(() => {
|
|
6219
|
-
if (
|
|
6245
|
+
if (Fr(e))
|
|
6220
6246
|
return Ki(e);
|
|
6221
|
-
delete
|
|
6222
|
-
}),
|
|
6247
|
+
delete yt[e];
|
|
6248
|
+
}), yt[e];
|
|
6223
6249
|
}
|
|
6224
6250
|
const ru = {
|
|
6225
6251
|
number: {
|
|
@@ -6258,36 +6284,36 @@ const ru = {
|
|
|
6258
6284
|
handleMissingMessage: void 0,
|
|
6259
6285
|
ignoreTag: !0
|
|
6260
6286
|
}, iu = nu;
|
|
6261
|
-
function
|
|
6287
|
+
function dt() {
|
|
6262
6288
|
return iu;
|
|
6263
6289
|
}
|
|
6264
|
-
const Er =
|
|
6265
|
-
var su = Object.defineProperty, au = Object.defineProperties, ou = Object.getOwnPropertyDescriptors,
|
|
6290
|
+
const Er = ar(!1);
|
|
6291
|
+
var su = Object.defineProperty, au = Object.defineProperties, ou = Object.getOwnPropertyDescriptors, $n = Object.getOwnPropertySymbols, uu = Object.prototype.hasOwnProperty, lu = Object.prototype.propertyIsEnumerable, On = (e, t, r) => t in e ? su(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, fu = (e, t) => {
|
|
6266
6292
|
for (var r in t || (t = {}))
|
|
6267
|
-
uu.call(t, r) &&
|
|
6268
|
-
if (
|
|
6269
|
-
for (var r of
|
|
6270
|
-
lu.call(t, r) &&
|
|
6293
|
+
uu.call(t, r) && On(e, r, t[r]);
|
|
6294
|
+
if ($n)
|
|
6295
|
+
for (var r of $n(t))
|
|
6296
|
+
lu.call(t, r) && On(e, r, t[r]);
|
|
6271
6297
|
return e;
|
|
6272
6298
|
}, hu = (e, t) => au(e, ou(t));
|
|
6273
|
-
let
|
|
6274
|
-
const er =
|
|
6275
|
-
function
|
|
6299
|
+
let Gr;
|
|
6300
|
+
const er = ar(null);
|
|
6301
|
+
function Mn(e) {
|
|
6276
6302
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
6277
6303
|
}
|
|
6278
|
-
function lr(e, t =
|
|
6279
|
-
const r =
|
|
6280
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
6304
|
+
function lr(e, t = dt().fallbackLocale) {
|
|
6305
|
+
const r = Mn(e);
|
|
6306
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Mn(t)])] : r;
|
|
6281
6307
|
}
|
|
6282
6308
|
function qe() {
|
|
6283
|
-
return
|
|
6309
|
+
return Gr ?? void 0;
|
|
6284
6310
|
}
|
|
6285
6311
|
er.subscribe((e) => {
|
|
6286
|
-
|
|
6312
|
+
Gr = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
6287
6313
|
});
|
|
6288
6314
|
const cu = (e) => {
|
|
6289
|
-
if (e && Qo(e) &&
|
|
6290
|
-
const { loadingDelay: t } =
|
|
6315
|
+
if (e && Qo(e) && Fr(e)) {
|
|
6316
|
+
const { loadingDelay: t } = dt();
|
|
6291
6317
|
let r;
|
|
6292
6318
|
return typeof window < "u" && qe() != null && t ? r = window.setTimeout(
|
|
6293
6319
|
() => Er.set(!0),
|
|
@@ -6308,14 +6334,14 @@ const cu = (e) => {
|
|
|
6308
6334
|
return i in t ? t[i] : t[i] = e(n);
|
|
6309
6335
|
};
|
|
6310
6336
|
};
|
|
6311
|
-
var du = Object.defineProperty, tr = Object.getOwnPropertySymbols, es = Object.prototype.hasOwnProperty, ts = Object.prototype.propertyIsEnumerable,
|
|
6337
|
+
var du = Object.defineProperty, tr = Object.getOwnPropertySymbols, es = Object.prototype.hasOwnProperty, ts = Object.prototype.propertyIsEnumerable, Bn = (e, t, r) => t in e ? du(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, sn = (e, t) => {
|
|
6312
6338
|
for (var r in t || (t = {}))
|
|
6313
|
-
es.call(t, r) &&
|
|
6339
|
+
es.call(t, r) && Bn(e, r, t[r]);
|
|
6314
6340
|
if (tr)
|
|
6315
6341
|
for (var r of tr(t))
|
|
6316
|
-
ts.call(t, r) &&
|
|
6342
|
+
ts.call(t, r) && Bn(e, r, t[r]);
|
|
6317
6343
|
return e;
|
|
6318
|
-
},
|
|
6344
|
+
}, mt = (e, t) => {
|
|
6319
6345
|
var r = {};
|
|
6320
6346
|
for (var n in e)
|
|
6321
6347
|
es.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -6325,27 +6351,27 @@ var du = Object.defineProperty, tr = Object.getOwnPropertySymbols, es = Object.p
|
|
|
6325
6351
|
return r;
|
|
6326
6352
|
};
|
|
6327
6353
|
const Bt = (e, t) => {
|
|
6328
|
-
const { formats: r } =
|
|
6354
|
+
const { formats: r } = dt();
|
|
6329
6355
|
if (e in r && t in r[e])
|
|
6330
6356
|
return r[e][t];
|
|
6331
6357
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
6332
6358
|
}, pu = fr(
|
|
6333
6359
|
(e) => {
|
|
6334
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
6360
|
+
var t = e, { locale: r, format: n } = t, i = mt(t, ["locale", "format"]);
|
|
6335
6361
|
if (r == null)
|
|
6336
6362
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
6337
6363
|
return n && (i = Bt("number", n)), new Intl.NumberFormat(r, i);
|
|
6338
6364
|
}
|
|
6339
6365
|
), vu = fr(
|
|
6340
6366
|
(e) => {
|
|
6341
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
6367
|
+
var t = e, { locale: r, format: n } = t, i = mt(t, ["locale", "format"]);
|
|
6342
6368
|
if (r == null)
|
|
6343
6369
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
6344
6370
|
return n ? i = Bt("date", n) : Object.keys(i).length === 0 && (i = Bt("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
6345
6371
|
}
|
|
6346
6372
|
), mu = fr(
|
|
6347
6373
|
(e) => {
|
|
6348
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
6374
|
+
var t = e, { locale: r, format: n } = t, i = mt(t, ["locale", "format"]);
|
|
6349
6375
|
if (r == null)
|
|
6350
6376
|
throw new Error(
|
|
6351
6377
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
@@ -6355,28 +6381,28 @@ const Bt = (e, t) => {
|
|
|
6355
6381
|
), _u = (e = {}) => {
|
|
6356
6382
|
var t = e, {
|
|
6357
6383
|
locale: r = qe()
|
|
6358
|
-
} = t, n =
|
|
6384
|
+
} = t, n = mt(t, [
|
|
6359
6385
|
"locale"
|
|
6360
6386
|
]);
|
|
6361
|
-
return pu(
|
|
6387
|
+
return pu(sn({ locale: r }, n));
|
|
6362
6388
|
}, bu = (e = {}) => {
|
|
6363
6389
|
var t = e, {
|
|
6364
6390
|
locale: r = qe()
|
|
6365
|
-
} = t, n =
|
|
6391
|
+
} = t, n = mt(t, [
|
|
6366
6392
|
"locale"
|
|
6367
6393
|
]);
|
|
6368
|
-
return vu(
|
|
6394
|
+
return vu(sn({ locale: r }, n));
|
|
6369
6395
|
}, gu = (e = {}) => {
|
|
6370
6396
|
var t = e, {
|
|
6371
6397
|
locale: r = qe()
|
|
6372
|
-
} = t, n =
|
|
6398
|
+
} = t, n = mt(t, [
|
|
6373
6399
|
"locale"
|
|
6374
6400
|
]);
|
|
6375
|
-
return mu(
|
|
6401
|
+
return mu(sn({ locale: r }, n));
|
|
6376
6402
|
}, yu = fr(
|
|
6377
6403
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
6378
|
-
(e, t = qe()) => new Yo(e, t,
|
|
6379
|
-
ignoreTag:
|
|
6404
|
+
(e, t = qe()) => new Yo(e, t, dt().formats, {
|
|
6405
|
+
ignoreTag: dt().ignoreTag
|
|
6380
6406
|
})
|
|
6381
6407
|
), Eu = (e, t = {}) => {
|
|
6382
6408
|
var r, n, i, s;
|
|
@@ -6393,7 +6419,7 @@ const Bt = (e, t) => {
|
|
|
6393
6419
|
);
|
|
6394
6420
|
let f = qi(e, u);
|
|
6395
6421
|
if (!f)
|
|
6396
|
-
f = (s = (i = (n = (r =
|
|
6422
|
+
f = (s = (i = (n = (r = dt()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? s : e;
|
|
6397
6423
|
else if (typeof f != "string")
|
|
6398
6424
|
return console.warn(
|
|
6399
6425
|
`[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.`
|
|
@@ -6410,17 +6436,17 @@ const Bt = (e, t) => {
|
|
|
6410
6436
|
);
|
|
6411
6437
|
}
|
|
6412
6438
|
return h;
|
|
6413
|
-
}, xu = (e, t) => gu(t).format(e), wu = (e, t) => bu(t).format(e), Su = (e, t) => _u(t).format(e), Tu = (e, t = qe()) => qi(e, t), Hu =
|
|
6414
|
-
|
|
6415
|
-
|
|
6416
|
-
|
|
6417
|
-
|
|
6439
|
+
}, xu = (e, t) => gu(t).format(e), wu = (e, t) => bu(t).format(e), Su = (e, t) => _u(t).format(e), Tu = (e, t = qe()) => qi(e, t), Hu = pt([We, vt], () => Eu);
|
|
6440
|
+
pt([We], () => xu);
|
|
6441
|
+
pt([We], () => wu);
|
|
6442
|
+
pt([We], () => Su);
|
|
6443
|
+
pt([We, vt], () => Tu);
|
|
6418
6444
|
function Au({ withLocale: e, translations: t }) {
|
|
6419
6445
|
We.subscribe((r) => {
|
|
6420
|
-
r == null && (
|
|
6446
|
+
r == null && (vt.set(t), We.set(e));
|
|
6421
6447
|
});
|
|
6422
6448
|
}
|
|
6423
|
-
function
|
|
6449
|
+
function Nn(e, t) {
|
|
6424
6450
|
Ji(e, t);
|
|
6425
6451
|
}
|
|
6426
6452
|
const $u = {
|
|
@@ -6471,28 +6497,28 @@ const Nu = {
|
|
|
6471
6497
|
}`
|
|
6472
6498
|
};
|
|
6473
6499
|
function rs(e, t) {
|
|
6474
|
-
|
|
6475
|
-
const r = () =>
|
|
6500
|
+
Xr(t, !0), Ea(e, Nu);
|
|
6501
|
+
const r = () => Sa(Hu, "$_", n), [n, i] = Ta(), s = Ce(t, "apiEndpoint", 7, ""), o = Ce(t, "userSession", 7, ""), a = Ce(t, "locale", 7, ""), u = Ce(t, "translationUrl");
|
|
6476
6502
|
Au({ withLocale: a(), translations: {} }), Object.entries($u).forEach(([b, R]) => {
|
|
6477
|
-
|
|
6503
|
+
Nn(b, R);
|
|
6478
6504
|
});
|
|
6479
6505
|
const l = () => {
|
|
6480
6506
|
let b = new URL(u(), window.location.href);
|
|
6481
6507
|
fetch(b.href).then((R) => R.json()).then((R) => {
|
|
6482
6508
|
Object.keys(R).forEach((Pe) => {
|
|
6483
|
-
|
|
6509
|
+
Nn(Pe, R[Pe]);
|
|
6484
6510
|
});
|
|
6485
6511
|
}).catch((R) => {
|
|
6486
6512
|
console.log("loyalty rakeback translation url err:", R);
|
|
6487
6513
|
});
|
|
6488
6514
|
};
|
|
6489
|
-
|
|
6515
|
+
qs(() => {
|
|
6490
6516
|
u() && l();
|
|
6491
6517
|
});
|
|
6492
6518
|
let f = /* @__PURE__ */ oe(void 0), h = /* @__PURE__ */ oe(!1), c = /* @__PURE__ */ oe(!1), d = /* @__PURE__ */ oe(!1);
|
|
6493
|
-
const p = /* @__PURE__ */ It(() => O(f) ? ka(O(f).total.points <= 0 ? 0 : O(f).total.points, 2) : "0.00"),
|
|
6519
|
+
const p = /* @__PURE__ */ It(() => O(f) ? ka(O(f).total.points <= 0 ? 0 : O(f).total.points, 2) : "0.00"), w = /* @__PURE__ */ It(() => Ca(O(f)?.currency ?? "", a())), P = /* @__PURE__ */ It(() => !!O(f)?.claimable), G = /* @__PURE__ */ It(() => O(h)), X = async () => {
|
|
6494
6520
|
if (!(!s() || !o())) {
|
|
6495
|
-
|
|
6521
|
+
Y(d, !0);
|
|
6496
6522
|
try {
|
|
6497
6523
|
const b = await Oa({
|
|
6498
6524
|
apiEndpoint: s(),
|
|
@@ -6500,21 +6526,21 @@ function rs(e, t) {
|
|
|
6500
6526
|
locale: a()
|
|
6501
6527
|
});
|
|
6502
6528
|
if (!b.rakebackWallet) {
|
|
6503
|
-
|
|
6529
|
+
Y(h, !1), Da();
|
|
6504
6530
|
return;
|
|
6505
6531
|
}
|
|
6506
|
-
|
|
6532
|
+
Y(f, b.rakebackWallet, !0), Y(h, !0);
|
|
6507
6533
|
} catch (b) {
|
|
6508
6534
|
console.error("Failed to load rakeback info:", b);
|
|
6509
6535
|
} finally {
|
|
6510
|
-
|
|
6536
|
+
Y(d, !1);
|
|
6511
6537
|
}
|
|
6512
6538
|
}
|
|
6513
|
-
},
|
|
6539
|
+
}, U = () => {
|
|
6514
6540
|
!O(P) || O(c) || !O(f) || Ra(O(f).total.points);
|
|
6515
6541
|
}, Se = async () => {
|
|
6516
6542
|
if (!(!s() || !o() || !O(f))) {
|
|
6517
|
-
|
|
6543
|
+
Y(c, !0);
|
|
6518
6544
|
try {
|
|
6519
6545
|
await Ma({
|
|
6520
6546
|
apiEndpoint: s(),
|
|
@@ -6524,13 +6550,13 @@ function rs(e, t) {
|
|
|
6524
6550
|
} catch (b) {
|
|
6525
6551
|
console.error("Claim rakeback: ", b), La(b.message);
|
|
6526
6552
|
} finally {
|
|
6527
|
-
|
|
6553
|
+
Y(c, !1);
|
|
6528
6554
|
}
|
|
6529
6555
|
}
|
|
6530
6556
|
};
|
|
6531
|
-
|
|
6557
|
+
cn(() => {
|
|
6532
6558
|
s(), o(), a(), X();
|
|
6533
|
-
}),
|
|
6559
|
+
}), cn(() => {
|
|
6534
6560
|
const b = (R) => {
|
|
6535
6561
|
R.data?.type === Ou && Se();
|
|
6536
6562
|
};
|
|
@@ -6561,29 +6587,29 @@ function rs(e, t) {
|
|
|
6561
6587
|
set translationUrl(b) {
|
|
6562
6588
|
u(b), Ae();
|
|
6563
6589
|
}
|
|
6564
|
-
}, J =
|
|
6590
|
+
}, J = fa(), Le = js(J);
|
|
6565
6591
|
{
|
|
6566
|
-
var
|
|
6567
|
-
var R = Mu(), Pe = Mr(R), y = Mr(Pe), _ =
|
|
6568
|
-
Tr(Pe), Tr(R),
|
|
6592
|
+
var _t = (b) => {
|
|
6593
|
+
var R = Mu(), Pe = Mr(R), y = Mr(Pe), _ = hn(y), v = Vs(y, 2), g = hn(v, !0);
|
|
6594
|
+
Tr(Pe), Tr(R), ea(
|
|
6569
6595
|
(m) => {
|
|
6570
|
-
|
|
6596
|
+
bn(_, `${O(p) ?? ""} ${O(w) ?? ""}`), v.disabled = O(c) || !O(P), bn(g, m);
|
|
6571
6597
|
},
|
|
6572
6598
|
[() => r()("requestRakeback")]
|
|
6573
|
-
),
|
|
6599
|
+
), sa("click", v, U), Gt(b, R);
|
|
6574
6600
|
}, Ze = (b) => {
|
|
6575
6601
|
var R = Bu();
|
|
6576
6602
|
Gt(b, R);
|
|
6577
6603
|
};
|
|
6578
|
-
|
|
6579
|
-
O(G) ? b(
|
|
6604
|
+
ya(Le, (b) => {
|
|
6605
|
+
O(G) ? b(_t) : O(d) && b(Ze, 1);
|
|
6580
6606
|
});
|
|
6581
6607
|
}
|
|
6582
6608
|
Gt(e, J);
|
|
6583
|
-
var
|
|
6584
|
-
return i(),
|
|
6609
|
+
var F = Wr(Z);
|
|
6610
|
+
return i(), F;
|
|
6585
6611
|
}
|
|
6586
|
-
|
|
6612
|
+
aa(["click"]);
|
|
6587
6613
|
Mi(
|
|
6588
6614
|
rs,
|
|
6589
6615
|
{
|
|
@@ -6597,7 +6623,7 @@ Mi(
|
|
|
6597
6623
|
{ mode: "open" }
|
|
6598
6624
|
);
|
|
6599
6625
|
function ns(e, t) {
|
|
6600
|
-
|
|
6626
|
+
Xr(t, !0);
|
|
6601
6627
|
let r = Ce(t, "apiEndpoint", 7, ""), n = Ce(t, "userSession", 7, ""), i = Ce(t, "locale", 7, ""), s = Ce(t, "translationUrl");
|
|
6602
6628
|
var o = {
|
|
6603
6629
|
get apiEndpoint() {
|
|
@@ -6638,7 +6664,7 @@ function ns(e, t) {
|
|
|
6638
6664
|
get translationUrl() {
|
|
6639
6665
|
return s();
|
|
6640
6666
|
}
|
|
6641
|
-
}),
|
|
6667
|
+
}), Wr(o);
|
|
6642
6668
|
}
|
|
6643
6669
|
customElements.define("loyalty-rakeback", Mi(
|
|
6644
6670
|
ns,
|