@everymatrix/loyalty-points-card 0.2.9 → 0.2.10
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/{LoyaltyPointsCard-DwNB9U-L.js → LoyaltyPointsCard-BIxRkJ9b.js} +1624 -1634
- package/components/{LoyaltyPointsCard-B0jCgp0W.cjs → LoyaltyPointsCard-BJZ4TCHt.cjs} +4 -4
- package/components/LoyaltyPointsCard-Co2jGOwE.cjs +21 -0
- package/components/{LoyaltyPointsCard-DYoZcj3u.js → LoyaltyPointsCard-Dmq2cJ3-.js} +604 -612
- package/es2015/loyalty-points-card.cjs +1 -1
- package/es2015/loyalty-points-card.js +2 -2
- package/esnext/loyalty-points-card.cjs +1 -1
- package/esnext/loyalty-points-card.js +2 -2
- package/package.json +1 -1
- package/components/LoyaltyPointsCard-D3P4xe_v.cjs +0 -21
|
@@ -5,8 +5,8 @@ typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
|
5
5
|
} });
|
|
6
6
|
const ss = "5";
|
|
7
7
|
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(ss);
|
|
8
|
-
const
|
|
9
|
-
var
|
|
8
|
+
const os = 2, Cn = "[", Rn = "[!", un = "[?", Dn = "]", De = {}, j = Symbol("uninitialized"), kn = !1;
|
|
9
|
+
var as = Array.isArray, us = Array.prototype.indexOf, Bt = Array.prototype.includes, ls = Array.from, zt = Object.keys, ot = Object.defineProperty, nt = Object.getOwnPropertyDescriptor, fs = Object.prototype, hs = Array.prototype, cs = Object.getPrototypeOf, ln = Object.isExtensible;
|
|
10
10
|
const Oe = () => {
|
|
11
11
|
};
|
|
12
12
|
function Fn(e) {
|
|
@@ -19,10 +19,10 @@ function Un() {
|
|
|
19
19
|
});
|
|
20
20
|
return { promise: r, resolve: e, reject: t };
|
|
21
21
|
}
|
|
22
|
-
const Z = 2,
|
|
22
|
+
const Z = 2, at = 4, sr = 8, Gn = 1 << 24, de = 16, we = 32, Be = 64, $r = 128, Vr = 256, _e = 512, V = 1024, M = 2048, ae = 4096, he = 8192, q = 16384, ze = 32768, qt = 1 << 25, ut = 65536, Zt = 1 << 17, ds = 1 << 18, qe = 1 << 19, ps = 1 << 20, Jt = 1 << 21, it = 1 << 22, Re = 1 << 23, vr = Symbol("$state"), jn = Symbol("component"), vs = Symbol("legacy props"), _s = Symbol("attributes"), ms = Symbol("class"), gs = Symbol("style"), Or = Symbol("text"), It = new class extends Error {
|
|
23
23
|
name = "StaleReactionError";
|
|
24
24
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
25
|
-
}(),
|
|
25
|
+
}(), or = 3, ar = 8;
|
|
26
26
|
function bs() {
|
|
27
27
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
28
28
|
}
|
|
@@ -62,7 +62,7 @@ function Es(e = 1) {
|
|
|
62
62
|
}
|
|
63
63
|
function Vn(e = !0) {
|
|
64
64
|
for (var t = 0, r = L; ; ) {
|
|
65
|
-
if (r.nodeType ===
|
|
65
|
+
if (r.nodeType === ar) {
|
|
66
66
|
var n = (
|
|
67
67
|
/** @type {Comment} */
|
|
68
68
|
r.data
|
|
@@ -81,7 +81,7 @@ function Vn(e = !0) {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
function Wn(e) {
|
|
84
|
-
if (!e || e.nodeType !==
|
|
84
|
+
if (!e || e.nodeType !== ar)
|
|
85
85
|
throw ur(), De;
|
|
86
86
|
return (
|
|
87
87
|
/** @type {Comment} */
|
|
@@ -159,7 +159,7 @@ function Yr(e) {
|
|
|
159
159
|
return e !== void 0 && (t.x = e), t.i = !0, ie = t.p, zn(e);
|
|
160
160
|
}
|
|
161
161
|
function zn(e = {}) {
|
|
162
|
-
return
|
|
162
|
+
return ot(e, jn, { value: !0 }), e;
|
|
163
163
|
}
|
|
164
164
|
function qn() {
|
|
165
165
|
return !0;
|
|
@@ -183,17 +183,17 @@ function Ns() {
|
|
|
183
183
|
Zn();
|
|
184
184
|
}
|
|
185
185
|
const Is = -7169;
|
|
186
|
-
function
|
|
186
|
+
function k(e, t) {
|
|
187
187
|
e.f = e.f & Is | t;
|
|
188
188
|
}
|
|
189
189
|
function zr(e) {
|
|
190
|
-
e.f & _e || e.deps === null ?
|
|
190
|
+
e.f & _e || e.deps === null ? k(e, V) : k(e, ae);
|
|
191
191
|
}
|
|
192
|
-
function Jn(e, t
|
|
193
|
-
e.f &
|
|
192
|
+
function Jn(e, t) {
|
|
193
|
+
e.f & M ? t.set(e, M) : e.f & ae && t.get(e) !== M && t.set(e, ae), k(e, V);
|
|
194
194
|
}
|
|
195
195
|
function lr(e) {
|
|
196
|
-
var t =
|
|
196
|
+
var t = w, r = S;
|
|
197
197
|
ce(null), Te(null);
|
|
198
198
|
try {
|
|
199
199
|
return e();
|
|
@@ -243,7 +243,7 @@ function Rs() {
|
|
|
243
243
|
var e = (
|
|
244
244
|
/** @type {Effect} */
|
|
245
245
|
S
|
|
246
|
-
), t =
|
|
246
|
+
), t = w, r = ie, n = (
|
|
247
247
|
/** @type {Batch} */
|
|
248
248
|
A
|
|
249
249
|
);
|
|
@@ -268,7 +268,7 @@ function Qn() {
|
|
|
268
268
|
}
|
|
269
269
|
// @__NO_SIDE_EFFECTS__
|
|
270
270
|
function qr(e) {
|
|
271
|
-
var t = Z |
|
|
271
|
+
var t = Z | M;
|
|
272
272
|
return S !== null && (S.f |= qe), {
|
|
273
273
|
ctx: ie,
|
|
274
274
|
deps: null,
|
|
@@ -302,7 +302,7 @@ function Ds(e, t, r) {
|
|
|
302
302
|
), s = Ct(
|
|
303
303
|
/** @type {V} */
|
|
304
304
|
j
|
|
305
|
-
), o = !
|
|
305
|
+
), o = !w, a = /* @__PURE__ */ new Set();
|
|
306
306
|
return Ks(() => {
|
|
307
307
|
var u = (
|
|
308
308
|
/** @type {Effect} */
|
|
@@ -382,7 +382,7 @@ function Zr(e) {
|
|
|
382
382
|
function Kn(e) {
|
|
383
383
|
var t = Zr(e);
|
|
384
384
|
if (!e.equals(t) && (e.wv = Ei(), (!A?.is_fork || e.deps === null) && (A !== null ? (A.capture(e, t, !0), st?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
|
|
385
|
-
|
|
385
|
+
k(e, V);
|
|
386
386
|
return;
|
|
387
387
|
}
|
|
388
388
|
Me || (pe !== null ? (tn() || A?.is_fork) && pe.set(e, t) : zr(e));
|
|
@@ -405,24 +405,24 @@ let Us = 1;
|
|
|
405
405
|
class Le {
|
|
406
406
|
id = Us++;
|
|
407
407
|
/** True as soon as `#process` was called */
|
|
408
|
-
|
|
408
|
+
started = !1;
|
|
409
409
|
linked = !0;
|
|
410
410
|
/** @type {Batch | null} */
|
|
411
|
-
|
|
411
|
+
prev = null;
|
|
412
412
|
/** @type {Batch | null} */
|
|
413
|
-
|
|
413
|
+
next = null;
|
|
414
414
|
/** @type {Map<Effect, ReturnType<typeof deferred<any>>>} */
|
|
415
415
|
async_deriveds = /* @__PURE__ */ new Map();
|
|
416
416
|
/**
|
|
417
417
|
* The current values of any signals that are updated in this batch.
|
|
418
418
|
* Tuple format: [value, is_derived] (note: is_derived is false for deriveds, too, if they were overridden via assignment)
|
|
419
|
-
*
|
|
419
|
+
* The keys of this map are identical to `this.previous`
|
|
420
420
|
* @type {Map<Value, [any, boolean]>}
|
|
421
421
|
*/
|
|
422
422
|
current = /* @__PURE__ */ new Map();
|
|
423
423
|
/**
|
|
424
424
|
* The values of any signals (sources and deriveds) that are updated in this batch _before_ those updates took place.
|
|
425
|
-
*
|
|
425
|
+
* The keys of this map are identical to `this.current`
|
|
426
426
|
* @type {Map<Value, any>}
|
|
427
427
|
*/
|
|
428
428
|
previous = /* @__PURE__ */ new Map();
|
|
@@ -431,27 +431,27 @@ class Le {
|
|
|
431
431
|
* and append new ones by calling the functions added inside (if/each/key/etc) blocks
|
|
432
432
|
* @type {Set<(batch: Batch) => void>}
|
|
433
433
|
*/
|
|
434
|
-
#
|
|
434
|
+
#e = /* @__PURE__ */ new Set();
|
|
435
435
|
/**
|
|
436
436
|
* If a fork is discarded, we need to destroy any effects that are no longer needed
|
|
437
437
|
* @type {Set<(batch: Batch) => void>}
|
|
438
438
|
*/
|
|
439
|
-
#
|
|
439
|
+
#t = /* @__PURE__ */ new Set();
|
|
440
440
|
/**
|
|
441
441
|
* The number of async effects that are currently in flight
|
|
442
442
|
*/
|
|
443
|
-
#
|
|
443
|
+
#r = 0;
|
|
444
444
|
/**
|
|
445
445
|
* Async effects that are currently in flight, _not_ inside a pending boundary
|
|
446
446
|
* @type {Map<Effect, number>}
|
|
447
447
|
*/
|
|
448
|
-
#
|
|
448
|
+
#a = /* @__PURE__ */ new Map();
|
|
449
449
|
/**
|
|
450
450
|
* A deferred that resolves when the batch is committed, used with `settled()`
|
|
451
451
|
* TODO replace with Promise.withResolvers once supported widely enough
|
|
452
452
|
* @type {{ promise: Promise<void>, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null}
|
|
453
453
|
*/
|
|
454
|
-
#
|
|
454
|
+
#n = null;
|
|
455
455
|
/**
|
|
456
456
|
* Effects that were scheduled in this batch but not yet 'resolved' into the
|
|
457
457
|
* root effects that need to be flushed. Resolving — the upwards traversal that
|
|
@@ -463,22 +463,17 @@ class Le {
|
|
|
463
463
|
* May contain duplicates — deduplication happens during resolving
|
|
464
464
|
* @type {Effect[]}
|
|
465
465
|
*/
|
|
466
|
-
#
|
|
466
|
+
#i = [];
|
|
467
467
|
/**
|
|
468
468
|
* Effects created while this batch was active.
|
|
469
469
|
* @type {Effect[]}
|
|
470
470
|
*/
|
|
471
|
-
#
|
|
472
|
-
/**
|
|
473
|
-
* Deferred effects (which run after async work has completed) that are DIRTY
|
|
474
|
-
* @type {Set<Effect>}
|
|
475
|
-
*/
|
|
476
|
-
#l = /* @__PURE__ */ new Set();
|
|
471
|
+
#o = [];
|
|
477
472
|
/**
|
|
478
|
-
* Deferred effects
|
|
479
|
-
* @type {
|
|
473
|
+
* Deferred effects (which run after async work has completed) and their status (DIRTY or MAYBE_DIRTY)
|
|
474
|
+
* @type {Map<Effect, number>}
|
|
480
475
|
*/
|
|
481
|
-
#
|
|
476
|
+
#s = /* @__PURE__ */ new Map();
|
|
482
477
|
/**
|
|
483
478
|
* A map of branches that still exist, but will be destroyed when this batch
|
|
484
479
|
* is committed — we skip over these during `process`.
|
|
@@ -486,30 +481,34 @@ class Le {
|
|
|
486
481
|
* so they can be rescheduled if the branch survives.
|
|
487
482
|
* @type {Map<Effect, { d: Effect[], m: Effect[] }>}
|
|
488
483
|
*/
|
|
489
|
-
#
|
|
484
|
+
#u = /* @__PURE__ */ new Map();
|
|
490
485
|
/**
|
|
491
486
|
* Inverse of #skipped_branches which we need to tell prior batches to unskip them when committing
|
|
492
487
|
* @type {Set<Effect>}
|
|
493
488
|
*/
|
|
494
|
-
#
|
|
489
|
+
#d = /* @__PURE__ */ new Set();
|
|
495
490
|
is_fork = !1;
|
|
496
|
-
#
|
|
491
|
+
#l = !1;
|
|
497
492
|
constructor() {
|
|
498
|
-
et === null ? _r = et = this : (et
|
|
493
|
+
et === null ? _r = et = this : (et.next = this, this.prev = et), et = this;
|
|
499
494
|
}
|
|
500
|
-
#
|
|
495
|
+
#v() {
|
|
501
496
|
if (this.is_fork) return !0;
|
|
502
|
-
for (const
|
|
503
|
-
|
|
504
|
-
if (this.#c.has(t)) {
|
|
505
|
-
r = !0;
|
|
506
|
-
break;
|
|
507
|
-
}
|
|
508
|
-
t = t.parent;
|
|
509
|
-
}
|
|
510
|
-
if (!r)
|
|
497
|
+
for (const t of this.#a.keys())
|
|
498
|
+
if (!this.#m(t))
|
|
511
499
|
return !0;
|
|
512
|
-
|
|
500
|
+
return !1;
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* Whether `effect` is inside a branch that this batch skips
|
|
504
|
+
* @param {Effect} effect
|
|
505
|
+
*/
|
|
506
|
+
#m(t) {
|
|
507
|
+
for (var r = (
|
|
508
|
+
/** @type {Effect | null} */
|
|
509
|
+
t
|
|
510
|
+
); r !== null; r = r.parent)
|
|
511
|
+
if (this.#u.has(r)) return !0;
|
|
513
512
|
return !1;
|
|
514
513
|
}
|
|
515
514
|
/**
|
|
@@ -517,7 +516,7 @@ class Le {
|
|
|
517
516
|
* @param {Effect} effect
|
|
518
517
|
*/
|
|
519
518
|
skip_effect(t) {
|
|
520
|
-
this.#
|
|
519
|
+
this.#u.has(t) || this.#u.set(t, { d: [], m: [] }), this.#d.delete(t);
|
|
521
520
|
}
|
|
522
521
|
/**
|
|
523
522
|
* Remove an effect from the #skipped_branches map and reschedule
|
|
@@ -526,15 +525,15 @@ class Le {
|
|
|
526
525
|
* @param {(e: Effect) => void} callback
|
|
527
526
|
*/
|
|
528
527
|
unskip_effect(t, r = (n) => this.schedule(n)) {
|
|
529
|
-
var n = this.#
|
|
528
|
+
var n = this.#u.get(t);
|
|
530
529
|
if (n) {
|
|
531
|
-
this.#
|
|
530
|
+
this.#u.delete(t);
|
|
532
531
|
for (var i of n.d)
|
|
533
|
-
|
|
532
|
+
k(i, M), r(i);
|
|
534
533
|
for (i of n.m)
|
|
535
|
-
|
|
534
|
+
k(i, ae), r(i);
|
|
536
535
|
}
|
|
537
|
-
this.#
|
|
536
|
+
this.#d.add(t);
|
|
538
537
|
}
|
|
539
538
|
/**
|
|
540
539
|
* Convert the effects that were scheduled in this batch into the root effects
|
|
@@ -545,10 +544,10 @@ class Le {
|
|
|
545
544
|
* a single traversal — scheduling into other batches can never observe them
|
|
546
545
|
* @returns {Effect[]}
|
|
547
546
|
*/
|
|
548
|
-
#
|
|
547
|
+
#f() {
|
|
549
548
|
var t = [];
|
|
550
|
-
for (const s of this.#
|
|
551
|
-
if (!(s.f & q || !(s.f & (
|
|
549
|
+
for (const s of this.#i)
|
|
550
|
+
if (!(s.f & q || !(s.f & (M | ae)))) {
|
|
552
551
|
for (var r = s, n = !1; r.parent !== null; ) {
|
|
553
552
|
r = r.parent;
|
|
554
553
|
var i = r.f;
|
|
@@ -562,22 +561,20 @@ class Le {
|
|
|
562
561
|
}
|
|
563
562
|
n || t.push(r);
|
|
564
563
|
}
|
|
565
|
-
return this.#
|
|
564
|
+
return this.#i = [], t;
|
|
566
565
|
}
|
|
567
|
-
#
|
|
568
|
-
this
|
|
569
|
-
for (const a of this.#
|
|
570
|
-
|
|
571
|
-
for (const a of this.#f)
|
|
572
|
-
C(a, fe), this.schedule(a);
|
|
566
|
+
#_() {
|
|
567
|
+
this.started = !0;
|
|
568
|
+
for (const [a, u] of this.#s)
|
|
569
|
+
k(a, u), this.schedule(a);
|
|
573
570
|
this.apply();
|
|
574
|
-
for (var t = At = [], r = [], n = jt = []; this.#
|
|
575
|
-
fn++ > 1e3 && (this.#
|
|
576
|
-
for (const a of this.#
|
|
571
|
+
for (var t = At = [], r = [], n = jt = []; this.#i.length > 0; ) {
|
|
572
|
+
fn++ > 1e3 && (this.#c(), Gs());
|
|
573
|
+
for (const a of this.#f())
|
|
577
574
|
try {
|
|
578
|
-
this.#
|
|
575
|
+
this.#g(a, t, r);
|
|
579
576
|
} catch (u) {
|
|
580
|
-
throw ni(a), this.#
|
|
577
|
+
throw ni(a), this.#v() || this.discard(), u;
|
|
581
578
|
}
|
|
582
579
|
}
|
|
583
580
|
if (A = null, n.length > 0) {
|
|
@@ -585,35 +582,28 @@ class Le {
|
|
|
585
582
|
for (const a of n)
|
|
586
583
|
i.schedule(a);
|
|
587
584
|
}
|
|
588
|
-
if (At = null, jt = null, this.#
|
|
585
|
+
if (At = null, jt = null, this.#v()) {
|
|
589
586
|
this.#p(r), this.#p(t);
|
|
590
|
-
for (const [a, u] of this.#
|
|
587
|
+
for (const [a, u] of this.#u)
|
|
591
588
|
ri(a, u);
|
|
592
589
|
n.length > 0 && /** @type {unknown} */
|
|
593
|
-
A.#
|
|
590
|
+
A.#_();
|
|
594
591
|
return;
|
|
595
592
|
}
|
|
596
|
-
const s = this.#
|
|
593
|
+
const s = this.#y();
|
|
597
594
|
if (s) {
|
|
598
|
-
this.#p(r), this.#p(t), s.#
|
|
595
|
+
this.#p(r), this.#p(t), s.#h(this);
|
|
599
596
|
return;
|
|
600
597
|
}
|
|
601
|
-
this.#
|
|
602
|
-
for (const a of this.#
|
|
603
|
-
this.#
|
|
598
|
+
this.#s.clear();
|
|
599
|
+
for (const a of this.#e) a(this);
|
|
600
|
+
this.#e.clear(), st = this, hn(r), hn(t), st = null, this.#n?.resolve();
|
|
604
601
|
var o = (
|
|
605
602
|
/** @type {Batch | null} */
|
|
606
603
|
/** @type {unknown} */
|
|
607
604
|
A
|
|
608
605
|
);
|
|
609
|
-
|
|
610
|
-
if (o !== null) {
|
|
611
|
-
for (const a of this.#s)
|
|
612
|
-
o.#s.push(a);
|
|
613
|
-
this.#s = [];
|
|
614
|
-
} else
|
|
615
|
-
o = this;
|
|
616
|
-
o !== null && (Ee.clear(), o.#g());
|
|
606
|
+
this.#r === 0 && (this.#i.length === 0 || o !== null) && this.#c(), o !== null && (Ee.clear(), o.#_());
|
|
617
607
|
}
|
|
618
608
|
/**
|
|
619
609
|
* Traverse the effect tree, executing effects or stashing
|
|
@@ -622,12 +612,12 @@ class Le {
|
|
|
622
612
|
* @param {Effect[]} effects
|
|
623
613
|
* @param {Effect[]} render_effects
|
|
624
614
|
*/
|
|
625
|
-
#
|
|
615
|
+
#g(t, r, n) {
|
|
626
616
|
t.f ^= V;
|
|
627
617
|
for (var i = t.first; i !== null; ) {
|
|
628
|
-
var s = i.f, o = (s & (we | Be)) !== 0, a = o && (s & V) !== 0, u = a || (s & he) !== 0 || this.#
|
|
618
|
+
var s = i.f, o = (s & (we | Be)) !== 0, a = o && (s & V) !== 0, u = a || (s & he) !== 0 || this.#u.has(i);
|
|
629
619
|
if (!u && i.fn !== null) {
|
|
630
|
-
o ? i.f ^= V : s &
|
|
620
|
+
o ? i.f ^= V : s & at ? r.push(i) : Rt(i) && (s & de && this.add_dirty_reaction(i, ae), ht(i));
|
|
631
621
|
var l = i.first;
|
|
632
622
|
if (l !== null) {
|
|
633
623
|
i = l;
|
|
@@ -644,31 +634,32 @@ class Le {
|
|
|
644
634
|
}
|
|
645
635
|
}
|
|
646
636
|
}
|
|
647
|
-
#
|
|
648
|
-
for (var t = this
|
|
649
|
-
if (!t.is_fork)
|
|
650
|
-
for (const [r, [, n]] of this.current)
|
|
651
|
-
if (t.current.has(r) && !n)
|
|
652
|
-
return t;
|
|
653
|
-
}
|
|
654
|
-
t = t.#t;
|
|
655
|
-
}
|
|
637
|
+
#y() {
|
|
638
|
+
for (var t = this.prev; t !== null; t = t.prev)
|
|
639
|
+
if (!t.is_fork && this.#b(t)) return t;
|
|
656
640
|
return null;
|
|
657
641
|
}
|
|
642
|
+
/** @param {Batch} batch */
|
|
643
|
+
#b(t) {
|
|
644
|
+
for (const [r, [, n]] of this.current)
|
|
645
|
+
if (!n && t.current.has(r))
|
|
646
|
+
return !0;
|
|
647
|
+
return !1;
|
|
648
|
+
}
|
|
658
649
|
/**
|
|
659
650
|
* @param {Batch} batch
|
|
660
651
|
*/
|
|
661
|
-
#
|
|
652
|
+
#h(t) {
|
|
662
653
|
for (const [n, i] of t.current)
|
|
663
654
|
!this.previous.has(n) && t.previous.has(n) && this.previous.set(n, t.previous.get(n)), this.current.set(n, i);
|
|
664
655
|
for (const [n, i] of t.async_deriveds) {
|
|
665
656
|
const s = this.async_deriveds.get(n);
|
|
666
657
|
s && i.promise.then(s.resolve).catch(s.reject);
|
|
667
658
|
}
|
|
668
|
-
t.async_deriveds.clear(), this.
|
|
659
|
+
t.async_deriveds.clear(), this.transfer_reactions(t.#s);
|
|
669
660
|
const r = (n) => {
|
|
670
661
|
var i = n.reactions;
|
|
671
|
-
if (i !== null && !(n.f & Z && !(n.f & (
|
|
662
|
+
if (i !== null && !(n.f & Z && !(n.f & (M | ae))))
|
|
672
663
|
for (const a of i) {
|
|
673
664
|
var s = a.f;
|
|
674
665
|
if (s & Z)
|
|
@@ -681,20 +672,20 @@ class Le {
|
|
|
681
672
|
/** @type {Effect} */
|
|
682
673
|
a
|
|
683
674
|
);
|
|
684
|
-
s & (it | de) && !this.async_deriveds.has(o) && (this.#
|
|
675
|
+
s & (it | de) && !this.async_deriveds.has(o) && (this.#s.delete(o), k(o, M), this.schedule(o));
|
|
685
676
|
}
|
|
686
677
|
}
|
|
687
678
|
};
|
|
688
679
|
for (const n of this.current.keys())
|
|
689
680
|
r(n);
|
|
690
|
-
this.oncommit(() => t.discard()), t.#
|
|
681
|
+
this.oncommit(() => t.discard()), t.#c(), A = this, this.#_();
|
|
691
682
|
}
|
|
692
683
|
/**
|
|
693
684
|
* @param {Effect[]} effects
|
|
694
685
|
*/
|
|
695
686
|
#p(t) {
|
|
696
687
|
for (var r = 0; r < t.length; r += 1)
|
|
697
|
-
Jn(t[r], this.#
|
|
688
|
+
Jn(t[r], this.#s);
|
|
698
689
|
}
|
|
699
690
|
/**
|
|
700
691
|
* Associate a change to a given source with the current
|
|
@@ -714,26 +705,26 @@ class Le {
|
|
|
714
705
|
}
|
|
715
706
|
flush() {
|
|
716
707
|
try {
|
|
717
|
-
mr = !0, A = this, this.#
|
|
708
|
+
mr = !0, A = this, this.#_();
|
|
718
709
|
} finally {
|
|
719
710
|
fn = 0, Br = null, At = null, jt = null, mr = !1, A = null, pe = null, Ee.clear();
|
|
720
711
|
}
|
|
721
712
|
}
|
|
722
713
|
discard() {
|
|
723
|
-
for (const t of this.#
|
|
724
|
-
this.#
|
|
714
|
+
for (const t of this.#t) t(this);
|
|
715
|
+
this.#t.clear();
|
|
725
716
|
for (const t of this.async_deriveds.values())
|
|
726
717
|
t.reject(wt);
|
|
727
|
-
this.#
|
|
718
|
+
this.#c(), this.#n?.resolve();
|
|
728
719
|
}
|
|
729
720
|
/**
|
|
730
721
|
* @param {Effect} effect
|
|
731
722
|
*/
|
|
732
723
|
register_created_effect(t) {
|
|
733
|
-
this.#
|
|
724
|
+
this.#o.push(t);
|
|
734
725
|
}
|
|
735
|
-
#
|
|
736
|
-
for (let h = _r; h !== null; h = h
|
|
726
|
+
#E() {
|
|
727
|
+
for (let h = _r; h !== null; h = h.next) {
|
|
737
728
|
var t = h.id < this.id, r = [];
|
|
738
729
|
for (const [c, [d, p]] of this.current) {
|
|
739
730
|
if (h.current.has(c)) {
|
|
@@ -757,13 +748,13 @@ class Le {
|
|
|
757
748
|
(c) => !/** @type {[any, boolean]} */
|
|
758
749
|
h.current.get(c)[1]
|
|
759
750
|
);
|
|
760
|
-
if (!(!h
|
|
751
|
+
if (!(!h.started || i.length === 0)) {
|
|
761
752
|
var s = i.filter((c) => !this.current.has(c));
|
|
762
753
|
if (s.length === 0)
|
|
763
754
|
t && h.discard();
|
|
764
755
|
else if (r.length > 0) {
|
|
765
756
|
if (t)
|
|
766
|
-
for (const c of this.#
|
|
757
|
+
for (const c of this.#d)
|
|
767
758
|
h.unskip_effect(c, (d) => {
|
|
768
759
|
d.f & (de | it) ? h.schedule(d) : h.#p([d]);
|
|
769
760
|
});
|
|
@@ -777,12 +768,12 @@ class Le {
|
|
|
777
768
|
return p ? p[0] !== d[0] || p[1] !== d[1] : !0;
|
|
778
769
|
}).map(([c]) => c);
|
|
779
770
|
if (l.length > 0)
|
|
780
|
-
for (const c of this.#
|
|
781
|
-
!(c.f & (q | he | Zt)) && Jr(c, l, a) && (c.f & (it | de) ? (
|
|
782
|
-
if (h.#
|
|
771
|
+
for (const c of this.#o)
|
|
772
|
+
!(c.f & (q | he | Zt)) && Jr(c, l, a) && (c.f & (it | de) ? (k(c, M), h.schedule(c)) : h.add_dirty_reaction(c, M));
|
|
773
|
+
if (h.#i.length > 0 && !h.#l) {
|
|
783
774
|
h.apply();
|
|
784
|
-
for (var f of h.#
|
|
785
|
-
h.#
|
|
775
|
+
for (var f of h.#f())
|
|
776
|
+
h.#g(f, [], []);
|
|
786
777
|
}
|
|
787
778
|
h.deactivate();
|
|
788
779
|
}
|
|
@@ -794,9 +785,9 @@ class Le {
|
|
|
794
785
|
* @param {Effect} effect
|
|
795
786
|
*/
|
|
796
787
|
increment(t, r) {
|
|
797
|
-
if (this.#
|
|
798
|
-
let n = this.#
|
|
799
|
-
this.#
|
|
788
|
+
if (this.#r += 1, t) {
|
|
789
|
+
let n = this.#a.get(r) ?? 0;
|
|
790
|
+
this.#a.set(r, n + 1);
|
|
800
791
|
}
|
|
801
792
|
}
|
|
802
793
|
/**
|
|
@@ -804,41 +795,45 @@ class Le {
|
|
|
804
795
|
* @param {Effect} effect
|
|
805
796
|
*/
|
|
806
797
|
decrement(t, r) {
|
|
807
|
-
if (this.#
|
|
808
|
-
let n = this.#
|
|
809
|
-
n === 1 ? this.#
|
|
798
|
+
if (this.#r -= 1, t) {
|
|
799
|
+
let n = this.#a.get(r) ?? 0;
|
|
800
|
+
n === 1 ? this.#a.delete(r) : this.#a.set(r, n - 1);
|
|
810
801
|
}
|
|
811
|
-
this.#
|
|
812
|
-
this.#
|
|
802
|
+
this.#l || (this.#l = !0, Ve(() => {
|
|
803
|
+
this.#l = !1, this.linked && this.flush();
|
|
813
804
|
}));
|
|
814
805
|
}
|
|
815
806
|
/**
|
|
816
|
-
* @param {
|
|
817
|
-
* @param {Set<Effect>} maybe_dirty_effects
|
|
807
|
+
* @param {Map<Effect, number>} dirty_reactions
|
|
818
808
|
*/
|
|
819
|
-
|
|
820
|
-
for (const n of t)
|
|
821
|
-
this
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
809
|
+
transfer_reactions(t) {
|
|
810
|
+
for (const [r, n] of t)
|
|
811
|
+
this.add_dirty_reaction(r, n);
|
|
812
|
+
t.clear();
|
|
813
|
+
}
|
|
814
|
+
/**
|
|
815
|
+
* @param {Effect} effect
|
|
816
|
+
* @param {number} status
|
|
817
|
+
*/
|
|
818
|
+
add_dirty_reaction(t, r) {
|
|
819
|
+
(r === M || this.#s.get(t) !== M) && this.#s.set(t, r);
|
|
825
820
|
}
|
|
826
821
|
/** @param {(batch: Batch) => void} fn */
|
|
827
822
|
oncommit(t) {
|
|
828
|
-
this.#
|
|
823
|
+
this.#e.add(t);
|
|
829
824
|
}
|
|
830
825
|
/** @param {(batch: Batch) => void} fn */
|
|
831
826
|
ondiscard(t) {
|
|
832
|
-
this.#
|
|
827
|
+
this.#t.add(t);
|
|
833
828
|
}
|
|
834
829
|
settled() {
|
|
835
|
-
return (this.#
|
|
830
|
+
return (this.#n ??= Un()).promise;
|
|
836
831
|
}
|
|
837
832
|
static ensure() {
|
|
838
833
|
if (A === null) {
|
|
839
834
|
const t = A = new Le();
|
|
840
835
|
!mr && !Ht && Ve(() => {
|
|
841
|
-
t
|
|
836
|
+
t.started || t.flush();
|
|
842
837
|
});
|
|
843
838
|
}
|
|
844
839
|
return A;
|
|
@@ -854,20 +849,20 @@ class Le {
|
|
|
854
849
|
* @param {Effect} effect
|
|
855
850
|
*/
|
|
856
851
|
schedule(t) {
|
|
857
|
-
if (Br = t, t.b?.is_pending && t.f & (
|
|
852
|
+
if (Br = t, t.b?.is_pending && t.f & (at | sr | Gn) && !(t.f & ze)) {
|
|
858
853
|
t.b.defer_effect(t);
|
|
859
854
|
return;
|
|
860
855
|
}
|
|
861
|
-
this.#
|
|
856
|
+
this.#i.push(t);
|
|
862
857
|
}
|
|
863
|
-
#
|
|
858
|
+
#c() {
|
|
864
859
|
if (this.linked) {
|
|
865
|
-
var t = this
|
|
866
|
-
t === null ? _r = r : t
|
|
860
|
+
var t = this.prev, r = this.next;
|
|
861
|
+
t === null ? _r = r : t.next = r, r === null ? et = t : r.prev = t, this.linked = !1;
|
|
867
862
|
}
|
|
868
863
|
}
|
|
869
864
|
}
|
|
870
|
-
function
|
|
865
|
+
function fe(e) {
|
|
871
866
|
var t = Ht, r = st;
|
|
872
867
|
st = null, Ht = !0;
|
|
873
868
|
try {
|
|
@@ -925,7 +920,7 @@ function ti(e, t, r, n) {
|
|
|
925
920
|
t,
|
|
926
921
|
r,
|
|
927
922
|
n
|
|
928
|
-
) : s & (it | de) && !(s &
|
|
923
|
+
) : s & (it | de) && !(s & M) && Jr(i, t, n) && (k(i, M), Qr(
|
|
929
924
|
/** @type {Effect} */
|
|
930
925
|
i
|
|
931
926
|
));
|
|
@@ -957,13 +952,13 @@ function Qr(e) {
|
|
|
957
952
|
}
|
|
958
953
|
function ri(e, t) {
|
|
959
954
|
if (!(e.f & we && e.f & V)) {
|
|
960
|
-
e.f &
|
|
955
|
+
e.f & M ? t.d.push(e) : e.f & ae && t.m.push(e), k(e, V);
|
|
961
956
|
for (var r = e.first; r !== null; )
|
|
962
957
|
ri(r, t), r = r.next;
|
|
963
958
|
}
|
|
964
959
|
}
|
|
965
960
|
function ni(e) {
|
|
966
|
-
|
|
961
|
+
k(e, V);
|
|
967
962
|
for (var t = e.first; t !== null; )
|
|
968
963
|
ni(t), t = t.next;
|
|
969
964
|
}
|
|
@@ -973,7 +968,6 @@ let ii = !1;
|
|
|
973
968
|
function Ct(e, t) {
|
|
974
969
|
var r = {
|
|
975
970
|
f: 0,
|
|
976
|
-
// TODO ideally we could skip this altogether, but it causes type errors
|
|
977
971
|
v: e,
|
|
978
972
|
reactions: null,
|
|
979
973
|
equals: Xn,
|
|
@@ -993,9 +987,9 @@ function si(e, t = !1, r = !0) {
|
|
|
993
987
|
return t || (n.equals = xs), n;
|
|
994
988
|
}
|
|
995
989
|
function Y(e, t, r = !1) {
|
|
996
|
-
|
|
990
|
+
w !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
997
991
|
// to ensure we error if state is set inside an inspect effect
|
|
998
|
-
(!ve ||
|
|
992
|
+
(!ve || w.f & Zt) && qn() && w.f & (Z | de | it | Zt) && (xe === null || !xe.has(e)) && Ls();
|
|
999
993
|
let n = r ? Tt(t) : t;
|
|
1000
994
|
return er(e, n, jt);
|
|
1001
995
|
}
|
|
@@ -1009,16 +1003,16 @@ function er(e, t, r = null) {
|
|
|
1009
1003
|
/** @type {Derived} */
|
|
1010
1004
|
e
|
|
1011
1005
|
);
|
|
1012
|
-
e.f &
|
|
1006
|
+
e.f & M && Zr(i), pe === null && zr(i);
|
|
1013
1007
|
}
|
|
1014
|
-
e.wv = Ei(), Ge = null, Lr = 0,
|
|
1008
|
+
e.wv = Ei(), Ge = null, Lr = 0, oi(e, M, r), Ge = null, S !== null && S.f & V && !(S.f & (we | Be)) && (le === null ? ro([e]) : le.push(e)), !n.is_fork && Kt.size > 0 && !ii && js();
|
|
1015
1009
|
}
|
|
1016
1010
|
return t;
|
|
1017
1011
|
}
|
|
1018
1012
|
function js() {
|
|
1019
1013
|
ii = !1;
|
|
1020
1014
|
for (const e of Kt) {
|
|
1021
|
-
e.f & V &&
|
|
1015
|
+
e.f & V && k(e, ae);
|
|
1022
1016
|
let t;
|
|
1023
1017
|
try {
|
|
1024
1018
|
t = Rt(e);
|
|
@@ -1032,7 +1026,7 @@ function js() {
|
|
|
1032
1026
|
function $t(e) {
|
|
1033
1027
|
Y(e, e.v + 1);
|
|
1034
1028
|
}
|
|
1035
|
-
function
|
|
1029
|
+
function oi(e, t, r) {
|
|
1036
1030
|
var n = e.reactions;
|
|
1037
1031
|
if (n !== null) {
|
|
1038
1032
|
var i = n.length;
|
|
@@ -1041,8 +1035,8 @@ function ai(e, t, r) {
|
|
|
1041
1035
|
Ge.add(e);
|
|
1042
1036
|
}
|
|
1043
1037
|
for (var s = 0; s < i; s++) {
|
|
1044
|
-
var o = n[s], a = o.f, u = (a &
|
|
1045
|
-
if (u &&
|
|
1038
|
+
var o = n[s], a = o.f, u = (a & M) === 0;
|
|
1039
|
+
if (u && k(o, t), a & Zt)
|
|
1046
1040
|
Kt.add(
|
|
1047
1041
|
/** @type {Effect} */
|
|
1048
1042
|
o
|
|
@@ -1052,7 +1046,7 @@ function ai(e, t, r) {
|
|
|
1052
1046
|
/** @type {Derived} */
|
|
1053
1047
|
o
|
|
1054
1048
|
);
|
|
1055
|
-
pe?.delete(l),
|
|
1049
|
+
pe?.delete(l), oi(l, ae, r);
|
|
1056
1050
|
} else if (u) {
|
|
1057
1051
|
var f = (
|
|
1058
1052
|
/** @type {Effect} */
|
|
@@ -1069,10 +1063,10 @@ function Tt(e) {
|
|
|
1069
1063
|
const t = cs(e);
|
|
1070
1064
|
if (t !== fs && t !== hs)
|
|
1071
1065
|
return e;
|
|
1072
|
-
var r = /* @__PURE__ */ new Map(), n =
|
|
1066
|
+
var r = /* @__PURE__ */ new Map(), n = as(e), i = /* @__PURE__ */ re(0), s = Xe, o = (a) => {
|
|
1073
1067
|
if (Xe === s)
|
|
1074
1068
|
return a();
|
|
1075
|
-
var u =
|
|
1069
|
+
var u = w, l = Xe;
|
|
1076
1070
|
ce(null), gn(s);
|
|
1077
1071
|
var f = a();
|
|
1078
1072
|
return ce(u), gn(l), f;
|
|
@@ -1139,7 +1133,7 @@ function Tt(e) {
|
|
|
1139
1133
|
if (u === vr)
|
|
1140
1134
|
return !0;
|
|
1141
1135
|
var l = r.get(u), f = l !== void 0 && l.v !== j || Reflect.has(a, u);
|
|
1142
|
-
if (l !== void 0 || S !== null && (!f || nt(a, u)?.writable)) {
|
|
1136
|
+
if (l !== void 0 || (S !== null || w !== null) && (!f || nt(a, u)?.writable)) {
|
|
1143
1137
|
l === void 0 && (l = o(() => {
|
|
1144
1138
|
var c = f ? Tt(a[u]) : j, d = /* @__PURE__ */ re(c);
|
|
1145
1139
|
return d;
|
|
@@ -1165,8 +1159,8 @@ function Tt(e) {
|
|
|
1165
1159
|
var b = o(() => Tt(l));
|
|
1166
1160
|
Y(h, b);
|
|
1167
1161
|
}
|
|
1168
|
-
var
|
|
1169
|
-
if (
|
|
1162
|
+
var I = Reflect.getOwnPropertyDescriptor(a, u);
|
|
1163
|
+
if (I?.set && I.set.call(f, l), !c) {
|
|
1170
1164
|
if (n && typeof u == "string") {
|
|
1171
1165
|
var G = (
|
|
1172
1166
|
/** @type {Source<number>} */
|
|
@@ -1194,10 +1188,10 @@ function Tt(e) {
|
|
|
1194
1188
|
}
|
|
1195
1189
|
);
|
|
1196
1190
|
}
|
|
1197
|
-
var cn,
|
|
1191
|
+
var cn, ai, ui, li;
|
|
1198
1192
|
function Pr() {
|
|
1199
1193
|
if (cn === void 0) {
|
|
1200
|
-
cn = window,
|
|
1194
|
+
cn = window, ai = /Firefox/.test(navigator.userAgent);
|
|
1201
1195
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
1202
1196
|
ui = nt(t, "firstChild").get, li = nt(t, "nextSibling").get, ln(e) && (e[ms] = void 0, e[_s] = null, e[gs] = void 0, e.__e = void 0), ln(r) && (r[Or] = void 0);
|
|
1203
1197
|
}
|
|
@@ -1225,7 +1219,7 @@ function Vt(e, t) {
|
|
|
1225
1219
|
var r = /* @__PURE__ */ ft(L);
|
|
1226
1220
|
if (r === null)
|
|
1227
1221
|
r = L.appendChild(Pe());
|
|
1228
|
-
else if (t && r.nodeType !==
|
|
1222
|
+
else if (t && r.nodeType !== or) {
|
|
1229
1223
|
var n = Pe();
|
|
1230
1224
|
return r?.before(n), me(n), n;
|
|
1231
1225
|
}
|
|
@@ -1240,7 +1234,7 @@ function Vs(e, t = !1) {
|
|
|
1240
1234
|
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ Ne(r) : r;
|
|
1241
1235
|
}
|
|
1242
1236
|
if (t) {
|
|
1243
|
-
if (L?.nodeType !==
|
|
1237
|
+
if (L?.nodeType !== or) {
|
|
1244
1238
|
var n = Pe();
|
|
1245
1239
|
return L?.before(n), me(n), n;
|
|
1246
1240
|
}
|
|
@@ -1265,7 +1259,7 @@ function dn(e, t = 1, r = !1) {
|
|
|
1265
1259
|
if (!F)
|
|
1266
1260
|
return n;
|
|
1267
1261
|
if (r) {
|
|
1268
|
-
if (n?.nodeType !==
|
|
1262
|
+
if (n?.nodeType !== or) {
|
|
1269
1263
|
var s = Pe();
|
|
1270
1264
|
return n === null ? i?.after(s) : n.before(s), me(s), s;
|
|
1271
1265
|
}
|
|
@@ -1295,15 +1289,15 @@ function en(e) {
|
|
|
1295
1289
|
)
|
|
1296
1290
|
return;
|
|
1297
1291
|
let t = e.nextSibling;
|
|
1298
|
-
for (; t !== null && t.nodeType ===
|
|
1292
|
+
for (; t !== null && t.nodeType === or; )
|
|
1299
1293
|
t.remove(), e.nodeValue += /** @type {string} */
|
|
1300
1294
|
t.nodeValue, t = e.nextSibling;
|
|
1301
1295
|
}
|
|
1302
1296
|
function Ys(e) {
|
|
1303
1297
|
var t = S;
|
|
1304
1298
|
if (t === null)
|
|
1305
|
-
return
|
|
1306
|
-
if (!(t.f & ze) && !(t.f &
|
|
1299
|
+
return w.f |= Re, e;
|
|
1300
|
+
if (!(t.f & ze) && !(t.f & at))
|
|
1307
1301
|
throw e;
|
|
1308
1302
|
ge(e, t);
|
|
1309
1303
|
}
|
|
@@ -1328,7 +1322,7 @@ function ge(e, t) {
|
|
|
1328
1322
|
}
|
|
1329
1323
|
}
|
|
1330
1324
|
function zs(e) {
|
|
1331
|
-
S === null && (
|
|
1325
|
+
S === null && (w === null && Hs(), Ss()), Me && Ts();
|
|
1332
1326
|
}
|
|
1333
1327
|
function qs(e, t) {
|
|
1334
1328
|
var r = t.last;
|
|
@@ -1341,7 +1335,7 @@ function Se(e, t) {
|
|
|
1341
1335
|
ctx: ie,
|
|
1342
1336
|
deps: null,
|
|
1343
1337
|
nodes: null,
|
|
1344
|
-
f: e |
|
|
1338
|
+
f: e | M | _e,
|
|
1345
1339
|
first: null,
|
|
1346
1340
|
fn: t,
|
|
1347
1341
|
last: null,
|
|
@@ -1355,7 +1349,7 @@ function Se(e, t) {
|
|
|
1355
1349
|
};
|
|
1356
1350
|
A?.register_created_effect(n);
|
|
1357
1351
|
var i = n;
|
|
1358
|
-
if (e &
|
|
1352
|
+
if (e & at)
|
|
1359
1353
|
At !== null ? At.push(n) : Le.ensure().schedule(n);
|
|
1360
1354
|
else if (t !== null) {
|
|
1361
1355
|
try {
|
|
@@ -1366,28 +1360,28 @@ function Se(e, t) {
|
|
|
1366
1360
|
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && // either `null`, or a singular child
|
|
1367
1361
|
!(i.f & qe) && (i = i.first, e & de && e & ut && i !== null && (i.f |= ut));
|
|
1368
1362
|
}
|
|
1369
|
-
if (i !== null && (i.parent = r, r !== null && qs(i, r),
|
|
1363
|
+
if (i !== null && (i.parent = r, r !== null && qs(i, r), w !== null && w.f & Z && !(e & Be))) {
|
|
1370
1364
|
var s = (
|
|
1371
1365
|
/** @type {Derived} */
|
|
1372
|
-
|
|
1366
|
+
w
|
|
1373
1367
|
);
|
|
1374
1368
|
(s.effects ??= []).push(i);
|
|
1375
1369
|
}
|
|
1376
1370
|
return n;
|
|
1377
1371
|
}
|
|
1378
1372
|
function tn() {
|
|
1379
|
-
return
|
|
1373
|
+
return w !== null && !ve;
|
|
1380
1374
|
}
|
|
1381
1375
|
function fi(e) {
|
|
1382
1376
|
const t = Se(sr, null);
|
|
1383
|
-
return
|
|
1377
|
+
return k(t, V), t.teardown = e, t;
|
|
1384
1378
|
}
|
|
1385
1379
|
function pn(e) {
|
|
1386
1380
|
zs();
|
|
1387
1381
|
var t = (
|
|
1388
1382
|
/** @type {Effect} */
|
|
1389
1383
|
S.f
|
|
1390
|
-
), r = !
|
|
1384
|
+
), r = !w && (t & we) !== 0 && ie !== null && !ie.i;
|
|
1391
1385
|
if (r) {
|
|
1392
1386
|
var n = (
|
|
1393
1387
|
/** @type {ComponentContext} */
|
|
@@ -1398,7 +1392,7 @@ function pn(e) {
|
|
|
1398
1392
|
return hi(e);
|
|
1399
1393
|
}
|
|
1400
1394
|
function hi(e) {
|
|
1401
|
-
return Se(
|
|
1395
|
+
return Se(at | ps, e);
|
|
1402
1396
|
}
|
|
1403
1397
|
function Zs(e) {
|
|
1404
1398
|
Le.ensure();
|
|
@@ -1417,7 +1411,7 @@ function Js(e) {
|
|
|
1417
1411
|
});
|
|
1418
1412
|
}
|
|
1419
1413
|
function Qs(e) {
|
|
1420
|
-
return Se(
|
|
1414
|
+
return Se(at, e);
|
|
1421
1415
|
}
|
|
1422
1416
|
function Ks(e) {
|
|
1423
1417
|
return Se(it | qe, e);
|
|
@@ -1442,7 +1436,7 @@ function $e(e) {
|
|
|
1442
1436
|
function pi(e) {
|
|
1443
1437
|
var t = e.teardown;
|
|
1444
1438
|
if (t !== null) {
|
|
1445
|
-
const r = Me, n =
|
|
1439
|
+
const r = Me, n = w;
|
|
1446
1440
|
mn(!0), ce(null);
|
|
1447
1441
|
try {
|
|
1448
1442
|
t.call(null);
|
|
@@ -1464,7 +1458,7 @@ function rn(e, t = !1) {
|
|
|
1464
1458
|
r.f & Be ? r.parent = null : se(r, t), r = n;
|
|
1465
1459
|
}
|
|
1466
1460
|
}
|
|
1467
|
-
function
|
|
1461
|
+
function eo(e) {
|
|
1468
1462
|
for (var t = e.first; t !== null; ) {
|
|
1469
1463
|
var r = t.next;
|
|
1470
1464
|
t.f & we || se(t), t = r;
|
|
@@ -1472,7 +1466,7 @@ function ea(e) {
|
|
|
1472
1466
|
}
|
|
1473
1467
|
function se(e, t = !0) {
|
|
1474
1468
|
var r = !1;
|
|
1475
|
-
(t || e.f & ds) && e.nodes !== null && e.nodes.end !== null && (
|
|
1469
|
+
(t || e.f & ds) && e.nodes !== null && e.nodes.end !== null && (to(
|
|
1476
1470
|
e.nodes.start,
|
|
1477
1471
|
/** @type {TemplateNode} */
|
|
1478
1472
|
e.nodes.end
|
|
@@ -1485,7 +1479,7 @@ function se(e, t = !0) {
|
|
|
1485
1479
|
var i = e.parent;
|
|
1486
1480
|
i !== null && i.first !== null && vi(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1487
1481
|
}
|
|
1488
|
-
function
|
|
1482
|
+
function to(e, t) {
|
|
1489
1483
|
for (; e !== null; ) {
|
|
1490
1484
|
var r = e === t ? null : /* @__PURE__ */ Ne(e);
|
|
1491
1485
|
e.remove(), e = r;
|
|
@@ -1533,7 +1527,7 @@ function _n(e) {
|
|
|
1533
1527
|
}
|
|
1534
1528
|
function mi(e, t) {
|
|
1535
1529
|
if (!(e.f & Vr) && e.f & he) {
|
|
1536
|
-
e.f ^= he, e.f & V || (
|
|
1530
|
+
e.f ^= he, e.f & V || (k(e, M), Le.ensure().schedule(e));
|
|
1537
1531
|
for (var r = e.first; r !== null; ) {
|
|
1538
1532
|
var n = r.next, i = (r.f & ut) !== 0 || (r.f & we) !== 0;
|
|
1539
1533
|
mi(r, i ? t : !1), r = n;
|
|
@@ -1555,9 +1549,9 @@ let Me = !1;
|
|
|
1555
1549
|
function mn(e) {
|
|
1556
1550
|
Me = e;
|
|
1557
1551
|
}
|
|
1558
|
-
let
|
|
1552
|
+
let w = null, ve = !1;
|
|
1559
1553
|
function ce(e) {
|
|
1560
|
-
|
|
1554
|
+
w = e;
|
|
1561
1555
|
}
|
|
1562
1556
|
let S = null;
|
|
1563
1557
|
function Te(e) {
|
|
@@ -1565,11 +1559,11 @@ function Te(e) {
|
|
|
1565
1559
|
}
|
|
1566
1560
|
let xe = null;
|
|
1567
1561
|
function bi(e) {
|
|
1568
|
-
|
|
1562
|
+
w !== null && (w.f & Jt || w.f & Z) && (xe ??= /* @__PURE__ */ new Set()).add(e);
|
|
1569
1563
|
}
|
|
1570
|
-
let ne = null,
|
|
1571
|
-
function
|
|
1572
|
-
|
|
1564
|
+
let ne = null, oe = 0, le = null;
|
|
1565
|
+
function ro(e) {
|
|
1566
|
+
le = e;
|
|
1573
1567
|
}
|
|
1574
1568
|
let yi = 1, We = 0, Xe = We;
|
|
1575
1569
|
function gn(e) {
|
|
@@ -1580,9 +1574,9 @@ function Ei() {
|
|
|
1580
1574
|
}
|
|
1581
1575
|
function Rt(e) {
|
|
1582
1576
|
var t = e.f;
|
|
1583
|
-
if (t &
|
|
1577
|
+
if (t & M)
|
|
1584
1578
|
return !0;
|
|
1585
|
-
if (t &
|
|
1579
|
+
if (t & ae) {
|
|
1586
1580
|
for (var r = (
|
|
1587
1581
|
/** @type {Value[]} */
|
|
1588
1582
|
e.deps
|
|
@@ -1599,7 +1593,7 @@ function Rt(e) {
|
|
|
1599
1593
|
}
|
|
1600
1594
|
t & _e && // During time traveling we don't want to reset the status so that
|
|
1601
1595
|
// traversal of the graph in the other batches still happens
|
|
1602
|
-
pe === null &&
|
|
1596
|
+
pe === null && k(e, V);
|
|
1603
1597
|
}
|
|
1604
1598
|
return !1;
|
|
1605
1599
|
}
|
|
@@ -1613,16 +1607,16 @@ function xi(e, t, r = !0) {
|
|
|
1613
1607
|
s,
|
|
1614
1608
|
t,
|
|
1615
1609
|
!1
|
|
1616
|
-
) : t === s && (r ?
|
|
1610
|
+
) : t === s && (r ? k(s, M) : s.f & V && k(s, ae), Qr(
|
|
1617
1611
|
/** @type {Effect} */
|
|
1618
1612
|
s
|
|
1619
1613
|
));
|
|
1620
1614
|
}
|
|
1621
1615
|
}
|
|
1622
1616
|
function wi(e) {
|
|
1623
|
-
var t = ne, r =
|
|
1617
|
+
var t = ne, r = oe, n = le, i = w, s = xe, o = ie, a = ve, u = Xe, l = e.f;
|
|
1624
1618
|
ne = /** @type {null | Value[]} */
|
|
1625
|
-
null,
|
|
1619
|
+
null, oe = 0, le = null, w = l & (we | Be) ? null : e, xe = null, lt(e.ctx), ve = !1, Xe = ++We, e.ac !== null && (lr(() => {
|
|
1626
1620
|
e.ac.abort(It);
|
|
1627
1621
|
}), e.ac = null);
|
|
1628
1622
|
try {
|
|
@@ -1633,11 +1627,11 @@ function wi(e) {
|
|
|
1633
1627
|
), h = f();
|
|
1634
1628
|
e.f |= ze;
|
|
1635
1629
|
var c = bn(e);
|
|
1636
|
-
if (qn() &&
|
|
1630
|
+
if (qn() && le !== null && !ve && c !== null && !(e.f & (Z | ae | M)))
|
|
1637
1631
|
for (var d = 0; d < /** @type {Source[]} */
|
|
1638
|
-
|
|
1632
|
+
le.length; d++)
|
|
1639
1633
|
xi(
|
|
1640
|
-
|
|
1634
|
+
le[d],
|
|
1641
1635
|
/** @type {Effect} */
|
|
1642
1636
|
e
|
|
1643
1637
|
);
|
|
@@ -1648,32 +1642,32 @@ function wi(e) {
|
|
|
1648
1642
|
if (t !== null)
|
|
1649
1643
|
for (const p of t)
|
|
1650
1644
|
p.rv = We;
|
|
1651
|
-
|
|
1652
|
-
|
|
1645
|
+
le !== null && (n === null ? n = le : n.push(.../** @type {Source[]} */
|
|
1646
|
+
le));
|
|
1653
1647
|
}
|
|
1654
1648
|
return e.f & Re && (e.f ^= Re), h;
|
|
1655
1649
|
} catch (p) {
|
|
1656
1650
|
return bn(e), Ys(p);
|
|
1657
1651
|
} finally {
|
|
1658
|
-
e.f ^= Jt, ne = t,
|
|
1652
|
+
e.f ^= Jt, ne = t, oe = r, le = n, w = i, xe = s, lt(o), ve = a, Xe = u;
|
|
1659
1653
|
}
|
|
1660
1654
|
}
|
|
1661
1655
|
function bn(e) {
|
|
1662
1656
|
var t = e.deps, r = A?.is_fork;
|
|
1663
1657
|
if (ne !== null) {
|
|
1664
1658
|
var n;
|
|
1665
|
-
if (r || Lt(e,
|
|
1666
|
-
for (t.length =
|
|
1667
|
-
t[
|
|
1659
|
+
if (r || Lt(e, oe), t !== null && oe > 0)
|
|
1660
|
+
for (t.length = oe + ne.length, n = 0; n < ne.length; n++)
|
|
1661
|
+
t[oe + n] = ne[n];
|
|
1668
1662
|
else
|
|
1669
1663
|
e.deps = t = ne;
|
|
1670
1664
|
if (tn() && e.f & _e)
|
|
1671
|
-
for (n =
|
|
1665
|
+
for (n = oe; n < t.length; n++)
|
|
1672
1666
|
(t[n].reactions ??= []).push(e);
|
|
1673
|
-
} else !r && t !== null &&
|
|
1667
|
+
} else !r && t !== null && oe < t.length && (Lt(e, oe), t.length = oe);
|
|
1674
1668
|
return t;
|
|
1675
1669
|
}
|
|
1676
|
-
function
|
|
1670
|
+
function no(e, t) {
|
|
1677
1671
|
let r = t.reactions;
|
|
1678
1672
|
if (r !== null) {
|
|
1679
1673
|
var n = us.call(r, e);
|
|
@@ -1691,7 +1685,7 @@ function na(e, t) {
|
|
|
1691
1685
|
t
|
|
1692
1686
|
);
|
|
1693
1687
|
s.f & _e && (s.f ^= _e), s.v !== j && zr(s), s.ac !== null && lr(() => {
|
|
1694
|
-
s.ac.abort(It), s.ac = null,
|
|
1688
|
+
s.ac.abort(It), s.ac = null, k(s, M);
|
|
1695
1689
|
}), Fs(s), Lt(s, 0);
|
|
1696
1690
|
}
|
|
1697
1691
|
}
|
|
@@ -1699,40 +1693,40 @@ function Lt(e, t) {
|
|
|
1699
1693
|
var r = e.deps;
|
|
1700
1694
|
if (r !== null)
|
|
1701
1695
|
for (var n = t; n < r.length; n++)
|
|
1702
|
-
|
|
1696
|
+
no(e, r[n]);
|
|
1703
1697
|
}
|
|
1704
1698
|
function ht(e) {
|
|
1705
1699
|
var t = e.f;
|
|
1706
1700
|
if (!(t & q)) {
|
|
1707
|
-
|
|
1701
|
+
k(e, V);
|
|
1708
1702
|
var r = S;
|
|
1709
1703
|
S = e;
|
|
1710
1704
|
try {
|
|
1711
|
-
t & (de | Gn) ?
|
|
1705
|
+
t & (de | Gn) ? eo(e) : rn(e), pi(e);
|
|
1712
1706
|
var n = wi(e);
|
|
1713
1707
|
e.teardown = typeof n == "function" ? n : null, e.wv = yi;
|
|
1714
1708
|
var i;
|
|
1715
|
-
kn && Ms && e.f &
|
|
1709
|
+
kn && Ms && e.f & M && e.deps;
|
|
1716
1710
|
} finally {
|
|
1717
1711
|
S = r;
|
|
1718
1712
|
}
|
|
1719
1713
|
}
|
|
1720
1714
|
}
|
|
1721
|
-
async function
|
|
1722
|
-
await Promise.resolve(),
|
|
1715
|
+
async function io() {
|
|
1716
|
+
await Promise.resolve(), fe();
|
|
1723
1717
|
}
|
|
1724
1718
|
function $(e) {
|
|
1725
1719
|
var t = e.f, r = (t & Z) !== 0;
|
|
1726
|
-
if (
|
|
1720
|
+
if (w !== null && !ve) {
|
|
1727
1721
|
var n = S !== null && (S.f & q) !== 0;
|
|
1728
1722
|
if (!n && (xe === null || !xe.has(e))) {
|
|
1729
|
-
var i =
|
|
1730
|
-
if (
|
|
1731
|
-
e.rv < We && (e.rv = We, ne === null && i !== null && i[
|
|
1723
|
+
var i = w.deps;
|
|
1724
|
+
if (w.f & Jt)
|
|
1725
|
+
e.rv < We && (e.rv = We, ne === null && i !== null && i[oe] === e ? oe++ : ne === null ? ne = [e] : ne.push(e));
|
|
1732
1726
|
else {
|
|
1733
|
-
|
|
1727
|
+
w.deps ??= [], Bt.call(w.deps, e) || w.deps.push(e);
|
|
1734
1728
|
var s = e.reactions;
|
|
1735
|
-
s === null ? e.reactions = [
|
|
1729
|
+
s === null ? e.reactions = [w] : Bt.call(s, w) || s.push(w);
|
|
1736
1730
|
}
|
|
1737
1731
|
}
|
|
1738
1732
|
}
|
|
@@ -1747,7 +1741,7 @@ function $(e) {
|
|
|
1747
1741
|
var a = o.v;
|
|
1748
1742
|
return (!(o.f & V) && o.reactions !== null || Si(o)) && (a = Zr(o)), Ee.set(o, a), a;
|
|
1749
1743
|
}
|
|
1750
|
-
var u = (o.f & _e) === 0 && !ve &&
|
|
1744
|
+
var u = (o.f & _e) === 0 && !ve && w !== null && (w.f & _e) !== 0, l = (o.f & ze) === 0;
|
|
1751
1745
|
Rt(o) && (u && (o.f |= _e), Kn(o)), u && !l && (ei(o), Ti(o));
|
|
1752
1746
|
}
|
|
1753
1747
|
if (pe?.has(e))
|
|
@@ -1788,7 +1782,7 @@ function Hi(e) {
|
|
|
1788
1782
|
ve = t;
|
|
1789
1783
|
}
|
|
1790
1784
|
}
|
|
1791
|
-
const kt = Symbol("events"),
|
|
1785
|
+
const kt = Symbol("events"), so = /* @__PURE__ */ new Set(), yn = /* @__PURE__ */ new Set();
|
|
1792
1786
|
let br = null, yr = !1;
|
|
1793
1787
|
function En(e) {
|
|
1794
1788
|
var t = this, r = (
|
|
@@ -1816,13 +1810,13 @@ function En(e) {
|
|
|
1816
1810
|
}
|
|
1817
1811
|
if (s = /** @type {Element} */
|
|
1818
1812
|
i[o] || e.target, s !== t) {
|
|
1819
|
-
|
|
1813
|
+
ot(e, "currentTarget", {
|
|
1820
1814
|
configurable: !0,
|
|
1821
1815
|
get() {
|
|
1822
1816
|
return s || r;
|
|
1823
1817
|
}
|
|
1824
1818
|
});
|
|
1825
|
-
var f =
|
|
1819
|
+
var f = w, h = S;
|
|
1826
1820
|
ce(null), Te(null);
|
|
1827
1821
|
try {
|
|
1828
1822
|
for (var c, d = []; s !== null && s !== t; ) {
|
|
@@ -1853,22 +1847,22 @@ function En(e) {
|
|
|
1853
1847
|
}
|
|
1854
1848
|
}
|
|
1855
1849
|
}
|
|
1856
|
-
const
|
|
1850
|
+
const oo = (
|
|
1857
1851
|
// We gotta write it like this because after downleveling the pure comment may end up in the wrong location
|
|
1858
1852
|
globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
|
|
1859
1853
|
/** @param {string} html */
|
|
1860
1854
|
createHTML: (e) => e
|
|
1861
1855
|
})
|
|
1862
1856
|
);
|
|
1863
|
-
function
|
|
1857
|
+
function ao(e) {
|
|
1864
1858
|
return (
|
|
1865
1859
|
/** @type {string} */
|
|
1866
|
-
|
|
1860
|
+
oo?.createHTML(e) ?? e
|
|
1867
1861
|
);
|
|
1868
1862
|
}
|
|
1869
|
-
function
|
|
1863
|
+
function uo(e) {
|
|
1870
1864
|
var t = Kr("template");
|
|
1871
|
-
return t.innerHTML =
|
|
1865
|
+
return t.innerHTML = ao(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1872
1866
|
}
|
|
1873
1867
|
function Pt(e, t) {
|
|
1874
1868
|
var r = (
|
|
@@ -1879,20 +1873,20 @@ function Pt(e, t) {
|
|
|
1879
1873
|
}
|
|
1880
1874
|
// @__NO_SIDE_EFFECTS__
|
|
1881
1875
|
function nn(e, t) {
|
|
1882
|
-
var r = (t &
|
|
1876
|
+
var r = (t & os) !== 0, n, i = !e.startsWith("<!>");
|
|
1883
1877
|
return () => {
|
|
1884
1878
|
if (F)
|
|
1885
1879
|
return Pt(L, null), L;
|
|
1886
|
-
n === void 0 && (n =
|
|
1880
|
+
n === void 0 && (n = uo(i ? e : "<!>" + e), n = /** @type {TemplateNode} */
|
|
1887
1881
|
/* @__PURE__ */ ft(n));
|
|
1888
1882
|
var s = (
|
|
1889
1883
|
/** @type {TemplateNode} */
|
|
1890
|
-
r ||
|
|
1884
|
+
r || ai ? document.importNode(n, !0) : n.cloneNode(!0)
|
|
1891
1885
|
);
|
|
1892
1886
|
return Pt(s, s), s;
|
|
1893
1887
|
};
|
|
1894
1888
|
}
|
|
1895
|
-
function
|
|
1889
|
+
function lo() {
|
|
1896
1890
|
if (F)
|
|
1897
1891
|
return Pt(L, null), L;
|
|
1898
1892
|
var e = document.createDocumentFragment(), t = document.createComment(""), r = Pe();
|
|
@@ -1912,11 +1906,11 @@ function St(e, t) {
|
|
|
1912
1906
|
t
|
|
1913
1907
|
);
|
|
1914
1908
|
}
|
|
1915
|
-
const
|
|
1916
|
-
function
|
|
1917
|
-
return
|
|
1909
|
+
const fo = ["touchstart", "touchmove"];
|
|
1910
|
+
function ho(e) {
|
|
1911
|
+
return fo.includes(e);
|
|
1918
1912
|
}
|
|
1919
|
-
function
|
|
1913
|
+
function co(e) {
|
|
1920
1914
|
let t = 0, r = Ct(0), n;
|
|
1921
1915
|
return () => {
|
|
1922
1916
|
tn() && ($(r), ci(() => (t === 0 && (n = Hi(() => e(() => $t(r)))), t += 1, () => {
|
|
@@ -1926,11 +1920,11 @@ function ca(e) {
|
|
|
1926
1920
|
})));
|
|
1927
1921
|
};
|
|
1928
1922
|
}
|
|
1929
|
-
var
|
|
1930
|
-
function
|
|
1931
|
-
new
|
|
1923
|
+
var po = ut | qe;
|
|
1924
|
+
function vo(e, t, r, n) {
|
|
1925
|
+
new _o(e, t, r, n);
|
|
1932
1926
|
}
|
|
1933
|
-
class
|
|
1927
|
+
class _o {
|
|
1934
1928
|
/** @type {Boundary | null} */
|
|
1935
1929
|
parent;
|
|
1936
1930
|
is_pending = !1;
|
|
@@ -1947,24 +1941,22 @@ class va {
|
|
|
1947
1941
|
/** @type {BoundaryProps} */
|
|
1948
1942
|
#r;
|
|
1949
1943
|
/** @type {((anchor: Node) => void)} */
|
|
1950
|
-
#
|
|
1944
|
+
#a;
|
|
1951
1945
|
/** @type {Effect} */
|
|
1952
|
-
#
|
|
1946
|
+
#n;
|
|
1953
1947
|
/** @type {Effect | null} */
|
|
1954
|
-
#
|
|
1955
|
-
/** @type {Effect | null} */
|
|
1956
|
-
#n = null;
|
|
1948
|
+
#i = null;
|
|
1957
1949
|
/** @type {Effect | null} */
|
|
1958
1950
|
#o = null;
|
|
1959
|
-
/** @type {
|
|
1951
|
+
/** @type {Effect | null} */
|
|
1960
1952
|
#s = null;
|
|
1961
|
-
|
|
1953
|
+
/** @type {DocumentFragment | null} */
|
|
1954
|
+
#u = null;
|
|
1955
|
+
#d = 0;
|
|
1962
1956
|
#l = 0;
|
|
1963
|
-
#
|
|
1964
|
-
/** @type {
|
|
1965
|
-
#
|
|
1966
|
-
/** @type {Set<Effect>} */
|
|
1967
|
-
#m = /* @__PURE__ */ new Set();
|
|
1957
|
+
#v = !1;
|
|
1958
|
+
/** @type {Map<Effect, number>} */
|
|
1959
|
+
#m = /* @__PURE__ */ new Map();
|
|
1968
1960
|
/**
|
|
1969
1961
|
* A source containing the number of pending async deriveds/expressions.
|
|
1970
1962
|
* Only created if `$effect.pending()` is used inside the boundary,
|
|
@@ -1972,9 +1964,9 @@ class va {
|
|
|
1972
1964
|
* calls followed by no-op flushes
|
|
1973
1965
|
* @type {Source<number> | null}
|
|
1974
1966
|
*/
|
|
1975
|
-
#
|
|
1976
|
-
#
|
|
1977
|
-
this.#
|
|
1967
|
+
#f = null;
|
|
1968
|
+
#_ = co(() => (this.#f = Ct(this.#d), () => {
|
|
1969
|
+
this.#f = null;
|
|
1978
1970
|
}));
|
|
1979
1971
|
/**
|
|
1980
1972
|
* @param {TemplateNode} node
|
|
@@ -1983,14 +1975,14 @@ class va {
|
|
|
1983
1975
|
* @param {((error: unknown) => unknown) | undefined} [transform_error]
|
|
1984
1976
|
*/
|
|
1985
1977
|
constructor(t, r, n, i) {
|
|
1986
|
-
this.#e = t, this.#r = r, this.#
|
|
1978
|
+
this.#e = t, this.#r = r, this.#a = (s) => {
|
|
1987
1979
|
var o = (
|
|
1988
1980
|
/** @type {Effect} */
|
|
1989
1981
|
S
|
|
1990
1982
|
);
|
|
1991
1983
|
o.b = this, o.f |= $r, n(s);
|
|
1992
1984
|
}, this.parent = /** @type {Effect} */
|
|
1993
|
-
S.b, this.transform_error = i ?? this.parent?.transform_error ?? ((s) => s), this.#
|
|
1985
|
+
S.b, this.transform_error = i ?? this.parent?.transform_error ?? ((s) => s), this.#n = di(() => {
|
|
1994
1986
|
if (F) {
|
|
1995
1987
|
const s = Wn(
|
|
1996
1988
|
/** @type {TemplateNode} */
|
|
@@ -2000,15 +1992,15 @@ class va {
|
|
|
2000
1992
|
const o = s === Rn;
|
|
2001
1993
|
if (s.startsWith(un)) {
|
|
2002
1994
|
const u = JSON.parse(s.slice(un.length));
|
|
2003
|
-
this.#
|
|
2004
|
-
} else o ? this.#
|
|
1995
|
+
this.#y(u);
|
|
1996
|
+
} else o ? this.#p() : this.#g();
|
|
2005
1997
|
} else
|
|
2006
|
-
this.#
|
|
2007
|
-
},
|
|
1998
|
+
this.#E();
|
|
1999
|
+
}, po), F && (this.#e = L);
|
|
2008
2000
|
}
|
|
2009
|
-
#
|
|
2001
|
+
#g() {
|
|
2010
2002
|
try {
|
|
2011
|
-
this.#
|
|
2003
|
+
this.#i = $e(() => this.#a(this.#e));
|
|
2012
2004
|
} catch (t) {
|
|
2013
2005
|
this.error(t);
|
|
2014
2006
|
}
|
|
@@ -2016,9 +2008,9 @@ class va {
|
|
|
2016
2008
|
/**
|
|
2017
2009
|
* @param {unknown} error The deserialized error from the server's hydration comment
|
|
2018
2010
|
*/
|
|
2019
|
-
#
|
|
2011
|
+
#y(t) {
|
|
2020
2012
|
const r = this.#r.failed, { reset: n, invoke_onerror: i } = this.#b(t);
|
|
2021
|
-
Ve(i), r && (this.#
|
|
2013
|
+
Ve(i), r && (this.#s = $e(() => {
|
|
2022
2014
|
r(
|
|
2023
2015
|
this.#e,
|
|
2024
2016
|
() => t,
|
|
@@ -2035,80 +2027,80 @@ class va {
|
|
|
2035
2027
|
#b(t) {
|
|
2036
2028
|
var r = !1, n = !1;
|
|
2037
2029
|
const i = () => {
|
|
2038
|
-
if (!this.#
|
|
2030
|
+
if (!this.#h()) {
|
|
2039
2031
|
if (r) {
|
|
2040
2032
|
ys();
|
|
2041
2033
|
return;
|
|
2042
2034
|
}
|
|
2043
|
-
r = !0, n && Ps(), this.#
|
|
2044
|
-
this.#
|
|
2045
|
-
}), this.#
|
|
2046
|
-
this.#
|
|
2035
|
+
r = !0, n && Ps(), this.#s !== null && Ot(this.#s, () => {
|
|
2036
|
+
this.#s = null;
|
|
2037
|
+
}), this.#x(() => {
|
|
2038
|
+
this.#E();
|
|
2047
2039
|
});
|
|
2048
2040
|
}
|
|
2049
2041
|
};
|
|
2050
2042
|
return { reset: i, invoke_onerror: () => {
|
|
2051
|
-
if (!this.#
|
|
2043
|
+
if (!this.#h())
|
|
2052
2044
|
try {
|
|
2053
2045
|
n = !0, this.#r.onerror?.(t, i), n = !1;
|
|
2054
2046
|
} catch (o) {
|
|
2055
|
-
ge(o, this.#
|
|
2047
|
+
ge(o, this.#n && this.#n.parent);
|
|
2056
2048
|
}
|
|
2057
2049
|
} };
|
|
2058
2050
|
}
|
|
2059
|
-
#
|
|
2060
|
-
return (this.#
|
|
2051
|
+
#h() {
|
|
2052
|
+
return (this.#n.f & (q | qt)) !== 0;
|
|
2061
2053
|
}
|
|
2062
|
-
#
|
|
2054
|
+
#p() {
|
|
2063
2055
|
const t = this.#r.pending;
|
|
2064
|
-
t && (this.is_pending = !0, this.#
|
|
2065
|
-
if (!this.#
|
|
2066
|
-
var r = this.#
|
|
2067
|
-
if (r.append(n), this.#
|
|
2056
|
+
t && (this.is_pending = !0, this.#o = $e(() => t(this.#e)), Ve(() => {
|
|
2057
|
+
if (!this.#h()) {
|
|
2058
|
+
var r = this.#u = document.createDocumentFragment(), n = Pe(), i = !1;
|
|
2059
|
+
if (r.append(n), this.#i = this.#x(() => {
|
|
2068
2060
|
try {
|
|
2069
|
-
return $e(() => this.#
|
|
2061
|
+
return $e(() => this.#a(n));
|
|
2070
2062
|
} catch (s) {
|
|
2071
2063
|
try {
|
|
2072
2064
|
this.error(s), i = !0;
|
|
2073
2065
|
} catch (o) {
|
|
2074
|
-
ge(o, this.#
|
|
2066
|
+
ge(o, this.#n.parent);
|
|
2075
2067
|
}
|
|
2076
2068
|
return null;
|
|
2077
2069
|
}
|
|
2078
|
-
}), this.#
|
|
2079
|
-
this.#
|
|
2070
|
+
}), this.#i === null) {
|
|
2071
|
+
this.#u = null, i && this.#c(
|
|
2080
2072
|
/** @type {Batch} */
|
|
2081
2073
|
A
|
|
2082
2074
|
);
|
|
2083
2075
|
return;
|
|
2084
2076
|
}
|
|
2085
|
-
this.#l === 0 && (this.#e.before(r), this.#
|
|
2077
|
+
this.#l === 0 && (this.#e.before(r), this.#u = null, Ot(
|
|
2086
2078
|
/** @type {Effect} */
|
|
2087
|
-
this.#
|
|
2079
|
+
this.#o,
|
|
2088
2080
|
() => {
|
|
2089
|
-
this.#
|
|
2081
|
+
this.#o = null;
|
|
2090
2082
|
}
|
|
2091
|
-
), this.#
|
|
2083
|
+
), this.#c(
|
|
2092
2084
|
/** @type {Batch} */
|
|
2093
2085
|
A
|
|
2094
2086
|
));
|
|
2095
2087
|
}
|
|
2096
2088
|
}));
|
|
2097
2089
|
}
|
|
2098
|
-
#
|
|
2090
|
+
#E() {
|
|
2099
2091
|
try {
|
|
2100
|
-
if (this.is_pending = this.has_pending_snippet(), this.#l = 0, this.#
|
|
2101
|
-
this.#
|
|
2092
|
+
if (this.is_pending = this.has_pending_snippet(), this.#l = 0, this.#d = 0, this.#i = $e(() => {
|
|
2093
|
+
this.#a(this.#e);
|
|
2102
2094
|
}), this.#l > 0) {
|
|
2103
|
-
var t = this.#
|
|
2104
|
-
gi(this.#
|
|
2095
|
+
var t = this.#u = document.createDocumentFragment();
|
|
2096
|
+
gi(this.#i, t);
|
|
2105
2097
|
const r = (
|
|
2106
2098
|
/** @type {(anchor: Node) => void} */
|
|
2107
2099
|
this.#r.pending
|
|
2108
2100
|
);
|
|
2109
|
-
this.#
|
|
2101
|
+
this.#o = $e(() => r(this.#e));
|
|
2110
2102
|
} else
|
|
2111
|
-
this.#
|
|
2103
|
+
this.#c(
|
|
2112
2104
|
/** @type {Batch} */
|
|
2113
2105
|
A
|
|
2114
2106
|
);
|
|
@@ -2119,15 +2111,15 @@ class va {
|
|
|
2119
2111
|
/**
|
|
2120
2112
|
* @param {Batch} batch
|
|
2121
2113
|
*/
|
|
2122
|
-
#
|
|
2123
|
-
this.is_pending = !1, t.
|
|
2114
|
+
#c(t) {
|
|
2115
|
+
this.is_pending = !1, t.transfer_reactions(this.#m);
|
|
2124
2116
|
}
|
|
2125
2117
|
/**
|
|
2126
2118
|
* Defer an effect inside a pending boundary until the boundary resolves
|
|
2127
2119
|
* @param {Effect} effect
|
|
2128
2120
|
*/
|
|
2129
2121
|
defer_effect(t) {
|
|
2130
|
-
Jn(t, this.#
|
|
2122
|
+
Jn(t, this.#m);
|
|
2131
2123
|
}
|
|
2132
2124
|
/**
|
|
2133
2125
|
* Returns `false` if the effect exists inside a boundary whose pending snippet is shown
|
|
@@ -2143,9 +2135,9 @@ class va {
|
|
|
2143
2135
|
* @template T
|
|
2144
2136
|
* @param {() => T} fn
|
|
2145
2137
|
*/
|
|
2146
|
-
#
|
|
2147
|
-
var r = S, n =
|
|
2148
|
-
Te(this.#
|
|
2138
|
+
#x(t) {
|
|
2139
|
+
var r = S, n = w, i = ie;
|
|
2140
|
+
Te(this.#n), ce(this.#n), lt(this.#n.ctx);
|
|
2149
2141
|
try {
|
|
2150
2142
|
return Le.ensure(), t();
|
|
2151
2143
|
} finally {
|
|
@@ -2158,14 +2150,14 @@ class va {
|
|
|
2158
2150
|
* @param {1 | -1} d
|
|
2159
2151
|
* @param {Batch} batch
|
|
2160
2152
|
*/
|
|
2161
|
-
#
|
|
2153
|
+
#w(t, r) {
|
|
2162
2154
|
if (!this.has_pending_snippet()) {
|
|
2163
|
-
this.parent && this.parent.#
|
|
2155
|
+
this.parent && this.parent.#w(t, r);
|
|
2164
2156
|
return;
|
|
2165
2157
|
}
|
|
2166
|
-
this.#l += t, this.#l === 0 && (this.#
|
|
2167
|
-
this.#
|
|
2168
|
-
}), this.#
|
|
2158
|
+
this.#l += t, this.#l === 0 && (this.#c(r), this.#o && Ot(this.#o, () => {
|
|
2159
|
+
this.#o = null;
|
|
2160
|
+
}), this.#u && (this.#e.before(this.#u), this.#u = null));
|
|
2169
2161
|
}
|
|
2170
2162
|
/**
|
|
2171
2163
|
* Update the source that powers `$effect.pending()` inside this boundary,
|
|
@@ -2175,37 +2167,37 @@ class va {
|
|
|
2175
2167
|
* @param {Batch} batch
|
|
2176
2168
|
*/
|
|
2177
2169
|
update_pending_count(t, r) {
|
|
2178
|
-
this.#
|
|
2179
|
-
this.#
|
|
2170
|
+
this.#w(t, r), this.#d += t, !(!this.#f || this.#v) && (this.#v = !0, Ve(() => {
|
|
2171
|
+
this.#v = !1, this.#f && er(this.#f, this.#d);
|
|
2180
2172
|
}));
|
|
2181
2173
|
}
|
|
2182
2174
|
get_effect_pending() {
|
|
2183
|
-
return this.#
|
|
2175
|
+
return this.#_(), $(
|
|
2184
2176
|
/** @type {Source<number>} */
|
|
2185
|
-
this.#
|
|
2177
|
+
this.#f
|
|
2186
2178
|
);
|
|
2187
2179
|
}
|
|
2188
2180
|
/** @param {unknown} error */
|
|
2189
2181
|
error(t) {
|
|
2190
2182
|
if (t === De || !this.#r.onerror && !this.#r.failed)
|
|
2191
2183
|
throw t;
|
|
2192
|
-
A?.is_fork ? (this.#
|
|
2193
|
-
this.#
|
|
2194
|
-
})) : this.#
|
|
2184
|
+
A?.is_fork ? (this.#i && A.skip_effect(this.#i), this.#o && A.skip_effect(this.#o), this.#s && A.skip_effect(this.#s), A.oncommit(() => {
|
|
2185
|
+
this.#h() || this.#T(t);
|
|
2186
|
+
})) : this.#T(t);
|
|
2195
2187
|
}
|
|
2196
2188
|
/**
|
|
2197
2189
|
* @param {unknown} error
|
|
2198
2190
|
*/
|
|
2199
|
-
#
|
|
2200
|
-
this.#
|
|
2191
|
+
#T(t) {
|
|
2192
|
+
this.#i && (se(this.#i), this.#i = null), this.#o && (se(this.#o), this.#o = null), this.#s && (se(this.#s), this.#s = null), F && (me(
|
|
2201
2193
|
/** @type {TemplateNode} */
|
|
2202
2194
|
this.#t
|
|
2203
2195
|
), Es(), me(Vn()));
|
|
2204
2196
|
let r = this.#r.failed;
|
|
2205
2197
|
const n = (i) => {
|
|
2206
|
-
if (this.#
|
|
2198
|
+
if (this.#h()) return;
|
|
2207
2199
|
const { reset: s, invoke_onerror: o } = this.#b(i);
|
|
2208
|
-
o(), r && !this.#
|
|
2200
|
+
o(), r && !this.#h() && (this.#s = this.#x(() => {
|
|
2209
2201
|
try {
|
|
2210
2202
|
return $e(() => {
|
|
2211
2203
|
var a = (
|
|
@@ -2222,25 +2214,25 @@ class va {
|
|
|
2222
2214
|
return ge(
|
|
2223
2215
|
a,
|
|
2224
2216
|
/** @type {Effect} */
|
|
2225
|
-
this.#
|
|
2217
|
+
this.#n.parent
|
|
2226
2218
|
), null;
|
|
2227
2219
|
}
|
|
2228
2220
|
}));
|
|
2229
2221
|
};
|
|
2230
2222
|
Ve(() => {
|
|
2231
|
-
if (!this.#
|
|
2223
|
+
if (!this.#h()) {
|
|
2232
2224
|
var i;
|
|
2233
2225
|
try {
|
|
2234
2226
|
i = this.transform_error(t);
|
|
2235
2227
|
} catch (s) {
|
|
2236
|
-
ge(s, this.#
|
|
2228
|
+
ge(s, this.#n && this.#n.parent);
|
|
2237
2229
|
return;
|
|
2238
2230
|
}
|
|
2239
2231
|
i !== null && typeof i == "object" && typeof /** @type {any} */
|
|
2240
2232
|
i.then == "function" ? i.then(
|
|
2241
2233
|
n,
|
|
2242
2234
|
/** @param {unknown} e */
|
|
2243
|
-
(s) => ge(s, this.#
|
|
2235
|
+
(s) => ge(s, this.#n && this.#n.parent)
|
|
2244
2236
|
) : n(i);
|
|
2245
2237
|
}
|
|
2246
2238
|
});
|
|
@@ -2254,11 +2246,11 @@ function Er(e, t) {
|
|
|
2254
2246
|
function Ai(e, t) {
|
|
2255
2247
|
return $i(e, t);
|
|
2256
2248
|
}
|
|
2257
|
-
function
|
|
2249
|
+
function mo(e, t) {
|
|
2258
2250
|
Pr(), t.intro = t.intro ?? !1;
|
|
2259
2251
|
const r = t.target, n = F, i = L;
|
|
2260
2252
|
try {
|
|
2261
|
-
for (var s = /* @__PURE__ */ ft(r); s && (s.nodeType !==
|
|
2253
|
+
for (var s = /* @__PURE__ */ ft(r); s && (s.nodeType !== ar || /** @type {Comment} */
|
|
2262
2254
|
s.data !== Cn); )
|
|
2263
2255
|
s = /* @__PURE__ */ Ne(s);
|
|
2264
2256
|
if (!s)
|
|
@@ -2284,7 +2276,7 @@ function $i(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
2284
2276
|
Pr();
|
|
2285
2277
|
var u = void 0, l = Js(() => {
|
|
2286
2278
|
var f = r ?? t.appendChild(Pe());
|
|
2287
|
-
|
|
2279
|
+
vo(
|
|
2288
2280
|
/** @type {TemplateNode} */
|
|
2289
2281
|
f,
|
|
2290
2282
|
{
|
|
@@ -2301,7 +2293,7 @@ function $i(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
2301
2293
|
/** @type {TemplateNode} */
|
|
2302
2294
|
d,
|
|
2303
2295
|
null
|
|
2304
|
-
), u = e(d, n) || zn(), F && (S.nodes.end = L, L === null || L.nodeType !==
|
|
2296
|
+
), u = e(d, n) || zn(), F && (S.nodes.end = L, L === null || L.nodeType !== ar || /** @type {Comment} */
|
|
2305
2297
|
L.data !== Dn))
|
|
2306
2298
|
throw ur(), De;
|
|
2307
2299
|
Yr();
|
|
@@ -2313,27 +2305,27 @@ function $i(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
2313
2305
|
var b = d[p];
|
|
2314
2306
|
if (!h.has(b)) {
|
|
2315
2307
|
h.add(b);
|
|
2316
|
-
var
|
|
2308
|
+
var I = ho(b);
|
|
2317
2309
|
for (const U of [t, document]) {
|
|
2318
2310
|
var G = Ft.get(U);
|
|
2319
2311
|
G === void 0 && (G = /* @__PURE__ */ new Map(), Ft.set(U, G));
|
|
2320
2312
|
var W = G.get(b);
|
|
2321
|
-
W === void 0 ? (U.addEventListener(b, En, { passive:
|
|
2313
|
+
W === void 0 ? (U.addEventListener(b, En, { passive: I }), G.set(b, 1)) : G.set(b, W + 1);
|
|
2322
2314
|
}
|
|
2323
2315
|
}
|
|
2324
2316
|
}
|
|
2325
2317
|
};
|
|
2326
|
-
return c(ls(
|
|
2318
|
+
return c(ls(so)), yn.add(c), () => {
|
|
2327
2319
|
for (var d of h)
|
|
2328
|
-
for (const
|
|
2320
|
+
for (const I of [t, document]) {
|
|
2329
2321
|
var p = (
|
|
2330
2322
|
/** @type {Map<string, number>} */
|
|
2331
|
-
Ft.get(
|
|
2323
|
+
Ft.get(I)
|
|
2332
2324
|
), b = (
|
|
2333
2325
|
/** @type {number} */
|
|
2334
2326
|
p.get(d)
|
|
2335
2327
|
);
|
|
2336
|
-
--b == 0 ? (
|
|
2328
|
+
--b == 0 ? (I.removeEventListener(d, En), p.delete(d), p.size === 0 && Ft.delete(I)) : p.set(d, b);
|
|
2337
2329
|
}
|
|
2338
2330
|
yn.delete(c), f !== r && f.parentNode?.removeChild(f);
|
|
2339
2331
|
};
|
|
@@ -2341,11 +2333,11 @@ function $i(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
2341
2333
|
return Mr.set(u, l), u;
|
|
2342
2334
|
}
|
|
2343
2335
|
let Mr = /* @__PURE__ */ new WeakMap();
|
|
2344
|
-
function
|
|
2336
|
+
function go(e, t) {
|
|
2345
2337
|
const r = Mr.get(e);
|
|
2346
2338
|
return r ? (Mr.delete(e), r(t)) : Promise.resolve();
|
|
2347
2339
|
}
|
|
2348
|
-
class
|
|
2340
|
+
class bo {
|
|
2349
2341
|
/** @type {TemplateNode} */
|
|
2350
2342
|
anchor;
|
|
2351
2343
|
/** @type {Map<Batch, Key>} */
|
|
@@ -2375,30 +2367,30 @@ class ga {
|
|
|
2375
2367
|
* Keys of effects that are currently outroing
|
|
2376
2368
|
* @type {Set<Key>}
|
|
2377
2369
|
*/
|
|
2378
|
-
#
|
|
2370
|
+
#a = /* @__PURE__ */ new Set();
|
|
2379
2371
|
/**
|
|
2380
2372
|
* Whether to pause (i.e. outro) on change, or destroy immediately.
|
|
2381
2373
|
* This is necessary for `<svelte:element>`
|
|
2382
2374
|
*/
|
|
2383
|
-
#
|
|
2375
|
+
#n = !0;
|
|
2384
2376
|
/**
|
|
2385
2377
|
* @param {TemplateNode} anchor
|
|
2386
2378
|
* @param {boolean} transition
|
|
2387
2379
|
*/
|
|
2388
2380
|
constructor(t, r = !0) {
|
|
2389
|
-
this.anchor = t, this.#
|
|
2381
|
+
this.anchor = t, this.#n = r;
|
|
2390
2382
|
}
|
|
2391
2383
|
/**
|
|
2392
2384
|
* @param {Batch} batch
|
|
2393
2385
|
*/
|
|
2394
|
-
#
|
|
2386
|
+
#i = (t) => {
|
|
2395
2387
|
if (this.#e.has(t)) {
|
|
2396
2388
|
var r = (
|
|
2397
2389
|
/** @type {Key} */
|
|
2398
2390
|
this.#e.get(t)
|
|
2399
2391
|
), n = this.#t.get(r);
|
|
2400
2392
|
if (n)
|
|
2401
|
-
_n(n), this.#
|
|
2393
|
+
_n(n), this.#a.delete(r);
|
|
2402
2394
|
else {
|
|
2403
2395
|
var i = this.#r.get(r);
|
|
2404
2396
|
i && (_n(i.effect), this.#t.set(r, i.effect), this.#r.delete(r), i.fragment.lastChild.remove(), this.anchor.before(i.fragment), n = i.effect);
|
|
@@ -2410,23 +2402,23 @@ class ga {
|
|
|
2410
2402
|
a && (se(a.effect), this.#r.delete(o));
|
|
2411
2403
|
}
|
|
2412
2404
|
for (const [s, o] of this.#t) {
|
|
2413
|
-
if (s === r || this.#
|
|
2405
|
+
if (s === r || this.#a.has(s)) continue;
|
|
2414
2406
|
const a = () => {
|
|
2415
2407
|
if (Array.from(this.#e.values()).includes(s)) {
|
|
2416
2408
|
var l = document.createDocumentFragment();
|
|
2417
2409
|
gi(o, l), l.append(Pe()), this.#r.set(s, { effect: o, fragment: l });
|
|
2418
2410
|
} else
|
|
2419
2411
|
se(o);
|
|
2420
|
-
this.#
|
|
2412
|
+
this.#a.delete(s), this.#t.delete(s);
|
|
2421
2413
|
};
|
|
2422
|
-
this.#
|
|
2414
|
+
this.#n || !n ? (this.#a.add(s), Ot(o, a, !1)) : a();
|
|
2423
2415
|
}
|
|
2424
2416
|
}
|
|
2425
2417
|
};
|
|
2426
2418
|
/**
|
|
2427
2419
|
* @param {Batch} batch
|
|
2428
2420
|
*/
|
|
2429
|
-
#
|
|
2421
|
+
#o = (t) => {
|
|
2430
2422
|
this.#e.delete(t);
|
|
2431
2423
|
const r = Array.from(this.#e.values());
|
|
2432
2424
|
for (const [n, i] of this.#r)
|
|
@@ -2459,15 +2451,15 @@ class ga {
|
|
|
2459
2451
|
a === t ? n.unskip_effect(u) : n.skip_effect(u);
|
|
2460
2452
|
for (const [a, u] of this.#r)
|
|
2461
2453
|
a === t ? n.unskip_effect(u.effect) : n.skip_effect(u.effect);
|
|
2462
|
-
n.oncommit(this.#
|
|
2454
|
+
n.oncommit(this.#i), n.ondiscard(this.#o);
|
|
2463
2455
|
} else
|
|
2464
|
-
F && (this.anchor = L), this.#
|
|
2456
|
+
F && (this.anchor = L), this.#i(n);
|
|
2465
2457
|
}
|
|
2466
2458
|
}
|
|
2467
2459
|
function xn(e, t, r = !1) {
|
|
2468
2460
|
var n;
|
|
2469
2461
|
F && (n = L, Wr());
|
|
2470
|
-
var i = new
|
|
2462
|
+
var i = new bo(e), s = r ? ut : 0;
|
|
2471
2463
|
function o(a, u) {
|
|
2472
2464
|
if (F) {
|
|
2473
2465
|
var l = Wn(
|
|
@@ -2489,7 +2481,7 @@ function xn(e, t, r = !1) {
|
|
|
2489
2481
|
}), a || o(-1, null);
|
|
2490
2482
|
}, s);
|
|
2491
2483
|
}
|
|
2492
|
-
function
|
|
2484
|
+
function yo(e, t) {
|
|
2493
2485
|
Qs(() => {
|
|
2494
2486
|
e = S?.parent?.nodes?.start ?? e;
|
|
2495
2487
|
var r = e.getRootNode(), n = (
|
|
@@ -2522,7 +2514,7 @@ function sn(e, t, r) {
|
|
|
2522
2514
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
2523
2515
|
}
|
|
2524
2516
|
const tt = [];
|
|
2525
|
-
function
|
|
2517
|
+
function Eo(e, t) {
|
|
2526
2518
|
return {
|
|
2527
2519
|
subscribe: fr(e, t).subscribe
|
|
2528
2520
|
};
|
|
@@ -2564,7 +2556,7 @@ function _t(e, t, r) {
|
|
|
2564
2556
|
if (!i.every(Boolean))
|
|
2565
2557
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
2566
2558
|
const s = t.length < 2;
|
|
2567
|
-
return
|
|
2559
|
+
return Eo(r, (o, a) => {
|
|
2568
2560
|
let u = !1;
|
|
2569
2561
|
const l = [];
|
|
2570
2562
|
let f = 0, h = Oe;
|
|
@@ -2577,8 +2569,8 @@ function _t(e, t, r) {
|
|
|
2577
2569
|
}, d = i.map(
|
|
2578
2570
|
(p, b) => sn(
|
|
2579
2571
|
p,
|
|
2580
|
-
(
|
|
2581
|
-
l[b] =
|
|
2572
|
+
(I) => {
|
|
2573
|
+
l[b] = I, f &= ~(1 << b), u && c();
|
|
2582
2574
|
},
|
|
2583
2575
|
() => {
|
|
2584
2576
|
f |= 1 << b;
|
|
@@ -2590,12 +2582,12 @@ function _t(e, t, r) {
|
|
|
2590
2582
|
};
|
|
2591
2583
|
});
|
|
2592
2584
|
}
|
|
2593
|
-
function
|
|
2585
|
+
function xo(e) {
|
|
2594
2586
|
let t;
|
|
2595
2587
|
return sn(e, (r) => t = r)(), t;
|
|
2596
2588
|
}
|
|
2597
2589
|
let Nr = Symbol("unmounted");
|
|
2598
|
-
function
|
|
2590
|
+
function wo(e, t, r) {
|
|
2599
2591
|
const n = r[t] ??= {
|
|
2600
2592
|
store: null,
|
|
2601
2593
|
source: /* @__PURE__ */ si(void 0),
|
|
@@ -2610,15 +2602,15 @@ function xa(e, t, r) {
|
|
|
2610
2602
|
i ? n.source.v = s : Y(n.source, s);
|
|
2611
2603
|
}), i = !1;
|
|
2612
2604
|
}
|
|
2613
|
-
return e && Nr in r ?
|
|
2605
|
+
return e && Nr in r ? xo(e) : $(n.source);
|
|
2614
2606
|
}
|
|
2615
|
-
function
|
|
2607
|
+
function To() {
|
|
2616
2608
|
const e = {};
|
|
2617
2609
|
function t() {
|
|
2618
2610
|
fi(() => {
|
|
2619
2611
|
for (var r in e)
|
|
2620
2612
|
e[r].unsubscribe();
|
|
2621
|
-
|
|
2613
|
+
ot(e, Nr, {
|
|
2622
2614
|
enumerable: !1,
|
|
2623
2615
|
value: !0
|
|
2624
2616
|
});
|
|
@@ -2657,10 +2649,10 @@ function be(e, t, r, n) {
|
|
|
2657
2649
|
}
|
|
2658
2650
|
);
|
|
2659
2651
|
}
|
|
2660
|
-
function
|
|
2661
|
-
return new
|
|
2652
|
+
function So(e) {
|
|
2653
|
+
return new Ho(e);
|
|
2662
2654
|
}
|
|
2663
|
-
class
|
|
2655
|
+
class Ho {
|
|
2664
2656
|
/** @type {any} */
|
|
2665
2657
|
#e;
|
|
2666
2658
|
/** @type {Record<string, any>} */
|
|
@@ -2689,7 +2681,7 @@ class Sa {
|
|
|
2689
2681
|
}
|
|
2690
2682
|
}
|
|
2691
2683
|
);
|
|
2692
|
-
this.#t = (t.hydrate ?
|
|
2684
|
+
this.#t = (t.hydrate ? mo : Ai)(t.component, {
|
|
2693
2685
|
target: t.target,
|
|
2694
2686
|
anchor: t.anchor,
|
|
2695
2687
|
props: i,
|
|
@@ -2697,9 +2689,9 @@ class Sa {
|
|
|
2697
2689
|
intro: t.intro ?? !1,
|
|
2698
2690
|
recover: t.recover,
|
|
2699
2691
|
transformError: t.transformError
|
|
2700
|
-
}), (!t?.props?.$$host || t.sync === !1) &&
|
|
2692
|
+
}), (!t?.props?.$$host || t.sync === !1) && fe(), this.#e = i.$$events;
|
|
2701
2693
|
for (const s of Object.keys(this.#t))
|
|
2702
|
-
s === "$set" || s === "$destroy" || s === "$on" ||
|
|
2694
|
+
s === "$set" || s === "$destroy" || s === "$on" || ot(this, s, {
|
|
2703
2695
|
get() {
|
|
2704
2696
|
return this.#t[s];
|
|
2705
2697
|
},
|
|
@@ -2713,7 +2705,7 @@ class Sa {
|
|
|
2713
2705
|
(s) => {
|
|
2714
2706
|
Object.assign(i, s);
|
|
2715
2707
|
}, this.#t.$destroy = () => {
|
|
2716
|
-
|
|
2708
|
+
go(this.#t);
|
|
2717
2709
|
};
|
|
2718
2710
|
}
|
|
2719
2711
|
/** @param {Record<string, any>} props */
|
|
@@ -2804,7 +2796,7 @@ typeof HTMLElement == "function" && (Oi = class extends HTMLElement {
|
|
|
2804
2796
|
};
|
|
2805
2797
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
2806
2798
|
return;
|
|
2807
|
-
const t = {}, r =
|
|
2799
|
+
const t = {}, r = Ao(this);
|
|
2808
2800
|
for (const n of this.$$s)
|
|
2809
2801
|
n in r && (n === "default" && !this.$$d.children ? (this.$$d.children = e(n), t.default = !0) : t[n] = e(n));
|
|
2810
2802
|
for (const n of this.attributes) {
|
|
@@ -2813,7 +2805,7 @@ typeof HTMLElement == "function" && (Oi = class extends HTMLElement {
|
|
|
2813
2805
|
}
|
|
2814
2806
|
for (const n in this.$$p_d)
|
|
2815
2807
|
!(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
|
|
2816
|
-
this.$$c =
|
|
2808
|
+
this.$$c = So({
|
|
2817
2809
|
component: this.$$ctor,
|
|
2818
2810
|
target: this.$$shadowRoot || this,
|
|
2819
2811
|
props: {
|
|
@@ -2899,7 +2891,7 @@ function Wt(e, t, r, n) {
|
|
|
2899
2891
|
return t;
|
|
2900
2892
|
}
|
|
2901
2893
|
}
|
|
2902
|
-
function
|
|
2894
|
+
function Ao(e) {
|
|
2903
2895
|
const t = {};
|
|
2904
2896
|
return e.childNodes.forEach((r) => {
|
|
2905
2897
|
t[
|
|
@@ -2920,7 +2912,7 @@ function Bi(e, t, r, n, i, s) {
|
|
|
2920
2912
|
}
|
|
2921
2913
|
};
|
|
2922
2914
|
return zt(t).forEach((a) => {
|
|
2923
|
-
|
|
2915
|
+
ot(o.prototype, a, {
|
|
2924
2916
|
get() {
|
|
2925
2917
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
2926
2918
|
},
|
|
@@ -2934,7 +2926,7 @@ function Bi(e, t, r, n, i, s) {
|
|
|
2934
2926
|
}
|
|
2935
2927
|
});
|
|
2936
2928
|
}), n.forEach((a) => {
|
|
2937
|
-
|
|
2929
|
+
ot(o.prototype, a, {
|
|
2938
2930
|
get() {
|
|
2939
2931
|
return this.$$c?.[a];
|
|
2940
2932
|
}
|
|
@@ -2942,29 +2934,29 @@ function Bi(e, t, r, n, i, s) {
|
|
|
2942
2934
|
}), e.element = /** @type {any} */
|
|
2943
2935
|
o, o;
|
|
2944
2936
|
}
|
|
2945
|
-
class
|
|
2937
|
+
class $o extends Error {
|
|
2946
2938
|
constructor(t, r) {
|
|
2947
2939
|
super(r), this.code = t, this.name = "ElevateApiError";
|
|
2948
2940
|
}
|
|
2949
2941
|
}
|
|
2950
|
-
const
|
|
2942
|
+
const Oo = async (e) => {
|
|
2951
2943
|
const t = new URL(`${e.apiEndpoint}/elevate/playerInfo?language=${e.locale ?? ""}`), r = new Headers({ "Content-Type": "application/json" });
|
|
2952
2944
|
e.userSession && r.append("X-SessionId", e.userSession);
|
|
2953
2945
|
const i = await (await fetch(t.href, { method: "GET", headers: r })).json();
|
|
2954
2946
|
if (!i.success)
|
|
2955
|
-
throw new
|
|
2947
|
+
throw new $o(i.errorCode, i.errorMessage);
|
|
2956
2948
|
return i.data;
|
|
2957
|
-
},
|
|
2949
|
+
}, Bo = async (e) => {
|
|
2958
2950
|
const t = new URL(`${e.apiEndpoint}/elevate/levels?language=${e.locale ?? ""}`);
|
|
2959
2951
|
return (await (await fetch(t.href, { method: "GET" })).json()).data;
|
|
2960
|
-
}, tr = "DD/MM/YYYY HH:mm:ss",
|
|
2952
|
+
}, tr = "DD/MM/YYYY HH:mm:ss", Lo = (e, t) => {
|
|
2961
2953
|
const r = [...e].sort((i, s) => i.firstEntryPoints > s.firstEntryPoints ? 1 : -1);
|
|
2962
2954
|
let n = 0;
|
|
2963
2955
|
return r.forEach((i, s) => {
|
|
2964
2956
|
t > i.firstEntryPoints && (n = s);
|
|
2965
2957
|
}), n;
|
|
2966
2958
|
};
|
|
2967
|
-
var
|
|
2959
|
+
var Po = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2968
2960
|
function Li(e) {
|
|
2969
2961
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2970
2962
|
}
|
|
@@ -2972,8 +2964,8 @@ var Pi = { exports: {} };
|
|
|
2972
2964
|
(function(e, t) {
|
|
2973
2965
|
(function(r, n) {
|
|
2974
2966
|
e.exports = n();
|
|
2975
|
-
})(
|
|
2976
|
-
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", b = "Invalid Date",
|
|
2967
|
+
})(Po, function() {
|
|
2968
|
+
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", b = "Invalid Date", I = /^(\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, W = { 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) {
|
|
2977
2969
|
var m = ["th", "st", "nd", "rd"], v = y % 100;
|
|
2978
2970
|
return "[" + y + (m[(v - 20) % 10] || m[v] || m[0]) + "]";
|
|
2979
2971
|
} }, U = function(y, m, v) {
|
|
@@ -3029,7 +3021,7 @@ var Pi = { exports: {} };
|
|
|
3029
3021
|
if (O.u(_)) return /* @__PURE__ */ new Date();
|
|
3030
3022
|
if (_ instanceof Date) return new Date(_);
|
|
3031
3023
|
if (typeof _ == "string" && !/Z$/i.test(_)) {
|
|
3032
|
-
var x = _.match(
|
|
3024
|
+
var x = _.match(I);
|
|
3033
3025
|
if (x) {
|
|
3034
3026
|
var P = x[2] - 1 || 0, D = (x[7] || "0").substring(0, 3);
|
|
3035
3027
|
return E ? new Date(Date.UTC(x[1], P, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, D)) : new Date(x[1], P, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, D);
|
|
@@ -3063,7 +3055,7 @@ var Pi = { exports: {} };
|
|
|
3063
3055
|
return E ? Ie : Ie.endOf(l);
|
|
3064
3056
|
}, D = function(Ue, te) {
|
|
3065
3057
|
return O.w(_.toDate()[Ue].apply(_.toDate("s"), (E ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(te)), _);
|
|
3066
|
-
}, X = this.$W, z = this.$M,
|
|
3058
|
+
}, X = this.$W, z = this.$M, ue = this.$D, Qe = "set" + (this.$u ? "UTC" : "");
|
|
3067
3059
|
switch (x) {
|
|
3068
3060
|
case d:
|
|
3069
3061
|
return E ? P(1, 0) : P(31, 11);
|
|
@@ -3071,7 +3063,7 @@ var Pi = { exports: {} };
|
|
|
3071
3063
|
return E ? P(1, z) : P(0, z + 1);
|
|
3072
3064
|
case f:
|
|
3073
3065
|
var Fe = this.$locale().weekStart || 0, yt = (X < Fe ? X + 7 : X) - Fe;
|
|
3074
|
-
return P(E ?
|
|
3066
|
+
return P(E ? ue - yt : ue + (6 - yt), z);
|
|
3075
3067
|
case l:
|
|
3076
3068
|
case p:
|
|
3077
3069
|
return D(Qe + "Hours", 0);
|
|
@@ -3101,8 +3093,8 @@ var Pi = { exports: {} };
|
|
|
3101
3093
|
var _, E = this;
|
|
3102
3094
|
v = Number(v);
|
|
3103
3095
|
var x = O.p(g), P = function(z) {
|
|
3104
|
-
var
|
|
3105
|
-
return O.w(
|
|
3096
|
+
var ue = R(E);
|
|
3097
|
+
return O.w(ue.date(ue.date() + Math.round(z * v)), E);
|
|
3106
3098
|
};
|
|
3107
3099
|
if (x === h) return this.set(h, this.$M + v);
|
|
3108
3100
|
if (x === d) return this.set(d, this.$y + v);
|
|
@@ -3115,7 +3107,7 @@ var Pi = { exports: {} };
|
|
|
3115
3107
|
}, m.format = function(v) {
|
|
3116
3108
|
var g = this, _ = this.$locale();
|
|
3117
3109
|
if (!this.isValid()) return _.invalidDate || b;
|
|
3118
|
-
var E = v || "YYYY-MM-DDTHH:mm:ssZ", x = O.z(this), P = this.$H, D = this.$m, X = this.$M, z = _.weekdays,
|
|
3110
|
+
var E = v || "YYYY-MM-DDTHH:mm:ssZ", x = O.z(this), P = this.$H, D = this.$m, X = this.$M, z = _.weekdays, ue = _.months, Qe = _.meridiem, Fe = function(te, Ie, Et, Dt) {
|
|
3119
3111
|
return te && (te[Ie] || te(g, E)) || Et[Ie].slice(0, Dt);
|
|
3120
3112
|
}, yt = function(te) {
|
|
3121
3113
|
return O.s(P % 12 || 12, te, "0");
|
|
@@ -3135,9 +3127,9 @@ var Pi = { exports: {} };
|
|
|
3135
3127
|
case "MM":
|
|
3136
3128
|
return O.s(X + 1, 2, "0");
|
|
3137
3129
|
case "MMM":
|
|
3138
|
-
return Fe(_.monthsShort, X,
|
|
3130
|
+
return Fe(_.monthsShort, X, ue, 3);
|
|
3139
3131
|
case "MMMM":
|
|
3140
|
-
return Fe(
|
|
3132
|
+
return Fe(ue, X);
|
|
3141
3133
|
case "D":
|
|
3142
3134
|
return g.$D;
|
|
3143
3135
|
case "DD":
|
|
@@ -3181,18 +3173,18 @@ var Pi = { exports: {} };
|
|
|
3181
3173
|
}, m.utcOffset = function() {
|
|
3182
3174
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
3183
3175
|
}, m.diff = function(v, g, _) {
|
|
3184
|
-
var E, x = this, P = O.p(g), D = R(v), X = (D.utcOffset() - this.utcOffset()) * n, z = this - D,
|
|
3176
|
+
var E, x = this, P = O.p(g), D = R(v), X = (D.utcOffset() - this.utcOffset()) * n, z = this - D, ue = function() {
|
|
3185
3177
|
return O.m(x, D);
|
|
3186
3178
|
};
|
|
3187
3179
|
switch (P) {
|
|
3188
3180
|
case d:
|
|
3189
|
-
E =
|
|
3181
|
+
E = ue() / 12;
|
|
3190
3182
|
break;
|
|
3191
3183
|
case h:
|
|
3192
|
-
E =
|
|
3184
|
+
E = ue();
|
|
3193
3185
|
break;
|
|
3194
3186
|
case c:
|
|
3195
|
-
E =
|
|
3187
|
+
E = ue() / 3;
|
|
3196
3188
|
break;
|
|
3197
3189
|
case f:
|
|
3198
3190
|
E = (z - X) / 6048e5;
|
|
@@ -3244,49 +3236,49 @@ var Pi = { exports: {} };
|
|
|
3244
3236
|
}, R.en = K[J], R.Ls = K, R.p = {}, R;
|
|
3245
3237
|
});
|
|
3246
3238
|
})(Pi);
|
|
3247
|
-
var
|
|
3248
|
-
const
|
|
3249
|
-
const r =
|
|
3239
|
+
var Mo = Pi.exports;
|
|
3240
|
+
const No = /* @__PURE__ */ Li(Mo), Io = (e, t = "DD/MM/YYYY") => {
|
|
3241
|
+
const r = No(e);
|
|
3250
3242
|
return r.isValid() ? r.format(t) : "";
|
|
3251
3243
|
};
|
|
3252
|
-
var
|
|
3253
|
-
return
|
|
3244
|
+
var Co = function(t) {
|
|
3245
|
+
return Ro(t) && !Do(t);
|
|
3254
3246
|
};
|
|
3255
|
-
function
|
|
3247
|
+
function Ro(e) {
|
|
3256
3248
|
return !!e && typeof e == "object";
|
|
3257
3249
|
}
|
|
3258
|
-
function
|
|
3250
|
+
function Do(e) {
|
|
3259
3251
|
var t = Object.prototype.toString.call(e);
|
|
3260
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
3252
|
+
return t === "[object RegExp]" || t === "[object Date]" || Uo(e);
|
|
3261
3253
|
}
|
|
3262
|
-
var
|
|
3263
|
-
function
|
|
3264
|
-
return e.$$typeof ===
|
|
3254
|
+
var ko = typeof Symbol == "function" && Symbol.for, Fo = ko ? Symbol.for("react.element") : 60103;
|
|
3255
|
+
function Uo(e) {
|
|
3256
|
+
return e.$$typeof === Fo;
|
|
3265
3257
|
}
|
|
3266
|
-
function
|
|
3258
|
+
function Go(e) {
|
|
3267
3259
|
return Array.isArray(e) ? [] : {};
|
|
3268
3260
|
}
|
|
3269
3261
|
function Mt(e, t) {
|
|
3270
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? ct(
|
|
3262
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ct(Go(e), e, t) : e;
|
|
3271
3263
|
}
|
|
3272
|
-
function
|
|
3264
|
+
function jo(e, t, r) {
|
|
3273
3265
|
return e.concat(t).map(function(n) {
|
|
3274
3266
|
return Mt(n, r);
|
|
3275
3267
|
});
|
|
3276
3268
|
}
|
|
3277
|
-
function
|
|
3269
|
+
function Vo(e, t) {
|
|
3278
3270
|
if (!t.customMerge)
|
|
3279
3271
|
return ct;
|
|
3280
3272
|
var r = t.customMerge(e);
|
|
3281
3273
|
return typeof r == "function" ? r : ct;
|
|
3282
3274
|
}
|
|
3283
|
-
function
|
|
3275
|
+
function Wo(e) {
|
|
3284
3276
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
3285
3277
|
return Object.propertyIsEnumerable.call(e, t);
|
|
3286
3278
|
}) : [];
|
|
3287
3279
|
}
|
|
3288
3280
|
function wn(e) {
|
|
3289
|
-
return Object.keys(e).concat(
|
|
3281
|
+
return Object.keys(e).concat(Wo(e));
|
|
3290
3282
|
}
|
|
3291
3283
|
function Mi(e, t) {
|
|
3292
3284
|
try {
|
|
@@ -3295,21 +3287,21 @@ function Mi(e, t) {
|
|
|
3295
3287
|
return !1;
|
|
3296
3288
|
}
|
|
3297
3289
|
}
|
|
3298
|
-
function
|
|
3290
|
+
function Xo(e, t) {
|
|
3299
3291
|
return Mi(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
3300
3292
|
}
|
|
3301
|
-
function
|
|
3293
|
+
function Yo(e, t, r) {
|
|
3302
3294
|
var n = {};
|
|
3303
3295
|
return r.isMergeableObject(e) && wn(e).forEach(function(i) {
|
|
3304
3296
|
n[i] = Mt(e[i], r);
|
|
3305
3297
|
}), wn(t).forEach(function(i) {
|
|
3306
|
-
|
|
3298
|
+
Xo(e, i) || (Mi(e, i) && r.isMergeableObject(t[i]) ? n[i] = Vo(i, r)(e[i], t[i], r) : n[i] = Mt(t[i], r));
|
|
3307
3299
|
}), n;
|
|
3308
3300
|
}
|
|
3309
3301
|
function ct(e, t, r) {
|
|
3310
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
3302
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || jo, r.isMergeableObject = r.isMergeableObject || Co, r.cloneUnlessOtherwiseSpecified = Mt;
|
|
3311
3303
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
3312
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
3304
|
+
return s ? n ? r.arrayMerge(e, t, r) : Yo(e, t, r) : Mt(t, r);
|
|
3313
3305
|
}
|
|
3314
3306
|
ct.all = function(t, r) {
|
|
3315
3307
|
if (!Array.isArray(t))
|
|
@@ -3318,8 +3310,8 @@ ct.all = function(t, r) {
|
|
|
3318
3310
|
return ct(n, i, r);
|
|
3319
3311
|
}, {});
|
|
3320
3312
|
};
|
|
3321
|
-
var
|
|
3322
|
-
const
|
|
3313
|
+
var zo = ct, qo = zo;
|
|
3314
|
+
const Zo = /* @__PURE__ */ Li(qo);
|
|
3323
3315
|
var Ir = function(e, t) {
|
|
3324
3316
|
return Ir = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
3325
3317
|
r.__proto__ = n;
|
|
@@ -3345,7 +3337,7 @@ var ye = function() {
|
|
|
3345
3337
|
return t;
|
|
3346
3338
|
}, ye.apply(this, arguments);
|
|
3347
3339
|
};
|
|
3348
|
-
function
|
|
3340
|
+
function Jo(e, t) {
|
|
3349
3341
|
var r = {};
|
|
3350
3342
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3351
3343
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -3359,17 +3351,17 @@ function xr(e, t, r) {
|
|
|
3359
3351
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
3360
3352
|
}
|
|
3361
3353
|
function wr(e, t) {
|
|
3362
|
-
var r = t && t.cache ? t.cache :
|
|
3354
|
+
var r = t && t.cache ? t.cache : ia, n = t && t.serializer ? t.serializer : ra, i = t && t.strategy ? t.strategy : ea;
|
|
3363
3355
|
return i(e, {
|
|
3364
3356
|
cache: r,
|
|
3365
3357
|
serializer: n
|
|
3366
3358
|
});
|
|
3367
3359
|
}
|
|
3368
|
-
function
|
|
3360
|
+
function Qo(e) {
|
|
3369
3361
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
3370
3362
|
}
|
|
3371
|
-
function
|
|
3372
|
-
var i =
|
|
3363
|
+
function Ko(e, t, r, n) {
|
|
3364
|
+
var i = Qo(n) ? n : r(n), s = t.get(i);
|
|
3373
3365
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
3374
3366
|
}
|
|
3375
3367
|
function Ni(e, t, r) {
|
|
@@ -3379,16 +3371,16 @@ function Ni(e, t, r) {
|
|
|
3379
3371
|
function Ii(e, t, r, n, i) {
|
|
3380
3372
|
return r.bind(t, e, n, i);
|
|
3381
3373
|
}
|
|
3382
|
-
function
|
|
3383
|
-
var r = e.length === 1 ?
|
|
3374
|
+
function ea(e, t) {
|
|
3375
|
+
var r = e.length === 1 ? Ko : Ni;
|
|
3384
3376
|
return Ii(e, this, r, t.cache.create(), t.serializer);
|
|
3385
3377
|
}
|
|
3386
|
-
function
|
|
3378
|
+
function ta(e, t) {
|
|
3387
3379
|
return Ii(e, this, Ni, t.cache.create(), t.serializer);
|
|
3388
3380
|
}
|
|
3389
|
-
var
|
|
3381
|
+
var ra = function() {
|
|
3390
3382
|
return JSON.stringify(arguments);
|
|
3391
|
-
},
|
|
3383
|
+
}, na = (
|
|
3392
3384
|
/** @class */
|
|
3393
3385
|
function() {
|
|
3394
3386
|
function e() {
|
|
@@ -3400,12 +3392,12 @@ var to = function() {
|
|
|
3400
3392
|
this.cache[t] = r;
|
|
3401
3393
|
}, e;
|
|
3402
3394
|
}()
|
|
3403
|
-
),
|
|
3395
|
+
), ia = {
|
|
3404
3396
|
create: function() {
|
|
3405
|
-
return new
|
|
3397
|
+
return new na();
|
|
3406
3398
|
}
|
|
3407
3399
|
}, Tr = {
|
|
3408
|
-
variadic:
|
|
3400
|
+
variadic: ta
|
|
3409
3401
|
}, rr = function() {
|
|
3410
3402
|
return rr = Object.assign || function(t) {
|
|
3411
3403
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
@@ -3415,44 +3407,44 @@ var to = function() {
|
|
|
3415
3407
|
return t;
|
|
3416
3408
|
}, rr.apply(this, arguments);
|
|
3417
3409
|
};
|
|
3418
|
-
var
|
|
3410
|
+
var T;
|
|
3419
3411
|
(function(e) {
|
|
3420
3412
|
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";
|
|
3421
|
-
})(
|
|
3422
|
-
var
|
|
3413
|
+
})(T || (T = {}));
|
|
3414
|
+
var N;
|
|
3423
3415
|
(function(e) {
|
|
3424
3416
|
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";
|
|
3425
|
-
})(
|
|
3417
|
+
})(N || (N = {}));
|
|
3426
3418
|
var dt;
|
|
3427
3419
|
(function(e) {
|
|
3428
3420
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
3429
3421
|
})(dt || (dt = {}));
|
|
3430
3422
|
function Tn(e) {
|
|
3431
|
-
return e.type ===
|
|
3423
|
+
return e.type === N.literal;
|
|
3432
3424
|
}
|
|
3433
|
-
function
|
|
3434
|
-
return e.type ===
|
|
3425
|
+
function sa(e) {
|
|
3426
|
+
return e.type === N.argument;
|
|
3435
3427
|
}
|
|
3436
3428
|
function Ci(e) {
|
|
3437
|
-
return e.type ===
|
|
3429
|
+
return e.type === N.number;
|
|
3438
3430
|
}
|
|
3439
3431
|
function Ri(e) {
|
|
3440
|
-
return e.type ===
|
|
3432
|
+
return e.type === N.date;
|
|
3441
3433
|
}
|
|
3442
3434
|
function Di(e) {
|
|
3443
|
-
return e.type ===
|
|
3435
|
+
return e.type === N.time;
|
|
3444
3436
|
}
|
|
3445
3437
|
function ki(e) {
|
|
3446
|
-
return e.type ===
|
|
3438
|
+
return e.type === N.select;
|
|
3447
3439
|
}
|
|
3448
3440
|
function Fi(e) {
|
|
3449
|
-
return e.type ===
|
|
3441
|
+
return e.type === N.plural;
|
|
3450
3442
|
}
|
|
3451
|
-
function
|
|
3452
|
-
return e.type ===
|
|
3443
|
+
function oa(e) {
|
|
3444
|
+
return e.type === N.pound;
|
|
3453
3445
|
}
|
|
3454
3446
|
function Ui(e) {
|
|
3455
|
-
return e.type ===
|
|
3447
|
+
return e.type === N.tag;
|
|
3456
3448
|
}
|
|
3457
3449
|
function Gi(e) {
|
|
3458
3450
|
return !!(e && typeof e == "object" && e.type === dt.number);
|
|
@@ -3460,10 +3452,10 @@ function Gi(e) {
|
|
|
3460
3452
|
function Cr(e) {
|
|
3461
3453
|
return !!(e && typeof e == "object" && e.type === dt.dateTime);
|
|
3462
3454
|
}
|
|
3463
|
-
var ji = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
3464
|
-
function
|
|
3455
|
+
var ji = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, aa = /(?:[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;
|
|
3456
|
+
function ua(e) {
|
|
3465
3457
|
var t = {};
|
|
3466
|
-
return e.replace(
|
|
3458
|
+
return e.replace(aa, function(r) {
|
|
3467
3459
|
var n = r.length;
|
|
3468
3460
|
switch (r[0]) {
|
|
3469
3461
|
case "G":
|
|
@@ -3552,20 +3544,20 @@ function oo(e) {
|
|
|
3552
3544
|
return "";
|
|
3553
3545
|
}), t;
|
|
3554
3546
|
}
|
|
3555
|
-
var
|
|
3556
|
-
return
|
|
3547
|
+
var C = function() {
|
|
3548
|
+
return C = Object.assign || function(t) {
|
|
3557
3549
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
3558
3550
|
r = arguments[n];
|
|
3559
3551
|
for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
3560
3552
|
}
|
|
3561
3553
|
return t;
|
|
3562
|
-
},
|
|
3554
|
+
}, C.apply(this, arguments);
|
|
3563
3555
|
};
|
|
3564
|
-
var
|
|
3565
|
-
function
|
|
3556
|
+
var la = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
3557
|
+
function fa(e) {
|
|
3566
3558
|
if (e.length === 0)
|
|
3567
3559
|
throw new Error("Number skeleton cannot be empty");
|
|
3568
|
-
for (var t = e.split(
|
|
3560
|
+
for (var t = e.split(la).filter(function(c) {
|
|
3569
3561
|
return c.length > 0;
|
|
3570
3562
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
3571
3563
|
var s = i[n], o = s.split("/");
|
|
@@ -3580,10 +3572,10 @@ function lo(e) {
|
|
|
3580
3572
|
}
|
|
3581
3573
|
return r;
|
|
3582
3574
|
}
|
|
3583
|
-
function
|
|
3575
|
+
function ha(e) {
|
|
3584
3576
|
return e.replace(/^(.*?)-/, "");
|
|
3585
3577
|
}
|
|
3586
|
-
var Sn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vi = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
3578
|
+
var Sn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vi = /^(@+)?(\+|#+)?[rs]?$/g, ca = /(\*)(0+)|(#+)(0+)|(0+)/g, Wi = /^(0+)$/;
|
|
3587
3579
|
function Hn(e) {
|
|
3588
3580
|
var t = {};
|
|
3589
3581
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Vi, function(r, n, i) {
|
|
@@ -3630,7 +3622,7 @@ function Xi(e) {
|
|
|
3630
3622
|
};
|
|
3631
3623
|
}
|
|
3632
3624
|
}
|
|
3633
|
-
function
|
|
3625
|
+
function da(e) {
|
|
3634
3626
|
var t;
|
|
3635
3627
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
3636
3628
|
notation: "engineering"
|
|
@@ -3648,7 +3640,7 @@ function An(e) {
|
|
|
3648
3640
|
var t = {}, r = Xi(e);
|
|
3649
3641
|
return r || t;
|
|
3650
3642
|
}
|
|
3651
|
-
function
|
|
3643
|
+
function pa(e) {
|
|
3652
3644
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
3653
3645
|
var i = n[r];
|
|
3654
3646
|
switch (i.stem) {
|
|
@@ -3672,7 +3664,7 @@ function po(e) {
|
|
|
3672
3664
|
continue;
|
|
3673
3665
|
case "measure-unit":
|
|
3674
3666
|
case "unit":
|
|
3675
|
-
t.style = "unit", t.unit =
|
|
3667
|
+
t.style = "unit", t.unit = ha(i.options[0]);
|
|
3676
3668
|
continue;
|
|
3677
3669
|
case "compact-short":
|
|
3678
3670
|
case "K":
|
|
@@ -3683,13 +3675,13 @@ function po(e) {
|
|
|
3683
3675
|
t.notation = "compact", t.compactDisplay = "long";
|
|
3684
3676
|
continue;
|
|
3685
3677
|
case "scientific":
|
|
3686
|
-
t =
|
|
3687
|
-
return
|
|
3678
|
+
t = C(C(C({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
3679
|
+
return C(C({}, u), An(l));
|
|
3688
3680
|
}, {}));
|
|
3689
3681
|
continue;
|
|
3690
3682
|
case "engineering":
|
|
3691
|
-
t =
|
|
3692
|
-
return
|
|
3683
|
+
t = C(C(C({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
3684
|
+
return C(C({}, u), An(l));
|
|
3693
3685
|
}, {}));
|
|
3694
3686
|
continue;
|
|
3695
3687
|
case "notation-simple":
|
|
@@ -3734,7 +3726,7 @@ function po(e) {
|
|
|
3734
3726
|
case "integer-width":
|
|
3735
3727
|
if (i.options.length > 1)
|
|
3736
3728
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
3737
|
-
i.options[0].replace(
|
|
3729
|
+
i.options[0].replace(ca, function(u, l, f, h, c, d) {
|
|
3738
3730
|
if (l)
|
|
3739
3731
|
t.minimumIntegerDigits = f.length;
|
|
3740
3732
|
else {
|
|
@@ -3758,17 +3750,17 @@ function po(e) {
|
|
|
3758
3750
|
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), "";
|
|
3759
3751
|
});
|
|
3760
3752
|
var s = i.options[0];
|
|
3761
|
-
s === "w" ? t =
|
|
3753
|
+
s === "w" ? t = C(C({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = C(C({}, t), Hn(s)));
|
|
3762
3754
|
continue;
|
|
3763
3755
|
}
|
|
3764
3756
|
if (Vi.test(i.stem)) {
|
|
3765
|
-
t =
|
|
3757
|
+
t = C(C({}, t), Hn(i.stem));
|
|
3766
3758
|
continue;
|
|
3767
3759
|
}
|
|
3768
3760
|
var o = Xi(i.stem);
|
|
3769
|
-
o && (t =
|
|
3770
|
-
var a =
|
|
3771
|
-
a && (t =
|
|
3761
|
+
o && (t = C(C({}, t), o));
|
|
3762
|
+
var a = da(i.stem);
|
|
3763
|
+
a && (t = C(C({}, t), a));
|
|
3772
3764
|
}
|
|
3773
3765
|
return t;
|
|
3774
3766
|
}
|
|
@@ -5187,13 +5179,13 @@ var Ut = {
|
|
|
5187
5179
|
"h"
|
|
5188
5180
|
]
|
|
5189
5181
|
};
|
|
5190
|
-
function
|
|
5182
|
+
function va(e, t) {
|
|
5191
5183
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
5192
5184
|
var i = e.charAt(n);
|
|
5193
5185
|
if (i === "j") {
|
|
5194
5186
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
5195
5187
|
s++, n++;
|
|
5196
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), u = "a", l =
|
|
5188
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), u = "a", l = _a(t);
|
|
5197
5189
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
5198
5190
|
r += u;
|
|
5199
5191
|
for (; o-- > 0; )
|
|
@@ -5202,7 +5194,7 @@ function vo(e, t) {
|
|
|
5202
5194
|
}
|
|
5203
5195
|
return r;
|
|
5204
5196
|
}
|
|
5205
|
-
function
|
|
5197
|
+
function _a(e) {
|
|
5206
5198
|
var t = e.hourCycle;
|
|
5207
5199
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
5208
5200
|
e.hourCycles && // @ts-ignore
|
|
@@ -5224,20 +5216,20 @@ function _o(e) {
|
|
|
5224
5216
|
var i = Ut[n || ""] || Ut[r || ""] || Ut["".concat(r, "-001")] || Ut["001"];
|
|
5225
5217
|
return i[0];
|
|
5226
5218
|
}
|
|
5227
|
-
var Sr,
|
|
5219
|
+
var Sr, ma = new RegExp("^".concat(ji.source, "*")), ga = new RegExp("".concat(ji.source, "*$"));
|
|
5228
5220
|
function H(e, t) {
|
|
5229
5221
|
return { start: e, end: t };
|
|
5230
5222
|
}
|
|
5231
|
-
var
|
|
5223
|
+
var ba = !!String.prototype.startsWith && "_a".startsWith("a", 1), ya = !!String.fromCodePoint, Ea = !!Object.fromEntries, xa = !!String.prototype.codePointAt, wa = !!String.prototype.trimStart, Ta = !!String.prototype.trimEnd, Sa = !!Number.isSafeInteger, Ha = Sa ? Number.isSafeInteger : function(e) {
|
|
5232
5224
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
5233
5225
|
}, Rr = !0;
|
|
5234
5226
|
try {
|
|
5235
|
-
var
|
|
5236
|
-
Rr = ((Sr =
|
|
5227
|
+
var Aa = zi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
5228
|
+
Rr = ((Sr = Aa.exec("a")) === null || Sr === void 0 ? void 0 : Sr[0]) === "a";
|
|
5237
5229
|
} catch {
|
|
5238
5230
|
Rr = !1;
|
|
5239
5231
|
}
|
|
5240
|
-
var $n =
|
|
5232
|
+
var $n = ba ? (
|
|
5241
5233
|
// Native
|
|
5242
5234
|
function(t, r, n) {
|
|
5243
5235
|
return t.startsWith(r, n);
|
|
@@ -5247,7 +5239,7 @@ var $n = bo ? (
|
|
|
5247
5239
|
function(t, r, n) {
|
|
5248
5240
|
return t.slice(n, n + r.length) === r;
|
|
5249
5241
|
}
|
|
5250
|
-
), Dr =
|
|
5242
|
+
), Dr = ya ? String.fromCodePoint : (
|
|
5251
5243
|
// IE11
|
|
5252
5244
|
function() {
|
|
5253
5245
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -5261,7 +5253,7 @@ var $n = bo ? (
|
|
|
5261
5253
|
}
|
|
5262
5254
|
), On = (
|
|
5263
5255
|
// native
|
|
5264
|
-
|
|
5256
|
+
Ea ? Object.fromEntries : (
|
|
5265
5257
|
// Ponyfill
|
|
5266
5258
|
function(t) {
|
|
5267
5259
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -5271,7 +5263,7 @@ var $n = bo ? (
|
|
|
5271
5263
|
return r;
|
|
5272
5264
|
}
|
|
5273
5265
|
)
|
|
5274
|
-
), Yi =
|
|
5266
|
+
), Yi = xa ? (
|
|
5275
5267
|
// Native
|
|
5276
5268
|
function(t, r) {
|
|
5277
5269
|
return t.codePointAt(r);
|
|
@@ -5285,7 +5277,7 @@ var $n = bo ? (
|
|
|
5285
5277
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
5286
5278
|
}
|
|
5287
5279
|
}
|
|
5288
|
-
), $
|
|
5280
|
+
), $a = wa ? (
|
|
5289
5281
|
// Native
|
|
5290
5282
|
function(t) {
|
|
5291
5283
|
return t.trimStart();
|
|
@@ -5293,9 +5285,9 @@ var $n = bo ? (
|
|
|
5293
5285
|
) : (
|
|
5294
5286
|
// Ponyfill
|
|
5295
5287
|
function(t) {
|
|
5296
|
-
return t.replace(
|
|
5288
|
+
return t.replace(ma, "");
|
|
5297
5289
|
}
|
|
5298
|
-
),
|
|
5290
|
+
), Oa = Ta ? (
|
|
5299
5291
|
// Native
|
|
5300
5292
|
function(t) {
|
|
5301
5293
|
return t.trimEnd();
|
|
@@ -5303,7 +5295,7 @@ var $n = bo ? (
|
|
|
5303
5295
|
) : (
|
|
5304
5296
|
// Ponyfill
|
|
5305
5297
|
function(t) {
|
|
5306
|
-
return t.replace(
|
|
5298
|
+
return t.replace(ga, "");
|
|
5307
5299
|
}
|
|
5308
5300
|
);
|
|
5309
5301
|
function zi(e, t) {
|
|
@@ -5322,13 +5314,13 @@ if (Rr) {
|
|
|
5322
5314
|
kr = function(t, r) {
|
|
5323
5315
|
for (var n = []; ; ) {
|
|
5324
5316
|
var i = Yi(t, r);
|
|
5325
|
-
if (i === void 0 || qi(i) ||
|
|
5317
|
+
if (i === void 0 || qi(i) || Ma(i))
|
|
5326
5318
|
break;
|
|
5327
5319
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
5328
5320
|
}
|
|
5329
5321
|
return Dr.apply(void 0, n);
|
|
5330
5322
|
};
|
|
5331
|
-
var
|
|
5323
|
+
var Ba = (
|
|
5332
5324
|
/** @class */
|
|
5333
5325
|
function() {
|
|
5334
5326
|
function e(t, r) {
|
|
@@ -5352,13 +5344,13 @@ var Bo = (
|
|
|
5352
5344
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
5353
5345
|
var a = this.clonePosition();
|
|
5354
5346
|
this.bump(), i.push({
|
|
5355
|
-
type:
|
|
5347
|
+
type: N.pound,
|
|
5356
5348
|
location: H(a, this.clonePosition())
|
|
5357
5349
|
});
|
|
5358
5350
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
5359
5351
|
if (n)
|
|
5360
5352
|
break;
|
|
5361
|
-
return this.error(
|
|
5353
|
+
return this.error(T.UNMATCHED_CLOSING_TAG, H(this.clonePosition(), this.clonePosition()));
|
|
5362
5354
|
} else if (s === 60 && !this.ignoreTag && Fr(this.peek() || 0)) {
|
|
5363
5355
|
var o = this.parseTag(t, r);
|
|
5364
5356
|
if (o.err)
|
|
@@ -5380,7 +5372,7 @@ var Bo = (
|
|
|
5380
5372
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
5381
5373
|
return {
|
|
5382
5374
|
val: {
|
|
5383
|
-
type:
|
|
5375
|
+
type: N.literal,
|
|
5384
5376
|
value: "<".concat(i, "/>"),
|
|
5385
5377
|
location: H(n, this.clonePosition())
|
|
5386
5378
|
},
|
|
@@ -5393,24 +5385,24 @@ var Bo = (
|
|
|
5393
5385
|
var o = s.val, a = this.clonePosition();
|
|
5394
5386
|
if (this.bumpIf("</")) {
|
|
5395
5387
|
if (this.isEOF() || !Fr(this.char()))
|
|
5396
|
-
return this.error(
|
|
5388
|
+
return this.error(T.INVALID_TAG, H(a, this.clonePosition()));
|
|
5397
5389
|
var u = this.clonePosition(), l = this.parseTagName();
|
|
5398
|
-
return i !== l ? this.error(
|
|
5390
|
+
return i !== l ? this.error(T.UNMATCHED_CLOSING_TAG, H(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
5399
5391
|
val: {
|
|
5400
|
-
type:
|
|
5392
|
+
type: N.tag,
|
|
5401
5393
|
value: i,
|
|
5402
5394
|
children: o,
|
|
5403
5395
|
location: H(n, this.clonePosition())
|
|
5404
5396
|
},
|
|
5405
5397
|
err: null
|
|
5406
|
-
} : this.error(
|
|
5398
|
+
} : this.error(T.INVALID_TAG, H(a, this.clonePosition())));
|
|
5407
5399
|
} else
|
|
5408
|
-
return this.error(
|
|
5400
|
+
return this.error(T.UNCLOSED_TAG, H(n, this.clonePosition()));
|
|
5409
5401
|
} else
|
|
5410
|
-
return this.error(
|
|
5402
|
+
return this.error(T.INVALID_TAG, H(n, this.clonePosition()));
|
|
5411
5403
|
}, e.prototype.parseTagName = function() {
|
|
5412
5404
|
var t = this.offset();
|
|
5413
|
-
for (this.bump(); !this.isEOF() &&
|
|
5405
|
+
for (this.bump(); !this.isEOF() && Pa(this.char()); )
|
|
5414
5406
|
this.bump();
|
|
5415
5407
|
return this.message.slice(t, this.offset());
|
|
5416
5408
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -5434,12 +5426,12 @@ var Bo = (
|
|
|
5434
5426
|
}
|
|
5435
5427
|
var u = H(n, this.clonePosition());
|
|
5436
5428
|
return {
|
|
5437
|
-
val: { type:
|
|
5429
|
+
val: { type: N.literal, value: i, location: u },
|
|
5438
5430
|
err: null
|
|
5439
5431
|
};
|
|
5440
5432
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
5441
5433
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
5442
|
-
!
|
|
5434
|
+
!La(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
5443
5435
|
}, e.prototype.tryParseQuote = function(t) {
|
|
5444
5436
|
if (this.isEOF() || this.char() !== 39)
|
|
5445
5437
|
return null;
|
|
@@ -5482,19 +5474,19 @@ var Bo = (
|
|
|
5482
5474
|
}, e.prototype.parseArgument = function(t, r) {
|
|
5483
5475
|
var n = this.clonePosition();
|
|
5484
5476
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
5485
|
-
return this.error(
|
|
5477
|
+
return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, H(n, this.clonePosition()));
|
|
5486
5478
|
if (this.char() === 125)
|
|
5487
|
-
return this.bump(), this.error(
|
|
5479
|
+
return this.bump(), this.error(T.EMPTY_ARGUMENT, H(n, this.clonePosition()));
|
|
5488
5480
|
var i = this.parseIdentifierIfPossible().value;
|
|
5489
5481
|
if (!i)
|
|
5490
|
-
return this.error(
|
|
5482
|
+
return this.error(T.MALFORMED_ARGUMENT, H(n, this.clonePosition()));
|
|
5491
5483
|
if (this.bumpSpace(), this.isEOF())
|
|
5492
|
-
return this.error(
|
|
5484
|
+
return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, H(n, this.clonePosition()));
|
|
5493
5485
|
switch (this.char()) {
|
|
5494
5486
|
case 125:
|
|
5495
5487
|
return this.bump(), {
|
|
5496
5488
|
val: {
|
|
5497
|
-
type:
|
|
5489
|
+
type: N.argument,
|
|
5498
5490
|
// value does not include the opening and closing braces.
|
|
5499
5491
|
value: i,
|
|
5500
5492
|
location: H(n, this.clonePosition())
|
|
@@ -5502,9 +5494,9 @@ var Bo = (
|
|
|
5502
5494
|
err: null
|
|
5503
5495
|
};
|
|
5504
5496
|
case 44:
|
|
5505
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
5497
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, H(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
5506
5498
|
default:
|
|
5507
|
-
return this.error(
|
|
5499
|
+
return this.error(T.MALFORMED_ARGUMENT, H(n, this.clonePosition()));
|
|
5508
5500
|
}
|
|
5509
5501
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
5510
5502
|
var t = this.clonePosition(), r = this.offset(), n = kr(this.message, r), i = r + n.length;
|
|
@@ -5515,7 +5507,7 @@ var Bo = (
|
|
|
5515
5507
|
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
5516
5508
|
switch (a) {
|
|
5517
5509
|
case "":
|
|
5518
|
-
return this.error(
|
|
5510
|
+
return this.error(T.EXPECT_ARGUMENT_TYPE, H(o, u));
|
|
5519
5511
|
case "number":
|
|
5520
5512
|
case "date":
|
|
5521
5513
|
case "time": {
|
|
@@ -5526,9 +5518,9 @@ var Bo = (
|
|
|
5526
5518
|
var f = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();
|
|
5527
5519
|
if (h.err)
|
|
5528
5520
|
return h;
|
|
5529
|
-
var c =
|
|
5521
|
+
var c = Oa(h.val);
|
|
5530
5522
|
if (c.length === 0)
|
|
5531
|
-
return this.error(
|
|
5523
|
+
return this.error(T.EXPECT_ARGUMENT_STYLE, H(this.clonePosition(), this.clonePosition()));
|
|
5532
5524
|
var d = H(f, this.clonePosition());
|
|
5533
5525
|
l = { style: c, styleLocation: d };
|
|
5534
5526
|
}
|
|
@@ -5537,24 +5529,24 @@ var Bo = (
|
|
|
5537
5529
|
return p;
|
|
5538
5530
|
var b = H(i, this.clonePosition());
|
|
5539
5531
|
if (l && $n(l?.style, "::", 0)) {
|
|
5540
|
-
var
|
|
5532
|
+
var I = $a(l.style.slice(2));
|
|
5541
5533
|
if (a === "number") {
|
|
5542
|
-
var h = this.parseNumberSkeletonFromString(
|
|
5534
|
+
var h = this.parseNumberSkeletonFromString(I, l.styleLocation);
|
|
5543
5535
|
return h.err ? h : {
|
|
5544
|
-
val: { type:
|
|
5536
|
+
val: { type: N.number, value: n, location: b, style: h.val },
|
|
5545
5537
|
err: null
|
|
5546
5538
|
};
|
|
5547
5539
|
} else {
|
|
5548
|
-
if (
|
|
5549
|
-
return this.error(
|
|
5550
|
-
var G =
|
|
5551
|
-
this.locale && (G =
|
|
5540
|
+
if (I.length === 0)
|
|
5541
|
+
return this.error(T.EXPECT_DATE_TIME_SKELETON, b);
|
|
5542
|
+
var G = I;
|
|
5543
|
+
this.locale && (G = va(I, this.locale));
|
|
5552
5544
|
var c = {
|
|
5553
5545
|
type: dt.dateTime,
|
|
5554
5546
|
pattern: G,
|
|
5555
5547
|
location: l.styleLocation,
|
|
5556
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
5557
|
-
}, W = a === "date" ?
|
|
5548
|
+
parsedOptions: this.shouldParseSkeletons ? ua(G) : {}
|
|
5549
|
+
}, W = a === "date" ? N.date : N.time;
|
|
5558
5550
|
return {
|
|
5559
5551
|
val: { type: W, value: n, location: b, style: c },
|
|
5560
5552
|
err: null
|
|
@@ -5563,7 +5555,7 @@ var Bo = (
|
|
|
5563
5555
|
}
|
|
5564
5556
|
return {
|
|
5565
5557
|
val: {
|
|
5566
|
-
type: a === "number" ?
|
|
5558
|
+
type: a === "number" ? N.number : a === "date" ? N.date : N.time,
|
|
5567
5559
|
value: n,
|
|
5568
5560
|
location: b,
|
|
5569
5561
|
style: (s = l?.style) !== null && s !== void 0 ? s : null
|
|
@@ -5576,14 +5568,14 @@ var Bo = (
|
|
|
5576
5568
|
case "select": {
|
|
5577
5569
|
var U = this.clonePosition();
|
|
5578
5570
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
5579
|
-
return this.error(
|
|
5571
|
+
return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS, H(U, rr({}, U)));
|
|
5580
5572
|
this.bumpSpace();
|
|
5581
5573
|
var He = this.parseIdentifierIfPossible(), J = 0;
|
|
5582
5574
|
if (a !== "select" && He.value === "offset") {
|
|
5583
5575
|
if (!this.bumpIf(":"))
|
|
5584
|
-
return this.error(
|
|
5576
|
+
return this.error(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H(this.clonePosition(), this.clonePosition()));
|
|
5585
5577
|
this.bumpSpace();
|
|
5586
|
-
var h = this.tryParseDecimalInteger(
|
|
5578
|
+
var h = this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
5587
5579
|
if (h.err)
|
|
5588
5580
|
return h;
|
|
5589
5581
|
this.bumpSpace(), He = this.parseIdentifierIfPossible(), J = h.val;
|
|
@@ -5597,7 +5589,7 @@ var Bo = (
|
|
|
5597
5589
|
var B = H(i, this.clonePosition());
|
|
5598
5590
|
return a === "select" ? {
|
|
5599
5591
|
val: {
|
|
5600
|
-
type:
|
|
5592
|
+
type: N.select,
|
|
5601
5593
|
value: n,
|
|
5602
5594
|
options: On(K.val),
|
|
5603
5595
|
location: B
|
|
@@ -5605,7 +5597,7 @@ var Bo = (
|
|
|
5605
5597
|
err: null
|
|
5606
5598
|
} : {
|
|
5607
5599
|
val: {
|
|
5608
|
-
type:
|
|
5600
|
+
type: N.plural,
|
|
5609
5601
|
value: n,
|
|
5610
5602
|
options: On(K.val),
|
|
5611
5603
|
offset: J,
|
|
@@ -5616,10 +5608,10 @@ var Bo = (
|
|
|
5616
5608
|
};
|
|
5617
5609
|
}
|
|
5618
5610
|
default:
|
|
5619
|
-
return this.error(
|
|
5611
|
+
return this.error(T.INVALID_ARGUMENT_TYPE, H(o, u));
|
|
5620
5612
|
}
|
|
5621
5613
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
5622
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
5614
|
+
return this.isEOF() || this.char() !== 125 ? this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, H(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
5623
5615
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
5624
5616
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
5625
5617
|
var n = this.char();
|
|
@@ -5628,7 +5620,7 @@ var Bo = (
|
|
|
5628
5620
|
this.bump();
|
|
5629
5621
|
var i = this.clonePosition();
|
|
5630
5622
|
if (!this.bumpUntil("'"))
|
|
5631
|
-
return this.error(
|
|
5623
|
+
return this.error(T.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, H(i, this.clonePosition()));
|
|
5632
5624
|
this.bump();
|
|
5633
5625
|
break;
|
|
5634
5626
|
}
|
|
@@ -5658,16 +5650,16 @@ var Bo = (
|
|
|
5658
5650
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
5659
5651
|
var n = [];
|
|
5660
5652
|
try {
|
|
5661
|
-
n =
|
|
5653
|
+
n = fa(t);
|
|
5662
5654
|
} catch {
|
|
5663
|
-
return this.error(
|
|
5655
|
+
return this.error(T.INVALID_NUMBER_SKELETON, r);
|
|
5664
5656
|
}
|
|
5665
5657
|
return {
|
|
5666
5658
|
val: {
|
|
5667
5659
|
type: dt.number,
|
|
5668
5660
|
tokens: n,
|
|
5669
5661
|
location: r,
|
|
5670
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
5662
|
+
parsedOptions: this.shouldParseSkeletons ? pa(n) : {}
|
|
5671
5663
|
},
|
|
5672
5664
|
err: null
|
|
5673
5665
|
};
|
|
@@ -5676,7 +5668,7 @@ var Bo = (
|
|
|
5676
5668
|
if (l.length === 0) {
|
|
5677
5669
|
var h = this.clonePosition();
|
|
5678
5670
|
if (r !== "select" && this.bumpIf("=")) {
|
|
5679
|
-
var c = this.tryParseDecimalInteger(
|
|
5671
|
+
var c = this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_SELECTOR, T.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
5680
5672
|
if (c.err)
|
|
5681
5673
|
return c;
|
|
5682
5674
|
f = H(h, this.clonePosition()), l = this.message.slice(h.offset, this.offset());
|
|
@@ -5684,11 +5676,11 @@ var Bo = (
|
|
|
5684
5676
|
break;
|
|
5685
5677
|
}
|
|
5686
5678
|
if (u.has(l))
|
|
5687
|
-
return this.error(r === "select" ?
|
|
5679
|
+
return this.error(r === "select" ? T.DUPLICATE_SELECT_ARGUMENT_SELECTOR : T.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
|
|
5688
5680
|
l === "other" && (o = !0), this.bumpSpace();
|
|
5689
5681
|
var d = this.clonePosition();
|
|
5690
5682
|
if (!this.bumpIf("{"))
|
|
5691
|
-
return this.error(r === "select" ?
|
|
5683
|
+
return this.error(r === "select" ? T.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : T.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, H(this.clonePosition(), this.clonePosition()));
|
|
5692
5684
|
var p = this.parseMessage(t + 1, r, n);
|
|
5693
5685
|
if (p.err)
|
|
5694
5686
|
return p;
|
|
@@ -5703,7 +5695,7 @@ var Bo = (
|
|
|
5703
5695
|
}
|
|
5704
5696
|
]), u.add(l), this.bumpSpace(), s = this.parseIdentifierIfPossible(), l = s.value, f = s.location;
|
|
5705
5697
|
}
|
|
5706
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
5698
|
+
return a.length === 0 ? this.error(r === "select" ? T.EXPECT_SELECT_ARGUMENT_SELECTOR : T.EXPECT_PLURAL_ARGUMENT_SELECTOR, H(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(T.MISSING_OTHER_CLAUSE, H(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
5707
5699
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
5708
5700
|
var n = 1, i = this.clonePosition();
|
|
5709
5701
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -5715,7 +5707,7 @@ var Bo = (
|
|
|
5715
5707
|
break;
|
|
5716
5708
|
}
|
|
5717
5709
|
var u = H(i, this.clonePosition());
|
|
5718
|
-
return s ? (o *= n,
|
|
5710
|
+
return s ? (o *= n, Ha(o) ? { val: o, err: null } : this.error(r, u)) : this.error(t, u);
|
|
5719
5711
|
}, e.prototype.offset = function() {
|
|
5720
5712
|
return this.position.offset;
|
|
5721
5713
|
}, e.prototype.isEOF = function() {
|
|
@@ -5784,16 +5776,16 @@ var Bo = (
|
|
|
5784
5776
|
function Fr(e) {
|
|
5785
5777
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
5786
5778
|
}
|
|
5787
|
-
function
|
|
5779
|
+
function La(e) {
|
|
5788
5780
|
return Fr(e) || e === 47;
|
|
5789
5781
|
}
|
|
5790
|
-
function
|
|
5782
|
+
function Pa(e) {
|
|
5791
5783
|
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;
|
|
5792
5784
|
}
|
|
5793
5785
|
function qi(e) {
|
|
5794
5786
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
5795
5787
|
}
|
|
5796
|
-
function
|
|
5788
|
+
function Ma(e) {
|
|
5797
5789
|
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;
|
|
5798
5790
|
}
|
|
5799
5791
|
function Ur(e) {
|
|
@@ -5804,11 +5796,11 @@ function Ur(e) {
|
|
|
5804
5796
|
else Ci(t) && Gi(t.style) || (Ri(t) || Di(t)) && Cr(t.style) ? delete t.style.location : Ui(t) && Ur(t.children);
|
|
5805
5797
|
});
|
|
5806
5798
|
}
|
|
5807
|
-
function
|
|
5799
|
+
function Na(e, t) {
|
|
5808
5800
|
t === void 0 && (t = {}), t = rr({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
5809
|
-
var r = new
|
|
5801
|
+
var r = new Ba(e, t).parse();
|
|
5810
5802
|
if (r.err) {
|
|
5811
|
-
var n = SyntaxError(
|
|
5803
|
+
var n = SyntaxError(T[r.err.kind]);
|
|
5812
5804
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
5813
5805
|
}
|
|
5814
5806
|
return t?.captureLocation || Ur(r.val), r.val;
|
|
@@ -5838,7 +5830,7 @@ var cr = (
|
|
|
5838
5830
|
}
|
|
5839
5831
|
return t;
|
|
5840
5832
|
}(cr)
|
|
5841
|
-
),
|
|
5833
|
+
), Ia = (
|
|
5842
5834
|
/** @class */
|
|
5843
5835
|
function(e) {
|
|
5844
5836
|
hr(t, e);
|
|
@@ -5847,7 +5839,7 @@ var cr = (
|
|
|
5847
5839
|
}
|
|
5848
5840
|
return t;
|
|
5849
5841
|
}(cr)
|
|
5850
|
-
),
|
|
5842
|
+
), Ca = (
|
|
5851
5843
|
/** @class */
|
|
5852
5844
|
function(e) {
|
|
5853
5845
|
hr(t, e);
|
|
@@ -5860,13 +5852,13 @@ var cr = (
|
|
|
5860
5852
|
(function(e) {
|
|
5861
5853
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
5862
5854
|
})(Q || (Q = {}));
|
|
5863
|
-
function
|
|
5855
|
+
function Ra(e) {
|
|
5864
5856
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
5865
5857
|
var n = t[t.length - 1];
|
|
5866
5858
|
return !n || n.type !== Q.literal || r.type !== Q.literal ? t.push(r) : n.value += r.value, t;
|
|
5867
5859
|
}, []);
|
|
5868
5860
|
}
|
|
5869
|
-
function
|
|
5861
|
+
function Da(e) {
|
|
5870
5862
|
return typeof e == "function";
|
|
5871
5863
|
}
|
|
5872
5864
|
function Xt(e, t, r, n, i, s, o) {
|
|
@@ -5886,7 +5878,7 @@ function Xt(e, t, r, n, i, s, o) {
|
|
|
5886
5878
|
});
|
|
5887
5879
|
continue;
|
|
5888
5880
|
}
|
|
5889
|
-
if (
|
|
5881
|
+
if (oa(f)) {
|
|
5890
5882
|
typeof s == "number" && a.push({
|
|
5891
5883
|
type: Q.literal,
|
|
5892
5884
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -5895,9 +5887,9 @@ function Xt(e, t, r, n, i, s, o) {
|
|
|
5895
5887
|
}
|
|
5896
5888
|
var h = f.value;
|
|
5897
5889
|
if (!(i && h in i))
|
|
5898
|
-
throw new
|
|
5890
|
+
throw new Ca(h, o);
|
|
5899
5891
|
var c = i[h];
|
|
5900
|
-
if (
|
|
5892
|
+
if (sa(f)) {
|
|
5901
5893
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
5902
5894
|
type: typeof c == "string" ? Q.literal : Q.object,
|
|
5903
5895
|
value: c
|
|
@@ -5929,10 +5921,10 @@ function Xt(e, t, r, n, i, s, o) {
|
|
|
5929
5921
|
continue;
|
|
5930
5922
|
}
|
|
5931
5923
|
if (Ui(f)) {
|
|
5932
|
-
var p = f.children, b = f.value,
|
|
5933
|
-
if (!
|
|
5934
|
-
throw new
|
|
5935
|
-
var G = Xt(p, t, r, n, i, s), W =
|
|
5924
|
+
var p = f.children, b = f.value, I = i[b];
|
|
5925
|
+
if (!Da(I))
|
|
5926
|
+
throw new Ia(b, "function", o);
|
|
5927
|
+
var G = Xt(p, t, r, n, i, s), W = I(G.map(function(J) {
|
|
5936
5928
|
return J.value;
|
|
5937
5929
|
}));
|
|
5938
5930
|
Array.isArray(W) || (W = [W]), a.push.apply(a, W.map(function(J) {
|
|
@@ -5965,16 +5957,16 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
5965
5957
|
continue;
|
|
5966
5958
|
}
|
|
5967
5959
|
}
|
|
5968
|
-
return
|
|
5960
|
+
return Ra(a);
|
|
5969
5961
|
}
|
|
5970
|
-
function
|
|
5962
|
+
function ka(e, t) {
|
|
5971
5963
|
return t ? ye(ye(ye({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
5972
5964
|
return r[n] = ye(ye({}, e[n]), t[n] || {}), r;
|
|
5973
5965
|
}, {})) : e;
|
|
5974
5966
|
}
|
|
5975
|
-
function
|
|
5967
|
+
function Fa(e, t) {
|
|
5976
5968
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
5977
|
-
return r[n] =
|
|
5969
|
+
return r[n] = ka(e[n], t[n]), r;
|
|
5978
5970
|
}, ye({}, e)) : e;
|
|
5979
5971
|
}
|
|
5980
5972
|
function Hr(e) {
|
|
@@ -5991,7 +5983,7 @@ function Hr(e) {
|
|
|
5991
5983
|
}
|
|
5992
5984
|
};
|
|
5993
5985
|
}
|
|
5994
|
-
function
|
|
5986
|
+
function Ua(e) {
|
|
5995
5987
|
return e === void 0 && (e = {
|
|
5996
5988
|
number: {},
|
|
5997
5989
|
dateTime: {},
|
|
@@ -6023,7 +6015,7 @@ function Uo(e) {
|
|
|
6023
6015
|
})
|
|
6024
6016
|
};
|
|
6025
6017
|
}
|
|
6026
|
-
var
|
|
6018
|
+
var Ga = (
|
|
6027
6019
|
/** @class */
|
|
6028
6020
|
function() {
|
|
6029
6021
|
function e(t, r, n, i) {
|
|
@@ -6055,13 +6047,13 @@ var Go = (
|
|
|
6055
6047
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
6056
6048
|
var o = i || {};
|
|
6057
6049
|
o.formatters;
|
|
6058
|
-
var a =
|
|
6050
|
+
var a = Jo(o, ["formatters"]);
|
|
6059
6051
|
this.ast = e.__parse(t, ye(ye({}, a), { locale: this.resolvedLocale }));
|
|
6060
6052
|
} else
|
|
6061
6053
|
this.ast = t;
|
|
6062
6054
|
if (!Array.isArray(this.ast))
|
|
6063
6055
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
6064
|
-
this.formats =
|
|
6056
|
+
this.formats = Fa(e.formats, n), this.formatters = i && i.formatters || Ua(this.formatterCache);
|
|
6065
6057
|
}
|
|
6066
6058
|
return Object.defineProperty(e, "defaultLocale", {
|
|
6067
6059
|
get: function() {
|
|
@@ -6074,7 +6066,7 @@ var Go = (
|
|
|
6074
6066
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
6075
6067
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
6076
6068
|
}
|
|
6077
|
-
}, e.__parse =
|
|
6069
|
+
}, e.__parse = Na, e.formats = {
|
|
6078
6070
|
number: {
|
|
6079
6071
|
integer: {
|
|
6080
6072
|
maximumFractionDigits: 0
|
|
@@ -6135,7 +6127,7 @@ var Go = (
|
|
|
6135
6127
|
}, e;
|
|
6136
6128
|
}()
|
|
6137
6129
|
);
|
|
6138
|
-
function
|
|
6130
|
+
function ja(e, t) {
|
|
6139
6131
|
if (t == null)
|
|
6140
6132
|
return;
|
|
6141
6133
|
if (t in e)
|
|
@@ -6156,33 +6148,33 @@ function jo(e, t) {
|
|
|
6156
6148
|
n = void 0;
|
|
6157
6149
|
return n;
|
|
6158
6150
|
}
|
|
6159
|
-
const Ce = {},
|
|
6151
|
+
const Ce = {}, Va = (e, t, r) => r && (t in Ce || (Ce[t] = {}), e in Ce[t] || (Ce[t][e] = r), r), Zi = (e, t) => {
|
|
6160
6152
|
if (t == null)
|
|
6161
6153
|
return;
|
|
6162
6154
|
if (t in Ce && e in Ce[t])
|
|
6163
6155
|
return Ce[t][e];
|
|
6164
6156
|
const r = dr(t);
|
|
6165
6157
|
for (let n = 0; n < r.length; n++) {
|
|
6166
|
-
const i = r[n], s =
|
|
6158
|
+
const i = r[n], s = Xa(i, e);
|
|
6167
6159
|
if (s)
|
|
6168
|
-
return
|
|
6160
|
+
return Va(e, t, s);
|
|
6169
6161
|
}
|
|
6170
6162
|
};
|
|
6171
|
-
let
|
|
6163
|
+
let on;
|
|
6172
6164
|
const mt = fr({});
|
|
6173
|
-
function
|
|
6174
|
-
return
|
|
6165
|
+
function Wa(e) {
|
|
6166
|
+
return on[e] || null;
|
|
6175
6167
|
}
|
|
6176
6168
|
function Ji(e) {
|
|
6177
|
-
return e in
|
|
6169
|
+
return e in on;
|
|
6178
6170
|
}
|
|
6179
|
-
function
|
|
6171
|
+
function Xa(e, t) {
|
|
6180
6172
|
if (!Ji(e))
|
|
6181
6173
|
return null;
|
|
6182
|
-
const r =
|
|
6183
|
-
return
|
|
6174
|
+
const r = Wa(e);
|
|
6175
|
+
return ja(r, t);
|
|
6184
6176
|
}
|
|
6185
|
-
function
|
|
6177
|
+
function Ya(e) {
|
|
6186
6178
|
if (e == null)
|
|
6187
6179
|
return;
|
|
6188
6180
|
const t = dr(e);
|
|
@@ -6193,21 +6185,21 @@ function Yo(e) {
|
|
|
6193
6185
|
}
|
|
6194
6186
|
}
|
|
6195
6187
|
function Qi(e, ...t) {
|
|
6196
|
-
delete Ce[e], mt.update((r) => (r[e] =
|
|
6188
|
+
delete Ce[e], mt.update((r) => (r[e] = Zo.all([r[e] || {}, ...t]), r));
|
|
6197
6189
|
}
|
|
6198
6190
|
_t(
|
|
6199
6191
|
[mt],
|
|
6200
6192
|
([e]) => Object.keys(e)
|
|
6201
6193
|
);
|
|
6202
|
-
mt.subscribe((e) =>
|
|
6194
|
+
mt.subscribe((e) => on = e);
|
|
6203
6195
|
const Yt = {};
|
|
6204
|
-
function
|
|
6196
|
+
function za(e, t) {
|
|
6205
6197
|
Yt[e].delete(t), Yt[e].size === 0 && delete Yt[e];
|
|
6206
6198
|
}
|
|
6207
6199
|
function Ki(e) {
|
|
6208
6200
|
return Yt[e];
|
|
6209
6201
|
}
|
|
6210
|
-
function
|
|
6202
|
+
function qa(e) {
|
|
6211
6203
|
return dr(e).map((t) => {
|
|
6212
6204
|
const r = Ki(t);
|
|
6213
6205
|
return [t, r ? [...r] : []];
|
|
@@ -6221,19 +6213,19 @@ function Gr(e) {
|
|
|
6221
6213
|
}
|
|
6222
6214
|
);
|
|
6223
6215
|
}
|
|
6224
|
-
function
|
|
6216
|
+
function Za(e, t) {
|
|
6225
6217
|
return Promise.all(
|
|
6226
|
-
t.map((n) => (
|
|
6218
|
+
t.map((n) => (za(e, n), n().then((i) => i.default || i)))
|
|
6227
6219
|
).then((n) => Qi(e, ...n));
|
|
6228
6220
|
}
|
|
6229
6221
|
const xt = {};
|
|
6230
6222
|
function es(e) {
|
|
6231
6223
|
if (!Gr(e))
|
|
6232
6224
|
return e in xt ? xt[e] : Promise.resolve();
|
|
6233
|
-
const t =
|
|
6225
|
+
const t = qa(e);
|
|
6234
6226
|
return xt[e] = Promise.all(
|
|
6235
6227
|
t.map(
|
|
6236
|
-
([r, n]) =>
|
|
6228
|
+
([r, n]) => Za(r, n)
|
|
6237
6229
|
)
|
|
6238
6230
|
).then(() => {
|
|
6239
6231
|
if (Gr(e))
|
|
@@ -6241,7 +6233,7 @@ function es(e) {
|
|
|
6241
6233
|
delete xt[e];
|
|
6242
6234
|
}), xt[e];
|
|
6243
6235
|
}
|
|
6244
|
-
const
|
|
6236
|
+
const Ja = {
|
|
6245
6237
|
number: {
|
|
6246
6238
|
scientific: { notation: "scientific" },
|
|
6247
6239
|
engineering: { notation: "engineering" },
|
|
@@ -6270,16 +6262,16 @@ const Jo = {
|
|
|
6270
6262
|
timeZoneName: "short"
|
|
6271
6263
|
}
|
|
6272
6264
|
}
|
|
6273
|
-
},
|
|
6265
|
+
}, Qa = {
|
|
6274
6266
|
fallbackLocale: null,
|
|
6275
6267
|
loadingDelay: 200,
|
|
6276
|
-
formats:
|
|
6268
|
+
formats: Ja,
|
|
6277
6269
|
warnOnMissingMessages: !0,
|
|
6278
6270
|
handleMissingMessage: void 0,
|
|
6279
6271
|
ignoreTag: !0
|
|
6280
|
-
},
|
|
6272
|
+
}, Ka = Qa;
|
|
6281
6273
|
function vt() {
|
|
6282
|
-
return
|
|
6274
|
+
return Ka;
|
|
6283
6275
|
}
|
|
6284
6276
|
const Ar = fr(!1);
|
|
6285
6277
|
var eu = Object.defineProperty, tu = Object.defineProperties, ru = Object.getOwnPropertyDescriptors, Pn = Object.getOwnPropertySymbols, nu = Object.prototype.hasOwnProperty, iu = Object.prototype.propertyIsEnumerable, Mn = (e, t, r) => t in e ? eu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, su = (e, t) => {
|
|
@@ -6289,7 +6281,7 @@ var eu = Object.defineProperty, tu = Object.defineProperties, ru = Object.getOwn
|
|
|
6289
6281
|
for (var r of Pn(t))
|
|
6290
6282
|
iu.call(t, r) && Mn(e, r, t[r]);
|
|
6291
6283
|
return e;
|
|
6292
|
-
},
|
|
6284
|
+
}, ou = (e, t) => tu(e, ru(t));
|
|
6293
6285
|
let jr;
|
|
6294
6286
|
const nr = fr(null);
|
|
6295
6287
|
function Nn(e) {
|
|
@@ -6305,8 +6297,8 @@ function Ze() {
|
|
|
6305
6297
|
nr.subscribe((e) => {
|
|
6306
6298
|
jr = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
6307
6299
|
});
|
|
6308
|
-
const
|
|
6309
|
-
if (e &&
|
|
6300
|
+
const au = (e) => {
|
|
6301
|
+
if (e && Ya(e) && Gr(e)) {
|
|
6310
6302
|
const { loadingDelay: t } = vt();
|
|
6311
6303
|
let r;
|
|
6312
6304
|
return typeof window < "u" && Ze() != null && t ? r = window.setTimeout(
|
|
@@ -6319,8 +6311,8 @@ const ou = (e) => {
|
|
|
6319
6311
|
});
|
|
6320
6312
|
}
|
|
6321
6313
|
return nr.set(e);
|
|
6322
|
-
}, Ye =
|
|
6323
|
-
set:
|
|
6314
|
+
}, Ye = ou(su({}, nr), {
|
|
6315
|
+
set: au
|
|
6324
6316
|
}), pr = (e) => {
|
|
6325
6317
|
const t = /* @__PURE__ */ Object.create(null);
|
|
6326
6318
|
return (n) => {
|
|
@@ -6328,7 +6320,7 @@ const ou = (e) => {
|
|
|
6328
6320
|
return i in t ? t[i] : t[i] = e(n);
|
|
6329
6321
|
};
|
|
6330
6322
|
};
|
|
6331
|
-
var uu = Object.defineProperty, ir = Object.getOwnPropertySymbols, ts = Object.prototype.hasOwnProperty, rs = Object.prototype.propertyIsEnumerable, In = (e, t, r) => t in e ? uu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r,
|
|
6323
|
+
var uu = Object.defineProperty, ir = Object.getOwnPropertySymbols, ts = Object.prototype.hasOwnProperty, rs = Object.prototype.propertyIsEnumerable, In = (e, t, r) => t in e ? uu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, an = (e, t) => {
|
|
6332
6324
|
for (var r in t || (t = {}))
|
|
6333
6325
|
ts.call(t, r) && In(e, r, t[r]);
|
|
6334
6326
|
if (ir)
|
|
@@ -6378,24 +6370,24 @@ const Nt = (e, t) => {
|
|
|
6378
6370
|
} = t, n = gt(t, [
|
|
6379
6371
|
"locale"
|
|
6380
6372
|
]);
|
|
6381
|
-
return lu(
|
|
6373
|
+
return lu(an({ locale: r }, n));
|
|
6382
6374
|
}, du = (e = {}) => {
|
|
6383
6375
|
var t = e, {
|
|
6384
6376
|
locale: r = Ze()
|
|
6385
6377
|
} = t, n = gt(t, [
|
|
6386
6378
|
"locale"
|
|
6387
6379
|
]);
|
|
6388
|
-
return fu(
|
|
6380
|
+
return fu(an({ locale: r }, n));
|
|
6389
6381
|
}, pu = (e = {}) => {
|
|
6390
6382
|
var t = e, {
|
|
6391
6383
|
locale: r = Ze()
|
|
6392
6384
|
} = t, n = gt(t, [
|
|
6393
6385
|
"locale"
|
|
6394
6386
|
]);
|
|
6395
|
-
return hu(
|
|
6387
|
+
return hu(an({ locale: r }, n));
|
|
6396
6388
|
}, vu = pr(
|
|
6397
6389
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
6398
|
-
(e, t = Ze()) => new
|
|
6390
|
+
(e, t = Ze()) => new Ga(e, t, vt().formats, {
|
|
6399
6391
|
ignoreTag: vt().ignoreTag
|
|
6400
6392
|
})
|
|
6401
6393
|
), _u = (e, t = {}) => {
|
|
@@ -6451,7 +6443,7 @@ const Tu = (e) => {
|
|
|
6451
6443
|
Y(s, !0), Y(o, void 0);
|
|
6452
6444
|
try {
|
|
6453
6445
|
const d = [
|
|
6454
|
-
|
|
6446
|
+
Oo({ apiEndpoint: u, userSession: l, locale: f }).then((p) => {
|
|
6455
6447
|
const b = p.level;
|
|
6456
6448
|
b.name = b.presentation?.displayName || b.name, b.spendablePoints = p.spendableWallet?.total.points || 0, Y(t, b, !0), Y(n, p.loyaltyWallet?.total, !0), Y(i, p.spendableWallet?.total, !0), c?.({ elevateLevel: b }), c?.({
|
|
6457
6449
|
elevateLevelWalletTotal: p.spendableWallet?.total,
|
|
@@ -6459,10 +6451,10 @@ const Tu = (e) => {
|
|
|
6459
6451
|
});
|
|
6460
6452
|
})
|
|
6461
6453
|
];
|
|
6462
|
-
h && d.push(
|
|
6454
|
+
h && d.push(Bo({ apiEndpoint: u, userSession: l, locale: f }).then((p) => {
|
|
6463
6455
|
Y(r, p, !0);
|
|
6464
|
-
})), await Promise.all(d), await
|
|
6465
|
-
calculatedLevelFlag:
|
|
6456
|
+
})), await Promise.all(d), await io(), $(r) && $(t) && c?.({
|
|
6457
|
+
calculatedLevelFlag: Lo($(r), $(t).loyaltyPoints ?? 0)
|
|
6466
6458
|
});
|
|
6467
6459
|
} catch (d) {
|
|
6468
6460
|
Y(o, d, !0), console.error("Failed to load elevate info:", d);
|
|
@@ -6566,8 +6558,8 @@ const Ou = {
|
|
|
6566
6558
|
}`
|
|
6567
6559
|
};
|
|
6568
6560
|
function ns(e, t) {
|
|
6569
|
-
Xr(t, !0),
|
|
6570
|
-
const r = () =>
|
|
6561
|
+
Xr(t, !0), yo(e, Ou);
|
|
6562
|
+
const r = () => wo(Eu, "$_", n), [n, i] = To(), s = be(t, "apiEndpoint", 7, ""), o = be(t, "userSession", 7, ""), a = be(t, "locale", 7, ""), u = be(t, "dateFormat", 7, tr), l = be(t, "onLevelLoaded", 7, (B) => {
|
|
6571
6563
|
});
|
|
6572
6564
|
xu({ withLocale: a(), translations: {} }), Object.entries(Su).forEach(([B, ee]) => {
|
|
6573
6565
|
wu(B, ee);
|
|
@@ -6578,40 +6570,40 @@ function ns(e, t) {
|
|
|
6578
6570
|
locale: a(),
|
|
6579
6571
|
loadLevels: !1,
|
|
6580
6572
|
onLevelLoaded: l()
|
|
6581
|
-
})), h = /* @__PURE__ */ Ke(() => f.spendableWalletTotal), c = /* @__PURE__ */ Ke(() => $(h)?.points ?? 0), d = /* @__PURE__ */ Ke(() => $(c).toLocaleString()), p = /* @__PURE__ */ Ke(() => f.loading && $(h) === void 0), b = /* @__PURE__ */ Ke(() => [...$(h)?.aboutToExpire ?? []].filter((B) => B.points > 0).sort((B, ee) => new Date(B.expireTime).getTime() - new Date(ee.expireTime).getTime())[0]),
|
|
6573
|
+
})), h = /* @__PURE__ */ Ke(() => f.spendableWalletTotal), c = /* @__PURE__ */ Ke(() => $(h)?.points ?? 0), d = /* @__PURE__ */ Ke(() => $(c).toLocaleString()), p = /* @__PURE__ */ Ke(() => f.loading && $(h) === void 0), b = /* @__PURE__ */ Ke(() => [...$(h)?.aboutToExpire ?? []].filter((B) => B.points > 0).sort((B, ee) => new Date(B.expireTime).getTime() - new Date(ee.expireTime).getTime())[0]), I = /* @__PURE__ */ Ke(() => $(b) ? Io($(b).expireTime, u()) : "");
|
|
6582
6574
|
var G = {
|
|
6583
6575
|
get apiEndpoint() {
|
|
6584
6576
|
return s();
|
|
6585
6577
|
},
|
|
6586
6578
|
set apiEndpoint(B = "") {
|
|
6587
|
-
s(B),
|
|
6579
|
+
s(B), fe();
|
|
6588
6580
|
},
|
|
6589
6581
|
get userSession() {
|
|
6590
6582
|
return o();
|
|
6591
6583
|
},
|
|
6592
6584
|
set userSession(B = "") {
|
|
6593
|
-
o(B),
|
|
6585
|
+
o(B), fe();
|
|
6594
6586
|
},
|
|
6595
6587
|
get locale() {
|
|
6596
6588
|
return a();
|
|
6597
6589
|
},
|
|
6598
6590
|
set locale(B = "") {
|
|
6599
|
-
a(B),
|
|
6591
|
+
a(B), fe();
|
|
6600
6592
|
},
|
|
6601
6593
|
get dateFormat() {
|
|
6602
6594
|
return u();
|
|
6603
6595
|
},
|
|
6604
6596
|
set dateFormat(B = tr) {
|
|
6605
|
-
u(B),
|
|
6597
|
+
u(B), fe();
|
|
6606
6598
|
},
|
|
6607
6599
|
get onLevelLoaded() {
|
|
6608
6600
|
return l();
|
|
6609
6601
|
},
|
|
6610
6602
|
set onLevelLoaded(B = (ee) => {
|
|
6611
6603
|
}) {
|
|
6612
|
-
l(B),
|
|
6604
|
+
l(B), fe();
|
|
6613
6605
|
}
|
|
6614
|
-
}, W =
|
|
6606
|
+
}, W = lo(), U = Vs(W);
|
|
6615
6607
|
{
|
|
6616
6608
|
var He = (B) => {
|
|
6617
6609
|
var ee = Hu();
|
|
@@ -6625,7 +6617,7 @@ function ns(e, t) {
|
|
|
6625
6617
|
() => r()("pointsToExpire", {
|
|
6626
6618
|
values: {
|
|
6627
6619
|
points: $(b).points.toLocaleString(),
|
|
6628
|
-
date: $(
|
|
6620
|
+
date: $(I)
|
|
6629
6621
|
}
|
|
6630
6622
|
})
|
|
6631
6623
|
]), St(g, _);
|
|
@@ -6671,31 +6663,31 @@ function is(e, t) {
|
|
|
6671
6663
|
return r();
|
|
6672
6664
|
},
|
|
6673
6665
|
set apiEndpoint(u = "") {
|
|
6674
|
-
r(u),
|
|
6666
|
+
r(u), fe();
|
|
6675
6667
|
},
|
|
6676
6668
|
get userSession() {
|
|
6677
6669
|
return n();
|
|
6678
6670
|
},
|
|
6679
6671
|
set userSession(u = "") {
|
|
6680
|
-
n(u),
|
|
6672
|
+
n(u), fe();
|
|
6681
6673
|
},
|
|
6682
6674
|
get locale() {
|
|
6683
6675
|
return i();
|
|
6684
6676
|
},
|
|
6685
6677
|
set locale(u = "") {
|
|
6686
|
-
i(u),
|
|
6678
|
+
i(u), fe();
|
|
6687
6679
|
},
|
|
6688
6680
|
get dateFormat() {
|
|
6689
6681
|
return s();
|
|
6690
6682
|
},
|
|
6691
6683
|
set dateFormat(u = tr) {
|
|
6692
|
-
s(u),
|
|
6684
|
+
s(u), fe();
|
|
6693
6685
|
},
|
|
6694
6686
|
get onLevelLoaded() {
|
|
6695
6687
|
return o();
|
|
6696
6688
|
},
|
|
6697
6689
|
set onLevelLoaded(u) {
|
|
6698
|
-
o(u),
|
|
6690
|
+
o(u), fe();
|
|
6699
6691
|
}
|
|
6700
6692
|
};
|
|
6701
6693
|
return ns(e, {
|