@pie-players/pie-section-player 0.3.11 → 0.3.12

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.
@@ -3,16 +3,16 @@ var fr = (n) => {
3
3
  throw TypeError(n);
4
4
  };
5
5
  var ga = (n, e, t) => e in n ? ma(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
6
- var y = (n, e, t) => ga(n, typeof e != "symbol" ? e + "" : e, t), io = (n, e, t) => e.has(n) || fr("Cannot " + t);
6
+ var v = (n, e, t) => ga(n, typeof e != "symbol" ? e + "" : e, t), io = (n, e, t) => e.has(n) || fr("Cannot " + t);
7
7
  var b = (n, e, t) => (io(n, e, "read from private field"), t ? t.call(n) : e.get(n)), re = (n, e, t) => e.has(n) ? fr("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(n) : e.set(n, t), te = (n, e, t, i) => (io(n, e, "write to private field"), i ? i.call(n, t) : e.set(n, t), t), Ee = (n, e, t) => (io(n, e, "access private method"), t);
8
- import { v as va, g as ya, o as ba, c as Ia } from "./player-preload-INeqLGTO.js";
8
+ import { v as ya, g as va, o as ba, c as Ia } from "./player-preload-INeqLGTO.js";
9
9
  import "@pie-players/pie-toolbars/components/item-toolbar-element";
10
10
  import "@pie-players/pie-toolbars/components/section-toolbar-element";
11
11
  const Sa = "5";
12
- var Lr;
13
- typeof window < "u" && ((Lr = window.__svelte ?? (window.__svelte = {})).v ?? (Lr.v = /* @__PURE__ */ new Set())).add(Sa);
14
- const Ta = 1, wa = 2, Ca = 16, _a = 1, Ea = 4, Pa = 8, ka = 16, Aa = 1, xa = 2, Mr = "[", Mo = "[!", hr = "[?", No = "]", Yn = {}, Ne = /* @__PURE__ */ Symbol(), Nr = "http://www.w3.org/1999/xhtml", Ra = "http://www.w3.org/2000/svg", lo = !1;
15
- var zo = Array.isArray, Oa = Array.prototype.indexOf, Xn = Array.prototype.includes, Bi = Array.from, xi = Object.keys, Ri = Object.defineProperty, Cn = Object.getOwnPropertyDescriptor, zr = Object.getOwnPropertyDescriptors, La = Object.prototype, Ma = Array.prototype, Do = Object.getPrototypeOf, pr = Object.isExtensible;
12
+ var Mr;
13
+ typeof window < "u" && ((Mr = window.__svelte ?? (window.__svelte = {})).v ?? (Mr.v = /* @__PURE__ */ new Set())).add(Sa);
14
+ const Ta = 1, wa = 2, Ca = 16, _a = 1, Ea = 4, Pa = 8, ka = 16, Aa = 1, xa = 2, Lr = "[", Lo = "[!", hr = "[?", No = "]", Yn = {}, Ne = /* @__PURE__ */ Symbol(), Nr = "http://www.w3.org/1999/xhtml", Ra = "http://www.w3.org/2000/svg", lo = !1;
15
+ var zo = Array.isArray, Oa = Array.prototype.indexOf, Xn = Array.prototype.includes, Bi = Array.from, xi = Object.keys, Ri = Object.defineProperty, Cn = Object.getOwnPropertyDescriptor, zr = Object.getOwnPropertyDescriptors, Ma = Object.prototype, La = Array.prototype, Do = Object.getPrototypeOf, pr = Object.isExtensible;
16
16
  const Na = () => {
17
17
  };
18
18
  function za(n) {
@@ -28,13 +28,13 @@ function Dr() {
28
28
  const He = 2, ni = 4, Jn = 8, Bo = 1 << 24, fn = 16, Pt = 32, hn = 64, co = 128, ht = 512, De = 1024, Be = 2048, Et = 4096, We = 8192, zt = 16384, Dn = 32768, xn = 65536, mr = 1 << 17, Da = 1 << 18, Bn = 1 << 19, Ba = 1 << 20, $t = 1 << 25, Rn = 65536, uo = 1 << 21, Ho = 1 << 22, ln = 1 << 23, _n = /* @__PURE__ */ Symbol("$state"), Br = /* @__PURE__ */ Symbol("legacy props"), Ha = /* @__PURE__ */ Symbol(""), mn = new class extends Error {
29
29
  constructor() {
30
30
  super(...arguments);
31
- y(this, "name", "StaleReactionError");
32
- y(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
31
+ v(this, "name", "StaleReactionError");
32
+ v(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
33
33
  }
34
34
  }(), Fa = (
35
35
  // We gotta write it like this because after downleveling the pure comment may end up in the wrong location
36
36
  !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml")
37
- ), Va = 1, Hi = 3, vi = 8;
37
+ ), Va = 1, Hi = 3, yi = 8;
38
38
  function Fo() {
39
39
  throw new Error("https://svelte.dev/e/invalid_default_snippet");
40
40
  }
@@ -113,7 +113,7 @@ function Fr(n = 1) {
113
113
  }
114
114
  function Oi(n = !0) {
115
115
  for (var e = 0, t = ue; ; ) {
116
- if (t.nodeType === vi) {
116
+ if (t.nodeType === yi) {
117
117
  var i = (
118
118
  /** @type {Comment} */
119
119
  t.data
@@ -121,7 +121,7 @@ function Oi(n = !0) {
121
121
  if (i === No) {
122
122
  if (e === 0) return t;
123
123
  e -= 1;
124
- } else (i === Mr || i === Mo || // "[1", "[2", etc. for if blocks
124
+ } else (i === Lr || i === Lo || // "[1", "[2", etc. for if blocks
125
125
  i[0] === "[" && !isNaN(Number(i.slice(1)))) && (e += 1);
126
126
  }
127
127
  var o = (
@@ -132,7 +132,7 @@ function Oi(n = !0) {
132
132
  }
133
133
  }
134
134
  function Vr(n) {
135
- if (!n || n.nodeType !== vi)
135
+ if (!n || n.nodeType !== yi)
136
136
  throw Fi(), Yn;
137
137
  return (
138
138
  /** @type {Comment} */
@@ -246,19 +246,19 @@ const lr = class lr {
246
246
  constructor() {
247
247
  re(this, et);
248
248
  // for debugging. TODO remove once async is stable
249
- y(this, "id", ol++);
249
+ v(this, "id", ol++);
250
250
  /**
251
251
  * The current values of any sources that are updated in this batch
252
252
  * They keys of this map are identical to `this.#previous`
253
253
  * @type {Map<Source, any>}
254
254
  */
255
- y(this, "current", /* @__PURE__ */ new Map());
255
+ v(this, "current", /* @__PURE__ */ new Map());
256
256
  /**
257
257
  * The values of any sources that are updated in this batch _before_ those updates took place.
258
258
  * They keys of this map are identical to `this.#current`
259
259
  * @type {Map<Source, any>}
260
260
  */
261
- y(this, "previous", /* @__PURE__ */ new Map());
261
+ v(this, "previous", /* @__PURE__ */ new Map());
262
262
  /**
263
263
  * When the batch is committed (and the DOM is updated), we need to remove old branches
264
264
  * and append new ones by calling the functions added inside (if/each/key/etc) blocks
@@ -302,7 +302,7 @@ const lr = class lr {
302
302
  * @type {Map<Effect, { d: Effect[], m: Effect[] }>}
303
303
  */
304
304
  re(this, Rt, /* @__PURE__ */ new Map());
305
- y(this, "is_fork", !1);
305
+ v(this, "is_fork", !1);
306
306
  re(this, Wn, !1);
307
307
  }
308
308
  /**
@@ -435,7 +435,7 @@ ho = function(e, t, i) {
435
435
  for (var o = e.first; o !== null; ) {
436
436
  var r = o.f, s = (r & (Pt | hn)) !== 0, l = s && (r & De) !== 0, c = (r & We) !== 0, d = l || b(this, Rt).has(o);
437
437
  if (!d && o.fn !== null) {
438
- s ? c || (o.f ^= De) : (r & ni) !== 0 ? t.push(o) : (r & (Jn | Bo)) !== 0 && c ? i.push(o) : yi(o) && (ti(o), (r & fn) !== 0 && (b(this, on).add(o), c && ke(o, Be)));
438
+ s ? c || (o.f ^= De) : (r & ni) !== 0 ? t.push(o) : (r & (Jn | Bo)) !== 0 && c ? i.push(o) : vi(o) && (ti(o), (r & fn) !== 0 && (b(this, on).add(o), c && ke(o, Be)));
439
439
  var u = o.first;
440
440
  if (u !== null) {
441
441
  o = u;
@@ -541,7 +541,7 @@ function gr(n) {
541
541
  if (e !== 0) {
542
542
  for (var t = 0; t < e; ) {
543
543
  var i = n[t++];
544
- if ((i.f & (zt | We)) === 0 && yi(i) && (jt = /* @__PURE__ */ new Set(), ti(i), i.deps === null && i.first === null && i.nodes === null && i.teardown === null && i.ac === null && gs(i), jt?.size > 0)) {
544
+ if ((i.f & (zt | We)) === 0 && vi(i) && (jt = /* @__PURE__ */ new Set(), ti(i), i.deps === null && i.first === null && i.nodes === null && i.teardown === null && i.ac === null && gs(i), jt?.size > 0)) {
545
545
  dn.clear();
546
546
  for (const o of jt) {
547
547
  if ((o.f & (zt | We)) !== 0) continue;
@@ -624,7 +624,7 @@ function Qr(n, e) {
624
624
  }
625
625
  }
626
626
  function sl(n) {
627
- let e = 0, t = Ln(0), i;
627
+ let e = 0, t = Mn(0), i;
628
628
  return () => {
629
629
  Wo() && (a(t), qi(() => (e === 0 && (i = bi(() => n(() => ci(t)))), e += 1, () => {
630
630
  cn(() => {
@@ -637,7 +637,7 @@ var al = xn | Bn;
637
637
  function ll(n, e, t, i) {
638
638
  new cl(n, e, t, i);
639
639
  }
640
- var it, pi, Ot, Sn, Ye, Lt, ot, St, Kt, Tn, rn, Un, $n, Gn, qt, zi, Pe, es, ts, ns, go, _i, Ei, vo;
640
+ var it, pi, Ot, Sn, Ye, Mt, ot, St, Kt, Tn, rn, Un, $n, Gn, qt, zi, Pe, es, ts, ns, go, _i, Ei, yo;
641
641
  class cl {
642
642
  /**
643
643
  * @param {TemplateNode} node
@@ -648,14 +648,14 @@ class cl {
648
648
  constructor(e, t, i, o) {
649
649
  re(this, Pe);
650
650
  /** @type {Boundary | null} */
651
- y(this, "parent");
652
- y(this, "is_pending", !1);
651
+ v(this, "parent");
652
+ v(this, "is_pending", !1);
653
653
  /**
654
654
  * API-level transformError transform function. Transforms errors before they reach the `failed` snippet.
655
655
  * Inherited from parent boundary, or defaults to identity.
656
656
  * @type {(error: unknown) => unknown}
657
657
  */
658
- y(this, "transform_error");
658
+ v(this, "transform_error");
659
659
  /** @type {TemplateNode} */
660
660
  re(this, it);
661
661
  /** @type {TemplateNode | null} */
@@ -667,7 +667,7 @@ class cl {
667
667
  /** @type {Effect} */
668
668
  re(this, Ye);
669
669
  /** @type {Effect | null} */
670
- re(this, Lt, null);
670
+ re(this, Mt, null);
671
671
  /** @type {Effect | null} */
672
672
  re(this, ot, null);
673
673
  /** @type {Effect | null} */
@@ -689,7 +689,7 @@ class cl {
689
689
  * @type {Source<number> | null}
690
690
  */
691
691
  re(this, qt, null);
692
- re(this, zi, sl(() => (te(this, qt, Ln(b(this, Tn))), () => {
692
+ re(this, zi, sl(() => (te(this, qt, Mn(b(this, Tn))), () => {
693
693
  te(this, qt, null);
694
694
  })));
695
695
  te(this, it, e), te(this, Ot, t), te(this, Sn, (r) => {
@@ -706,7 +706,7 @@ class cl {
706
706
  b(this, pi)
707
707
  );
708
708
  On();
709
- const s = r.data === Mo;
709
+ const s = r.data === Lo;
710
710
  if (r.data.startsWith(hr)) {
711
711
  const c = JSON.parse(r.data.slice(hr.length));
712
712
  Ee(this, Pe, ts).call(this, c);
@@ -739,7 +739,7 @@ class cl {
739
739
  * @param {1 | -1} d
740
740
  */
741
741
  update_pending_count(e) {
742
- Ee(this, Pe, vo).call(this, e), te(this, Tn, b(this, Tn) + e), !(!b(this, qt) || b(this, Un)) && (te(this, Un, !0), cn(() => {
742
+ Ee(this, Pe, yo).call(this, e), te(this, Tn, b(this, Tn) + e), !(!b(this, qt) || b(this, Un)) && (te(this, Un, !0), cn(() => {
743
743
  te(this, Un, !1), b(this, qt) && ei(b(this, qt), b(this, Tn));
744
744
  }));
745
745
  }
@@ -755,7 +755,7 @@ class cl {
755
755
  let i = b(this, Ot).failed;
756
756
  if (!t && !i)
757
757
  throw e;
758
- b(this, Lt) && (Ue(b(this, Lt)), te(this, Lt, null)), b(this, ot) && (Ue(b(this, ot)), te(this, ot, null)), b(this, St) && (Ue(b(this, St)), te(this, St, null)), ee && (Ve(
758
+ b(this, Mt) && (Ue(b(this, Mt)), te(this, Mt, null)), b(this, ot) && (Ue(b(this, ot)), te(this, ot, null)), b(this, St) && (Ue(b(this, St)), te(this, St, null)), ee && (Ve(
759
759
  /** @type {TemplateNode} */
760
760
  b(this, pi)
761
761
  ), Fr(), Ve(Oi()));
@@ -816,9 +816,9 @@ class cl {
816
816
  });
817
817
  }
818
818
  }
819
- it = new WeakMap(), pi = new WeakMap(), Ot = new WeakMap(), Sn = new WeakMap(), Ye = new WeakMap(), Lt = new WeakMap(), ot = new WeakMap(), St = new WeakMap(), Kt = new WeakMap(), Tn = new WeakMap(), rn = new WeakMap(), Un = new WeakMap(), $n = new WeakMap(), Gn = new WeakMap(), qt = new WeakMap(), zi = new WeakMap(), Pe = new WeakSet(), es = function() {
819
+ it = new WeakMap(), pi = new WeakMap(), Ot = new WeakMap(), Sn = new WeakMap(), Ye = new WeakMap(), Mt = new WeakMap(), ot = new WeakMap(), St = new WeakMap(), Kt = new WeakMap(), Tn = new WeakMap(), rn = new WeakMap(), Un = new WeakMap(), $n = new WeakMap(), Gn = new WeakMap(), qt = new WeakMap(), zi = new WeakMap(), Pe = new WeakSet(), es = function() {
820
820
  try {
821
- te(this, Lt, ft(() => b(this, Sn).call(this, b(this, it))));
821
+ te(this, Mt, ft(() => b(this, Sn).call(this, b(this, it))));
822
822
  } catch (e) {
823
823
  this.error(e);
824
824
  }
@@ -839,7 +839,7 @@ ts = function(e) {
839
839
  const e = b(this, Ot).pending;
840
840
  e && (this.is_pending = !0, te(this, ot, ft(() => e(b(this, it)))), cn(() => {
841
841
  var t = te(this, Kt, document.createDocumentFragment()), i = mt();
842
- t.append(i), te(this, Lt, Ee(this, Pe, Ei).call(this, () => (Gt.ensure(), ft(() => b(this, Sn).call(this, i))))), b(this, rn) === 0 && (b(this, it).before(t), te(this, Kt, null), En(
842
+ t.append(i), te(this, Mt, Ee(this, Pe, Ei).call(this, () => (Gt.ensure(), ft(() => b(this, Sn).call(this, i))))), b(this, rn) === 0 && (b(this, it).before(t), te(this, Kt, null), En(
843
843
  /** @type {Effect} */
844
844
  b(this, ot),
845
845
  () => {
@@ -849,11 +849,11 @@ ts = function(e) {
849
849
  }));
850
850
  }, go = function() {
851
851
  try {
852
- if (this.is_pending = this.has_pending_snippet(), te(this, rn, 0), te(this, Tn, 0), te(this, Lt, ft(() => {
852
+ if (this.is_pending = this.has_pending_snippet(), te(this, rn, 0), te(this, Tn, 0), te(this, Mt, ft(() => {
853
853
  b(this, Sn).call(this, b(this, it));
854
854
  })), b(this, rn) > 0) {
855
855
  var e = te(this, Kt, document.createDocumentFragment());
856
- Xo(b(this, Lt), e);
856
+ Xo(b(this, Mt), e);
857
857
  const t = (
858
858
  /** @type {(anchor: Node) => void} */
859
859
  b(this, Ot).pending
@@ -877,23 +877,23 @@ ts = function(e) {
877
877
  */
878
878
  Ei = function(e) {
879
879
  var t = fe, i = se, o = Ze;
880
- vt(b(this, Ye)), Qe(b(this, Ye)), Zn(b(this, Ye).ctx);
880
+ yt(b(this, Ye)), Qe(b(this, Ye)), Zn(b(this, Ye).ctx);
881
881
  try {
882
882
  return e();
883
883
  } catch (r) {
884
884
  return $r(r), null;
885
885
  } finally {
886
- vt(t), Qe(i), Zn(o);
886
+ yt(t), Qe(i), Zn(o);
887
887
  }
888
888
  }, /**
889
889
  * Updates the pending count associated with the currently visible pending snippet,
890
890
  * if any, such that we can replace the snippet with content once work is done
891
891
  * @param {1 | -1} d
892
892
  */
893
- vo = function(e) {
893
+ yo = function(e) {
894
894
  var t;
895
895
  if (!this.has_pending_snippet()) {
896
- this.parent && Ee(t = this.parent, Pe, vo).call(t, e);
896
+ this.parent && Ee(t = this.parent, Pe, yo).call(t, e);
897
897
  return;
898
898
  }
899
899
  te(this, rn, b(this, rn) + e), b(this, rn) === 0 && (Ee(this, Pe, _i).call(this), b(this, ot) && En(b(this, ot), () => {
@@ -918,7 +918,7 @@ function dl(n, e, t, i) {
918
918
  } catch (g) {
919
919
  (s.f & zt) === 0 && sn(g, s);
920
920
  }
921
- yo();
921
+ vo();
922
922
  }
923
923
  if (t.length === 0) {
924
924
  c.then(() => d(e.map(o)));
@@ -932,11 +932,11 @@ function dl(n, e, t, i) {
932
932
  function ul() {
933
933
  var n = fe, e = se, t = Ze, i = _e;
934
934
  return function(r = !0) {
935
- vt(n), Qe(e), Zn(t), r && i?.activate();
935
+ yt(n), Qe(e), Zn(t), r && i?.activate();
936
936
  };
937
937
  }
938
- function yo(n = !0) {
939
- vt(null), Qe(null), Zn(null), n && _e?.deactivate();
938
+ function vo(n = !0) {
939
+ yt(null), Qe(null), Zn(null), n && _e?.deactivate();
940
940
  }
941
941
  function fl() {
942
942
  var n = (
@@ -983,7 +983,7 @@ function hl(n, e, t) {
983
983
  /** @type {Promise<V>} */
984
984
  /** @type {unknown} */
985
985
  void 0
986
- ), r = Ln(
986
+ ), r = Mn(
987
987
  /** @type {V} */
988
988
  Ne
989
989
  ), s = !se, l = /* @__PURE__ */ new Map();
@@ -991,9 +991,9 @@ function hl(n, e, t) {
991
991
  var c = Dr();
992
992
  o = c.promise;
993
993
  try {
994
- Promise.resolve(n()).then(c.resolve, c.reject).finally(yo);
994
+ Promise.resolve(n()).then(c.resolve, c.reject).finally(vo);
995
995
  } catch (g) {
996
- c.reject(g), yo();
996
+ c.reject(g), vo();
997
997
  }
998
998
  var d = (
999
999
  /** @type {Batch} */
@@ -1063,11 +1063,11 @@ function ml(n) {
1063
1063
  }
1064
1064
  function jo(n) {
1065
1065
  var e, t = fe;
1066
- vt(ml(n));
1066
+ yt(ml(n));
1067
1067
  try {
1068
1068
  n.f &= ~Rn, pl(n), e = ws(n);
1069
1069
  } finally {
1070
- vt(t);
1070
+ yt(t);
1071
1071
  }
1072
1072
  return e;
1073
1073
  }
@@ -1092,7 +1092,7 @@ function rs(n) {
1092
1092
  let bo = /* @__PURE__ */ new Set();
1093
1093
  const dn = /* @__PURE__ */ new Map();
1094
1094
  let ss = !1;
1095
- function Ln(n, e) {
1095
+ function Mn(n, e) {
1096
1096
  var t = {
1097
1097
  f: 0,
1098
1098
  // TODO ideally we could skip this altogether, but it causes type errors
@@ -1106,12 +1106,12 @@ function Ln(n, e) {
1106
1106
  }
1107
1107
  // @__NO_SIDE_EFFECTS__
1108
1108
  function $(n, e) {
1109
- const t = Ln(n);
1109
+ const t = Mn(n);
1110
1110
  return bs(t), t;
1111
1111
  }
1112
1112
  // @__NO_SIDE_EFFECTS__
1113
1113
  function as(n, e = !1, t = !0) {
1114
- const i = Ln(n);
1114
+ const i = Mn(n);
1115
1115
  return e || (i.equals = qr), i;
1116
1116
  }
1117
1117
  function V(n, e, t = !1) {
@@ -1133,14 +1133,14 @@ function ei(n, e) {
1133
1133
  );
1134
1134
  (n.f & Be) !== 0 && jo(o), Vo(o);
1135
1135
  }
1136
- n.wv = Ss(), ls(n, Be), fe !== null && (fe.f & De) !== 0 && (fe.f & (Pt | hn)) === 0 && (ct === null ? _l([n]) : ct.push(n)), !i.is_fork && bo.size > 0 && !ss && vl();
1136
+ n.wv = Ss(), ls(n, Be), fe !== null && (fe.f & De) !== 0 && (fe.f & (Pt | hn)) === 0 && (ct === null ? _l([n]) : ct.push(n)), !i.is_fork && bo.size > 0 && !ss && yl();
1137
1137
  }
1138
1138
  return e;
1139
1139
  }
1140
- function vl() {
1140
+ function yl() {
1141
1141
  ss = !1;
1142
1142
  for (const n of bo)
1143
- (n.f & De) !== 0 && ke(n, Et), yi(n) && ti(n);
1143
+ (n.f & De) !== 0 && ke(n, Et), vi(n) && ti(n);
1144
1144
  bo.clear();
1145
1145
  }
1146
1146
  function ci(n) {
@@ -1170,7 +1170,7 @@ function an(n) {
1170
1170
  if (typeof n != "object" || n === null || _n in n)
1171
1171
  return n;
1172
1172
  const e = Do(n);
1173
- if (e !== La && e !== Ma)
1173
+ if (e !== Ma && e !== La)
1174
1174
  return n;
1175
1175
  var t = /* @__PURE__ */ new Map(), i = zo(n), o = /* @__PURE__ */ $(0), r = Pn, s = (l) => {
1176
1176
  if (Pn === r)
@@ -1269,11 +1269,11 @@ function an(n) {
1269
1269
  var A = Reflect.getOwnPropertyDescriptor(l, c);
1270
1270
  if (A?.set && A.set.call(u, d), !g) {
1271
1271
  if (i && typeof c == "string") {
1272
- var v = (
1272
+ var y = (
1273
1273
  /** @type {Source<number>} */
1274
1274
  t.get("length")
1275
1275
  ), C = Number(c);
1276
- Number.isInteger(C) && C >= v.v && V(v, C + 1);
1276
+ Number.isInteger(C) && C >= y.v && V(y, C + 1);
1277
1277
  }
1278
1278
  ci(o);
1279
1279
  }
@@ -1295,10 +1295,10 @@ function an(n) {
1295
1295
  }
1296
1296
  );
1297
1297
  }
1298
- var vr, cs, ds, us;
1298
+ var yr, cs, ds, us;
1299
1299
  function Io() {
1300
- if (vr === void 0) {
1301
- vr = window, cs = /Firefox/.test(navigator.userAgent);
1300
+ if (yr === void 0) {
1301
+ yr = window, cs = /Firefox/.test(navigator.userAgent);
1302
1302
  var n = Element.prototype, e = Node.prototype, t = Text.prototype;
1303
1303
  ds = Cn(e, "firstChild").get, us = Cn(e, "nextSibling").get, pr(n) && (n.__click = void 0, n.__className = void 0, n.__attributes = null, n.__style = void 0, n.__e = void 0), pr(t) && (t.__t = void 0);
1304
1304
  }
@@ -1307,7 +1307,7 @@ function mt(n = "") {
1307
1307
  return document.createTextNode(n);
1308
1308
  }
1309
1309
  // @__NO_SIDE_EFFECTS__
1310
- function Mn(n) {
1310
+ function Ln(n) {
1311
1311
  return (
1312
1312
  /** @type {TemplateNode | null} */
1313
1313
  ds.call(n)
@@ -1322,8 +1322,8 @@ function Dt(n) {
1322
1322
  }
1323
1323
  function Ce(n, e) {
1324
1324
  if (!ee)
1325
- return /* @__PURE__ */ Mn(n);
1326
- var t = /* @__PURE__ */ Mn(ue);
1325
+ return /* @__PURE__ */ Ln(n);
1326
+ var t = /* @__PURE__ */ Ln(ue);
1327
1327
  if (t === null)
1328
1328
  t = ue.appendChild(mt());
1329
1329
  else if (e && t.nodeType !== Hi) {
@@ -1337,7 +1337,7 @@ function Ce(n, e) {
1337
1337
  }
1338
1338
  function gt(n, e = !1) {
1339
1339
  if (!ee) {
1340
- var t = /* @__PURE__ */ Mn(n);
1340
+ var t = /* @__PURE__ */ Ln(n);
1341
1341
  return t instanceof Comment && t.data === "" ? /* @__PURE__ */ Dt(t) : t;
1342
1342
  }
1343
1343
  if (e) {
@@ -1396,14 +1396,14 @@ function Ko(n) {
1396
1396
  }
1397
1397
  function qo(n) {
1398
1398
  var e = se, t = fe;
1399
- Qe(null), vt(null);
1399
+ Qe(null), yt(null);
1400
1400
  try {
1401
1401
  return n();
1402
1402
  } finally {
1403
- Qe(e), vt(t);
1403
+ Qe(e), yt(t);
1404
1404
  }
1405
1405
  }
1406
- function yl(n) {
1406
+ function vl(n) {
1407
1407
  fe === null && (se === null && Ua(), Wa()), un && qa();
1408
1408
  }
1409
1409
  function bl(n, e) {
@@ -1457,7 +1457,7 @@ function Uo(n) {
1457
1457
  return ke(e, De), e.teardown = n, e;
1458
1458
  }
1459
1459
  function ae(n) {
1460
- yl();
1460
+ vl();
1461
1461
  var e = (
1462
1462
  /** @type {Effect} */
1463
1463
  fe.f
@@ -1515,11 +1515,11 @@ function ms(n) {
1515
1515
  var e = n.teardown;
1516
1516
  if (e !== null) {
1517
1517
  const t = un, i = se;
1518
- yr(!0), Qe(null);
1518
+ vr(!0), Qe(null);
1519
1519
  try {
1520
1520
  e.call(null);
1521
1521
  } finally {
1522
- yr(t), Qe(i);
1522
+ vr(t), Qe(i);
1523
1523
  }
1524
1524
  }
1525
1525
  }
@@ -1567,7 +1567,7 @@ function gs(n) {
1567
1567
  }
1568
1568
  function En(n, e, t = !0) {
1569
1569
  var i = [];
1570
- vs(n, i, !0);
1570
+ ys(n, i, !0);
1571
1571
  var o = () => {
1572
1572
  t && Ue(n), e && e();
1573
1573
  }, r = i.length;
@@ -1578,7 +1578,7 @@ function En(n, e, t = !0) {
1578
1578
  } else
1579
1579
  o();
1580
1580
  }
1581
- function vs(n, e, t) {
1581
+ function ys(n, e, t) {
1582
1582
  if ((n.f & We) === 0) {
1583
1583
  n.f ^= We;
1584
1584
  var i = n.nodes && n.nodes.t;
@@ -1590,19 +1590,19 @@ function vs(n, e, t) {
1590
1590
  // it means the parent block effect was pruned. In that case,
1591
1591
  // transparency information was transferred to the branch effect.
1592
1592
  (o.f & Pt) !== 0 && (n.f & fn) !== 0;
1593
- vs(o, e, s ? t : !1), o = r;
1593
+ ys(o, e, s ? t : !1), o = r;
1594
1594
  }
1595
1595
  }
1596
1596
  }
1597
1597
  function Yo(n) {
1598
- ys(n, !0);
1598
+ vs(n, !0);
1599
1599
  }
1600
- function ys(n, e) {
1600
+ function vs(n, e) {
1601
1601
  if ((n.f & We) !== 0) {
1602
1602
  n.f ^= We;
1603
1603
  for (var t = n.first; t !== null; ) {
1604
1604
  var i = t.next, o = (t.f & xn) !== 0 || (t.f & Pt) !== 0;
1605
- ys(t, o ? e : !1), t = i;
1605
+ vs(t, o ? e : !1), t = i;
1606
1606
  }
1607
1607
  var r = n.nodes && n.nodes.t;
1608
1608
  if (r !== null)
@@ -1618,7 +1618,7 @@ function Xo(n, e) {
1618
1618
  }
1619
1619
  }
1620
1620
  let Pi = !1, un = !1;
1621
- function yr(n) {
1621
+ function vr(n) {
1622
1622
  un = n;
1623
1623
  }
1624
1624
  let se = null, _t = !1;
@@ -1626,7 +1626,7 @@ function Qe(n) {
1626
1626
  se = n;
1627
1627
  }
1628
1628
  let fe = null;
1629
- function vt(n) {
1629
+ function yt(n) {
1630
1630
  fe = n;
1631
1631
  }
1632
1632
  let pt = null;
@@ -1637,14 +1637,14 @@ let Je = null, nt = 0, ct = null;
1637
1637
  function _l(n) {
1638
1638
  ct = n;
1639
1639
  }
1640
- let Is = 1, vn = 0, Pn = vn;
1640
+ let Is = 1, yn = 0, Pn = yn;
1641
1641
  function br(n) {
1642
1642
  Pn = n;
1643
1643
  }
1644
1644
  function Ss() {
1645
1645
  return ++Is;
1646
1646
  }
1647
- function yi(n) {
1647
+ function vi(n) {
1648
1648
  var e = n.f;
1649
1649
  if ((e & Be) !== 0)
1650
1650
  return !0;
@@ -1654,7 +1654,7 @@ function yi(n) {
1654
1654
  n.deps
1655
1655
  ), i = t.length, o = 0; o < i; o++) {
1656
1656
  var r = t[o];
1657
- if (yi(
1657
+ if (vi(
1658
1658
  /** @type {Derived} */
1659
1659
  r
1660
1660
  ) && os(
@@ -1689,7 +1689,7 @@ function ws(n) {
1689
1689
  var _;
1690
1690
  var e = Je, t = nt, i = ct, o = se, r = pt, s = Ze, l = _t, c = Pn, d = n.f;
1691
1691
  Je = /** @type {null | Value[]} */
1692
- null, nt = 0, ct = null, se = (d & (Pt | hn)) === 0 ? n : null, pt = null, Zn(n.ctx), _t = !1, Pn = ++vn, n.ac !== null && (qo(() => {
1692
+ null, nt = 0, ct = null, se = (d & (Pt | hn)) === 0 ? n : null, pt = null, Zn(n.ctx), _t = !1, Pn = ++yn, n.ac !== null && (qo(() => {
1693
1693
  n.ac.abort(mn);
1694
1694
  }), n.ac = null);
1695
1695
  try {
@@ -1720,12 +1720,12 @@ function ws(n) {
1720
1720
  n
1721
1721
  );
1722
1722
  if (o !== null && o !== n) {
1723
- if (vn++, o.deps !== null)
1723
+ if (yn++, o.deps !== null)
1724
1724
  for (let A = 0; A < t; A += 1)
1725
- o.deps[A].rv = vn;
1725
+ o.deps[A].rv = yn;
1726
1726
  if (e !== null)
1727
1727
  for (const A of e)
1728
- A.rv = vn;
1728
+ A.rv = yn;
1729
1729
  ct !== null && (i === null ? i = ct : i.push(.../** @type {Source[]} */
1730
1730
  ct));
1731
1731
  }
@@ -1786,7 +1786,7 @@ function a(n) {
1786
1786
  if (!i && (pt === null || !Xn.call(pt, n))) {
1787
1787
  var o = se.deps;
1788
1788
  if ((se.f & uo) !== 0)
1789
- n.rv < vn && (n.rv = vn, Je === null && o !== null && o[nt] === n ? nt++ : Je === null ? Je = [n] : Je.push(n));
1789
+ n.rv < yn && (n.rv = yn, Je === null && o !== null && o[nt] === n ? nt++ : Je === null ? Je = [n] : Je.push(n));
1790
1790
  else {
1791
1791
  (se.deps ?? (se.deps = [])).push(n);
1792
1792
  var r = n.reactions;
@@ -1806,7 +1806,7 @@ function a(n) {
1806
1806
  return ((s.f & De) === 0 && s.reactions !== null || _s(s)) && (l = jo(s)), dn.set(s, l), l;
1807
1807
  }
1808
1808
  var c = (s.f & ht) === 0 && !_t && se !== null && (Pi || (se.f & ht) !== 0), d = (s.f & Dn) === 0;
1809
- yi(s) && (c && (s.f |= ht), os(s)), c && !d && (rs(s), Cs(s));
1809
+ vi(s) && (c && (s.f |= ht), os(s)), c && !d && (rs(s), Cs(s));
1810
1810
  }
1811
1811
  if (Ct?.has(n))
1812
1812
  return Ct.get(n);
@@ -1878,7 +1878,7 @@ function So(n, e = /* @__PURE__ */ new Set()) {
1878
1878
  }
1879
1879
  }
1880
1880
  }
1881
- const yn = /* @__PURE__ */ Symbol("events"), Es = /* @__PURE__ */ new Set(), To = /* @__PURE__ */ new Set();
1881
+ const vn = /* @__PURE__ */ Symbol("events"), Es = /* @__PURE__ */ new Set(), To = /* @__PURE__ */ new Set();
1882
1882
  function kl(n, e, t, i = {}) {
1883
1883
  function o(r) {
1884
1884
  if (i.capture || wo.call(e, r), !r.cancelBubble)
@@ -1898,7 +1898,7 @@ function ze(n, e, t, i, o) {
1898
1898
  });
1899
1899
  }
1900
1900
  function Ir(n, e, t) {
1901
- (e[yn] ?? (e[yn] = {}))[n] = t;
1901
+ (e[vn] ?? (e[vn] = {}))[n] = t;
1902
1902
  }
1903
1903
  function Al(n) {
1904
1904
  for (var e = 0; e < n.length; e++)
@@ -1916,12 +1916,12 @@ function wo(n) {
1916
1916
  o[0] || n.target
1917
1917
  );
1918
1918
  Sr = n;
1919
- var s = 0, l = Sr === n && n[yn];
1919
+ var s = 0, l = Sr === n && n[vn];
1920
1920
  if (l) {
1921
1921
  var c = o.indexOf(l);
1922
1922
  if (c !== -1 && (e === document || e === /** @type {any} */
1923
1923
  window)) {
1924
- n[yn] = e;
1924
+ n[vn] = e;
1925
1925
  return;
1926
1926
  }
1927
1927
  var d = o.indexOf(e);
@@ -1938,13 +1938,13 @@ function wo(n) {
1938
1938
  }
1939
1939
  });
1940
1940
  var u = se, f = fe;
1941
- Qe(null), vt(null);
1941
+ Qe(null), yt(null);
1942
1942
  try {
1943
1943
  for (var g, I = []; r !== null; ) {
1944
1944
  var m = r.assignedSlot || r.parentNode || /** @type {any} */
1945
1945
  r.host || null;
1946
1946
  try {
1947
- var _ = r[yn]?.[i];
1947
+ var _ = r[vn]?.[i];
1948
1948
  _ != null && (!/** @type {any} */
1949
1949
  r.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
1950
1950
  // -> the target could not have been disabled because it emits the event in the first place
@@ -1964,7 +1964,7 @@ function wo(n) {
1964
1964
  throw g;
1965
1965
  }
1966
1966
  } finally {
1967
- n[yn] = e, delete n.currentTarget, Qe(u), vt(f);
1967
+ n[vn] = e, delete n.currentTarget, Qe(u), yt(f);
1968
1968
  }
1969
1969
  }
1970
1970
  }
@@ -1999,7 +1999,7 @@ function Ie(n, e) {
1999
1999
  if (ee)
2000
2000
  return kn(ue, null), ue;
2001
2001
  o === void 0 && (o = Ol(r ? n : "<!>" + n), t || (o = /** @type {TemplateNode} */
2002
- /* @__PURE__ */ Mn(o)));
2002
+ /* @__PURE__ */ Ln(o)));
2003
2003
  var s = (
2004
2004
  /** @type {TemplateNode} */
2005
2005
  i || cs ? document.importNode(o, !0) : o.cloneNode(!0)
@@ -2007,7 +2007,7 @@ function Ie(n, e) {
2007
2007
  if (t) {
2008
2008
  var l = (
2009
2009
  /** @type {TemplateNode} */
2010
- /* @__PURE__ */ Mn(s)
2010
+ /* @__PURE__ */ Ln(s)
2011
2011
  ), c = (
2012
2012
  /** @type {TemplateNode} */
2013
2013
  s.lastChild
@@ -2038,9 +2038,9 @@ function ge(n, e) {
2038
2038
  e
2039
2039
  );
2040
2040
  }
2041
- const Ll = ["touchstart", "touchmove"];
2042
- function Ml(n) {
2043
- return Ll.includes(n);
2041
+ const Ml = ["touchstart", "touchmove"];
2042
+ function Ll(n) {
2043
+ return Ml.includes(n);
2044
2044
  }
2045
2045
  const Nl = (
2046
2046
  /** @type {const} */
@@ -2063,8 +2063,8 @@ function Dl(n, e) {
2063
2063
  Io(), e.intro = e.intro ?? !1;
2064
2064
  const t = e.target, i = ee, o = ue;
2065
2065
  try {
2066
- for (var r = /* @__PURE__ */ Mn(t); r && (r.nodeType !== vi || /** @type {Comment} */
2067
- r.data !== Mr); )
2066
+ for (var r = /* @__PURE__ */ Ln(t); r && (r.nodeType !== yi || /** @type {Comment} */
2067
+ r.data !== Lr); )
2068
2068
  r = /* @__PURE__ */ Dt(r);
2069
2069
  if (!r)
2070
2070
  throw Yn;
@@ -2106,7 +2106,7 @@ function As(n, { target: e, anchor: t, props: i = {}, events: o, context: r, int
2106
2106
  /** @type {TemplateNode} */
2107
2107
  I,
2108
2108
  null
2109
- ), c = n(I, i) || {}, ee && (fe.nodes.end = ue, ue === null || ue.nodeType !== vi || /** @type {Comment} */
2109
+ ), c = n(I, i) || {}, ee && (fe.nodes.end = ue, ue === null || ue.nodeType !== yi || /** @type {Comment} */
2110
2110
  ue.data !== No))
2111
2111
  throw Fi(), Yn;
2112
2112
  Ke();
@@ -2118,12 +2118,12 @@ function As(n, { target: e, anchor: t, props: i = {}, events: o, context: r, int
2118
2118
  var _ = I[m];
2119
2119
  if (!f.has(_)) {
2120
2120
  f.add(_);
2121
- var A = Ml(_);
2121
+ var A = Ll(_);
2122
2122
  for (const O of [e, document]) {
2123
- var v = wi.get(O);
2124
- v === void 0 && (v = /* @__PURE__ */ new Map(), wi.set(O, v));
2125
- var C = v.get(_);
2126
- C === void 0 ? (O.addEventListener(_, wo, { passive: A }), v.set(_, 1)) : v.set(_, C + 1);
2123
+ var y = wi.get(O);
2124
+ y === void 0 && (y = /* @__PURE__ */ new Map(), wi.set(O, y));
2125
+ var C = y.get(_);
2126
+ C === void 0 ? (O.addEventListener(_, wo, { passive: A }), y.set(_, 1)) : y.set(_, C + 1);
2127
2127
  }
2128
2128
  }
2129
2129
  }
@@ -2150,7 +2150,7 @@ function Bl(n, e) {
2150
2150
  const t = Co.get(n);
2151
2151
  return t ? (Co.delete(n), t(e)) : Promise.resolve();
2152
2152
  }
2153
- var Tt, Mt, rt, wn, mi, gi, Di;
2153
+ var Tt, Lt, rt, wn, mi, gi, Di;
2154
2154
  class xs {
2155
2155
  /**
2156
2156
  * @param {TemplateNode} anchor
@@ -2158,7 +2158,7 @@ class xs {
2158
2158
  */
2159
2159
  constructor(e, t = !0) {
2160
2160
  /** @type {TemplateNode} */
2161
- y(this, "anchor");
2161
+ v(this, "anchor");
2162
2162
  /** @type {Map<Batch, Key>} */
2163
2163
  re(this, Tt, /* @__PURE__ */ new Map());
2164
2164
  /**
@@ -2175,7 +2175,7 @@ class xs {
2175
2175
  * Can result in the entries `true->Effect` and `false->Effect`
2176
2176
  * @type {Map<Key, Effect>}
2177
2177
  */
2178
- re(this, Mt, /* @__PURE__ */ new Map());
2178
+ re(this, Lt, /* @__PURE__ */ new Map());
2179
2179
  /**
2180
2180
  * Similar to #onscreen with respect to the keys, but contains branches that are not yet
2181
2181
  * in the DOM, because their insertion is deferred.
@@ -2200,12 +2200,12 @@ class xs {
2200
2200
  var t = (
2201
2201
  /** @type {Key} */
2202
2202
  b(this, Tt).get(e)
2203
- ), i = b(this, Mt).get(t);
2203
+ ), i = b(this, Lt).get(t);
2204
2204
  if (i)
2205
2205
  Yo(i), b(this, wn).delete(t);
2206
2206
  else {
2207
2207
  var o = b(this, rt).get(t);
2208
- o && (o.effect.f & We) === 0 && (b(this, Mt).set(t, o.effect), b(this, rt).delete(t), o.fragment.lastChild.remove(), this.anchor.before(o.fragment), i = o.effect);
2208
+ o && (o.effect.f & We) === 0 && (b(this, Lt).set(t, o.effect), b(this, rt).delete(t), o.fragment.lastChild.remove(), this.anchor.before(o.fragment), i = o.effect);
2209
2209
  }
2210
2210
  for (const [r, s] of b(this, Tt)) {
2211
2211
  if (b(this, Tt).delete(r), r === e)
@@ -2213,7 +2213,7 @@ class xs {
2213
2213
  const l = b(this, rt).get(s);
2214
2214
  l && (Ue(l.effect), b(this, rt).delete(s));
2215
2215
  }
2216
- for (const [r, s] of b(this, Mt)) {
2216
+ for (const [r, s] of b(this, Lt)) {
2217
2217
  if (r === t || b(this, wn).has(r) || (s.f & We) !== 0) continue;
2218
2218
  const l = () => {
2219
2219
  if (Array.from(b(this, Tt).values()).includes(r)) {
@@ -2221,7 +2221,7 @@ class xs {
2221
2221
  Xo(s, d), d.append(mt()), b(this, rt).set(r, { effect: s, fragment: d });
2222
2222
  } else
2223
2223
  Ue(s);
2224
- b(this, wn).delete(r), b(this, Mt).delete(r);
2224
+ b(this, wn).delete(r), b(this, Lt).delete(r);
2225
2225
  };
2226
2226
  b(this, mi) || !i ? (b(this, wn).add(r), En(s, l, !1)) : l();
2227
2227
  }
@@ -2248,7 +2248,7 @@ class xs {
2248
2248
  /** @type {Batch} */
2249
2249
  _e
2250
2250
  ), o = hs();
2251
- if (t && !b(this, Mt).has(e) && !b(this, rt).has(e))
2251
+ if (t && !b(this, Lt).has(e) && !b(this, rt).has(e))
2252
2252
  if (o) {
2253
2253
  var r = document.createDocumentFragment(), s = mt();
2254
2254
  r.append(s), b(this, rt).set(e, {
@@ -2256,12 +2256,12 @@ class xs {
2256
2256
  fragment: r
2257
2257
  });
2258
2258
  } else
2259
- b(this, Mt).set(
2259
+ b(this, Lt).set(
2260
2260
  e,
2261
2261
  ft(() => t(this.anchor))
2262
2262
  );
2263
2263
  if (b(this, Tt).set(i, e), o) {
2264
- for (const [l, c] of b(this, Mt))
2264
+ for (const [l, c] of b(this, Lt))
2265
2265
  l === e ? i.unskip_effect(c) : i.skip_effect(c);
2266
2266
  for (const [l, c] of b(this, rt))
2267
2267
  l === e ? i.unskip_effect(c.effect) : i.skip_effect(c.effect);
@@ -2270,7 +2270,7 @@ class xs {
2270
2270
  ee && (this.anchor = ue), b(this, gi).call(this, i);
2271
2271
  }
2272
2272
  }
2273
- Tt = new WeakMap(), Mt = new WeakMap(), rt = new WeakMap(), wn = new WeakMap(), mi = new WeakMap(), gi = new WeakMap(), Di = new WeakMap();
2273
+ Tt = new WeakMap(), Lt = new WeakMap(), rt = new WeakMap(), wn = new WeakMap(), mi = new WeakMap(), gi = new WeakMap(), Di = new WeakMap();
2274
2274
  function Jo(n) {
2275
2275
  Ze === null && Hr(), ae(() => {
2276
2276
  const e = bi(n);
@@ -2397,31 +2397,31 @@ function Rs(n, e, t, i, o, r = null) {
2397
2397
  var s = n, l = /* @__PURE__ */ new Map();
2398
2398
  ee && On();
2399
2399
  var c = null, d = /* @__PURE__ */ is(() => {
2400
- var v = t();
2401
- return zo(v) ? v : v == null ? [] : Bi(v);
2400
+ var y = t();
2401
+ return zo(y) ? y : y == null ? [] : Bi(y);
2402
2402
  }), u, f = /* @__PURE__ */ new Map(), g = !0;
2403
- function I(v) {
2404
- (A.effect.f & zt) === 0 && (A.pending.delete(v), A.fallback = c, Vl(A, u, s, e, i), c !== null && (u.length === 0 ? (c.f & $t) === 0 ? Yo(c) : (c.f ^= $t, ai(c, null, s)) : En(c, () => {
2403
+ function I(y) {
2404
+ (A.effect.f & zt) === 0 && (A.pending.delete(y), A.fallback = c, Vl(A, u, s, e, i), c !== null && (u.length === 0 ? (c.f & $t) === 0 ? Yo(c) : (c.f ^= $t, ai(c, null, s)) : En(c, () => {
2405
2405
  c = null;
2406
2406
  })));
2407
2407
  }
2408
- function m(v) {
2409
- A.pending.delete(v);
2408
+ function m(y) {
2409
+ A.pending.delete(y);
2410
2410
  }
2411
2411
  var _ = Wi(() => {
2412
2412
  u = /** @type {V[]} */
2413
2413
  a(d);
2414
- var v = u.length;
2414
+ var y = u.length;
2415
2415
  let C = !1;
2416
2416
  if (ee) {
2417
- var O = Vr(s) === Mo;
2418
- O !== (v === 0) && (s = Oi(), Ve(s), st(!1), C = !0);
2417
+ var O = Vr(s) === Lo;
2418
+ O !== (y === 0) && (s = Oi(), Ve(s), st(!1), C = !0);
2419
2419
  }
2420
2420
  for (var D = /* @__PURE__ */ new Set(), T = (
2421
2421
  /** @type {Batch} */
2422
2422
  _e
2423
- ), H = hs(), x = 0; x < v; x += 1) {
2424
- ee && ue.nodeType === vi && /** @type {Comment} */
2423
+ ), H = hs(), x = 0; x < y; x += 1) {
2424
+ ee && ue.nodeType === yi && /** @type {Comment} */
2425
2425
  ue.data === No && (s = /** @type {Comment} */
2426
2426
  ue, C = !0, st(!1));
2427
2427
  var B = u[x], W = i(B, x), J = g ? null : l.get(W);
@@ -2436,7 +2436,7 @@ function Rs(n, e, t, i, o, r = null) {
2436
2436
  t
2437
2437
  ), g || (J.e.f |= $t), l.set(W, J)), D.add(W);
2438
2438
  }
2439
- if (v === 0 && r && !c && (g ? c = ft(() => r(s)) : (c = ft(() => r(Tr ?? (Tr = mt()))), c.f |= $t)), v > D.size && Ka(), ee && v > 0 && Ve(Oi()), !g)
2439
+ if (y === 0 && r && !c && (g ? c = ft(() => r(s)) : (c = ft(() => r(Tr ?? (Tr = mt()))), c.f |= $t)), y > D.size && Ka(), ee && y > 0 && Ve(Oi()), !g)
2440
2440
  if (f.set(T, D), H) {
2441
2441
  for (const [R, E] of l)
2442
2442
  D.has(R) || T.skip_effect(E.e);
@@ -2470,14 +2470,14 @@ function Vl(n, e, t, i, o) {
2470
2470
  if ((m.f & We) !== 0 && Yo(m), m !== l) {
2471
2471
  if (c !== void 0 && c.has(m)) {
2472
2472
  if (u.length < f.length) {
2473
- var v = f[0], C;
2474
- d = v.prev;
2473
+ var y = f[0], C;
2474
+ d = y.prev;
2475
2475
  var O = u[0], D = u[u.length - 1];
2476
2476
  for (C = 0; C < u.length; C += 1)
2477
- ai(u[C], v, t);
2477
+ ai(u[C], y, t);
2478
2478
  for (C = 0; C < f.length; C += 1)
2479
2479
  c.delete(f[C]);
2480
- Qt(n, O.prev, D.next), Qt(n, d, O), Qt(n, D, v), l = v, d = D, _ -= 1, u = [], f = [];
2480
+ Qt(n, O.prev, D.next), Qt(n, d, O), Qt(n, D, y), l = y, d = D, _ -= 1, u = [], f = [];
2481
2481
  } else
2482
2482
  c.delete(m), ai(m, l, t), Qt(n, m.prev, m.next), Qt(n, m, d === null ? n.effect.first : d.next), Qt(n, d, m), d = m;
2483
2483
  continue;
@@ -2509,7 +2509,7 @@ function Vl(n, e, t, i, o) {
2509
2509
  }
2510
2510
  }
2511
2511
  function jl(n, e, t, i, o, r, s, l) {
2512
- var c = (s & Ta) !== 0 ? (s & Ca) === 0 ? /* @__PURE__ */ as(t, !1, !1) : Ln(t) : null, d = (s & wa) !== 0 ? Ln(o) : null;
2512
+ var c = (s & Ta) !== 0 ? (s & Ca) === 0 ? /* @__PURE__ */ as(t, !1, !1) : Mn(t) : null, d = (s & wa) !== 0 ? Mn(o) : null;
2513
2513
  return {
2514
2514
  v: c,
2515
2515
  i: d,
@@ -2565,7 +2565,7 @@ function Os(n, e, t, i, o, r) {
2565
2565
  l
2566
2566
  ) : Ki(u, f), kn(l, l), i) {
2567
2567
  ee && zl(u) && l.append(document.createComment(""));
2568
- var I = ee ? /* @__PURE__ */ Mn(l) : l.appendChild(mt());
2568
+ var I = ee ? /* @__PURE__ */ Ln(l) : l.appendChild(mt());
2569
2569
  ee && (I === null ? st(!1) : Ve(I)), i(l, I);
2570
2570
  }
2571
2571
  fe.nodes.end = l, g.before(l);
@@ -2595,7 +2595,7 @@ function tt(n, e) {
2595
2595
  }
2596
2596
  });
2597
2597
  }
2598
- function Ls(n, e, t) {
2598
+ function Ms(n, e, t) {
2599
2599
  $o(() => {
2600
2600
  var i = bi(() => e(n, t?.()) || {});
2601
2601
  if (t && i?.update) {
@@ -2641,21 +2641,21 @@ function Wl(n, e, t, i) {
2641
2641
  const Ul = /* @__PURE__ */ Symbol("is custom element"), $l = /* @__PURE__ */ Symbol("is html"), Gl = Fa ? "link" : "LINK";
2642
2642
  function It(n, e, t, i) {
2643
2643
  var o = Yl(n);
2644
- ee && (o[e] = n.getAttribute(e), e === "src" || e === "srcset" || e === "href" && n.nodeName === Gl) || o[e] !== (o[e] = t) && (e === "loading" && (n[Ha] = t), t == null ? n.removeAttribute(e) : typeof t != "string" && Ms(n).includes(e) ? n[e] = t : n.setAttribute(e, t));
2644
+ ee && (o[e] = n.getAttribute(e), e === "src" || e === "srcset" || e === "href" && n.nodeName === Gl) || o[e] !== (o[e] = t) && (e === "loading" && (n[Ha] = t), t == null ? n.removeAttribute(e) : typeof t != "string" && Ls(n).includes(e) ? n[e] = t : n.setAttribute(e, t));
2645
2645
  }
2646
2646
  function w(n, e, t) {
2647
2647
  var i = se, o = fe;
2648
2648
  let r = ee;
2649
- ee && st(!1), Qe(null), vt(null);
2649
+ ee && st(!1), Qe(null), yt(null);
2650
2650
  try {
2651
2651
  // `style` should use `set_attribute` rather than the setter
2652
2652
  e !== "style" && // Don't compute setters for custom elements while they aren't registered yet,
2653
2653
  // because during their upgrade/instantiation they might add more setters.
2654
2654
  // Instead, fall back to a simple "an object, then set as property" heuristic.
2655
2655
  (Eo.has(n.getAttribute("is") || n.nodeName) || // customElements may not be available in browser extension contexts
2656
- !customElements || customElements.get(n.getAttribute("is") || n.nodeName.toLowerCase()) ? Ms(n).includes(e) : t && typeof t == "object") ? n[e] = t : It(n, e, t == null ? t : String(t));
2656
+ !customElements || customElements.get(n.getAttribute("is") || n.nodeName.toLowerCase()) ? Ls(n).includes(e) : t && typeof t == "object") ? n[e] = t : It(n, e, t == null ? t : String(t));
2657
2657
  } finally {
2658
- Qe(i), vt(o), r && st(!0);
2658
+ Qe(i), yt(o), r && st(!0);
2659
2659
  }
2660
2660
  }
2661
2661
  function Yl(n) {
@@ -2669,7 +2669,7 @@ function Yl(n) {
2669
2669
  );
2670
2670
  }
2671
2671
  var Eo = /* @__PURE__ */ new Map();
2672
- function Ms(n) {
2672
+ function Ls(n) {
2673
2673
  var e = n.getAttribute("is") || n.nodeName, t = Eo.get(e);
2674
2674
  if (t) return t;
2675
2675
  Eo.set(e, t = []);
@@ -2748,7 +2748,7 @@ function p(n, e, t, i) {
2748
2748
  }
2749
2749
  var _ = !1, A = ((t & _a) !== 0 ? ji : is)(() => (_ = !1, I()));
2750
2750
  o && a(A);
2751
- var v = (
2751
+ var y = (
2752
2752
  /** @type {Effect} */
2753
2753
  fe
2754
2754
  );
@@ -2759,7 +2759,7 @@ function p(n, e, t, i) {
2759
2759
  const D = O ? a(A) : o ? an(C) : C;
2760
2760
  return V(A, D), _ = !0, s !== void 0 && (s = D), C;
2761
2761
  }
2762
- return un && _ || (v.f & zt) !== 0 ? A.v : a(A);
2762
+ return un && _ || (y.f & zt) !== 0 ? A.v : a(A);
2763
2763
  })
2764
2764
  );
2765
2765
  }
@@ -2857,27 +2857,27 @@ typeof HTMLElement == "function" && (Ns = class extends HTMLElement {
2857
2857
  constructor(e, t, i) {
2858
2858
  super();
2859
2859
  /** The Svelte component constructor */
2860
- y(this, "$$ctor");
2860
+ v(this, "$$ctor");
2861
2861
  /** Slots */
2862
- y(this, "$$s");
2862
+ v(this, "$$s");
2863
2863
  /** @type {any} The Svelte component instance */
2864
- y(this, "$$c");
2864
+ v(this, "$$c");
2865
2865
  /** Whether or not the custom element is connected */
2866
- y(this, "$$cn", !1);
2866
+ v(this, "$$cn", !1);
2867
2867
  /** @type {Record<string, any>} Component props data */
2868
- y(this, "$$d", {});
2868
+ v(this, "$$d", {});
2869
2869
  /** `true` if currently in the process of reflecting component props back to attributes */
2870
- y(this, "$$r", !1);
2870
+ v(this, "$$r", !1);
2871
2871
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
2872
- y(this, "$$p_d", {});
2872
+ v(this, "$$p_d", {});
2873
2873
  /** @type {Record<string, EventListenerOrEventListenerObject[]>} Event listeners */
2874
- y(this, "$$l", {});
2874
+ v(this, "$$l", {});
2875
2875
  /** @type {Map<EventListenerOrEventListenerObject, Function>} Event listener unsubscribe functions */
2876
- y(this, "$$l_u", /* @__PURE__ */ new Map());
2876
+ v(this, "$$l_u", /* @__PURE__ */ new Map());
2877
2877
  /** @type {any} The managed render effect for reflecting attributes */
2878
- y(this, "$$me");
2878
+ v(this, "$$me");
2879
2879
  /** @type {ShadowRoot | null} The ShadowRoot of the custom element */
2880
- y(this, "$$shadowRoot", null);
2880
+ v(this, "$$shadowRoot", null);
2881
2881
  this.$$ctor = e, this.$$s = t, i && (this.$$shadowRoot = this.attachShadow(i));
2882
2882
  }
2883
2883
  /**
@@ -3055,31 +3055,31 @@ function $e(n, e, t, i, o, r) {
3055
3055
  class Ui extends Event {
3056
3056
  constructor(t, i, o, r) {
3057
3057
  super("context-request", { bubbles: !0, composed: !0 });
3058
- y(this, "context");
3059
- y(this, "contextTarget");
3060
- y(this, "callback");
3061
- y(this, "subscribe");
3058
+ v(this, "context");
3059
+ v(this, "contextTarget");
3060
+ v(this, "callback");
3061
+ v(this, "subscribe");
3062
3062
  this.context = t, this.contextTarget = i, this.callback = o, this.subscribe = r ?? !1;
3063
3063
  }
3064
3064
  }
3065
3065
  class ec extends Event {
3066
3066
  constructor(t, i) {
3067
3067
  super("context-provider", { bubbles: !0, composed: !0 });
3068
- y(this, "context");
3069
- y(this, "contextTarget");
3068
+ v(this, "context");
3069
+ v(this, "contextTarget");
3070
3070
  this.context = t, this.contextTarget = i;
3071
3071
  }
3072
3072
  }
3073
3073
  class zs {
3074
3074
  constructor(e, t) {
3075
- y(this, "host");
3076
- y(this, "context");
3077
- y(this, "subscribe");
3078
- y(this, "onValue");
3079
- y(this, "isConnected", !1);
3080
- y(this, "unsubscribe");
3081
- y(this, "currentValue");
3082
- y(this, "handleValue", (e, t) => {
3075
+ v(this, "host");
3076
+ v(this, "context");
3077
+ v(this, "subscribe");
3078
+ v(this, "onValue");
3079
+ v(this, "isConnected", !1);
3080
+ v(this, "unsubscribe");
3081
+ v(this, "currentValue");
3082
+ v(this, "handleValue", (e, t) => {
3083
3083
  t !== this.unsubscribe && (this.unsubscribe?.(), this.unsubscribe = t), !this.subscribe && this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0), this.currentValue = e, this.onValue?.(e);
3084
3084
  });
3085
3085
  this.host = e, this.context = t.context, this.subscribe = t.subscribe ?? !0, this.onValue = t.onValue;
@@ -3105,12 +3105,12 @@ const tc = (n, e) => {
3105
3105
  };
3106
3106
  class Nn {
3107
3107
  constructor(e, t) {
3108
- y(this, "host");
3109
- y(this, "context");
3110
- y(this, "currentValue");
3111
- y(this, "subscriptions", /* @__PURE__ */ new Map());
3112
- y(this, "isConnected", !1);
3113
- y(this, "handleContextRequest", (e) => {
3108
+ v(this, "host");
3109
+ v(this, "context");
3110
+ v(this, "currentValue");
3111
+ v(this, "subscriptions", /* @__PURE__ */ new Map());
3112
+ v(this, "isConnected", !1);
3113
+ v(this, "handleContextRequest", (e) => {
3114
3114
  if (e.context !== this.context)
3115
3115
  return;
3116
3116
  const t = this.getContextTarget(e, this.host);
@@ -3130,7 +3130,7 @@ class Nn {
3130
3130
  unsubscribe: o
3131
3131
  }), e.callback(this.currentValue, o);
3132
3132
  });
3133
- y(this, "handleContextProvider", (e) => {
3133
+ v(this, "handleContextProvider", (e) => {
3134
3134
  if (e.context !== this.context || this.getContextTarget(e, this.host) === this.host)
3135
3135
  return;
3136
3136
  const i = /* @__PURE__ */ new Set();
@@ -3171,10 +3171,10 @@ const nc = (n) => {
3171
3171
  };
3172
3172
  class zn {
3173
3173
  constructor(e) {
3174
- y(this, "host");
3175
- y(this, "pendingByContext", /* @__PURE__ */ new Map());
3176
- y(this, "attached", !1);
3177
- y(this, "onContextRequest", (e) => {
3174
+ v(this, "host");
3175
+ v(this, "pendingByContext", /* @__PURE__ */ new Map());
3176
+ v(this, "attached", !1);
3177
+ v(this, "onContextRequest", (e) => {
3178
3178
  if (!e.subscribe)
3179
3179
  return;
3180
3180
  let t = this.pendingByContext.get(e.context);
@@ -3189,7 +3189,7 @@ class zn {
3189
3189
  callbackRef: new WeakRef(o)
3190
3190
  }), t.requests = nc(t.requests));
3191
3191
  });
3192
- y(this, "onContextProvider", (e) => {
3192
+ v(this, "onContextProvider", (e) => {
3193
3193
  const t = this.pendingByContext.get(e.context);
3194
3194
  if (!(!t || t.requests.length === 0)) {
3195
3195
  this.pendingByContext.delete(e.context);
@@ -3255,9 +3255,9 @@ function Ut(n, e, t, i = {}) {
3255
3255
  }
3256
3256
  class uc {
3257
3257
  constructor(e, t = "en") {
3258
- y(this, "assessmentCatalogs", /* @__PURE__ */ new Map());
3259
- y(this, "itemCatalogs", /* @__PURE__ */ new Map());
3260
- y(this, "defaultLanguage", "en");
3258
+ v(this, "assessmentCatalogs", /* @__PURE__ */ new Map());
3259
+ v(this, "itemCatalogs", /* @__PURE__ */ new Map());
3260
+ v(this, "defaultLanguage", "en");
3261
3261
  this.defaultLanguage = t, this.indexCatalogs(e ?? [], "assessment");
3262
3262
  }
3263
3263
  /**
@@ -3434,9 +3434,9 @@ class uc {
3434
3434
  }
3435
3435
  class fc {
3436
3436
  constructor() {
3437
- y(this, "elementStates", /* @__PURE__ */ new Map());
3438
- y(this, "listeners", /* @__PURE__ */ new Set());
3439
- y(this, "onStateChange", null);
3437
+ v(this, "elementStates", /* @__PURE__ */ new Map());
3438
+ v(this, "listeners", /* @__PURE__ */ new Set());
3439
+ v(this, "onStateChange", null);
3440
3440
  }
3441
3441
  /**
3442
3442
  * Generates a globally unique element ID by combining assessment, section, item, and element IDs.
@@ -3747,17 +3747,17 @@ var di;
3747
3747
  })(di || (di = {}));
3748
3748
  class pc {
3749
3749
  constructor(e = {}) {
3750
- y(this, "config");
3751
- y(this, "ttsWordHighlight", null);
3752
- y(this, "ttsSentenceHighlight", null);
3753
- y(this, "annotations", /* @__PURE__ */ new Map());
3750
+ v(this, "config");
3751
+ v(this, "ttsWordHighlight", null);
3752
+ v(this, "ttsSentenceHighlight", null);
3753
+ v(this, "annotations", /* @__PURE__ */ new Map());
3754
3754
  // Shared highlights per color (one Highlight object per color, contains all ranges)
3755
- y(this, "colorHighlights", /* @__PURE__ */ new Map());
3756
- y(this, "nextAnnotationId", 1);
3757
- y(this, "supported", !1);
3758
- y(this, "rangeSerializer");
3759
- y(this, "themeObserver", null);
3760
- y(this, "explicitTTSColorOverride", null);
3755
+ v(this, "colorHighlights", /* @__PURE__ */ new Map());
3756
+ v(this, "nextAnnotationId", 1);
3757
+ v(this, "supported", !1);
3758
+ v(this, "rangeSerializer");
3759
+ v(this, "themeObserver", null);
3760
+ v(this, "explicitTTSColorOverride", null);
3761
3761
  if (this.config = e, this.rangeSerializer = new hc(), typeof CSS > "u" || !("highlights" in CSS)) {
3762
3762
  console.warn("CSS Custom Highlight API not supported (SSR or unsupported browser)");
3763
3763
  return;
@@ -3853,7 +3853,7 @@ class pc {
3853
3853
  }
3854
3854
  U > g && (g = U, f = W);
3855
3855
  }
3856
- const I = Math.max(0.24, Math.min(0.85, f * 0.55)), m = Math.max(0.55, Math.min(0.95, f + 0.2)), _ = Math.max(0.22, Math.min(0.6, f * 0.45)), A = c, v = this.blend(A, l, m), C = this.contrastRatio(v, l), O = this.relativeLuminance(l) > 0.45 ? [0, 0, 0] : [255, 255, 255], D = C >= 1.35 ? A : O, T = `rgba(${d[0]}, ${d[1]}, ${d[2]}, ${f})`, H = `rgba(${d[0]}, ${d[1]}, ${d[2]}, ${I})`, x = `rgba(${D[0]}, ${D[1]}, ${D[2]}, ${m})`, B = `rgba(${D[0]}, ${D[1]}, ${D[2]}, ${_})`;
3856
+ const I = Math.max(0.24, Math.min(0.85, f * 0.55)), m = Math.max(0.55, Math.min(0.95, f + 0.2)), _ = Math.max(0.22, Math.min(0.6, f * 0.45)), A = c, y = this.blend(A, l, m), C = this.contrastRatio(y, l), O = this.relativeLuminance(l) > 0.45 ? [0, 0, 0] : [255, 255, 255], D = C >= 1.35 ? A : O, T = `rgba(${d[0]}, ${d[1]}, ${d[2]}, ${f})`, H = `rgba(${d[0]}, ${d[1]}, ${d[2]}, ${I})`, x = `rgba(${D[0]}, ${D[1]}, ${D[2]}, ${m})`, B = `rgba(${D[0]}, ${D[1]}, ${D[2]}, ${_})`;
3857
3857
  return {
3858
3858
  wordHighlight: T,
3859
3859
  sentenceHighlight: H,
@@ -4210,14 +4210,14 @@ function gc(n) {
4210
4210
  return n;
4211
4211
  }
4212
4212
  }
4213
- function vc(n) {
4213
+ function yc(n) {
4214
4214
  if (n != null) {
4215
4215
  if (!An(n))
4216
4216
  throw new Error('Invalid tools config at "policy": expected an object with allowed/blocked arrays.');
4217
4217
  return n;
4218
4218
  }
4219
4219
  }
4220
- function yc(n, e) {
4220
+ function vc(n, e) {
4221
4221
  if (e == null)
4222
4222
  return;
4223
4223
  if (!An(e))
@@ -4238,7 +4238,7 @@ function bc(n) {
4238
4238
  throw new Error('Invalid tools config at "providers": expected an object keyed by tool id.');
4239
4239
  const e = {};
4240
4240
  for (const [t, i] of Object.entries(n))
4241
- e[t] = yc(t, i);
4241
+ e[t] = vc(t, i);
4242
4242
  return e;
4243
4243
  }
4244
4244
  function Vs(n) {
@@ -4263,7 +4263,7 @@ function so(n) {
4263
4263
  function bn(n) {
4264
4264
  if (n != null && !An(n))
4265
4265
  throw new Error('Invalid tools config: expected an object with "policy", "placement", and "providers".');
4266
- const e = vc(n?.policy), t = gc(n?.placement), i = bc(n?.providers);
4266
+ const e = yc(n?.policy), t = gc(n?.placement), i = bc(n?.providers);
4267
4267
  return {
4268
4268
  policy: {
4269
4269
  allowed: ut(en(e?.allowed, "policy.allowed")),
@@ -4316,13 +4316,13 @@ function Cr(n) {
4316
4316
  }
4317
4317
  class Sc {
4318
4318
  constructor() {
4319
- y(this, "tools", /* @__PURE__ */ new Map());
4320
- y(this, "pnpIndex", /* @__PURE__ */ new Map());
4319
+ v(this, "tools", /* @__PURE__ */ new Map());
4320
+ v(this, "pnpIndex", /* @__PURE__ */ new Map());
4321
4321
  // pnpSupportId → Set<toolId>
4322
- y(this, "componentOverrides", {});
4323
- y(this, "moduleLoaders", /* @__PURE__ */ new Map());
4324
- y(this, "loadedToolModules", /* @__PURE__ */ new Set());
4325
- y(this, "moduleLoadPromises", /* @__PURE__ */ new Map());
4322
+ v(this, "componentOverrides", {});
4323
+ v(this, "moduleLoaders", /* @__PURE__ */ new Map());
4324
+ v(this, "loadedToolModules", /* @__PURE__ */ new Set());
4325
+ v(this, "moduleLoadPromises", /* @__PURE__ */ new Map());
4326
4326
  }
4327
4327
  /**
4328
4328
  * Normalize a single tool alias to canonical toolId.
@@ -4754,10 +4754,10 @@ function tr(n, e, t) {
4754
4754
  }
4755
4755
  class Ac {
4756
4756
  constructor() {
4757
- y(this, "providers", /* @__PURE__ */ new Map());
4758
- y(this, "configs", /* @__PURE__ */ new Map());
4759
- y(this, "initialized", /* @__PURE__ */ new Map());
4760
- y(this, "initializationPromises", /* @__PURE__ */ new Map());
4757
+ v(this, "providers", /* @__PURE__ */ new Map());
4758
+ v(this, "configs", /* @__PURE__ */ new Map());
4759
+ v(this, "initialized", /* @__PURE__ */ new Map());
4760
+ v(this, "initializationPromises", /* @__PURE__ */ new Map());
4761
4761
  }
4762
4762
  /**
4763
4763
  * Register a tool provider
@@ -4930,13 +4930,13 @@ class Ac {
4930
4930
  }
4931
4931
  class xc {
4932
4932
  constructor() {
4933
- y(this, "providerId", "desmos-calculator");
4934
- y(this, "providerName", "Desmos Calculator");
4935
- y(this, "category", "calculator");
4936
- y(this, "version", "1.10");
4937
- y(this, "requiresAuth", !0);
4938
- y(this, "desmosProvider", null);
4939
- y(this, "config", null);
4933
+ v(this, "providerId", "desmos-calculator");
4934
+ v(this, "providerName", "Desmos Calculator");
4935
+ v(this, "category", "calculator");
4936
+ v(this, "version", "1.10");
4937
+ v(this, "requiresAuth", !0);
4938
+ v(this, "desmosProvider", null);
4939
+ v(this, "config", null);
4940
4940
  }
4941
4941
  /**
4942
4942
  * Initialize Desmos calculator provider
@@ -5042,9 +5042,9 @@ const Ws = (n, e) => {
5042
5042
  };
5043
5043
  class Us {
5044
5044
  constructor() {
5045
- y(this, "providerId", "browser");
5046
- y(this, "providerName", "Browser Speech Synthesis");
5047
- y(this, "version", "1.0.0");
5045
+ v(this, "providerId", "browser");
5046
+ v(this, "providerName", "Browser Speech Synthesis");
5047
+ v(this, "version", "1.0.0");
5048
5048
  }
5049
5049
  async initialize(e) {
5050
5050
  if (typeof window > "u")
@@ -5071,12 +5071,12 @@ class Us {
5071
5071
  }
5072
5072
  class Rc {
5073
5073
  constructor(e) {
5074
- y(this, "utterance", null);
5075
- y(this, "config", null);
5076
- y(this, "_isPlaying", !1);
5077
- y(this, "_isPaused", !1);
5078
- y(this, "speakRunId", 0);
5079
- y(this, "onWordBoundary");
5074
+ v(this, "utterance", null);
5075
+ v(this, "config", null);
5076
+ v(this, "_isPlaying", !1);
5077
+ v(this, "_isPaused", !1);
5078
+ v(this, "speakRunId", 0);
5079
+ v(this, "onWordBoundary");
5080
5080
  this.config = e;
5081
5081
  }
5082
5082
  async speak(e) {
@@ -5222,13 +5222,13 @@ class Oc {
5222
5222
  * @param backend TTS backend to use (default: 'browser')
5223
5223
  */
5224
5224
  constructor(e = "browser") {
5225
- y(this, "providerId", "tts-service");
5226
- y(this, "providerName", "Text-to-Speech");
5227
- y(this, "category", "tts");
5228
- y(this, "version", "1.0");
5229
- y(this, "requiresAuth");
5230
- y(this, "ttsProvider", null);
5231
- y(this, "config", null);
5225
+ v(this, "providerId", "tts-service");
5226
+ v(this, "providerName", "Text-to-Speech");
5227
+ v(this, "category", "tts");
5228
+ v(this, "version", "1.0");
5229
+ v(this, "requiresAuth");
5230
+ v(this, "ttsProvider", null);
5231
+ v(this, "config", null);
5232
5232
  this.requiresAuth = e !== "browser";
5233
5233
  }
5234
5234
  /**
@@ -5343,12 +5343,12 @@ const $s = {
5343
5343
  annotationToolbar: "pie-tool-annotation-toolbar",
5344
5344
  graph: "pie-tool-graph",
5345
5345
  periodicTable: "pie-tool-periodic-table"
5346
- }, Lc = (n, e) => {
5346
+ }, Mc = (n, e) => {
5347
5347
  const t = e?.toolTagMap?.[n] ?? $s[n] ?? n;
5348
- return va(t, `tool component tag for "${n}"`);
5349
- }, Mc = (n) => document.createElement(n), Ht = (n, e, t, i) => {
5350
- const o = Lc(n, i), s = i?.toolComponentFactories?.[n] ?? i?.toolComponentFactory;
5351
- return s ? s({ toolId: n, tagName: o, context: e, toolbarContext: t }) : Mc(o);
5348
+ return ya(t, `tool component tag for "${n}"`);
5349
+ }, Lc = (n) => document.createElement(n), Ht = (n, e, t, i) => {
5350
+ const o = Mc(n, i), s = i?.toolComponentFactories?.[n] ?? i?.toolComponentFactory;
5351
+ return s ? s({ toolId: n, tagName: o, context: e, toolbarContext: t }) : Lc(o);
5352
5352
  }, Nc = {
5353
5353
  toolId: "calculator",
5354
5354
  name: "Calculator",
@@ -5441,8 +5441,8 @@ const $s = {
5441
5441
  }, _r = (n) => n && typeof n == "object" ? n : {}, ao = (n) => {
5442
5442
  const e = _r(n), t = _r(n?.settings);
5443
5443
  return { ...e, ...t };
5444
- }, Li = (n) => n.backend || "browser", Gs = (n, e) => n.serverProvider || n.provider || (e === "polly" || e === "google" ? e : void 0), Ys = (n, e) => n.transportMode || (e === "custom" ? "custom" : "pie"), Xs = (n) => {
5445
- const e = Li(n), t = Gs(n, e), i = Ys(n, t);
5444
+ }, Mi = (n) => n.backend || "browser", Gs = (n, e) => n.serverProvider || n.provider || (e === "polly" || e === "google" ? e : void 0), Ys = (n, e) => n.transportMode || (e === "custom" ? "custom" : "pie"), Xs = (n) => {
5445
+ const e = Mi(n), t = Gs(n, e), i = Ys(n, t);
5446
5446
  return {
5447
5447
  voice: n.defaultVoice,
5448
5448
  rate: n.rate,
@@ -5488,10 +5488,10 @@ const $s = {
5488
5488
  getProviderId: () => "tts",
5489
5489
  createProvider: (n) => {
5490
5490
  const e = ao(n);
5491
- return new Oc(Li(e));
5491
+ return new Oc(Mi(e));
5492
5492
  },
5493
5493
  getInitConfig: (n) => {
5494
- const e = ao(n), t = Li(e), i = Gs(e, t), o = Ys(e, i);
5494
+ const e = ao(n), t = Mi(e), i = Gs(e, t), o = Ys(e, i);
5495
5495
  return {
5496
5496
  backend: t,
5497
5497
  serverProvider: i,
@@ -6301,10 +6301,10 @@ var tn;
6301
6301
  })(tn || (tn = {}));
6302
6302
  class nd {
6303
6303
  constructor(e = {}) {
6304
- y(this, "config");
6305
- y(this, "tools", /* @__PURE__ */ new Map());
6306
- y(this, "layerCounters", /* @__PURE__ */ new Map());
6307
- y(this, "listeners", /* @__PURE__ */ new Set());
6304
+ v(this, "config");
6305
+ v(this, "tools", /* @__PURE__ */ new Map());
6306
+ v(this, "layerCounters", /* @__PURE__ */ new Map());
6307
+ v(this, "listeners", /* @__PURE__ */ new Set());
6308
6308
  this.config = e, this.layerCounters.set(tn.BASE, 0), this.layerCounters.set(tn.TOOL, 0), this.layerCounters.set(tn.MODAL, 0), this.layerCounters.set(tn.CONTROL, 0), this.layerCounters.set(tn.HIGHLIGHT, 0);
6309
6309
  }
6310
6310
  /**
@@ -6566,9 +6566,9 @@ const Pr = (n) => n.trim().replace(/\s+/g, " "), Zs = (n) => {
6566
6566
  if (I && !Zs(I)) {
6567
6567
  const m = g.textContent || "", _ = m.match(/\S/), A = _ ? _[0] : null;
6568
6568
  !r && !s && id(c, A, e) && (i.push(" "), l && t.set(o, l), o++, s = !0);
6569
- for (let v = 0; v < m.length; v++) {
6570
- const C = m[v], O = /\s/.test(C);
6571
- r ? O || (r = !1, i.push(C), t.set(o, { node: g, offset: v }), l = { node: g, offset: v }, o++, s = !1, c = C) : O ? (s || (i.push(" "), t.set(o, { node: g, offset: v }), l = { node: g, offset: v }, o++), s = !0) : (i.push(C), t.set(o, { node: g, offset: v }), l = { node: g, offset: v }, o++, s = !1, c = C);
6569
+ for (let y = 0; y < m.length; y++) {
6570
+ const C = m[y], O = /\s/.test(C);
6571
+ r ? O || (r = !1, i.push(C), t.set(o, { node: g, offset: y }), l = { node: g, offset: y }, o++, s = !1, c = C) : O ? (s || (i.push(" "), t.set(o, { node: g, offset: y }), l = { node: g, offset: y }, o++), s = !0) : (i.push(C), t.set(o, { node: g, offset: y }), l = { node: g, offset: y }, o++, s = !1, c = C);
6572
6572
  }
6573
6573
  }
6574
6574
  u = d.nextNode();
@@ -6584,22 +6584,22 @@ var xe;
6584
6584
  })(xe || (xe = {}));
6585
6585
  class rd {
6586
6586
  constructor() {
6587
- y(this, "currentProvider", null);
6588
- y(this, "provider", null);
6589
- y(this, "highlightCoordinator", null);
6590
- y(this, "catalogResolver", null);
6591
- y(this, "state", xe.IDLE);
6592
- y(this, "ttsConfig", {});
6593
- y(this, "currentText", null);
6594
- y(this, "currentContentElement", null);
6595
- y(this, "normalizedToDOM", /* @__PURE__ */ new Map());
6596
- y(this, "listeners", /* @__PURE__ */ new Map());
6597
- y(this, "lastError", null);
6598
- y(this, "speakRunId", 0);
6599
- y(this, "currentBoundaryOffset", 0);
6600
- y(this, "seekSegments", []);
6601
- y(this, "currentSeekSegmentIndex", 0);
6602
- y(this, "activeHighlightMode", "word");
6587
+ v(this, "currentProvider", null);
6588
+ v(this, "provider", null);
6589
+ v(this, "highlightCoordinator", null);
6590
+ v(this, "catalogResolver", null);
6591
+ v(this, "state", xe.IDLE);
6592
+ v(this, "ttsConfig", {});
6593
+ v(this, "currentText", null);
6594
+ v(this, "currentContentElement", null);
6595
+ v(this, "normalizedToDOM", /* @__PURE__ */ new Map());
6596
+ v(this, "listeners", /* @__PURE__ */ new Map());
6597
+ v(this, "lastError", null);
6598
+ v(this, "speakRunId", 0);
6599
+ v(this, "currentBoundaryOffset", 0);
6600
+ v(this, "seekSegments", []);
6601
+ v(this, "currentSeekSegmentIndex", 0);
6602
+ v(this, "activeHighlightMode", "word");
6603
6603
  }
6604
6604
  /**
6605
6605
  * Initialize TTS service with a provider
@@ -7189,6 +7189,7 @@ const sd = [
7189
7189
  "item-player-error"
7190
7190
  ], ad = [
7191
7191
  "section-navigation-change",
7192
+ "section-session-applied",
7192
7193
  "section-loading-complete",
7193
7194
  "section-items-complete-changed",
7194
7195
  "section-error"
@@ -7196,37 +7197,37 @@ const sd = [
7196
7197
  class nr {
7197
7198
  constructor(e) {
7198
7199
  /** Assessment identifier (for scoping tool state) */
7199
- y(this, "assessmentId");
7200
+ v(this, "assessmentId");
7200
7201
  /** Configuration */
7201
- y(this, "config");
7202
+ v(this, "config");
7202
7203
  /** Managed services (public for direct access) */
7203
- y(this, "ttsService");
7204
- y(this, "toolCoordinator");
7205
- y(this, "highlightCoordinator");
7206
- y(this, "elementToolStateStore");
7207
- y(this, "catalogResolver");
7208
- y(this, "toolProviderRegistry");
7209
- y(this, "hooks");
7210
- y(this, "lazyInit");
7204
+ v(this, "ttsService");
7205
+ v(this, "toolCoordinator");
7206
+ v(this, "highlightCoordinator");
7207
+ v(this, "elementToolStateStore");
7208
+ v(this, "catalogResolver");
7209
+ v(this, "toolProviderRegistry");
7210
+ v(this, "hooks");
7211
+ v(this, "lazyInit");
7211
7212
  /** Track TTS initialization state */
7212
- y(this, "ttsInitialized", !1);
7213
- y(this, "ttsInitPromise");
7214
- y(this, "stateLoaded", !1);
7215
- y(this, "stateLoadPromise");
7216
- y(this, "coordinatorReadyPromise");
7217
- y(this, "coordinatorReadyNotified", !1);
7218
- y(this, "providerInitPromises", /* @__PURE__ */ new Map());
7219
- y(this, "packagedToolRegistry", Js());
7220
- y(this, "sectionControllers", /* @__PURE__ */ new Map());
7221
- y(this, "sectionControllerKeys", /* @__PURE__ */ new Map());
7222
- y(this, "sectionControllerInitPromises", /* @__PURE__ */ new Map());
7223
- y(this, "sectionPersistenceStrategies", /* @__PURE__ */ new Map());
7224
- y(this, "sectionControllerLifecycleListeners", /* @__PURE__ */ new Set());
7225
- y(this, "sectionEventListenerIds", /* @__PURE__ */ new WeakMap());
7226
- y(this, "sectionEventSubscriptions", /* @__PURE__ */ new Map());
7227
- y(this, "nextSectionEventListenerId", 1);
7213
+ v(this, "ttsInitialized", !1);
7214
+ v(this, "ttsInitPromise");
7215
+ v(this, "stateLoaded", !1);
7216
+ v(this, "stateLoadPromise");
7217
+ v(this, "coordinatorReadyPromise");
7218
+ v(this, "coordinatorReadyNotified", !1);
7219
+ v(this, "providerInitPromises", /* @__PURE__ */ new Map());
7220
+ v(this, "packagedToolRegistry", Js());
7221
+ v(this, "sectionControllers", /* @__PURE__ */ new Map());
7222
+ v(this, "sectionControllerKeys", /* @__PURE__ */ new Map());
7223
+ v(this, "sectionControllerInitPromises", /* @__PURE__ */ new Map());
7224
+ v(this, "sectionPersistenceStrategies", /* @__PURE__ */ new Map());
7225
+ v(this, "sectionControllerLifecycleListeners", /* @__PURE__ */ new Set());
7226
+ v(this, "sectionEventListenerIds", /* @__PURE__ */ new WeakMap());
7227
+ v(this, "sectionEventSubscriptions", /* @__PURE__ */ new Map());
7228
+ v(this, "nextSectionEventListenerId", 1);
7228
7229
  /** Callback for floating tools changes */
7229
- y(this, "floatingToolsChangeCallback", null);
7230
+ v(this, "floatingToolsChangeCallback", null);
7230
7231
  if (!e.assessmentId)
7231
7232
  throw new Error("ToolkitCoordinator requires assessmentId in config");
7232
7233
  const t = nr.resolveConfig(e);
@@ -7718,7 +7719,7 @@ class nr {
7718
7719
  async _initializeTTS(e) {
7719
7720
  if (this.ttsInitialized)
7720
7721
  return;
7721
- const t = this.resolveTTSToolConfig(e), i = Li(t), o = Xs(t);
7722
+ const t = this.resolveTTSToolConfig(e), i = Mi(t), o = Xs(t);
7722
7723
  if (await this.hooks.onBeforeTTSInit?.({
7723
7724
  phase: "tts-init",
7724
7725
  details: {
@@ -8046,13 +8047,13 @@ function ea(n) {
8046
8047
  };
8047
8048
  }
8048
8049
  const kr = /* @__PURE__ */ new Map();
8049
- var vd = /* @__PURE__ */ Ie('<div class="pie-item-shell-anchor svelte-ljk393" aria-hidden="true"></div> <!>', 1);
8050
- const yd = {
8050
+ var yd = /* @__PURE__ */ Ie('<div class="pie-item-shell-anchor svelte-ljk393" aria-hidden="true"></div> <!>', 1);
8051
+ const vd = {
8051
8052
  hash: "svelte-ljk393",
8052
8053
  code: ".pie-item-shell-anchor.svelte-ljk393 {display:none;}"
8053
8054
  };
8054
8055
  function bd(n, e) {
8055
- je(e, !0), tt(n, yd);
8056
+ je(e, !0), tt(n, vd);
8056
8057
  const t = "pie-content-loaded", i = "pie-item-player-error";
8057
8058
  let o = p(e, "itemId", 7, ""), r = p(e, "canonicalItemId", 7, ""), s = p(e, "contentKind", 7, "assessment-item"), l = p(e, "regionPolicy", 7, "default"), c = p(e, "scopeElement", 7, null), d = p(e, "item", 7, null), u = /* @__PURE__ */ $(null);
8058
8059
  const f = Date.now();
@@ -8062,8 +8063,8 @@ function bd(n, e) {
8062
8063
  const j = a(u).getRootNode();
8063
8064
  return j && "host" in j ? j.host : a(u).parentElement;
8064
8065
  }
8065
- const v = /* @__PURE__ */ N(() => A()), C = /* @__PURE__ */ N(() => c() || a(v) || null), O = /* @__PURE__ */ N(() => a(C) ? { scopeElement: a(C) } : null), D = /* @__PURE__ */ N(() => {
8066
- if (!a(v)) return null;
8066
+ const y = /* @__PURE__ */ N(() => A()), C = /* @__PURE__ */ N(() => c() || a(y) || null), O = /* @__PURE__ */ N(() => a(C) ? { scopeElement: a(C) } : null), D = /* @__PURE__ */ N(() => {
8067
+ if (!a(y)) return null;
8067
8068
  const j = r() || o();
8068
8069
  return {
8069
8070
  kind: "item",
@@ -8077,50 +8078,50 @@ function bd(n, e) {
8077
8078
  };
8078
8079
  });
8079
8080
  function T(j) {
8080
- if (!a(v) || !o()) return;
8081
+ if (!a(y) || !o()) return;
8081
8082
  const G = {
8082
8083
  kind: "item",
8083
8084
  itemId: o(),
8084
8085
  canonicalItemId: r() || o(),
8085
8086
  contentKind: s(),
8086
8087
  item: d(),
8087
- element: a(v)
8088
+ element: a(y)
8088
8089
  };
8089
- Ut(a(v), j, G);
8090
+ Ut(a(y), j, G);
8090
8091
  }
8091
8092
  function H(j) {
8092
- if (!a(v) || !o()) return;
8093
+ if (!a(y) || !o()) return;
8093
8094
  const G = j.detail, Se = { itemId: o(), session: G };
8094
- Ut(a(v), Hs, Se);
8095
- const ye = ea({ itemId: o(), sessionDetail: G });
8096
- if (ye.intent === "metadata-only" || !ye.session)
8095
+ Ut(a(y), Hs, Se);
8096
+ const ve = ea({ itemId: o(), sessionDetail: G });
8097
+ if (ve.intent === "metadata-only" || !ve.session)
8097
8098
  return;
8098
- const ve = {
8099
+ const ye = {
8099
8100
  itemId: o(),
8100
8101
  canonicalItemId: r() || o(),
8101
- session: ye.session
8102
+ session: ve.session
8102
8103
  };
8103
- Ut(a(v), sc, ve);
8104
+ Ut(a(y), sc, ye);
8104
8105
  }
8105
8106
  function x(j) {
8106
- if (!a(v) || !o()) return;
8107
+ if (!a(y) || !o()) return;
8107
8108
  const G = {
8108
8109
  itemId: o(),
8109
8110
  canonicalItemId: r() || o(),
8110
8111
  contentKind: s(),
8111
8112
  detail: j
8112
8113
  };
8113
- Ut(a(v), t, G);
8114
+ Ut(a(y), t, G);
8114
8115
  }
8115
8116
  function B(j) {
8116
- if (!a(v) || !o()) return;
8117
+ if (!a(y) || !o()) return;
8117
8118
  const G = {
8118
8119
  itemId: o(),
8119
8120
  canonicalItemId: r() || o(),
8120
8121
  contentKind: s(),
8121
8122
  error: j
8122
8123
  };
8123
- Ut(a(v), i, G);
8124
+ Ut(a(y), i, G);
8124
8125
  }
8125
8126
  function W(j) {
8126
8127
  const G = j && typeof j == "object" ? { ...j } : j;
@@ -8132,45 +8133,45 @@ function bd(n, e) {
8132
8133
  }
8133
8134
  }
8134
8135
  ae(() => {
8135
- if (!a(v)) return;
8136
+ if (!a(y)) return;
8136
8137
  T(Zo);
8137
8138
  const j = /* @__PURE__ */ new WeakSet();
8138
8139
  let G = "";
8139
- const Se = 500, ye = (le) => {
8140
+ const Se = 500, ve = (le) => {
8140
8141
  if (le.stopPropagation(), j.has(le)) return;
8141
8142
  j.add(le);
8142
8143
  const Y = W(le.detail);
8143
8144
  if (Y === G) return;
8144
- const L = o() || r() || "__unknown-item__", ie = Date.now(), z = kr.get(L);
8145
- z && z.fingerprint === Y && ie - z.timestamp < Se || (kr.set(L, { fingerprint: Y, timestamp: ie }), G = Y, H(le));
8145
+ const M = o() || r() || "__unknown-item__", ie = Date.now(), z = kr.get(M);
8146
+ z && z.fingerprint === Y && ie - z.timestamp < Se || (kr.set(M, { fingerprint: Y, timestamp: ie }), G = Y, H(le));
8146
8147
  };
8147
- a(v).addEventListener("sessionchanged", ye), a(v).addEventListener("session-changed", ye);
8148
- const ve = (le) => {
8148
+ a(y).addEventListener("sessionchanged", ve), a(y).addEventListener("session-changed", ve);
8149
+ const ye = (le) => {
8149
8150
  le.stopPropagation(), x(le.detail);
8150
8151
  }, pe = (le) => {
8151
8152
  le.stopPropagation(), B(le.detail);
8152
8153
  };
8153
- return a(v).addEventListener("load-complete", ve), a(v).addEventListener("player-error", pe), () => {
8154
- a(v)?.removeEventListener("sessionchanged", ye), a(v)?.removeEventListener("session-changed", ye), a(v)?.removeEventListener("load-complete", ve), a(v)?.removeEventListener("player-error", pe), T(Qo);
8154
+ return a(y).addEventListener("load-complete", ye), a(y).addEventListener("player-error", pe), () => {
8155
+ a(y)?.removeEventListener("sessionchanged", ve), a(y)?.removeEventListener("session-changed", ve), a(y)?.removeEventListener("load-complete", ye), a(y)?.removeEventListener("player-error", pe), T(Qo);
8155
8156
  };
8156
8157
  }), ae(() => {
8157
- a(v) && (a(v).setAttribute("data-item-id", o()), a(v).setAttribute("data-canonical-item-id", r() || o()), a(v).setAttribute("data-pie-shell-root", "item"), a(v).setAttribute("data-region-policy", l()));
8158
+ a(y) && (a(y).setAttribute("data-item-id", o()), a(y).setAttribute("data-canonical-item-id", r() || o()), a(y).setAttribute("data-pie-shell-root", "item"), a(y).setAttribute("data-region-policy", l()));
8158
8159
  }), ae(() => {
8159
- if (!(!a(v) || !a(D)))
8160
- return g = new Nn(a(v), {
8160
+ if (!(!a(y) || !a(D)))
8161
+ return g = new Nn(a(y), {
8161
8162
  context: Ds,
8162
8163
  initialValue: a(D)
8163
- }), g.connect(), I = new zn(a(v)), I.attach(), () => {
8164
+ }), g.connect(), I = new zn(a(y)), I.attach(), () => {
8164
8165
  I?.detach(), I = null, g?.disconnect(), g = null;
8165
8166
  };
8166
8167
  }), ae(() => {
8167
8168
  a(D) && g?.setValue(a(D));
8168
8169
  }), ae(() => {
8169
- if (!(!a(v) || !a(O)))
8170
- return m = new Nn(a(v), {
8170
+ if (!(!a(y) || !a(O)))
8171
+ return m = new Nn(a(y), {
8171
8172
  context: Bs,
8172
8173
  initialValue: a(O)
8173
- }), m.connect(), _ = new zn(a(v)), _.attach(), () => {
8174
+ }), m.connect(), _ = new zn(a(y)), _.attach(), () => {
8174
8175
  _?.detach(), _ = null, m?.disconnect(), m = null;
8175
8176
  };
8176
8177
  }), ae(() => {
@@ -8213,7 +8214,7 @@ function bd(n, e) {
8213
8214
  set item(j = null) {
8214
8215
  d(j), h();
8215
8216
  }
8216
- }, R = vd(), E = gt(R);
8217
+ }, R = yd(), E = gt(R);
8217
8218
  lt(E, (j) => V(u, j), () => a(u));
8218
8219
  var U = Re(E, 2);
8219
8220
  return Fn(U, e, "default", {}), ge(n, R), Ke(J);
@@ -8247,7 +8248,7 @@ const Id = { id: "", data: [] }, ir = {
8247
8248
  testAttemptSession: null,
8248
8249
  itemViewModels: []
8249
8250
  };
8250
- function Mi(n) {
8251
+ function Li(n) {
8251
8252
  const e = n?.title;
8252
8253
  return typeof e == "string" ? e.trim() : "";
8253
8254
  }
@@ -8383,7 +8384,7 @@ function Ad(n, e) {
8383
8384
  set itemToolbarTools(E) {
8384
8385
  l(E), h();
8385
8386
  }
8386
- }, v = Pd(), C = gt(v);
8387
+ }, y = Pd(), C = gt(y);
8387
8388
  lt(C, (E) => V(c, E), () => a(c));
8388
8389
  var O = Re(C, 2);
8389
8390
  P(() => w(O, "item-id", t().id)), P(() => w(O, "canonical-item-id", i())), w(O, "content-kind", "assessment-item"), P(() => w(O, "item", t()));
@@ -8391,8 +8392,8 @@ function Ad(n, e) {
8391
8392
  {
8392
8393
  var x = (E) => {
8393
8394
  var U = Ed(), j = Ce(U, !0);
8394
- we(U), P((G) => Ps(j, G), [() => Mi(t())]), ge(E, U);
8395
- }, B = /* @__PURE__ */ N(() => Mi(t()));
8395
+ we(U), P((G) => Ps(j, G), [() => Li(t())]), ge(E, U);
8396
+ }, B = /* @__PURE__ */ N(() => Li(t()));
8396
8397
  at(H, (E) => {
8397
8398
  a(B) && E(x);
8398
8399
  });
@@ -8401,8 +8402,8 @@ function Ad(n, e) {
8401
8402
  P(() => w(W, "item-id", t().id)), P(() => w(W, "catalog-id", t().id)), P(() => w(W, "tools", l())), w(W, "content-kind", "assessment-item"), w(W, "size", "md"), w(W, "language", "en-US"), wt(W, 1, "svelte-7chqkg"), we(T);
8402
8403
  var J = Re(T, 2), R = Ce(J);
8403
8404
  return Os(R, () => a(g), !1, (E, U) => {
8404
- Ls(E, (j, G) => a(I)?.(j, G), s);
8405
- }), we(J), Fr(2), we(D), we(O), ge(n, v), Ke(A);
8405
+ Ms(E, (j, G) => a(I)?.(j, G), s);
8406
+ }), we(J), Fr(2), we(D), we(O), ge(n, y), Ke(A);
8406
8407
  }
8407
8408
  customElements.define("pie-section-player-item-card", $e(
8408
8409
  Ad,
@@ -8433,8 +8434,8 @@ function Od(n, e) {
8433
8434
  const E = a(u).getRootNode();
8434
8435
  return E && "host" in E ? E.host : a(u).parentElement;
8435
8436
  }
8436
- const v = /* @__PURE__ */ N(() => A()), C = /* @__PURE__ */ N(() => c() || a(v) || null), O = /* @__PURE__ */ N(() => a(C) ? { scopeElement: a(C) } : null), D = /* @__PURE__ */ N(() => {
8437
- if (!a(v)) return null;
8437
+ const y = /* @__PURE__ */ N(() => A()), C = /* @__PURE__ */ N(() => c() || a(y) || null), O = /* @__PURE__ */ N(() => a(C) ? { scopeElement: a(C) } : null), D = /* @__PURE__ */ N(() => {
8438
+ if (!a(y)) return null;
8438
8439
  const E = r() || o();
8439
8440
  return {
8440
8441
  kind: "passage",
@@ -8448,66 +8449,66 @@ function Od(n, e) {
8448
8449
  };
8449
8450
  });
8450
8451
  function T(E) {
8451
- if (!a(v) || !o()) return;
8452
+ if (!a(y) || !o()) return;
8452
8453
  const U = {
8453
8454
  kind: "passage",
8454
8455
  itemId: o(),
8455
8456
  canonicalItemId: r() || o(),
8456
8457
  contentKind: s(),
8457
8458
  item: d(),
8458
- element: a(v)
8459
+ element: a(y)
8459
8460
  };
8460
- Ut(a(v), E, U);
8461
+ Ut(a(y), E, U);
8461
8462
  }
8462
8463
  function H(E) {
8463
- if (!a(v) || !o()) return;
8464
+ if (!a(y) || !o()) return;
8464
8465
  const U = {
8465
8466
  itemId: o(),
8466
8467
  canonicalItemId: r() || o(),
8467
8468
  contentKind: s(),
8468
8469
  detail: E
8469
8470
  };
8470
- Ut(a(v), t, U);
8471
+ Ut(a(y), t, U);
8471
8472
  }
8472
8473
  function x(E) {
8473
- if (!a(v) || !o()) return;
8474
+ if (!a(y) || !o()) return;
8474
8475
  const U = {
8475
8476
  itemId: o(),
8476
8477
  canonicalItemId: r() || o(),
8477
8478
  contentKind: s(),
8478
8479
  error: E
8479
8480
  };
8480
- Ut(a(v), i, U);
8481
+ Ut(a(y), i, U);
8481
8482
  }
8482
8483
  ae(() => {
8483
- if (!a(v)) return;
8484
+ if (!a(y)) return;
8484
8485
  T(Zo);
8485
8486
  const E = (j) => {
8486
8487
  j.stopPropagation(), H(j.detail);
8487
8488
  }, U = (j) => {
8488
8489
  j.stopPropagation(), x(j.detail);
8489
8490
  };
8490
- return a(v).addEventListener("load-complete", E), a(v).addEventListener("player-error", U), () => {
8491
- a(v)?.removeEventListener("load-complete", E), a(v)?.removeEventListener("player-error", U), T(Qo);
8491
+ return a(y).addEventListener("load-complete", E), a(y).addEventListener("player-error", U), () => {
8492
+ a(y)?.removeEventListener("load-complete", E), a(y)?.removeEventListener("player-error", U), T(Qo);
8492
8493
  };
8493
8494
  }), ae(() => {
8494
- a(v) && (a(v).setAttribute("data-item-id", o()), a(v).setAttribute("data-canonical-item-id", r() || o()), a(v).setAttribute("data-pie-shell-root", "passage"), a(v).setAttribute("data-region-policy", l()));
8495
+ a(y) && (a(y).setAttribute("data-item-id", o()), a(y).setAttribute("data-canonical-item-id", r() || o()), a(y).setAttribute("data-pie-shell-root", "passage"), a(y).setAttribute("data-region-policy", l()));
8495
8496
  }), ae(() => {
8496
- if (!(!a(v) || !a(D)))
8497
- return g = new Nn(a(v), {
8497
+ if (!(!a(y) || !a(D)))
8498
+ return g = new Nn(a(y), {
8498
8499
  context: Ds,
8499
8500
  initialValue: a(D)
8500
- }), g.connect(), I = new zn(a(v)), I.attach(), () => {
8501
+ }), g.connect(), I = new zn(a(y)), I.attach(), () => {
8501
8502
  I?.detach(), I = null, g?.disconnect(), g = null;
8502
8503
  };
8503
8504
  }), ae(() => {
8504
8505
  a(D) && g?.setValue(a(D));
8505
8506
  }), ae(() => {
8506
- if (!(!a(v) || !a(O)))
8507
- return m = new Nn(a(v), {
8507
+ if (!(!a(y) || !a(O)))
8508
+ return m = new Nn(a(y), {
8508
8509
  context: Bs,
8509
8510
  initialValue: a(O)
8510
- }), m.connect(), _ = new zn(a(v)), _.attach(), () => {
8511
+ }), m.connect(), _ = new zn(a(y)), _.attach(), () => {
8511
8512
  _?.detach(), _ = null, m?.disconnect(), m = null;
8512
8513
  };
8513
8514
  }), ae(() => {
@@ -8569,7 +8570,7 @@ customElements.define("pie-passage-shell", $e(
8569
8570
  [],
8570
8571
  { mode: "open" }
8571
8572
  ));
8572
- var Ld = /* @__PURE__ */ Ie('<h2 class="svelte-10ek8e9"> </h2>'), Md = /* @__PURE__ */ Ie('<div class="pie-section-player-passage-card-anchor svelte-10ek8e9" aria-hidden="true"></div> <pie-passage-shell><div class="pie-section-player-content-card svelte-10ek8e9"><div class="pie-section-player-content-card-header pie-section-player-passage-header pie-section-player__passage-header svelte-10ek8e9" data-region="header"><!> <pie-item-toolbar></pie-item-toolbar></div> <div class="pie-section-player-content-card-body pie-section-player-passage-content pie-section-player__passage-content svelte-10ek8e9" data-region="content"><!></div></div></pie-passage-shell>', 3);
8573
+ var Md = /* @__PURE__ */ Ie('<h2 class="svelte-10ek8e9"> </h2>'), Ld = /* @__PURE__ */ Ie('<div class="pie-section-player-passage-card-anchor svelte-10ek8e9" aria-hidden="true"></div> <pie-passage-shell><div class="pie-section-player-content-card svelte-10ek8e9"><div class="pie-section-player-content-card-header pie-section-player-passage-header pie-section-player__passage-header svelte-10ek8e9" data-region="header"><!> <pie-item-toolbar></pie-item-toolbar></div> <div class="pie-section-player-content-card-body pie-section-player-passage-content pie-section-player__passage-content svelte-10ek8e9" data-region="content"><!></div></div></pie-passage-shell>', 3);
8573
8574
  const Nd = {
8574
8575
  hash: "svelte-10ek8e9",
8575
8576
  code: ".pie-section-player-passage-card-anchor.svelte-10ek8e9 {display:none;}.pie-section-player-content-card.svelte-10ek8e9 {border:1px solid var(--pie-border-light, #e5e7eb);border-radius:8px;background:var(--pie-background, #fff);color:var(--pie-text, #111827);}.pie-section-player-content-card-header.svelte-10ek8e9 {display:flex;align-items:center;gap:0.75rem;padding:0.75rem 1rem;border-bottom:1px solid var(--pie-border-light, #e5e7eb);}.pie-section-player-content-card-header.svelte-10ek8e9 h2:where(.svelte-10ek8e9) {margin:0;font-size:0.95rem;font-weight:600;color:var(--pie-text, #111827);}.pie-section-player-content-card-header.svelte-10ek8e9 pie-item-toolbar:where(.svelte-10ek8e9) {margin-left:auto;}.pie-section-player-content-card-body.svelte-10ek8e9 {padding:1rem;color:var(--pie-text, #111827);}"
@@ -8626,16 +8627,16 @@ function zd(n, e) {
8626
8627
  set passageToolbarTools(R) {
8627
8628
  s(R), h();
8628
8629
  }
8629
- }, A = Md(), v = gt(A);
8630
- lt(v, (R) => V(l, R), () => a(l));
8631
- var C = Re(v, 2);
8630
+ }, A = Ld(), y = gt(A);
8631
+ lt(y, (R) => V(l, R), () => a(l));
8632
+ var C = Re(y, 2);
8632
8633
  P(() => w(C, "item-id", t().id)), w(C, "content-kind", "rubric-block-stimulus"), P(() => w(C, "item", t()));
8633
8634
  var O = Ce(C), D = Ce(O), T = Ce(D);
8634
8635
  {
8635
8636
  var H = (R) => {
8636
- var E = Ld(), U = Ce(E, !0);
8637
- we(E), P((j) => Ps(U, j), [() => Mi(t())]), ge(R, E);
8638
- }, x = /* @__PURE__ */ N(() => Mi(t()));
8637
+ var E = Md(), U = Ce(E, !0);
8638
+ we(E), P((j) => Ps(U, j), [() => Li(t())]), ge(R, E);
8639
+ }, x = /* @__PURE__ */ N(() => Li(t()));
8639
8640
  at(T, (R) => {
8640
8641
  a(x) && R(H);
8641
8642
  });
@@ -8644,7 +8645,7 @@ function zd(n, e) {
8644
8645
  P(() => w(B, "item-id", t().id)), P(() => w(B, "catalog-id", t().id)), P(() => w(B, "tools", s())), w(B, "content-kind", "rubric-block-stimulus"), w(B, "size", "md"), w(B, "language", "en-US"), wt(B, 1, "svelte-10ek8e9"), we(D);
8645
8646
  var W = Re(D, 2), J = Ce(W);
8646
8647
  return Os(J, () => a(f), !1, (R, E) => {
8647
- Ls(R, (U, j) => a(g)?.(U, j), r);
8648
+ Ms(R, (U, j) => a(g)?.(U, j), r);
8648
8649
  }), we(W), we(O), we(C), ge(n, A), Ke(_);
8649
8650
  }
8650
8651
  customElements.define("pie-section-player-passage-card", $e(
@@ -8691,7 +8692,7 @@ const Ar = {
8691
8692
  strategy: "preloaded"
8692
8693
  }
8693
8694
  }
8694
- }, Ro = "section-demo-direct", Ni = "iife", Oo = !0, Lo = "inherit", oa = { mode: "gather", role: "student" };
8695
+ }, Ro = "section-demo-direct", Ni = "iife", Oo = !0, Mo = "inherit", oa = { mode: "gather", role: "student" };
8695
8696
  function Dd(n) {
8696
8697
  const e = n.runtime?.tools || n.tools || {}, t = bn(e), i = so(n.enabledTools), o = so(n.itemToolbarTools), r = so(n.passageToolbarTools);
8697
8698
  return bn({
@@ -8741,7 +8742,7 @@ function Fd(n) {
8741
8742
  return n.map((e) => e?.entity);
8742
8743
  }
8743
8744
  function Vd(n) {
8744
- const e = n.assessmentId ?? Ro, t = n.playerType ?? Ni, i = n.player ?? null, o = n.lazyInit ?? Oo, r = n.accessibility ?? null, s = n.coordinator ?? null, l = n.createSectionController ?? null, c = n.isolation ?? Lo, d = n.env ?? null, u = n.tools ?? null, f = Dd({
8745
+ const e = n.assessmentId ?? Ro, t = n.playerType ?? Ni, i = n.player ?? null, o = n.lazyInit ?? Oo, r = n.accessibility ?? null, s = n.coordinator ?? null, l = n.createSectionController ?? null, c = n.isolation ?? Mo, d = n.env ?? null, u = n.tools ?? null, f = Dd({
8745
8746
  runtime: n.runtime,
8746
8747
  tools: u,
8747
8748
  enabledTools: n.enabledTools,
@@ -8780,7 +8781,7 @@ function ra(n) {
8780
8781
  passages: n.passages || [],
8781
8782
  items: n.items || [],
8782
8783
  renderables: e,
8783
- renderablesSignature: ya(n.renderables || [])
8784
+ renderablesSignature: va(n.renderables || [])
8784
8785
  };
8785
8786
  }
8786
8787
  function Kd(n) {
@@ -8818,7 +8819,7 @@ function Xd(n, e) {
8818
8819
  let t = p(e, "items", 23, () => []), i = p(e, "compositionModel", 7), o = p(e, "resolvedPlayerEnv", 23, () => ({})), r = p(e, "resolvedPlayerAttributes", 23, () => ({})), s = p(e, "resolvedPlayerProps", 23, () => ({})), l = p(e, "playerStrategy", 7, "preloaded"), c = p(e, "itemToolbarTools", 7, ""), d = p(e, "iifeBundleHost", 7, ""), u = p(e, "preloadedRenderables", 23, () => []), f = p(e, "preloadedRenderablesSignature", 7, ""), g = p(e, "preloadComponentTag", 7, "pie-section-player-items-pane");
8819
8820
  const I = Hn();
8820
8821
  let m = /* @__PURE__ */ $(!1), _ = /* @__PURE__ */ $(""), A = /* @__PURE__ */ $(0);
8821
- const v = Ia({
8822
+ const y = Ia({
8822
8823
  setLastPreloadSignature: (x) => {
8823
8824
  V(_, x, !0);
8824
8825
  },
@@ -8845,7 +8846,7 @@ function Xd(n, e) {
8845
8846
  preloadRunToken: a(A),
8846
8847
  elementsLoaded: a(m)
8847
8848
  }),
8848
- setState: v
8849
+ setState: y
8849
8850
  });
8850
8851
  });
8851
8852
  var C = {
@@ -9016,7 +9017,7 @@ function eu(n, e) {
9016
9017
  ge(m, _);
9017
9018
  }, I = (m) => {
9018
9019
  var _ = fi(), A = gt(_);
9019
- Rs(A, 19, t, (v, C) => v.id || C, (v, C) => {
9020
+ Rs(A, 19, t, (y, C) => y.id || C, (y, C) => {
9020
9021
  var O = Zd();
9021
9022
  P(() => w(O, "passage", a(C))), P(() => w(O, "playerParams", qd({
9022
9023
  passage: a(C),
@@ -9024,7 +9025,7 @@ function eu(n, e) {
9024
9025
  resolvedPlayerAttributes: r(),
9025
9026
  resolvedPlayerProps: s(),
9026
9027
  playerStrategy: l()
9027
- }))), P(() => w(O, "passageToolbarTools", c())), ge(v, O);
9028
+ }))), P(() => w(O, "passageToolbarTools", c())), ge(y, O);
9028
9029
  }), ge(m, _);
9029
9030
  };
9030
9031
  at(f, (m) => {
@@ -9143,7 +9144,7 @@ function lu(n, e) {
9143
9144
  }
9144
9145
  class cu {
9145
9146
  constructor() {
9146
- y(this, "shellsByElement", /* @__PURE__ */ new Map());
9147
+ v(this, "shellsByElement", /* @__PURE__ */ new Map());
9147
9148
  }
9148
9149
  register(e) {
9149
9150
  const t = this.shellsByElement.get(e.element), i = {
@@ -9171,13 +9172,13 @@ class cu {
9171
9172
  }
9172
9173
  class du {
9173
9174
  constructor() {
9174
- y(this, "registry", new cu());
9175
- y(this, "controller", null);
9176
- y(this, "coordinator", null);
9177
- y(this, "sectionId", "");
9178
- y(this, "attemptId");
9179
- y(this, "unsubscribeController", null);
9180
- y(this, "activeInitToken", 0);
9175
+ v(this, "registry", new cu());
9176
+ v(this, "controller", null);
9177
+ v(this, "coordinator", null);
9178
+ v(this, "sectionId", "");
9179
+ v(this, "attemptId");
9180
+ v(this, "unsubscribeController", null);
9181
+ v(this, "activeInitToken", 0);
9181
9182
  }
9182
9183
  async initialize(e) {
9183
9184
  this.activeInitToken += 1;
@@ -9272,7 +9273,7 @@ function hu(n) {
9272
9273
  function pu(n) {
9273
9274
  const { state: e, itemId: t, payload: i } = n;
9274
9275
  if (gu(i)) {
9275
- const s = vu(i);
9276
+ const s = yu(i);
9276
9277
  if (e.lastMetadataSignatureByItemId.get(t) === s)
9277
9278
  return !1;
9278
9279
  e.lastMetadataSignatureByItemId.set(t, s);
@@ -9292,7 +9293,7 @@ function mu(n) {
9292
9293
  function gu(n) {
9293
9294
  return n.intent === "metadata-only";
9294
9295
  }
9295
- function vu(n) {
9296
+ function yu(n) {
9296
9297
  try {
9297
9298
  return JSON.stringify({
9298
9299
  itemId: n.itemId,
@@ -9305,7 +9306,7 @@ function vu(n) {
9305
9306
  return String(n.itemId || "");
9306
9307
  }
9307
9308
  }
9308
- var yu = /* @__PURE__ */ Ie('<div class="pie-assessment-toolkit-anchor svelte-vpe4u2" aria-hidden="true"></div> <!>', 1);
9309
+ var vu = /* @__PURE__ */ Ie('<div class="pie-assessment-toolkit-anchor svelte-vpe4u2" aria-hidden="true"></div> <!>', 1);
9309
9310
  const bu = {
9310
9311
  hash: "svelte-vpe4u2",
9311
9312
  code: ".pie-assessment-toolkit-anchor.svelte-vpe4u2 {display:none;}"
@@ -9318,7 +9319,7 @@ function Iu(n, e) {
9318
9319
  preloaded: "pie-item-player",
9319
9320
  custom: ""
9320
9321
  };
9321
- let s = p(e, "assessmentId", 7, ""), l = p(e, "section", 7, null), c = p(e, "sectionId", 7, ""), d = p(e, "attemptId", 7, ""), u = p(e, "view", 7, "candidate"), f = p(e, "env", 23, () => ({})), g = p(e, "lazyInit", 7, !0), I = p(e, "tools", 23, () => ({})), m = p(e, "accessibility", 23, () => ({})), _ = p(e, "player", 7, null), A = p(e, "playerType", 7, ""), v = p(e, "coordinator", 7, null), C = p(e, "createSectionController", 7, null), O = p(e, "isolation", 7, "inherit"), D = /* @__PURE__ */ $(null), T = /* @__PURE__ */ $(null), H = /* @__PURE__ */ $(null), x = /* @__PURE__ */ $(null), B = null, W = null, J = null, R = null, E = /* @__PURE__ */ $(0), U = /* @__PURE__ */ $(null), j = /* @__PURE__ */ $(null), G = /* @__PURE__ */ $(""), Se = null, ye = !1, ve = null;
9322
+ let s = p(e, "assessmentId", 7, ""), l = p(e, "section", 7, null), c = p(e, "sectionId", 7, ""), d = p(e, "attemptId", 7, ""), u = p(e, "view", 7, "candidate"), f = p(e, "env", 23, () => ({})), g = p(e, "lazyInit", 7, !0), I = p(e, "tools", 23, () => ({})), m = p(e, "accessibility", 23, () => ({})), _ = p(e, "player", 7, null), A = p(e, "playerType", 7, ""), y = p(e, "coordinator", 7, null), C = p(e, "createSectionController", 7, null), O = p(e, "isolation", 7, "inherit"), D = /* @__PURE__ */ $(null), T = /* @__PURE__ */ $(null), H = /* @__PURE__ */ $(null), x = /* @__PURE__ */ $(null), B = null, W = null, J = null, R = null, E = /* @__PURE__ */ $(0), U = /* @__PURE__ */ $(null), j = /* @__PURE__ */ $(null), G = /* @__PURE__ */ $(""), Se = null, ve = !1, ye = null;
9322
9323
  const pe = fu();
9323
9324
  function le() {
9324
9325
  if (!a(D)) return null;
@@ -9326,7 +9327,7 @@ function Iu(n, e) {
9326
9327
  return S && "host" in S ? S.host : a(D).parentElement;
9327
9328
  }
9328
9329
  const Y = /* @__PURE__ */ N(() => le());
9329
- function L(S, q) {
9330
+ function M(S, q) {
9330
9331
  a(Y) && Ut(a(Y), S, q);
9331
9332
  }
9332
9333
  function ie(S) {
@@ -9338,7 +9339,7 @@ function Iu(n, e) {
9338
9339
  function z(S) {
9339
9340
  return S && typeof S == "object" ? S : {};
9340
9341
  }
9341
- function Le(S) {
9342
+ function Me(S) {
9342
9343
  const q = z(S.section), me = typeof q.identifier == "string" ? q.identifier : "", oe = typeof S.sectionId == "string" ? S.sectionId : "";
9343
9344
  return me || oe;
9344
9345
  }
@@ -9367,7 +9368,7 @@ function Iu(n, e) {
9367
9368
  function qe(S) {
9368
9369
  const q = z(S), me = be(q).map((Q) => `${Q.id}:${Q.version}`).join("|"), oe = ce(q).map((Q) => `${Q.itemId}:${Q.sessionId}:${Q.payloadSignature}`).join("|");
9369
9370
  return {
9370
- sectionId: Le(q),
9371
+ sectionId: Me(q),
9371
9372
  currentItemIndex: F(q),
9372
9373
  renderableSignature: me,
9373
9374
  itemSessionSignature: oe
@@ -9418,9 +9419,9 @@ function Iu(n, e) {
9418
9419
  accessibility: m()
9419
9420
  });
9420
9421
  }
9421
- const X = /* @__PURE__ */ N(() => O() !== "force" && a(H)?.coordinator ? a(H).coordinator : v() || a(T));
9422
+ const X = /* @__PURE__ */ N(() => O() !== "force" && a(H)?.coordinator ? a(H).coordinator : y() || a(T));
9422
9423
  ae(() => {
9423
- if (v()) {
9424
+ if (y()) {
9424
9425
  a(T) && V(T, null);
9425
9426
  return;
9426
9427
  }
@@ -9430,7 +9431,7 @@ function Iu(n, e) {
9430
9431
  }
9431
9432
  a(T) || V(T, Z(), !0);
9432
9433
  });
9433
- const Te = /* @__PURE__ */ N(() => s() || a(X)?.assessmentId || ""), Ae = /* @__PURE__ */ N(() => c() || l()?.identifier || `section-${a(Te) || "default"}`), Oe = /* @__PURE__ */ N(() => ne(f())), yt = /* @__PURE__ */ N(() => he(a(Oe))), kt = /* @__PURE__ */ N(() => K(_(), A())), bt = /* @__PURE__ */ N(() => {
9434
+ const Te = /* @__PURE__ */ N(() => s() || a(X)?.assessmentId || ""), Ae = /* @__PURE__ */ N(() => c() || l()?.identifier || `section-${a(Te) || "default"}`), Oe = /* @__PURE__ */ N(() => ne(f())), vt = /* @__PURE__ */ N(() => he(a(Oe))), kt = /* @__PURE__ */ N(() => K(_(), A())), bt = /* @__PURE__ */ N(() => {
9434
9435
  if (!a(X)) return null;
9435
9436
  const S = a(X).getServiceBundle();
9436
9437
  return {
@@ -9448,22 +9449,22 @@ function Iu(n, e) {
9448
9449
  Jt({ itemId: q, result: oe, fallbackSession: me });
9449
9450
  }
9450
9451
  };
9451
- }), Me = /* @__PURE__ */ N(() => a(X) ? { runtimeId: t, coordinator: a(X) } : null);
9452
+ }), Le = /* @__PURE__ */ N(() => a(X) ? { runtimeId: t, coordinator: a(X) } : null);
9452
9453
  function ii(S) {
9453
9454
  const q = Ge(S);
9454
- q !== a(G) && (V(G, q, !0), V(E, a(E) + 1), V(U, S, !0), L("composition-changed", {
9455
+ q !== a(G) && (V(G, q, !0), V(E, a(E) + 1), V(U, S, !0), M("composition-changed", {
9455
9456
  composition: a(U),
9456
9457
  version: a(E)
9457
9458
  }));
9458
9459
  }
9459
9460
  function pn(S) {
9460
- if (Se = S ?? i.getCompositionModel(), ye) return;
9461
- ye = !0;
9461
+ if (Se = S ?? i.getCompositionModel(), ve) return;
9462
+ ve = !0;
9462
9463
  const q = () => {
9463
- ye = !1, ve = null, ii(Se);
9464
+ ve = !1, ye = null, ii(Se);
9464
9465
  };
9465
9466
  if (typeof window < "u" && typeof window.requestAnimationFrame == "function") {
9466
- ve = window.requestAnimationFrame(q);
9467
+ ye = window.requestAnimationFrame(q);
9467
9468
  return;
9468
9469
  }
9469
9470
  queueMicrotask(q);
@@ -9475,7 +9476,7 @@ function Iu(n, e) {
9475
9476
  canonicalItemId: S.canonicalItemId || S.itemId,
9476
9477
  sourceRuntimeId: t
9477
9478
  };
9478
- pu({ state: pe, itemId: S.itemId, payload: me }) && L("session-changed", me);
9479
+ pu({ state: pe, itemId: S.itemId, payload: me }) && M("session-changed", me);
9479
9480
  }
9480
9481
  function Xi(S) {
9481
9482
  return S instanceof HTMLElement ? tc(S, Po)?.runtimeId === t : !1;
@@ -9503,19 +9504,19 @@ function Iu(n, e) {
9503
9504
  }
9504
9505
  }), ae(() => {
9505
9506
  const S = O() !== "force" && a(H) ? a(H).runtimeId : null, q = S ? "inherited" : "owned";
9506
- q !== a(x) && (V(x, q, !0), L(q === "inherited" ? "runtime-inherited" : "runtime-owned", { runtimeId: t, parentRuntimeId: S }));
9507
+ q !== a(x) && (V(x, q, !0), M(q === "inherited" ? "runtime-inherited" : "runtime-owned", { runtimeId: t, parentRuntimeId: S }));
9507
9508
  }), ae(() => {
9508
9509
  a(Ae), d(), hu(pe);
9509
9510
  }), ae(() => {
9510
- if (!(!a(Y) || !a(Me)))
9511
+ if (!(!a(Y) || !a(Le)))
9511
9512
  return J = new Nn(a(Y), {
9512
9513
  context: Po,
9513
- initialValue: a(Me)
9514
+ initialValue: a(Le)
9514
9515
  }), J.connect(), R = new zn(a(Y)), R.attach(), () => {
9515
9516
  R?.detach(), R = null, J?.disconnect(), J = null;
9516
9517
  };
9517
9518
  }), ae(() => {
9518
- a(Me) && J?.setValue(a(Me));
9519
+ a(Le) && J?.setValue(a(Le));
9519
9520
  }), ae(() => {
9520
9521
  a(Y) && (a(Y).setAttribute("data-item-player-type", a(kt).type), a(Y).setAttribute("data-item-player-tag", a(kt).tagName), a(Y).setAttribute("data-env-mode", String(a(Oe)?.mode || "")), a(Y).setAttribute("data-env-role", String(a(Oe)?.role || "")));
9521
9522
  }), ae(() => {
@@ -9537,21 +9538,21 @@ function Iu(n, e) {
9537
9538
  sectionId: a(Ae),
9538
9539
  assessmentId: a(Te),
9539
9540
  attemptId: d() || void 0,
9540
- view: a(yt),
9541
+ view: a(vt),
9541
9542
  createDefaultController: k,
9542
9543
  onCompositionChanged: (q) => {
9543
9544
  S || pn(q);
9544
9545
  }
9545
9546
  }).then(() => {
9546
- S || (L("toolkit-ready", {
9547
+ S || (M("toolkit-ready", {
9547
9548
  runtimeId: t,
9548
9549
  assessmentId: a(Te),
9549
9550
  sectionId: a(Ae),
9550
9551
  itemPlayer: a(kt),
9551
9552
  coordinator: a(X)
9552
- }), L("section-ready", { sectionId: a(Ae) }));
9553
+ }), M("section-ready", { sectionId: a(Ae) }));
9553
9554
  }).catch((q) => {
9554
- V(j, q, !0), i.reportSectionError({ source: "section-runtime", error: q, timestamp: Date.now() }), L("runtime-error", { runtimeId: t, error: q });
9555
+ V(j, q, !0), i.reportSectionError({ source: "section-runtime", error: q, timestamp: Date.now() }), M("runtime-error", { runtimeId: t, error: q });
9555
9556
  }), () => {
9556
9557
  S = !0;
9557
9558
  };
@@ -9642,7 +9643,7 @@ function Iu(n, e) {
9642
9643
  function to(S) {
9643
9644
  return i.navigateToItem(S);
9644
9645
  }
9645
- function M() {
9646
+ function L() {
9646
9647
  return i.getCompositionModel();
9647
9648
  }
9648
9649
  function Zt() {
@@ -9655,7 +9656,7 @@ function Iu(n, e) {
9655
9656
  await i.hydrate();
9656
9657
  }
9657
9658
  ae(() => () => {
9658
- ve !== null && typeof window < "u" && (window.cancelAnimationFrame(ve), ve = null), ye = !1, i.dispose().catch((S) => {
9659
+ ye !== null && typeof window < "u" && (window.cancelAnimationFrame(ye), ye = null), ve = !1, i.dispose().catch((S) => {
9659
9660
  V(j, S, !0);
9660
9661
  });
9661
9662
  });
@@ -9664,7 +9665,7 @@ function Iu(n, e) {
9664
9665
  getServiceBundle: Qi,
9665
9666
  setHooks: eo,
9666
9667
  navigateToItem: to,
9667
- getCompositionModel: M,
9668
+ getCompositionModel: L,
9668
9669
  getItemPlayerConfig: Zt,
9669
9670
  persist: Si,
9670
9671
  hydrate: no,
@@ -9735,10 +9736,10 @@ function Iu(n, e) {
9735
9736
  A(S), h();
9736
9737
  },
9737
9738
  get coordinator() {
9738
- return v();
9739
+ return y();
9739
9740
  },
9740
9741
  set coordinator(S) {
9741
- v(S), h();
9742
+ y(S), h();
9742
9743
  },
9743
9744
  get createSectionController() {
9744
9745
  return C();
@@ -9752,7 +9753,7 @@ function Iu(n, e) {
9752
9753
  set isolation(S) {
9753
9754
  O(S), h();
9754
9755
  }
9755
- }, cr = yu(), dr = gt(cr);
9756
+ }, cr = vu(), dr = gt(cr);
9756
9757
  lt(dr, (S) => V(D, S), () => a(D));
9757
9758
  var ha = Re(dr, 2);
9758
9759
  return Fn(ha, e, "default", {}), ge(n, cr), Ke(fa);
@@ -9846,12 +9847,12 @@ class Su {
9846
9847
  passage: _ || g.item.passage
9847
9848
  };
9848
9849
  c.push(A);
9849
- const v = g.identifier || m || g.item.name || "";
9850
+ const y = g.identifier || m || g.item.name || "";
9850
9851
  d.push({
9851
- identifier: v,
9852
+ identifier: y,
9852
9853
  item: {
9853
9854
  id: m,
9854
- identifier: v
9855
+ identifier: y
9855
9856
  }
9856
9857
  }), _ && typeof _ == "object" && _.id && !i.has(_.id) && i.set(_.id, _);
9857
9858
  }
@@ -9982,7 +9983,7 @@ class Cu {
9982
9983
  isPageMode: !1
9983
9984
  },
9984
9985
  testAttemptSession: null
9985
- }, this.listeners = /* @__PURE__ */ new Set(), this.trackedRenderables = /* @__PURE__ */ new Map(), this.loadedRenderableKeys = /* @__PURE__ */ new Set(), this.itemCompletionByCanonicalId = /* @__PURE__ */ new Map(), this.sectionLoadingComplete = !1, this.totalRegistered = 0, this.totalLoaded = 0, this.sectionItemsComplete = !1, this.completedCount = 0, this.totalItems = 0;
9986
+ }, this.listeners = /* @__PURE__ */ new Set(), this.trackedRenderables = /* @__PURE__ */ new Map(), this.loadedRenderableKeys = /* @__PURE__ */ new Set(), this.itemCompletionByCanonicalId = /* @__PURE__ */ new Map(), this.sectionLoadingComplete = !1, this.totalRegistered = 0, this.totalLoaded = 0, this.sectionItemsComplete = !1, this.completedCount = 0, this.totalItems = 0, this.nextApplyRevision = 0, this.lastReplayedApplyRevision = 0, this.pendingApplyReplay = null;
9986
9987
  }
9987
9988
  emitChange(e) {
9988
9989
  for (const t of this.listeners)
@@ -10049,7 +10050,7 @@ class Cu {
10049
10050
  );
10050
10051
  }
10051
10052
  dispose() {
10052
- this.listeners.clear(), this.resetLifecycleTracking();
10053
+ this.listeners.clear(), this.resetLifecycleTracking(), this.pendingApplyReplay = null, this.nextApplyRevision = 0, this.lastReplayedApplyRevision = 0;
10053
10054
  }
10054
10055
  getViewModel() {
10055
10056
  return this.cloneForRead(this.state.viewModel);
@@ -10234,17 +10235,23 @@ class Cu {
10234
10235
  }
10235
10236
  async applySession(e, t) {
10236
10237
  if (!this.state.testAttemptSession || !e) return;
10237
- const i = t?.mode || "replace", o = e.itemSessions && typeof e.itemSessions == "object" ? e.itemSessions : {};
10238
- if (i === "merge" ? this.state.testAttemptSession.itemSessions = {
10239
- ...this.state.testAttemptSession.itemSessions,
10240
- ...o
10241
- } : this.state.testAttemptSession.itemSessions = o, Array.isArray(e.visitedItemIdentifiers)) {
10242
- const r = e.visitedItemIdentifiers.filter(
10243
- (s) => typeof s == "string" && !!s
10244
- );
10245
- this.state.testAttemptSession.navigationState.visitedItemIdentifiers = r;
10246
- } else i === "replace" && (this.state.testAttemptSession.navigationState.visitedItemIdentifiers = []);
10247
- typeof e.currentItemIndex == "number" && e.currentItemIndex >= 0 ? (this.state.testAttemptSession.navigationState.currentItemIndex = e.currentItemIndex, this.state.viewModel.currentItemIndex = e.currentItemIndex) : i === "replace" && (this.state.testAttemptSession.navigationState.currentItemIndex = 0, this.state.viewModel.currentItemIndex = 0), this.bootstrapCompletionFromSessions();
10238
+ const i = t?.mode || "replace", o = this.normalizeApplySession(e);
10239
+ this.applyNormalizedSessionToState(o, i), this.bootstrapCompletionFromSessions();
10240
+ const r = ++this.nextApplyRevision;
10241
+ this.sectionLoadingComplete || (this.pendingApplyReplay = {
10242
+ revision: r,
10243
+ mode: i,
10244
+ session: this.cloneForRead(e)
10245
+ });
10246
+ const s = {
10247
+ type: "section-session-applied",
10248
+ mode: i,
10249
+ itemSessionCount: o.itemSessionCount,
10250
+ replay: !1,
10251
+ currentItemIndex: this.state.viewModel.currentItemIndex ?? 0,
10252
+ timestamp: Date.now()
10253
+ };
10254
+ this.emitChange(s);
10248
10255
  }
10249
10256
  /**
10250
10257
  * Move between items inside the current section only.
@@ -10415,7 +10422,73 @@ class Cu {
10415
10422
  currentItemIndex: this.state.viewModel.currentItemIndex ?? 0,
10416
10423
  timestamp: e
10417
10424
  };
10418
- this.emitChange(r);
10425
+ this.emitChange(r), this.replayPendingAppliedSession();
10426
+ }
10427
+ async replayPendingAppliedSession() {
10428
+ const e = this.pendingApplyReplay;
10429
+ if (!e || e.revision <= this.lastReplayedApplyRevision || !this.sectionLoadingComplete) return;
10430
+ const t = this.normalizeApplySession(e.session);
10431
+ if (!this.state.testAttemptSession) return;
10432
+ this.applyNormalizedSessionToState(t, e.mode), this.bootstrapCompletionFromSessions(), this.lastReplayedApplyRevision = e.revision;
10433
+ const i = {
10434
+ type: "section-session-applied",
10435
+ mode: e.mode,
10436
+ itemSessionCount: t.itemSessionCount,
10437
+ replay: !0,
10438
+ currentItemIndex: this.state.viewModel.currentItemIndex ?? 0,
10439
+ timestamp: Date.now()
10440
+ };
10441
+ this.emitChange(i);
10442
+ }
10443
+ normalizeApplySession(e) {
10444
+ const t = e.itemSessions && typeof e.itemSessions == "object" ? e.itemSessions : {}, i = new Set(
10445
+ this.state.viewModel.adapterItemRefs.map((c) => this.getCanonicalItemId(c.identifier || c.item?.id || "")).filter((c) => typeof c == "string" && !!c)
10446
+ ), o = {};
10447
+ for (const [c, d] of Object.entries(t)) {
10448
+ const u = this.getCanonicalItemId(c);
10449
+ if (!i.has(u))
10450
+ continue;
10451
+ const f = this.normalizeItemSessionEntry(
10452
+ u,
10453
+ d
10454
+ );
10455
+ f && (o[u] = f);
10456
+ }
10457
+ const r = Array.isArray(e.visitedItemIdentifiers) ? Array.from(
10458
+ new Set(
10459
+ e.visitedItemIdentifiers.map((c) => this.getCanonicalItemId(c)).filter((c) => i.has(c))
10460
+ )
10461
+ ) : void 0, s = Math.max(0, this.state.viewModel.items.length - 1);
10462
+ return {
10463
+ currentItemIndex: typeof e.currentItemIndex == "number" && Number.isFinite(e.currentItemIndex) ? Math.min(Math.max(0, e.currentItemIndex), s) : void 0,
10464
+ visitedItemIdentifiers: r,
10465
+ itemSessions: o,
10466
+ itemSessionCount: Object.keys(o).length
10467
+ };
10468
+ }
10469
+ normalizeItemSessionEntry(e, t) {
10470
+ if (!t || typeof t != "object") return null;
10471
+ const i = t, o = i;
10472
+ if (typeof o.itemIdentifier == "string" && o.session && typeof o.session == "object")
10473
+ return {
10474
+ itemIdentifier: e,
10475
+ attemptCount: typeof o.attemptCount == "number" && Number.isFinite(o.attemptCount) ? o.attemptCount : 1,
10476
+ isCompleted: !!o.isCompleted,
10477
+ session: o.session
10478
+ };
10479
+ const s = o.session && typeof o.session == "object" ? o.session : i;
10480
+ return {
10481
+ itemIdentifier: e,
10482
+ attemptCount: 1,
10483
+ isCompleted: typeof o.complete == "boolean" ? o.complete : !!s.complete,
10484
+ session: s
10485
+ };
10486
+ }
10487
+ applyNormalizedSessionToState(e, t) {
10488
+ this.state.testAttemptSession && (t === "merge" ? this.state.testAttemptSession.itemSessions = {
10489
+ ...this.state.testAttemptSession.itemSessions,
10490
+ ...e.itemSessions
10491
+ } : this.state.testAttemptSession.itemSessions = e.itemSessions, Array.isArray(e.visitedItemIdentifiers) ? this.state.testAttemptSession.navigationState.visitedItemIdentifiers = e.visitedItemIdentifiers : t === "replace" && (this.state.testAttemptSession.navigationState.visitedItemIdentifiers = []), typeof e.currentItemIndex == "number" ? (this.state.testAttemptSession.navigationState.currentItemIndex = e.currentItemIndex, this.state.viewModel.currentItemIndex = e.currentItemIndex) : t === "replace" && (this.state.testAttemptSession.navigationState.currentItemIndex = 0, this.state.viewModel.currentItemIndex = 0));
10419
10492
  }
10420
10493
  cloneForRead(e) {
10421
10494
  if (e == null) return e;
@@ -10437,7 +10510,7 @@ const Pu = {
10437
10510
  };
10438
10511
  function ku(n, e) {
10439
10512
  je(e, !0), tt(n, Pu);
10440
- let t = p(e, "assessmentId", 7, Ro), i = p(e, "runtime", 7, null), o = p(e, "section", 7, null), r = p(e, "sectionId", 7, ""), s = p(e, "attemptId", 7, ""), l = p(e, "playerType", 7, Ni), c = p(e, "player", 7, null), d = p(e, "lazyInit", 7, Oo), u = p(e, "tools", 7, null), f = p(e, "accessibility", 7, null), g = p(e, "coordinator", 7, null), I = p(e, "createSectionController", 7, null), m = p(e, "isolation", 7, Lo), _ = p(e, "env", 7, null), A = /* @__PURE__ */ $(null), v = /* @__PURE__ */ $(null), C = /* @__PURE__ */ $(-1);
10513
+ let t = p(e, "assessmentId", 7, Ro), i = p(e, "runtime", 7, null), o = p(e, "section", 7, null), r = p(e, "sectionId", 7, ""), s = p(e, "attemptId", 7, ""), l = p(e, "playerType", 7, Ni), c = p(e, "player", 7, null), d = p(e, "lazyInit", 7, Oo), u = p(e, "tools", 7, null), f = p(e, "accessibility", 7, null), g = p(e, "coordinator", 7, null), I = p(e, "createSectionController", 7, null), m = p(e, "isolation", 7, Mo), _ = p(e, "env", 7, null), A = /* @__PURE__ */ $(null), y = /* @__PURE__ */ $(null), C = /* @__PURE__ */ $(-1);
10441
10514
  const O = Hn(), D = /* @__PURE__ */ N(() => i()?.assessmentId ?? t()), T = /* @__PURE__ */ N(() => i()?.playerType ?? l()), H = /* @__PURE__ */ N(() => i()?.player ?? c()), x = /* @__PURE__ */ N(() => i()?.lazyInit ?? d()), B = /* @__PURE__ */ N(() => i()?.tools ?? u()), W = /* @__PURE__ */ N(() => i()?.accessibility ?? f()), J = /* @__PURE__ */ N(() => i()?.coordinator ?? g()), R = /* @__PURE__ */ N(() => i()?.createSectionController ?? I()), E = /* @__PURE__ */ N(() => i()?.isolation ?? m()), U = /* @__PURE__ */ N(() => i()?.env ?? _() ?? oa), j = /* @__PURE__ */ N(() => r() || a(G)?.identifier || "");
10442
10515
  let G = /* @__PURE__ */ N(() => {
10443
10516
  if (!o()) return null;
@@ -10450,18 +10523,18 @@ function ku(n, e) {
10450
10523
  function Se(k, Z) {
10451
10524
  O(k, Z);
10452
10525
  }
10453
- function ye(k) {
10526
+ function ve(k) {
10454
10527
  const Z = k.detail, X = Z?.composition || ir, Te = typeof Z?.version == "number" ? Z.version : a(C) + 1;
10455
10528
  Te !== a(C) && (V(C, Te, !0), Se("composition-changed", { composition: X }));
10456
10529
  }
10457
- function ve(k, Z) {
10530
+ function ye(k, Z) {
10458
10531
  const X = k.detail;
10459
- Z === "toolkit-ready" && X?.coordinator && V(v, X.coordinator, !0), Se(Z, X || {});
10532
+ Z === "toolkit-ready" && X?.coordinator && V(y, X.coordinator, !0), Se(Z, X || {});
10460
10533
  }
10461
- const pe = /* @__PURE__ */ N(() => bn(a(B) || {})), le = /* @__PURE__ */ N(() => ["section", "item", "passage"].some((Z) => js(a(pe), Z).includes("annotationToolbar"))), Y = /* @__PURE__ */ N(() => a(v)?.isToolEnabled?.("annotationToolbar") ?? a(pe)?.providers?.annotationToolbar?.enabled !== !1), L = /* @__PURE__ */ N(() => !!(a(v) && a(le) && a(Y)));
10534
+ const pe = /* @__PURE__ */ N(() => bn(a(B) || {})), le = /* @__PURE__ */ N(() => ["section", "item", "passage"].some((Z) => js(a(pe), Z).includes("annotationToolbar"))), Y = /* @__PURE__ */ N(() => a(y)?.isToolEnabled?.("annotationToolbar") ?? a(pe)?.providers?.annotationToolbar?.enabled !== !1), M = /* @__PURE__ */ N(() => !!(a(y) && a(le) && a(Y)));
10462
10535
  let ie = /* @__PURE__ */ $(!1);
10463
10536
  ae(() => {
10464
- if (!a(L) || a(ie)) return;
10537
+ if (!a(M) || a(ie)) return;
10465
10538
  let k = !1;
10466
10539
  return import("./tool-annotation-toolbar-R3IiCXl8.js").then(() => {
10467
10540
  k || V(ie, !0);
@@ -10476,11 +10549,11 @@ function ku(n, e) {
10476
10549
  function z(k) {
10477
10550
  return a(A)?.navigateToItem ? a(A).navigateToItem(k) : null;
10478
10551
  }
10479
- function Le() {
10552
+ function Me() {
10480
10553
  return a(A)?.getCompositionModel ? a(A).getCompositionModel() : null;
10481
10554
  }
10482
10555
  function F() {
10483
- const k = Le(), Z = k?.items || [], X = k?.isPageMode === !0, Te = Math.max(0, Math.min(typeof k?.currentItemIndex == "number" ? k.currentItemIndex : 0, Math.max(0, Z.length - 1)));
10556
+ const k = Me(), Z = k?.items || [], X = k?.isPageMode === !0, Te = Math.max(0, Math.min(typeof k?.currentItemIndex == "number" ? k.currentItemIndex : 0, Math.max(0, Z.length - 1)));
10484
10557
  return {
10485
10558
  currentIndex: Te,
10486
10559
  totalItems: Z.length,
@@ -10492,7 +10565,7 @@ function ku(n, e) {
10492
10565
  function be() {
10493
10566
  const k = a(j);
10494
10567
  if (!k) return null;
10495
- const Z = s() || void 0, X = a(v) || a(J);
10568
+ const Z = s() || void 0, X = a(y) || a(J);
10496
10569
  return X?.getSectionController && X.getSectionController({ sectionId: k, attemptId: Z }) || null;
10497
10570
  }
10498
10571
  function ce() {
@@ -10509,7 +10582,7 @@ function ku(n, e) {
10509
10582
  }
10510
10583
  var Ge = {
10511
10584
  navigateToItem: z,
10512
- getCompositionModelSnapshot: Le,
10585
+ getCompositionModelSnapshot: Me,
10513
10586
  getNavigationStateSnapshot: F,
10514
10587
  getSectionController: ce,
10515
10588
  waitForSectionController: qe,
@@ -10588,7 +10661,7 @@ function ku(n, e) {
10588
10661
  get isolation() {
10589
10662
  return m();
10590
10663
  },
10591
- set isolation(k = Lo) {
10664
+ set isolation(k = Mo) {
10592
10665
  m(k), h();
10593
10666
  },
10594
10667
  get env() {
@@ -10603,14 +10676,14 @@ function ku(n, e) {
10603
10676
  {
10604
10677
  var ne = (k) => {
10605
10678
  var Z = _u();
10606
- w(Z, "enabled", !0), P(() => w(Z, "ttsService", a(v).ttsService)), P(() => w(Z, "highlightCoordinator", a(v).highlightCoordinator)), ge(k, Z);
10679
+ w(Z, "enabled", !0), P(() => w(Z, "ttsService", a(y).ttsService)), P(() => w(Z, "highlightCoordinator", a(y).highlightCoordinator)), ge(k, Z);
10607
10680
  };
10608
10681
  at(K, (k) => {
10609
- a(L) && a(ie) && k(ne);
10682
+ a(M) && a(ie) && k(ne);
10610
10683
  });
10611
10684
  }
10612
10685
  var he = Re(K, 2);
10613
- return Fn(he, e, "default", {}), we(de), lt(de, (k) => V(A, k), () => a(A)), ze("composition-changed", de, ye), ze("toolkit-ready", de, (k) => ve(k, "toolkit-ready")), ze("section-ready", de, (k) => ve(k, "section-ready")), ze("runtime-error", de, (k) => ve(k, "runtime-error")), ze("session-changed", de, (k) => ve(k, "session-changed")), ze("runtime-owned", de, (k) => ve(k, "runtime-owned")), ze("runtime-inherited", de, (k) => ve(k, "runtime-inherited")), ge(n, de), Ke(Ge);
10686
+ return Fn(he, e, "default", {}), we(de), lt(de, (k) => V(A, k), () => a(A)), ze("composition-changed", de, ve), ze("toolkit-ready", de, (k) => ye(k, "toolkit-ready")), ze("section-ready", de, (k) => ye(k, "section-ready")), ze("runtime-error", de, (k) => ye(k, "runtime-error")), ze("session-changed", de, (k) => ye(k, "session-changed")), ze("runtime-owned", de, (k) => ye(k, "runtime-owned")), ze("runtime-inherited", de, (k) => ye(k, "runtime-inherited")), ge(n, de), Ke(Ge);
10614
10687
  }
10615
10688
  customElements.define("pie-section-player-base", $e(
10616
10689
  ku,
@@ -10640,8 +10713,8 @@ customElements.define("pie-section-player-base", $e(
10640
10713
  ],
10641
10714
  { mode: "open" }
10642
10715
  ));
10643
- var Au = /* @__PURE__ */ Ie("<pie-section-toolbar></pie-section-toolbar>", 2), xu = /* @__PURE__ */ Ie('<aside class="pie-section-player-toolbar-pane pie-section-player-toolbar-pane--left svelte-klnow4" aria-label="Section tools"><pie-section-toolbar></pie-section-toolbar></aside>', 2), Ru = /* @__PURE__ */ Ie('<aside class="pie-section-player-toolbar-pane pie-section-player-toolbar-pane--right svelte-klnow4" aria-label="Section tools"><pie-section-toolbar></pie-section-toolbar></aside>', 2), Ou = /* @__PURE__ */ Ie("<pie-section-toolbar></pie-section-toolbar>", 2), Lu = /* @__PURE__ */ Ie("<div><!> <div><!> <!> <!></div> <!></div>");
10644
- const Mu = {
10716
+ var Au = /* @__PURE__ */ Ie("<pie-section-toolbar></pie-section-toolbar>", 2), xu = /* @__PURE__ */ Ie('<aside class="pie-section-player-toolbar-pane pie-section-player-toolbar-pane--left svelte-klnow4" aria-label="Section tools"><pie-section-toolbar></pie-section-toolbar></aside>', 2), Ru = /* @__PURE__ */ Ie('<aside class="pie-section-player-toolbar-pane pie-section-player-toolbar-pane--right svelte-klnow4" aria-label="Section tools"><pie-section-toolbar></pie-section-toolbar></aside>', 2), Ou = /* @__PURE__ */ Ie("<pie-section-toolbar></pie-section-toolbar>", 2), Mu = /* @__PURE__ */ Ie("<div><!> <div><!> <!> <!></div> <!></div>");
10717
+ const Lu = {
10645
10718
  hash: "svelte-klnow4",
10646
10719
  code: `:host {display:block;width:100%;height:100%;min-height:0;}.pie-section-player-shell.svelte-klnow4 {display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden;background:var(--pie-background-dark, #ecedf1);}.pie-section-player-layout-body.svelte-klnow4 {display:grid;grid-template-columns:minmax(0, 1fr);flex:1;min-height:0;overflow:hidden;background:var(--pie-background-dark, #ecedf1);}.pie-section-player-layout-body--inline.svelte-klnow4 {gap:0;}.pie-section-player-layout-body--inline-left.svelte-klnow4 {grid-template-columns:auto minmax(0, 1fr);}.pie-section-player-layout-body--inline-right.svelte-klnow4 {grid-template-columns:minmax(0, 1fr) auto;}.pie-section-player-toolbar-pane.svelte-klnow4 {min-height:0;overflow:auto;padding:0.25rem;box-sizing:border-box;background:var(--pie-background-dark, #ecedf1);}.pie-section-player-toolbar-pane--right.svelte-klnow4 {border-left:1px solid var(--pie-border-light, #e5e7eb);}.pie-section-player-toolbar-pane--left.svelte-klnow4 {border-right:1px solid var(--pie-border-light, #e5e7eb);}.pie-section-player-toolbar.svelte-klnow4 {margin:0.25rem;}.pie-section-player-toolbar-pane.svelte-klnow4 pie-section-toolbar:where(.svelte-klnow4) {margin:0.25rem;}
10647
10720
 
@@ -10650,7 +10723,7 @@ const Mu = {
10650
10723
  }`
10651
10724
  };
10652
10725
  function Nu(n, e) {
10653
- je(e, !0), tt(n, Mu);
10726
+ je(e, !0), tt(n, Lu);
10654
10727
  let t = p(e, "showToolbar", 7, "false"), i = p(e, "toolbarPosition", 7, "right"), o = p(e, "enabledTools", 7, "");
10655
10728
  const r = /* @__PURE__ */ N(() => rr(t(), !1) && i() !== "none"), s = /* @__PURE__ */ N(() => i() === "top"), l = /* @__PURE__ */ N(() => i() === "bottom"), c = /* @__PURE__ */ N(() => i() === "left" || i() === "right");
10656
10729
  var d = {
@@ -10672,7 +10745,7 @@ function Nu(n, e) {
10672
10745
  set enabledTools(T = "") {
10673
10746
  o(T), h();
10674
10747
  }
10675
- }, u = Lu(), f = Ce(u);
10748
+ }, u = Mu(), f = Ce(u);
10676
10749
  {
10677
10750
  var g = (T) => {
10678
10751
  var H = Au();
@@ -10694,13 +10767,13 @@ function Nu(n, e) {
10694
10767
  }
10695
10768
  var A = Re(m, 2);
10696
10769
  Fn(A, e, "default", {});
10697
- var v = Re(A, 2);
10770
+ var y = Re(A, 2);
10698
10771
  {
10699
10772
  var C = (T) => {
10700
10773
  var H = Ru(), x = Ce(H);
10701
10774
  w(x, "position", "right"), P(() => w(x, "enabled-tools", o())), wt(x, 1, "svelte-klnow4"), we(H), ge(T, H);
10702
10775
  };
10703
- at(v, (T) => {
10776
+ at(y, (T) => {
10704
10777
  a(r) && a(c) && i() === "right" && T(C);
10705
10778
  });
10706
10779
  }
@@ -10742,8 +10815,8 @@ const Du = {
10742
10815
  };
10743
10816
  function sa(n, e) {
10744
10817
  je(e, !0), tt(n, Du);
10745
- let t = p(e, "runtime", 7, null), i = p(e, "section", 7, null), o = p(e, "sectionId", 7, ""), r = p(e, "attemptId", 7, ""), s = p(e, "showToolbar", 7, "false"), l = p(e, "toolbarPosition", 7, "right"), c = p(e, "enabledTools", 7, ""), d = p(e, "cardRenderContext", 7, null), u = p(e, "onCompositionChanged", 7), f = p(e, "onSectionReady", 7), g = p(e, "onRuntimeError", 7), I = p(e, "onSessionChanged", 7), m = p(e, "onRuntimeOwned", 7), _ = p(e, "onRuntimeInherited", 7), A = p(e, "onToolkitReady", 7), v = /* @__PURE__ */ $(null), C = /* @__PURE__ */ $(null), O = /* @__PURE__ */ $(null);
10746
- const D = /* @__PURE__ */ N(() => or(a(v))), T = /* @__PURE__ */ N(() => rr(s(), !1));
10818
+ let t = p(e, "runtime", 7, null), i = p(e, "section", 7, null), o = p(e, "sectionId", 7, ""), r = p(e, "attemptId", 7, ""), s = p(e, "showToolbar", 7, "false"), l = p(e, "toolbarPosition", 7, "right"), c = p(e, "enabledTools", 7, ""), d = p(e, "cardRenderContext", 7, null), u = p(e, "onCompositionChanged", 7), f = p(e, "onSectionReady", 7), g = p(e, "onRuntimeError", 7), I = p(e, "onSessionChanged", 7), m = p(e, "onRuntimeOwned", 7), _ = p(e, "onRuntimeInherited", 7), A = p(e, "onToolkitReady", 7), y = /* @__PURE__ */ $(null), C = /* @__PURE__ */ $(null), O = /* @__PURE__ */ $(null);
10819
+ const D = /* @__PURE__ */ N(() => or(a(y))), T = /* @__PURE__ */ N(() => rr(s(), !1));
10747
10820
  function H(z) {
10748
10821
  u()?.(z);
10749
10822
  }
@@ -10767,8 +10840,8 @@ function sa(n, e) {
10767
10840
  }
10768
10841
  function U(z) {
10769
10842
  if (typeof z != "number" || !Number.isFinite(z) || !a(C)?.navigateToItem) return !1;
10770
- const Le = G(), F = a(C).navigateToItem(z);
10771
- return G().currentIndex !== Le.currentIndex ? !0 : F != null && F !== !1;
10843
+ const Me = G(), F = a(C).navigateToItem(z);
10844
+ return G().currentIndex !== Me.currentIndex ? !0 : F != null && F !== !1;
10772
10845
  }
10773
10846
  function j() {
10774
10847
  return a(C)?.getCompositionModelSnapshot?.() ?? null;
@@ -10784,7 +10857,7 @@ function sa(n, e) {
10784
10857
  function Se() {
10785
10858
  return a(C)?.getSectionController?.() ?? null;
10786
10859
  }
10787
- async function ye(z = 5e3) {
10860
+ async function ve(z = 5e3) {
10788
10861
  return a(C)?.waitForSectionController ? a(C).waitForSectionController(z) : null;
10789
10862
  }
10790
10863
  ae(() => {
@@ -10795,12 +10868,12 @@ function sa(n, e) {
10795
10868
  }), ae(() => {
10796
10869
  d() && a(O)?.setValue(d());
10797
10870
  });
10798
- var ve = {
10871
+ var ye = {
10799
10872
  navigateToItem: U,
10800
10873
  getCompositionModelSnapshot: j,
10801
10874
  getNavigationStateSnapshot: G,
10802
10875
  getSectionController: Se,
10803
- waitForSectionController: ye,
10876
+ waitForSectionController: ve,
10804
10877
  get runtime() {
10805
10878
  return t();
10806
10879
  },
@@ -10892,13 +10965,13 @@ function sa(n, e) {
10892
10965
  A(z), h();
10893
10966
  }
10894
10967
  }, pe = zu(), le = gt(pe);
10895
- lt(le, (z) => V(v, z), () => a(v));
10968
+ lt(le, (z) => V(y, z), () => a(y));
10896
10969
  var Y = Re(le, 2);
10897
10970
  P(() => w(Y, "runtime", t())), P(() => w(Y, "section", i())), P(() => w(Y, "section-id", o())), P(() => w(Y, "attempt-id", r()));
10898
- var L = Ce(Y);
10899
- P(() => w(L, "show-toolbar", a(T))), P(() => w(L, "toolbar-position", l())), P(() => w(L, "enabled-tools", c()));
10900
- var ie = Ce(L);
10901
- return Fn(ie, e, "default", {}), we(L), we(Y), lt(Y, (z) => V(C, z), () => a(C)), ze("composition-changed", Y, H), ze("section-ready", Y, x), ze("runtime-error", Y, B), ze("session-changed", Y, W), ze("runtime-owned", Y, J), ze("runtime-inherited", Y, R), ze("toolkit-ready", Y, E), ge(n, pe), Ke(ve);
10971
+ var M = Ce(Y);
10972
+ P(() => w(M, "show-toolbar", a(T))), P(() => w(M, "toolbar-position", l())), P(() => w(M, "enabled-tools", c()));
10973
+ var ie = Ce(M);
10974
+ return Fn(ie, e, "default", {}), we(M), we(Y), lt(Y, (z) => V(C, z), () => a(C)), ze("composition-changed", Y, H), ze("section-ready", Y, x), ze("runtime-error", Y, B), ze("session-changed", Y, W), ze("runtime-owned", Y, J), ze("runtime-inherited", Y, R), ze("toolkit-ready", Y, E), ge(n, pe), Ke(ye);
10902
10975
  }
10903
10976
  $e(
10904
10977
  sa,
@@ -10931,13 +11004,13 @@ $e(
10931
11004
  );
10932
11005
  function Yi(n, e) {
10933
11006
  je(e, !0);
10934
- let t = p(e, "assessmentId", 7), i = p(e, "runtime", 7, null), o = p(e, "section", 7, null), r = p(e, "sectionId", 7, ""), s = p(e, "attemptId", 7, ""), l = p(e, "playerType", 7), c = p(e, "player", 7), d = p(e, "lazyInit", 7), u = p(e, "tools", 7), f = p(e, "accessibility", 7), g = p(e, "coordinator", 7), I = p(e, "createSectionController", 7), m = p(e, "isolation", 7), _ = p(e, "env", 7), A = p(e, "iifeBundleHost", 7), v = p(e, "showToolbar", 7, "false"), C = p(e, "toolbarPosition", 7, "right"), O = p(e, "enabledTools", 7, ""), D = p(e, "itemToolbarTools", 7, ""), T = p(e, "passageToolbarTools", 7, ""), H = p(e, "playerActionConfig", 23, () => ({
11007
+ let t = p(e, "assessmentId", 7), i = p(e, "runtime", 7, null), o = p(e, "section", 7, null), r = p(e, "sectionId", 7, ""), s = p(e, "attemptId", 7, ""), l = p(e, "playerType", 7), c = p(e, "player", 7), d = p(e, "lazyInit", 7), u = p(e, "tools", 7), f = p(e, "accessibility", 7), g = p(e, "coordinator", 7), I = p(e, "createSectionController", 7), m = p(e, "isolation", 7), _ = p(e, "env", 7), A = p(e, "iifeBundleHost", 7), y = p(e, "showToolbar", 7, "false"), C = p(e, "toolbarPosition", 7, "right"), O = p(e, "enabledTools", 7, ""), D = p(e, "itemToolbarTools", 7, ""), T = p(e, "passageToolbarTools", 7, ""), H = p(e, "playerActionConfig", 23, () => ({
10935
11008
  stateKey: "__sectionPlayerAppliedParams",
10936
11009
  includeSessionRefInState: !1
10937
11010
  })), x = p(e, "policies", 7, xr);
10938
11011
  const B = Hn();
10939
11012
  let W = /* @__PURE__ */ $(an(ra(ir))), J = /* @__PURE__ */ $(!1), R = /* @__PURE__ */ $(null), E = /* @__PURE__ */ $(!1), U = /* @__PURE__ */ $(!1), j = /* @__PURE__ */ $(!1), G = /* @__PURE__ */ $(!1), Se = /* @__PURE__ */ $(!1);
10940
- const ye = /* @__PURE__ */ N(() => a(W).compositionModel), ve = /* @__PURE__ */ N(() => a(W).passages), pe = /* @__PURE__ */ N(() => a(W).items), le = /* @__PURE__ */ N(() => a(W).renderables), Y = /* @__PURE__ */ N(() => a(W).renderablesSignature), L = /* @__PURE__ */ N(() => Vd({
11013
+ const ve = /* @__PURE__ */ N(() => a(W).compositionModel), ye = /* @__PURE__ */ N(() => a(W).passages), pe = /* @__PURE__ */ N(() => a(W).items), le = /* @__PURE__ */ N(() => a(W).renderables), Y = /* @__PURE__ */ N(() => a(W).renderablesSignature), M = /* @__PURE__ */ N(() => Vd({
10941
11014
  assessmentId: t(),
10942
11015
  playerType: l(),
10943
11016
  player: c(),
@@ -10952,10 +11025,10 @@ function Yi(n, e) {
10952
11025
  enabledTools: O(),
10953
11026
  itemToolbarTools: D(),
10954
11027
  passageToolbarTools: T()
10955
- })), ie = /* @__PURE__ */ N(() => a(L).effectiveRuntime), z = /* @__PURE__ */ N(() => a(L).playerRuntime), Le = /* @__PURE__ */ N(() => a(z).resolvedPlayerDefinition), F = /* @__PURE__ */ N(() => a(z).resolvedPlayerTag), be = /* @__PURE__ */ N(() => a(z).resolvedPlayerAttributes), ce = /* @__PURE__ */ N(() => a(z).resolvedPlayerProps), qe = /* @__PURE__ */ N(() => a(z).resolvedPlayerEnv), Ge = /* @__PURE__ */ N(() => a(z).strategy), de = /* @__PURE__ */ N(() => nu(H())), K = /* @__PURE__ */ N(() => ({
11028
+ })), ie = /* @__PURE__ */ N(() => a(M).effectiveRuntime), z = /* @__PURE__ */ N(() => a(M).playerRuntime), Me = /* @__PURE__ */ N(() => a(z).resolvedPlayerDefinition), F = /* @__PURE__ */ N(() => a(z).resolvedPlayerTag), be = /* @__PURE__ */ N(() => a(z).resolvedPlayerAttributes), ce = /* @__PURE__ */ N(() => a(z).resolvedPlayerProps), qe = /* @__PURE__ */ N(() => a(z).resolvedPlayerEnv), Ge = /* @__PURE__ */ N(() => a(z).strategy), de = /* @__PURE__ */ N(() => nu(H())), K = /* @__PURE__ */ N(() => ({
10956
11029
  resolvedPlayerTag: a(F),
10957
11030
  playerAction: a(de)
10958
- })), ne = /* @__PURE__ */ N(() => rr(v(), !1)), he = /* @__PURE__ */ N(() => au({
11031
+ })), ne = /* @__PURE__ */ N(() => rr(y(), !1)), he = /* @__PURE__ */ N(() => au({
10959
11032
  mode: x().readiness.mode,
10960
11033
  signals: {
10961
11034
  sectionReady: a(E),
@@ -10965,41 +11038,41 @@ function Yi(n, e) {
10965
11038
  },
10966
11039
  reason: `policy:${x().readiness.mode}`
10967
11040
  }));
10968
- function k(M) {
10969
- V(W, Kd(M), !0), B("composition-changed", M.detail);
11041
+ function k(L) {
11042
+ V(W, Kd(L), !0), B("composition-changed", L.detail);
10970
11043
  }
10971
- function Z(M) {
10972
- const Zt = M.detail;
11044
+ function Z(L) {
11045
+ const Zt = L.detail;
10973
11046
  V(J, Zt?.elementsLoaded === !0);
10974
11047
  }
10975
- function X(M) {
11048
+ function X(L) {
10976
11049
  V(E, !0);
10977
11050
  }
10978
- function Te(M) {
10979
- V(G, !0), B("runtime-error", M.detail || {});
11051
+ function Te(L) {
11052
+ V(G, !0), B("runtime-error", L.detail || {});
10980
11053
  }
10981
- function Ae(M) {
10982
- B("session-changed", M.detail || {});
11054
+ function Ae(L) {
11055
+ B("session-changed", L.detail || {});
10983
11056
  }
10984
- function Oe(M) {
10985
- B("runtime-owned", M.detail || {});
11057
+ function Oe(L) {
11058
+ B("runtime-owned", L.detail || {});
10986
11059
  }
10987
- function yt(M) {
10988
- B("runtime-inherited", M.detail || {});
11060
+ function vt(L) {
11061
+ B("runtime-inherited", L.detail || {});
10989
11062
  }
10990
11063
  async function kt() {
10991
11064
  if (a(Se)) return;
10992
- const M = await a(R)?.waitForSectionController?.(2500);
10993
- M && (V(Se, !0), B("section-controller-ready", {
11065
+ const L = await a(R)?.waitForSectionController?.(2500);
11066
+ L && (V(Se, !0), B("section-controller-ready", {
10994
11067
  sectionId: r(),
10995
11068
  attemptId: s() || void 0,
10996
- controller: M
11069
+ controller: L
10997
11070
  }));
10998
11071
  }
10999
- function bt(M) {
11072
+ function bt(L) {
11000
11073
  kt();
11001
11074
  }
11002
- function Me() {
11075
+ function Le() {
11003
11076
  return a(R)?.getNavigationStateSnapshot?.() || {
11004
11077
  currentIndex: 0,
11005
11078
  totalItems: a(pe).length,
@@ -11013,44 +11086,44 @@ function Yi(n, e) {
11013
11086
  readiness: a(he),
11014
11087
  composition: {
11015
11088
  itemsCount: a(pe).length,
11016
- passagesCount: a(ve).length
11089
+ passagesCount: a(ye).length
11017
11090
  },
11018
- navigation: Me()
11091
+ navigation: Le()
11019
11092
  };
11020
11093
  }
11021
11094
  function pn() {
11022
11095
  return {
11023
11096
  itemsCount: a(pe).length,
11024
- passagesCount: a(ve).length
11097
+ passagesCount: a(ye).length
11025
11098
  };
11026
11099
  }
11027
11100
  function Jt() {
11028
- return Me();
11101
+ return Le();
11029
11102
  }
11030
11103
  function Xi() {
11031
11104
  return a(he);
11032
11105
  }
11033
- function Ft(M) {
11034
- return a(R)?.navigateToItem?.(M) === !0;
11106
+ function Ft(L) {
11107
+ return a(R)?.navigateToItem?.(L) === !0;
11035
11108
  }
11036
11109
  function Ji() {
11037
- const M = Me();
11038
- return M.canNext ? Ft(M.currentIndex + 1) : !1;
11110
+ const L = Le();
11111
+ return L.canNext ? Ft(L.currentIndex + 1) : !1;
11039
11112
  }
11040
11113
  function Zi() {
11041
- const M = Me();
11042
- return M.canPrevious ? Ft(M.currentIndex - 1) : !1;
11114
+ const L = Le();
11115
+ return L.canPrevious ? Ft(L.currentIndex - 1) : !1;
11043
11116
  }
11044
11117
  function Qi() {
11045
- const M = a(R)?.getSectionController?.() || null;
11046
- return M && !a(Se) && (V(Se, !0), B("section-controller-ready", {
11118
+ const L = a(R)?.getSectionController?.() || null;
11119
+ return L && !a(Se) && (V(Se, !0), B("section-controller-ready", {
11047
11120
  sectionId: r(),
11048
11121
  attemptId: s() || void 0,
11049
- controller: M
11050
- })), M;
11122
+ controller: L
11123
+ })), L;
11051
11124
  }
11052
- async function eo(M = 5e3) {
11053
- const Zt = await a(R)?.waitForSectionController?.(M);
11125
+ async function eo(L = 5e3) {
11126
+ const Zt = await a(R)?.waitForSectionController?.(L);
11054
11127
  return Zt && !a(Se) && (V(Se, !0), B("section-controller-ready", {
11055
11128
  sectionId: r(),
11056
11129
  attemptId: s() || void 0,
@@ -11058,8 +11131,8 @@ function Yi(n, e) {
11058
11131
  })), Zt || null;
11059
11132
  }
11060
11133
  ae(() => {
11061
- a(Le)?.ensureDefined?.().catch((M) => {
11062
- console.error("[section-player-layout-kernel] Failed to load item player component:", M);
11134
+ a(Me)?.ensureDefined?.().catch((L) => {
11135
+ console.error("[section-player-layout-kernel] Failed to load item player component:", L);
11063
11136
  });
11064
11137
  }), ae(() => {
11065
11138
  B("readiness-change", a(he)), a(he).interactionReady && !a(U) && (V(U, !0), B("interaction-ready", a(he))), a(he).allLoadingComplete && !a(j) && (V(j, !0), B("ready", a(he)));
@@ -11077,137 +11150,137 @@ function Yi(n, e) {
11077
11150
  get assessmentId() {
11078
11151
  return t();
11079
11152
  },
11080
- set assessmentId(M) {
11081
- t(M), h();
11153
+ set assessmentId(L) {
11154
+ t(L), h();
11082
11155
  },
11083
11156
  get runtime() {
11084
11157
  return i();
11085
11158
  },
11086
- set runtime(M = null) {
11087
- i(M), h();
11159
+ set runtime(L = null) {
11160
+ i(L), h();
11088
11161
  },
11089
11162
  get section() {
11090
11163
  return o();
11091
11164
  },
11092
- set section(M = null) {
11093
- o(M), h();
11165
+ set section(L = null) {
11166
+ o(L), h();
11094
11167
  },
11095
11168
  get sectionId() {
11096
11169
  return r();
11097
11170
  },
11098
- set sectionId(M = "") {
11099
- r(M), h();
11171
+ set sectionId(L = "") {
11172
+ r(L), h();
11100
11173
  },
11101
11174
  get attemptId() {
11102
11175
  return s();
11103
11176
  },
11104
- set attemptId(M = "") {
11105
- s(M), h();
11177
+ set attemptId(L = "") {
11178
+ s(L), h();
11106
11179
  },
11107
11180
  get playerType() {
11108
11181
  return l();
11109
11182
  },
11110
- set playerType(M) {
11111
- l(M), h();
11183
+ set playerType(L) {
11184
+ l(L), h();
11112
11185
  },
11113
11186
  get player() {
11114
11187
  return c();
11115
11188
  },
11116
- set player(M) {
11117
- c(M), h();
11189
+ set player(L) {
11190
+ c(L), h();
11118
11191
  },
11119
11192
  get lazyInit() {
11120
11193
  return d();
11121
11194
  },
11122
- set lazyInit(M) {
11123
- d(M), h();
11195
+ set lazyInit(L) {
11196
+ d(L), h();
11124
11197
  },
11125
11198
  get tools() {
11126
11199
  return u();
11127
11200
  },
11128
- set tools(M) {
11129
- u(M), h();
11201
+ set tools(L) {
11202
+ u(L), h();
11130
11203
  },
11131
11204
  get accessibility() {
11132
11205
  return f();
11133
11206
  },
11134
- set accessibility(M) {
11135
- f(M), h();
11207
+ set accessibility(L) {
11208
+ f(L), h();
11136
11209
  },
11137
11210
  get coordinator() {
11138
11211
  return g();
11139
11212
  },
11140
- set coordinator(M) {
11141
- g(M), h();
11213
+ set coordinator(L) {
11214
+ g(L), h();
11142
11215
  },
11143
11216
  get createSectionController() {
11144
11217
  return I();
11145
11218
  },
11146
- set createSectionController(M) {
11147
- I(M), h();
11219
+ set createSectionController(L) {
11220
+ I(L), h();
11148
11221
  },
11149
11222
  get isolation() {
11150
11223
  return m();
11151
11224
  },
11152
- set isolation(M) {
11153
- m(M), h();
11225
+ set isolation(L) {
11226
+ m(L), h();
11154
11227
  },
11155
11228
  get env() {
11156
11229
  return _();
11157
11230
  },
11158
- set env(M) {
11159
- _(M), h();
11231
+ set env(L) {
11232
+ _(L), h();
11160
11233
  },
11161
11234
  get iifeBundleHost() {
11162
11235
  return A();
11163
11236
  },
11164
- set iifeBundleHost(M) {
11165
- A(M), h();
11237
+ set iifeBundleHost(L) {
11238
+ A(L), h();
11166
11239
  },
11167
11240
  get showToolbar() {
11168
- return v();
11241
+ return y();
11169
11242
  },
11170
- set showToolbar(M = "false") {
11171
- v(M), h();
11243
+ set showToolbar(L = "false") {
11244
+ y(L), h();
11172
11245
  },
11173
11246
  get toolbarPosition() {
11174
11247
  return C();
11175
11248
  },
11176
- set toolbarPosition(M = "right") {
11177
- C(M), h();
11249
+ set toolbarPosition(L = "right") {
11250
+ C(L), h();
11178
11251
  },
11179
11252
  get enabledTools() {
11180
11253
  return O();
11181
11254
  },
11182
- set enabledTools(M = "") {
11183
- O(M), h();
11255
+ set enabledTools(L = "") {
11256
+ O(L), h();
11184
11257
  },
11185
11258
  get itemToolbarTools() {
11186
11259
  return D();
11187
11260
  },
11188
- set itemToolbarTools(M = "") {
11189
- D(M), h();
11261
+ set itemToolbarTools(L = "") {
11262
+ D(L), h();
11190
11263
  },
11191
11264
  get passageToolbarTools() {
11192
11265
  return T();
11193
11266
  },
11194
- set passageToolbarTools(M = "") {
11195
- T(M), h();
11267
+ set passageToolbarTools(L = "") {
11268
+ T(L), h();
11196
11269
  },
11197
11270
  get playerActionConfig() {
11198
11271
  return H();
11199
11272
  },
11200
- set playerActionConfig(M = {
11273
+ set playerActionConfig(L = {
11201
11274
  stateKey: "__sectionPlayerAppliedParams",
11202
11275
  includeSessionRefInState: !1
11203
11276
  }) {
11204
- H(M), h();
11277
+ H(L), h();
11205
11278
  },
11206
11279
  get policies() {
11207
11280
  return x();
11208
11281
  },
11209
- set policies(M = xr) {
11210
- x(M), h();
11282
+ set policies(L = xr) {
11283
+ x(L), h();
11211
11284
  }
11212
11285
  };
11213
11286
  return lt(
@@ -11229,7 +11302,7 @@ function Yi(n, e) {
11229
11302
  onRuntimeError: Te,
11230
11303
  onSessionChanged: Ae,
11231
11304
  onRuntimeOwned: Oe,
11232
- onRuntimeInherited: yt,
11305
+ onRuntimeInherited: vt,
11233
11306
  onToolkitReady: bt,
11234
11307
  get showToolbar() {
11235
11308
  return a(ne);
@@ -11243,7 +11316,7 @@ function Yi(n, e) {
11243
11316
  get cardRenderContext() {
11244
11317
  return a(K);
11245
11318
  },
11246
- children: (M, Zt) => {
11319
+ children: (L, Zt) => {
11247
11320
  var Si = fi(), no = gt(Si);
11248
11321
  Fn(
11249
11322
  no,
@@ -11252,8 +11325,8 @@ function Yi(n, e) {
11252
11325
  {
11253
11326
  get layoutModel() {
11254
11327
  return {
11255
- compositionModel: a(ye),
11256
- passages: a(ve),
11328
+ compositionModel: a(ve),
11329
+ passages: a(ye),
11257
11330
  items: a(pe),
11258
11331
  preloadedRenderables: a(le),
11259
11332
  preloadedRenderablesSignature: a(Y),
@@ -11268,10 +11341,10 @@ function Yi(n, e) {
11268
11341
  };
11269
11342
  },
11270
11343
  get compositionModel() {
11271
- return a(ye);
11344
+ return a(ve);
11272
11345
  },
11273
11346
  get passages() {
11274
- return a(ve);
11347
+ return a(ye);
11275
11348
  },
11276
11349
  get items() {
11277
11350
  return a(pe);
@@ -11305,11 +11378,11 @@ function Yi(n, e) {
11305
11378
  },
11306
11379
  onItemsPaneElementsLoaded: Z
11307
11380
  }
11308
- ), ge(M, Si);
11381
+ ), ge(L, Si);
11309
11382
  },
11310
11383
  $$slots: { default: !0 }
11311
11384
  }),
11312
- (M) => V(R, M, !0),
11385
+ (L) => V(R, L, !0),
11313
11386
  () => a(R)
11314
11387
  ), Ke(to);
11315
11388
  }
@@ -11376,7 +11449,7 @@ function aa(n, e) {
11376
11449
  const H = T.clientX - g, x = m(I + H * 0.1);
11377
11450
  u("resize-preview", { value: x, input: "pointer" });
11378
11451
  }
11379
- function v() {
11452
+ function y() {
11380
11453
  a(f) && (V(f, !1), u("resize-commit", { value: t(), input: "pointer" }));
11381
11454
  }
11382
11455
  function C(T) {
@@ -11399,8 +11472,8 @@ function aa(n, e) {
11399
11472
  }
11400
11473
  ae(() => {
11401
11474
  if (a(f))
11402
- return window.addEventListener("mousemove", A), window.addEventListener("mouseup", v), () => {
11403
- window.removeEventListener("mousemove", A), window.removeEventListener("mouseup", v);
11475
+ return window.addEventListener("mousemove", A), window.addEventListener("mouseup", y), () => {
11476
+ window.removeEventListener("mousemove", A), window.removeEventListener("mouseup", y);
11404
11477
  };
11405
11478
  });
11406
11479
  var O = {
@@ -11509,13 +11582,13 @@ const Ku = {
11509
11582
  function qu(n, e) {
11510
11583
  je(e, !0), tt(n, Ku);
11511
11584
  const t = 1100, i = 400, o = 2e3;
11512
- let r = p(e, "assessmentId", 7), s = p(e, "runtime", 7, null), l = p(e, "section", 7, null), c = p(e, "sectionId", 7, ""), d = p(e, "attemptId", 7, ""), u = p(e, "playerType", 7), f = p(e, "player", 7), g = p(e, "lazyInit", 7), I = p(e, "tools", 7), m = p(e, "accessibility", 7), _ = p(e, "coordinator", 7), A = p(e, "createSectionController", 7), v = p(e, "isolation", 7), C = p(e, "env", 7), O = p(e, "iifeBundleHost", 7), D = p(e, "showToolbar", 7, "false"), T = p(e, "toolbarPosition", 7, "right"), H = p(e, "enabledTools", 7, ""), x = p(e, "itemToolbarTools", 7, ""), B = p(e, "passageToolbarTools", 7, ""), W = p(e, "narrowLayoutBreakpoint", 7, void 0);
11585
+ let r = p(e, "assessmentId", 7), s = p(e, "runtime", 7, null), l = p(e, "section", 7, null), c = p(e, "sectionId", 7, ""), d = p(e, "attemptId", 7, ""), u = p(e, "playerType", 7), f = p(e, "player", 7), g = p(e, "lazyInit", 7), I = p(e, "tools", 7), m = p(e, "accessibility", 7), _ = p(e, "coordinator", 7), A = p(e, "createSectionController", 7), y = p(e, "isolation", 7), C = p(e, "env", 7), O = p(e, "iifeBundleHost", 7), D = p(e, "showToolbar", 7, "false"), T = p(e, "toolbarPosition", 7, "right"), H = p(e, "enabledTools", 7, ""), x = p(e, "itemToolbarTools", 7, ""), B = p(e, "passageToolbarTools", 7, ""), W = p(e, "narrowLayoutBreakpoint", 7, void 0);
11513
11586
  const J = /* @__PURE__ */ N(() => {
11514
11587
  const K = W() ?? t, ne = typeof K == "number" ? K : Number(K), he = Number.isFinite(ne) ? ne : t;
11515
11588
  return Math.max(i, Math.min(o, he));
11516
11589
  });
11517
11590
  let R = /* @__PURE__ */ $(50), E = /* @__PURE__ */ $(null), U = /* @__PURE__ */ $(null), j = /* @__PURE__ */ $(!1);
11518
- const G = Hn(), Se = /* @__PURE__ */ N(() => `pie-section-player-splitpane-${(c() || d() || "default").replace(/[^a-zA-Z0-9_-]/g, "-")}`), ye = /* @__PURE__ */ N(() => `${a(Se)}-passages`), ve = /* @__PURE__ */ N(() => `${a(Se)}-items`), pe = /* @__PURE__ */ N(() => `${Math.round(a(R))}% passages width`);
11591
+ const G = Hn(), Se = /* @__PURE__ */ N(() => `pie-section-player-splitpane-${(c() || d() || "default").replace(/[^a-zA-Z0-9_-]/g, "-")}`), ve = /* @__PURE__ */ N(() => `${a(Se)}-passages`), ye = /* @__PURE__ */ N(() => `${a(Se)}-items`), pe = /* @__PURE__ */ N(() => `${Math.round(a(R))}% passages width`);
11519
11592
  ae(() => {
11520
11593
  const K = a(J);
11521
11594
  if (typeof window > "u") return;
@@ -11534,7 +11607,7 @@ function qu(n, e) {
11534
11607
  const ne = K.detail, he = Number(ne?.value);
11535
11608
  Number.isNaN(he) || V(R, Math.max(20, Math.min(80, he)), !0);
11536
11609
  }
11537
- function L() {
11610
+ function M() {
11538
11611
  return a(U)?.getSnapshot?.() ?? null;
11539
11612
  }
11540
11613
  function ie() {
@@ -11543,7 +11616,7 @@ function qu(n, e) {
11543
11616
  function z() {
11544
11617
  return a(U)?.selectNavigation?.() ?? null;
11545
11618
  }
11546
- function Le() {
11619
+ function Me() {
11547
11620
  return a(U)?.selectReadiness?.() ?? null;
11548
11621
  }
11549
11622
  function F(K) {
@@ -11563,10 +11636,10 @@ function qu(n, e) {
11563
11636
  }
11564
11637
  Jo(() => Fu());
11565
11638
  var de = {
11566
- getSnapshot: L,
11639
+ getSnapshot: M,
11567
11640
  selectComposition: ie,
11568
11641
  selectNavigation: z,
11569
- selectReadiness: Le,
11642
+ selectReadiness: Me,
11570
11643
  navigateTo: F,
11571
11644
  navigateNext: be,
11572
11645
  navigatePrevious: ce,
@@ -11645,10 +11718,10 @@ function qu(n, e) {
11645
11718
  A(K), h();
11646
11719
  },
11647
11720
  get isolation() {
11648
- return v();
11721
+ return y();
11649
11722
  },
11650
11723
  set isolation(K) {
11651
- v(K), h();
11724
+ y(K), h();
11652
11725
  },
11653
11726
  get env() {
11654
11727
  return C();
@@ -11740,7 +11813,7 @@ function qu(n, e) {
11740
11813
  return A();
11741
11814
  },
11742
11815
  get isolation() {
11743
- return v();
11816
+ return y();
11744
11817
  },
11745
11818
  get env() {
11746
11819
  return C();
@@ -11785,9 +11858,9 @@ function qu(n, e) {
11785
11858
  const k = /* @__PURE__ */ N(() => he.layoutModel);
11786
11859
  var Z = ju(), X = Ce(Z);
11787
11860
  {
11788
- var Te = (yt) => {
11789
- var kt = Vu(), bt = gt(kt), Me = Ce(bt);
11790
- P(() => w(Me, "passages", a(k).passages)), P(() => w(Me, "elementsLoaded", a(k).paneElementsLoaded)), P(() => w(Me, "resolvedPlayerEnv", a(k).resolvedPlayerEnv)), P(() => w(Me, "resolvedPlayerAttributes", a(k).resolvedPlayerAttributes)), P(() => w(Me, "resolvedPlayerProps", a(k).resolvedPlayerProps)), P(() => w(Me, "playerStrategy", a(k).playerStrategy)), P(() => w(Me, "passageToolbarTools", B())), we(bt);
11861
+ var Te = (vt) => {
11862
+ var kt = Vu(), bt = gt(kt), Le = Ce(bt);
11863
+ P(() => w(Le, "passages", a(k).passages)), P(() => w(Le, "elementsLoaded", a(k).paneElementsLoaded)), P(() => w(Le, "resolvedPlayerEnv", a(k).resolvedPlayerEnv)), P(() => w(Le, "resolvedPlayerAttributes", a(k).resolvedPlayerAttributes)), P(() => w(Le, "resolvedPlayerProps", a(k).resolvedPlayerProps)), P(() => w(Le, "playerStrategy", a(k).playerStrategy)), P(() => w(Le, "passageToolbarTools", B())), we(bt);
11791
11864
  var ii = Re(bt, 2);
11792
11865
  {
11793
11866
  var pn = (Jt) => {
@@ -11797,7 +11870,7 @@ function qu(n, e) {
11797
11870
  },
11798
11871
  ariaLabel: "Resize passages and items panels",
11799
11872
  get ariaControls() {
11800
- return a(ye);
11873
+ return a(ve);
11801
11874
  },
11802
11875
  get ariaValueText() {
11803
11876
  return a(pe);
@@ -11812,17 +11885,17 @@ function qu(n, e) {
11812
11885
  a(j) || Jt(pn);
11813
11886
  });
11814
11887
  }
11815
- P(() => It(bt, "id", a(ye))), ge(yt, kt);
11888
+ P(() => It(bt, "id", a(ve))), ge(vt, kt);
11816
11889
  };
11817
- at(X, (yt) => {
11818
- a(k).passages.length > 0 && yt(Te);
11890
+ at(X, (vt) => {
11891
+ a(k).passages.length > 0 && vt(Te);
11819
11892
  });
11820
11893
  }
11821
11894
  var Ae = Re(X, 2), Oe = Ce(Ae);
11822
- P(() => w(Oe, "items", a(k).items)), P(() => w(Oe, "compositionModel", a(k).compositionModel)), P(() => w(Oe, "resolvedPlayerEnv", a(k).resolvedPlayerEnv)), P(() => w(Oe, "resolvedPlayerAttributes", a(k).resolvedPlayerAttributes)), P(() => w(Oe, "resolvedPlayerProps", a(k).resolvedPlayerProps)), P(() => w(Oe, "playerStrategy", a(k).playerStrategy)), P(() => w(Oe, "itemToolbarTools", x())), P(() => w(Oe, "iifeBundleHost", O())), P(() => w(Oe, "preloadedRenderables", a(k).preloadedRenderables)), P(() => w(Oe, "preloadedRenderablesSignature", a(k).preloadedRenderablesSignature)), w(Oe, "preloadComponentTag", "pie-section-player-splitpane"), we(Ae), we(Z), lt(Z, (yt) => V(E, yt), () => a(E)), P(() => {
11823
- wt(Z, 1, `pie-section-player-split-content ${a(k).passages.length === 0 ? "pie-section-player-split-content--no-passages" : ""} ${a(j) ? "pie-section-player-split-content--stacked" : ""}`, "svelte-1psecfm"), Wl(Z, a(k).passages.length === 0 ? "grid-template-columns: 1fr" : a(j) ? "" : `grid-template-columns: ${a(R)}% 0.5rem ${100 - a(R) - 0.5}%`), It(Ae, "id", a(ve));
11824
- }), ze("elements-loaded-change", Oe, function(...yt) {
11825
- a(k).onItemsPaneElementsLoaded?.apply(this, yt);
11895
+ P(() => w(Oe, "items", a(k).items)), P(() => w(Oe, "compositionModel", a(k).compositionModel)), P(() => w(Oe, "resolvedPlayerEnv", a(k).resolvedPlayerEnv)), P(() => w(Oe, "resolvedPlayerAttributes", a(k).resolvedPlayerAttributes)), P(() => w(Oe, "resolvedPlayerProps", a(k).resolvedPlayerProps)), P(() => w(Oe, "playerStrategy", a(k).playerStrategy)), P(() => w(Oe, "itemToolbarTools", x())), P(() => w(Oe, "iifeBundleHost", O())), P(() => w(Oe, "preloadedRenderables", a(k).preloadedRenderables)), P(() => w(Oe, "preloadedRenderablesSignature", a(k).preloadedRenderablesSignature)), w(Oe, "preloadComponentTag", "pie-section-player-splitpane"), we(Ae), we(Z), lt(Z, (vt) => V(E, vt), () => a(E)), P(() => {
11896
+ wt(Z, 1, `pie-section-player-split-content ${a(k).passages.length === 0 ? "pie-section-player-split-content--no-passages" : ""} ${a(j) ? "pie-section-player-split-content--stacked" : ""}`, "svelte-1psecfm"), Wl(Z, a(k).passages.length === 0 ? "grid-template-columns: 1fr" : a(j) ? "" : `grid-template-columns: ${a(R)}% 0.5rem ${100 - a(R) - 0.5}%`), It(Ae, "id", a(ye));
11897
+ }), ze("elements-loaded-change", Oe, function(...vt) {
11898
+ a(k).onItemsPaneElementsLoaded?.apply(this, vt);
11826
11899
  }), ge(ne, Z);
11827
11900
  }
11828
11901
  }
@@ -11882,7 +11955,7 @@ const $u = {
11882
11955
  function Gu(n, e) {
11883
11956
  je(e, !0), tt(n, $u);
11884
11957
  const t = 1100, i = 400, o = 2e3;
11885
- let r = p(e, "assessmentId", 7), s = p(e, "runtime", 7, null), l = p(e, "section", 7, null), c = p(e, "sectionId", 7, ""), d = p(e, "attemptId", 7, ""), u = p(e, "playerType", 7), f = p(e, "player", 7), g = p(e, "lazyInit", 7), I = p(e, "tools", 7), m = p(e, "accessibility", 7), _ = p(e, "coordinator", 7), A = p(e, "createSectionController", 7), v = p(e, "isolation", 7), C = p(e, "env", 7), O = p(e, "iifeBundleHost", 7), D = p(e, "showToolbar", 7, "false"), T = p(e, "toolbarPosition", 7, "right"), H = p(e, "enabledTools", 7, ""), x = p(e, "itemToolbarTools", 7, ""), B = p(e, "passageToolbarTools", 7, ""), W = p(e, "narrowLayoutBreakpoint", 7, void 0);
11958
+ let r = p(e, "assessmentId", 7), s = p(e, "runtime", 7, null), l = p(e, "section", 7, null), c = p(e, "sectionId", 7, ""), d = p(e, "attemptId", 7, ""), u = p(e, "playerType", 7), f = p(e, "player", 7), g = p(e, "lazyInit", 7), I = p(e, "tools", 7), m = p(e, "accessibility", 7), _ = p(e, "coordinator", 7), A = p(e, "createSectionController", 7), y = p(e, "isolation", 7), C = p(e, "env", 7), O = p(e, "iifeBundleHost", 7), D = p(e, "showToolbar", 7, "false"), T = p(e, "toolbarPosition", 7, "right"), H = p(e, "enabledTools", 7, ""), x = p(e, "itemToolbarTools", 7, ""), B = p(e, "passageToolbarTools", 7, ""), W = p(e, "narrowLayoutBreakpoint", 7, void 0);
11886
11959
  const J = Hn();
11887
11960
  let R = /* @__PURE__ */ $(null), E = /* @__PURE__ */ $(!1);
11888
11961
  const U = /* @__PURE__ */ N(() => {
@@ -11906,10 +11979,10 @@ function Gu(n, e) {
11906
11979
  function Se() {
11907
11980
  return a(R)?.getSnapshot?.() ?? null;
11908
11981
  }
11909
- function ye() {
11982
+ function ve() {
11910
11983
  return a(R)?.selectComposition?.() ?? null;
11911
11984
  }
11912
- function ve() {
11985
+ function ye() {
11913
11986
  return a(R)?.selectNavigation?.() ?? null;
11914
11987
  }
11915
11988
  function pe() {
@@ -11921,7 +11994,7 @@ function Gu(n, e) {
11921
11994
  function Y() {
11922
11995
  return a(R)?.navigateNext?.() === !0;
11923
11996
  }
11924
- function L() {
11997
+ function M() {
11925
11998
  return a(R)?.navigatePrevious?.() === !0;
11926
11999
  }
11927
12000
  function ie() {
@@ -11930,14 +12003,14 @@ function Gu(n, e) {
11930
12003
  async function z(F = 5e3) {
11931
12004
  return await a(R)?.waitForSectionController?.(F) || null;
11932
12005
  }
11933
- var Le = {
12006
+ var Me = {
11934
12007
  getSnapshot: Se,
11935
- selectComposition: ye,
11936
- selectNavigation: ve,
12008
+ selectComposition: ve,
12009
+ selectNavigation: ye,
11937
12010
  selectReadiness: pe,
11938
12011
  navigateTo: le,
11939
12012
  navigateNext: Y,
11940
- navigatePrevious: L,
12013
+ navigatePrevious: M,
11941
12014
  getSectionController: ie,
11942
12015
  waitForSectionController: z,
11943
12016
  get assessmentId() {
@@ -12013,10 +12086,10 @@ function Gu(n, e) {
12013
12086
  A(F), h();
12014
12087
  },
12015
12088
  get isolation() {
12016
- return v();
12089
+ return y();
12017
12090
  },
12018
12091
  set isolation(F) {
12019
- v(F), h();
12092
+ y(F), h();
12020
12093
  },
12021
12094
  get env() {
12022
12095
  return C();
@@ -12106,7 +12179,7 @@ function Gu(n, e) {
12106
12179
  return A();
12107
12180
  },
12108
12181
  get isolation() {
12109
- return v();
12182
+ return y();
12110
12183
  },
12111
12184
  get env() {
12112
12185
  return C();
@@ -12167,7 +12240,7 @@ function Gu(n, e) {
12167
12240
  }),
12168
12241
  (F) => V(R, F, !0),
12169
12242
  () => a(R)
12170
- ), Ke(Le);
12243
+ ), Ke(Me);
12171
12244
  }
12172
12245
  customElements.define("pie-section-player-vertical", $e(
12173
12246
  Gu,
@@ -12214,7 +12287,7 @@ const Ju = {
12214
12287
  };
12215
12288
  function Zu(n, e) {
12216
12289
  je(e, !0), tt(n, Ju);
12217
- let t = p(e, "assessmentId", 7), i = p(e, "runtime", 7, null), o = p(e, "section", 7, null), r = p(e, "sectionId", 7, ""), s = p(e, "attemptId", 7, ""), l = p(e, "playerType", 7), c = p(e, "player", 7), d = p(e, "lazyInit", 7), u = p(e, "tools", 7), f = p(e, "accessibility", 7), g = p(e, "coordinator", 7), I = p(e, "createSectionController", 7), m = p(e, "isolation", 7), _ = p(e, "env", 7), A = p(e, "iifeBundleHost", 7), v = p(e, "showToolbar", 7, "false"), C = p(e, "toolbarPosition", 7, "right"), O = p(e, "enabledTools", 7, ""), D = p(e, "itemToolbarTools", 7, ""), T = p(e, "passageToolbarTools", 7, ""), H = p(e, "policies", 7);
12290
+ let t = p(e, "assessmentId", 7), i = p(e, "runtime", 7, null), o = p(e, "section", 7, null), r = p(e, "sectionId", 7, ""), s = p(e, "attemptId", 7, ""), l = p(e, "playerType", 7), c = p(e, "player", 7), d = p(e, "lazyInit", 7), u = p(e, "tools", 7), f = p(e, "accessibility", 7), g = p(e, "coordinator", 7), I = p(e, "createSectionController", 7), m = p(e, "isolation", 7), _ = p(e, "env", 7), A = p(e, "iifeBundleHost", 7), y = p(e, "showToolbar", 7, "false"), C = p(e, "toolbarPosition", 7, "right"), O = p(e, "enabledTools", 7, ""), D = p(e, "itemToolbarTools", 7, ""), T = p(e, "passageToolbarTools", 7, ""), H = p(e, "policies", 7);
12218
12291
  const x = Hn();
12219
12292
  let B = /* @__PURE__ */ $(null), W = /* @__PURE__ */ $(an({
12220
12293
  readiness: {
@@ -12242,8 +12315,8 @@ function Zu(n, e) {
12242
12315
  function U() {
12243
12316
  return a(W).readiness;
12244
12317
  }
12245
- function j(L) {
12246
- return a(B)?.navigateTo?.(L) === !0;
12318
+ function j(M) {
12319
+ return a(B)?.navigateTo?.(M) === !0;
12247
12320
  }
12248
12321
  function G() {
12249
12322
  return a(B)?.navigateNext?.() === !0;
@@ -12251,14 +12324,14 @@ function Zu(n, e) {
12251
12324
  function Se() {
12252
12325
  return a(B)?.navigatePrevious?.() === !0;
12253
12326
  }
12254
- function ye() {
12327
+ function ve() {
12255
12328
  return a(B)?.getSectionController?.() || null;
12256
12329
  }
12257
- async function ve(L = 5e3) {
12258
- return await a(B)?.waitForSectionController?.(L) || null;
12330
+ async function ye(M = 5e3) {
12331
+ return await a(B)?.waitForSectionController?.(M) || null;
12259
12332
  }
12260
- function pe(L) {
12261
- const ie = L;
12333
+ function pe(M) {
12334
+ const ie = M;
12262
12335
  x(ie.type, ie.detail);
12263
12336
  }
12264
12337
  function le() {
@@ -12279,133 +12352,133 @@ function Zu(n, e) {
12279
12352
  navigateTo: j,
12280
12353
  navigateNext: G,
12281
12354
  navigatePrevious: Se,
12282
- getSectionController: ye,
12283
- waitForSectionController: ve,
12355
+ getSectionController: ve,
12356
+ waitForSectionController: ye,
12284
12357
  get assessmentId() {
12285
12358
  return t();
12286
12359
  },
12287
- set assessmentId(L) {
12288
- t(L), h();
12360
+ set assessmentId(M) {
12361
+ t(M), h();
12289
12362
  },
12290
12363
  get runtime() {
12291
12364
  return i();
12292
12365
  },
12293
- set runtime(L = null) {
12294
- i(L), h();
12366
+ set runtime(M = null) {
12367
+ i(M), h();
12295
12368
  },
12296
12369
  get section() {
12297
12370
  return o();
12298
12371
  },
12299
- set section(L = null) {
12300
- o(L), h();
12372
+ set section(M = null) {
12373
+ o(M), h();
12301
12374
  },
12302
12375
  get sectionId() {
12303
12376
  return r();
12304
12377
  },
12305
- set sectionId(L = "") {
12306
- r(L), h();
12378
+ set sectionId(M = "") {
12379
+ r(M), h();
12307
12380
  },
12308
12381
  get attemptId() {
12309
12382
  return s();
12310
12383
  },
12311
- set attemptId(L = "") {
12312
- s(L), h();
12384
+ set attemptId(M = "") {
12385
+ s(M), h();
12313
12386
  },
12314
12387
  get playerType() {
12315
12388
  return l();
12316
12389
  },
12317
- set playerType(L) {
12318
- l(L), h();
12390
+ set playerType(M) {
12391
+ l(M), h();
12319
12392
  },
12320
12393
  get player() {
12321
12394
  return c();
12322
12395
  },
12323
- set player(L) {
12324
- c(L), h();
12396
+ set player(M) {
12397
+ c(M), h();
12325
12398
  },
12326
12399
  get lazyInit() {
12327
12400
  return d();
12328
12401
  },
12329
- set lazyInit(L) {
12330
- d(L), h();
12402
+ set lazyInit(M) {
12403
+ d(M), h();
12331
12404
  },
12332
12405
  get tools() {
12333
12406
  return u();
12334
12407
  },
12335
- set tools(L) {
12336
- u(L), h();
12408
+ set tools(M) {
12409
+ u(M), h();
12337
12410
  },
12338
12411
  get accessibility() {
12339
12412
  return f();
12340
12413
  },
12341
- set accessibility(L) {
12342
- f(L), h();
12414
+ set accessibility(M) {
12415
+ f(M), h();
12343
12416
  },
12344
12417
  get coordinator() {
12345
12418
  return g();
12346
12419
  },
12347
- set coordinator(L) {
12348
- g(L), h();
12420
+ set coordinator(M) {
12421
+ g(M), h();
12349
12422
  },
12350
12423
  get createSectionController() {
12351
12424
  return I();
12352
12425
  },
12353
- set createSectionController(L) {
12354
- I(L), h();
12426
+ set createSectionController(M) {
12427
+ I(M), h();
12355
12428
  },
12356
12429
  get isolation() {
12357
12430
  return m();
12358
12431
  },
12359
- set isolation(L) {
12360
- m(L), h();
12432
+ set isolation(M) {
12433
+ m(M), h();
12361
12434
  },
12362
12435
  get env() {
12363
12436
  return _();
12364
12437
  },
12365
- set env(L) {
12366
- _(L), h();
12438
+ set env(M) {
12439
+ _(M), h();
12367
12440
  },
12368
12441
  get iifeBundleHost() {
12369
12442
  return A();
12370
12443
  },
12371
- set iifeBundleHost(L) {
12372
- A(L), h();
12444
+ set iifeBundleHost(M) {
12445
+ A(M), h();
12373
12446
  },
12374
12447
  get showToolbar() {
12375
- return v();
12448
+ return y();
12376
12449
  },
12377
- set showToolbar(L = "false") {
12378
- v(L), h();
12450
+ set showToolbar(M = "false") {
12451
+ y(M), h();
12379
12452
  },
12380
12453
  get toolbarPosition() {
12381
12454
  return C();
12382
12455
  },
12383
- set toolbarPosition(L = "right") {
12384
- C(L), h();
12456
+ set toolbarPosition(M = "right") {
12457
+ C(M), h();
12385
12458
  },
12386
12459
  get enabledTools() {
12387
12460
  return O();
12388
12461
  },
12389
- set enabledTools(L = "") {
12390
- O(L), h();
12462
+ set enabledTools(M = "") {
12463
+ O(M), h();
12391
12464
  },
12392
12465
  get itemToolbarTools() {
12393
12466
  return D();
12394
12467
  },
12395
- set itemToolbarTools(L = "") {
12396
- D(L), h();
12468
+ set itemToolbarTools(M = "") {
12469
+ D(M), h();
12397
12470
  },
12398
12471
  get passageToolbarTools() {
12399
12472
  return T();
12400
12473
  },
12401
- set passageToolbarTools(L = "") {
12402
- T(L), h();
12474
+ set passageToolbarTools(M = "") {
12475
+ T(M), h();
12403
12476
  },
12404
12477
  get policies() {
12405
12478
  return H();
12406
12479
  },
12407
- set policies(L) {
12408
- H(L), h();
12480
+ set policies(M) {
12481
+ H(M), h();
12409
12482
  }
12410
12483
  };
12411
12484
  return lt(
@@ -12456,7 +12529,7 @@ function Zu(n, e) {
12456
12529
  return A();
12457
12530
  },
12458
12531
  get showToolbar() {
12459
- return v();
12532
+ return y();
12460
12533
  },
12461
12534
  get toolbarPosition() {
12462
12535
  return C();
@@ -12474,9 +12547,9 @@ function Zu(n, e) {
12474
12547
  return H();
12475
12548
  },
12476
12549
  $$events: {
12477
- "readiness-change": (L) => {
12478
- const ie = L.detail;
12479
- V(W, { ...a(W), readiness: ie }, !0), pe(L);
12550
+ "readiness-change": (M) => {
12551
+ const ie = M.detail;
12552
+ V(W, { ...a(W), readiness: ie }, !0), pe(M);
12480
12553
  },
12481
12554
  "interaction-ready": pe,
12482
12555
  ready: pe,
@@ -12485,40 +12558,40 @@ function Zu(n, e) {
12485
12558
  "runtime-inherited": pe,
12486
12559
  "section-controller-ready": pe,
12487
12560
  "session-changed": pe,
12488
- "composition-changed": (L) => {
12489
- const ie = L.detail, z = ie?.composition?.items || [], Le = ie?.composition?.passages || [];
12561
+ "composition-changed": (M) => {
12562
+ const ie = M.detail, z = ie?.composition?.items || [], Me = ie?.composition?.passages || [];
12490
12563
  V(
12491
12564
  W,
12492
12565
  {
12493
12566
  ...a(W),
12494
- composition: { itemsCount: z.length, passagesCount: Le.length }
12567
+ composition: { itemsCount: z.length, passagesCount: Me.length }
12495
12568
  },
12496
12569
  !0
12497
- ), le(), pe(L);
12570
+ ), le(), pe(M);
12498
12571
  }
12499
12572
  },
12500
12573
  children: Fo,
12501
12574
  $$slots: {
12502
- default: (L, ie) => {
12503
- const z = /* @__PURE__ */ N(() => ie.items), Le = /* @__PURE__ */ N(() => ie.passages), F = /* @__PURE__ */ N(() => ie.compositionModel), be = /* @__PURE__ */ N(() => ie.resolvedPlayerEnv), ce = /* @__PURE__ */ N(() => ie.resolvedPlayerAttributes), qe = /* @__PURE__ */ N(() => ie.resolvedPlayerProps), Ge = /* @__PURE__ */ N(() => ie.playerStrategy), de = /* @__PURE__ */ N(() => ie.preloadedRenderables), K = /* @__PURE__ */ N(() => ie.preloadedRenderablesSignature), ne = /* @__PURE__ */ N(() => ie.onItemsPaneElementsLoaded);
12575
+ default: (M, ie) => {
12576
+ const z = /* @__PURE__ */ N(() => ie.items), Me = /* @__PURE__ */ N(() => ie.passages), F = /* @__PURE__ */ N(() => ie.compositionModel), be = /* @__PURE__ */ N(() => ie.resolvedPlayerEnv), ce = /* @__PURE__ */ N(() => ie.resolvedPlayerAttributes), qe = /* @__PURE__ */ N(() => ie.resolvedPlayerProps), Ge = /* @__PURE__ */ N(() => ie.playerStrategy), de = /* @__PURE__ */ N(() => ie.preloadedRenderables), K = /* @__PURE__ */ N(() => ie.preloadedRenderablesSignature), ne = /* @__PURE__ */ N(() => ie.onItemsPaneElementsLoaded);
12504
12577
  var he = Xu(), k = Ce(he);
12505
12578
  {
12506
12579
  var Z = (Te) => {
12507
12580
  var Ae = Yu();
12508
- P(() => w(Ae, "passages", a(Le))), P(() => w(Ae, "elementsLoaded", a(W).readiness.allLoadingComplete)), P(() => w(Ae, "resolvedPlayerEnv", a(be))), P(() => w(Ae, "resolvedPlayerAttributes", a(ce))), P(() => w(Ae, "resolvedPlayerProps", a(qe))), P(() => w(Ae, "playerStrategy", a(Ge))), P(() => w(Ae, "passageToolbarTools", T())), ge(Te, Ae);
12581
+ P(() => w(Ae, "passages", a(Me))), P(() => w(Ae, "elementsLoaded", a(W).readiness.allLoadingComplete)), P(() => w(Ae, "resolvedPlayerEnv", a(be))), P(() => w(Ae, "resolvedPlayerAttributes", a(ce))), P(() => w(Ae, "resolvedPlayerProps", a(qe))), P(() => w(Ae, "playerStrategy", a(Ge))), P(() => w(Ae, "passageToolbarTools", T())), ge(Te, Ae);
12509
12582
  };
12510
12583
  at(k, (Te) => {
12511
- a(Le).length > 0 && Te(Z);
12584
+ a(Me).length > 0 && Te(Z);
12512
12585
  });
12513
12586
  }
12514
12587
  var X = Re(k, 2);
12515
12588
  P(() => w(X, "items", a(z))), P(() => w(X, "compositionModel", a(F))), P(() => w(X, "resolvedPlayerEnv", a(be))), P(() => w(X, "resolvedPlayerAttributes", a(ce))), P(() => w(X, "resolvedPlayerProps", a(qe))), P(() => w(X, "playerStrategy", a(Ge))), P(() => w(X, "itemToolbarTools", D())), P(() => w(X, "iifeBundleHost", A())), P(() => w(X, "preloadedRenderables", a(de))), P(() => w(X, "preloadedRenderablesSignature", a(K))), w(X, "preloadComponentTag", "pie-section-player-kernel-host"), we(he), ze("elements-loaded-change", X, function(...Te) {
12516
12589
  a(ne)?.apply(this, Te);
12517
- }), ge(L, he);
12590
+ }), ge(M, he);
12518
12591
  }
12519
12592
  }
12520
12593
  }),
12521
- (L) => V(B, L, !0),
12594
+ (M) => V(B, M, !0),
12522
12595
  () => a(B)
12523
12596
  ), Ke(Y);
12524
12597
  }