@pie-players/pie-section-player-tools-session-debugger 0.3.34 → 0.3.36

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.
@@ -61,14 +61,15 @@
61
61
 
62
62
  type ToolkitCoordinatorLike = {
63
63
  getSectionController?: (args: { sectionId: string; attemptId?: string }) => SectionControllerLike | undefined;
64
+ // Phase D (>=0.3.35): subscribe* helpers follow the toolkit's
65
+ // active section cohort automatically and do not accept
66
+ // sectionId / attemptId arguments. The session panel keeps
67
+ // `sectionId` + `attemptId` in `subscriptionTarget` purely to
68
+ // gate same-target re-subscribe and to drive `getSectionController`.
64
69
  subscribeItemEvents?: (args: {
65
- sectionId: string;
66
- attemptId?: string;
67
70
  listener: (event: { itemId?: string; timestamp?: number }) => void;
68
71
  }) => () => void;
69
72
  subscribeSectionLifecycleEvents?: (args: {
70
- sectionId: string;
71
- attemptId?: string;
72
73
  listener: (event: { itemId?: string; timestamp?: number }) => void;
73
74
  }) => () => void;
74
75
  onSectionControllerLifecycle?: (
@@ -229,13 +230,9 @@
229
230
  }
230
231
  detachControllerSubscription();
231
232
  const unsubscribeItem = toolkitCoordinator?.subscribeItemEvents?.({
232
- sectionId,
233
- attemptId,
234
233
  listener: handleItemControllerEvent
235
234
  }) || null;
236
235
  const unsubscribeSection = toolkitCoordinator?.subscribeSectionLifecycleEvents?.({
237
- sectionId,
238
- attemptId,
239
236
  listener: handleSectionControllerEvent
240
237
  }) || null;
241
238
  unsubscribeController = () => {
@@ -48,7 +48,7 @@ function N(e, t, r) {
48
48
  writable: !0
49
49
  }) : e[t] = r, e;
50
50
  }
51
- var If = 1 << 24, ce = 1024, Se = 2048, Mt = 4096, Bn = 8192, Da = 16384, qn = 32768, bi = 1 << 25, tn = 65536, Cf = 1 << 17, Af = 1 << 18, Xt = 1 << 19, Ha = 1 << 20, dr = 65536, ki = 1 << 21, Fa = 1 << 22, Hr = 1 << 23, Pr = /* @__PURE__ */ Symbol("$state"), Ji = /* @__PURE__ */ Symbol("legacy props"), Ya = /* @__PURE__ */ Symbol(""), Ba = /* @__PURE__ */ Symbol("proxy path");
51
+ var Cf = 1 << 24, ce = 1024, Se = 2048, Mt = 4096, Bn = 8192, Da = 16384, qn = 32768, bi = 1 << 25, tn = 65536, If = 1 << 17, Af = 1 << 18, Xt = 1 << 19, Ha = 1 << 20, dr = 65536, ki = 1 << 21, Fa = 1 << 22, Hr = 1 << 23, Pr = /* @__PURE__ */ Symbol("$state"), Ji = /* @__PURE__ */ Symbol("legacy props"), Ya = /* @__PURE__ */ Symbol(""), Ba = /* @__PURE__ */ Symbol("proxy path");
52
52
  var De = new class extends Error {
53
53
  constructor(...t) {
54
54
  super(...t), N(this, "name", "StaleReactionError"), N(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
@@ -210,7 +210,7 @@ function fo() {
210
210
  function ns(e) {
211
211
  var t = x;
212
212
  if (t === null)
213
- return I.f |= Hr, e;
213
+ return C.f |= Hr, e;
214
214
  if ((t.f & 32768) === 0 && (t.f & 4) === 0)
215
215
  throw e;
216
216
  rt(e, t);
@@ -263,15 +263,15 @@ function Gn(e, t) {
263
263
  function b(e, t, r) {
264
264
  as(e, t), t.set(e, r);
265
265
  }
266
- function C(e, t, r) {
266
+ function I(e, t, r) {
267
267
  if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : r;
268
268
  throw new TypeError("Private element is not present on this object");
269
269
  }
270
270
  function o(e, t) {
271
- return e.get(C(e, t));
271
+ return e.get(I(e, t));
272
272
  }
273
273
  function $(e, t, r) {
274
- return e.set(C(e, t), r), r;
274
+ return e.set(I(e, t), r), r;
275
275
  }
276
276
  var os, Te = /* @__PURE__ */ new Set(), S = null, xi = null, K = null, Sn = null, tr = !1, hn = !1, Yt = null, Fr = null, ls = 0;
277
277
  var vo = 1, Yr = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), Zt = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), Wr = /* @__PURE__ */ new WeakMap(), me = /* @__PURE__ */ new WeakMap(), Mn = /* @__PURE__ */ new WeakMap(), Bt = /* @__PURE__ */ new WeakMap(), pt = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), jr = /* @__PURE__ */ new WeakMap(), Mr = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakSet(), Et = class fs {
@@ -307,7 +307,7 @@ var vo = 1, Yr = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap
307
307
  flush() {
308
308
  var t = null;
309
309
  try {
310
- hn = !0, S = this, C(J, this, Zn).call(this);
310
+ hn = !0, S = this, I(J, this, Zn).call(this);
311
311
  } finally {
312
312
  ls = 0, Sn = null, Yt = null, Fr = null, hn = !1, S = null, K = null, mt.clear();
313
313
  }
@@ -390,7 +390,7 @@ var vo = 1, Yr = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap
390
390
  for (var r = t; r.parent !== null; ) {
391
391
  r = r.parent;
392
392
  var n = r.f;
393
- if (Yt !== null && r === x && (Ye || (I === null || (I.f & 2) === 0) && !co))
393
+ if (Yt !== null && r === x && (Ye || (C === null || (C.f & 2) === 0) && !co))
394
394
  return;
395
395
  if ((n & 96) !== 0) {
396
396
  if ((n & 1024) === 0) return;
@@ -418,7 +418,7 @@ function po() {
418
418
  return !1;
419
419
  }
420
420
  function Zn() {
421
- if (ls++ > 1e3 && (Te.delete(this), go()), !C(J, this, En).call(this)) {
421
+ if (ls++ > 1e3 && (Te.delete(this), go()), !I(J, this, En).call(this)) {
422
422
  for (const a of o(Bt, this))
423
423
  o(pt, this).delete(a), D(a, Se), this.schedule(a);
424
424
  for (const a of o(pt, this))
@@ -428,7 +428,7 @@ function Zn() {
428
428
  $(me, this, []), this.apply();
429
429
  var t = Yt = [], r = [], n = Fr = [];
430
430
  for (const a of e) try {
431
- C(J, this, us).call(this, a, t, r);
431
+ I(J, this, us).call(this, a, t, r);
432
432
  } catch (l) {
433
433
  throw hs(a), l;
434
434
  }
@@ -436,8 +436,8 @@ function Zn() {
436
436
  var i = os.ensure();
437
437
  for (const a of n) i.schedule(a);
438
438
  }
439
- if (Yt = null, Fr = null, C(J, this, En).call(this) || C(J, this, po).call(this)) {
440
- C(J, this, In).call(this, r), C(J, this, In).call(this, t);
439
+ if (Yt = null, Fr = null, I(J, this, En).call(this) || I(J, this, po).call(this)) {
440
+ I(J, this, Cn).call(this, r), I(J, this, Cn).call(this, t);
441
441
  for (const [a, l] of o(et, this)) ds(a, l);
442
442
  } else {
443
443
  o(ft, this).size === 0 && Te.delete(this), o(Bt, this).clear(), o(pt, this).clear();
@@ -449,7 +449,7 @@ function Zn() {
449
449
  const a = s ?? (s = this);
450
450
  o(me, a).push(...o(me, this).filter((l) => !o(me, a).includes(l)));
451
451
  }
452
- s !== null && (Te.add(s), C(J, s, Zn).call(s)), Ye && !Te.has(this) && C(J, this, _o).call(this);
452
+ s !== null && (Te.add(s), I(J, s, Zn).call(s)), Ye && !Te.has(this) && I(J, this, _o).call(this);
453
453
  }
454
454
  function us(e, t, r) {
455
455
  e.f ^= ce;
@@ -473,7 +473,7 @@ function us(e, t, r) {
473
473
  }
474
474
  }
475
475
  }
476
- function In(e) {
476
+ function Cn(e) {
477
477
  for (var t = 0; t < e.length; t += 1) ss(e[t], o(Bt, this), o(pt, this));
478
478
  }
479
479
  function _o() {
@@ -492,7 +492,7 @@ function _o() {
492
492
  e && f.discard();
493
493
  else if (t.length > 0) {
494
494
  if (e) for (const h of o(jr, this)) f.unskip_effect(h, (v) => {
495
- (v.f & 4194320) !== 0 ? f.schedule(v) : C(J, f, In).call(f, [v]);
495
+ (v.f & 4194320) !== 0 ? f.schedule(v) : I(J, f, Cn).call(f, [v]);
496
496
  });
497
497
  f.activate();
498
498
  var i = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Map();
@@ -502,13 +502,13 @@ function _o() {
502
502
  for (const h of o(Mn, this)) (h.f & 155648) === 0 && Kn(h, l, s) && ((h.f & 4194320) !== 0 ? (D(h, Se), f.schedule(h)) : o(Bt, f).add(h));
503
503
  if (o(me, f).length > 0) {
504
504
  f.apply();
505
- for (var u of o(me, f)) C(J, f, us).call(f, u, [], []);
505
+ for (var u of o(me, f)) I(J, f, us).call(f, u, [], []);
506
506
  $(me, f, []);
507
507
  }
508
508
  f.deactivate();
509
509
  }
510
510
  }
511
- for (const f of Te) o(Nt, f).has(this) && (o(Nt, f).delete(this), o(Nt, f).size === 0 && !C(J, f, En).call(f) && (f.activate(), C(J, f, Zn).call(f)));
511
+ for (const f of Te) o(Nt, f).has(this) && (o(Nt, f).delete(this), o(Nt, f).size === 0 && !I(J, f, En).call(f) && (f.activate(), I(J, f, Zn).call(f)));
512
512
  }
513
513
  function P(e) {
514
514
  var t = tr;
@@ -535,29 +535,29 @@ function go() {
535
535
  rt(r, Sn);
536
536
  }
537
537
  }
538
- var Ce = null;
538
+ var Ie = null;
539
539
  function Si(e) {
540
540
  var t = e.length;
541
541
  if (t !== 0) {
542
542
  for (var r = 0; r < t; ) {
543
543
  var n = e[r++];
544
- if ((n.f & 24576) === 0 && wr(n) && (Ce = /* @__PURE__ */ new Set(), qt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Cs(n), Ce?.size > 0)) {
544
+ if ((n.f & 24576) === 0 && wr(n) && (Ie = /* @__PURE__ */ new Set(), qt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Is(n), Ie?.size > 0)) {
545
545
  mt.clear();
546
- for (const i of Ce) {
546
+ for (const i of Ie) {
547
547
  if ((i.f & 24576) !== 0) continue;
548
548
  const s = [i];
549
549
  let a = i.parent;
550
550
  for (; a !== null; )
551
- Ce.has(a) && (Ce.delete(a), s.push(a)), a = a.parent;
551
+ Ie.has(a) && (Ie.delete(a), s.push(a)), a = a.parent;
552
552
  for (let l = s.length - 1; l >= 0; l--) {
553
553
  const u = s[l];
554
554
  (u.f & 24576) === 0 && qt(u);
555
555
  }
556
556
  }
557
- Ce.clear();
557
+ Ie.clear();
558
558
  }
559
559
  }
560
- Ce = null;
560
+ Ie = null;
561
561
  }
562
562
  }
563
563
  function cs(e, t, r, n) {
@@ -606,23 +606,23 @@ var wo = tn | Xt;
606
606
  function yo(e, t, r, n) {
607
607
  new bo(e, t, r, n);
608
608
  }
609
- var ke = /* @__PURE__ */ new WeakMap(), Cn = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), ar = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), ae = /* @__PURE__ */ new WeakMap(), ge = /* @__PURE__ */ new WeakMap(), _t = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), Er = /* @__PURE__ */ new WeakMap(), An = /* @__PURE__ */ new WeakMap(), Tn = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), Mi = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakSet(), bo = class {
609
+ var ke = /* @__PURE__ */ new WeakMap(), In = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), ar = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), ae = /* @__PURE__ */ new WeakMap(), ge = /* @__PURE__ */ new WeakMap(), _t = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), Er = /* @__PURE__ */ new WeakMap(), An = /* @__PURE__ */ new WeakMap(), Tn = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), Mi = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakSet(), bo = class {
610
610
  constructor(e, t, r, n) {
611
- Gn(this, X), N(this, "parent", void 0), N(this, "is_pending", !1), N(this, "transform_error", void 0), b(this, ke, void 0), b(this, Cn, j ? T : null), b(this, Ae, void 0), b(this, ar, void 0), b(this, le, void 0), b(this, We, null), b(this, ae, null), b(this, ge, null), b(this, _t, null), b(this, Tt, 0), b(this, gt, 0), b(this, Er, !1), b(this, An, /* @__PURE__ */ new Set()), b(this, Tn, /* @__PURE__ */ new Set()), b(this, at, null), b(this, Mi, mo(() => ($(at, this, gr(o(Tt, this))), () => {
611
+ Gn(this, X), N(this, "parent", void 0), N(this, "is_pending", !1), N(this, "transform_error", void 0), b(this, ke, void 0), b(this, In, j ? T : null), b(this, Ae, void 0), b(this, ar, void 0), b(this, le, void 0), b(this, We, null), b(this, ae, null), b(this, ge, null), b(this, _t, null), b(this, Tt, 0), b(this, gt, 0), b(this, Er, !1), b(this, An, /* @__PURE__ */ new Set()), b(this, Tn, /* @__PURE__ */ new Set()), b(this, at, null), b(this, Mi, mo(() => ($(at, this, gr(o(Tt, this))), () => {
612
612
  $(at, this, null);
613
613
  }))), $(ke, this, e), $(Ae, this, t), $(ar, this, (i) => {
614
614
  var s = x;
615
615
  s.b = this, s.f |= 128, r(i);
616
616
  }), this.parent = x.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), $(le, this, ai(() => {
617
617
  if (j) {
618
- const i = o(Cn, this);
618
+ const i = o(In, this);
619
619
  Xn();
620
620
  const s = i.data === "[!";
621
621
  if (i.data.startsWith("[?")) {
622
622
  const a = JSON.parse(i.data.slice(2));
623
- C(X, this, $o).call(this, a);
624
- } else s ? C(X, this, xo).call(this) : C(X, this, ko).call(this);
625
- } else C(X, this, vs).call(this);
623
+ I(X, this, $o).call(this, a);
624
+ } else s ? I(X, this, xo).call(this) : I(X, this, ko).call(this);
625
+ } else I(X, this, vs).call(this);
626
626
  }, wo)), j && $(ke, this, T);
627
627
  }
628
628
  defer_effect(e) {
@@ -635,7 +635,7 @@ var ke = /* @__PURE__ */ new WeakMap(), Cn = /* @__PURE__ */ new WeakMap(), Ae =
635
635
  return !!o(Ae, this).pending;
636
636
  }
637
637
  update_pending_count(e, t) {
638
- C(X, this, ps).call(this, e, t), $(Tt, this, o(Tt, this) + e), !(!o(at, this) || o(Er, this)) && ($(Er, this, !0), Ft(() => {
638
+ I(X, this, ps).call(this, e, t), $(Tt, this, o(Tt, this) + e), !(!o(at, this) || o(Er, this)) && ($(Er, this, !0), Ft(() => {
639
639
  $(Er, this, !1), o(at, this) && qr(o(at, this), o(Tt, this));
640
640
  }));
641
641
  }
@@ -645,8 +645,8 @@ var ke = /* @__PURE__ */ new WeakMap(), Cn = /* @__PURE__ */ new WeakMap(), Ae =
645
645
  error(e) {
646
646
  if (!o(Ae, this).onerror && !o(Ae, this).failed) throw e;
647
647
  S?.is_fork ? (o(We, this) && S.skip_effect(o(We, this)), o(ae, this) && S.skip_effect(o(ae, this)), o(ge, this) && S.skip_effect(o(ge, this)), S.on_fork_commit(() => {
648
- C(X, this, Ei).call(this, e);
649
- })) : C(X, this, Ei).call(this, e);
648
+ I(X, this, Ei).call(this, e);
649
+ })) : I(X, this, Ei).call(this, e);
650
650
  }
651
651
  };
652
652
  function ko() {
@@ -667,9 +667,9 @@ function xo() {
667
667
  const e = o(Ae, this).pending;
668
668
  e && (this.is_pending = !0, $(ae, this, Be(() => e(o(ke, this)))), Ft(() => {
669
669
  var t = $(_t, this, document.createDocumentFragment()), r = it();
670
- t.append(r), $(We, this, C(X, this, Pn).call(this, () => Be(() => o(ar, this).call(this, r)))), o(gt, this) === 0 && (o(ke, this).before(t), $(_t, this, null), mr(o(ae, this), () => {
670
+ t.append(r), $(We, this, I(X, this, Pn).call(this, () => Be(() => o(ar, this).call(this, r)))), o(gt, this) === 0 && (o(ke, this).before(t), $(_t, this, null), mr(o(ae, this), () => {
671
671
  $(ae, this, null);
672
- }), C(X, this, Qn).call(this, S));
672
+ }), I(X, this, Qn).call(this, S));
673
673
  }));
674
674
  }
675
675
  function vs() {
@@ -681,7 +681,7 @@ function vs() {
681
681
  Ps(o(We, this), e);
682
682
  const t = o(Ae, this).pending;
683
683
  $(ae, this, Be(() => t(o(ke, this))));
684
- } else C(X, this, Qn).call(this, S);
684
+ } else I(X, this, Qn).call(this, S);
685
685
  } catch (t) {
686
686
  this.error(t);
687
687
  }
@@ -690,7 +690,7 @@ function Qn(e) {
690
690
  this.is_pending = !1, e.transfer_effects(o(An, this), o(Tn, this));
691
691
  }
692
692
  function Pn(e) {
693
- var t = x, r = I, n = z;
693
+ var t = x, r = C, n = z;
694
694
  Oe(o(le, this)), de(o(le, this)), Ht(o(le, this).ctx);
695
695
  try {
696
696
  return Et.ensure(), e();
@@ -704,16 +704,16 @@ function ps(e, t) {
704
704
  if (!this.has_pending_snippet()) {
705
705
  if (this.parent) {
706
706
  var r;
707
- C(X, r = this.parent, ps).call(r, e, t);
707
+ I(X, r = this.parent, ps).call(r, e, t);
708
708
  }
709
709
  return;
710
710
  }
711
- $(gt, this, o(gt, this) + e), o(gt, this) === 0 && (C(X, this, Qn).call(this, t), o(ae, this) && mr(o(ae, this), () => {
711
+ $(gt, this, o(gt, this) + e), o(gt, this) === 0 && (I(X, this, Qn).call(this, t), o(ae, this) && mr(o(ae, this), () => {
712
712
  $(ae, this, null);
713
713
  }), o(_t, this) && (o(ke, this).before(o(_t, this)), $(_t, this, null)));
714
714
  }
715
715
  function Ei(e) {
716
- o(We, this) && (te(o(We, this)), $(We, this, null)), o(ae, this) && (te(o(ae, this)), $(ae, this, null)), o(ge, this) && (te(o(ge, this)), $(ge, this, null)), j && ($e(o(Cn, this)), so(), $e(Qi()));
716
+ o(We, this) && (te(o(We, this)), $(We, this, null)), o(ae, this) && (te(o(ae, this)), $(ae, this, null)), o(ge, this) && (te(o(ge, this)), $(ge, this, null)), j && ($e(o(In, this)), so(), $e(Qi()));
717
717
  var t = o(Ae, this).onerror;
718
718
  let r = o(Ae, this).failed;
719
719
  var n = !1, i = !1;
@@ -724,8 +724,8 @@ function Ei(e) {
724
724
  }
725
725
  n = !0, i && ro(), o(ge, this) !== null && mr(o(ge, this), () => {
726
726
  $(ge, this, null);
727
- }), C(X, this, Pn).call(this, () => {
728
- C(X, this, vs).call(this);
727
+ }), I(X, this, Pn).call(this, () => {
728
+ I(X, this, vs).call(this);
729
729
  });
730
730
  }, a = (l) => {
731
731
  try {
@@ -733,7 +733,7 @@ function Ei(e) {
733
733
  } catch (u) {
734
734
  rt(u, o(le, this) && o(le, this).parent);
735
735
  }
736
- r && $(ge, this, C(X, this, Pn).call(this, () => {
736
+ r && $(ge, this, I(X, this, Pn).call(this, () => {
737
737
  try {
738
738
  return Be(() => {
739
739
  var u = x;
@@ -785,7 +785,7 @@ function So(e, t, r, n) {
785
785
  }) : v();
786
786
  }
787
787
  function Mo() {
788
- var e = x, t = I, r = z, n = S;
788
+ var e = x, t = C, r = z, n = S;
789
789
  if (0) var i;
790
790
  return function(a = !0) {
791
791
  Oe(e), de(t), Ht(r), a && (e.f & 16384) === 0 && (n?.activate(), n?.apply());
@@ -822,7 +822,7 @@ function nn(e) {
822
822
  function Eo(e, t, r) {
823
823
  let n = x;
824
824
  n === null && Va();
825
- var i = void 0, s = gr(H), a = !I, l = /* @__PURE__ */ new Map();
825
+ var i = void 0, s = gr(H), a = !C, l = /* @__PURE__ */ new Map();
826
826
  return Yo(() => {
827
827
  var u = x, f = Ki();
828
828
  i = f.promise;
@@ -879,7 +879,7 @@ function gs(e) {
879
879
  const t = /* @__PURE__ */ nn(e);
880
880
  return t.equals = ts, t;
881
881
  }
882
- function Io(e) {
882
+ function Co(e) {
883
883
  var t = e.effects;
884
884
  if (t !== null) {
885
885
  e.effects = null;
@@ -892,7 +892,7 @@ function ei(e) {
892
892
  return no(), e.v;
893
893
  Oe(n);
894
894
  try {
895
- e.f &= ~dr, Io(e), t = Ns(e);
895
+ e.f &= ~dr, Co(e), t = Ns(e);
896
896
  } finally {
897
897
  Oe(r);
898
898
  }
@@ -906,7 +906,7 @@ function ms(e) {
906
906
  }
907
907
  qe || (K !== null ? (ii() || S?.is_fork) && K.set(e, t) : Un(e));
908
908
  }
909
- function Co(e) {
909
+ function Io(e) {
910
910
  if (e.effects !== null)
911
911
  for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(De), t.teardown = Tr, t.ac = null, lr(t, 0), oi(t));
912
912
  }
@@ -942,7 +942,7 @@ function Ao(e, t = !1, r = !0) {
942
942
  return n;
943
943
  }
944
944
  function A(e, t, r = !1) {
945
- I !== null && (!be || (I.f & 131072) !== 0) && _r() && (I.f & 4325394) !== 0 && (ue === null || !Dt.call(ue, e)) && to();
945
+ C !== null && (!be || (C.f & 131072) !== 0) && _r() && (C.f & 4325394) !== 0 && (ue === null || !Dt.call(ue, e)) && to();
946
946
  let n = r ? Fe(t) : t;
947
947
  return qr(e, n, Fr);
948
948
  }
@@ -979,7 +979,7 @@ function bs(e, t, r) {
979
979
  K?.delete(h), (u & 65536) === 0 && (u & 512 && (l.f |= dr), bs(h, Mt, r));
980
980
  } else if (f) {
981
981
  var v = l;
982
- (u & 16) !== 0 && Ce !== null && Ce.add(v), r !== null ? r.push(v) : Jn(v);
982
+ (u & 16) !== 0 && Ie !== null && Ie.add(v), r !== null ? r.push(v) : Jn(v);
983
983
  }
984
984
  }
985
985
  }
@@ -991,7 +991,7 @@ function Fe(e) {
991
991
  if (t !== Oa && t !== Ra) return e;
992
992
  var r = /* @__PURE__ */ new Map(), n = Gi(e), i = /* @__PURE__ */ q(0), s = null, a = wt, l = (v) => {
993
993
  if (wt === a) return v();
994
- var c = I, p = wt;
994
+ var c = C, p = wt;
995
995
  de(null), Ai(a);
996
996
  var d = v();
997
997
  return de(c), Ai(p), d;
@@ -1102,10 +1102,10 @@ function Fe(e) {
1102
1102
  function Wo(e, t) {
1103
1103
  return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : Po.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
1104
1104
  }
1105
- var Ii, jo, ks, $s, xs;
1105
+ var Ci, jo, ks, $s, xs;
1106
1106
  function jn() {
1107
- if (Ii === void 0) {
1108
- Ii = window, jo = document, ks = /Firefox/.test(navigator.userAgent);
1107
+ if (Ci === void 0) {
1108
+ Ci = window, jo = document, ks = /Firefox/.test(navigator.userAgent);
1109
1109
  var e = Element.prototype, t = Node.prototype, r = Text.prototype;
1110
1110
  $s = vt(t, "firstChild").get, xs = vt(t, "nextSibling").get, yi(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), yi(r) && (r.__t = void 0);
1111
1111
  }
@@ -1163,7 +1163,7 @@ function Oo(e) {
1163
1163
  e.textContent = "";
1164
1164
  }
1165
1165
  function Ro() {
1166
- return !Ye || Ce !== null ? !1 : (x.f & qn) !== 0;
1166
+ return !Ye || Ie !== null ? !1 : (x.f & qn) !== 0;
1167
1167
  }
1168
1168
  function ri(e, t, r) {
1169
1169
  let n = r ? { is: r } : void 0;
@@ -1176,7 +1176,7 @@ function ni(e) {
1176
1176
  t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
1177
1177
  }
1178
1178
  function Ss(e) {
1179
- var t = I, r = x;
1179
+ var t = C, r = x;
1180
1180
  de(null), Oe(null);
1181
1181
  try {
1182
1182
  return e();
@@ -1185,7 +1185,7 @@ function Ss(e) {
1185
1185
  }
1186
1186
  }
1187
1187
  function No(e) {
1188
- x === null && (I === null && Ga(e), Ua()), qe && Xa(e);
1188
+ x === null && (C === null && Ga(e), Ua()), qe && Xa(e);
1189
1189
  }
1190
1190
  function zo(e, t) {
1191
1191
  var r = t.last;
@@ -1221,14 +1221,14 @@ function Re(e, t) {
1221
1221
  }
1222
1222
  i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && (i.f & 524288) === 0 && (i = i.first, (e & 16) !== 0 && (e & 65536) !== 0 && i !== null && (i.f |= tn));
1223
1223
  }
1224
- if (i !== null && (i.parent = r, r !== null && zo(i, r), I !== null && (I.f & 2) !== 0 && (e & 64) === 0)) {
1225
- var s = I;
1224
+ if (i !== null && (i.parent = r, r !== null && zo(i, r), C !== null && (C.f & 2) !== 0 && (e & 64) === 0)) {
1225
+ var s = C;
1226
1226
  (s.effects ?? (s.effects = [])).push(i);
1227
1227
  }
1228
1228
  return n;
1229
1229
  }
1230
1230
  function ii() {
1231
- return I !== null && !be;
1231
+ return C !== null && !be;
1232
1232
  }
1233
1233
  function Lo(e) {
1234
1234
  const t = Re(8, null);
@@ -1237,7 +1237,7 @@ function Lo(e) {
1237
1237
  function si(e) {
1238
1238
  No("$effect");
1239
1239
  var t = x.f;
1240
- if (!I && (t & 32) !== 0 && (t & 32768) === 0) {
1240
+ if (!C && (t & 32) !== 0 && (t & 32768) === 0) {
1241
1241
  var r = z;
1242
1242
  (r.e ?? (r.e = [])).push(e);
1243
1243
  } else return Ms(e);
@@ -1282,15 +1282,15 @@ function ai(e, t = 0) {
1282
1282
  function Be(e) {
1283
1283
  return Re(32 | Xt, e);
1284
1284
  }
1285
- function Is(e) {
1285
+ function Cs(e) {
1286
1286
  var t = e.teardown;
1287
1287
  if (t !== null) {
1288
- const r = qe, n = I;
1289
- Ci(!0), de(null);
1288
+ const r = qe, n = C;
1289
+ Ii(!0), de(null);
1290
1290
  try {
1291
1291
  t.call(null);
1292
1292
  } finally {
1293
- Ci(r), de(n);
1293
+ Ii(r), de(n);
1294
1294
  }
1295
1295
  }
1296
1296
  }
@@ -1316,9 +1316,9 @@ function te(e, t = !0) {
1316
1316
  (t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (qo(e.nodes.start, e.nodes.end), r = !0), D(e, bi), oi(e, t && !r), lr(e, 0);
1317
1317
  var n = e.nodes && e.nodes.t;
1318
1318
  if (n !== null) for (const s of n) s.stop();
1319
- Is(e), e.f ^= bi, e.f |= Da;
1319
+ Cs(e), e.f ^= bi, e.f |= Da;
1320
1320
  var i = e.parent;
1321
- i !== null && i.first !== null && Cs(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1321
+ i !== null && i.first !== null && Is(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1322
1322
  }
1323
1323
  function qo(e, t) {
1324
1324
  for (; e !== null; ) {
@@ -1326,7 +1326,7 @@ function qo(e, t) {
1326
1326
  e.remove(), e = r;
1327
1327
  }
1328
1328
  }
1329
- function Cs(e) {
1329
+ function Is(e) {
1330
1330
  var t = e.parent, r = e.prev, n = e.next;
1331
1331
  r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
1332
1332
  }
@@ -1380,12 +1380,12 @@ function Ps(e, t) {
1380
1380
  }
1381
1381
  }
1382
1382
  var Xo = null, Or = !1, qe = !1;
1383
- function Ci(e) {
1383
+ function Ii(e) {
1384
1384
  qe = e;
1385
1385
  }
1386
- var I = null, be = !1;
1386
+ var C = null, be = !1;
1387
1387
  function de(e) {
1388
- I = e;
1388
+ C = e;
1389
1389
  }
1390
1390
  var x = null;
1391
1391
  function Oe(e) {
@@ -1393,7 +1393,7 @@ function Oe(e) {
1393
1393
  }
1394
1394
  var ue = null;
1395
1395
  function Ws(e) {
1396
- I !== null && (!Ye || (I.f & 2) !== 0) && (ue === null ? ue = [e] : ue.push(e));
1396
+ C !== null && (!Ye || (C.f & 2) !== 0) && (ue === null ? ue = [e] : ue.push(e));
1397
1397
  }
1398
1398
  var Q = null, ne = 0, oe = null;
1399
1399
  function Uo(e) {
@@ -1427,8 +1427,8 @@ function Rs(e, t, r = !0) {
1427
1427
  }
1428
1428
  }
1429
1429
  function Ns(e) {
1430
- var t = Q, r = ne, n = oe, i = I, s = ue, a = z, l = be, u = wt, f = e.f;
1431
- Q = null, ne = 0, oe = null, I = (f & 96) === 0 ? e : null, ue = null, Ht(e.ctx), be = !1, wt = ++dt, e.ac !== null && (Ss(() => {
1430
+ var t = Q, r = ne, n = oe, i = C, s = ue, a = z, l = be, u = wt, f = e.f;
1431
+ Q = null, ne = 0, oe = null, C = (f & 96) === 0 ? e : null, ue = null, Ht(e.ctx), be = !1, wt = ++dt, e.ac !== null && (Ss(() => {
1432
1432
  e.ac.abort(De);
1433
1433
  }), e.ac = null);
1434
1434
  try {
@@ -1456,7 +1456,7 @@ function Ns(e) {
1456
1456
  } catch (g) {
1457
1457
  return ns(g);
1458
1458
  } finally {
1459
- e.f ^= ki, Q = t, ne = r, oe = n, I = i, ue = s, Ht(a), be = l, wt = u;
1459
+ e.f ^= ki, Q = t, ne = r, oe = n, C = i, ue = s, Ht(a), be = l, wt = u;
1460
1460
  }
1461
1461
  }
1462
1462
  function Go(e, t) {
@@ -1470,7 +1470,7 @@ function Go(e, t) {
1470
1470
  }
1471
1471
  if (r === null && (t.f & 2) !== 0 && (Q === null || !Dt.call(Q, t))) {
1472
1472
  var s = t;
1473
- (s.f & 512) !== 0 && (s.f ^= 512, s.f &= ~dr), s.v !== H && Un(s), Co(s), lr(s, 0);
1473
+ (s.f & 512) !== 0 && (s.f ^= 512, s.f &= ~dr), s.v !== H && Un(s), Io(s), lr(s, 0);
1474
1474
  }
1475
1475
  }
1476
1476
  function lr(e, t) {
@@ -1486,7 +1486,7 @@ function qt(e) {
1486
1486
  if (x = e, Or = !0, 0)
1487
1487
  var i, s;
1488
1488
  try {
1489
- (t & 16777232) !== 0 ? Bo(e) : oi(e), Is(e);
1489
+ (t & 16777232) !== 0 ? Bo(e) : oi(e), Cs(e);
1490
1490
  var a = Ns(e);
1491
1491
  if (e.teardown = typeof a == "function" ? a : null, e.wv = js, 0)
1492
1492
  for (var l of e.deps) ;
@@ -1497,21 +1497,21 @@ function qt(e) {
1497
1497
  }
1498
1498
  function k(e) {
1499
1499
  var t = (e.f & 2) !== 0;
1500
- if (Xo?.add(e), I !== null && !be && !(x !== null && (x.f & 16384) !== 0) && (ue === null || !Dt.call(ue, e))) {
1501
- var r = I.deps;
1502
- if ((I.f & 2097152) !== 0)
1500
+ if (Xo?.add(e), C !== null && !be && !(x !== null && (x.f & 16384) !== 0) && (ue === null || !Dt.call(ue, e))) {
1501
+ var r = C.deps;
1502
+ if ((C.f & 2097152) !== 0)
1503
1503
  e.rv < dt && (e.rv = dt, Q === null && r !== null && r[ne] === e ? ne++ : Q === null ? Q = [e] : Q.push(e));
1504
1504
  else {
1505
1505
  var n;
1506
- ((n = I).deps ?? (n.deps = [])).push(e);
1506
+ ((n = C).deps ?? (n.deps = [])).push(e);
1507
1507
  var i = e.reactions;
1508
- i === null ? e.reactions = [I] : Dt.call(i, I) || i.push(I);
1508
+ i === null ? e.reactions = [C] : Dt.call(i, C) || i.push(C);
1509
1509
  }
1510
1510
  }
1511
1511
  if (0) {
1512
1512
  if (!be && reactivity_loss_tracker && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & 2097152) === 0 && !reactivity_loss_tracker.effect_deps.has(e))
1513
1513
  var s;
1514
- if (tracing_mode_flag && !be && tracing_expressions !== null && I !== null && tracing_expressions.reaction === I && !e.trace) {
1514
+ if (tracing_mode_flag && !be && tracing_expressions !== null && C !== null && tracing_expressions.reaction === C && !e.trace) {
1515
1515
  if (s)
1516
1516
  var a, l;
1517
1517
  }
@@ -1523,7 +1523,7 @@ function k(e) {
1523
1523
  var f = u.v;
1524
1524
  return ((u.f & 1024) === 0 && u.reactions !== null || Ls(u)) && (f = ei(u)), mt.set(u, f), f;
1525
1525
  }
1526
- var h = (u.f & 512) === 0 && !be && I !== null && (Or || (I.f & 512) !== 0), v = (u.f & qn) === 0;
1526
+ var h = (u.f & 512) === 0 && !be && C !== null && (Or || (C.f & 512) !== 0), v = (u.f & qn) === 0;
1527
1527
  wr(u) && (h && (u.f |= 512), ms(u)), h && !v && (ws(u), zs(u));
1528
1528
  }
1529
1529
  if (K?.has(e)) return K.get(e);
@@ -1580,7 +1580,7 @@ function Pi(e) {
1580
1580
  return s || r;
1581
1581
  }
1582
1582
  });
1583
- var h = I, v = x;
1583
+ var h = C, v = x;
1584
1584
  de(null), Oe(null);
1585
1585
  try {
1586
1586
  for (var c, p = []; s !== null; ) {
@@ -1767,7 +1767,7 @@ function nl(e, t) {
1767
1767
  jt(n), $e(i);
1768
1768
  }
1769
1769
  }
1770
- var Ir = /* @__PURE__ */ new Map();
1770
+ var Cr = /* @__PURE__ */ new Map();
1771
1771
  function Bs(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: a = !0, transformError: l }) {
1772
1772
  jn();
1773
1773
  var u = void 0, f = Ho(() => {
@@ -1787,8 +1787,8 @@ function Bs(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
1787
1787
  v.add(m);
1788
1788
  var g = tl(m);
1789
1789
  for (const M of [t, document]) {
1790
- var y = Ir.get(M);
1791
- y === void 0 && (y = /* @__PURE__ */ new Map(), Ir.set(M, y));
1790
+ var y = Cr.get(M);
1791
+ y === void 0 && (y = /* @__PURE__ */ new Map(), Cr.set(M, y));
1792
1792
  var R = y.get(m);
1793
1793
  R === void 0 ? (M.addEventListener(m, Pi, { passive: g }), y.set(m, 1)) : y.set(m, R + 1);
1794
1794
  }
@@ -1797,8 +1797,8 @@ function Bs(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
1797
1797
  };
1798
1798
  return c(Wa(Ds)), On.add(c), () => {
1799
1799
  for (var p of v) for (const g of [t, document]) {
1800
- var d = Ir.get(g), m = d.get(p);
1801
- --m == 0 ? (g.removeEventListener(p, Pi), d.delete(p), d.size === 0 && Ir.delete(g)) : d.set(p, m);
1800
+ var d = Cr.get(g), m = d.get(p);
1801
+ --m == 0 ? (g.removeEventListener(p, Pi), d.delete(p), d.size === 0 && Cr.delete(g)) : d.set(p, m);
1802
1802
  }
1803
1803
  On.delete(c), h !== r && h.parentNode?.removeChild(h);
1804
1804
  };
@@ -2068,7 +2068,7 @@ var Us, Pt = /* @__PURE__ */ new WeakMap(), Ur = /* @__PURE__ */ new WeakMap(),
2068
2068
  }
2069
2069
  observe(e, t) {
2070
2070
  var r = o(Pt, this).get(e) || /* @__PURE__ */ new Set();
2071
- return r.add(t), o(Pt, this).set(e, r), C(zi, this, ml).call(this).observe(e, o(wn, this)), () => {
2071
+ return r.add(t), o(Pt, this).set(e, r), I(zi, this, ml).call(this).observe(e, o(wn, this)), () => {
2072
2072
  var n = o(Pt, this).get(e);
2073
2073
  n.delete(t), n.size === 0 && (o(Pt, this).delete(e), o(Ur, this).unobserve(e));
2074
2074
  };
@@ -2409,12 +2409,12 @@ an(Js, {
2409
2409
  onClose: {},
2410
2410
  buttonClass: {}
2411
2411
  }, [], [], { mode: "open" });
2412
- var Il = 9999, Li = "__pieFloatingPanelZIndex";
2412
+ var Cl = 9999, Li = "__pieFloatingPanelZIndex";
2413
2413
  function yn() {
2414
- const e = globalThis, t = e[Li], r = (typeof t == "number" && Number.isFinite(t) ? t : Il) + 1;
2414
+ const e = globalThis, t = e[Li], r = (typeof t == "number" && Number.isFinite(t) ? t : Cl) + 1;
2415
2415
  return e[Li] = r, r;
2416
2416
  }
2417
- function Cl(e, t) {
2417
+ function Il(e, t) {
2418
2418
  const r = (f, h, v) => Math.max(h, Math.min(f, v)), n = r(Math.round(e.width * t.widthRatio), t.minWidth, t.maxWidth), i = r(Math.round(e.height * t.heightRatio), t.minHeight, t.maxHeight), s = t.paddingX ?? 16, a = t.paddingY ?? 16, l = Math.max(s, e.width - n - s), u = Math.max(a, e.height - i - a);
2419
2419
  return {
2420
2420
  x: t.alignX === "left" ? s : t.alignX === "right" ? l : Math.max(s, Math.round((e.width - n) / 2)),
@@ -2489,7 +2489,7 @@ function Qs(e, t) {
2489
2489
  function O() {
2490
2490
  A(G, yn(), !0);
2491
2491
  }
2492
- function It() {
2492
+ function Ct() {
2493
2493
  const w = String(u() || "").trim(), he = String(f() || "").trim();
2494
2494
  return !w || !he ? null : `${Xe}:${w}:${he}:layout`;
2495
2495
  }
@@ -2504,7 +2504,7 @@ function Qs(e, t) {
2504
2504
  };
2505
2505
  }
2506
2506
  function Ue() {
2507
- const w = It();
2507
+ const w = Ct();
2508
2508
  if (!w || typeof localStorage > "u") return !1;
2509
2509
  try {
2510
2510
  const he = localStorage.getItem(w);
@@ -2525,7 +2525,7 @@ function Qs(e, t) {
2525
2525
  }
2526
2526
  Vs(() => {
2527
2527
  if (!Ue()) {
2528
- const w = Cl({
2528
+ const w = Il({
2529
2529
  width: window.innerWidth,
2530
2530
  height: window.innerHeight
2531
2531
  }, i());
@@ -2535,10 +2535,10 @@ function Qs(e, t) {
2535
2535
  }), sl(() => {
2536
2536
  Z.stop();
2537
2537
  });
2538
- const Ct = /* @__PURE__ */ rr(() => ["pie-shared-floating-panel", v() || ""].join(" ").trim()), kr = /* @__PURE__ */ rr(() => ["pie-shared-floating-panel__body", c() || ""].join(" ").trim()), un = /* @__PURE__ */ rr(() => ["pie-shared-floating-panel__header", p() || ""].join(" ").trim());
2538
+ const It = /* @__PURE__ */ rr(() => ["pie-shared-floating-panel", v() || ""].join(" ").trim()), kr = /* @__PURE__ */ rr(() => ["pie-shared-floating-panel__body", c() || ""].join(" ").trim()), un = /* @__PURE__ */ rr(() => ["pie-shared-floating-panel__header", p() || ""].join(" ").trim());
2539
2539
  si(() => {
2540
2540
  if (!k(E)) return;
2541
- const w = It();
2541
+ const w = Ct();
2542
2542
  if (w && !(typeof localStorage > "u"))
2543
2543
  try {
2544
2544
  localStorage.setItem(w, JSON.stringify({
@@ -2658,14 +2658,14 @@ function Qs(e, t) {
2658
2658
  return h();
2659
2659
  }
2660
2660
  }), ie(gi), ie(Ne);
2661
- var Ia = He(Ne, 2), Ca = (w) => {
2661
+ var Ca = He(Ne, 2), Ia = (w) => {
2662
2662
  var he = Tl(), F = ti(he), Me = se(F);
2663
2663
  _n(Me, () => d() ?? Tr), ie(F), Ks(He(F, 2), { onPointerDown: (dn) => Z.startResize(dn) }), or(() => $t(F, 1, kt(k(kr)), "svelte-tgj5on")), fe(w, he);
2664
2664
  };
2665
- return Xr(Ia, (w) => {
2666
- k(re) || w(Ca);
2665
+ return Xr(Ca, (w) => {
2666
+ k(re) || w(Ia);
2667
2667
  }), ie(Ge), or(() => {
2668
- $t(Ge, 1, kt(k(Ct)), "svelte-tgj5on"), dl(Ge, `left: ${k(y)}px; top: ${k(R)}px; width: ${k(M)}px; z-index: ${k(G)}; ${k(re) ? "height: auto;" : `height: ${k(L)}px;`}`), $t(Ne, 1, kt(k(un)), "svelte-tgj5on"), Nn(Ne, "aria-label", n()), Fs(Ma, r());
2668
+ $t(Ge, 1, kt(k(It)), "svelte-tgj5on"), dl(Ge, `left: ${k(y)}px; top: ${k(R)}px; width: ${k(M)}px; z-index: ${k(G)}; ${k(re) ? "height: auto;" : `height: ${k(L)}px;`}`), $t(Ne, 1, kt(k(un)), "svelte-tgj5on"), Nn(Ne, "aria-label", n()), Fs(Ma, r());
2669
2669
  }), Vr("mousedown", Ne, (w) => {
2670
2670
  O(), Z.startDrag(w);
2671
2671
  }), fe(e, Ge), pr(cn);
@@ -2828,9 +2828,9 @@ function _(e, t) {
2828
2828
  function xt(e, t, r) {
2829
2829
  return e.set(U(e, t), r), r;
2830
2830
  }
2831
- var oa, Pe = /* @__PURE__ */ new Set(), B = null, _e = null, zn = null, la = !1, bn = !1, Zr = null, Ln = null, fa = 0, Ql = 1, Kr = /* @__PURE__ */ new WeakMap(), Cr = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), ut = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), Nr = /* @__PURE__ */ new WeakMap(), we = /* @__PURE__ */ new WeakMap(), Dn = /* @__PURE__ */ new WeakMap(), Vt = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), tt = /* @__PURE__ */ new WeakMap(), zr = /* @__PURE__ */ new WeakMap(), Ar = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakSet(), ef = class ua {
2831
+ var oa, Pe = /* @__PURE__ */ new Set(), B = null, _e = null, zn = null, la = !1, bn = !1, Zr = null, Ln = null, fa = 0, Ql = 1, Kr = /* @__PURE__ */ new WeakMap(), Ir = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), ut = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), Nr = /* @__PURE__ */ new WeakMap(), we = /* @__PURE__ */ new WeakMap(), Dn = /* @__PURE__ */ new WeakMap(), Vt = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), tt = /* @__PURE__ */ new WeakMap(), zr = /* @__PURE__ */ new WeakMap(), Ar = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakSet(), ef = class ua {
2832
2832
  constructor() {
2833
- aa(this, ee), ht(this, "id", Ql++), ht(this, "current", /* @__PURE__ */ new Map()), ht(this, "previous", /* @__PURE__ */ new Map()), Y(this, Kr, /* @__PURE__ */ new Set()), Y(this, Cr, /* @__PURE__ */ new Set()), Y(this, Jt, /* @__PURE__ */ new Set()), Y(this, ut, /* @__PURE__ */ new Map()), Y(this, Qe, /* @__PURE__ */ new Map()), Y(this, Nr, null), Y(this, we, []), Y(this, Dn, []), Y(this, Vt, /* @__PURE__ */ new Set()), Y(this, St, /* @__PURE__ */ new Set()), Y(this, tt, /* @__PURE__ */ new Map()), Y(this, zr, /* @__PURE__ */ new Set()), ht(this, "is_fork", !1), Y(this, Ar, !1), Y(this, zt, /* @__PURE__ */ new Set());
2833
+ aa(this, ee), ht(this, "id", Ql++), ht(this, "current", /* @__PURE__ */ new Map()), ht(this, "previous", /* @__PURE__ */ new Map()), Y(this, Kr, /* @__PURE__ */ new Set()), Y(this, Ir, /* @__PURE__ */ new Set()), Y(this, Jt, /* @__PURE__ */ new Set()), Y(this, ut, /* @__PURE__ */ new Map()), Y(this, Qe, /* @__PURE__ */ new Map()), Y(this, Nr, null), Y(this, we, []), Y(this, Dn, []), Y(this, Vt, /* @__PURE__ */ new Set()), Y(this, St, /* @__PURE__ */ new Set()), Y(this, tt, /* @__PURE__ */ new Map()), Y(this, zr, /* @__PURE__ */ new Set()), ht(this, "is_fork", !1), Y(this, Ar, !1), Y(this, zt, /* @__PURE__ */ new Set());
2834
2834
  }
2835
2835
  skip_effect(t) {
2836
2836
  _(tt, this).has(t) || _(tt, this).set(t, {
@@ -2864,8 +2864,8 @@ var oa, Pe = /* @__PURE__ */ new Set(), B = null, _e = null, zn = null, la = !1,
2864
2864
  }
2865
2865
  }
2866
2866
  discard() {
2867
- for (const t of _(Cr, this)) t(this);
2868
- _(Cr, this).clear(), _(Jt, this).clear(), Pe.delete(this);
2867
+ for (const t of _(Ir, this)) t(this);
2868
+ _(Ir, this).clear(), _(Jt, this).clear(), Pe.delete(this);
2869
2869
  }
2870
2870
  register_created_effect(t) {
2871
2871
  _(Dn, this).push(t);
@@ -2896,7 +2896,7 @@ var oa, Pe = /* @__PURE__ */ new Set(), B = null, _e = null, zn = null, la = !1,
2896
2896
  _(Kr, this).add(t);
2897
2897
  }
2898
2898
  ondiscard(t) {
2899
- _(Cr, this).add(t);
2899
+ _(Ir, this).add(t);
2900
2900
  }
2901
2901
  on_fork_commit(t) {
2902
2902
  _(Jt, this).add(t);
@@ -3222,7 +3222,7 @@ var nt = null;
3222
3222
  function Qr(e) {
3223
3223
  nt = e;
3224
3224
  }
3225
- var ir = null, Ie = null, pe = 0, Le = null, ba = 1, er = 0, $n = er;
3225
+ var ir = null, Ce = null, pe = 0, Le = null, ba = 1, er = 0, $n = er;
3226
3226
  function hf() {
3227
3227
  return ++ba;
3228
3228
  }
@@ -3246,8 +3246,8 @@ function ka(e, t, r = !0) {
3246
3246
  }
3247
3247
  }
3248
3248
  function $a(e) {
3249
- var t = Ie, r = pe, n = Le, i = je, s = ir, a = Gr, l = Qt, u = $n, f = e.f;
3250
- Ie = null, pe = 0, Le = null, je = (f & 96) === 0 ? e : null, ir = null, Bi(e.ctx), Qt = !1, $n = ++er, e.ac !== null && (ga(() => {
3249
+ var t = Ce, r = pe, n = Le, i = je, s = ir, a = Gr, l = Qt, u = $n, f = e.f;
3250
+ Ce = null, pe = 0, Le = null, je = (f & 96) === 0 ? e : null, ir = null, Bi(e.ctx), Qt = !1, $n = ++er, e.ac !== null && (ga(() => {
3251
3251
  e.ac.abort(ci);
3252
3252
  }), e.ac = null);
3253
3253
  try {
@@ -3255,10 +3255,10 @@ function $a(e) {
3255
3255
  var h = e.fn, v = h();
3256
3256
  e.f |= Hl;
3257
3257
  var c = e.deps, p = B?.is_fork;
3258
- if (Ie !== null) {
3258
+ if (Ce !== null) {
3259
3259
  var d;
3260
- if (p || cr(e, pe), c !== null && pe > 0) for (c.length = pe + Ie.length, d = 0; d < Ie.length; d++) c[pe + d] = Ie[d];
3261
- else e.deps = c = Ie;
3260
+ if (p || cr(e, pe), c !== null && pe > 0) for (c.length = pe + Ce.length, d = 0; d < Ce.length; d++) c[pe + d] = Ce[d];
3261
+ else e.deps = c = Ce;
3262
3262
  if (ma() && (e.f & 512) !== 0) for (d = pe; d < c.length; d++) {
3263
3263
  var m;
3264
3264
  ((m = c[d]).reactions ?? (m.reactions = [])).push(e);
@@ -3274,7 +3274,7 @@ function $a(e) {
3274
3274
  } catch (g) {
3275
3275
  return Gl(g);
3276
3276
  } finally {
3277
- e.f ^= Yi, Ie = t, pe = r, Le = n, je = i, ir = s, Bi(a), Qt = l, $n = u;
3277
+ e.f ^= Yi, Ce = t, pe = r, Le = n, je = i, ir = s, Bi(a), Qt = l, $n = u;
3278
3278
  }
3279
3279
  }
3280
3280
  function vf(e, t) {
@@ -3286,7 +3286,7 @@ function vf(e, t) {
3286
3286
  i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
3287
3287
  }
3288
3288
  }
3289
- if (r === null && (t.f & 2) !== 0 && (Ie === null || !ui.call(Ie, t))) {
3289
+ if (r === null && (t.f & 2) !== 0 && (Ce === null || !ui.call(Ce, t))) {
3290
3290
  var s = t;
3291
3291
  s.f & 512 && (s.f ^= 512, s.f &= ~on), s.v !== ea && na(s), lf(s), cr(s, 0);
3292
3292
  }
@@ -3396,7 +3396,7 @@ function Ef(e, t) {
3396
3396
  return yf(n(), i(), s()) || void 0;
3397
3397
  }
3398
3398
  function d(E, Xe) {
3399
- const Z = Xe || p(), O = Z?.getRuntimeState?.() || null, It = Z?.getSession?.() || null;
3399
+ const Z = Xe || p(), O = Z?.getRuntimeState?.() || null, Ct = Z?.getSession?.() || null;
3400
3400
  A(f, !!Z, !0), A(a, {
3401
3401
  currentItemIndex: typeof O?.currentItemIndex == "number" && O.currentItemIndex >= 0 ? O.currentItemIndex : null,
3402
3402
  currentItemId: typeof O?.currentItemId == "string" && O.currentItemId ? O.currentItemId : null,
@@ -3409,7 +3409,7 @@ function Ef(e, t) {
3409
3409
  totalItems: typeof O?.totalItems == "number" ? O.totalItems : 0,
3410
3410
  updatedAt: E?.updatedAt || Date.now(),
3411
3411
  lastChangedItemId: E?.itemId || null,
3412
- itemSessions: c(O?.itemSessions || It?.itemSessions || {})
3412
+ itemSessions: c(O?.itemSessions || Ct?.itemSessions || {})
3413
3413
  }, !0);
3414
3414
  }
3415
3415
  function m() {
@@ -3455,15 +3455,7 @@ function Ef(e, t) {
3455
3455
  return;
3456
3456
  }
3457
3457
  m();
3458
- const Z = n()?.subscribeItemEvents?.({
3459
- sectionId: i(),
3460
- attemptId: s(),
3461
- listener: R
3462
- }) || null, O = n()?.subscribeSectionLifecycleEvents?.({
3463
- sectionId: i(),
3464
- attemptId: s(),
3465
- listener: M
3466
- }) || null;
3458
+ const Z = n()?.subscribeItemEvents?.({ listener: R }) || null, O = n()?.subscribeSectionLifecycleEvents?.({ listener: M }) || null;
3467
3459
  l = () => {
3468
3460
  Z?.(), O?.();
3469
3461
  }, v.controller = E, v.sectionId = i(), v.attemptId = Xe, d(void 0, E);
@@ -3522,11 +3514,11 @@ function Ef(e, t) {
3522
3514
  bodyClass: "pie-section-player-tools-session-debugger__content-shell",
3523
3515
  onClose: () => r("close"),
3524
3516
  children: (E, Xe) => {
3525
- var Z = xf(), O = He(se(Z), 2), It = (Ue) => {
3526
- var Ct = bf();
3527
- fe(Ue, Ct);
3517
+ var Z = xf(), O = He(se(Z), 2), Ct = (Ue) => {
3518
+ var It = bf();
3519
+ fe(Ue, It);
3528
3520
  }, fn = (Ue) => {
3529
- var Ct = $f(), kr = ti(Ct), un = (Ze) => {
3521
+ var It = $f(), kr = ti(It), un = (Ze) => {
3530
3522
  var $r = kf();
3531
3523
  fe(Ze, $r);
3532
3524
  }, cn = /* @__PURE__ */ rr(() => Object.keys(k(a).itemSessions || {}).length === 0);
@@ -3534,10 +3526,10 @@ function Ef(e, t) {
3534
3526
  k(cn) && Ze(un);
3535
3527
  });
3536
3528
  var Ge = He(kr, 2), Ne = He(se(Ge), 2), At = se(Ne), Gt = se(At, !0);
3537
- ie(At), ie(Ne), ie(Ge), or((Ze) => Fs(Gt, Ze), [() => JSON.stringify(k(a), null, 2)]), fe(Ue, Ct);
3529
+ ie(At), ie(Ne), ie(Ge), or((Ze) => Fs(Gt, Ze), [() => JSON.stringify(k(a), null, 2)]), fe(Ue, It);
3538
3530
  };
3539
3531
  Xr(O, (Ue) => {
3540
- k(f) ? Ue(fn, -1) : Ue(It);
3532
+ k(f) ? Ue(fn, -1) : Ue(Ct);
3541
3533
  }), ie(Z), fe(E, Z);
3542
3534
  },
3543
3535
  $$slots: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-players/pie-section-player-tools-session-debugger",
3
- "version": "0.3.34",
3
+ "version": "0.3.36",
4
4
  "type": "module",
5
5
  "description": "Session debugger panel for PIE section-player flows",
6
6
  "repository": {
@@ -38,8 +38,8 @@
38
38
  ],
39
39
  "license": "MIT",
40
40
  "dependencies": {
41
- "@pie-players/pie-section-player-tools-shared": "0.3.34",
42
- "@pie-players/pie-theme": "0.3.34"
41
+ "@pie-players/pie-section-player-tools-shared": "0.3.36",
42
+ "@pie-players/pie-theme": "0.3.36"
43
43
  },
44
44
  "types": "./dist/index.d.ts",
45
45
  "scripts": {