@everymatrix/loyalty-marketing-content 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 Xn() {
19
19
  });
20
20
  return { promise: r, resolve: e, reject: t };
21
21
  }
22
- const J = 2, dt = 4, or = 8, Qn = 1 << 24, de = 16, we = 32, Be = 64, Ar = 128, Yr = 256, me = 512, W = 1024, q = 2048, oe = 4096, ee = 8192, Y = 16384, Ke = 32768, Jt = 1 << 25, Rt = 65536, Kt = 1 << 17, ws = 1 << 18, et = 1 << 19, Ss = 1 << 20, He = 1 << 25, er = 1 << 21, lt = 1 << 22, ke = 1 << 23, vr = Symbol("$state"), Yn = Symbol("component"), Ts = Symbol("legacy props"), Zn = Symbol("attributes"), Nr = Symbol("class"), As = Symbol("style"), Hr = Symbol("text"), Gt = new class extends Error {
22
+ const J = 2, dt = 4, or = 8, Qn = 1 << 24, de = 16, we = 32, Be = 64, Ar = 128, Yr = 256, me = 512, W = 1024, R = 2048, ie = 4096, ee = 8192, Y = 16384, Ke = 32768, Jt = 1 << 25, Rt = 65536, Kt = 1 << 17, ws = 1 << 18, et = 1 << 19, Ss = 1 << 20, He = 1 << 25, er = 1 << 21, lt = 1 << 22, ke = 1 << 23, vr = Symbol("$state"), Yn = Symbol("component"), Ts = Symbol("legacy props"), Zn = Symbol("attributes"), Nr = Symbol("class"), As = Symbol("style"), Hr = Symbol("text"), Gt = new class extends Error {
23
23
  name = "StaleReactionError";
24
24
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
25
25
  }(), Zr = 3, Ut = 8;
@@ -36,32 +36,32 @@ let L = !1;
36
36
  function ze(e) {
37
37
  L = e;
38
38
  }
39
- let k;
39
+ let F;
40
40
  function ue(e) {
41
41
  if (e === null)
42
42
  throw ur(), Ge;
43
- return k = e;
43
+ return F = e;
44
44
  }
45
45
  function Jr() {
46
- return ue(/* @__PURE__ */ Pe(k));
46
+ return ue(/* @__PURE__ */ Pe(F));
47
47
  }
48
48
  function at(e) {
49
49
  if (L) {
50
- if (/* @__PURE__ */ Pe(k) !== null)
50
+ if (/* @__PURE__ */ Pe(F) !== null)
51
51
  throw ur(), Ge;
52
- k = e;
52
+ F = e;
53
53
  }
54
54
  }
55
55
  function Os(e = 1) {
56
56
  if (L) {
57
- for (var t = e, r = k; t--; )
57
+ for (var t = e, r = F; t--; )
58
58
  r = /** @type {TemplateNode} */
59
59
  /* @__PURE__ */ Pe(r);
60
- k = r;
60
+ F = r;
61
61
  }
62
62
  }
63
63
  function Or(e = !0) {
64
- for (var t = 0, r = k; ; ) {
64
+ for (var t = 0, r = F; ; ) {
65
65
  if (r.nodeType === Ut) {
66
66
  var n = (
67
67
  /** @type {Comment} */
@@ -177,17 +177,17 @@ function ks() {
177
177
  ii();
178
178
  }
179
179
  const Fs = -7169;
180
- function U(e, t) {
180
+ function q(e, t) {
181
181
  e.f = e.f & Fs | t;
182
182
  }
183
183
  function tn(e) {
184
- e.f & me || e.deps === null ? U(e, W) : U(e, oe);
184
+ e.f & me || e.deps === null ? q(e, W) : q(e, ie);
185
185
  }
186
- function si(e, t, r) {
187
- e.f & q ? t.add(e) : e.f & oe && r.add(e), U(e, W);
186
+ function si(e, t) {
187
+ e.f & R ? t.set(e, R) : e.f & ie && t.get(e) !== R && t.set(e, ie), q(e, W);
188
188
  }
189
189
  function lr(e) {
190
- var t = O, r = $;
190
+ var t = H, r = $;
191
191
  fe(null), Se(null);
192
192
  try {
193
193
  return e();
@@ -237,16 +237,16 @@ function Us() {
237
237
  var e = (
238
238
  /** @type {Effect} */
239
239
  $
240
- ), t = O, r = ge, n = (
240
+ ), t = H, r = ge, n = (
241
241
  /** @type {Batch} */
242
- H
242
+ O
243
243
  );
244
244
  return function(s = !0) {
245
245
  Se(e), fe(t), pt(r), s && !(e.f & Y) && (n?.activate(), n?.apply());
246
246
  };
247
247
  }
248
248
  function tr(e = !0) {
249
- Se(null), fe(null), pt(null), e && H?.deactivate();
249
+ Se(null), fe(null), pt(null), e && O?.deactivate();
250
250
  }
251
251
  function ai() {
252
252
  var e = (
@@ -254,7 +254,7 @@ function ai() {
254
254
  $
255
255
  ), t = e.b, r = (
256
256
  /** @type {Batch} */
257
- H
257
+ O
258
258
  ), n = !!t?.is_rendered();
259
259
  return t?.update_pending_count(1, r), r.increment(n, e), () => {
260
260
  t?.update_pending_count(-1, r), r.decrement(n, e);
@@ -262,7 +262,7 @@ function ai() {
262
262
  }
263
263
  // @__NO_SIDE_EFFECTS__
264
264
  function rn(e) {
265
- var t = J | q;
265
+ var t = J | R;
266
266
  return $ !== null && ($.f |= et), {
267
267
  ctx: ge,
268
268
  deps: null,
@@ -296,7 +296,7 @@ function js(e, t, r) {
296
296
  ), s = Ze(
297
297
  /** @type {V} */
298
298
  z
299
- ), o = !O, a = /* @__PURE__ */ new Set();
299
+ ), o = !H, a = /* @__PURE__ */ new Set();
300
300
  return na(() => {
301
301
  var l = (
302
302
  /** @type {Effect} */
@@ -312,7 +312,7 @@ function js(e, t, r) {
312
312
  }
313
313
  var f = (
314
314
  /** @type {Batch} */
315
- H
315
+ O
316
316
  );
317
317
  if (o) {
318
318
  if (l.f & Ke)
@@ -375,11 +375,11 @@ function nn(e) {
375
375
  }
376
376
  function oi(e) {
377
377
  var t = nn(e);
378
- if (!e.equals(t) && (e.wv = Oi(), (!H?.is_fork || e.deps === null) && (H !== null ? (H.capture(e, t, !0), ft?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
379
- U(e, W);
378
+ if (!e.equals(t) && (e.wv = Oi(), (!O?.is_fork || e.deps === null) && (O !== null ? (O.capture(e, t, !0), ft?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
379
+ q(e, W);
380
380
  return;
381
381
  }
382
- Ue || (pe !== null ? (ln() || H?.is_fork) && pe.set(e, t) : tn(e));
382
+ Ue || (pe !== null ? (ln() || O?.is_fork) && pe.set(e, t) : tn(e));
383
383
  }
384
384
  function zs(e) {
385
385
  if (e.effects !== null)
@@ -393,30 +393,30 @@ function ui(e) {
393
393
  for (const t of e.effects)
394
394
  t.teardown && t.fn !== null && gt(t);
395
395
  }
396
- let mr = null, it = null, H = null, ft = null, pe = null, $r = null, Pt = !1, gr = !1, It = null, Wt = null;
396
+ let mr = null, it = null, O = null, ft = null, pe = null, $r = null, Pt = !1, gr = !1, It = null, Wt = null;
397
397
  var mn = 0;
398
398
  let Ws = 1;
399
399
  class Me {
400
400
  id = Ws++;
401
401
  /** True as soon as `#process` was called */
402
- #e = !1;
402
+ started = !1;
403
403
  linked = !0;
404
404
  /** @type {Batch | null} */
405
- #r = null;
405
+ prev = null;
406
406
  /** @type {Batch | null} */
407
- #s = null;
407
+ next = null;
408
408
  /** @type {Map<Effect, ReturnType<typeof deferred<any>>>} */
409
409
  async_deriveds = /* @__PURE__ */ new Map();
410
410
  /**
411
411
  * The current values of any signals that are updated in this batch.
412
412
  * Tuple format: [value, is_derived] (note: is_derived is false for deriveds, too, if they were overridden via assignment)
413
- * They keys of this map are identical to `this.#previous`
413
+ * The keys of this map are identical to `this.previous`
414
414
  * @type {Map<Value, [any, boolean]>}
415
415
  */
416
416
  current = /* @__PURE__ */ new Map();
417
417
  /**
418
418
  * The values of any signals (sources and deriveds) that are updated in this batch _before_ those updates took place.
419
- * They keys of this map are identical to `this.#current`
419
+ * The keys of this map are identical to `this.current`
420
420
  * @type {Map<Value, any>}
421
421
  */
422
422
  previous = /* @__PURE__ */ new Map();
@@ -425,7 +425,7 @@ class Me {
425
425
  * and append new ones by calling the functions added inside (if/each/key/etc) blocks
426
426
  * @type {Set<(batch: Batch) => void>}
427
427
  */
428
- #d = /* @__PURE__ */ new Set();
428
+ #e = /* @__PURE__ */ new Set();
429
429
  /**
430
430
  * If a fork is discarded, we need to destroy any effects that are no longer needed
431
431
  * @type {Set<(batch: Batch) => void>}
@@ -434,18 +434,18 @@ class Me {
434
434
  /**
435
435
  * The number of async effects that are currently in flight
436
436
  */
437
- #a = 0;
437
+ #o = 0;
438
438
  /**
439
439
  * Async effects that are currently in flight, _not_ inside a pending boundary
440
440
  * @type {Map<Effect, number>}
441
441
  */
442
- #t = /* @__PURE__ */ new Map();
442
+ #u = /* @__PURE__ */ new Map();
443
443
  /**
444
444
  * A deferred that resolves when the batch is committed, used with `settled()`
445
445
  * TODO replace with Promise.withResolvers once supported widely enough
446
446
  * @type {{ promise: Promise<void>, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null}
447
447
  */
448
- #o = null;
448
+ #r = null;
449
449
  /**
450
450
  * Effects that were scheduled in this batch but not yet 'resolved' into the
451
451
  * root effects that need to be flushed. Resolving — the upwards traversal that
@@ -462,17 +462,12 @@ class Me {
462
462
  * Effects created while this batch was active.
463
463
  * @type {Effect[]}
464
464
  */
465
- #m = [];
466
- /**
467
- * Deferred effects (which run after async work has completed) that are DIRTY
468
- * @type {Set<Effect>}
469
- */
470
- #u = /* @__PURE__ */ new Set();
465
+ #s = [];
471
466
  /**
472
- * Deferred effects that are MAYBE_DIRTY
473
- * @type {Set<Effect>}
467
+ * Deferred effects (which run after async work has completed) and their status (DIRTY or MAYBE_DIRTY)
468
+ * @type {Map<Effect, number>}
474
469
  */
475
- #l = /* @__PURE__ */ new Set();
470
+ #t = /* @__PURE__ */ new Map();
476
471
  /**
477
472
  * A map of branches that still exist, but will be destroyed when this batch
478
473
  * is committed — we skip over these during `process`.
@@ -480,30 +475,34 @@ class Me {
480
475
  * so they can be rescheduled if the branch survives.
481
476
  * @type {Map<Effect, { d: Effect[], m: Effect[] }>}
482
477
  */
483
- #h = /* @__PURE__ */ new Map();
478
+ #a = /* @__PURE__ */ new Map();
484
479
  /**
485
480
  * Inverse of #skipped_branches which we need to tell prior batches to unskip them when committing
486
481
  * @type {Set<Effect>}
487
482
  */
488
- #g = /* @__PURE__ */ new Set();
483
+ #d = /* @__PURE__ */ new Set();
489
484
  is_fork = !1;
490
- #f = !1;
485
+ #l = !1;
491
486
  constructor() {
492
- it === null ? mr = it = this : (it.#s = this, this.#r = it), it = this;
487
+ it === null ? mr = it = this : (it.next = this, this.prev = it), it = this;
493
488
  }
494
- #E() {
489
+ #v() {
495
490
  if (this.is_fork) return !0;
496
- for (const n of this.#t.keys()) {
497
- for (var t = n, r = !1; t.parent !== null; ) {
498
- if (this.#h.has(t)) {
499
- r = !0;
500
- break;
501
- }
502
- t = t.parent;
503
- }
504
- if (!r)
491
+ for (const t of this.#u.keys())
492
+ if (!this.#g(t))
505
493
  return !0;
506
- }
494
+ return !1;
495
+ }
496
+ /**
497
+ * Whether `effect` is inside a branch that this batch skips
498
+ * @param {Effect} effect
499
+ */
500
+ #g(t) {
501
+ for (var r = (
502
+ /** @type {Effect | null} */
503
+ t
504
+ ); r !== null; r = r.parent)
505
+ if (this.#a.has(r)) return !0;
507
506
  return !1;
508
507
  }
509
508
  /**
@@ -511,7 +510,7 @@ class Me {
511
510
  * @param {Effect} effect
512
511
  */
513
512
  skip_effect(t) {
514
- this.#h.has(t) || this.#h.set(t, { d: [], m: [] }), this.#g.delete(t);
513
+ this.#a.has(t) || this.#a.set(t, { d: [], m: [] }), this.#d.delete(t);
515
514
  }
516
515
  /**
517
516
  * Remove an effect from the #skipped_branches map and reschedule
@@ -520,15 +519,15 @@ class Me {
520
519
  * @param {(e: Effect) => void} callback
521
520
  */
522
521
  unskip_effect(t, r = (n) => this.schedule(n)) {
523
- var n = this.#h.get(t);
522
+ var n = this.#a.get(t);
524
523
  if (n) {
525
- this.#h.delete(t);
524
+ this.#a.delete(t);
526
525
  for (var i of n.d)
527
- U(i, q), r(i);
526
+ q(i, R), r(i);
528
527
  for (i of n.m)
529
- U(i, oe), r(i);
528
+ q(i, ie), r(i);
530
529
  }
531
- this.#g.add(t);
530
+ this.#d.add(t);
532
531
  }
533
532
  /**
534
533
  * Convert the effects that were scheduled in this batch into the root effects
@@ -539,10 +538,10 @@ class Me {
539
538
  * a single traversal — scheduling into other batches can never observe them
540
539
  * @returns {Effect[]}
541
540
  */
542
- #x() {
541
+ #f() {
543
542
  var t = [];
544
543
  for (const s of this.#n)
545
- if (!(s.f & Y || !(s.f & (q | oe)))) {
544
+ if (!(s.f & Y || !(s.f & (R | ie)))) {
546
545
  for (var r = s, n = !1; r.parent !== null; ) {
547
546
  r = r.parent;
548
547
  var i = r.f;
@@ -558,56 +557,47 @@ class Me {
558
557
  }
559
558
  return this.#n = [], t;
560
559
  }
561
- #_() {
562
- this.#e = !0;
563
- for (const a of this.#u)
564
- this.#l.delete(a), U(a, q), this.schedule(a);
565
- for (const a of this.#l)
566
- U(a, oe), this.schedule(a);
560
+ #m() {
561
+ this.started = !0;
562
+ for (const [a, l] of this.#t)
563
+ q(a, l), this.schedule(a);
567
564
  this.apply();
568
565
  for (var t = It = [], r = [], n = Wt = []; this.#n.length > 0; ) {
569
- mn++ > 1e3 && (this.#v(), Xs());
570
- for (const a of this.#x())
566
+ mn++ > 1e3 && (this.#c(), Xs());
567
+ for (const a of this.#f())
571
568
  try {
572
- this.#b(a, t, r);
569
+ this.#_(a, t, r);
573
570
  } catch (l) {
574
- throw hi(a), this.#E() || this.discard(), l;
571
+ throw hi(a), this.#v() || this.discard(), l;
575
572
  }
576
573
  }
577
- if (H = null, n.length > 0) {
574
+ if (O = null, n.length > 0) {
578
575
  var i = Me.ensure();
579
576
  for (const a of n)
580
577
  i.schedule(a);
581
578
  }
582
- if (It = null, Wt = null, this.#E()) {
579
+ if (It = null, Wt = null, this.#v()) {
583
580
  this.#p(r), this.#p(t);
584
- for (const [a, l] of this.#h)
581
+ for (const [a, l] of this.#a)
585
582
  fi(a, l);
586
583
  n.length > 0 && /** @type {unknown} */
587
- H.#_();
584
+ O.#m();
588
585
  return;
589
586
  }
590
- const s = this.#c();
587
+ const s = this.#y();
591
588
  if (s) {
592
- this.#p(r), this.#p(t), s.#w(this);
589
+ this.#p(r), this.#p(t), s.#h(this);
593
590
  return;
594
591
  }
595
- this.#u.clear(), this.#l.clear();
596
- for (const a of this.#d) a(this);
597
- this.#d.clear(), ft = this, gn(r), gn(t), ft = null, this.#o?.resolve();
592
+ this.#t.clear();
593
+ for (const a of this.#e) a(this);
594
+ this.#e.clear(), ft = this, gn(r), gn(t), ft = null, this.#r?.resolve();
598
595
  var o = (
599
596
  /** @type {Batch | null} */
600
597
  /** @type {unknown} */
601
- H
598
+ O
602
599
  );
603
- if (this.#a === 0 && (this.#n.length === 0 || o !== null) && this.#v(), this.#n.length > 0)
604
- if (o !== null) {
605
- for (const a of this.#n)
606
- o.#n.push(a);
607
- this.#n = [];
608
- } else
609
- o = this;
610
- o !== null && (Ee.clear(), o.#_());
600
+ this.#o === 0 && (this.#n.length === 0 || o !== null) && this.#c(), o !== null && (Ee.clear(), o.#m());
611
601
  }
612
602
  /**
613
603
  * Traverse the effect tree, executing effects or stashing
@@ -616,12 +606,12 @@ class Me {
616
606
  * @param {Effect[]} effects
617
607
  * @param {Effect[]} render_effects
618
608
  */
619
- #b(t, r, n) {
609
+ #_(t, r, n) {
620
610
  t.f ^= W;
621
611
  for (var i = t.first; i !== null; ) {
622
- var s = i.f, o = (s & (we | Be)) !== 0, a = o && (s & W) !== 0, l = a || (s & ee) !== 0 || this.#h.has(i);
612
+ var s = i.f, o = (s & (we | Be)) !== 0, a = o && (s & W) !== 0, l = a || (s & ee) !== 0 || this.#a.has(i);
623
613
  if (!l && i.fn !== null) {
624
- o ? i.f ^= W : s & dt ? r.push(i) : jt(i) && (s & de && this.#l.add(i), gt(i));
614
+ o ? i.f ^= W : s & dt ? r.push(i) : jt(i) && (s & de && this.add_dirty_reaction(i, ie), gt(i));
625
615
  var u = i.first;
626
616
  if (u !== null) {
627
617
  i = u;
@@ -638,31 +628,32 @@ class Me {
638
628
  }
639
629
  }
640
630
  }
641
- #c() {
642
- for (var t = this.#r; t !== null; ) {
643
- if (!t.is_fork) {
644
- for (const [r, [, n]] of this.current)
645
- if (t.current.has(r) && !n)
646
- return t;
647
- }
648
- t = t.#r;
649
- }
631
+ #y() {
632
+ for (var t = this.prev; t !== null; t = t.prev)
633
+ if (!t.is_fork && this.#b(t)) return t;
650
634
  return null;
651
635
  }
636
+ /** @param {Batch} batch */
637
+ #b(t) {
638
+ for (const [r, [, n]] of this.current)
639
+ if (!n && t.current.has(r))
640
+ return !0;
641
+ return !1;
642
+ }
652
643
  /**
653
644
  * @param {Batch} batch
654
645
  */
655
- #w(t) {
646
+ #h(t) {
656
647
  for (const [n, i] of t.current)
657
648
  !this.previous.has(n) && t.previous.has(n) && this.previous.set(n, t.previous.get(n)), this.current.set(n, i);
658
649
  for (const [n, i] of t.async_deriveds) {
659
650
  const s = this.async_deriveds.get(n);
660
651
  s && i.promise.then(s.resolve).catch(s.reject);
661
652
  }
662
- t.async_deriveds.clear(), this.transfer_effects(t.#u, t.#l);
653
+ t.async_deriveds.clear(), this.transfer_reactions(t.#t);
663
654
  const r = (n) => {
664
655
  var i = n.reactions;
665
- if (i !== null && !(n.f & J && !(n.f & (q | oe))))
656
+ if (i !== null && !(n.f & J && !(n.f & (R | ie))))
666
657
  for (const a of i) {
667
658
  var s = a.f;
668
659
  if (s & J)
@@ -675,20 +666,20 @@ class Me {
675
666
  /** @type {Effect} */
676
667
  a
677
668
  );
678
- s & (lt | de) && !this.async_deriveds.has(o) && (this.#l.delete(o), U(o, q), this.schedule(o));
669
+ s & (lt | de) && !this.async_deriveds.has(o) && (this.#t.delete(o), q(o, R), this.schedule(o));
679
670
  }
680
671
  }
681
672
  };
682
673
  for (const n of this.current.keys())
683
674
  r(n);
684
- this.oncommit(() => t.discard()), t.#v(), H = this, this.#_();
675
+ this.oncommit(() => t.discard()), t.#c(), O = this, this.#m();
685
676
  }
686
677
  /**
687
678
  * @param {Effect[]} effects
688
679
  */
689
680
  #p(t) {
690
681
  for (var r = 0; r < t.length; r += 1)
691
- si(t[r], this.#u, this.#l);
682
+ si(t[r], this.#t);
692
683
  }
693
684
  /**
694
685
  * Associate a change to a given source with the current
@@ -701,16 +692,16 @@ class Me {
701
692
  t.v !== z && !this.previous.has(t) && this.previous.set(t, t.v), t.f & ke || (this.current.set(t, [r, n]), pe?.set(t, r)), this.is_fork || (t.v = r);
702
693
  }
703
694
  activate() {
704
- H = this;
695
+ O = this;
705
696
  }
706
697
  deactivate() {
707
- H = null, pe = null;
698
+ O = null, pe = null;
708
699
  }
709
700
  flush() {
710
701
  try {
711
- gr = !0, H = this, this.#_();
702
+ gr = !0, O = this, this.#m();
712
703
  } finally {
713
- mn = 0, $r = null, It = null, Wt = null, gr = !1, H = null, pe = null, Ee.clear();
704
+ mn = 0, $r = null, It = null, Wt = null, gr = !1, O = null, pe = null, Ee.clear();
714
705
  }
715
706
  }
716
707
  discard() {
@@ -718,16 +709,16 @@ class Me {
718
709
  this.#i.clear();
719
710
  for (const t of this.async_deriveds.values())
720
711
  t.reject(Ot);
721
- this.#v(), this.#o?.resolve();
712
+ this.#c(), this.#r?.resolve();
722
713
  }
723
714
  /**
724
715
  * @param {Effect} effect
725
716
  */
726
717
  register_created_effect(t) {
727
- this.#m.push(t);
718
+ this.#s.push(t);
728
719
  }
729
- #y() {
730
- for (let h = mr; h !== null; h = h.#s) {
720
+ #E() {
721
+ for (let h = mr; h !== null; h = h.next) {
731
722
  var t = h.id < this.id, r = [];
732
723
  for (const [c, [p, d]] of this.current) {
733
724
  if (h.current.has(c)) {
@@ -751,13 +742,13 @@ class Me {
751
742
  (c) => !/** @type {[any, boolean]} */
752
743
  h.current.get(c)[1]
753
744
  );
754
- if (!(!h.#e || i.length === 0)) {
745
+ if (!(!h.started || i.length === 0)) {
755
746
  var s = i.filter((c) => !this.current.has(c));
756
747
  if (s.length === 0)
757
748
  t && h.discard();
758
749
  else if (r.length > 0) {
759
750
  if (t)
760
- for (const c of this.#g)
751
+ for (const c of this.#d)
761
752
  h.unskip_effect(c, (p) => {
762
753
  p.f & (de | lt) ? h.schedule(p) : h.#p([p]);
763
754
  });
@@ -771,12 +762,12 @@ class Me {
771
762
  return d ? d[0] !== p[0] || d[1] !== p[1] : !0;
772
763
  }).map(([c]) => c);
773
764
  if (u.length > 0)
774
- for (const c of this.#m)
775
- !(c.f & (Y | ee | Kt)) && sn(c, u, a) && (c.f & (lt | de) ? (U(c, q), h.schedule(c)) : h.#u.add(c));
776
- if (h.#n.length > 0 && !h.#f) {
765
+ for (const c of this.#s)
766
+ !(c.f & (Y | ee | Kt)) && sn(c, u, a) && (c.f & (lt | de) ? (q(c, R), h.schedule(c)) : h.add_dirty_reaction(c, R));
767
+ if (h.#n.length > 0 && !h.#l) {
777
768
  h.apply();
778
- for (var f of h.#x())
779
- h.#b(f, [], []);
769
+ for (var f of h.#f())
770
+ h.#_(f, [], []);
780
771
  }
781
772
  h.deactivate();
782
773
  }
@@ -788,9 +779,9 @@ class Me {
788
779
  * @param {Effect} effect
789
780
  */
790
781
  increment(t, r) {
791
- if (this.#a += 1, t) {
792
- let n = this.#t.get(r) ?? 0;
793
- this.#t.set(r, n + 1);
782
+ if (this.#o += 1, t) {
783
+ let n = this.#u.get(r) ?? 0;
784
+ this.#u.set(r, n + 1);
794
785
  }
795
786
  }
796
787
  /**
@@ -798,44 +789,48 @@ class Me {
798
789
  * @param {Effect} effect
799
790
  */
800
791
  decrement(t, r) {
801
- if (this.#a -= 1, t) {
802
- let n = this.#t.get(r) ?? 0;
803
- n === 1 ? this.#t.delete(r) : this.#t.set(r, n - 1);
792
+ if (this.#o -= 1, t) {
793
+ let n = this.#u.get(r) ?? 0;
794
+ n === 1 ? this.#u.delete(r) : this.#u.set(r, n - 1);
804
795
  }
805
- this.#f || (this.#f = !0, Xe(() => {
806
- this.#f = !1, this.linked && this.flush();
796
+ this.#l || (this.#l = !0, Xe(() => {
797
+ this.#l = !1, this.linked && this.flush();
807
798
  }));
808
799
  }
809
800
  /**
810
- * @param {Set<Effect>} dirty_effects
811
- * @param {Set<Effect>} maybe_dirty_effects
801
+ * @param {Map<Effect, number>} dirty_reactions
802
+ */
803
+ transfer_reactions(t) {
804
+ for (const [r, n] of t)
805
+ this.add_dirty_reaction(r, n);
806
+ t.clear();
807
+ }
808
+ /**
809
+ * @param {Effect} effect
810
+ * @param {number} status
812
811
  */
813
- transfer_effects(t, r) {
814
- for (const n of t)
815
- this.#u.add(n);
816
- for (const n of r)
817
- this.#l.add(n);
818
- t.clear(), r.clear();
812
+ add_dirty_reaction(t, r) {
813
+ (r === R || this.#t.get(t) !== R) && this.#t.set(t, r);
819
814
  }
820
815
  /** @param {(batch: Batch) => void} fn */
821
816
  oncommit(t) {
822
- this.#d.add(t);
817
+ this.#e.add(t);
823
818
  }
824
819
  /** @param {(batch: Batch) => void} fn */
825
820
  ondiscard(t) {
826
821
  this.#i.add(t);
827
822
  }
828
823
  settled() {
829
- return (this.#o ??= Xn()).promise;
824
+ return (this.#r ??= Xn()).promise;
830
825
  }
831
826
  static ensure() {
832
- if (H === null) {
833
- const t = H = new Me();
827
+ if (O === null) {
828
+ const t = O = new Me();
834
829
  !gr && !Pt && Xe(() => {
835
- t.#e || t.flush();
830
+ t.started || t.flush();
836
831
  });
837
832
  }
838
- return H;
833
+ return O;
839
834
  }
840
835
  apply() {
841
836
  {
@@ -854,10 +849,10 @@ class Me {
854
849
  }
855
850
  this.#n.push(t);
856
851
  }
857
- #v() {
852
+ #c() {
858
853
  if (this.linked) {
859
- var t = this.#r, r = this.#s;
860
- t === null ? mr = r : t.#s = r, r === null ? it = t : r.#r = t, this.linked = !1;
854
+ var t = this.prev, r = this.next;
855
+ t === null ? mr = r : t.next = r, r === null ? it = t : r.prev = t, this.linked = !1;
861
856
  }
862
857
  }
863
858
  }
@@ -866,12 +861,12 @@ function Oe(e) {
866
861
  ft = null, Pt = !0;
867
862
  try {
868
863
  for (var n; ; ) {
869
- if (ks(), H === null)
864
+ if (ks(), O === null)
870
865
  return (
871
866
  /** @type {T} */
872
867
  n
873
868
  );
874
- H.flush();
869
+ O.flush();
875
870
  }
876
871
  } finally {
877
872
  Pt = t, ft = r;
@@ -919,7 +914,7 @@ function li(e, t, r, n) {
919
914
  t,
920
915
  r,
921
916
  n
922
- ) : s & (lt | de) && !(s & q) && sn(i, t, n) && (U(i, q), an(
917
+ ) : s & (lt | de) && !(s & R) && sn(i, t, n) && (q(i, R), an(
923
918
  /** @type {Effect} */
924
919
  i
925
920
  ));
@@ -947,17 +942,17 @@ function sn(e, t, r) {
947
942
  return r.set(e, !1), !1;
948
943
  }
949
944
  function an(e) {
950
- H.schedule(e);
945
+ O.schedule(e);
951
946
  }
952
947
  function fi(e, t) {
953
948
  if (!(e.f & we && e.f & W)) {
954
- e.f & q ? t.d.push(e) : e.f & oe && t.m.push(e), U(e, W);
949
+ e.f & R ? t.d.push(e) : e.f & ie && t.m.push(e), q(e, W);
955
950
  for (var r = e.first; r !== null; )
956
951
  fi(r, t), r = r.next;
957
952
  }
958
953
  }
959
954
  function hi(e) {
960
- U(e, W);
955
+ q(e, W);
961
956
  for (var t = e.first; t !== null; )
962
957
  hi(t), t = t.next;
963
958
  }
@@ -967,7 +962,6 @@ let ci = !1;
967
962
  function Ze(e, t) {
968
963
  var r = {
969
964
  f: 0,
970
- // TODO ideally we could skip this altogether, but it causes type errors
971
965
  v: e,
972
966
  reactions: null,
973
967
  equals: Kn,
@@ -987,9 +981,9 @@ function on(e, t = !1, r = !0) {
987
981
  return t || (n.equals = ti), n;
988
982
  }
989
983
  function ce(e, t, r = !1) {
990
- O !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
984
+ H !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
991
985
  // to ensure we error if state is set inside an inspect effect
992
- (!ve || O.f & Kt) && ni() && O.f & (J | de | lt | Kt) && (xe === null || !xe.has(e)) && Ls();
986
+ (!ve || H.f & Kt) && ni() && H.f & (J | de | lt | Kt) && (xe === null || !xe.has(e)) && Ls();
993
987
  let n = r ? ot(t) : t;
994
988
  return vt(e, n, Wt);
995
989
  }
@@ -1003,16 +997,16 @@ function vt(e, t, r = null) {
1003
997
  /** @type {Derived} */
1004
998
  e
1005
999
  );
1006
- e.f & q && nn(i), pe === null && tn(i);
1000
+ e.f & R && nn(i), pe === null && tn(i);
1007
1001
  }
1008
- e.wv = Oi(), Ve = null, Br = 0, di(e, q, r), Ve = null, $ !== null && $.f & W && !($.f & (we | Be)) && (ae === null ? ua([e]) : ae.push(e)), !n.is_fork && rr.size > 0 && !ci && Qs();
1002
+ e.wv = Oi(), Ve = null, Br = 0, di(e, R, r), Ve = null, $ !== null && $.f & W && !($.f & (we | Be)) && (oe === null ? ua([e]) : oe.push(e)), !n.is_fork && rr.size > 0 && !ci && Qs();
1009
1003
  }
1010
1004
  return t;
1011
1005
  }
1012
1006
  function Qs() {
1013
1007
  ci = !1;
1014
1008
  for (const e of rr) {
1015
- e.f & W && U(e, oe);
1009
+ e.f & W && q(e, ie);
1016
1010
  let t;
1017
1011
  try {
1018
1012
  t = jt(e);
@@ -1035,8 +1029,8 @@ function di(e, t, r) {
1035
1029
  Ve.add(e);
1036
1030
  }
1037
1031
  for (var s = 0; s < i; s++) {
1038
- var o = n[s], a = o.f, l = (a & q) === 0;
1039
- if (l && U(o, t), a & Kt)
1032
+ var o = n[s], a = o.f, l = (a & R) === 0;
1033
+ if (l && q(o, t), a & Kt)
1040
1034
  rr.add(
1041
1035
  /** @type {Effect} */
1042
1036
  o
@@ -1046,7 +1040,7 @@ function di(e, t, r) {
1046
1040
  /** @type {Derived} */
1047
1041
  o
1048
1042
  );
1049
- pe?.delete(u), di(u, oe, r);
1043
+ pe?.delete(u), di(u, ie, r);
1050
1044
  } else if (l) {
1051
1045
  var f = (
1052
1046
  /** @type {Effect} */
@@ -1066,7 +1060,7 @@ function ot(e) {
1066
1060
  var r = /* @__PURE__ */ new Map(), n = Vn(e), i = /* @__PURE__ */ Ae(0), s = Ye, o = (a) => {
1067
1061
  if (Ye === s)
1068
1062
  return a();
1069
- var l = O, u = Ye;
1063
+ var l = H, u = Ye;
1070
1064
  fe(null), xn(s);
1071
1065
  var f = a();
1072
1066
  return fe(l), xn(u), f;
@@ -1105,7 +1099,7 @@ function ot(e) {
1105
1099
  var p = ot(h ? a[l] : z), d = /* @__PURE__ */ Ae(p);
1106
1100
  return d;
1107
1101
  }), r.set(l, f)), f !== void 0) {
1108
- var c = G(f);
1102
+ var c = U(f);
1109
1103
  return c === z ? void 0 : c;
1110
1104
  }
1111
1105
  return Reflect.get(a, l, u);
@@ -1114,7 +1108,7 @@ function ot(e) {
1114
1108
  this.has?.(a, l);
1115
1109
  var u = Reflect.getOwnPropertyDescriptor(a, l), f = r.get(l);
1116
1110
  if (f !== void 0) {
1117
- var h = G(f);
1111
+ var h = U(f);
1118
1112
  if (h === z)
1119
1113
  return;
1120
1114
  if (u && "value" in u)
@@ -1133,12 +1127,12 @@ function ot(e) {
1133
1127
  if (l === vr)
1134
1128
  return !0;
1135
1129
  var u = r.get(l), f = u !== void 0 && u.v !== z || Reflect.has(a, l);
1136
- if (u !== void 0 || $ !== null && (!f || ut(a, l)?.writable)) {
1130
+ if (u !== void 0 || ($ !== null || H !== null) && (!f || ut(a, l)?.writable)) {
1137
1131
  u === void 0 && (u = o(() => {
1138
1132
  var c = f ? ot(a[l]) : z, p = /* @__PURE__ */ Ae(c);
1139
1133
  return p;
1140
1134
  }), r.set(l, u));
1141
- var h = G(u);
1135
+ var h = U(u);
1142
1136
  if (h === z)
1143
1137
  return !1;
1144
1138
  }
@@ -1173,7 +1167,7 @@ function ot(e) {
1173
1167
  return !0;
1174
1168
  },
1175
1169
  ownKeys(a) {
1176
- G(i);
1170
+ U(i);
1177
1171
  var l = Reflect.ownKeys(a).filter((h) => {
1178
1172
  var c = r.get(h);
1179
1173
  return c === void 0 || c.v !== z;
@@ -1216,9 +1210,9 @@ function Pe(e) {
1216
1210
  function $t(e, t) {
1217
1211
  if (!L)
1218
1212
  return /* @__PURE__ */ mt(e);
1219
- var r = /* @__PURE__ */ mt(k);
1213
+ var r = /* @__PURE__ */ mt(F);
1220
1214
  if (r === null)
1221
- r = k.appendChild(Fe());
1215
+ r = F.appendChild(Fe());
1222
1216
  else if (t && r.nodeType !== Zr) {
1223
1217
  var n = Fe();
1224
1218
  return r?.before(n), ue(n), n;
@@ -1235,7 +1229,7 @@ function bn(e, t = !1) {
1235
1229
  return at(e), r;
1236
1230
  }
1237
1231
  function yn(e, t = 1, r = !1) {
1238
- let n = L ? k : e;
1232
+ let n = L ? F : e;
1239
1233
  for (var i; t--; )
1240
1234
  i = n, n = /** @type {TemplateNode} */
1241
1235
  /* @__PURE__ */ Pe(n);
@@ -1279,7 +1273,7 @@ function _i(e) {
1279
1273
  function Zs(e) {
1280
1274
  var t = $;
1281
1275
  if (t === null)
1282
- return O.f |= ke, e;
1276
+ return H.f |= ke, e;
1283
1277
  if (!(t.f & Ke) && !(t.f & dt))
1284
1278
  throw e;
1285
1279
  be(e, t);
@@ -1315,7 +1309,7 @@ function Te(e, t) {
1315
1309
  ctx: ge,
1316
1310
  deps: null,
1317
1311
  nodes: null,
1318
- f: e | q | me,
1312
+ f: e | R | me,
1319
1313
  first: null,
1320
1314
  fn: t,
1321
1315
  last: null,
@@ -1327,7 +1321,7 @@ function Te(e, t) {
1327
1321
  wv: 0,
1328
1322
  ac: null
1329
1323
  };
1330
- H?.register_created_effect(n);
1324
+ O?.register_created_effect(n);
1331
1325
  var i = n;
1332
1326
  if (e & dt)
1333
1327
  It !== null ? It.push(n) : Me.ensure().schedule(n);
@@ -1340,21 +1334,21 @@ function Te(e, t) {
1340
1334
  i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && // either `null`, or a singular child
1341
1335
  !(i.f & et) && (i = i.first, e & de && e & Rt && i !== null && (i.f |= Rt));
1342
1336
  }
1343
- if (i !== null && (i.parent = r, r !== null && Js(i, r), O !== null && O.f & J && !(e & Be))) {
1337
+ if (i !== null && (i.parent = r, r !== null && Js(i, r), H !== null && H.f & J && !(e & Be))) {
1344
1338
  var s = (
1345
1339
  /** @type {Derived} */
1346
- O
1340
+ H
1347
1341
  );
1348
1342
  (s.effects ??= []).push(i);
1349
1343
  }
1350
1344
  return n;
1351
1345
  }
1352
1346
  function ln() {
1353
- return O !== null && !ve;
1347
+ return H !== null && !ve;
1354
1348
  }
1355
1349
  function bi(e) {
1356
1350
  const t = Te(or, null);
1357
- return U(t, W), t.teardown = e, t;
1351
+ return q(t, W), t.teardown = e, t;
1358
1352
  }
1359
1353
  function Ks(e) {
1360
1354
  return Te(dt | Ss, e);
@@ -1387,7 +1381,7 @@ function yi(e, t = 0) {
1387
1381
  function ia(e, t = [], r = [], n = []) {
1388
1382
  Gs(n, t, r, (i) => {
1389
1383
  Te(or, () => {
1390
- e(...i.map(G));
1384
+ e(...i.map(U));
1391
1385
  });
1392
1386
  });
1393
1387
  }
@@ -1401,7 +1395,7 @@ function _e(e) {
1401
1395
  function xi(e) {
1402
1396
  var t = e.teardown;
1403
1397
  if (t !== null) {
1404
- const r = Ue, n = O;
1398
+ const r = Ue, n = H;
1405
1399
  En(!0), fe(null);
1406
1400
  try {
1407
1401
  t.call(null);
@@ -1492,7 +1486,7 @@ function Ti(e) {
1492
1486
  }
1493
1487
  function Ai(e, t) {
1494
1488
  if (!(e.f & Yr) && e.f & ee) {
1495
- e.f ^= ee, e.f & W || (U(e, q), Me.ensure().schedule(e));
1489
+ e.f ^= ee, e.f & W || (q(e, R), Me.ensure().schedule(e));
1496
1490
  for (var r = e.first; r !== null; ) {
1497
1491
  var n = r.next, i = (r.f & Rt) !== 0 || (r.f & we) !== 0;
1498
1492
  Ai(r, i ? t : !1), r = n;
@@ -1514,9 +1508,9 @@ let Ue = !1;
1514
1508
  function En(e) {
1515
1509
  Ue = e;
1516
1510
  }
1517
- let O = null, ve = !1;
1511
+ let H = null, ve = !1;
1518
1512
  function fe(e) {
1519
- O = e;
1513
+ H = e;
1520
1514
  }
1521
1515
  let $ = null;
1522
1516
  function Se(e) {
@@ -1524,11 +1518,11 @@ function Se(e) {
1524
1518
  }
1525
1519
  let xe = null;
1526
1520
  function oa(e) {
1527
- O !== null && (O.f & er || O.f & J) && (xe ??= /* @__PURE__ */ new Set()).add(e);
1521
+ H !== null && (H.f & er || H.f & J) && (xe ??= /* @__PURE__ */ new Set()).add(e);
1528
1522
  }
1529
- let re = null, ne = 0, ae = null;
1523
+ let re = null, ne = 0, oe = null;
1530
1524
  function ua(e) {
1531
- ae = e;
1525
+ oe = e;
1532
1526
  }
1533
1527
  let Hi = 1, Qe = 0, Ye = Qe;
1534
1528
  function xn(e) {
@@ -1539,9 +1533,9 @@ function Oi() {
1539
1533
  }
1540
1534
  function jt(e) {
1541
1535
  var t = e.f;
1542
- if (t & q)
1536
+ if (t & R)
1543
1537
  return !0;
1544
- if (t & oe) {
1538
+ if (t & ie) {
1545
1539
  for (var r = (
1546
1540
  /** @type {Value[]} */
1547
1541
  e.deps
@@ -1558,7 +1552,7 @@ function jt(e) {
1558
1552
  }
1559
1553
  t & me && // During time traveling we don't want to reset the status so that
1560
1554
  // traversal of the graph in the other batches still happens
1561
- pe === null && U(e, W);
1555
+ pe === null && q(e, W);
1562
1556
  }
1563
1557
  return !1;
1564
1558
  }
@@ -1572,16 +1566,16 @@ function $i(e, t, r = !0) {
1572
1566
  s,
1573
1567
  t,
1574
1568
  !1
1575
- ) : t === s && (r ? U(s, q) : s.f & W && U(s, oe), an(
1569
+ ) : t === s && (r ? q(s, R) : s.f & W && q(s, ie), an(
1576
1570
  /** @type {Effect} */
1577
1571
  s
1578
1572
  ));
1579
1573
  }
1580
1574
  }
1581
1575
  function Bi(e) {
1582
- var t = re, r = ne, n = ae, i = O, s = xe, o = ge, a = ve, l = Ye, u = e.f;
1576
+ var t = re, r = ne, n = oe, i = H, s = xe, o = ge, a = ve, l = Ye, u = e.f;
1583
1577
  re = /** @type {null | Value[]} */
1584
- null, ne = 0, ae = null, O = u & (we | Be) ? null : e, xe = null, pt(e.ctx), ve = !1, Ye = ++Qe, e.ac !== null && (lr(() => {
1578
+ null, ne = 0, oe = null, H = u & (we | Be) ? null : e, xe = null, pt(e.ctx), ve = !1, Ye = ++Qe, e.ac !== null && (lr(() => {
1585
1579
  e.ac.abort(Gt);
1586
1580
  }), e.ac = null);
1587
1581
  try {
@@ -1592,11 +1586,11 @@ function Bi(e) {
1592
1586
  ), h = f();
1593
1587
  e.f |= Ke;
1594
1588
  var c = wn(e);
1595
- if (ni() && ae !== null && !ve && c !== null && !(e.f & (J | oe | q)))
1589
+ if (ni() && oe !== null && !ve && c !== null && !(e.f & (J | ie | R)))
1596
1590
  for (var p = 0; p < /** @type {Source[]} */
1597
- ae.length; p++)
1591
+ oe.length; p++)
1598
1592
  $i(
1599
- ae[p],
1593
+ oe[p],
1600
1594
  /** @type {Effect} */
1601
1595
  e
1602
1596
  );
@@ -1607,18 +1601,18 @@ function Bi(e) {
1607
1601
  if (t !== null)
1608
1602
  for (const d of t)
1609
1603
  d.rv = Qe;
1610
- ae !== null && (n === null ? n = ae : n.push(.../** @type {Source[]} */
1611
- ae));
1604
+ oe !== null && (n === null ? n = oe : n.push(.../** @type {Source[]} */
1605
+ oe));
1612
1606
  }
1613
1607
  return e.f & ke && (e.f ^= ke), h;
1614
1608
  } catch (d) {
1615
1609
  return wn(e), Zs(d);
1616
1610
  } finally {
1617
- e.f ^= er, re = t, ne = r, ae = n, O = i, xe = s, pt(o), ve = a, Ye = l;
1611
+ e.f ^= er, re = t, ne = r, oe = n, H = i, xe = s, pt(o), ve = a, Ye = l;
1618
1612
  }
1619
1613
  }
1620
1614
  function wn(e) {
1621
- var t = e.deps, r = H?.is_fork;
1615
+ var t = e.deps, r = O?.is_fork;
1622
1616
  if (re !== null) {
1623
1617
  var n;
1624
1618
  if (r || Dt(e, ne), t !== null && ne > 0)
@@ -1650,7 +1644,7 @@ function la(e, t) {
1650
1644
  t
1651
1645
  );
1652
1646
  s.f & me && (s.f ^= me), s.v !== z && tn(s), s.ac !== null && lr(() => {
1653
- s.ac.abort(Gt), s.ac = null, U(s, q);
1647
+ s.ac.abort(Gt), s.ac = null, q(s, R);
1654
1648
  }), zs(s), Dt(s, 0);
1655
1649
  }
1656
1650
  }
@@ -1663,7 +1657,7 @@ function Dt(e, t) {
1663
1657
  function gt(e) {
1664
1658
  var t = e.f;
1665
1659
  if (!(t & Y)) {
1666
- U(e, W);
1660
+ q(e, W);
1667
1661
  var r = $;
1668
1662
  $ = e;
1669
1663
  try {
@@ -1671,24 +1665,24 @@ function gt(e) {
1671
1665
  var n = Bi(e);
1672
1666
  e.teardown = typeof n == "function" ? n : null, e.wv = Hi;
1673
1667
  var i;
1674
- qn && Ds && e.f & q && e.deps;
1668
+ qn && Ds && e.f & R && e.deps;
1675
1669
  } finally {
1676
1670
  $ = r;
1677
1671
  }
1678
1672
  }
1679
1673
  }
1680
- function G(e) {
1674
+ function U(e) {
1681
1675
  var t = e.f, r = (t & J) !== 0;
1682
- if (O !== null && !ve) {
1676
+ if (H !== null && !ve) {
1683
1677
  var n = $ !== null && ($.f & Y) !== 0;
1684
1678
  if (!n && (xe === null || !xe.has(e))) {
1685
- var i = O.deps;
1686
- if (O.f & er)
1679
+ var i = H.deps;
1680
+ if (H.f & er)
1687
1681
  e.rv < Qe && (e.rv = Qe, re === null && i !== null && i[ne] === e ? ne++ : re === null ? re = [e] : re.push(e));
1688
1682
  else {
1689
- O.deps ??= [], Lt.call(O.deps, e) || O.deps.push(e);
1683
+ H.deps ??= [], Lt.call(H.deps, e) || H.deps.push(e);
1690
1684
  var s = e.reactions;
1691
- s === null ? e.reactions = [O] : Lt.call(s, O) || s.push(O);
1685
+ s === null ? e.reactions = [H] : Lt.call(s, H) || s.push(H);
1692
1686
  }
1693
1687
  }
1694
1688
  }
@@ -1703,7 +1697,7 @@ function G(e) {
1703
1697
  var a = o.v;
1704
1698
  return (!(o.f & W) && o.reactions !== null || Pi(o)) && (a = nn(o)), Ee.set(o, a), a;
1705
1699
  }
1706
- var l = (o.f & me) === 0 && !ve && O !== null && (O.f & me) !== 0, u = (o.f & Ke) === 0;
1700
+ var l = (o.f & me) === 0 && !ve && H !== null && (H.f & me) !== 0, u = (o.f & Ke) === 0;
1707
1701
  jt(o) && (l && (o.f |= me), oi(o)), l && !u && (ui(o), Mi(o));
1708
1702
  }
1709
1703
  if (pe?.has(e))
@@ -1787,7 +1781,7 @@ function Sn(e) {
1787
1781
  return s || r;
1788
1782
  }
1789
1783
  });
1790
- var f = O, h = $;
1784
+ var f = H, h = $;
1791
1785
  fe(null), Se(null);
1792
1786
  try {
1793
1787
  for (var c, p = []; s !== null && s !== t; ) {
@@ -1847,7 +1841,7 @@ function Li(e, t) {
1847
1841
  var r = (t & gs) !== 0, n, i = !e.startsWith("<!>");
1848
1842
  return () => {
1849
1843
  if (L)
1850
- return Ir(k, null), k;
1844
+ return Ir(F, null), F;
1851
1845
  n === void 0 && (n = pa(i ? e : "<!>" + e), n = /** @type {TemplateNode} */
1852
1846
  /* @__PURE__ */ mt(n));
1853
1847
  var s = (
@@ -1863,7 +1857,7 @@ function Cr(e, t) {
1863
1857
  /** @type {Effect & { nodes: EffectNodes }} */
1864
1858
  $
1865
1859
  );
1866
- (!(r.f & Ke) || r.nodes.end === null) && (r.nodes.end = k), Jr();
1860
+ (!(r.f & Ke) || r.nodes.end === null) && (r.nodes.end = F), Jr();
1867
1861
  return;
1868
1862
  }
1869
1863
  e !== null && e.before(
@@ -1878,7 +1872,7 @@ function ma(e) {
1878
1872
  function ga(e) {
1879
1873
  let t = 0, r = Ze(0), n;
1880
1874
  return () => {
1881
- ln() && (G(r), yi(() => (t === 0 && (n = Ii(() => e(() => Ct(r)))), t += 1, () => {
1875
+ ln() && (U(r), yi(() => (t === 0 && (n = Ii(() => e(() => Ct(r)))), t += 1, () => {
1882
1876
  Xe(() => {
1883
1877
  t -= 1, t === 0 && (n?.(), n = void 0, Ct(r));
1884
1878
  });
@@ -1902,28 +1896,26 @@ class ya {
1902
1896
  /** @type {TemplateNode} */
1903
1897
  #e;
1904
1898
  /** @type {TemplateNode | null} */
1905
- #r = L ? k : null;
1899
+ #i = L ? F : null;
1906
1900
  /** @type {BoundaryProps} */
1907
- #s;
1901
+ #o;
1908
1902
  /** @type {((anchor: Node) => void)} */
1909
- #d;
1903
+ #u;
1910
1904
  /** @type {Effect} */
1911
- #i;
1905
+ #r;
1912
1906
  /** @type {Effect | null} */
1913
- #a = null;
1907
+ #n = null;
1914
1908
  /** @type {Effect | null} */
1915
- #t = null;
1909
+ #s = null;
1916
1910
  /** @type {Effect | null} */
1917
- #o = null;
1911
+ #t = null;
1918
1912
  /** @type {DocumentFragment | null} */
1919
- #n = null;
1920
- #m = 0;
1921
- #u = 0;
1922
- #l = !1;
1923
- /** @type {Set<Effect>} */
1924
- #h = /* @__PURE__ */ new Set();
1925
- /** @type {Set<Effect>} */
1926
- #g = /* @__PURE__ */ new Set();
1913
+ #a = null;
1914
+ #d = 0;
1915
+ #l = 0;
1916
+ #v = !1;
1917
+ /** @type {Map<Effect, number>} */
1918
+ #g = /* @__PURE__ */ new Map();
1927
1919
  /**
1928
1920
  * A source containing the number of pending async deriveds/expressions.
1929
1921
  * Only created if `$effect.pending()` is used inside the boundary,
@@ -1932,7 +1924,7 @@ class ya {
1932
1924
  * @type {Source<number> | null}
1933
1925
  */
1934
1926
  #f = null;
1935
- #E = ga(() => (this.#f = Ze(this.#m), () => {
1927
+ #m = ga(() => (this.#f = Ze(this.#d), () => {
1936
1928
  this.#f = null;
1937
1929
  }));
1938
1930
  /**
@@ -1942,32 +1934,32 @@ class ya {
1942
1934
  * @param {((error: unknown) => unknown) | undefined} [transform_error]
1943
1935
  */
1944
1936
  constructor(t, r, n, i) {
1945
- this.#e = t, this.#s = r, this.#d = (s) => {
1937
+ this.#e = t, this.#o = r, this.#u = (s) => {
1946
1938
  var o = (
1947
1939
  /** @type {Effect} */
1948
1940
  $
1949
1941
  );
1950
1942
  o.b = this, o.f |= Ar, n(s);
1951
1943
  }, this.parent = /** @type {Effect} */
1952
- $.b, this.transform_error = i ?? this.parent?.transform_error ?? ((s) => s), this.#i = Ei(() => {
1944
+ $.b, this.transform_error = i ?? this.parent?.transform_error ?? ((s) => s), this.#r = Ei(() => {
1953
1945
  if (L) {
1954
1946
  const s = Jn(
1955
1947
  /** @type {TemplateNode} */
1956
- this.#r
1948
+ this.#i
1957
1949
  );
1958
1950
  Jr();
1959
1951
  const o = s === Xr;
1960
1952
  if (s.startsWith(pn)) {
1961
1953
  const l = JSON.parse(s.slice(pn.length));
1962
- this.#_(l);
1963
- } else o ? this.#w() : this.#x();
1954
+ this.#y(l);
1955
+ } else o ? this.#p() : this.#_();
1964
1956
  } else
1965
- this.#p();
1966
- }, _a), L && (this.#e = k);
1957
+ this.#E();
1958
+ }, _a), L && (this.#e = F);
1967
1959
  }
1968
- #x() {
1960
+ #_() {
1969
1961
  try {
1970
- this.#a = _e(() => this.#d(this.#e));
1962
+ this.#n = _e(() => this.#u(this.#e));
1971
1963
  } catch (t) {
1972
1964
  this.error(t);
1973
1965
  }
@@ -1975,9 +1967,9 @@ class ya {
1975
1967
  /**
1976
1968
  * @param {unknown} error The deserialized error from the server's hydration comment
1977
1969
  */
1978
- #_(t) {
1979
- const r = this.#s.failed, { reset: n, invoke_onerror: i } = this.#b(t);
1980
- Xe(i), r && (this.#o = _e(() => {
1970
+ #y(t) {
1971
+ const r = this.#o.failed, { reset: n, invoke_onerror: i } = this.#b(t);
1972
+ Xe(i), r && (this.#t = _e(() => {
1981
1973
  r(
1982
1974
  this.#e,
1983
1975
  () => t,
@@ -1994,82 +1986,82 @@ class ya {
1994
1986
  #b(t) {
1995
1987
  var r = !1, n = !1;
1996
1988
  const i = () => {
1997
- if (!this.#c()) {
1989
+ if (!this.#h()) {
1998
1990
  if (r) {
1999
1991
  Hs();
2000
1992
  return;
2001
1993
  }
2002
- r = !0, n && Rs(), this.#o !== null && ht(this.#o, () => {
2003
- this.#o = null;
2004
- }), this.#v(() => {
2005
- this.#p();
1994
+ r = !0, n && Rs(), this.#t !== null && ht(this.#t, () => {
1995
+ this.#t = null;
1996
+ }), this.#x(() => {
1997
+ this.#E();
2006
1998
  });
2007
1999
  }
2008
2000
  };
2009
2001
  return { reset: i, invoke_onerror: () => {
2010
- if (!this.#c())
2002
+ if (!this.#h())
2011
2003
  try {
2012
- n = !0, this.#s.onerror?.(t, i), n = !1;
2004
+ n = !0, this.#o.onerror?.(t, i), n = !1;
2013
2005
  } catch (o) {
2014
- be(o, this.#i && this.#i.parent);
2006
+ be(o, this.#r && this.#r.parent);
2015
2007
  }
2016
2008
  } };
2017
2009
  }
2018
- #c() {
2019
- return (this.#i.f & (Y | Jt)) !== 0;
2020
- }
2021
- #w() {
2022
- const t = this.#s.pending;
2023
- t && (this.is_pending = !0, this.#t = _e(() => t(this.#e)), Xe(() => {
2024
- if (!this.#c()) {
2025
- var r = this.#n = document.createDocumentFragment(), n = Fe(), i = !1;
2026
- if (r.append(n), this.#a = this.#v(() => {
2010
+ #h() {
2011
+ return (this.#r.f & (Y | Jt)) !== 0;
2012
+ }
2013
+ #p() {
2014
+ const t = this.#o.pending;
2015
+ t && (this.is_pending = !0, this.#s = _e(() => t(this.#e)), Xe(() => {
2016
+ if (!this.#h()) {
2017
+ var r = this.#a = document.createDocumentFragment(), n = Fe(), i = !1;
2018
+ if (r.append(n), this.#n = this.#x(() => {
2027
2019
  try {
2028
- return _e(() => this.#d(n));
2020
+ return _e(() => this.#u(n));
2029
2021
  } catch (s) {
2030
2022
  try {
2031
2023
  this.error(s), i = !0;
2032
2024
  } catch (o) {
2033
- be(o, this.#i.parent);
2025
+ be(o, this.#r.parent);
2034
2026
  }
2035
2027
  return null;
2036
2028
  }
2037
- }), this.#a === null) {
2038
- this.#n = null, i && this.#y(
2029
+ }), this.#n === null) {
2030
+ this.#a = null, i && this.#c(
2039
2031
  /** @type {Batch} */
2040
- H
2032
+ O
2041
2033
  );
2042
2034
  return;
2043
2035
  }
2044
- this.#u === 0 && (this.#e.before(r), this.#n = null, ht(
2036
+ this.#l === 0 && (this.#e.before(r), this.#a = null, ht(
2045
2037
  /** @type {Effect} */
2046
- this.#t,
2038
+ this.#s,
2047
2039
  () => {
2048
- this.#t = null;
2040
+ this.#s = null;
2049
2041
  }
2050
- ), this.#y(
2042
+ ), this.#c(
2051
2043
  /** @type {Batch} */
2052
- H
2044
+ O
2053
2045
  ));
2054
2046
  }
2055
2047
  }));
2056
2048
  }
2057
- #p() {
2049
+ #E() {
2058
2050
  try {
2059
- if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#m = 0, this.#a = _e(() => {
2060
- this.#d(this.#e);
2061
- }), this.#u > 0) {
2062
- var t = this.#n = document.createDocumentFragment();
2063
- Ni(this.#a, t);
2051
+ if (this.is_pending = this.has_pending_snippet(), this.#l = 0, this.#d = 0, this.#n = _e(() => {
2052
+ this.#u(this.#e);
2053
+ }), this.#l > 0) {
2054
+ var t = this.#a = document.createDocumentFragment();
2055
+ Ni(this.#n, t);
2064
2056
  const r = (
2065
2057
  /** @type {(anchor: Node) => void} */
2066
- this.#s.pending
2058
+ this.#o.pending
2067
2059
  );
2068
- this.#t = _e(() => r(this.#e));
2060
+ this.#s = _e(() => r(this.#e));
2069
2061
  } else
2070
- this.#y(
2062
+ this.#c(
2071
2063
  /** @type {Batch} */
2072
- H
2064
+ O
2073
2065
  );
2074
2066
  } catch (r) {
2075
2067
  this.error(r);
@@ -2078,15 +2070,15 @@ class ya {
2078
2070
  /**
2079
2071
  * @param {Batch} batch
2080
2072
  */
2081
- #y(t) {
2082
- this.is_pending = !1, t.transfer_effects(this.#h, this.#g);
2073
+ #c(t) {
2074
+ this.is_pending = !1, t.transfer_reactions(this.#g);
2083
2075
  }
2084
2076
  /**
2085
2077
  * Defer an effect inside a pending boundary until the boundary resolves
2086
2078
  * @param {Effect} effect
2087
2079
  */
2088
2080
  defer_effect(t) {
2089
- si(t, this.#h, this.#g);
2081
+ si(t, this.#g);
2090
2082
  }
2091
2083
  /**
2092
2084
  * Returns `false` if the effect exists inside a boundary whose pending snippet is shown
@@ -2096,15 +2088,15 @@ class ya {
2096
2088
  return !this.is_pending && (!this.parent || this.parent.is_rendered());
2097
2089
  }
2098
2090
  has_pending_snippet() {
2099
- return !!this.#s.pending;
2091
+ return !!this.#o.pending;
2100
2092
  }
2101
2093
  /**
2102
2094
  * @template T
2103
2095
  * @param {() => T} fn
2104
2096
  */
2105
- #v(t) {
2106
- var r = $, n = O, i = ge;
2107
- Se(this.#i), fe(this.#i), pt(this.#i.ctx);
2097
+ #x(t) {
2098
+ var r = $, n = H, i = ge;
2099
+ Se(this.#r), fe(this.#r), pt(this.#r.ctx);
2108
2100
  try {
2109
2101
  return Me.ensure(), t();
2110
2102
  } finally {
@@ -2117,14 +2109,14 @@ class ya {
2117
2109
  * @param {1 | -1} d
2118
2110
  * @param {Batch} batch
2119
2111
  */
2120
- #S(t, r) {
2112
+ #w(t, r) {
2121
2113
  if (!this.has_pending_snippet()) {
2122
- this.parent && this.parent.#S(t, r);
2114
+ this.parent && this.parent.#w(t, r);
2123
2115
  return;
2124
2116
  }
2125
- this.#u += t, this.#u === 0 && (this.#y(r), this.#t && ht(this.#t, () => {
2126
- this.#t = null;
2127
- }), this.#n && (this.#e.before(this.#n), this.#n = null));
2117
+ this.#l += t, this.#l === 0 && (this.#c(r), this.#s && ht(this.#s, () => {
2118
+ this.#s = null;
2119
+ }), this.#a && (this.#e.before(this.#a), this.#a = null));
2128
2120
  }
2129
2121
  /**
2130
2122
  * Update the source that powers `$effect.pending()` inside this boundary,
@@ -2134,37 +2126,37 @@ class ya {
2134
2126
  * @param {Batch} batch
2135
2127
  */
2136
2128
  update_pending_count(t, r) {
2137
- this.#S(t, r), this.#m += t, !(!this.#f || this.#l) && (this.#l = !0, Xe(() => {
2138
- this.#l = !1, this.#f && vt(this.#f, this.#m);
2129
+ this.#w(t, r), this.#d += t, !(!this.#f || this.#v) && (this.#v = !0, Xe(() => {
2130
+ this.#v = !1, this.#f && vt(this.#f, this.#d);
2139
2131
  }));
2140
2132
  }
2141
2133
  get_effect_pending() {
2142
- return this.#E(), G(
2134
+ return this.#m(), U(
2143
2135
  /** @type {Source<number>} */
2144
2136
  this.#f
2145
2137
  );
2146
2138
  }
2147
2139
  /** @param {unknown} error */
2148
2140
  error(t) {
2149
- if (t === Ge || !this.#s.onerror && !this.#s.failed)
2141
+ if (t === Ge || !this.#o.onerror && !this.#o.failed)
2150
2142
  throw t;
2151
- H?.is_fork ? (this.#a && H.skip_effect(this.#a), this.#t && H.skip_effect(this.#t), this.#o && H.skip_effect(this.#o), H.oncommit(() => {
2152
- this.#c() || this.#T(t);
2153
- })) : this.#T(t);
2143
+ O?.is_fork ? (this.#n && O.skip_effect(this.#n), this.#s && O.skip_effect(this.#s), this.#t && O.skip_effect(this.#t), O.oncommit(() => {
2144
+ this.#h() || this.#S(t);
2145
+ })) : this.#S(t);
2154
2146
  }
2155
2147
  /**
2156
2148
  * @param {unknown} error
2157
2149
  */
2158
- #T(t) {
2159
- this.#a && (le(this.#a), this.#a = null), this.#t && (le(this.#t), this.#t = null), this.#o && (le(this.#o), this.#o = null), L && (ue(
2150
+ #S(t) {
2151
+ this.#n && (le(this.#n), this.#n = null), this.#s && (le(this.#s), this.#s = null), this.#t && (le(this.#t), this.#t = null), L && (ue(
2160
2152
  /** @type {TemplateNode} */
2161
- this.#r
2153
+ this.#i
2162
2154
  ), Os(), ue(Or()));
2163
- let r = this.#s.failed;
2155
+ let r = this.#o.failed;
2164
2156
  const n = (i) => {
2165
- if (this.#c()) return;
2157
+ if (this.#h()) return;
2166
2158
  const { reset: s, invoke_onerror: o } = this.#b(i);
2167
- o(), r && !this.#c() && (this.#o = this.#v(() => {
2159
+ o(), r && !this.#h() && (this.#t = this.#x(() => {
2168
2160
  try {
2169
2161
  return _e(() => {
2170
2162
  var a = (
@@ -2181,25 +2173,25 @@ class ya {
2181
2173
  return be(
2182
2174
  a,
2183
2175
  /** @type {Effect} */
2184
- this.#i.parent
2176
+ this.#r.parent
2185
2177
  ), null;
2186
2178
  }
2187
2179
  }));
2188
2180
  };
2189
2181
  Xe(() => {
2190
- if (!this.#c()) {
2182
+ if (!this.#h()) {
2191
2183
  var i;
2192
2184
  try {
2193
2185
  i = this.transform_error(t);
2194
2186
  } catch (s) {
2195
- be(s, this.#i && this.#i.parent);
2187
+ be(s, this.#r && this.#r.parent);
2196
2188
  return;
2197
2189
  }
2198
2190
  i !== null && typeof i == "object" && typeof /** @type {any} */
2199
2191
  i.then == "function" ? i.then(
2200
2192
  n,
2201
2193
  /** @param {unknown} e */
2202
- (s) => be(s, this.#i && this.#i.parent)
2194
+ (s) => be(s, this.#r && this.#r.parent)
2203
2195
  ) : n(i);
2204
2196
  }
2205
2197
  });
@@ -2215,7 +2207,7 @@ function Ri(e, t) {
2215
2207
  }
2216
2208
  function Ea(e, t) {
2217
2209
  Mr(), t.intro = t.intro ?? !1;
2218
- const r = t.target, n = L, i = k;
2210
+ const r = t.target, n = L, i = F;
2219
2211
  try {
2220
2212
  for (var s = /* @__PURE__ */ mt(r); s && (s.nodeType !== Ut || /** @type {Comment} */
2221
2213
  s.data !== jn); )
@@ -2260,8 +2252,8 @@ function Di(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
2260
2252
  /** @type {TemplateNode} */
2261
2253
  p,
2262
2254
  null
2263
- ), l = e(p, n) || ri(), L && ($.nodes.end = k, k === null || k.nodeType !== Ut || /** @type {Comment} */
2264
- k.data !== Qr))
2255
+ ), l = e(p, n) || ri(), L && ($.nodes.end = F, F === null || F.nodeType !== Ut || /** @type {Comment} */
2256
+ F.data !== Qr))
2265
2257
  throw ur(), Ge;
2266
2258
  en();
2267
2259
  },
@@ -2388,7 +2380,7 @@ function Ta(e, t, r, n, i, s = null) {
2388
2380
  function p(b) {
2389
2381
  if (!(B.effect.f & Y)) {
2390
2382
  B.pending.delete(b);
2391
- var T = G(f);
2383
+ var T = U(f);
2392
2384
  B.fallback = u, Aa(B, T, o, t, n), u !== null && (T.length === 0 ? u.f & He ? (u.f ^= He, Mt(u, null, o)) : Ti(u) : ht(u, () => {
2393
2385
  u = null;
2394
2386
  }));
@@ -2400,22 +2392,22 @@ function Ta(e, t, r, n, i, s = null) {
2400
2392
  var y = Ei(() => {
2401
2393
  var b = (
2402
2394
  /** @type {V[]} */
2403
- G(f)
2395
+ U(f)
2404
2396
  ), T = b.length;
2405
2397
  let M = !1;
2406
2398
  if (L) {
2407
2399
  var Q = Jn(o) === Xr;
2408
2400
  Q !== (T === 0) && (o = Or(), ue(o), ze(!1), M = !0);
2409
2401
  }
2410
- for (var P = /* @__PURE__ */ new Set(), R = (
2402
+ for (var P = /* @__PURE__ */ new Set(), D = (
2411
2403
  /** @type {Batch} */
2412
- H
2413
- ), ie = Ys(), V = 0; V < T; V += 1) {
2414
- L && k.nodeType === Ut && /** @type {Comment} */
2415
- k.data === Qr && (o = /** @type {Comment} */
2416
- k, M = !0, ze(!1));
2404
+ O
2405
+ ), se = Ys(), V = 0; V < T; V += 1) {
2406
+ L && F.nodeType === Ut && /** @type {Comment} */
2407
+ F.data === Qr && (o = /** @type {Comment} */
2408
+ F, M = !0, ze(!1));
2417
2409
  var he = b[V], I = n(he, V), x = c ? null : a.get(I);
2418
- x ? (x.v && vt(x.v, he), x.i && vt(x.i, V), ie && R.unskip_effect(x.e)) : (x = Na(
2410
+ x ? (x.v && vt(x.v, he), x.i && vt(x.i, V), se && D.unskip_effect(x.e)) : (x = Na(
2419
2411
  a,
2420
2412
  c ? o : An ??= Fe(),
2421
2413
  he,
@@ -2427,15 +2419,15 @@ function Ta(e, t, r, n, i, s = null) {
2427
2419
  ), c || (x.e.f |= He), a.set(I, x)), P.add(I);
2428
2420
  }
2429
2421
  if (T === 0 && s && !u && (c ? u = _e(() => s(o)) : (u = _e(() => s(An ??= Fe())), u.f |= He)), T > P.size && Bs(), L && T > 0 && ue(Or()), !c)
2430
- if (h.set(R, P), ie) {
2422
+ if (h.set(D, P), se) {
2431
2423
  for (const [Ie, rt] of a)
2432
- P.has(Ie) || R.skip_effect(rt.e);
2433
- R.oncommit(p), R.ondiscard(d);
2424
+ P.has(Ie) || D.skip_effect(rt.e);
2425
+ D.oncommit(p), D.ondiscard(d);
2434
2426
  } else
2435
- p(R);
2436
- M && ze(!0), G(f);
2427
+ p(D);
2428
+ M && ze(!0), U(f);
2437
2429
  }), B = { effect: y, items: a, pending: h, outrogroups: null, fallback: u };
2438
- c = !1, L && (o = k);
2430
+ c = !1, L && (o = F);
2439
2431
  }
2440
2432
  function Nt(e) {
2441
2433
  for (; e !== null && !(e.f & we); )
@@ -2491,10 +2483,10 @@ function Aa(e, t, r, n, i) {
2491
2483
  d.f & ee || P.push(d);
2492
2484
  for (; a !== null; )
2493
2485
  !(a.f & ee) && a !== e.fallback && P.push(a), a = Nt(a.next);
2494
- var R = P.length;
2495
- if (R > 0) {
2496
- var ie = s === 0 ? r : null;
2497
- Sa(e, P, ie);
2486
+ var D = P.length;
2487
+ if (D > 0) {
2488
+ var se = s === 0 ? r : null;
2489
+ Sa(e, P, se);
2498
2490
  }
2499
2491
  }
2500
2492
  }
@@ -2580,7 +2572,9 @@ function Hn(e, t, r, n, i, s) {
2580
2572
  const $a = Symbol("is custom element"), Ba = Symbol("is html");
2581
2573
  function Ma(e, t, r, n) {
2582
2574
  var i = Pa(e);
2583
- L && (i[t] = e.getAttribute(t)), i[t] !== (i[t] = r) && (r == null ? e.removeAttribute(t) : typeof r != "string" && Ia(e).has(t) ? e[t] = r : e.setAttribute(t, r));
2575
+ L && (i[t] = e.getAttribute(t));
2576
+ var s = i[t];
2577
+ s !== (i[t] = r) && (r == null ? e.removeAttribute(t) : typeof r != "string" && Ia(e).has(t) ? e[t] = r : L && (typeof r == "number" || typeof r == "boolean") && s === String(r) || e.setAttribute(t, r));
2584
2578
  }
2585
2579
  function Pa(e) {
2586
2580
  return (
@@ -2707,7 +2701,7 @@ function Ra(e, t, r) {
2707
2701
  i ? n.source.v = s : ce(n.source, s);
2708
2702
  }), i = !1;
2709
2703
  }
2710
- return e && Dr in r ? La(e) : G(n.source);
2704
+ return e && Dr in r ? La(e) : U(n.source);
2711
2705
  }
2712
2706
  function Da() {
2713
2707
  const e = {};
@@ -2747,10 +2741,10 @@ function Re(e, t, r, n) {
2747
2741
  /** @type {() => V} */
2748
2742
  function(c, p) {
2749
2743
  if (arguments.length > 0) {
2750
- const d = p ? G(f) : c;
2744
+ const d = p ? U(f) : c;
2751
2745
  return ce(f, d), u = !0, i !== void 0 && (i = d), c;
2752
2746
  }
2753
- return Ue && u || h.f & Y ? f.v : G(f);
2747
+ return Ue && u || h.f & Y ? f.v : U(f);
2754
2748
  }
2755
2749
  );
2756
2750
  }
@@ -2761,7 +2755,7 @@ class Fa {
2761
2755
  /** @type {any} */
2762
2756
  #e;
2763
2757
  /** @type {Record<string, any>} */
2764
- #r;
2758
+ #i;
2765
2759
  /**
2766
2760
  * @param {ComponentConstructorOptions & {
2767
2761
  * component: any;
@@ -2776,17 +2770,17 @@ class Fa {
2776
2770
  { ...t.props || {}, $$events: {} },
2777
2771
  {
2778
2772
  get(s, o) {
2779
- return G(r.get(o) ?? n(o, Reflect.get(s, o)));
2773
+ return U(r.get(o) ?? n(o, Reflect.get(s, o)));
2780
2774
  },
2781
2775
  has(s, o) {
2782
- return o === Ts ? !0 : (G(r.get(o) ?? n(o, Reflect.get(s, o))), Reflect.has(s, o));
2776
+ return o === Ts ? !0 : (U(r.get(o) ?? n(o, Reflect.get(s, o))), Reflect.has(s, o));
2783
2777
  },
2784
2778
  set(s, o, a) {
2785
2779
  return ce(r.get(o) ?? n(o, a), a), Reflect.set(s, o, a);
2786
2780
  }
2787
2781
  }
2788
2782
  );
2789
- this.#r = (t.hydrate ? Ea : Ri)(t.component, {
2783
+ this.#i = (t.hydrate ? Ea : Ri)(t.component, {
2790
2784
  target: t.target,
2791
2785
  anchor: t.anchor,
2792
2786
  props: i,
@@ -2795,27 +2789,27 @@ class Fa {
2795
2789
  recover: t.recover,
2796
2790
  transformError: t.transformError
2797
2791
  }), (!t?.props?.$$host || t.sync === !1) && Oe(), this.#e = i.$$events;
2798
- for (const s of Object.keys(this.#r))
2792
+ for (const s of Object.keys(this.#i))
2799
2793
  s === "$set" || s === "$destroy" || s === "$on" || ct(this, s, {
2800
2794
  get() {
2801
- return this.#r[s];
2795
+ return this.#i[s];
2802
2796
  },
2803
2797
  /** @param {any} value */
2804
2798
  set(o) {
2805
- this.#r[s] = o;
2799
+ this.#i[s] = o;
2806
2800
  },
2807
2801
  enumerable: !0
2808
2802
  });
2809
- this.#r.$set = /** @param {Record<string, any>} next */
2803
+ this.#i.$set = /** @param {Record<string, any>} next */
2810
2804
  (s) => {
2811
2805
  Object.assign(i, s);
2812
- }, this.#r.$destroy = () => {
2813
- xa(this.#r);
2806
+ }, this.#i.$destroy = () => {
2807
+ xa(this.#i);
2814
2808
  };
2815
2809
  }
2816
2810
  /** @param {Record<string, any>} props */
2817
2811
  $set(t) {
2818
- this.#r.$set(t);
2812
+ this.#i.$set(t);
2819
2813
  }
2820
2814
  /**
2821
2815
  * @param {string} event
@@ -2833,7 +2827,7 @@ class Fa {
2833
2827
  };
2834
2828
  }
2835
2829
  $destroy() {
2836
- this.#r.$destroy();
2830
+ this.#i.$destroy();
2837
2831
  }
2838
2832
  }
2839
2833
  let ki;
@@ -3067,21 +3061,21 @@ var qa = { exports: {} };
3067
3061
  return { M: h, y: p, w: f, d: u, D: d, h: l, m: a, s: o, ms: s, Q: c }[E] || String(E || "").toLowerCase().replace(/s$/, "");
3068
3062
  }, u: function(E) {
3069
3063
  return E === void 0;
3070
- } }, P = "en", R = {};
3071
- R[P] = T;
3072
- var ie = "$isDayjsObject", V = function(E) {
3073
- return E instanceof Ie || !(!E || !E[ie]);
3064
+ } }, P = "en", D = {};
3065
+ D[P] = T;
3066
+ var se = "$isDayjsObject", V = function(E) {
3067
+ return E instanceof Ie || !(!E || !E[se]);
3074
3068
  }, he = function E(m, v, _) {
3075
3069
  var g;
3076
3070
  if (!m) return P;
3077
3071
  if (typeof m == "string") {
3078
3072
  var w = m.toLowerCase();
3079
- R[w] && (g = w), v && (R[w] = v, g = w);
3073
+ D[w] && (g = w), v && (D[w] = v, g = w);
3080
3074
  var S = m.split("-");
3081
3075
  if (!g && S.length > 1) return E(S[0]);
3082
3076
  } else {
3083
3077
  var C = m.name;
3084
- R[C] = m, g = C;
3078
+ D[C] = m, g = C;
3085
3079
  }
3086
3080
  return !_ && g && (P = g), g || !_ && P;
3087
3081
  }, I = function(E, m) {
@@ -3094,7 +3088,7 @@ var qa = { exports: {} };
3094
3088
  };
3095
3089
  var Ie = function() {
3096
3090
  function E(v) {
3097
- this.$L = he(v.locale, null, !0), this.parse(v), this.$x = this.$x || v.x || {}, this[ie] = !0;
3091
+ this.$L = he(v.locale, null, !0), this.parse(v), this.$x = this.$x || v.x || {}, this[se] = !0;
3098
3092
  }
3099
3093
  var m = E.prototype;
3100
3094
  return m.parse = function(v) {
@@ -3138,7 +3132,7 @@ var qa = { exports: {} };
3138
3132
  return w ? Ce : Ce.endOf(u);
3139
3133
  }, j = function(qe, te) {
3140
3134
  return x.w(g.toDate()[qe].apply(g.toDate("s"), (w ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(te)), g);
3141
- }, X = this.$W, Z = this.$M, se = this.$D, nt = "set" + (this.$u ? "UTC" : "");
3135
+ }, X = this.$W, Z = this.$M, ae = this.$D, nt = "set" + (this.$u ? "UTC" : "");
3142
3136
  switch (S) {
3143
3137
  case p:
3144
3138
  return w ? C(1, 0) : C(31, 11);
@@ -3146,7 +3140,7 @@ var qa = { exports: {} };
3146
3140
  return w ? C(1, Z) : C(0, Z + 1);
3147
3141
  case f:
3148
3142
  var je = this.$locale().weekStart || 0, Tt = (X < je ? X + 7 : X) - je;
3149
- return C(w ? se - Tt : se + (6 - Tt), Z);
3143
+ return C(w ? ae - Tt : ae + (6 - Tt), Z);
3150
3144
  case u:
3151
3145
  case d:
3152
3146
  return j(nt + "Hours", 0);
@@ -3176,8 +3170,8 @@ var qa = { exports: {} };
3176
3170
  var g, w = this;
3177
3171
  v = Number(v);
3178
3172
  var S = x.p(_), C = function(Z) {
3179
- var se = I(w);
3180
- return x.w(se.date(se.date() + Math.round(Z * v)), w);
3173
+ var ae = I(w);
3174
+ return x.w(ae.date(ae.date() + Math.round(Z * v)), w);
3181
3175
  };
3182
3176
  if (S === h) return this.set(h, this.$M + v);
3183
3177
  if (S === p) return this.set(p, this.$y + v);
@@ -3190,7 +3184,7 @@ var qa = { exports: {} };
3190
3184
  }, m.format = function(v) {
3191
3185
  var _ = this, g = this.$locale();
3192
3186
  if (!this.isValid()) return g.invalidDate || y;
3193
- var w = v || "YYYY-MM-DDTHH:mm:ssZ", S = x.z(this), C = this.$H, j = this.$m, X = this.$M, Z = g.weekdays, se = g.months, nt = g.meridiem, je = function(te, Ce, At, qt) {
3187
+ var w = v || "YYYY-MM-DDTHH:mm:ssZ", S = x.z(this), C = this.$H, j = this.$m, X = this.$M, Z = g.weekdays, ae = g.months, nt = g.meridiem, je = function(te, Ce, At, qt) {
3194
3188
  return te && (te[Ce] || te(_, w)) || At[Ce].slice(0, qt);
3195
3189
  }, Tt = function(te) {
3196
3190
  return x.s(C % 12 || 12, te, "0");
@@ -3210,9 +3204,9 @@ var qa = { exports: {} };
3210
3204
  case "MM":
3211
3205
  return x.s(X + 1, 2, "0");
3212
3206
  case "MMM":
3213
- return je(g.monthsShort, X, se, 3);
3207
+ return je(g.monthsShort, X, ae, 3);
3214
3208
  case "MMMM":
3215
- return je(se, X);
3209
+ return je(ae, X);
3216
3210
  case "D":
3217
3211
  return _.$D;
3218
3212
  case "DD":
@@ -3256,18 +3250,18 @@ var qa = { exports: {} };
3256
3250
  }, m.utcOffset = function() {
3257
3251
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
3258
3252
  }, m.diff = function(v, _, g) {
3259
- var w, S = this, C = x.p(_), j = I(v), X = (j.utcOffset() - this.utcOffset()) * n, Z = this - j, se = function() {
3253
+ var w, S = this, C = x.p(_), j = I(v), X = (j.utcOffset() - this.utcOffset()) * n, Z = this - j, ae = function() {
3260
3254
  return x.m(S, j);
3261
3255
  };
3262
3256
  switch (C) {
3263
3257
  case p:
3264
- w = se() / 12;
3258
+ w = ae() / 12;
3265
3259
  break;
3266
3260
  case h:
3267
- w = se();
3261
+ w = ae();
3268
3262
  break;
3269
3263
  case c:
3270
- w = se() / 3;
3264
+ w = ae() / 3;
3271
3265
  break;
3272
3266
  case f:
3273
3267
  w = (Z - X) / 6048e5;
@@ -3291,7 +3285,7 @@ var qa = { exports: {} };
3291
3285
  }, m.daysInMonth = function() {
3292
3286
  return this.endOf(h).$D;
3293
3287
  }, m.$locale = function() {
3294
- return R[this.$L];
3288
+ return D[this.$L];
3295
3289
  }, m.locale = function(v, _) {
3296
3290
  if (!v) return this.$L;
3297
3291
  var g = this.clone(), w = he(v, _, !0);
@@ -3316,7 +3310,7 @@ var qa = { exports: {} };
3316
3310
  return E.$i || (E(m, Ie, I), E.$i = !0), I;
3317
3311
  }, I.locale = he, I.isDayjs = V, I.unix = function(E) {
3318
3312
  return I(1e3 * E);
3319
- }, I.en = R[P], I.Ls = R, I.p = {}, I;
3313
+ }, I.en = D[P], I.Ls = D, I.p = {}, I;
3320
3314
  });
3321
3315
  })(qa);
3322
3316
  var Va = function(t) {
@@ -3489,40 +3483,40 @@ var A;
3489
3483
  (function(e) {
3490
3484
  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";
3491
3485
  })(A || (A = {}));
3492
- var D;
3486
+ var k;
3493
3487
  (function(e) {
3494
3488
  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";
3495
- })(D || (D = {}));
3489
+ })(k || (k = {}));
3496
3490
  var bt;
3497
3491
  (function(e) {
3498
3492
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
3499
3493
  })(bt || (bt = {}));
3500
3494
  function Bn(e) {
3501
- return e.type === D.literal;
3495
+ return e.type === k.literal;
3502
3496
  }
3503
3497
  function vo(e) {
3504
- return e.type === D.argument;
3498
+ return e.type === k.argument;
3505
3499
  }
3506
3500
  function qi(e) {
3507
- return e.type === D.number;
3501
+ return e.type === k.number;
3508
3502
  }
3509
3503
  function Vi(e) {
3510
- return e.type === D.date;
3504
+ return e.type === k.date;
3511
3505
  }
3512
3506
  function zi(e) {
3513
- return e.type === D.time;
3507
+ return e.type === k.time;
3514
3508
  }
3515
3509
  function Wi(e) {
3516
- return e.type === D.select;
3510
+ return e.type === k.select;
3517
3511
  }
3518
3512
  function Xi(e) {
3519
- return e.type === D.plural;
3513
+ return e.type === k.plural;
3520
3514
  }
3521
3515
  function mo(e) {
3522
- return e.type === D.pound;
3516
+ return e.type === k.pound;
3523
3517
  }
3524
3518
  function Qi(e) {
3525
- return e.type === D.tag;
3519
+ return e.type === k.tag;
3526
3520
  }
3527
3521
  function Yi(e) {
3528
3522
  return !!(e && typeof e == "object" && e.type === bt.number);
@@ -3622,14 +3616,14 @@ function _o(e) {
3622
3616
  return "";
3623
3617
  }), t;
3624
3618
  }
3625
- var F = function() {
3626
- return F = Object.assign || function(t) {
3619
+ var G = function() {
3620
+ return G = Object.assign || function(t) {
3627
3621
  for (var r, n = 1, i = arguments.length; n < i; n++) {
3628
3622
  r = arguments[n];
3629
3623
  for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
3630
3624
  }
3631
3625
  return t;
3632
- }, F.apply(this, arguments);
3626
+ }, G.apply(this, arguments);
3633
3627
  };
3634
3628
  var bo = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
3635
3629
  function yo(e) {
@@ -3753,13 +3747,13 @@ function So(e) {
3753
3747
  t.notation = "compact", t.compactDisplay = "long";
3754
3748
  continue;
3755
3749
  case "scientific":
3756
- t = F(F(F({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
3757
- return F(F({}, l), In(u));
3750
+ t = G(G(G({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
3751
+ return G(G({}, l), In(u));
3758
3752
  }, {}));
3759
3753
  continue;
3760
3754
  case "engineering":
3761
- t = F(F(F({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
3762
- return F(F({}, l), In(u));
3755
+ t = G(G(G({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
3756
+ return G(G({}, l), In(u));
3763
3757
  }, {}));
3764
3758
  continue;
3765
3759
  case "notation-simple":
@@ -3828,17 +3822,17 @@ function So(e) {
3828
3822
  return f === "*" ? t.minimumFractionDigits = u.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
3829
3823
  });
3830
3824
  var s = i.options[0];
3831
- s === "w" ? t = F(F({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = F(F({}, t), Pn(s)));
3825
+ s === "w" ? t = G(G({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = G(G({}, t), Pn(s)));
3832
3826
  continue;
3833
3827
  }
3834
3828
  if (Ji.test(i.stem)) {
3835
- t = F(F({}, t), Pn(i.stem));
3829
+ t = G(G({}, t), Pn(i.stem));
3836
3830
  continue;
3837
3831
  }
3838
3832
  var o = es(i.stem);
3839
- o && (t = F(F({}, t), o));
3833
+ o && (t = G(G({}, t), o));
3840
3834
  var a = wo(i.stem);
3841
- a && (t = F(F({}, t), a));
3835
+ a && (t = G(G({}, t), a));
3842
3836
  }
3843
3837
  return t;
3844
3838
  }
@@ -5422,7 +5416,7 @@ var Fo = (
5422
5416
  if (s === 35 && (r === "plural" || r === "selectordinal")) {
5423
5417
  var a = this.clonePosition();
5424
5418
  this.bump(), i.push({
5425
- type: D.pound,
5419
+ type: k.pound,
5426
5420
  location: N(a, this.clonePosition())
5427
5421
  });
5428
5422
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
@@ -5450,7 +5444,7 @@ var Fo = (
5450
5444
  if (this.bumpSpace(), this.bumpIf("/>"))
5451
5445
  return {
5452
5446
  val: {
5453
- type: D.literal,
5447
+ type: k.literal,
5454
5448
  value: "<".concat(i, "/>"),
5455
5449
  location: N(n, this.clonePosition())
5456
5450
  },
@@ -5467,7 +5461,7 @@ var Fo = (
5467
5461
  var l = this.clonePosition(), u = this.parseTagName();
5468
5462
  return i !== u ? this.error(A.UNMATCHED_CLOSING_TAG, N(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
5469
5463
  val: {
5470
- type: D.tag,
5464
+ type: k.tag,
5471
5465
  value: i,
5472
5466
  children: o,
5473
5467
  location: N(n, this.clonePosition())
@@ -5504,7 +5498,7 @@ var Fo = (
5504
5498
  }
5505
5499
  var l = N(n, this.clonePosition());
5506
5500
  return {
5507
- val: { type: D.literal, value: i, location: l },
5501
+ val: { type: k.literal, value: i, location: l },
5508
5502
  err: null
5509
5503
  };
5510
5504
  }, e.prototype.tryParseLeftAngleBracket = function() {
@@ -5564,7 +5558,7 @@ var Fo = (
5564
5558
  case 125:
5565
5559
  return this.bump(), {
5566
5560
  val: {
5567
- type: D.argument,
5561
+ type: k.argument,
5568
5562
  // value does not include the opening and closing braces.
5569
5563
  value: i,
5570
5564
  location: N(n, this.clonePosition())
@@ -5611,7 +5605,7 @@ var Fo = (
5611
5605
  if (a === "number") {
5612
5606
  var h = this.parseNumberSkeletonFromString(B, u.styleLocation);
5613
5607
  return h.err ? h : {
5614
- val: { type: D.number, value: n, location: y, style: h.val },
5608
+ val: { type: k.number, value: n, location: y, style: h.val },
5615
5609
  err: null
5616
5610
  };
5617
5611
  } else {
@@ -5624,7 +5618,7 @@ var Fo = (
5624
5618
  pattern: b,
5625
5619
  location: u.styleLocation,
5626
5620
  parsedOptions: this.shouldParseSkeletons ? _o(b) : {}
5627
- }, T = a === "date" ? D.date : D.time;
5621
+ }, T = a === "date" ? k.date : k.time;
5628
5622
  return {
5629
5623
  val: { type: T, value: n, location: y, style: c },
5630
5624
  err: null
@@ -5633,7 +5627,7 @@ var Fo = (
5633
5627
  }
5634
5628
  return {
5635
5629
  val: {
5636
- type: a === "number" ? D.number : a === "date" ? D.date : D.time,
5630
+ type: a === "number" ? k.number : a === "date" ? k.date : k.time,
5637
5631
  value: n,
5638
5632
  location: y,
5639
5633
  style: (s = u?.style) !== null && s !== void 0 ? s : null
@@ -5658,29 +5652,29 @@ var Fo = (
5658
5652
  return h;
5659
5653
  this.bumpSpace(), Q = this.parseIdentifierIfPossible(), P = h.val;
5660
5654
  }
5661
- var R = this.tryParsePluralOrSelectOptions(t, a, r, Q);
5662
- if (R.err)
5663
- return R;
5655
+ var D = this.tryParsePluralOrSelectOptions(t, a, r, Q);
5656
+ if (D.err)
5657
+ return D;
5664
5658
  var d = this.tryParseArgumentClose(i);
5665
5659
  if (d.err)
5666
5660
  return d;
5667
- var ie = N(i, this.clonePosition());
5661
+ var se = N(i, this.clonePosition());
5668
5662
  return a === "select" ? {
5669
5663
  val: {
5670
- type: D.select,
5664
+ type: k.select,
5671
5665
  value: n,
5672
- options: Ln(R.val),
5673
- location: ie
5666
+ options: Ln(D.val),
5667
+ location: se
5674
5668
  },
5675
5669
  err: null
5676
5670
  } : {
5677
5671
  val: {
5678
- type: D.plural,
5672
+ type: k.plural,
5679
5673
  value: n,
5680
- options: Ln(R.val),
5674
+ options: Ln(D.val),
5681
5675
  offset: P,
5682
5676
  pluralType: a === "plural" ? "cardinal" : "ordinal",
5683
- location: ie
5677
+ location: se
5684
5678
  },
5685
5679
  err: null
5686
5680
  };
@@ -6612,7 +6606,7 @@ function hs(e, t) {
6612
6606
  });
6613
6607
  let h = /* @__PURE__ */ Ae(ot(Object.fromEntries(f.map((b, T) => [T, u]))));
6614
6608
  const c = (b) => {
6615
- ce(h, { ...G(h), [b]: !G(h)[b] }, !0);
6609
+ ce(h, { ...U(h), [b]: !U(h)[b] }, !0);
6616
6610
  };
6617
6611
  var p = {
6618
6612
  get apiEndpoint() {
@@ -6641,7 +6635,7 @@ function hs(e, t) {
6641
6635
  }
6642
6636
  }, d = Lu(), y = $t(d);
6643
6637
  Ta(y, 21, () => f, wa, (b, T, M) => {
6644
- var Q = Cu(), P = $t(Q), R = $t(P), ie = bn(R, !0), V = yn(R, 2);
6638
+ var Q = Cu(), P = $t(Q), D = $t(P), se = bn(D, !0), V = yn(D, 2);
6645
6639
  let he;
6646
6640
  at(P);
6647
6641
  var I = yn(P, 2);
@@ -6649,11 +6643,11 @@ function hs(e, t) {
6649
6643
  var Ie = $t(I), rt = bn(Ie, !0);
6650
6644
  at(I), at(Q), ia(
6651
6645
  (E, m) => {
6652
- Ma(P, "aria-expanded", !!G(h)[M]), Tn(ie, E), he = Hn(V, 1, "faq__icon", null, he, { "faq__icon--open": G(h)[M] }), x = Hn(I, 1, "faq__answer-wrapper", null, x, { open: G(h)[M] }), Tn(rt, m);
6646
+ Ma(P, "aria-expanded", !!U(h)[M]), Tn(se, E), he = Hn(V, 1, "faq__icon", null, he, { "faq__icon--open": U(h)[M] }), x = Hn(I, 1, "faq__answer-wrapper", null, x, { open: U(h)[M] }), Tn(rt, m);
6653
6647
  },
6654
6648
  [
6655
- () => r()(G(T).questionKey, { values: { operatorName: o() } }),
6656
- () => r()(G(T).answerKey, { values: { operatorName: o() } })
6649
+ () => r()(U(T).questionKey, { values: { operatorName: o() } }),
6650
+ () => r()(U(T).answerKey, { values: { operatorName: o() } })
6657
6651
  ]
6658
6652
  ), fa("click", P, () => c(M)), Cr(b, Q);
6659
6653
  }), at(y), at(d), Cr(e, d);