@pie-players/pie-section-player-tools-session-debugger 0.3.9 → 0.3.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,17 @@
1
- var Is = Object.defineProperty;
1
+ var ks = Object.defineProperty;
2
2
  var Xn = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
- var Cs = (e, t, n) => t in e ? Is(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
- var k = (e, t, n) => Cs(e, typeof t != "symbol" ? t + "" : t, n), cn = (e, t, n) => t.has(e) || Xn("Cannot " + n);
5
+ var Ts = (e, t, n) => t in e ? ks(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
+ var k = (e, t, n) => Ts(e, typeof t != "symbol" ? t + "" : t, n), cn = (e, t, n) => t.has(e) || Xn("Cannot " + n);
7
7
  var l = (e, t, n) => (cn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), w = (e, t, n) => t.has(e) ? Xn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), m = (e, t, n, r) => (cn(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), T = (e, t, n) => (cn(e, t, "access private method"), n);
8
8
  var ur;
9
9
  typeof window < "u" && ((ur = window.__svelte ?? (window.__svelte = {})).v ?? (ur.v = /* @__PURE__ */ new Set())).add("5");
10
- const ks = 1, Ts = 2, fr = "[", cr = "[!", Kn = "[?", dr = "]", wt = {}, O = /* @__PURE__ */ Symbol(), hr = "http://www.w3.org/1999/xhtml", hn = !1;
11
- var vr = Array.isArray, As = Array.prototype.indexOf, bt = Array.prototype.includes, Ms = Array.from, Kt = Object.keys, Gt = Object.defineProperty, at = Object.getOwnPropertyDescriptor, Rs = Object.getOwnPropertyDescriptors, Ns = Object.prototype, Os = Array.prototype, _r = Object.getPrototypeOf, Gn = Object.isExtensible;
12
- const Ds = () => {
10
+ const As = 1, Ms = 2, fr = "[", cr = "[!", Kn = "[?", dr = "]", wt = {}, O = /* @__PURE__ */ Symbol(), hr = "http://www.w3.org/1999/xhtml", hn = !1;
11
+ var vr = Array.isArray, Rs = Array.prototype.indexOf, bt = Array.prototype.includes, Ns = Array.from, Kt = Object.keys, Gt = Object.defineProperty, at = Object.getOwnPropertyDescriptor, Os = Object.getOwnPropertyDescriptors, Ds = Object.prototype, Ls = Array.prototype, _r = Object.getPrototypeOf, Gn = Object.isExtensible;
12
+ const Ps = () => {
13
13
  };
14
- function Ls(e) {
14
+ function zs(e) {
15
15
  for (var t = 0; t < e.length; t++)
16
16
  e[t]();
17
17
  }
@@ -21,53 +21,53 @@ function pr() {
21
21
  });
22
22
  return { promise: n, resolve: e, reject: t };
23
23
  }
24
- const P = 2, It = 4, yt = 8, kn = 1 << 24, He = 16, we = 32, Fe = 64, vn = 128, Q = 512, D = 1024, L = 2048, ue = 4096, ee = 8192, ke = 16384, tt = 32768, $t = 65536, Jn = 1 << 17, Ps = 1 << 18, nt = 1 << 19, zs = 1 << 20, et = 65536, _n = 1 << 21, Tn = 1 << 22, De = 1 << 23, dn = /* @__PURE__ */ Symbol("$state"), js = /* @__PURE__ */ Symbol("legacy props"), Hs = /* @__PURE__ */ Symbol(""), Ye = new class extends Error {
24
+ const P = 2, It = 4, yt = 8, kn = 1 << 24, He = 16, we = 32, Fe = 64, vn = 128, Q = 512, D = 1024, L = 2048, ue = 4096, ee = 8192, ke = 16384, tt = 32768, $t = 65536, Jn = 1 << 17, js = 1 << 18, nt = 1 << 19, Hs = 1 << 20, et = 65536, _n = 1 << 21, Tn = 1 << 22, De = 1 << 23, dn = /* @__PURE__ */ Symbol("$state"), Fs = /* @__PURE__ */ Symbol("legacy props"), Bs = /* @__PURE__ */ Symbol(""), Ye = new class extends Error {
25
25
  constructor() {
26
26
  super(...arguments);
27
27
  k(this, "name", "StaleReactionError");
28
28
  k(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
29
29
  }
30
- }(), Fs = (
30
+ }(), Ws = (
31
31
  // We gotta write it like this because after downleveling the pure comment may end up in the wrong location
32
32
  !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml")
33
33
  ), rn = 3, sn = 8;
34
34
  function gr(e) {
35
35
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
36
36
  }
37
- function Bs() {
37
+ function Vs() {
38
38
  throw new Error("https://svelte.dev/e/async_derived_orphan");
39
39
  }
40
- function Ws(e) {
40
+ function Ys(e) {
41
41
  throw new Error("https://svelte.dev/e/effect_in_teardown");
42
42
  }
43
- function Vs() {
43
+ function qs() {
44
44
  throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
45
45
  }
46
- function Ys(e) {
46
+ function Us(e) {
47
47
  throw new Error("https://svelte.dev/e/effect_orphan");
48
48
  }
49
- function qs() {
49
+ function Xs() {
50
50
  throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
51
51
  }
52
- function Us() {
52
+ function Ks() {
53
53
  throw new Error("https://svelte.dev/e/hydration_failed");
54
54
  }
55
- function Xs() {
55
+ function Gs() {
56
56
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
57
57
  }
58
- function Ks() {
58
+ function Js() {
59
59
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
60
60
  }
61
- function Gs() {
61
+ function Zs() {
62
62
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
63
63
  }
64
- function Js() {
64
+ function Qs() {
65
65
  throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
66
66
  }
67
67
  function on(e) {
68
68
  console.warn("https://svelte.dev/e/hydration_mismatch");
69
69
  }
70
- function Zs() {
70
+ function ei() {
71
71
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
72
72
  }
73
73
  let I = !1;
@@ -90,7 +90,7 @@ function ye(e) {
90
90
  E = e;
91
91
  }
92
92
  }
93
- function Qs(e = 1) {
93
+ function ti(e = 1) {
94
94
  if (I) {
95
95
  for (var t = e, n = E; t--; )
96
96
  n = /** @type {TemplateNode} */
@@ -118,7 +118,7 @@ function mr(e = !0) {
118
118
  e && n.remove(), n = s;
119
119
  }
120
120
  }
121
- function ei(e) {
121
+ function ni(e) {
122
122
  if (!e || e.nodeType !== sn)
123
123
  throw on(), wt;
124
124
  return (
@@ -129,13 +129,13 @@ function ei(e) {
129
129
  function wr(e) {
130
130
  return e === this.v;
131
131
  }
132
- function ti(e, t) {
132
+ function ri(e, t) {
133
133
  return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
134
134
  }
135
- function ni(e) {
136
- return !ti(e, this.v);
135
+ function si(e) {
136
+ return !ri(e, this.v);
137
137
  }
138
- let ri = !1, W = null;
138
+ let ii = !1, W = null;
139
139
  function xt(e) {
140
140
  W = e;
141
141
  }
@@ -169,7 +169,7 @@ function br() {
169
169
  let qe = [];
170
170
  function yr() {
171
171
  var e = qe;
172
- qe = [], Ls(e);
172
+ qe = [], zs(e);
173
173
  }
174
174
  function ut(e) {
175
175
  if (qe.length === 0 && !At) {
@@ -180,7 +180,7 @@ function ut(e) {
180
180
  }
181
181
  qe.push(e);
182
182
  }
183
- function si() {
183
+ function oi() {
184
184
  for (; qe.length > 0; )
185
185
  yr();
186
186
  }
@@ -208,9 +208,9 @@ function Oe(e, t) {
208
208
  }
209
209
  throw e;
210
210
  }
211
- const ii = -7169;
211
+ const li = -7169;
212
212
  function N(e, t) {
213
- e.f = e.f & ii | t;
213
+ e.f = e.f & li | t;
214
214
  }
215
215
  function Mn(e) {
216
216
  (e.f & Q) !== 0 || e.deps === null ? N(e, D) : N(e, ue);
@@ -227,13 +227,13 @@ function Er(e, t, n) {
227
227
  (e.f & L) !== 0 ? t.add(e) : (e.f & ue) !== 0 && n.add(e), xr(e.deps), N(e, D);
228
228
  }
229
229
  const Wt = /* @__PURE__ */ new Set();
230
- let A = null, oe = null, H = [], un = null, At = !1, Et = null, oi = 1;
230
+ let A = null, oe = null, H = [], un = null, At = !1, Et = null, ai = 1;
231
231
  var Me, ct, Ke, dt, ht, vt, Re, ce, _t, V, pn, gn, mn, wn;
232
232
  const Hn = class Hn {
233
233
  constructor() {
234
234
  w(this, V);
235
235
  // for debugging. TODO remove once async is stable
236
- k(this, "id", oi++);
236
+ k(this, "id", ai++);
237
237
  /**
238
238
  * The current values of any sources that are updated in this batch
239
239
  * They keys of this map are identical to `this.#previous`
@@ -491,7 +491,7 @@ function le(e) {
491
491
  At = !0;
492
492
  try {
493
493
  for (var n; ; ) {
494
- if (si(), H.length === 0 && (A?.flush(), H.length === 0))
494
+ if (oi(), H.length === 0 && (A?.flush(), H.length === 0))
495
495
  return un = null, /** @type {T} */
496
496
  n;
497
497
  Sr();
@@ -507,7 +507,7 @@ function Sr() {
507
507
  var n = Te.ensure();
508
508
  if (t++ > 1e3) {
509
509
  var r, s;
510
- li();
510
+ ui();
511
511
  }
512
512
  n.process(H), Le.clear();
513
513
  }
@@ -515,9 +515,9 @@ function Sr() {
515
515
  H = [], un = null, Et = null;
516
516
  }
517
517
  }
518
- function li() {
518
+ function ui() {
519
519
  try {
520
- qs();
520
+ Xs();
521
521
  } catch (e) {
522
522
  Oe(e, un);
523
523
  }
@@ -610,7 +610,7 @@ function kr(e, t) {
610
610
  kr(n, t), n = n.next;
611
611
  }
612
612
  }
613
- function ai(e) {
613
+ function fi(e) {
614
614
  let t = 0, n = zt(0), r;
615
615
  return () => {
616
616
  Ln() && (x(n), Wr(() => (t === 0 && (r = rs(() => e(() => Mt(n)))), t += 1, () => {
@@ -620,12 +620,12 @@ function ai(e) {
620
620
  })));
621
621
  };
622
622
  }
623
- var ui = $t | nt;
624
- function fi(e, t, n, r) {
625
- new ci(e, t, n, r);
623
+ var ci = $t | nt;
624
+ function di(e, t, n, r) {
625
+ new hi(e, t, n, r);
626
626
  }
627
627
  var U, Dt, de, Ge, j, he, X, se, Se, Je, Ne, pt, gt, mt, Ie, tn, R, Tr, Ar, Mr, bn, Yt, qt, yn;
628
- class ci {
628
+ class hi {
629
629
  /**
630
630
  * @param {TemplateNode} node
631
631
  * @param {BoundaryProps} props
@@ -676,7 +676,7 @@ class ci {
676
676
  * @type {Source<number> | null}
677
677
  */
678
678
  w(this, Ie, null);
679
- w(this, tn, ai(() => (m(this, Ie, zt(l(this, Je))), () => {
679
+ w(this, tn, fi(() => (m(this, Ie, zt(l(this, Je))), () => {
680
680
  m(this, Ie, null);
681
681
  })));
682
682
  m(this, U, t), m(this, de, n), m(this, Ge, (i) => {
@@ -700,7 +700,7 @@ class ci {
700
700
  } else o ? T(this, R, Mr).call(this) : T(this, R, Tr).call(this);
701
701
  } else
702
702
  T(this, R, bn).call(this);
703
- }, ui)), I && m(this, U, E);
703
+ }, ci)), I && m(this, U, E);
704
704
  }
705
705
  /**
706
706
  * Defer an effect inside a pending boundary until the boundary resolves
@@ -745,14 +745,14 @@ class ci {
745
745
  l(this, he) && (B(l(this, he)), m(this, he, null)), l(this, X) && (B(l(this, X)), m(this, X, null)), l(this, se) && (B(l(this, se)), m(this, se, null)), I && (fe(
746
746
  /** @type {TemplateNode} */
747
747
  l(this, Dt)
748
- ), Qs(), fe(mr()));
748
+ ), ti(), fe(mr()));
749
749
  var s = !1, i = !1;
750
750
  const o = () => {
751
751
  if (s) {
752
- Zs();
752
+ ei();
753
753
  return;
754
754
  }
755
- s = !0, i && Js(), l(this, se) !== null && Nt(l(this, se), () => {
755
+ s = !0, i && Qs(), l(this, se) !== null && Nt(l(this, se), () => {
756
756
  m(this, se, null);
757
757
  }), T(this, R, qt).call(this, () => {
758
758
  Te.ensure(), T(this, R, bn).call(this);
@@ -887,7 +887,7 @@ yn = function(t) {
887
887
  m(this, X, null);
888
888
  }), l(this, Se) && (l(this, U).before(l(this, Se)), m(this, Se, null)));
889
889
  };
890
- function di(e, t, n, r) {
890
+ function vi(e, t, n, r) {
891
891
  const s = Rn;
892
892
  var i = e.filter((h) => !h.settled);
893
893
  if (n.length === 0 && i.length === 0) {
@@ -897,7 +897,7 @@ function di(e, t, n, r) {
897
897
  var o = (
898
898
  /** @type {Effect} */
899
899
  y
900
- ), u = hi(), a = i.length === 1 ? i[0].promise : i.length > 1 ? Promise.all(i.map((h) => h.promise)) : null;
900
+ ), u = _i(), a = i.length === 1 ? i[0].promise : i.length > 1 ? Promise.all(i.map((h) => h.promise)) : null;
901
901
  function f(h) {
902
902
  u();
903
903
  try {
@@ -912,11 +912,11 @@ function di(e, t, n, r) {
912
912
  return;
913
913
  }
914
914
  function c() {
915
- u(), Promise.all(n.map((h) => /* @__PURE__ */ _i(h))).then((h) => f([...t.map(s), ...h])).catch((h) => Oe(h, o));
915
+ u(), Promise.all(n.map((h) => /* @__PURE__ */ gi(h))).then((h) => f([...t.map(s), ...h])).catch((h) => Oe(h, o));
916
916
  }
917
917
  a ? a.then(c) : c();
918
918
  }
919
- function hi() {
919
+ function _i() {
920
920
  var e = y, t = b, n = W, r = A;
921
921
  return function(i = !0) {
922
922
  me(e), ne(t), xt(n), i && r?.activate();
@@ -925,7 +925,7 @@ function hi() {
925
925
  function $n(e = !0) {
926
926
  me(null), ne(null), xt(null), e && A?.deactivate();
927
927
  }
928
- function vi() {
928
+ function pi() {
929
929
  var e = (
930
930
  /** @type {Boundary} */
931
931
  /** @type {Effect} */
@@ -963,9 +963,9 @@ function Rn(e) {
963
963
  };
964
964
  }
965
965
  // @__NO_SIDE_EFFECTS__
966
- function _i(e, t, n) {
966
+ function gi(e, t, n) {
967
967
  /** @type {Effect | null} */
968
- y === null && Bs();
968
+ y === null && Vs();
969
969
  var s = (
970
970
  /** @type {Promise<V>} */
971
971
  /** @type {unknown} */
@@ -974,7 +974,7 @@ function _i(e, t, n) {
974
974
  /** @type {V} */
975
975
  O
976
976
  ), o = !b, u = /* @__PURE__ */ new Map();
977
- return Ti(() => {
977
+ return Mi(() => {
978
978
  var a = pr();
979
979
  s = a.promise;
980
980
  try {
@@ -987,7 +987,7 @@ function _i(e, t, n) {
987
987
  A
988
988
  );
989
989
  if (o) {
990
- var c = vi();
990
+ var c = pi();
991
991
  u.get(f)?.reject(Ye), u.delete(f), u.set(f, a);
992
992
  }
993
993
  const h = (v, g = void 0) => {
@@ -1003,7 +1003,7 @@ function _i(e, t, n) {
1003
1003
  c && c();
1004
1004
  };
1005
1005
  a.promise.then(h, (v) => h(null, v || "unknown"));
1006
- }), Si(() => {
1006
+ }), Ci(() => {
1007
1007
  for (const a of u.values())
1008
1008
  a.reject(Ye);
1009
1009
  }), new Promise((a) => {
@@ -1021,7 +1021,7 @@ function Rr(e) {
1021
1021
  const t = /* @__PURE__ */ Rn(e);
1022
1022
  return Gr(t), t;
1023
1023
  }
1024
- function pi(e) {
1024
+ function mi(e) {
1025
1025
  var t = e.effects;
1026
1026
  if (t !== null) {
1027
1027
  e.effects = null;
@@ -1032,7 +1032,7 @@ function pi(e) {
1032
1032
  );
1033
1033
  }
1034
1034
  }
1035
- function gi(e) {
1035
+ function wi(e) {
1036
1036
  for (var t = e.parent; t !== null; ) {
1037
1037
  if ((t.f & P) === 0)
1038
1038
  return (t.f & ke) === 0 ? (
@@ -1045,9 +1045,9 @@ function gi(e) {
1045
1045
  }
1046
1046
  function Nn(e) {
1047
1047
  var t, n = y;
1048
- me(gi(e));
1048
+ me(wi(e));
1049
1049
  try {
1050
- e.f &= ~et, pi(e), t = es(e);
1050
+ e.f &= ~et, mi(e), t = es(e);
1051
1051
  } finally {
1052
1052
  me(n);
1053
1053
  }
@@ -1061,10 +1061,10 @@ function Nr(e) {
1061
1061
  }
1062
1062
  je || (oe !== null ? (Ln() || A?.is_fork) && oe.set(e, t) : Mn(e));
1063
1063
  }
1064
- function mi(e) {
1064
+ function bi(e) {
1065
1065
  if (e.effects !== null)
1066
1066
  for (const t of e.effects)
1067
- (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(Ye), t.teardown = Ds, t.ac = null, Ot(t, 0), Pn(t));
1067
+ (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(Ye), t.teardown = Ps, t.ac = null, Ot(t, 0), Pn(t));
1068
1068
  }
1069
1069
  function Or(e) {
1070
1070
  if (e.effects !== null)
@@ -1092,14 +1092,14 @@ function z(e, t) {
1092
1092
  return Gr(n), n;
1093
1093
  }
1094
1094
  // @__NO_SIDE_EFFECTS__
1095
- function wi(e, t = !1, n = !0) {
1095
+ function yi(e, t = !1, n = !0) {
1096
1096
  const r = zt(e);
1097
- return t || (r.equals = ni), r;
1097
+ return t || (r.equals = si), r;
1098
1098
  }
1099
1099
  function M(e, t, n = !1) {
1100
1100
  b !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
1101
1101
  // to ensure we error if state is set inside an inspect effect
1102
- (!ae || (b.f & Jn) !== 0) && br() && (b.f & (P | He | Tn | Jn)) !== 0 && (te === null || !bt.call(te, e)) && Gs();
1102
+ (!ae || (b.f & Jn) !== 0) && br() && (b.f & (P | He | Tn | Jn)) !== 0 && (te === null || !bt.call(te, e)) && Zs();
1103
1103
  let r = n ? lt(t) : t;
1104
1104
  return Jt(e, r);
1105
1105
  }
@@ -1115,11 +1115,11 @@ function Jt(e, t) {
1115
1115
  );
1116
1116
  (e.f & L) !== 0 && Nn(s), Mn(s);
1117
1117
  }
1118
- e.wv = Zr(), Lr(e, L), y !== null && (y.f & D) !== 0 && (y.f & (we | Fe)) === 0 && (J === null ? Ni([e]) : J.push(e)), !r.is_fork && xn.size > 0 && !Dr && bi();
1118
+ e.wv = Zr(), Lr(e, L), y !== null && (y.f & D) !== 0 && (y.f & (we | Fe)) === 0 && (J === null ? Di([e]) : J.push(e)), !r.is_fork && xn.size > 0 && !Dr && $i();
1119
1119
  }
1120
1120
  return t;
1121
1121
  }
1122
- function bi() {
1122
+ function $i() {
1123
1123
  Dr = !1;
1124
1124
  for (const e of xn)
1125
1125
  (e.f & D) !== 0 && N(e, ue), jt(e) && St(e);
@@ -1152,7 +1152,7 @@ function lt(e) {
1152
1152
  if (typeof e != "object" || e === null || dn in e)
1153
1153
  return e;
1154
1154
  const t = _r(e);
1155
- if (t !== Ns && t !== Os)
1155
+ if (t !== Ds && t !== Ls)
1156
1156
  return e;
1157
1157
  var n = /* @__PURE__ */ new Map(), r = vr(e), s = /* @__PURE__ */ z(0), i = Qe, o = (u) => {
1158
1158
  if (Qe === i)
@@ -1170,7 +1170,7 @@ function lt(e) {
1170
1170
  e,
1171
1171
  {
1172
1172
  defineProperty(u, a, f) {
1173
- (!("value" in f) || f.configurable === !1 || f.enumerable === !1 || f.writable === !1) && Xs();
1173
+ (!("value" in f) || f.configurable === !1 || f.enumerable === !1 || f.writable === !1) && Gs();
1174
1174
  var c = n.get(a);
1175
1175
  return c === void 0 ? o(() => {
1176
1176
  var h = /* @__PURE__ */ z(f.value);
@@ -1248,8 +1248,8 @@ function lt(e) {
1248
1248
  var $ = o(() => lt(f));
1249
1249
  M(h, $);
1250
1250
  }
1251
- var _ = Reflect.getOwnPropertyDescriptor(u, a);
1252
- if (_?.set && _.set.call(c, f), !v) {
1251
+ var p = Reflect.getOwnPropertyDescriptor(u, a);
1252
+ if (p?.set && p.set.call(c, f), !v) {
1253
1253
  if (r && typeof a == "string") {
1254
1254
  var S = (
1255
1255
  /** @type {Source<number>} */
@@ -1272,7 +1272,7 @@ function lt(e) {
1272
1272
  return a;
1273
1273
  },
1274
1274
  setPrototypeOf() {
1275
- Ks();
1275
+ Js();
1276
1276
  }
1277
1277
  }
1278
1278
  );
@@ -1353,10 +1353,10 @@ function Ve(e, t = 1, n = !1) {
1353
1353
  }
1354
1354
  return fe(r), r;
1355
1355
  }
1356
- function yi(e) {
1356
+ function xi(e) {
1357
1357
  e.textContent = "";
1358
1358
  }
1359
- function $i() {
1359
+ function Ei() {
1360
1360
  return !1;
1361
1361
  }
1362
1362
  function On(e, t, n) {
@@ -1385,10 +1385,10 @@ function Fr(e) {
1385
1385
  ne(t), me(n);
1386
1386
  }
1387
1387
  }
1388
- function xi(e) {
1389
- y === null && (b === null && Ys(), Vs()), je && Ws();
1388
+ function Si(e) {
1389
+ y === null && (b === null && Us(), qs()), je && Ys();
1390
1390
  }
1391
- function Ei(e, t) {
1391
+ function Ii(e, t) {
1392
1392
  var n = t.last;
1393
1393
  n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
1394
1394
  }
@@ -1422,7 +1422,7 @@ function be(e, t) {
1422
1422
  s.deps === null && s.teardown === null && s.nodes === null && s.first === s.last && // either `null`, or a singular child
1423
1423
  (s.f & nt) === 0 && (s = s.first, (e & He) !== 0 && (e & $t) !== 0 && s !== null && (s.f |= $t));
1424
1424
  }
1425
- if (s !== null && (s.parent = n, n !== null && Ei(s, n), b !== null && (b.f & P) !== 0 && (e & Fe) === 0)) {
1425
+ if (s !== null && (s.parent = n, n !== null && Ii(s, n), b !== null && (b.f & P) !== 0 && (e & Fe) === 0)) {
1426
1426
  var i = (
1427
1427
  /** @type {Derived} */
1428
1428
  b
@@ -1434,12 +1434,12 @@ function be(e, t) {
1434
1434
  function Ln() {
1435
1435
  return b !== null && !ae;
1436
1436
  }
1437
- function Si(e) {
1437
+ function Ci(e) {
1438
1438
  const t = be(yt, null);
1439
1439
  return N(t, D), t.teardown = e, t;
1440
1440
  }
1441
1441
  function Sn(e) {
1442
- xi();
1442
+ Si();
1443
1443
  var t = (
1444
1444
  /** @type {Effect} */
1445
1445
  y.f
@@ -1454,16 +1454,16 @@ function Sn(e) {
1454
1454
  return Br(e);
1455
1455
  }
1456
1456
  function Br(e) {
1457
- return be(It | zs, e);
1457
+ return be(It | Hs, e);
1458
1458
  }
1459
- function Ii(e) {
1459
+ function ki(e) {
1460
1460
  Te.ensure();
1461
1461
  const t = be(Fe | nt, e);
1462
1462
  return () => {
1463
1463
  B(t);
1464
1464
  };
1465
1465
  }
1466
- function Ci(e) {
1466
+ function Ti(e) {
1467
1467
  Te.ensure();
1468
1468
  const t = be(Fe | nt, e);
1469
1469
  return (n = {}) => new Promise((r) => {
@@ -1472,17 +1472,17 @@ function Ci(e) {
1472
1472
  }) : (B(t), r(void 0));
1473
1473
  });
1474
1474
  }
1475
- function ki(e) {
1475
+ function Ai(e) {
1476
1476
  return be(It, e);
1477
1477
  }
1478
- function Ti(e) {
1478
+ function Mi(e) {
1479
1479
  return be(Tn | nt, e);
1480
1480
  }
1481
1481
  function Wr(e, t = 0) {
1482
1482
  return be(yt | t, e);
1483
1483
  }
1484
1484
  function Rt(e, t = [], n = [], r = []) {
1485
- di(r, t, n, (s) => {
1485
+ vi(r, t, n, (s) => {
1486
1486
  be(yt, () => e(...s.map(x)));
1487
1487
  });
1488
1488
  }
@@ -1516,7 +1516,7 @@ function Pn(e, t = !1) {
1516
1516
  (n.f & Fe) !== 0 ? n.parent = null : B(n, t), n = r;
1517
1517
  }
1518
1518
  }
1519
- function Ai(e) {
1519
+ function Ri(e) {
1520
1520
  for (var t = e.first; t !== null; ) {
1521
1521
  var n = t.next;
1522
1522
  (t.f & we) === 0 && B(t), t = n;
@@ -1524,7 +1524,7 @@ function Ai(e) {
1524
1524
  }
1525
1525
  function B(e, t = !0) {
1526
1526
  var n = !1;
1527
- (t || (e.f & Ps) !== 0) && e.nodes !== null && e.nodes.end !== null && (Mi(
1527
+ (t || (e.f & js) !== 0) && e.nodes !== null && e.nodes.end !== null && (Ni(
1528
1528
  e.nodes.start,
1529
1529
  /** @type {TemplateNode} */
1530
1530
  e.nodes.end
@@ -1537,7 +1537,7 @@ function B(e, t = !0) {
1537
1537
  var s = e.parent;
1538
1538
  s !== null && s.first !== null && qr(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
1539
1539
  }
1540
- function Mi(e, t) {
1540
+ function Ni(e, t) {
1541
1541
  for (; e !== null; ) {
1542
1542
  var n = e === t ? null : /* @__PURE__ */ Ae(e);
1543
1543
  e.remove(), e = n;
@@ -1576,7 +1576,7 @@ function Ur(e, t, n) {
1576
1576
  }
1577
1577
  }
1578
1578
  }
1579
- function Ri(e) {
1579
+ function Oi(e) {
1580
1580
  Xr(e, !0);
1581
1581
  }
1582
1582
  function Xr(e, t) {
@@ -1616,7 +1616,7 @@ function Gr(e) {
1616
1616
  b !== null && (te === null ? te = [e] : te.push(e));
1617
1617
  }
1618
1618
  let F = null, q = 0, J = null;
1619
- function Ni(e) {
1619
+ function Di(e) {
1620
1620
  J = e;
1621
1621
  }
1622
1622
  let Jr = 1, Ue = 0, Qe = Ue;
@@ -1703,25 +1703,25 @@ function es(e) {
1703
1703
  );
1704
1704
  if (s !== null && s !== e) {
1705
1705
  if (Ue++, s.deps !== null)
1706
- for (let _ = 0; _ < n; _ += 1)
1707
- s.deps[_].rv = Ue;
1706
+ for (let p = 0; p < n; p += 1)
1707
+ s.deps[p].rv = Ue;
1708
1708
  if (t !== null)
1709
- for (const _ of t)
1710
- _.rv = Ue;
1709
+ for (const p of t)
1710
+ p.rv = Ue;
1711
1711
  J !== null && (r === null ? r = J : r.push(.../** @type {Source[]} */
1712
1712
  J));
1713
1713
  }
1714
1714
  return (e.f & De) !== 0 && (e.f ^= De), h;
1715
- } catch (_) {
1716
- return $r(_);
1715
+ } catch (p) {
1716
+ return $r(p);
1717
1717
  } finally {
1718
1718
  e.f ^= _n, F = t, q = n, J = r, b = s, te = i, xt(o), ae = u, Qe = a;
1719
1719
  }
1720
1720
  }
1721
- function Oi(e, t) {
1721
+ function Li(e, t) {
1722
1722
  let n = t.reactions;
1723
1723
  if (n !== null) {
1724
- var r = As.call(n, e);
1724
+ var r = Rs.call(n, e);
1725
1725
  if (r !== -1) {
1726
1726
  var s = n.length - 1;
1727
1727
  s === 0 ? n = t.reactions = null : (n[r] = n[s], n.pop());
@@ -1735,14 +1735,14 @@ function Oi(e, t) {
1735
1735
  /** @type {Derived} */
1736
1736
  t
1737
1737
  );
1738
- (i.f & Q) !== 0 && (i.f ^= Q, i.f &= ~et), Mn(i), mi(i), Ot(i, 0);
1738
+ (i.f & Q) !== 0 && (i.f ^= Q, i.f &= ~et), Mn(i), bi(i), Ot(i, 0);
1739
1739
  }
1740
1740
  }
1741
1741
  function Ot(e, t) {
1742
1742
  var n = e.deps;
1743
1743
  if (n !== null)
1744
1744
  for (var r = t; r < n.length; r++)
1745
- Oi(e, n[r]);
1745
+ Li(e, n[r]);
1746
1746
  }
1747
1747
  function St(e) {
1748
1748
  var t = e.f;
@@ -1751,11 +1751,11 @@ function St(e) {
1751
1751
  var n = y, r = Ut;
1752
1752
  y = e, Ut = !0;
1753
1753
  try {
1754
- (t & (He | kn)) !== 0 ? Ai(e) : Pn(e), Yr(e);
1754
+ (t & (He | kn)) !== 0 ? Ri(e) : Pn(e), Yr(e);
1755
1755
  var s = es(e);
1756
1756
  e.teardown = typeof s == "function" ? s : null, e.wv = Jr;
1757
1757
  var i;
1758
- hn && ri && (e.f & L) !== 0 && e.deps;
1758
+ hn && ii && (e.f & L) !== 0 && e.deps;
1759
1759
  } finally {
1760
1760
  Ut = r, y = n;
1761
1761
  }
@@ -1879,17 +1879,17 @@ function rr(e) {
1879
1879
  i.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
1880
1880
  // -> the target could not have been disabled because it emits the event in the first place
1881
1881
  e.target === i) && $.call(i, e);
1882
- } catch (_) {
1883
- v ? g.push(_) : v = _;
1882
+ } catch (p) {
1883
+ v ? g.push(p) : v = p;
1884
1884
  }
1885
1885
  if (e.cancelBubble || d === t || d === null)
1886
1886
  break;
1887
1887
  i = d;
1888
1888
  }
1889
1889
  if (v) {
1890
- for (let _ of g)
1890
+ for (let p of g)
1891
1891
  queueMicrotask(() => {
1892
- throw _;
1892
+ throw p;
1893
1893
  });
1894
1894
  throw v;
1895
1895
  }
@@ -1898,22 +1898,22 @@ function rr(e) {
1898
1898
  }
1899
1899
  }
1900
1900
  }
1901
- const Di = (
1901
+ const Pi = (
1902
1902
  // We gotta write it like this because after downleveling the pure comment may end up in the wrong location
1903
1903
  globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
1904
1904
  /** @param {string} html */
1905
1905
  createHTML: (e) => e
1906
1906
  })
1907
1907
  );
1908
- function Li(e) {
1908
+ function zi(e) {
1909
1909
  return (
1910
1910
  /** @type {string} */
1911
- Di?.createHTML(e) ?? e
1911
+ Pi?.createHTML(e) ?? e
1912
1912
  );
1913
1913
  }
1914
1914
  function is(e) {
1915
1915
  var t = On("template");
1916
- return t.innerHTML = Li(e.replaceAll("<!>", "<!---->")), t.content;
1916
+ return t.innerHTML = zi(e.replaceAll("<!>", "<!---->")), t.content;
1917
1917
  }
1918
1918
  function ft(e, t) {
1919
1919
  var n = (
@@ -1924,7 +1924,7 @@ function ft(e, t) {
1924
1924
  }
1925
1925
  // @__NO_SIDE_EFFECTS__
1926
1926
  function rt(e, t) {
1927
- var n = (t & ks) !== 0, r = (t & Ts) !== 0, s, i = !e.startsWith("<!>");
1927
+ var n = (t & As) !== 0, r = (t & Ms) !== 0, s, i = !e.startsWith("<!>");
1928
1928
  return () => {
1929
1929
  if (I)
1930
1930
  return ft(E, null), E;
@@ -1949,7 +1949,7 @@ function rt(e, t) {
1949
1949
  };
1950
1950
  }
1951
1951
  // @__NO_SIDE_EFFECTS__
1952
- function Pi(e, t, n = "svg") {
1952
+ function ji(e, t, n = "svg") {
1953
1953
  var r = !e.startsWith("<!>"), s = `<${n}>${r ? e : "<!>" + e}</${n}>`, i;
1954
1954
  return () => {
1955
1955
  if (I)
@@ -1974,7 +1974,7 @@ function Pi(e, t, n = "svg") {
1974
1974
  }
1975
1975
  // @__NO_SIDE_EFFECTS__
1976
1976
  function os(e, t) {
1977
- return /* @__PURE__ */ Pi(e, t, "svg");
1977
+ return /* @__PURE__ */ ji(e, t, "svg");
1978
1978
  }
1979
1979
  function _e(e, t) {
1980
1980
  if (I) {
@@ -1990,18 +1990,18 @@ function _e(e, t) {
1990
1990
  t
1991
1991
  );
1992
1992
  }
1993
- const zi = ["touchstart", "touchmove"];
1994
- function ji(e) {
1995
- return zi.includes(e);
1993
+ const Hi = ["touchstart", "touchmove"];
1994
+ function Fi(e) {
1995
+ return Hi.includes(e);
1996
1996
  }
1997
- function Hi(e, t) {
1997
+ function Bi(e, t) {
1998
1998
  var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
1999
1999
  n !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = n, e.nodeValue = `${n}`);
2000
2000
  }
2001
2001
  function ls(e, t) {
2002
2002
  return as(e, t);
2003
2003
  }
2004
- function Fi(e, t) {
2004
+ function Wi(e, t) {
2005
2005
  En(), t.intro = t.intro ?? !1;
2006
2006
  const n = t.target, r = I, s = E;
2007
2007
  try {
@@ -2021,7 +2021,7 @@ function Fi(e, t) {
2021
2021
  if (o instanceof Error && o.message.split(`
2022
2022
  `).some((u) => u.startsWith("https://svelte.dev/e/")))
2023
2023
  throw o;
2024
- return o !== wt && console.warn("Failed to hydrate: ", o), t.recover === !1 && Us(), En(), yi(n), ot(!1), ls(e, t);
2024
+ return o !== wt && console.warn("Failed to hydrate: ", o), t.recover === !1 && Ks(), En(), xi(n), ot(!1), ls(e, t);
2025
2025
  } finally {
2026
2026
  ot(r), fe(s);
2027
2027
  }
@@ -2029,9 +2029,9 @@ function Fi(e, t) {
2029
2029
  const Vt = /* @__PURE__ */ new Map();
2030
2030
  function as(e, { target: t, anchor: n, props: r = {}, events: s, context: i, intro: o = !0, transformError: u }) {
2031
2031
  En();
2032
- var a = void 0, f = Ci(() => {
2032
+ var a = void 0, f = Ti(() => {
2033
2033
  var c = n ?? t.appendChild(Pe());
2034
- fi(
2034
+ di(
2035
2035
  /** @type {TemplateNode} */
2036
2036
  c,
2037
2037
  {
@@ -2060,27 +2060,27 @@ function as(e, { target: t, anchor: n, props: r = {}, events: s, context: i, int
2060
2060
  var $ = g[d];
2061
2061
  if (!h.has($)) {
2062
2062
  h.add($);
2063
- var _ = ji($);
2063
+ var p = Fi($);
2064
2064
  for (const G of [t, document]) {
2065
2065
  var S = Vt.get(G);
2066
2066
  S === void 0 && (S = /* @__PURE__ */ new Map(), Vt.set(G, S));
2067
2067
  var Y = S.get($);
2068
- Y === void 0 ? (G.addEventListener($, rr, { passive: _ }), S.set($, 1)) : S.set($, Y + 1);
2068
+ Y === void 0 ? (G.addEventListener($, rr, { passive: p }), S.set($, 1)) : S.set($, Y + 1);
2069
2069
  }
2070
2070
  }
2071
2071
  }
2072
2072
  };
2073
- return v(Ms(ss)), In.add(v), () => {
2073
+ return v(Ns(ss)), In.add(v), () => {
2074
2074
  for (var g of h)
2075
- for (const _ of [t, document]) {
2075
+ for (const p of [t, document]) {
2076
2076
  var d = (
2077
2077
  /** @type {Map<string, number>} */
2078
- Vt.get(_)
2078
+ Vt.get(p)
2079
2079
  ), $ = (
2080
2080
  /** @type {number} */
2081
2081
  d.get(g)
2082
2082
  );
2083
- --$ == 0 ? (_.removeEventListener(g, rr), d.delete(g), d.size === 0 && Vt.delete(_)) : d.set(g, $);
2083
+ --$ == 0 ? (p.removeEventListener(g, rr), d.delete(g), d.size === 0 && Vt.delete(p)) : d.set(g, $);
2084
2084
  }
2085
2085
  In.delete(v), c !== n && c.parentNode?.removeChild(c);
2086
2086
  };
@@ -2088,12 +2088,12 @@ function as(e, { target: t, anchor: n, props: r = {}, events: s, context: i, int
2088
2088
  return Cn.set(a, f), a;
2089
2089
  }
2090
2090
  let Cn = /* @__PURE__ */ new WeakMap();
2091
- function Bi(e, t) {
2091
+ function Vi(e, t) {
2092
2092
  const n = Cn.get(e);
2093
2093
  return n ? (Cn.delete(e), n(t)) : Promise.resolve();
2094
2094
  }
2095
2095
  var ie, ve, K, Ze, Lt, Pt, nn;
2096
- class Wi {
2096
+ class Yi {
2097
2097
  /**
2098
2098
  * @param {TemplateNode} anchor
2099
2099
  * @param {boolean} transition
@@ -2144,7 +2144,7 @@ class Wi {
2144
2144
  l(this, ie).get(t)
2145
2145
  ), r = l(this, ve).get(n);
2146
2146
  if (r)
2147
- Ri(r), l(this, Ze).delete(n);
2147
+ Oi(r), l(this, Ze).delete(n);
2148
2148
  else {
2149
2149
  var s = l(this, K).get(n);
2150
2150
  s && (s.effect.f & ee) === 0 && (l(this, ve).set(n, s.effect), l(this, K).delete(n), s.fragment.lastChild.remove(), this.anchor.before(s.fragment), r = s.effect);
@@ -2189,7 +2189,7 @@ class Wi {
2189
2189
  var r = (
2190
2190
  /** @type {Batch} */
2191
2191
  A
2192
- ), s = $i();
2192
+ ), s = Ei();
2193
2193
  if (n && !l(this, ve).has(t) && !l(this, K).has(t))
2194
2194
  if (s) {
2195
2195
  var i = document.createDocumentFragment(), o = Pe();
@@ -2213,7 +2213,7 @@ class Wi {
2213
2213
  }
2214
2214
  }
2215
2215
  ie = new WeakMap(), ve = new WeakMap(), K = new WeakMap(), Ze = new WeakMap(), Lt = new WeakMap(), Pt = new WeakMap(), nn = new WeakMap();
2216
- function Vi(e) {
2216
+ function qi(e) {
2217
2217
  W === null && gr(), Sn(() => {
2218
2218
  const t = rs(e);
2219
2219
  if (typeof t == "function") return (
@@ -2222,10 +2222,10 @@ function Vi(e) {
2222
2222
  );
2223
2223
  });
2224
2224
  }
2225
- function Yi(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
2225
+ function Ui(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
2226
2226
  return new CustomEvent(e, { detail: t, bubbles: n, cancelable: r });
2227
2227
  }
2228
- function qi() {
2228
+ function Xi() {
2229
2229
  const e = W;
2230
2230
  return e === null && gr(), (t, n, r) => {
2231
2231
  const s = (
@@ -2236,7 +2236,7 @@ function qi() {
2236
2236
  ]
2237
2237
  );
2238
2238
  if (s) {
2239
- const i = vr(s) ? s.slice() : [s], o = Yi(
2239
+ const i = vr(s) ? s.slice() : [s], o = Ui(
2240
2240
  /** @type {string} */
2241
2241
  t,
2242
2242
  n,
@@ -2252,10 +2252,10 @@ function qi() {
2252
2252
  function Tt(e, t, n = !1) {
2253
2253
  var r;
2254
2254
  I && (r = E, An());
2255
- var s = new Wi(e), i = n ? $t : 0;
2255
+ var s = new Yi(e), i = n ? $t : 0;
2256
2256
  function o(u, a) {
2257
2257
  if (I) {
2258
- var f = ei(
2258
+ var f = ni(
2259
2259
  /** @type {TemplateNode} */
2260
2260
  r
2261
2261
  );
@@ -2275,7 +2275,7 @@ function Tt(e, t, n = !1) {
2275
2275
  }, i);
2276
2276
  }
2277
2277
  function us(e, t) {
2278
- ki(() => {
2278
+ Ai(() => {
2279
2279
  var n = e.getRootNode(), r = (
2280
2280
  /** @type {ShadowRoot} */
2281
2281
  n.host ? (
@@ -2302,24 +2302,24 @@ function fs(e) {
2302
2302
  } else for (n in e) e[n] && (r && (r += " "), r += n);
2303
2303
  return r;
2304
2304
  }
2305
- function Ui() {
2305
+ function Ki() {
2306
2306
  for (var e, t, n = 0, r = "", s = arguments.length; n < s; n++) (e = arguments[n]) && (t = fs(e)) && (r && (r += " "), r += t);
2307
2307
  return r;
2308
2308
  }
2309
2309
  function Qt(e) {
2310
- return typeof e == "object" ? Ui(e) : e ?? "";
2310
+ return typeof e == "object" ? Ki(e) : e ?? "";
2311
2311
  }
2312
- function Xi(e, t, n) {
2312
+ function Gi(e, t, n) {
2313
2313
  var r = e == null ? "" : "" + e;
2314
2314
  return t && (r = r ? r + " " + t : t), r === "" ? null : r;
2315
2315
  }
2316
- function Ki(e, t) {
2316
+ function Ji(e, t) {
2317
2317
  return e == null ? null : String(e);
2318
2318
  }
2319
2319
  function en(e, t, n, r, s, i) {
2320
2320
  var o = e.__className;
2321
2321
  if (I || o !== n || o === void 0) {
2322
- var u = Xi(n, r);
2322
+ var u = Gi(n, r);
2323
2323
  (!I || u !== e.getAttribute("class")) && (u == null ? e.removeAttribute("class") : t ? e.className = u : e.setAttribute("class", u)), e.__className = n;
2324
2324
  }
2325
2325
  return i;
@@ -2327,33 +2327,33 @@ function en(e, t, n, r, s, i) {
2327
2327
  function sr(e, t, n, r) {
2328
2328
  var s = e.__style;
2329
2329
  if (I || s !== t) {
2330
- var i = Ki(t);
2330
+ var i = Ji(t);
2331
2331
  (!I || i !== e.getAttribute("style")) && (i == null ? e.removeAttribute("style") : e.style.cssText = i), e.__style = t;
2332
2332
  }
2333
2333
  return r;
2334
2334
  }
2335
- const Gi = /* @__PURE__ */ Symbol("is custom element"), Ji = /* @__PURE__ */ Symbol("is html"), Zi = Fs ? "link" : "LINK";
2335
+ const Zi = /* @__PURE__ */ Symbol("is custom element"), Qi = /* @__PURE__ */ Symbol("is html"), eo = Ws ? "link" : "LINK";
2336
2336
  function ir(e, t, n, r) {
2337
- var s = Qi(e);
2338
- I && (s[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Zi) || s[t] !== (s[t] = n) && (t === "loading" && (e[Hs] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && eo(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
2337
+ var s = to(e);
2338
+ I && (s[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === eo) || s[t] !== (s[t] = n) && (t === "loading" && (e[Bs] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && no(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
2339
2339
  }
2340
- function Qi(e) {
2340
+ function to(e) {
2341
2341
  return (
2342
2342
  /** @type {Record<string | symbol, unknown>} **/
2343
2343
  // @ts-expect-error
2344
2344
  e.__attributes ?? (e.__attributes = {
2345
- [Gi]: e.nodeName.includes("-"),
2346
- [Ji]: e.namespaceURI === hr
2345
+ [Zi]: e.nodeName.includes("-"),
2346
+ [Qi]: e.namespaceURI === hr
2347
2347
  })
2348
2348
  );
2349
2349
  }
2350
2350
  var or = /* @__PURE__ */ new Map();
2351
- function eo(e) {
2351
+ function no(e) {
2352
2352
  var t = e.getAttribute("is") || e.nodeName, n = or.get(t);
2353
2353
  if (n) return n;
2354
2354
  or.set(t, n = []);
2355
2355
  for (var r, s = e, i = Element.prototype; i !== s; ) {
2356
- r = Rs(s);
2356
+ r = Os(s);
2357
2357
  for (var o in r)
2358
2358
  r[o].set && n.push(o);
2359
2359
  s = _r(s);
@@ -2391,11 +2391,11 @@ function ge(e, t, n, r) {
2391
2391
  })
2392
2392
  );
2393
2393
  }
2394
- function to(e) {
2395
- return new no(e);
2394
+ function ro(e) {
2395
+ return new so(e);
2396
2396
  }
2397
2397
  var Ce, Z;
2398
- class no {
2398
+ class so {
2399
2399
  /**
2400
2400
  * @param {ComponentConstructorOptions & {
2401
2401
  * component: any;
@@ -2407,7 +2407,7 @@ class no {
2407
2407
  /** @type {Record<string, any>} */
2408
2408
  w(this, Z);
2409
2409
  var n = /* @__PURE__ */ new Map(), r = (i, o) => {
2410
- var u = /* @__PURE__ */ wi(o, !1, !1);
2410
+ var u = /* @__PURE__ */ yi(o, !1, !1);
2411
2411
  return n.set(i, u), u;
2412
2412
  };
2413
2413
  const s = new Proxy(
@@ -2417,14 +2417,14 @@ class no {
2417
2417
  return x(n.get(o) ?? r(o, Reflect.get(i, o)));
2418
2418
  },
2419
2419
  has(i, o) {
2420
- return o === js ? !0 : (x(n.get(o) ?? r(o, Reflect.get(i, o))), Reflect.has(i, o));
2420
+ return o === Fs ? !0 : (x(n.get(o) ?? r(o, Reflect.get(i, o))), Reflect.has(i, o));
2421
2421
  },
2422
2422
  set(i, o, u) {
2423
2423
  return M(n.get(o) ?? r(o, u), u), Reflect.set(i, o, u);
2424
2424
  }
2425
2425
  }
2426
2426
  );
2427
- m(this, Z, (t.hydrate ? Fi : ls)(t.component, {
2427
+ m(this, Z, (t.hydrate ? Wi : ls)(t.component, {
2428
2428
  target: t.target,
2429
2429
  anchor: t.anchor,
2430
2430
  props: s,
@@ -2448,7 +2448,7 @@ class no {
2448
2448
  (i) => {
2449
2449
  Object.assign(s, i);
2450
2450
  }, l(this, Z).$destroy = () => {
2451
- Bi(l(this, Z));
2451
+ Vi(l(this, Z));
2452
2452
  };
2453
2453
  }
2454
2454
  /** @param {Record<string, any>} props */
@@ -2541,7 +2541,7 @@ typeof HTMLElement == "function" && (cs = class extends HTMLElement {
2541
2541
  };
2542
2542
  if (await Promise.resolve(), !this.$$cn || this.$$c)
2543
2543
  return;
2544
- const n = {}, r = ro(this);
2544
+ const n = {}, r = io(this);
2545
2545
  for (const s of this.$$s)
2546
2546
  s in r && (s === "default" && !this.$$d.children ? (this.$$d.children = t(s), n.default = !0) : n[s] = t(s));
2547
2547
  for (const s of this.attributes) {
@@ -2550,7 +2550,7 @@ typeof HTMLElement == "function" && (cs = class extends HTMLElement {
2550
2550
  }
2551
2551
  for (const s in this.$$p_d)
2552
2552
  !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
2553
- this.$$c = to({
2553
+ this.$$c = ro({
2554
2554
  component: this.$$ctor,
2555
2555
  target: this.$$shadowRoot || this,
2556
2556
  props: {
@@ -2558,7 +2558,7 @@ typeof HTMLElement == "function" && (cs = class extends HTMLElement {
2558
2558
  $$slots: n,
2559
2559
  $$host: this
2560
2560
  }
2561
- }), this.$$me = Ii(() => {
2561
+ }), this.$$me = ki(() => {
2562
2562
  Wr(() => {
2563
2563
  this.$$r = !0;
2564
2564
  for (const s of Kt(this.$$c)) {
@@ -2637,7 +2637,7 @@ function Xt(e, t, n, r) {
2637
2637
  return t;
2638
2638
  }
2639
2639
  }
2640
- function ro(e) {
2640
+ function io(e) {
2641
2641
  const t = {};
2642
2642
  return e.childNodes.forEach((n) => {
2643
2643
  t[
@@ -2680,7 +2680,7 @@ function jn(e, t, n, r, s, i) {
2680
2680
  }), e.element = /** @type {any} */
2681
2681
  o, o;
2682
2682
  }
2683
- var so = /* @__PURE__ */ rt('<div role="button" tabindex="0" title="Resize window"><svg viewBox="0 0 16 16" fill="currentColor"><path d="M16 16V14H14V16H16Z"></path><path d="M16 11V9H14V11H16Z"></path><path d="M13 16V14H11V16H13Z"></path></svg></div>');
2683
+ var oo = /* @__PURE__ */ rt('<div role="button" tabindex="0" title="Resize window"><svg viewBox="0 0 16 16" fill="currentColor"><path d="M16 16V14H14V16H16Z"></path><path d="M16 11V9H14V11H16Z"></path><path d="M13 16V14H11V16H13Z"></path></svg></div>');
2684
2684
  function ds(e, t) {
2685
2685
  ln(t, !0);
2686
2686
  let n = ge(t, "onPointerDown"), r = ge(t, "handleClass", 7, "absolute bottom-0 right-0 w-4 h-4 cursor-se-resize"), s = ge(t, "iconClass", 7, "w-full h-full text-base-content/30");
@@ -2703,7 +2703,7 @@ function ds(e, t) {
2703
2703
  set iconClass(a = "w-full h-full text-base-content/30") {
2704
2704
  s(a), le();
2705
2705
  }
2706
- }, o = so(), u = xe(o);
2706
+ }, o = oo(), u = xe(o);
2707
2707
  return ye(o), Rt(() => {
2708
2708
  en(o, 1, Qt(r())), en(u, 0, Qt(s()));
2709
2709
  }), Zt("mousedown", o, function(...a) {
@@ -2712,13 +2712,13 @@ function ds(e, t) {
2712
2712
  }
2713
2713
  zn(["mousedown"]);
2714
2714
  jn(ds, { onPointerDown: {}, handleClass: {}, iconClass: {} }, [], [], { mode: "open" });
2715
- var io = /* @__PURE__ */ os('<svg xmlns="http://www.w3.org/2000/svg" class="pie-window-controls__icon svelte-dx0z4a" width="12" height="12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 15l7-7 7 7"></path></svg>'), oo = /* @__PURE__ */ os('<svg xmlns="http://www.w3.org/2000/svg" class="pie-window-controls__icon svelte-dx0z4a" width="12" height="12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg>'), lo = /* @__PURE__ */ rt('<button><!></button> <button title="Close" aria-label="Close panel"><svg xmlns="http://www.w3.org/2000/svg" class="pie-window-controls__icon svelte-dx0z4a" width="12" height="12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></button>', 1);
2716
- const ao = {
2715
+ var lo = /* @__PURE__ */ os('<svg xmlns="http://www.w3.org/2000/svg" class="pie-window-controls__icon svelte-dx0z4a" width="12" height="12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 15l7-7 7 7"></path></svg>'), ao = /* @__PURE__ */ os('<svg xmlns="http://www.w3.org/2000/svg" class="pie-window-controls__icon svelte-dx0z4a" width="12" height="12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg>'), uo = /* @__PURE__ */ rt('<button><!></button> <button title="Close" aria-label="Close panel"><svg xmlns="http://www.w3.org/2000/svg" class="pie-window-controls__icon svelte-dx0z4a" width="12" height="12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></button>', 1);
2716
+ const fo = {
2717
2717
  hash: "svelte-dx0z4a",
2718
2718
  code: ".pie-window-controls__button.svelte-dx0z4a {display:inline-flex;align-items:center;justify-content:center;width:1.35rem;height:1.35rem;padding:0;border:1px solid rgba(148, 163, 184, 0.7);border-radius:9999px;background:rgba(255, 255, 255, 0.65);color:#334155;cursor:pointer;}.pie-window-controls__button.svelte-dx0z4a:hover {background:rgba(241, 245, 249, 0.95);}.pie-window-controls__button.svelte-dx0z4a:focus-visible {outline:2px solid #3b82f6;outline-offset:1px;}.pie-window-controls__icon.svelte-dx0z4a {display:block;}"
2719
2719
  };
2720
2720
  function hs(e, t) {
2721
- ln(t, !0), us(e, ao);
2721
+ ln(t, !0), us(e, fo);
2722
2722
  let n = ge(t, "minimized", 7, !1), r = ge(t, "onToggle"), s = ge(t, "onClose"), i = ge(t, "buttonClass", 7, "");
2723
2723
  const o = /* @__PURE__ */ Rr(() => (i() || "").trim() || "pie-window-controls__button");
2724
2724
  var u = {
@@ -2746,13 +2746,13 @@ function hs(e, t) {
2746
2746
  set buttonClass(d = "") {
2747
2747
  i(d), le();
2748
2748
  }
2749
- }, a = lo(), f = Hr(a), c = xe(f);
2749
+ }, a = uo(), f = Hr(a), c = xe(f);
2750
2750
  {
2751
2751
  var h = (d) => {
2752
- var $ = io();
2752
+ var $ = lo();
2753
2753
  _e(d, $);
2754
2754
  }, v = (d) => {
2755
- var $ = oo();
2755
+ var $ = ao();
2756
2756
  _e(d, $);
2757
2757
  };
2758
2758
  Tt(c, (d) => {
@@ -2771,23 +2771,23 @@ function hs(e, t) {
2771
2771
  }
2772
2772
  zn(["click"]);
2773
2773
  jn(hs, { minimized: {}, onToggle: {}, onClose: {}, buttonClass: {} }, [], [], { mode: "open" });
2774
- var uo = Object.defineProperty, fo = (e, t, n) => t in e ? uo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, lr = (e, t, n) => fo(e, typeof t != "symbol" ? t + "" : t, n), ar;
2774
+ var co = Object.defineProperty, ho = (e, t, n) => t in e ? co(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, lr = (e, t, n) => ho(e, typeof t != "symbol" ? t + "" : t, n), ar;
2775
2775
  typeof window < "u" && ((ar = window.__svelte ?? (window.__svelte = {})).v ?? (ar.v = /* @__PURE__ */ new Set())).add("5");
2776
2776
  new class extends Error {
2777
2777
  constructor() {
2778
2778
  super(...arguments), lr(this, "name", "StaleReactionError"), lr(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
2779
2779
  }
2780
2780
  }();
2781
- const co = /* @__PURE__ */ new Set(), ho = /* @__PURE__ */ new Set();
2781
+ const vo = /* @__PURE__ */ new Set(), _o = /* @__PURE__ */ new Set();
2782
2782
  function vs(e) {
2783
2783
  for (var t = 0; t < e.length; t++)
2784
- co.add(e[t]);
2785
- for (var n of ho)
2784
+ vo.add(e[t]);
2785
+ for (var n of _o)
2786
2786
  n(e);
2787
2787
  }
2788
2788
  vs(["click"]);
2789
2789
  vs(["mousedown"]);
2790
- function vo(e, t) {
2790
+ function po(e, t) {
2791
2791
  const n = (f, c, h) => Math.max(c, Math.min(f, h)), r = n(
2792
2792
  Math.round(e.width * t.widthRatio),
2793
2793
  t.minWidth,
@@ -2799,20 +2799,20 @@ function vo(e, t) {
2799
2799
  ), i = t.paddingX ?? 16, o = t.paddingY, u = i, a = Math.max(o, Math.round((e.height - s) / 2));
2800
2800
  return { x: u, y: a, width: r, height: s };
2801
2801
  }
2802
- function _o(e) {
2802
+ function go(e) {
2803
2803
  const t = e.padding ?? 0;
2804
2804
  let n = !1, r = !1, s = 0, i = 0, o = 0, u = 0, a = 0, f = 0, c = 0, h = 0;
2805
- const v = (_) => {
2805
+ const v = (p) => {
2806
2806
  if (!n) return;
2807
- const S = e.getState(), Y = _.clientX - s, G = _.clientY - i, Be = Math.max(t, window.innerWidth - S.width - t), st = Math.max(t, window.innerHeight - 100 - t);
2807
+ const S = e.getState(), Y = p.clientX - s, G = p.clientY - i, Be = Math.max(t, window.innerWidth - S.width - t), st = Math.max(t, window.innerHeight - 100 - t);
2808
2808
  e.setState({
2809
2809
  ...S,
2810
2810
  x: Math.max(t, Math.min(o + Y, Be)),
2811
2811
  y: Math.max(t, Math.min(u + G, st))
2812
2812
  });
2813
- }, g = (_) => {
2813
+ }, g = (p) => {
2814
2814
  if (!r) return;
2815
- const S = e.getState(), Y = _.clientX - a, G = _.clientY - f, Be = Math.max(
2815
+ const S = e.getState(), Y = p.clientX - a, G = p.clientY - f, Be = Math.max(
2816
2816
  e.minWidth,
2817
2817
  window.innerWidth - S.x - t
2818
2818
  ), st = Math.max(
@@ -2836,42 +2836,42 @@ function _o(e) {
2836
2836
  r = !1, document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", $);
2837
2837
  };
2838
2838
  return {
2839
- startDrag(_) {
2840
- n = !0, s = _.clientX, i = _.clientY;
2839
+ startDrag(p) {
2840
+ n = !0, s = p.clientX, i = p.clientY;
2841
2841
  const S = e.getState();
2842
2842
  o = S.x, u = S.y, document.addEventListener("mousemove", v), document.addEventListener("mouseup", d);
2843
2843
  },
2844
- startResize(_) {
2845
- r = !0, a = _.clientX, f = _.clientY;
2844
+ startResize(p) {
2845
+ r = !0, a = p.clientX, f = p.clientY;
2846
2846
  const S = e.getState();
2847
- c = S.width, h = S.height, document.addEventListener("mousemove", g), document.addEventListener("mouseup", $), _.preventDefault(), _.stopPropagation();
2847
+ c = S.width, h = S.height, document.addEventListener("mousemove", g), document.addEventListener("mouseup", $), p.preventDefault(), p.stopPropagation();
2848
2848
  },
2849
2849
  stop() {
2850
2850
  d(), $();
2851
2851
  }
2852
2852
  };
2853
2853
  }
2854
- function po(e, t) {
2854
+ function mo(e, t) {
2855
2855
  return (e || void 0) === (t || void 0);
2856
2856
  }
2857
- function go(e, t, n) {
2857
+ function wo(e, t, n) {
2858
2858
  const r = e?.key?.sectionId || "", s = e?.key?.attemptId || void 0;
2859
- return r !== t ? !1 : po(s, n);
2859
+ return r !== t ? !1 : mo(s, n);
2860
2860
  }
2861
- function mo(e, t, n) {
2861
+ function bo(e, t, n) {
2862
2862
  return !e?.getSectionController || !t ? null : e.getSectionController({
2863
2863
  sectionId: t,
2864
2864
  attemptId: n
2865
2865
  }) || null;
2866
2866
  }
2867
- var wo = /* @__PURE__ */ rt('<div class="pie-section-player-tools-session-debugger__alert pie-section-player-tools-session-debugger__alert--warning"><svg xmlns="http://www.w3.org/2000/svg" class="pie-section-player-tools-session-debugger__icon-md" fill="none" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01M5.07 19h13.86c1.54 0 2.5-1.67 1.73-3L13.73 4c-.77-1.33-2.69-1.33-3.46 0L3.34 16c-.77 1.33.19 3 1.73 3z"></path></svg> <span class="pie-section-player-tools-session-debugger__text-xs">Section controller not available for this section yet.</span></div>'), bo = /* @__PURE__ */ rt('<div class="pie-section-player-tools-session-debugger__alert pie-section-player-tools-session-debugger__alert--info"><svg xmlns="http://www.w3.org/2000/svg" class="pie-section-player-tools-session-debugger__icon-md" fill="none" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span class="pie-section-player-tools-session-debugger__text-xs">No section session data yet. Interact with the questions to see updates.</span></div>'), yo = /* @__PURE__ */ rt('<!> <div class="pie-section-player-tools-session-debugger__card"><div class="pie-section-player-tools-session-debugger__card-title">Item Sessions Snapshot</div> <pre class="pie-section-player-tools-session-debugger__card-pre"> </pre></div>', 1), $o = /* @__PURE__ */ rt('<div class="pie-section-player-tools-session-debugger__content-shell svelte-10oyp9b"><div class="pie-section-player-tools-session-debugger__content"><div class="pie-section-player-tools-session-debugger__section-intro"><div class="pie-section-player-tools-session-debugger__heading">PIE Session Data (Persistent)</div></div> <!></div></div>'), xo = /* @__PURE__ */ rt('<div class="pie-section-player-tools-session-debugger svelte-10oyp9b"><div class="pie-section-player-tools-session-debugger__header svelte-10oyp9b" role="button" tabindex="0" aria-label="Drag session panel"><div class="pie-section-player-tools-session-debugger__header-title svelte-10oyp9b"><svg xmlns="http://www.w3.org/2000/svg" class="pie-section-player-tools-session-debugger__icon-sm svelte-10oyp9b" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg> <h3 class="pie-section-player-tools-session-debugger__title svelte-10oyp9b">Session Data</h3></div> <div class="pie-section-player-tools-session-debugger__header-actions svelte-10oyp9b"><!></div></div> <!> <!></div>');
2868
- const Eo = {
2867
+ var yo = /* @__PURE__ */ rt('<div class="pie-section-player-tools-session-debugger__alert pie-section-player-tools-session-debugger__alert--warning"><svg xmlns="http://www.w3.org/2000/svg" class="pie-section-player-tools-session-debugger__icon-md" fill="none" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01M5.07 19h13.86c1.54 0 2.5-1.67 1.73-3L13.73 4c-.77-1.33-2.69-1.33-3.46 0L3.34 16c-.77 1.33.19 3 1.73 3z"></path></svg> <span class="pie-section-player-tools-session-debugger__text-xs">Section controller not available for this section yet.</span></div>'), $o = /* @__PURE__ */ rt('<div class="pie-section-player-tools-session-debugger__alert pie-section-player-tools-session-debugger__alert--info"><svg xmlns="http://www.w3.org/2000/svg" class="pie-section-player-tools-session-debugger__icon-md" fill="none" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span class="pie-section-player-tools-session-debugger__text-xs">No section session data yet. Interact with the questions to see updates.</span></div>'), xo = /* @__PURE__ */ rt('<!> <div class="pie-section-player-tools-session-debugger__card"><div class="pie-section-player-tools-session-debugger__card-title">Item Sessions Snapshot</div> <pre class="pie-section-player-tools-session-debugger__card-pre"> </pre></div>', 1), Eo = /* @__PURE__ */ rt('<div class="pie-section-player-tools-session-debugger__content-shell svelte-10oyp9b"><div class="pie-section-player-tools-session-debugger__content"><div class="pie-section-player-tools-session-debugger__section-intro"><div class="pie-section-player-tools-session-debugger__heading">PIE Session Data (Persistent)</div></div> <!></div></div>'), So = /* @__PURE__ */ rt('<div class="pie-section-player-tools-session-debugger svelte-10oyp9b"><div class="pie-section-player-tools-session-debugger__header svelte-10oyp9b" role="button" tabindex="0" aria-label="Drag session panel"><div class="pie-section-player-tools-session-debugger__header-title svelte-10oyp9b"><svg xmlns="http://www.w3.org/2000/svg" class="pie-section-player-tools-session-debugger__icon-sm svelte-10oyp9b" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg> <h3 class="pie-section-player-tools-session-debugger__title svelte-10oyp9b">Session Data</h3></div> <div class="pie-section-player-tools-session-debugger__header-actions svelte-10oyp9b"><!></div></div> <!> <!></div>');
2868
+ const Io = {
2869
2869
  hash: "svelte-10oyp9b",
2870
2870
  code: ".pie-section-player-tools-session-debugger.svelte-10oyp9b {position:fixed;z-index:9999;background:var(--color-base-100, #fff);color:var(--color-base-content, #1f2937);border:2px solid var(--color-base-300, #d1d5db);border-radius:8px;box-shadow:0 25px 50px -12px rgba(0, 0, 0, 0.25);overflow:hidden;font-family:var(--pie-font-family, Inter, system-ui, sans-serif);}.pie-section-player-tools-session-debugger__header.svelte-10oyp9b {padding:8px 16px;display:flex;align-items:center;justify-content:space-between;background:var(--color-base-200, #f3f4f6);cursor:move;user-select:none;border-bottom:1px solid var(--color-base-300, #d1d5db);}.pie-section-player-tools-session-debugger__header-title.svelte-10oyp9b {display:flex;align-items:center;gap:8px;}.pie-section-player-tools-session-debugger__icon-sm.svelte-10oyp9b {width:1rem;height:1rem;}.pie-section-player-tools-session-debugger__title.svelte-10oyp9b {margin:0;font-size:0.95rem;font-weight:700;}.pie-section-player-tools-session-debugger__header-actions.svelte-10oyp9b {display:flex;gap:4px;}.pie-section-player-tools-session-debugger__content-shell.svelte-10oyp9b {display:flex;flex-direction:column;min-height:0;}"
2871
2871
  };
2872
- function So(e, t) {
2873
- ln(t, !0), us(e, Eo);
2874
- const n = qi();
2872
+ function Co(e, t) {
2873
+ ln(t, !0), us(e, Io);
2874
+ const n = Xi();
2875
2875
  let r = ge(t, "toolkitCoordinator", 7, null), s = ge(t, "sectionId", 7, ""), i = ge(t, "attemptId", 7, void 0), o = /* @__PURE__ */ z(!1), u = /* @__PURE__ */ z(24), a = /* @__PURE__ */ z(100), f = /* @__PURE__ */ z(220), c = /* @__PURE__ */ z(600), h = /* @__PURE__ */ z(lt({
2876
2876
  currentItemIndex: null,
2877
2877
  currentItemId: null,
@@ -2886,22 +2886,22 @@ function So(e, t) {
2886
2886
  lastChangedItemId: null,
2887
2887
  itemSessions: {}
2888
2888
  })), v = null, g = null, d = /* @__PURE__ */ z(!1), $ = !1;
2889
- const _ = { controller: null, sectionId: "", attemptId: void 0 };
2890
- function S(p) {
2889
+ const p = { controller: null, sectionId: "", attemptId: void 0 };
2890
+ function S(_) {
2891
2891
  try {
2892
- return structuredClone(p);
2892
+ return structuredClone(_);
2893
2893
  } catch {
2894
2894
  try {
2895
- return JSON.parse(JSON.stringify(p));
2895
+ return JSON.parse(JSON.stringify(_));
2896
2896
  } catch {
2897
- return p;
2897
+ return _;
2898
2898
  }
2899
2899
  }
2900
2900
  }
2901
2901
  function Y() {
2902
- return mo(r(), s(), i()) || void 0;
2902
+ return bo(r(), s(), i()) || void 0;
2903
2903
  }
2904
- function G(p, re) {
2904
+ function G(_, re) {
2905
2905
  const We = re || Y(), C = We?.getRuntimeState?.() || null, Ct = We?.getSession?.() || null;
2906
2906
  M(d, !!We, !0), M(
2907
2907
  h,
@@ -2915,28 +2915,34 @@ function So(e, t) {
2915
2915
  itemsComplete: C?.itemsComplete === !0,
2916
2916
  completedCount: typeof C?.completedCount == "number" ? C.completedCount : 0,
2917
2917
  totalItems: typeof C?.totalItems == "number" ? C.totalItems : 0,
2918
- updatedAt: p?.updatedAt || Date.now(),
2919
- lastChangedItemId: p?.itemId || null,
2918
+ updatedAt: _?.updatedAt || Date.now(),
2919
+ lastChangedItemId: _?.itemId || null,
2920
2920
  itemSessions: S(C?.itemSessions || Ct?.itemSessions || {})
2921
2921
  },
2922
2922
  !0
2923
2923
  );
2924
2924
  }
2925
2925
  function Be() {
2926
- v?.(), v = null, _.controller = null, _.sectionId = "", _.attemptId = void 0;
2926
+ v?.(), v = null, p.controller = null, p.sectionId = "", p.attemptId = void 0;
2927
2927
  }
2928
2928
  function st() {
2929
2929
  g?.(), g = null;
2930
2930
  }
2931
- function Fn(p) {
2931
+ function Fn(_) {
2932
2932
  G({
2933
- itemId: p?.itemId,
2934
- updatedAt: p?.timestamp || Date.now()
2933
+ itemId: _?.itemId,
2934
+ updatedAt: _?.timestamp || Date.now()
2935
2935
  });
2936
2936
  }
2937
+ function _s(_) {
2938
+ Fn(_);
2939
+ }
2940
+ function ps(_) {
2941
+ Fn(_);
2942
+ }
2937
2943
  function Bn() {
2938
- const p = Y() || null;
2939
- if (!p) {
2944
+ const _ = Y() || null;
2945
+ if (!_) {
2940
2946
  Be(), M(d, !1), M(
2941
2947
  h,
2942
2948
  {
@@ -2958,38 +2964,38 @@ function So(e, t) {
2958
2964
  return;
2959
2965
  }
2960
2966
  const re = i() || void 0;
2961
- if (_.controller === p && _.sectionId === s() && _.attemptId === re && v) {
2962
- G(void 0, p);
2967
+ if (p.controller === _ && p.sectionId === s() && p.attemptId === re && v) {
2968
+ G(void 0, _);
2963
2969
  return;
2964
2970
  }
2965
2971
  Be();
2966
2972
  const C = r()?.subscribeItemEvents?.({
2967
2973
  sectionId: s(),
2968
2974
  attemptId: i(),
2969
- listener: Fn
2975
+ listener: _s
2970
2976
  }) || null, Ct = r()?.subscribeSectionLifecycleEvents?.({
2971
2977
  sectionId: s(),
2972
2978
  attemptId: i(),
2973
- listener: Fn
2979
+ listener: ps
2974
2980
  }) || null;
2975
2981
  v = () => {
2976
2982
  C?.(), Ct?.();
2977
- }, _.controller = p, _.sectionId = s(), _.attemptId = re, G(void 0, p);
2983
+ }, p.controller = _, p.sectionId = s(), p.attemptId = re, G(void 0, _);
2978
2984
  }
2979
- function _s() {
2985
+ function gs() {
2980
2986
  $ || ($ = !0, queueMicrotask(() => {
2981
2987
  $ = !1, Bn();
2982
2988
  }));
2983
2989
  }
2984
2990
  Sn(() => {
2985
2991
  if (!(!r() || !s()))
2986
- return Bn(), st(), g = r().onSectionControllerLifecycle?.((p) => {
2987
- go(p, s(), i()) && (_s(), G({ updatedAt: Date.now() }));
2992
+ return Bn(), st(), g = r().onSectionControllerLifecycle?.((_) => {
2993
+ wo(_, s(), i()) && (gs(), G({ updatedAt: Date.now() }));
2988
2994
  }) || null, () => {
2989
2995
  Be(), st();
2990
2996
  };
2991
- }), Vi(() => {
2992
- const p = vo({ width: window.innerWidth, height: window.innerHeight }, {
2997
+ }), qi(() => {
2998
+ const _ = po({ width: window.innerWidth, height: window.innerHeight }, {
2993
2999
  widthRatio: 0.29,
2994
3000
  heightRatio: 0.72,
2995
3001
  minWidth: 280,
@@ -2999,17 +3005,17 @@ function So(e, t) {
2999
3005
  paddingX: 16,
3000
3006
  paddingY: 16
3001
3007
  });
3002
- M(u, p.x, !0), M(a, p.y, !0), M(f, p.width, !0), M(c, p.height, !0);
3008
+ M(u, _.x, !0), M(a, _.y, !0), M(f, _.width, !0), M(c, _.height, !0);
3003
3009
  });
3004
- const fn = _o({
3010
+ const fn = go({
3005
3011
  getState: () => ({
3006
3012
  x: x(u),
3007
3013
  y: x(a),
3008
3014
  width: x(f),
3009
3015
  height: x(c)
3010
3016
  }),
3011
- setState: (p) => {
3012
- M(u, p.x, !0), M(a, p.y, !0), M(f, p.width, !0), M(c, p.height, !0);
3017
+ setState: (_) => {
3018
+ M(u, _.x, !0), M(a, _.y, !0), M(f, _.width, !0), M(c, _.height, !0);
3013
3019
  },
3014
3020
  minWidth: 300,
3015
3021
  minHeight: 200
@@ -3017,27 +3023,27 @@ function So(e, t) {
3017
3023
  Sn(() => () => {
3018
3024
  fn.stop();
3019
3025
  });
3020
- var ps = {
3026
+ var ms = {
3021
3027
  get toolkitCoordinator() {
3022
3028
  return r();
3023
3029
  },
3024
- set toolkitCoordinator(p = null) {
3025
- r(p), le();
3030
+ set toolkitCoordinator(_ = null) {
3031
+ r(_), le();
3026
3032
  },
3027
3033
  get sectionId() {
3028
3034
  return s();
3029
3035
  },
3030
- set sectionId(p = "") {
3031
- s(p), le();
3036
+ set sectionId(_ = "") {
3037
+ s(_), le();
3032
3038
  },
3033
3039
  get attemptId() {
3034
3040
  return i();
3035
3041
  },
3036
- set attemptId(p = void 0) {
3037
- i(p), le();
3042
+ set attemptId(_ = void 0) {
3043
+ i(_), le();
3038
3044
  }
3039
- }, Ht = xo(), Ft = xe(Ht), Wn = Ve(xe(Ft), 2), gs = xe(Wn);
3040
- hs(gs, {
3045
+ }, Ht = So(), Ft = xe(Ht), Wn = Ve(xe(Ft), 2), ws = xe(Wn);
3046
+ hs(ws, {
3041
3047
  get minimized() {
3042
3048
  return x(o);
3043
3049
  },
@@ -3046,52 +3052,52 @@ function So(e, t) {
3046
3052
  }), ye(Wn), ye(Ft);
3047
3053
  var Vn = Ve(Ft, 2);
3048
3054
  {
3049
- var ms = (p) => {
3050
- var re = $o(), We = xe(re), C = Ve(xe(We), 2);
3055
+ var bs = (_) => {
3056
+ var re = Eo(), We = xe(re), C = Ve(xe(We), 2);
3051
3057
  {
3052
3058
  var Ct = (it) => {
3053
- var Bt = wo();
3059
+ var Bt = yo();
3054
3060
  _e(it, Bt);
3055
- }, ys = (it) => {
3056
- var Bt = yo(), Yn = Hr(Bt);
3061
+ }, xs = (it) => {
3062
+ var Bt = xo(), Yn = Hr(Bt);
3057
3063
  {
3058
- var $s = (kt) => {
3059
- var Ss = bo();
3060
- _e(kt, Ss);
3061
- }, xs = /* @__PURE__ */ Rr(() => Object.keys(x(h).itemSessions || {}).length === 0);
3064
+ var Es = (kt) => {
3065
+ var Cs = $o();
3066
+ _e(kt, Cs);
3067
+ }, Ss = /* @__PURE__ */ Rr(() => Object.keys(x(h).itemSessions || {}).length === 0);
3062
3068
  Tt(Yn, (kt) => {
3063
- x(xs) && kt($s);
3069
+ x(Ss) && kt(Es);
3064
3070
  });
3065
3071
  }
3066
- var qn = Ve(Yn, 2), Un = Ve(xe(qn), 2), Es = xe(Un, !0);
3067
- ye(Un), ye(qn), Rt((kt) => Hi(Es, kt), [() => JSON.stringify(x(h), null, 2)]), _e(it, Bt);
3072
+ var qn = Ve(Yn, 2), Un = Ve(xe(qn), 2), Is = xe(Un, !0);
3073
+ ye(Un), ye(qn), Rt((kt) => Bi(Is, kt), [() => JSON.stringify(x(h), null, 2)]), _e(it, Bt);
3068
3074
  };
3069
3075
  Tt(C, (it) => {
3070
- x(d) ? it(ys, -1) : it(Ct);
3076
+ x(d) ? it(xs, -1) : it(Ct);
3071
3077
  });
3072
3078
  }
3073
- ye(We), ye(re), Rt(() => sr(re, `height: ${x(c) - 50}px;`)), _e(p, re);
3079
+ ye(We), ye(re), Rt(() => sr(re, `height: ${x(c) - 50}px;`)), _e(_, re);
3074
3080
  };
3075
- Tt(Vn, (p) => {
3076
- x(o) || p(ms);
3081
+ Tt(Vn, (_) => {
3082
+ x(o) || _(bs);
3077
3083
  });
3078
3084
  }
3079
- var ws = Ve(Vn, 2);
3085
+ var ys = Ve(Vn, 2);
3080
3086
  {
3081
- var bs = (p) => {
3082
- ds(p, {
3087
+ var $s = (_) => {
3088
+ ds(_, {
3083
3089
  onPointerDown: (re) => fn.startResize(re)
3084
3090
  });
3085
3091
  };
3086
- Tt(ws, (p) => {
3087
- x(o) || p(bs);
3092
+ Tt(ys, (_) => {
3093
+ x(o) || _($s);
3088
3094
  });
3089
3095
  }
3090
- return ye(Ht), Rt(() => sr(Ht, `left: ${x(u) ?? ""}px; top: ${x(a) ?? ""}px; width: ${x(f) ?? ""}px; ${x(o) ? "height: auto;" : `height: ${x(c)}px;`}`)), Zt("mousedown", Ft, (p) => fn.startDrag(p)), _e(e, Ht), an(ps);
3096
+ return ye(Ht), Rt(() => sr(Ht, `left: ${x(u) ?? ""}px; top: ${x(a) ?? ""}px; width: ${x(f) ?? ""}px; ${x(o) ? "height: auto;" : `height: ${x(c)}px;`}`)), Zt("mousedown", Ft, (_) => fn.startDrag(_)), _e(e, Ht), an(ms);
3091
3097
  }
3092
3098
  zn(["mousedown"]);
3093
3099
  customElements.define("pie-section-player-tools-session-debugger", jn(
3094
- So,
3100
+ Co,
3095
3101
  {
3096
3102
  sectionId: { attribute: "section-id", type: "String" },
3097
3103
  attemptId: { attribute: "attempt-id", type: "String" },
@@ -3101,5 +3107,5 @@ customElements.define("pie-section-player-tools-session-debugger", jn(
3101
3107
  []
3102
3108
  ));
3103
3109
  export {
3104
- So as default
3110
+ Co as default
3105
3111
  };