@everymatrix/loyalty-rakeback 0.2.9 → 0.2.11

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.
@@ -19,7 +19,7 @@ function In() {
19
19
  });
20
20
  return { promise: r, resolve: e, reject: t };
21
21
  }
22
- const Z = 2, at = 4, kt = 8, Ln = 1 << 24, he = 16, Ee = 32, $e = 64, wr = 128, Gr = 256, pe = 512, V = 1024, L = 2048, ue = 4096, le = 8192, q = 16384, ze = 32768, zt = 1 << 25, ot = 65536, qt = 1 << 17, cs = 1 << 18, qe = 1 << 19, Dn = 1 << 20, Zt = 1 << 21, nt = 1 << 22, Ie = 1 << 23, cr = Symbol("$state"), Un = Symbol("component"), ds = Symbol("legacy props"), ps = Symbol("attributes"), vs = Symbol("class"), _s = Symbol("style"), Sr = Symbol("text"), Ct = new class extends Error {
22
+ const Z = 2, at = 4, kt = 8, Ln = 1 << 24, he = 16, Ee = 32, $e = 64, wr = 128, Gr = 256, pe = 512, V = 1024, N = 2048, se = 4096, le = 8192, q = 16384, ze = 32768, zt = 1 << 25, ot = 65536, qt = 1 << 17, cs = 1 << 18, qe = 1 << 19, Dn = 1 << 20, Zt = 1 << 21, nt = 1 << 22, Ie = 1 << 23, cr = Symbol("$state"), Un = Symbol("component"), ds = Symbol("legacy props"), ps = Symbol("attributes"), vs = Symbol("class"), _s = Symbol("style"), Sr = Symbol("text"), Ct = new class extends Error {
23
23
  name = "StaleReactionError";
24
24
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
25
25
  }(), nr = 3, ir = 8;
@@ -183,17 +183,17 @@ function Ns() {
183
183
  Yn();
184
184
  }
185
185
  const Ps = -7169;
186
- function C(e, t) {
186
+ function L(e, t) {
187
187
  e.f = e.f & Ps | t;
188
188
  }
189
189
  function Wr(e) {
190
- e.f & pe || e.deps === null ? C(e, V) : C(e, ue);
190
+ e.f & pe || e.deps === null ? L(e, V) : L(e, se);
191
191
  }
192
- function zn(e, t, r) {
193
- e.f & L ? t.add(e) : e.f & ue && r.add(e), C(e, V);
192
+ function zn(e, t) {
193
+ e.f & N ? t.set(e, N) : e.f & se && t.get(e) !== N && t.set(e, se), L(e, V);
194
194
  }
195
195
  function ar(e) {
196
- var t = T, r = H;
196
+ var t = S, r = H;
197
197
  fe(null), xe(null);
198
198
  try {
199
199
  return e();
@@ -243,7 +243,7 @@ function Cs() {
243
243
  var e = (
244
244
  /** @type {Effect} */
245
245
  H
246
- ), t = T, r = re, n = (
246
+ ), t = S, r = re, n = (
247
247
  /** @type {Batch} */
248
248
  $
249
249
  );
@@ -268,7 +268,7 @@ function qn() {
268
268
  }
269
269
  // @__NO_SIDE_EFFECTS__
270
270
  function Yr(e) {
271
- var t = Z | L;
271
+ var t = Z | N;
272
272
  return H !== null && (H.f |= qe), {
273
273
  ctx: re,
274
274
  deps: null,
@@ -302,7 +302,7 @@ function Rs(e, t, r) {
302
302
  ), s = Rt(
303
303
  /** @type {V} */
304
304
  j
305
- ), o = !T, a = /* @__PURE__ */ new Set();
305
+ ), o = !S, a = /* @__PURE__ */ new Set();
306
306
  return Qs(() => {
307
307
  var u = (
308
308
  /** @type {Effect} */
@@ -382,7 +382,7 @@ function zr(e) {
382
382
  function Zn(e) {
383
383
  var t = zr(e);
384
384
  if (!e.equals(t) && (e.wv = gi(), (!$?.is_fork || e.deps === null) && ($ !== null ? ($.capture(e, t, !0), it?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
385
- C(e, V);
385
+ L(e, V);
386
386
  return;
387
387
  }
388
388
  Be || (ce !== null ? (Kr() || $?.is_fork) && ce.set(e, t) : Wr(e));
@@ -405,24 +405,24 @@ let Ds = 1;
405
405
  class Oe {
406
406
  id = Ds++;
407
407
  /** True as soon as `#process` was called */
408
- #e = !1;
408
+ started = !1;
409
409
  linked = !0;
410
410
  /** @type {Batch | null} */
411
- #t = null;
411
+ prev = null;
412
412
  /** @type {Batch | null} */
413
- #r = null;
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
- * They keys of this map are identical to `this.#previous`
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
- * They keys of this map are identical to `this.#current`
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 Oe {
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
- #u = /* @__PURE__ */ new Set();
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
- #i = /* @__PURE__ */ new Set();
439
+ #t = /* @__PURE__ */ new Set();
440
440
  /**
441
441
  * The number of async effects that are currently in flight
442
442
  */
443
- #a = 0;
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
- #n = /* @__PURE__ */ new Map();
448
+ #o = /* @__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
- #o = null;
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 Oe {
463
463
  * May contain duplicates — deduplication happens during resolving
464
464
  * @type {Effect[]}
465
465
  */
466
- #s = [];
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
+ #a = [];
477
472
  /**
478
- * Deferred effects that are MAYBE_DIRTY
479
- * @type {Set<Effect>}
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
- #f = /* @__PURE__ */ new Set();
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 Oe {
486
481
  * so they can be rescheduled if the branch survives.
487
482
  * @type {Map<Effect, { d: Effect[], m: Effect[] }>}
488
483
  */
489
- #c = /* @__PURE__ */ new Map();
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
- #m = /* @__PURE__ */ new Set();
489
+ #d = /* @__PURE__ */ new Set();
495
490
  is_fork = !1;
496
- #h = !1;
491
+ #l = !1;
497
492
  constructor() {
498
- Ke === null ? dr = Ke = this : (Ke.#r = this, this.#t = Ke), Ke = this;
493
+ Ke === null ? dr = Ke = this : (Ke.next = this, this.prev = Ke), Ke = this;
499
494
  }
500
- #E() {
495
+ #v() {
501
496
  if (this.is_fork) return !0;
502
- for (const n of this.#n.keys()) {
503
- for (var t = n, r = !1; t.parent !== null; ) {
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.#o.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 Oe {
517
516
  * @param {Effect} effect
518
517
  */
519
518
  skip_effect(t) {
520
- this.#c.has(t) || this.#c.set(t, { d: [], m: [] }), this.#m.delete(t);
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 Oe {
526
525
  * @param {(e: Effect) => void} callback
527
526
  */
528
527
  unskip_effect(t, r = (n) => this.schedule(n)) {
529
- var n = this.#c.get(t);
528
+ var n = this.#u.get(t);
530
529
  if (n) {
531
- this.#c.delete(t);
530
+ this.#u.delete(t);
532
531
  for (var i of n.d)
533
- C(i, L), r(i);
532
+ L(i, N), r(i);
534
533
  for (i of n.m)
535
- C(i, ue), r(i);
534
+ L(i, se), r(i);
536
535
  }
537
- this.#m.add(t);
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 Oe {
545
544
  * a single traversal — scheduling into other batches can never observe them
546
545
  * @returns {Effect[]}
547
546
  */
548
- #x() {
547
+ #f() {
549
548
  var t = [];
550
- for (const s of this.#s)
551
- if (!(s.f & q || !(s.f & (L | ue)))) {
549
+ for (const s of this.#i)
550
+ if (!(s.f & q || !(s.f & (N | se)))) {
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 Oe {
562
561
  }
563
562
  n || t.push(r);
564
563
  }
565
- return this.#s = [], t;
564
+ return this.#i = [], t;
566
565
  }
567
- #b() {
568
- this.#e = !0;
569
- for (const a of this.#l)
570
- this.#f.delete(a), C(a, L), this.schedule(a);
571
- for (const a of this.#f)
572
- C(a, ue), this.schedule(a);
566
+ #_() {
567
+ this.started = !0;
568
+ for (const [a, u] of this.#s)
569
+ L(a, u), this.schedule(a);
573
570
  this.apply();
574
- for (var t = Ht = [], r = [], n = Gt = []; this.#s.length > 0; ) {
575
- on++ > 1e3 && (this.#v(), Us());
576
- for (const a of this.#x())
571
+ for (var t = Ht = [], r = [], n = Gt = []; this.#i.length > 0; ) {
572
+ on++ > 1e3 && (this.#c(), Us());
573
+ for (const a of this.#f())
577
574
  try {
578
- this.#g(a, t, r);
575
+ this.#b(a, t, r);
579
576
  } catch (u) {
580
- throw ei(a), this.#E() || this.discard(), u;
577
+ throw ei(a), this.#v() || this.discard(), u;
581
578
  }
582
579
  }
583
580
  if ($ = null, n.length > 0) {
@@ -585,35 +582,28 @@ class Oe {
585
582
  for (const a of n)
586
583
  i.schedule(a);
587
584
  }
588
- if (Ht = null, Gt = null, this.#E()) {
585
+ if (Ht = null, Gt = null, this.#v()) {
589
586
  this.#p(r), this.#p(t);
590
- for (const [a, u] of this.#c)
587
+ for (const [a, u] of this.#u)
591
588
  Kn(a, u);
592
589
  n.length > 0 && /** @type {unknown} */
593
- $.#b();
590
+ $.#_();
594
591
  return;
595
592
  }
596
- const s = this.#d();
593
+ const s = this.#y();
597
594
  if (s) {
598
- this.#p(r), this.#p(t), s.#w(this);
595
+ this.#p(r), this.#p(t), s.#h(this);
599
596
  return;
600
597
  }
601
- this.#l.clear(), this.#f.clear();
602
- for (const a of this.#u) a(this);
603
- this.#u.clear(), it = this, un(r), un(t), it = null, this.#o?.resolve();
598
+ this.#s.clear();
599
+ for (const a of this.#e) a(this);
600
+ this.#e.clear(), it = this, un(r), un(t), it = null, this.#n?.resolve();
604
601
  var o = (
605
602
  /** @type {Batch | null} */
606
603
  /** @type {unknown} */
607
604
  $
608
605
  );
609
- if (this.#a === 0 && (this.#s.length === 0 || o !== null) && this.#v(), this.#s.length > 0)
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 && (ge.clear(), o.#b());
606
+ this.#r === 0 && (this.#i.length === 0 || o !== null) && this.#c(), o !== null && (ge.clear(), o.#_());
617
607
  }
618
608
  /**
619
609
  * Traverse the effect tree, executing effects or stashing
@@ -622,12 +612,12 @@ class Oe {
622
612
  * @param {Effect[]} effects
623
613
  * @param {Effect[]} render_effects
624
614
  */
625
- #g(t, r, n) {
615
+ #b(t, r, n) {
626
616
  t.f ^= V;
627
617
  for (var i = t.first; i !== null; ) {
628
- var s = i.f, o = (s & (Ee | $e)) !== 0, a = o && (s & V) !== 0, u = a || (s & le) !== 0 || this.#c.has(i);
618
+ var s = i.f, o = (s & (Ee | $e)) !== 0, a = o && (s & V) !== 0, u = a || (s & le) !== 0 || this.#u.has(i);
629
619
  if (!u && i.fn !== null) {
630
- o ? i.f ^= V : s & at ? r.push(i) : It(i) && (s & he && this.#f.add(i), ft(i));
620
+ o ? i.f ^= V : s & at ? r.push(i) : It(i) && (s & he && this.add_dirty_reaction(i, se), ft(i));
631
621
  var l = i.first;
632
622
  if (l !== null) {
633
623
  i = l;
@@ -644,31 +634,32 @@ class Oe {
644
634
  }
645
635
  }
646
636
  }
647
- #d() {
648
- for (var t = this.#t; t !== null; ) {
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.#g(t)) return t;
656
640
  return null;
657
641
  }
642
+ /** @param {Batch} batch */
643
+ #g(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
- #w(t) {
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.transfer_effects(t.#l, t.#f);
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 & (L | ue))))
662
+ if (i !== null && !(n.f & Z && !(n.f & (N | se))))
672
663
  for (const a of i) {
673
664
  var s = a.f;
674
665
  if (s & Z)
@@ -681,20 +672,20 @@ class Oe {
681
672
  /** @type {Effect} */
682
673
  a
683
674
  );
684
- s & (nt | he) && !this.async_deriveds.has(o) && (this.#f.delete(o), C(o, L), this.schedule(o));
675
+ s & (nt | he) && !this.async_deriveds.has(o) && (this.#s.delete(o), L(o, N), 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.#v(), $ = this, this.#b();
681
+ this.oncommit(() => t.discard()), t.#c(), $ = 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
- zn(t[r], this.#l, this.#f);
688
+ zn(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 Oe {
714
705
  }
715
706
  flush() {
716
707
  try {
717
- pr = !0, $ = this, this.#b();
708
+ pr = !0, $ = this, this.#_();
718
709
  } finally {
719
710
  on = 0, Hr = null, Ht = null, Gt = null, pr = !1, $ = null, ce = null, ge.clear();
720
711
  }
721
712
  }
722
713
  discard() {
723
- for (const t of this.#i) t(this);
724
- this.#i.clear();
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(xt);
727
- this.#v(), this.#o?.resolve();
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.#_.push(t);
724
+ this.#a.push(t);
734
725
  }
735
- #y() {
736
- for (let h = dr; h !== null; h = h.#r) {
726
+ #E() {
727
+ for (let h = dr; 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 Oe {
757
748
  (c) => !/** @type {[any, boolean]} */
758
749
  h.current.get(c)[1]
759
750
  );
760
- if (!(!h.#e || i.length === 0)) {
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.#m)
757
+ for (const c of this.#d)
767
758
  h.unskip_effect(c, (d) => {
768
759
  d.f & (he | nt) ? h.schedule(d) : h.#p([d]);
769
760
  });
@@ -777,12 +768,12 @@ class Oe {
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 | le | qt)) && qr(c, l, a) && (c.f & (nt | he) ? (C(c, L), h.schedule(c)) : h.#l.add(c));
782
- if (h.#s.length > 0 && !h.#h) {
771
+ for (const c of this.#a)
772
+ !(c.f & (q | le | qt)) && qr(c, l, a) && (c.f & (nt | he) ? (L(c, N), h.schedule(c)) : h.add_dirty_reaction(c, N));
773
+ if (h.#i.length > 0 && !h.#l) {
783
774
  h.apply();
784
- for (var f of h.#x())
785
- h.#g(f, [], []);
775
+ for (var f of h.#f())
776
+ h.#b(f, [], []);
786
777
  }
787
778
  h.deactivate();
788
779
  }
@@ -794,9 +785,9 @@ class Oe {
794
785
  * @param {Effect} effect
795
786
  */
796
787
  increment(t, r) {
797
- if (this.#a += 1, t) {
798
- let n = this.#n.get(r) ?? 0;
799
- this.#n.set(r, n + 1);
788
+ if (this.#r += 1, t) {
789
+ let n = this.#o.get(r) ?? 0;
790
+ this.#o.set(r, n + 1);
800
791
  }
801
792
  }
802
793
  /**
@@ -804,41 +795,45 @@ class Oe {
804
795
  * @param {Effect} effect
805
796
  */
806
797
  decrement(t, r) {
807
- if (this.#a -= 1, t) {
808
- let n = this.#n.get(r) ?? 0;
809
- n === 1 ? this.#n.delete(r) : this.#n.set(r, n - 1);
798
+ if (this.#r -= 1, t) {
799
+ let n = this.#o.get(r) ?? 0;
800
+ n === 1 ? this.#o.delete(r) : this.#o.set(r, n - 1);
810
801
  }
811
- this.#h || (this.#h = !0, Ve(() => {
812
- this.#h = !1, this.linked && this.flush();
802
+ this.#l || (this.#l = !0, Ve(() => {
803
+ this.#l = !1, this.linked && this.flush();
813
804
  }));
814
805
  }
815
806
  /**
816
- * @param {Set<Effect>} dirty_effects
817
- * @param {Set<Effect>} maybe_dirty_effects
807
+ * @param {Map<Effect, number>} dirty_reactions
818
808
  */
819
- transfer_effects(t, r) {
820
- for (const n of t)
821
- this.#l.add(n);
822
- for (const n of r)
823
- this.#f.add(n);
824
- t.clear(), r.clear();
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 === N || this.#s.get(t) !== N) && this.#s.set(t, r);
825
820
  }
826
821
  /** @param {(batch: Batch) => void} fn */
827
822
  oncommit(t) {
828
- this.#u.add(t);
823
+ this.#e.add(t);
829
824
  }
830
825
  /** @param {(batch: Batch) => void} fn */
831
826
  ondiscard(t) {
832
- this.#i.add(t);
827
+ this.#t.add(t);
833
828
  }
834
829
  settled() {
835
- return (this.#o ??= In()).promise;
830
+ return (this.#n ??= In()).promise;
836
831
  }
837
832
  static ensure() {
838
833
  if ($ === null) {
839
834
  const t = $ = new Oe();
840
835
  !pr && !Tt && Ve(() => {
841
- t.#e || t.flush();
836
+ t.started || t.flush();
842
837
  });
843
838
  }
844
839
  return $;
@@ -858,12 +853,12 @@ class Oe {
858
853
  t.b.defer_effect(t);
859
854
  return;
860
855
  }
861
- this.#s.push(t);
856
+ this.#i.push(t);
862
857
  }
863
- #v() {
858
+ #c() {
864
859
  if (this.linked) {
865
- var t = this.#t, r = this.#r;
866
- t === null ? dr = r : t.#r = r, r === null ? Ke = t : r.#t = t, this.linked = !1;
860
+ var t = this.prev, r = this.next;
861
+ t === null ? dr = r : t.next = r, r === null ? Ke = t : r.prev = t, this.linked = !1;
867
862
  }
868
863
  }
869
864
  }
@@ -925,7 +920,7 @@ function Qn(e, t, r, n) {
925
920
  t,
926
921
  r,
927
922
  n
928
- ) : s & (nt | he) && !(s & L) && qr(i, t, n) && (C(i, L), Zr(
923
+ ) : s & (nt | he) && !(s & N) && qr(i, t, n) && (L(i, N), Zr(
929
924
  /** @type {Effect} */
930
925
  i
931
926
  ));
@@ -957,13 +952,13 @@ function Zr(e) {
957
952
  }
958
953
  function Kn(e, t) {
959
954
  if (!(e.f & Ee && e.f & V)) {
960
- e.f & L ? t.d.push(e) : e.f & ue && t.m.push(e), C(e, V);
955
+ e.f & N ? t.d.push(e) : e.f & se && t.m.push(e), L(e, V);
961
956
  for (var r = e.first; r !== null; )
962
957
  Kn(r, t), r = r.next;
963
958
  }
964
959
  }
965
960
  function ei(e) {
966
- C(e, V);
961
+ L(e, V);
967
962
  for (var t = e.first; t !== null; )
968
963
  ei(t), t = t.next;
969
964
  }
@@ -973,7 +968,6 @@ let ti = !1;
973
968
  function Rt(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: jn,
@@ -983,7 +977,7 @@ function Rt(e, t) {
983
977
  return r;
984
978
  }
985
979
  // @__NO_SIDE_EFFECTS__
986
- function oe(e, t) {
980
+ function ue(e, t) {
987
981
  const r = Rt(e);
988
982
  return mi(r), r;
989
983
  }
@@ -993,9 +987,9 @@ function ri(e, t = !1, r = !0) {
993
987
  return t || (n.equals = ys), n;
994
988
  }
995
989
  function Y(e, t, r = !1) {
996
- T !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
990
+ S !== 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
- (!de || T.f & qt) && Wn() && T.f & (Z | he | nt | qt) && (ye === null || !ye.has(e)) && Os();
992
+ (!de || S.f & qt) && Wn() && S.f & (Z | he | nt | qt) && (ye === null || !ye.has(e)) && Os();
999
993
  let n = r ? wt(t) : t;
1000
994
  return Kt(e, n, Gt);
1001
995
  }
@@ -1009,16 +1003,16 @@ function Kt(e, t, r = null) {
1009
1003
  /** @type {Derived} */
1010
1004
  e
1011
1005
  );
1012
- e.f & L && zr(i), ce === null && Wr(i);
1006
+ e.f & N && zr(i), ce === null && Wr(i);
1013
1007
  }
1014
- e.wv = gi(), Ge = null, Ar = 0, ni(e, L, r), Ge = null, H !== null && H.f & V && !(H.f & (Ee | $e)) && (ae === null ? ra([e]) : ae.push(e)), !n.is_fork && Qt.size > 0 && !ti && Fs();
1008
+ e.wv = gi(), Ge = null, Ar = 0, ni(e, N, r), Ge = null, H !== null && H.f & V && !(H.f & (Ee | $e)) && (oe === null ? ra([e]) : oe.push(e)), !n.is_fork && Qt.size > 0 && !ti && Fs();
1015
1009
  }
1016
1010
  return t;
1017
1011
  }
1018
1012
  function Fs() {
1019
1013
  ti = !1;
1020
1014
  for (const e of Qt) {
1021
- e.f & V && C(e, ue);
1015
+ e.f & V && L(e, se);
1022
1016
  let t;
1023
1017
  try {
1024
1018
  t = It(e);
@@ -1041,8 +1035,8 @@ function ni(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 & L) === 0;
1045
- if (u && C(o, t), a & qt)
1038
+ var o = n[s], a = o.f, u = (a & N) === 0;
1039
+ if (u && L(o, t), a & qt)
1046
1040
  Qt.add(
1047
1041
  /** @type {Effect} */
1048
1042
  o
@@ -1052,7 +1046,7 @@ function ni(e, t, r) {
1052
1046
  /** @type {Derived} */
1053
1047
  o
1054
1048
  );
1055
- ce?.delete(l), ni(l, ue, r);
1049
+ ce?.delete(l), ni(l, se, r);
1056
1050
  } else if (u) {
1057
1051
  var f = (
1058
1052
  /** @type {Effect} */
@@ -1069,15 +1063,15 @@ function wt(e) {
1069
1063
  const t = hs(e);
1070
1064
  if (t !== ls && t !== fs)
1071
1065
  return e;
1072
- var r = /* @__PURE__ */ new Map(), n = as(e), i = /* @__PURE__ */ oe(0), s = We, o = (a) => {
1066
+ var r = /* @__PURE__ */ new Map(), n = as(e), i = /* @__PURE__ */ ue(0), s = We, o = (a) => {
1073
1067
  if (We === s)
1074
1068
  return a();
1075
- var u = T, l = We;
1069
+ var u = S, l = We;
1076
1070
  fe(null), pn(s);
1077
1071
  var f = a();
1078
1072
  return fe(u), pn(l), f;
1079
1073
  };
1080
- return n && r.set("length", /* @__PURE__ */ oe(
1074
+ return n && r.set("length", /* @__PURE__ */ ue(
1081
1075
  /** @type {any[]} */
1082
1076
  e.length
1083
1077
  )), new Proxy(
@@ -1088,7 +1082,7 @@ function wt(e) {
1088
1082
  (!("value" in l) || l.configurable === !1 || l.enumerable === !1 || l.writable === !1) && As();
1089
1083
  var f = r.get(u);
1090
1084
  return f === void 0 ? o(() => {
1091
- var h = /* @__PURE__ */ oe(l.value);
1085
+ var h = /* @__PURE__ */ ue(l.value);
1092
1086
  return r.set(u, h), h;
1093
1087
  }) : Y(f, l.value, !0), !0;
1094
1088
  },
@@ -1096,7 +1090,7 @@ function wt(e) {
1096
1090
  var l = r.get(u);
1097
1091
  if (l === void 0) {
1098
1092
  if (u in a) {
1099
- const f = o(() => /* @__PURE__ */ oe(j));
1093
+ const f = o(() => /* @__PURE__ */ ue(j));
1100
1094
  r.set(u, f), At(i);
1101
1095
  }
1102
1096
  } else
@@ -1108,7 +1102,7 @@ function wt(e) {
1108
1102
  return e;
1109
1103
  var f = r.get(u), h = u in a;
1110
1104
  if (f === void 0 && (!h || rt(a, u)?.writable) && (f = o(() => {
1111
- var d = wt(h ? a[u] : j), p = /* @__PURE__ */ oe(d);
1105
+ var d = wt(h ? a[u] : j), p = /* @__PURE__ */ ue(d);
1112
1106
  return p;
1113
1107
  }), r.set(u, f)), f !== void 0) {
1114
1108
  var c = O(f);
@@ -1139,9 +1133,9 @@ function wt(e) {
1139
1133
  if (u === cr)
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 || H !== null && (!f || rt(a, u)?.writable)) {
1136
+ if (l !== void 0 || (H !== null || S !== null) && (!f || rt(a, u)?.writable)) {
1143
1137
  l === void 0 && (l = o(() => {
1144
- var c = f ? wt(a[u]) : j, d = /* @__PURE__ */ oe(c);
1138
+ var c = f ? wt(a[u]) : j, d = /* @__PURE__ */ ue(c);
1145
1139
  return d;
1146
1140
  }), r.set(u, l));
1147
1141
  var h = O(l);
@@ -1156,17 +1150,17 @@ function wt(e) {
1156
1150
  for (var d = l; d < /** @type {Source<number>} */
1157
1151
  h.v; d += 1) {
1158
1152
  var p = r.get(d + "");
1159
- p !== void 0 ? Y(p, j) : d in a && (p = o(() => /* @__PURE__ */ oe(j)), r.set(d + "", p));
1153
+ p !== void 0 ? Y(p, j) : d in a && (p = o(() => /* @__PURE__ */ ue(j)), r.set(d + "", p));
1160
1154
  }
1161
1155
  if (h === void 0)
1162
- (!c || rt(a, u)?.writable) && (h = o(() => /* @__PURE__ */ oe(void 0)), Y(h, wt(l)), r.set(u, h));
1156
+ (!c || rt(a, u)?.writable) && (h = o(() => /* @__PURE__ */ ue(void 0)), Y(h, wt(l)), r.set(u, h));
1163
1157
  else {
1164
1158
  c = h.v !== j;
1165
1159
  var w = o(() => wt(l));
1166
1160
  Y(h, w);
1167
1161
  }
1168
- var P = Reflect.getOwnPropertyDescriptor(a, u);
1169
- if (P?.set && P.set.call(f, l), !c) {
1162
+ var k = Reflect.getOwnPropertyDescriptor(a, u);
1163
+ if (k?.set && k.set.call(f, l), !c) {
1170
1164
  if (n && typeof u == "string") {
1171
1165
  var G = (
1172
1166
  /** @type {Source<number>} */
@@ -1302,7 +1296,7 @@ function Qr(e) {
1302
1296
  function Ws(e) {
1303
1297
  var t = H;
1304
1298
  if (t === null)
1305
- return T.f |= Ie, e;
1299
+ return S.f |= Ie, e;
1306
1300
  if (!(t.f & ze) && !(t.f & at))
1307
1301
  throw e;
1308
1302
  me(e, t);
@@ -1328,7 +1322,7 @@ function me(e, t) {
1328
1322
  }
1329
1323
  }
1330
1324
  function oi(e) {
1331
- H === null && (T === null && Ss(), ws()), Be && xs();
1325
+ H === null && (S === null && Ss(), ws()), Be && xs();
1332
1326
  }
1333
1327
  function Ys(e, t) {
1334
1328
  var r = t.last;
@@ -1341,7 +1335,7 @@ function _e(e, t) {
1341
1335
  ctx: re,
1342
1336
  deps: null,
1343
1337
  nodes: null,
1344
- f: e | L | pe,
1338
+ f: e | N | pe,
1345
1339
  first: null,
1346
1340
  fn: t,
1347
1341
  last: null,
@@ -1366,28 +1360,28 @@ function _e(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 & he && e & ot && i !== null && (i.f |= ot));
1368
1362
  }
1369
- if (i !== null && (i.parent = r, r !== null && Ys(i, r), T !== null && T.f & Z && !(e & $e))) {
1363
+ if (i !== null && (i.parent = r, r !== null && Ys(i, r), S !== null && S.f & Z && !(e & $e))) {
1370
1364
  var s = (
1371
1365
  /** @type {Derived} */
1372
- T
1366
+ S
1373
1367
  );
1374
1368
  (s.effects ??= []).push(i);
1375
1369
  }
1376
1370
  return n;
1377
1371
  }
1378
1372
  function Kr() {
1379
- return T !== null && !de;
1373
+ return S !== null && !de;
1380
1374
  }
1381
1375
  function ui(e) {
1382
1376
  const t = _e(kt, null);
1383
- return C(t, V), t.teardown = e, t;
1377
+ return L(t, V), t.teardown = e, t;
1384
1378
  }
1385
1379
  function hn(e) {
1386
1380
  oi();
1387
1381
  var t = (
1388
1382
  /** @type {Effect} */
1389
1383
  H.f
1390
- ), r = !T && (t & Ee) !== 0 && re !== null && !re.i;
1384
+ ), r = !S && (t & Ee) !== 0 && re !== null && !re.i;
1391
1385
  if (r) {
1392
1386
  var n = (
1393
1387
  /** @type {ComponentContext} */
@@ -1445,7 +1439,7 @@ function Te(e) {
1445
1439
  function ci(e) {
1446
1440
  var t = e.teardown;
1447
1441
  if (t !== null) {
1448
- const r = Be, n = T;
1442
+ const r = Be, n = S;
1449
1443
  dn(!0), fe(null);
1450
1444
  try {
1451
1445
  t.call(null);
@@ -1536,7 +1530,7 @@ function cn(e) {
1536
1530
  }
1537
1531
  function vi(e, t) {
1538
1532
  if (!(e.f & Gr) && e.f & le) {
1539
- e.f ^= le, e.f & V || (C(e, L), Oe.ensure().schedule(e));
1533
+ e.f ^= le, e.f & V || (L(e, N), Oe.ensure().schedule(e));
1540
1534
  for (var r = e.first; r !== null; ) {
1541
1535
  var n = r.next, i = (r.f & ot) !== 0 || (r.f & Ee) !== 0;
1542
1536
  vi(r, i ? t : !1), r = n;
@@ -1558,9 +1552,9 @@ let Be = !1;
1558
1552
  function dn(e) {
1559
1553
  Be = e;
1560
1554
  }
1561
- let T = null, de = !1;
1555
+ let S = null, de = !1;
1562
1556
  function fe(e) {
1563
- T = e;
1557
+ S = e;
1564
1558
  }
1565
1559
  let H = null;
1566
1560
  function xe(e) {
@@ -1568,11 +1562,11 @@ function xe(e) {
1568
1562
  }
1569
1563
  let ye = null;
1570
1564
  function mi(e) {
1571
- T !== null && (T.f & Zt || T.f & Z) && (ye ??= /* @__PURE__ */ new Set()).add(e);
1565
+ S !== null && (S.f & Zt || S.f & Z) && (ye ??= /* @__PURE__ */ new Set()).add(e);
1572
1566
  }
1573
- let te = null, ie = 0, ae = null;
1567
+ let te = null, ie = 0, oe = null;
1574
1568
  function ra(e) {
1575
- ae = e;
1569
+ oe = e;
1576
1570
  }
1577
1571
  let bi = 1, Xe = 0, We = Xe;
1578
1572
  function pn(e) {
@@ -1583,9 +1577,9 @@ function gi() {
1583
1577
  }
1584
1578
  function It(e) {
1585
1579
  var t = e.f;
1586
- if (t & L)
1580
+ if (t & N)
1587
1581
  return !0;
1588
- if (t & ue) {
1582
+ if (t & se) {
1589
1583
  for (var r = (
1590
1584
  /** @type {Value[]} */
1591
1585
  e.deps
@@ -1602,7 +1596,7 @@ function It(e) {
1602
1596
  }
1603
1597
  t & pe && // During time traveling we don't want to reset the status so that
1604
1598
  // traversal of the graph in the other batches still happens
1605
- ce === null && C(e, V);
1599
+ ce === null && L(e, V);
1606
1600
  }
1607
1601
  return !1;
1608
1602
  }
@@ -1616,16 +1610,16 @@ function yi(e, t, r = !0) {
1616
1610
  s,
1617
1611
  t,
1618
1612
  !1
1619
- ) : t === s && (r ? C(s, L) : s.f & V && C(s, ue), Zr(
1613
+ ) : t === s && (r ? L(s, N) : s.f & V && L(s, se), Zr(
1620
1614
  /** @type {Effect} */
1621
1615
  s
1622
1616
  ));
1623
1617
  }
1624
1618
  }
1625
1619
  function Ei(e) {
1626
- var t = te, r = ie, n = ae, i = T, s = ye, o = re, a = de, u = We, l = e.f;
1620
+ var t = te, r = ie, n = oe, i = S, s = ye, o = re, a = de, u = We, l = e.f;
1627
1621
  te = /** @type {null | Value[]} */
1628
- null, ie = 0, ae = null, T = l & (Ee | $e) ? null : e, ye = null, ut(e.ctx), de = !1, We = ++Xe, e.ac !== null && (ar(() => {
1622
+ null, ie = 0, oe = null, S = l & (Ee | $e) ? null : e, ye = null, ut(e.ctx), de = !1, We = ++Xe, e.ac !== null && (ar(() => {
1629
1623
  e.ac.abort(Ct);
1630
1624
  }), e.ac = null);
1631
1625
  try {
@@ -1636,11 +1630,11 @@ function Ei(e) {
1636
1630
  ), h = f();
1637
1631
  e.f |= ze;
1638
1632
  var c = vn(e);
1639
- if (Wn() && ae !== null && !de && c !== null && !(e.f & (Z | ue | L)))
1633
+ if (Wn() && oe !== null && !de && c !== null && !(e.f & (Z | se | N)))
1640
1634
  for (var d = 0; d < /** @type {Source[]} */
1641
- ae.length; d++)
1635
+ oe.length; d++)
1642
1636
  yi(
1643
- ae[d],
1637
+ oe[d],
1644
1638
  /** @type {Effect} */
1645
1639
  e
1646
1640
  );
@@ -1651,14 +1645,14 @@ function Ei(e) {
1651
1645
  if (t !== null)
1652
1646
  for (const p of t)
1653
1647
  p.rv = Xe;
1654
- ae !== null && (n === null ? n = ae : n.push(.../** @type {Source[]} */
1655
- ae));
1648
+ oe !== null && (n === null ? n = oe : n.push(.../** @type {Source[]} */
1649
+ oe));
1656
1650
  }
1657
1651
  return e.f & Ie && (e.f ^= Ie), h;
1658
1652
  } catch (p) {
1659
1653
  return vn(e), Ws(p);
1660
1654
  } finally {
1661
- e.f ^= Zt, te = t, ie = r, ae = n, T = i, ye = s, ut(o), de = a, We = u;
1655
+ e.f ^= Zt, te = t, ie = r, oe = n, S = i, ye = s, ut(o), de = a, We = u;
1662
1656
  }
1663
1657
  }
1664
1658
  function vn(e) {
@@ -1694,7 +1688,7 @@ function na(e, t) {
1694
1688
  t
1695
1689
  );
1696
1690
  s.f & pe && (s.f ^= pe), s.v !== j && Wr(s), s.ac !== null && ar(() => {
1697
- s.ac.abort(Ct), s.ac = null, C(s, L);
1691
+ s.ac.abort(Ct), s.ac = null, L(s, N);
1698
1692
  }), Ls(s), Mt(s, 0);
1699
1693
  }
1700
1694
  }
@@ -1707,7 +1701,7 @@ function Mt(e, t) {
1707
1701
  function ft(e) {
1708
1702
  var t = e.f;
1709
1703
  if (!(t & q)) {
1710
- C(e, V);
1704
+ L(e, V);
1711
1705
  var r = H;
1712
1706
  H = e;
1713
1707
  try {
@@ -1715,7 +1709,7 @@ function ft(e) {
1715
1709
  var n = Ei(e);
1716
1710
  e.teardown = typeof n == "function" ? n : null, e.wv = bi;
1717
1711
  var i;
1718
- Cn && Bs && e.f & L && e.deps;
1712
+ Cn && Bs && e.f & N && e.deps;
1719
1713
  } finally {
1720
1714
  H = r;
1721
1715
  }
@@ -1723,16 +1717,16 @@ function ft(e) {
1723
1717
  }
1724
1718
  function O(e) {
1725
1719
  var t = e.f, r = (t & Z) !== 0;
1726
- if (T !== null && !de) {
1720
+ if (S !== null && !de) {
1727
1721
  var n = H !== null && (H.f & q) !== 0;
1728
1722
  if (!n && (ye === null || !ye.has(e))) {
1729
- var i = T.deps;
1730
- if (T.f & Zt)
1723
+ var i = S.deps;
1724
+ if (S.f & Zt)
1731
1725
  e.rv < Xe && (e.rv = Xe, te === null && i !== null && i[ie] === e ? ie++ : te === null ? te = [e] : te.push(e));
1732
1726
  else {
1733
- T.deps ??= [], Ot.call(T.deps, e) || T.deps.push(e);
1727
+ S.deps ??= [], Ot.call(S.deps, e) || S.deps.push(e);
1734
1728
  var s = e.reactions;
1735
- s === null ? e.reactions = [T] : Ot.call(s, T) || s.push(T);
1729
+ s === null ? e.reactions = [S] : Ot.call(s, S) || s.push(S);
1736
1730
  }
1737
1731
  }
1738
1732
  }
@@ -1747,7 +1741,7 @@ function O(e) {
1747
1741
  var a = o.v;
1748
1742
  return (!(o.f & V) && o.reactions !== null || wi(o)) && (a = zr(o)), ge.set(o, a), a;
1749
1743
  }
1750
- var u = (o.f & pe) === 0 && !de && T !== null && (T.f & pe) !== 0, l = (o.f & ze) === 0;
1744
+ var u = (o.f & pe) === 0 && !de && S !== null && (S.f & pe) !== 0, l = (o.f & ze) === 0;
1751
1745
  It(o) && (u && (o.f |= pe), Zn(o)), u && !l && (Jn(o), xi(o));
1752
1746
  }
1753
1747
  if (ce?.has(e))
@@ -1831,7 +1825,7 @@ function _n(e) {
1831
1825
  return s || r;
1832
1826
  }
1833
1827
  });
1834
- var f = T, h = H;
1828
+ var f = S, h = H;
1835
1829
  fe(null), xe(null);
1836
1830
  try {
1837
1831
  for (var c, d = []; s !== null && s !== t; ) {
@@ -1956,24 +1950,22 @@ class va {
1956
1950
  /** @type {BoundaryProps} */
1957
1951
  #r;
1958
1952
  /** @type {((anchor: Node) => void)} */
1959
- #u;
1953
+ #o;
1960
1954
  /** @type {Effect} */
1961
- #i;
1955
+ #n;
1962
1956
  /** @type {Effect | null} */
1963
- #a = null;
1957
+ #i = null;
1964
1958
  /** @type {Effect | null} */
1965
- #n = null;
1959
+ #a = null;
1966
1960
  /** @type {Effect | null} */
1967
- #o = null;
1968
- /** @type {DocumentFragment | null} */
1969
1961
  #s = null;
1970
- #_ = 0;
1962
+ /** @type {DocumentFragment | null} */
1963
+ #u = null;
1964
+ #d = 0;
1971
1965
  #l = 0;
1972
- #f = !1;
1973
- /** @type {Set<Effect>} */
1974
- #c = /* @__PURE__ */ new Set();
1975
- /** @type {Set<Effect>} */
1976
- #m = /* @__PURE__ */ new Set();
1966
+ #v = !1;
1967
+ /** @type {Map<Effect, number>} */
1968
+ #m = /* @__PURE__ */ new Map();
1977
1969
  /**
1978
1970
  * A source containing the number of pending async deriveds/expressions.
1979
1971
  * Only created if `$effect.pending()` is used inside the boundary,
@@ -1981,9 +1973,9 @@ class va {
1981
1973
  * calls followed by no-op flushes
1982
1974
  * @type {Source<number> | null}
1983
1975
  */
1984
- #h = null;
1985
- #E = ca(() => (this.#h = Rt(this.#_), () => {
1986
- this.#h = null;
1976
+ #f = null;
1977
+ #_ = ca(() => (this.#f = Rt(this.#d), () => {
1978
+ this.#f = null;
1987
1979
  }));
1988
1980
  /**
1989
1981
  * @param {TemplateNode} node
@@ -1992,14 +1984,14 @@ class va {
1992
1984
  * @param {((error: unknown) => unknown) | undefined} [transform_error]
1993
1985
  */
1994
1986
  constructor(t, r, n, i) {
1995
- this.#e = t, this.#r = r, this.#u = (s) => {
1987
+ this.#e = t, this.#r = r, this.#o = (s) => {
1996
1988
  var o = (
1997
1989
  /** @type {Effect} */
1998
1990
  H
1999
1991
  );
2000
1992
  o.b = this, o.f |= wr, n(s);
2001
1993
  }, this.parent = /** @type {Effect} */
2002
- H.b, this.transform_error = i ?? this.parent?.transform_error ?? ((s) => s), this.#i = hi(() => {
1994
+ H.b, this.transform_error = i ?? this.parent?.transform_error ?? ((s) => s), this.#n = hi(() => {
2003
1995
  if (D) {
2004
1996
  const s = Gn(
2005
1997
  /** @type {TemplateNode} */
@@ -2009,15 +2001,15 @@ class va {
2009
2001
  const o = s === Pn;
2010
2002
  if (s.startsWith(sn)) {
2011
2003
  const u = JSON.parse(s.slice(sn.length));
2012
- this.#b(u);
2013
- } else o ? this.#w() : this.#x();
2004
+ this.#y(u);
2005
+ } else o ? this.#p() : this.#b();
2014
2006
  } else
2015
- this.#p();
2007
+ this.#E();
2016
2008
  }, da), D && (this.#e = M);
2017
2009
  }
2018
- #x() {
2010
+ #b() {
2019
2011
  try {
2020
- this.#a = Te(() => this.#u(this.#e));
2012
+ this.#i = Te(() => this.#o(this.#e));
2021
2013
  } catch (t) {
2022
2014
  this.error(t);
2023
2015
  }
@@ -2025,9 +2017,9 @@ class va {
2025
2017
  /**
2026
2018
  * @param {unknown} error The deserialized error from the server's hydration comment
2027
2019
  */
2028
- #b(t) {
2020
+ #y(t) {
2029
2021
  const r = this.#r.failed, { reset: n, invoke_onerror: i } = this.#g(t);
2030
- Ve(i), r && (this.#o = Te(() => {
2022
+ Ve(i), r && (this.#s = Te(() => {
2031
2023
  r(
2032
2024
  this.#e,
2033
2025
  () => t,
@@ -2044,80 +2036,80 @@ class va {
2044
2036
  #g(t) {
2045
2037
  var r = !1, n = !1;
2046
2038
  const i = () => {
2047
- if (!this.#d()) {
2039
+ if (!this.#h()) {
2048
2040
  if (r) {
2049
2041
  bs();
2050
2042
  return;
2051
2043
  }
2052
- r = !0, n && Ms(), this.#o !== null && $t(this.#o, () => {
2053
- this.#o = null;
2054
- }), this.#v(() => {
2055
- this.#p();
2044
+ r = !0, n && Ms(), this.#s !== null && $t(this.#s, () => {
2045
+ this.#s = null;
2046
+ }), this.#x(() => {
2047
+ this.#E();
2056
2048
  });
2057
2049
  }
2058
2050
  };
2059
2051
  return { reset: i, invoke_onerror: () => {
2060
- if (!this.#d())
2052
+ if (!this.#h())
2061
2053
  try {
2062
2054
  n = !0, this.#r.onerror?.(t, i), n = !1;
2063
2055
  } catch (o) {
2064
- me(o, this.#i && this.#i.parent);
2056
+ me(o, this.#n && this.#n.parent);
2065
2057
  }
2066
2058
  } };
2067
2059
  }
2068
- #d() {
2069
- return (this.#i.f & (q | zt)) !== 0;
2060
+ #h() {
2061
+ return (this.#n.f & (q | zt)) !== 0;
2070
2062
  }
2071
- #w() {
2063
+ #p() {
2072
2064
  const t = this.#r.pending;
2073
- t && (this.is_pending = !0, this.#n = Te(() => t(this.#e)), Ve(() => {
2074
- if (!this.#d()) {
2075
- var r = this.#s = document.createDocumentFragment(), n = Me(), i = !1;
2076
- if (r.append(n), this.#a = this.#v(() => {
2065
+ t && (this.is_pending = !0, this.#a = Te(() => t(this.#e)), Ve(() => {
2066
+ if (!this.#h()) {
2067
+ var r = this.#u = document.createDocumentFragment(), n = Me(), i = !1;
2068
+ if (r.append(n), this.#i = this.#x(() => {
2077
2069
  try {
2078
- return Te(() => this.#u(n));
2070
+ return Te(() => this.#o(n));
2079
2071
  } catch (s) {
2080
2072
  try {
2081
2073
  this.error(s), i = !0;
2082
2074
  } catch (o) {
2083
- me(o, this.#i.parent);
2075
+ me(o, this.#n.parent);
2084
2076
  }
2085
2077
  return null;
2086
2078
  }
2087
- }), this.#a === null) {
2088
- this.#s = null, i && this.#y(
2079
+ }), this.#i === null) {
2080
+ this.#u = null, i && this.#c(
2089
2081
  /** @type {Batch} */
2090
2082
  $
2091
2083
  );
2092
2084
  return;
2093
2085
  }
2094
- this.#l === 0 && (this.#e.before(r), this.#s = null, $t(
2086
+ this.#l === 0 && (this.#e.before(r), this.#u = null, $t(
2095
2087
  /** @type {Effect} */
2096
- this.#n,
2088
+ this.#a,
2097
2089
  () => {
2098
- this.#n = null;
2090
+ this.#a = null;
2099
2091
  }
2100
- ), this.#y(
2092
+ ), this.#c(
2101
2093
  /** @type {Batch} */
2102
2094
  $
2103
2095
  ));
2104
2096
  }
2105
2097
  }));
2106
2098
  }
2107
- #p() {
2099
+ #E() {
2108
2100
  try {
2109
- if (this.is_pending = this.has_pending_snippet(), this.#l = 0, this.#_ = 0, this.#a = Te(() => {
2110
- this.#u(this.#e);
2101
+ if (this.is_pending = this.has_pending_snippet(), this.#l = 0, this.#d = 0, this.#i = Te(() => {
2102
+ this.#o(this.#e);
2111
2103
  }), this.#l > 0) {
2112
- var t = this.#s = document.createDocumentFragment();
2113
- _i(this.#a, t);
2104
+ var t = this.#u = document.createDocumentFragment();
2105
+ _i(this.#i, t);
2114
2106
  const r = (
2115
2107
  /** @type {(anchor: Node) => void} */
2116
2108
  this.#r.pending
2117
2109
  );
2118
- this.#n = Te(() => r(this.#e));
2110
+ this.#a = Te(() => r(this.#e));
2119
2111
  } else
2120
- this.#y(
2112
+ this.#c(
2121
2113
  /** @type {Batch} */
2122
2114
  $
2123
2115
  );
@@ -2128,15 +2120,15 @@ class va {
2128
2120
  /**
2129
2121
  * @param {Batch} batch
2130
2122
  */
2131
- #y(t) {
2132
- this.is_pending = !1, t.transfer_effects(this.#c, this.#m);
2123
+ #c(t) {
2124
+ this.is_pending = !1, t.transfer_reactions(this.#m);
2133
2125
  }
2134
2126
  /**
2135
2127
  * Defer an effect inside a pending boundary until the boundary resolves
2136
2128
  * @param {Effect} effect
2137
2129
  */
2138
2130
  defer_effect(t) {
2139
- zn(t, this.#c, this.#m);
2131
+ zn(t, this.#m);
2140
2132
  }
2141
2133
  /**
2142
2134
  * Returns `false` if the effect exists inside a boundary whose pending snippet is shown
@@ -2152,9 +2144,9 @@ class va {
2152
2144
  * @template T
2153
2145
  * @param {() => T} fn
2154
2146
  */
2155
- #v(t) {
2156
- var r = H, n = T, i = re;
2157
- xe(this.#i), fe(this.#i), ut(this.#i.ctx);
2147
+ #x(t) {
2148
+ var r = H, n = S, i = re;
2149
+ xe(this.#n), fe(this.#n), ut(this.#n.ctx);
2158
2150
  try {
2159
2151
  return Oe.ensure(), t();
2160
2152
  } finally {
@@ -2167,14 +2159,14 @@ class va {
2167
2159
  * @param {1 | -1} d
2168
2160
  * @param {Batch} batch
2169
2161
  */
2170
- #S(t, r) {
2162
+ #w(t, r) {
2171
2163
  if (!this.has_pending_snippet()) {
2172
- this.parent && this.parent.#S(t, r);
2164
+ this.parent && this.parent.#w(t, r);
2173
2165
  return;
2174
2166
  }
2175
- this.#l += t, this.#l === 0 && (this.#y(r), this.#n && $t(this.#n, () => {
2176
- this.#n = null;
2177
- }), this.#s && (this.#e.before(this.#s), this.#s = null));
2167
+ this.#l += t, this.#l === 0 && (this.#c(r), this.#a && $t(this.#a, () => {
2168
+ this.#a = null;
2169
+ }), this.#u && (this.#e.before(this.#u), this.#u = null));
2178
2170
  }
2179
2171
  /**
2180
2172
  * Update the source that powers `$effect.pending()` inside this boundary,
@@ -2184,37 +2176,37 @@ class va {
2184
2176
  * @param {Batch} batch
2185
2177
  */
2186
2178
  update_pending_count(t, r) {
2187
- this.#S(t, r), this.#_ += t, !(!this.#h || this.#f) && (this.#f = !0, Ve(() => {
2188
- this.#f = !1, this.#h && Kt(this.#h, this.#_);
2179
+ this.#w(t, r), this.#d += t, !(!this.#f || this.#v) && (this.#v = !0, Ve(() => {
2180
+ this.#v = !1, this.#f && Kt(this.#f, this.#d);
2189
2181
  }));
2190
2182
  }
2191
2183
  get_effect_pending() {
2192
- return this.#E(), O(
2184
+ return this.#_(), O(
2193
2185
  /** @type {Source<number>} */
2194
- this.#h
2186
+ this.#f
2195
2187
  );
2196
2188
  }
2197
2189
  /** @param {unknown} error */
2198
2190
  error(t) {
2199
2191
  if (t === Le || !this.#r.onerror && !this.#r.failed)
2200
2192
  throw t;
2201
- $?.is_fork ? (this.#a && $.skip_effect(this.#a), this.#n && $.skip_effect(this.#n), this.#o && $.skip_effect(this.#o), $.oncommit(() => {
2202
- this.#d() || this.#T(t);
2203
- })) : this.#T(t);
2193
+ $?.is_fork ? (this.#i && $.skip_effect(this.#i), this.#a && $.skip_effect(this.#a), this.#s && $.skip_effect(this.#s), $.oncommit(() => {
2194
+ this.#h() || this.#S(t);
2195
+ })) : this.#S(t);
2204
2196
  }
2205
2197
  /**
2206
2198
  * @param {unknown} error
2207
2199
  */
2208
- #T(t) {
2209
- this.#a && (ne(this.#a), this.#a = null), this.#n && (ne(this.#n), this.#n = null), this.#o && (ne(this.#o), this.#o = null), D && (ve(
2200
+ #S(t) {
2201
+ this.#i && (ne(this.#i), this.#i = null), this.#a && (ne(this.#a), this.#a = null), this.#s && (ne(this.#s), this.#s = null), D && (ve(
2210
2202
  /** @type {TemplateNode} */
2211
2203
  this.#t
2212
2204
  ), gs(), ve(Fn()));
2213
2205
  let r = this.#r.failed;
2214
2206
  const n = (i) => {
2215
- if (this.#d()) return;
2207
+ if (this.#h()) return;
2216
2208
  const { reset: s, invoke_onerror: o } = this.#g(i);
2217
- o(), r && !this.#d() && (this.#o = this.#v(() => {
2209
+ o(), r && !this.#h() && (this.#s = this.#x(() => {
2218
2210
  try {
2219
2211
  return Te(() => {
2220
2212
  var a = (
@@ -2231,25 +2223,25 @@ class va {
2231
2223
  return me(
2232
2224
  a,
2233
2225
  /** @type {Effect} */
2234
- this.#i.parent
2226
+ this.#n.parent
2235
2227
  ), null;
2236
2228
  }
2237
2229
  }));
2238
2230
  };
2239
2231
  Ve(() => {
2240
- if (!this.#d()) {
2232
+ if (!this.#h()) {
2241
2233
  var i;
2242
2234
  try {
2243
2235
  i = this.transform_error(t);
2244
2236
  } catch (s) {
2245
- me(s, this.#i && this.#i.parent);
2237
+ me(s, this.#n && this.#n.parent);
2246
2238
  return;
2247
2239
  }
2248
2240
  i !== null && typeof i == "object" && typeof /** @type {any} */
2249
2241
  i.then == "function" ? i.then(
2250
2242
  n,
2251
2243
  /** @param {unknown} e */
2252
- (s) => me(s, this.#i && this.#i.parent)
2244
+ (s) => me(s, this.#n && this.#n.parent)
2253
2245
  ) : n(i);
2254
2246
  }
2255
2247
  });
@@ -2322,27 +2314,27 @@ function $i(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
2322
2314
  var w = d[p];
2323
2315
  if (!h.has(w)) {
2324
2316
  h.add(w);
2325
- var P = ha(w);
2317
+ var k = ha(w);
2326
2318
  for (const U of [t, document]) {
2327
2319
  var G = Ut.get(U);
2328
2320
  G === void 0 && (G = /* @__PURE__ */ new Map(), Ut.set(U, G));
2329
2321
  var X = G.get(w);
2330
- X === void 0 ? (U.addEventListener(w, _n, { passive: P }), G.set(w, 1)) : G.set(w, X + 1);
2322
+ X === void 0 ? (U.addEventListener(w, _n, { passive: k }), G.set(w, 1)) : G.set(w, X + 1);
2331
2323
  }
2332
2324
  }
2333
2325
  }
2334
2326
  };
2335
2327
  return c(us(Ti)), Mr.add(c), () => {
2336
2328
  for (var d of h)
2337
- for (const P of [t, document]) {
2329
+ for (const k of [t, document]) {
2338
2330
  var p = (
2339
2331
  /** @type {Map<string, number>} */
2340
- Ut.get(P)
2332
+ Ut.get(k)
2341
2333
  ), w = (
2342
2334
  /** @type {number} */
2343
2335
  p.get(d)
2344
2336
  );
2345
- --w == 0 ? (P.removeEventListener(d, _n), p.delete(d), p.size === 0 && Ut.delete(P)) : p.set(d, w);
2337
+ --w == 0 ? (k.removeEventListener(d, _n), p.delete(d), p.size === 0 && Ut.delete(k)) : p.set(d, w);
2346
2338
  }
2347
2339
  Mr.delete(c), f !== r && f.parentNode?.removeChild(f);
2348
2340
  };
@@ -2384,30 +2376,30 @@ class ba {
2384
2376
  * Keys of effects that are currently outroing
2385
2377
  * @type {Set<Key>}
2386
2378
  */
2387
- #u = /* @__PURE__ */ new Set();
2379
+ #o = /* @__PURE__ */ new Set();
2388
2380
  /**
2389
2381
  * Whether to pause (i.e. outro) on change, or destroy immediately.
2390
2382
  * This is necessary for `<svelte:element>`
2391
2383
  */
2392
- #i = !0;
2384
+ #n = !0;
2393
2385
  /**
2394
2386
  * @param {TemplateNode} anchor
2395
2387
  * @param {boolean} transition
2396
2388
  */
2397
2389
  constructor(t, r = !0) {
2398
- this.anchor = t, this.#i = r;
2390
+ this.anchor = t, this.#n = r;
2399
2391
  }
2400
2392
  /**
2401
2393
  * @param {Batch} batch
2402
2394
  */
2403
- #a = (t) => {
2395
+ #i = (t) => {
2404
2396
  if (this.#e.has(t)) {
2405
2397
  var r = (
2406
2398
  /** @type {Key} */
2407
2399
  this.#e.get(t)
2408
2400
  ), n = this.#t.get(r);
2409
2401
  if (n)
2410
- cn(n), this.#u.delete(r);
2402
+ cn(n), this.#o.delete(r);
2411
2403
  else {
2412
2404
  var i = this.#r.get(r);
2413
2405
  i && (cn(i.effect), this.#t.set(r, i.effect), this.#r.delete(r), i.fragment.lastChild.remove(), this.anchor.before(i.fragment), n = i.effect);
@@ -2419,23 +2411,23 @@ class ba {
2419
2411
  a && (ne(a.effect), this.#r.delete(o));
2420
2412
  }
2421
2413
  for (const [s, o] of this.#t) {
2422
- if (s === r || this.#u.has(s)) continue;
2414
+ if (s === r || this.#o.has(s)) continue;
2423
2415
  const a = () => {
2424
2416
  if (Array.from(this.#e.values()).includes(s)) {
2425
2417
  var l = document.createDocumentFragment();
2426
2418
  _i(o, l), l.append(Me()), this.#r.set(s, { effect: o, fragment: l });
2427
2419
  } else
2428
2420
  ne(o);
2429
- this.#u.delete(s), this.#t.delete(s);
2421
+ this.#o.delete(s), this.#t.delete(s);
2430
2422
  };
2431
- this.#i || !n ? (this.#u.add(s), $t(o, a, !1)) : a();
2423
+ this.#n || !n ? (this.#o.add(s), $t(o, a, !1)) : a();
2432
2424
  }
2433
2425
  }
2434
2426
  };
2435
2427
  /**
2436
2428
  * @param {Batch} batch
2437
2429
  */
2438
- #n = (t) => {
2430
+ #a = (t) => {
2439
2431
  this.#e.delete(t);
2440
2432
  const r = Array.from(this.#e.values());
2441
2433
  for (const [n, i] of this.#r)
@@ -2468,9 +2460,9 @@ class ba {
2468
2460
  a === t ? n.unskip_effect(u) : n.skip_effect(u);
2469
2461
  for (const [a, u] of this.#r)
2470
2462
  a === t ? n.unskip_effect(u.effect) : n.skip_effect(u.effect);
2471
- n.oncommit(this.#a), n.ondiscard(this.#n);
2463
+ n.oncommit(this.#i), n.ondiscard(this.#a);
2472
2464
  } else
2473
- D && (this.anchor = M), this.#a(n);
2465
+ D && (this.anchor = M), this.#i(n);
2474
2466
  }
2475
2467
  }
2476
2468
  function ga(e, t, r = !1) {
@@ -2586,8 +2578,8 @@ function vt(e, t, r) {
2586
2578
  }, d = i.map(
2587
2579
  (p, w) => tn(
2588
2580
  p,
2589
- (P) => {
2590
- l[w] = P, f &= ~(1 << w), u && c();
2581
+ (k) => {
2582
+ l[w] = k, f &= ~(1 << w), u && c();
2591
2583
  },
2592
2584
  () => {
2593
2585
  f |= 1 << w;
@@ -2979,7 +2971,7 @@ var Na = { exports: {} };
2979
2971
  (function(r, n) {
2980
2972
  e.exports = n();
2981
2973
  })(Ma, function() {
2982
- var r = 1e3, n = 6e4, i = 36e5, s = "millisecond", o = "second", a = "minute", u = "hour", l = "day", f = "week", h = "month", c = "quarter", d = "year", p = "date", w = "Invalid Date", P = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, G = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, X = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(y) {
2974
+ var r = 1e3, n = 6e4, i = 36e5, s = "millisecond", o = "second", a = "minute", u = "hour", l = "day", f = "week", h = "month", c = "quarter", d = "year", p = "date", w = "Invalid Date", k = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, G = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, X = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(y) {
2983
2975
  var m = ["th", "st", "nd", "rd"], v = y % 100;
2984
2976
  return "[" + y + (m[(v - 20) % 10] || m[v] || m[0]) + "]";
2985
2977
  } }, U = function(y, m, v) {
@@ -3035,7 +3027,7 @@ var Na = { exports: {} };
3035
3027
  if (b.u(_)) return /* @__PURE__ */ new Date();
3036
3028
  if (_ instanceof Date) return new Date(_);
3037
3029
  if (typeof _ == "string" && !/Z$/i.test(_)) {
3038
- var x = _.match(P);
3030
+ var x = _.match(k);
3039
3031
  if (x) {
3040
3032
  var B = x[2] - 1 || 0, I = (x[7] || "0").substring(0, 3);
3041
3033
  return E ? new Date(Date.UTC(x[1], B, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, I)) : new Date(x[1], B, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, I);
@@ -3069,7 +3061,7 @@ var Na = { exports: {} };
3069
3061
  return E ? ke : ke.endOf(l);
3070
3062
  }, I = function(Fe, ee) {
3071
3063
  return b.w(_.toDate()[Fe].apply(_.toDate("s"), (E ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ee)), _);
3072
- }, W = this.$W, z = this.$M, se = this.$D, Qe = "set" + (this.$u ? "UTC" : "");
3064
+ }, W = this.$W, z = this.$M, ae = this.$D, Qe = "set" + (this.$u ? "UTC" : "");
3073
3065
  switch (x) {
3074
3066
  case d:
3075
3067
  return E ? B(1, 0) : B(31, 11);
@@ -3077,7 +3069,7 @@ var Na = { exports: {} };
3077
3069
  return E ? B(1, z) : B(0, z + 1);
3078
3070
  case f:
3079
3071
  var Ue = this.$locale().weekStart || 0, gt = (W < Ue ? W + 7 : W) - Ue;
3080
- return B(E ? se - gt : se + (6 - gt), z);
3072
+ return B(E ? ae - gt : ae + (6 - gt), z);
3081
3073
  case l:
3082
3074
  case p:
3083
3075
  return I(Qe + "Hours", 0);
@@ -3107,8 +3099,8 @@ var Na = { exports: {} };
3107
3099
  var _, E = this;
3108
3100
  v = Number(v);
3109
3101
  var x = b.p(g), B = function(z) {
3110
- var se = F(E);
3111
- return b.w(se.date(se.date() + Math.round(z * v)), E);
3102
+ var ae = F(E);
3103
+ return b.w(ae.date(ae.date() + Math.round(z * v)), E);
3112
3104
  };
3113
3105
  if (x === h) return this.set(h, this.$M + v);
3114
3106
  if (x === d) return this.set(d, this.$y + v);
@@ -3121,7 +3113,7 @@ var Na = { exports: {} };
3121
3113
  }, m.format = function(v) {
3122
3114
  var g = this, _ = this.$locale();
3123
3115
  if (!this.isValid()) return _.invalidDate || w;
3124
- var E = v || "YYYY-MM-DDTHH:mm:ssZ", x = b.z(this), B = this.$H, I = this.$m, W = this.$M, z = _.weekdays, se = _.months, Qe = _.meridiem, Ue = function(ee, ke, yt, Lt) {
3116
+ var E = v || "YYYY-MM-DDTHH:mm:ssZ", x = b.z(this), B = this.$H, I = this.$m, W = this.$M, z = _.weekdays, ae = _.months, Qe = _.meridiem, Ue = function(ee, ke, yt, Lt) {
3125
3117
  return ee && (ee[ke] || ee(g, E)) || yt[ke].slice(0, Lt);
3126
3118
  }, gt = function(ee) {
3127
3119
  return b.s(B % 12 || 12, ee, "0");
@@ -3141,9 +3133,9 @@ var Na = { exports: {} };
3141
3133
  case "MM":
3142
3134
  return b.s(W + 1, 2, "0");
3143
3135
  case "MMM":
3144
- return Ue(_.monthsShort, W, se, 3);
3136
+ return Ue(_.monthsShort, W, ae, 3);
3145
3137
  case "MMMM":
3146
- return Ue(se, W);
3138
+ return Ue(ae, W);
3147
3139
  case "D":
3148
3140
  return g.$D;
3149
3141
  case "DD":
@@ -3187,18 +3179,18 @@ var Na = { exports: {} };
3187
3179
  }, m.utcOffset = function() {
3188
3180
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
3189
3181
  }, m.diff = function(v, g, _) {
3190
- var E, x = this, B = b.p(g), I = F(v), W = (I.utcOffset() - this.utcOffset()) * n, z = this - I, se = function() {
3182
+ var E, x = this, B = b.p(g), I = F(v), W = (I.utcOffset() - this.utcOffset()) * n, z = this - I, ae = function() {
3191
3183
  return b.m(x, I);
3192
3184
  };
3193
3185
  switch (B) {
3194
3186
  case d:
3195
- E = se() / 12;
3187
+ E = ae() / 12;
3196
3188
  break;
3197
3189
  case h:
3198
- E = se();
3190
+ E = ae();
3199
3191
  break;
3200
3192
  case c:
3201
- E = se() / 3;
3193
+ E = ae() / 3;
3202
3194
  break;
3203
3195
  case f:
3204
3196
  E = (z - W) / 6048e5;
@@ -3440,44 +3432,44 @@ var so = function() {
3440
3432
  return t;
3441
3433
  }, er.apply(this, arguments);
3442
3434
  };
3443
- var S;
3435
+ var T;
3444
3436
  (function(e) {
3445
3437
  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";
3446
- })(S || (S = {}));
3447
- var N;
3438
+ })(T || (T = {}));
3439
+ var P;
3448
3440
  (function(e) {
3449
3441
  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";
3450
- })(N || (N = {}));
3442
+ })(P || (P = {}));
3451
3443
  var ct;
3452
3444
  (function(e) {
3453
3445
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
3454
3446
  })(ct || (ct = {}));
3455
3447
  function gn(e) {
3456
- return e.type === N.literal;
3448
+ return e.type === P.literal;
3457
3449
  }
3458
3450
  function uo(e) {
3459
- return e.type === N.argument;
3451
+ return e.type === P.argument;
3460
3452
  }
3461
3453
  function Ci(e) {
3462
- return e.type === N.number;
3454
+ return e.type === P.number;
3463
3455
  }
3464
3456
  function Ri(e) {
3465
- return e.type === N.date;
3457
+ return e.type === P.date;
3466
3458
  }
3467
3459
  function Ii(e) {
3468
- return e.type === N.time;
3460
+ return e.type === P.time;
3469
3461
  }
3470
3462
  function Li(e) {
3471
- return e.type === N.select;
3463
+ return e.type === P.select;
3472
3464
  }
3473
3465
  function Di(e) {
3474
- return e.type === N.plural;
3466
+ return e.type === P.plural;
3475
3467
  }
3476
3468
  function lo(e) {
3477
- return e.type === N.pound;
3469
+ return e.type === P.pound;
3478
3470
  }
3479
3471
  function Ui(e) {
3480
- return e.type === N.tag;
3472
+ return e.type === P.tag;
3481
3473
  }
3482
3474
  function Fi(e) {
3483
3475
  return !!(e && typeof e == "object" && e.type === ct.number);
@@ -3577,14 +3569,14 @@ function ho(e) {
3577
3569
  return "";
3578
3570
  }), t;
3579
3571
  }
3580
- var k = function() {
3581
- return k = Object.assign || function(t) {
3572
+ var C = function() {
3573
+ return C = Object.assign || function(t) {
3582
3574
  for (var r, n = 1, i = arguments.length; n < i; n++) {
3583
3575
  r = arguments[n];
3584
3576
  for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
3585
3577
  }
3586
3578
  return t;
3587
- }, k.apply(this, arguments);
3579
+ }, C.apply(this, arguments);
3588
3580
  };
3589
3581
  var co = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
3590
3582
  function po(e) {
@@ -3708,13 +3700,13 @@ function bo(e) {
3708
3700
  t.notation = "compact", t.compactDisplay = "long";
3709
3701
  continue;
3710
3702
  case "scientific":
3711
- t = k(k(k({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
3712
- return k(k({}, u), xn(l));
3703
+ t = C(C(C({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
3704
+ return C(C({}, u), xn(l));
3713
3705
  }, {}));
3714
3706
  continue;
3715
3707
  case "engineering":
3716
- t = k(k(k({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
3717
- return k(k({}, u), xn(l));
3708
+ t = C(C(C({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
3709
+ return C(C({}, u), xn(l));
3718
3710
  }, {}));
3719
3711
  continue;
3720
3712
  case "notation-simple":
@@ -3783,17 +3775,17 @@ function bo(e) {
3783
3775
  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), "";
3784
3776
  });
3785
3777
  var s = i.options[0];
3786
- s === "w" ? t = k(k({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = k(k({}, t), En(s)));
3778
+ s === "w" ? t = C(C({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = C(C({}, t), En(s)));
3787
3779
  continue;
3788
3780
  }
3789
3781
  if (ji.test(i.stem)) {
3790
- t = k(k({}, t), En(i.stem));
3782
+ t = C(C({}, t), En(i.stem));
3791
3783
  continue;
3792
3784
  }
3793
3785
  var o = Xi(i.stem);
3794
- o && (t = k(k({}, t), o));
3786
+ o && (t = C(C({}, t), o));
3795
3787
  var a = mo(i.stem);
3796
- a && (t = k(k({}, t), a));
3788
+ a && (t = C(C({}, t), a));
3797
3789
  }
3798
3790
  return t;
3799
3791
  }
@@ -5377,13 +5369,13 @@ var ko = (
5377
5369
  if (s === 35 && (r === "plural" || r === "selectordinal")) {
5378
5370
  var a = this.clonePosition();
5379
5371
  this.bump(), i.push({
5380
- type: N.pound,
5372
+ type: P.pound,
5381
5373
  location: A(a, this.clonePosition())
5382
5374
  });
5383
5375
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
5384
5376
  if (n)
5385
5377
  break;
5386
- return this.error(S.UNMATCHED_CLOSING_TAG, A(this.clonePosition(), this.clonePosition()));
5378
+ return this.error(T.UNMATCHED_CLOSING_TAG, A(this.clonePosition(), this.clonePosition()));
5387
5379
  } else if (s === 60 && !this.ignoreTag && Lr(this.peek() || 0)) {
5388
5380
  var o = this.parseTag(t, r);
5389
5381
  if (o.err)
@@ -5405,7 +5397,7 @@ var ko = (
5405
5397
  if (this.bumpSpace(), this.bumpIf("/>"))
5406
5398
  return {
5407
5399
  val: {
5408
- type: N.literal,
5400
+ type: P.literal,
5409
5401
  value: "<".concat(i, "/>"),
5410
5402
  location: A(n, this.clonePosition())
5411
5403
  },
@@ -5418,21 +5410,21 @@ var ko = (
5418
5410
  var o = s.val, a = this.clonePosition();
5419
5411
  if (this.bumpIf("</")) {
5420
5412
  if (this.isEOF() || !Lr(this.char()))
5421
- return this.error(S.INVALID_TAG, A(a, this.clonePosition()));
5413
+ return this.error(T.INVALID_TAG, A(a, this.clonePosition()));
5422
5414
  var u = this.clonePosition(), l = this.parseTagName();
5423
- return i !== l ? this.error(S.UNMATCHED_CLOSING_TAG, A(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
5415
+ return i !== l ? this.error(T.UNMATCHED_CLOSING_TAG, A(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
5424
5416
  val: {
5425
- type: N.tag,
5417
+ type: P.tag,
5426
5418
  value: i,
5427
5419
  children: o,
5428
5420
  location: A(n, this.clonePosition())
5429
5421
  },
5430
5422
  err: null
5431
- } : this.error(S.INVALID_TAG, A(a, this.clonePosition())));
5423
+ } : this.error(T.INVALID_TAG, A(a, this.clonePosition())));
5432
5424
  } else
5433
- return this.error(S.UNCLOSED_TAG, A(n, this.clonePosition()));
5425
+ return this.error(T.UNCLOSED_TAG, A(n, this.clonePosition()));
5434
5426
  } else
5435
- return this.error(S.INVALID_TAG, A(n, this.clonePosition()));
5427
+ return this.error(T.INVALID_TAG, A(n, this.clonePosition()));
5436
5428
  }, e.prototype.parseTagName = function() {
5437
5429
  var t = this.offset();
5438
5430
  for (this.bump(); !this.isEOF() && Ro(this.char()); )
@@ -5459,7 +5451,7 @@ var ko = (
5459
5451
  }
5460
5452
  var u = A(n, this.clonePosition());
5461
5453
  return {
5462
- val: { type: N.literal, value: i, location: u },
5454
+ val: { type: P.literal, value: i, location: u },
5463
5455
  err: null
5464
5456
  };
5465
5457
  }, e.prototype.tryParseLeftAngleBracket = function() {
@@ -5507,19 +5499,19 @@ var ko = (
5507
5499
  }, e.prototype.parseArgument = function(t, r) {
5508
5500
  var n = this.clonePosition();
5509
5501
  if (this.bump(), this.bumpSpace(), this.isEOF())
5510
- return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE, A(n, this.clonePosition()));
5502
+ return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, A(n, this.clonePosition()));
5511
5503
  if (this.char() === 125)
5512
- return this.bump(), this.error(S.EMPTY_ARGUMENT, A(n, this.clonePosition()));
5504
+ return this.bump(), this.error(T.EMPTY_ARGUMENT, A(n, this.clonePosition()));
5513
5505
  var i = this.parseIdentifierIfPossible().value;
5514
5506
  if (!i)
5515
- return this.error(S.MALFORMED_ARGUMENT, A(n, this.clonePosition()));
5507
+ return this.error(T.MALFORMED_ARGUMENT, A(n, this.clonePosition()));
5516
5508
  if (this.bumpSpace(), this.isEOF())
5517
- return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE, A(n, this.clonePosition()));
5509
+ return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, A(n, this.clonePosition()));
5518
5510
  switch (this.char()) {
5519
5511
  case 125:
5520
5512
  return this.bump(), {
5521
5513
  val: {
5522
- type: N.argument,
5514
+ type: P.argument,
5523
5515
  // value does not include the opening and closing braces.
5524
5516
  value: i,
5525
5517
  location: A(n, this.clonePosition())
@@ -5527,9 +5519,9 @@ var ko = (
5527
5519
  err: null
5528
5520
  };
5529
5521
  case 44:
5530
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE, A(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
5522
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, A(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
5531
5523
  default:
5532
- return this.error(S.MALFORMED_ARGUMENT, A(n, this.clonePosition()));
5524
+ return this.error(T.MALFORMED_ARGUMENT, A(n, this.clonePosition()));
5533
5525
  }
5534
5526
  }, e.prototype.parseIdentifierIfPossible = function() {
5535
5527
  var t = this.clonePosition(), r = this.offset(), n = Ir(this.message, r), i = r + n.length;
@@ -5540,7 +5532,7 @@ var ko = (
5540
5532
  var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
5541
5533
  switch (a) {
5542
5534
  case "":
5543
- return this.error(S.EXPECT_ARGUMENT_TYPE, A(o, u));
5535
+ return this.error(T.EXPECT_ARGUMENT_TYPE, A(o, u));
5544
5536
  case "number":
5545
5537
  case "date":
5546
5538
  case "time": {
@@ -5553,7 +5545,7 @@ var ko = (
5553
5545
  return h;
5554
5546
  var c = Po(h.val);
5555
5547
  if (c.length === 0)
5556
- return this.error(S.EXPECT_ARGUMENT_STYLE, A(this.clonePosition(), this.clonePosition()));
5548
+ return this.error(T.EXPECT_ARGUMENT_STYLE, A(this.clonePosition(), this.clonePosition()));
5557
5549
  var d = A(f, this.clonePosition());
5558
5550
  l = { style: c, styleLocation: d };
5559
5551
  }
@@ -5562,24 +5554,24 @@ var ko = (
5562
5554
  return p;
5563
5555
  var w = A(i, this.clonePosition());
5564
5556
  if (l && wn(l?.style, "::", 0)) {
5565
- var P = No(l.style.slice(2));
5557
+ var k = No(l.style.slice(2));
5566
5558
  if (a === "number") {
5567
- var h = this.parseNumberSkeletonFromString(P, l.styleLocation);
5559
+ var h = this.parseNumberSkeletonFromString(k, l.styleLocation);
5568
5560
  return h.err ? h : {
5569
- val: { type: N.number, value: n, location: w, style: h.val },
5561
+ val: { type: P.number, value: n, location: w, style: h.val },
5570
5562
  err: null
5571
5563
  };
5572
5564
  } else {
5573
- if (P.length === 0)
5574
- return this.error(S.EXPECT_DATE_TIME_SKELETON, w);
5575
- var G = P;
5576
- this.locale && (G = go(P, this.locale));
5565
+ if (k.length === 0)
5566
+ return this.error(T.EXPECT_DATE_TIME_SKELETON, w);
5567
+ var G = k;
5568
+ this.locale && (G = go(k, this.locale));
5577
5569
  var c = {
5578
5570
  type: ct.dateTime,
5579
5571
  pattern: G,
5580
5572
  location: l.styleLocation,
5581
5573
  parsedOptions: this.shouldParseSkeletons ? ho(G) : {}
5582
- }, X = a === "date" ? N.date : N.time;
5574
+ }, X = a === "date" ? P.date : P.time;
5583
5575
  return {
5584
5576
  val: { type: X, value: n, location: w, style: c },
5585
5577
  err: null
@@ -5588,7 +5580,7 @@ var ko = (
5588
5580
  }
5589
5581
  return {
5590
5582
  val: {
5591
- type: a === "number" ? N.number : a === "date" ? N.date : N.time,
5583
+ type: a === "number" ? P.number : a === "date" ? P.date : P.time,
5592
5584
  value: n,
5593
5585
  location: w,
5594
5586
  style: (s = l?.style) !== null && s !== void 0 ? s : null
@@ -5601,14 +5593,14 @@ var ko = (
5601
5593
  case "select": {
5602
5594
  var U = this.clonePosition();
5603
5595
  if (this.bumpSpace(), !this.bumpIf(","))
5604
- return this.error(S.EXPECT_SELECT_ARGUMENT_OPTIONS, A(U, er({}, U)));
5596
+ return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS, A(U, er({}, U)));
5605
5597
  this.bumpSpace();
5606
5598
  var we = this.parseIdentifierIfPossible(), J = 0;
5607
5599
  if (a !== "select" && we.value === "offset") {
5608
5600
  if (!this.bumpIf(":"))
5609
- return this.error(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, A(this.clonePosition(), this.clonePosition()));
5601
+ return this.error(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, A(this.clonePosition(), this.clonePosition()));
5610
5602
  this.bumpSpace();
5611
- var h = this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, S.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
5603
+ var h = this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
5612
5604
  if (h.err)
5613
5605
  return h;
5614
5606
  this.bumpSpace(), we = this.parseIdentifierIfPossible(), J = h.val;
@@ -5622,7 +5614,7 @@ var ko = (
5622
5614
  var De = A(i, this.clonePosition());
5623
5615
  return a === "select" ? {
5624
5616
  val: {
5625
- type: N.select,
5617
+ type: P.select,
5626
5618
  value: n,
5627
5619
  options: Sn(Q.val),
5628
5620
  location: De
@@ -5630,7 +5622,7 @@ var ko = (
5630
5622
  err: null
5631
5623
  } : {
5632
5624
  val: {
5633
- type: N.plural,
5625
+ type: P.plural,
5634
5626
  value: n,
5635
5627
  options: Sn(Q.val),
5636
5628
  offset: J,
@@ -5641,10 +5633,10 @@ var ko = (
5641
5633
  };
5642
5634
  }
5643
5635
  default:
5644
- return this.error(S.INVALID_ARGUMENT_TYPE, A(o, u));
5636
+ return this.error(T.INVALID_ARGUMENT_TYPE, A(o, u));
5645
5637
  }
5646
5638
  }, e.prototype.tryParseArgumentClose = function(t) {
5647
- return this.isEOF() || this.char() !== 125 ? this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE, A(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
5639
+ return this.isEOF() || this.char() !== 125 ? this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, A(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
5648
5640
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
5649
5641
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
5650
5642
  var n = this.char();
@@ -5653,7 +5645,7 @@ var ko = (
5653
5645
  this.bump();
5654
5646
  var i = this.clonePosition();
5655
5647
  if (!this.bumpUntil("'"))
5656
- return this.error(S.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, A(i, this.clonePosition()));
5648
+ return this.error(T.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, A(i, this.clonePosition()));
5657
5649
  this.bump();
5658
5650
  break;
5659
5651
  }
@@ -5685,7 +5677,7 @@ var ko = (
5685
5677
  try {
5686
5678
  n = po(t);
5687
5679
  } catch {
5688
- return this.error(S.INVALID_NUMBER_SKELETON, r);
5680
+ return this.error(T.INVALID_NUMBER_SKELETON, r);
5689
5681
  }
5690
5682
  return {
5691
5683
  val: {
@@ -5701,7 +5693,7 @@ var ko = (
5701
5693
  if (l.length === 0) {
5702
5694
  var h = this.clonePosition();
5703
5695
  if (r !== "select" && this.bumpIf("=")) {
5704
- var c = this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_SELECTOR, S.INVALID_PLURAL_ARGUMENT_SELECTOR);
5696
+ var c = this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_SELECTOR, T.INVALID_PLURAL_ARGUMENT_SELECTOR);
5705
5697
  if (c.err)
5706
5698
  return c;
5707
5699
  f = A(h, this.clonePosition()), l = this.message.slice(h.offset, this.offset());
@@ -5709,11 +5701,11 @@ var ko = (
5709
5701
  break;
5710
5702
  }
5711
5703
  if (u.has(l))
5712
- return this.error(r === "select" ? S.DUPLICATE_SELECT_ARGUMENT_SELECTOR : S.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
5704
+ return this.error(r === "select" ? T.DUPLICATE_SELECT_ARGUMENT_SELECTOR : T.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
5713
5705
  l === "other" && (o = !0), this.bumpSpace();
5714
5706
  var d = this.clonePosition();
5715
5707
  if (!this.bumpIf("{"))
5716
- return this.error(r === "select" ? S.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : S.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, A(this.clonePosition(), this.clonePosition()));
5708
+ return this.error(r === "select" ? T.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : T.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, A(this.clonePosition(), this.clonePosition()));
5717
5709
  var p = this.parseMessage(t + 1, r, n);
5718
5710
  if (p.err)
5719
5711
  return p;
@@ -5728,7 +5720,7 @@ var ko = (
5728
5720
  }
5729
5721
  ]), u.add(l), this.bumpSpace(), s = this.parseIdentifierIfPossible(), l = s.value, f = s.location;
5730
5722
  }
5731
- return a.length === 0 ? this.error(r === "select" ? S.EXPECT_SELECT_ARGUMENT_SELECTOR : S.EXPECT_PLURAL_ARGUMENT_SELECTOR, A(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(S.MISSING_OTHER_CLAUSE, A(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
5723
+ return a.length === 0 ? this.error(r === "select" ? T.EXPECT_SELECT_ARGUMENT_SELECTOR : T.EXPECT_PLURAL_ARGUMENT_SELECTOR, A(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(T.MISSING_OTHER_CLAUSE, A(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
5732
5724
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
5733
5725
  var n = 1, i = this.clonePosition();
5734
5726
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -5833,7 +5825,7 @@ function Lo(e, t) {
5833
5825
  t === void 0 && (t = {}), t = er({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
5834
5826
  var r = new ko(e, t).parse();
5835
5827
  if (r.err) {
5836
- var n = SyntaxError(S[r.err.kind]);
5828
+ var n = SyntaxError(T[r.err.kind]);
5837
5829
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
5838
5830
  }
5839
5831
  return t?.captureLocation || Dr(r.val), r.val;
@@ -5954,10 +5946,10 @@ function Xt(e, t, r, n, i, s, o) {
5954
5946
  continue;
5955
5947
  }
5956
5948
  if (Ui(f)) {
5957
- var p = f.children, w = f.value, P = i[w];
5958
- if (!Go(P))
5949
+ var p = f.children, w = f.value, k = i[w];
5950
+ if (!Go(k))
5959
5951
  throw new Do(w, "function", o);
5960
- var G = Xt(p, t, r, n, i, s), X = P(G.map(function(J) {
5952
+ var G = Xt(p, t, r, n, i, s), X = k(G.map(function(J) {
5961
5953
  return J.value;
5962
5954
  }));
5963
5955
  Array.isArray(X) || (X = [X]), a.push.apply(a, X.map(function(J) {
@@ -6534,8 +6526,8 @@ function rs(e, t) {
6534
6526
  zs(() => {
6535
6527
  u() && l();
6536
6528
  });
6537
- let f = /* @__PURE__ */ oe(void 0), h = /* @__PURE__ */ oe(!1), c = /* @__PURE__ */ oe(!1), d = /* @__PURE__ */ oe(!1);
6538
- const p = /* @__PURE__ */ Dt(() => O(f) ? Pa(O(f).total.points <= 0 ? 0 : O(f).total.points, 2) : "0.00"), w = /* @__PURE__ */ Dt(() => ka(O(f)?.currency ?? "", a())), P = /* @__PURE__ */ Dt(() => !!O(f)?.claimable), G = /* @__PURE__ */ Dt(() => O(h)), X = async () => {
6529
+ let f = /* @__PURE__ */ ue(void 0), h = /* @__PURE__ */ ue(!1), c = /* @__PURE__ */ ue(!1), d = /* @__PURE__ */ ue(!1);
6530
+ const p = /* @__PURE__ */ Dt(() => O(f) ? Pa(O(f).total.points <= 0 ? 0 : O(f).total.points, 2) : "0.00"), w = /* @__PURE__ */ Dt(() => ka(O(f)?.currency ?? "", a())), k = /* @__PURE__ */ Dt(() => !!O(f)?.claimable), G = /* @__PURE__ */ Dt(() => O(h)), X = async () => {
6539
6531
  if (!(!s() || !o())) {
6540
6532
  Y(d, !0);
6541
6533
  try {
@@ -6556,7 +6548,7 @@ function rs(e, t) {
6556
6548
  }
6557
6549
  }
6558
6550
  }, U = () => {
6559
- !O(P) || O(c) || !O(f) || Ca(O(f).total.points);
6551
+ !O(k) || O(c) || !O(f) || Ca(O(f).total.points);
6560
6552
  }, we = async () => {
6561
6553
  if (!(!s() || !o() || !O(f))) {
6562
6554
  Y(c, !0);
@@ -6612,7 +6604,7 @@ function rs(e, t) {
6612
6604
  var R = Ou(), Pe = Or(R), y = Or(Pe), m = fn(y), v = js(y, 2), g = fn(v, !0);
6613
6605
  Tr(Pe), Tr(R), Ks(
6614
6606
  (_) => {
6615
- mn(m, `${O(p) ?? ""} ${O(w) ?? ""}`), v.disabled = O(c) || !O(P), mn(g, _);
6607
+ mn(m, `${O(p) ?? ""} ${O(w) ?? ""}`), v.disabled = O(c) || !O(k), mn(g, _);
6616
6608
  },
6617
6609
  [() => r()("requestRakeback")]
6618
6610
  ), ia("click", v, U), jt(b, R);