@pie-players/pie-section-player 0.3.21 → 0.3.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,13 @@
1
1
  import { t as I } from "./defineProperty-CyepwRr5.js";
2
- import { a as Sa, c as zo, d as Oi, f as Li, g as Do, h as Bo, i as wa, l as Tr, m as Ta, n as _a, p as Ca, s as ka, u as Pa } from "./player-preload-DHibXasK.js";
2
+ import { a as Sa, c as Do, d as Oi, f as Li, g as Bo, h as Fo, i as wa, l as Tr, m as Ta, n as _a, p as Ca, s as ka, u as Pa } from "./player-preload-DHibXasK.js";
3
3
  import "@pie-players/pie-toolbars/components/item-toolbar-element";
4
4
  import "@pie-players/pie-toolbars/components/section-toolbar-element";
5
5
  if (typeof window < "u") {
6
- var eo, to;
7
- ((eo = (to = window).__svelte ?? (to.__svelte = {})).v ?? (eo.v = /* @__PURE__ */ new Set())).add("5");
6
+ var to, no;
7
+ ((to = (no = window).__svelte ?? (no.__svelte = {})).v ?? (to.v = /* @__PURE__ */ new Set())).add("5");
8
8
  }
9
9
  var Fn = {}, Ve = Symbol(), pf = Symbol("filename");
10
- var Ea = "http://www.w3.org/2000/svg", _r = Array.isArray, xa = Array.prototype.indexOf, jn = Array.prototype.includes, Ni = Array.from, _i = Object.keys, Ci = Object.defineProperty, vn = Object.getOwnPropertyDescriptor, Fo = Object.getOwnPropertyDescriptors, Aa = Object.prototype, Ra = Array.prototype, Cr = Object.getPrototypeOf, no = Object.isExtensible, Ma = () => {
10
+ var Ea = "http://www.w3.org/2000/svg", _r = Array.isArray, xa = Array.prototype.indexOf, Hn = Array.prototype.includes, Ni = Array.from, _i = Object.keys, Ci = Object.defineProperty, vn = Object.getOwnPropertyDescriptor, Ho = Object.getOwnPropertyDescriptors, Aa = Object.prototype, Ra = Array.prototype, Cr = Object.getPrototypeOf, io = Object.isExtensible, Ma = () => {
11
11
  };
12
12
  function Oa(e) {
13
13
  for (var t = 0; t < e.length; t++) e[t]();
@@ -22,7 +22,7 @@ function jo() {
22
22
  reject: t
23
23
  };
24
24
  }
25
- var mf = 1 << 24, bt = 1024, Dt = 2048, xn = 4096, kr = 8192, La = 16384, Pr = 32768, io = 1 << 25, zi = 65536, gf = 1 << 17, vf = 1 << 18, $n = 1 << 19, Na = 1 << 20, Qn = 1 << 25, li = 65536, ro = 1 << 21, za = 1 << 22, ki = 1 << 23, yn = Symbol("$state"), Ho = Symbol("legacy props"), Da = Symbol(""), Ba = Symbol("proxy path"), $t = new class extends Error {
25
+ var mf = 1 << 24, bt = 1024, Dt = 2048, xn = 4096, kr = 8192, La = 16384, Pr = 32768, ro = 1 << 25, zi = 65536, gf = 1 << 17, vf = 1 << 18, $n = 1 << 19, Na = 1 << 20, Qn = 1 << 25, li = 65536, oo = 1 << 21, za = 1 << 22, ki = 1 << 23, yn = Symbol("$state"), Vo = Symbol("legacy props"), Da = Symbol(""), Ba = Symbol("proxy path"), $t = new class extends Error {
26
26
  constructor(...t) {
27
27
  super(...t), I(this, "name", "StaleReactionError"), I(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
28
28
  }
@@ -33,19 +33,19 @@ function Er() {
33
33
  function xr(e) {
34
34
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
35
35
  }
36
- function ja() {
36
+ function Ha() {
37
37
  throw new Error("https://svelte.dev/e/async_derived_orphan");
38
38
  }
39
- function Ha(e, t, n) {
39
+ function ja(e, t, n) {
40
40
  throw new Error("https://svelte.dev/e/each_key_duplicate");
41
41
  }
42
42
  function Va(e) {
43
43
  throw new Error("https://svelte.dev/e/effect_in_teardown");
44
44
  }
45
- function Ka() {
45
+ function Wa() {
46
46
  throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
47
47
  }
48
- function Wa(e) {
48
+ function Ka(e) {
49
49
  throw new Error("https://svelte.dev/e/effect_orphan");
50
50
  }
51
51
  function $a() {
@@ -80,13 +80,13 @@ function ct(e) {
80
80
  ie = e;
81
81
  }
82
82
  var de;
83
- function We(e) {
83
+ function Ke(e) {
84
84
  if (e === null)
85
85
  throw Di(), Fn;
86
86
  return de = e;
87
87
  }
88
88
  function Cn() {
89
- return We(/* @__PURE__ */ Bt(de));
89
+ return Ke(/* @__PURE__ */ Bt(de));
90
90
  }
91
91
  function Ae(e) {
92
92
  if (ie) {
@@ -95,7 +95,7 @@ function Ae(e) {
95
95
  de = e;
96
96
  }
97
97
  }
98
- function Vo(e = 1) {
98
+ function Wo(e = 1) {
99
99
  if (ie) {
100
100
  for (var t = e, n = de; t--; ) n = /* @__PURE__ */ Bt(n);
101
101
  de = n;
@@ -119,24 +119,24 @@ function Ko(e) {
119
119
  throw Di(), Fn;
120
120
  return e.data;
121
121
  }
122
- function Wo(e) {
122
+ function $o(e) {
123
123
  return e === this.v;
124
124
  }
125
- function $o(e, t) {
125
+ function qo(e, t) {
126
126
  return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
127
127
  }
128
- function qo(e) {
129
- return !$o(e, this.v);
128
+ function Uo(e) {
129
+ return !qo(e, this.v);
130
130
  }
131
131
  var an = !1, ci = !1;
132
- function oo(e, t) {
132
+ function so(e, t) {
133
133
  return e.label = t, Qa(e.v, t), e;
134
134
  }
135
135
  function Qa(e, t) {
136
136
  return e?.[Ba]?.(t), e;
137
137
  }
138
138
  var Oe = null;
139
- function Hn(e) {
139
+ function jn(e) {
140
140
  Oe = e;
141
141
  }
142
142
  function Ge(e, t = !1, n) {
@@ -159,7 +159,7 @@ function Ye(e) {
159
159
  var t = Oe, n = t.e;
160
160
  if (n !== null) {
161
161
  t.e = null;
162
- for (var i of n) bs(i);
162
+ for (var i of n) Is(i);
163
163
  }
164
164
  return e !== void 0 && (t.x = e), t.i = !0, Oe = t.p, e ?? {};
165
165
  }
@@ -167,7 +167,7 @@ function di() {
167
167
  return !ci || Oe !== null && Oe.l === null;
168
168
  }
169
169
  var pn = [];
170
- function Uo() {
170
+ function Go() {
171
171
  var e = pn;
172
172
  pn = [], Oa(e);
173
173
  }
@@ -175,15 +175,15 @@ function ln(e) {
175
175
  if (pn.length === 0 && !ei) {
176
176
  var t = pn;
177
177
  queueMicrotask(() => {
178
- t === pn && Uo();
178
+ t === pn && Go();
179
179
  });
180
180
  }
181
181
  pn.push(e);
182
182
  }
183
183
  function el() {
184
- for (; pn.length > 0; ) Uo();
184
+ for (; pn.length > 0; ) Go();
185
185
  }
186
- function Go(e) {
186
+ function Yo(e) {
187
187
  var t = oe;
188
188
  if (t === null)
189
189
  return ae.f |= ki, e;
@@ -213,13 +213,13 @@ function De(e, t) {
213
213
  function Ar(e) {
214
214
  e.f & 512 || e.deps === null ? De(e, bt) : De(e, xn);
215
215
  }
216
- function Yo(e) {
216
+ function Xo(e) {
217
217
  if (e !== null)
218
218
  for (const t of e)
219
- !(t.f & 2) || !(t.f & 65536) || (t.f ^= li, Yo(t.deps));
219
+ !(t.f & 2) || !(t.f & 65536) || (t.f ^= li, Xo(t.deps));
220
220
  }
221
- function Xo(e, t, n) {
222
- e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), Yo(e.deps), De(e, bt);
221
+ function Jo(e, t, n) {
222
+ e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), Xo(e.deps), De(e, bt);
223
223
  }
224
224
  var nl = !1, hi = !1;
225
225
  function il(e) {
@@ -230,14 +230,14 @@ function il(e) {
230
230
  hi = t;
231
231
  }
232
232
  }
233
- function Jo(e, t) {
233
+ function Zo(e, t) {
234
234
  if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
235
235
  }
236
236
  function Rr(e, t) {
237
- Jo(e, t), t.add(e);
237
+ Zo(e, t), t.add(e);
238
238
  }
239
239
  function se(e, t, n) {
240
- Jo(e, t), t.set(e, n);
240
+ Zo(e, t), t.set(e, n);
241
241
  }
242
242
  function ke(e, t, n) {
243
243
  if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
@@ -249,8 +249,8 @@ function S(e, t) {
249
249
  function ne(e, t, n) {
250
250
  return e.set(ke(e, t), n), n;
251
251
  }
252
- var Zo, Ut = /* @__PURE__ */ new Set(), be = null, so = null, rt = null, ar = null, ei = !1, Xi = !1, Vn = null, Ei = null, Qo = 0;
253
- var rl = 1, xi = /* @__PURE__ */ new WeakMap(), pi = /* @__PURE__ */ new WeakMap(), Ln = /* @__PURE__ */ new WeakMap(), Nn = /* @__PURE__ */ new WeakMap(), Ii = /* @__PURE__ */ new WeakMap(), Ct = /* @__PURE__ */ new WeakMap(), ii = /* @__PURE__ */ new WeakMap(), bn = /* @__PURE__ */ new WeakMap(), hn = /* @__PURE__ */ new WeakMap(), mi = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakSet(), An = class es {
252
+ var Qo, Ut = /* @__PURE__ */ new Set(), be = null, ao = null, rt = null, ar = null, ei = !1, Xi = !1, Vn = null, Ei = null, es = 0;
253
+ var rl = 1, xi = /* @__PURE__ */ new WeakMap(), pi = /* @__PURE__ */ new WeakMap(), Ln = /* @__PURE__ */ new WeakMap(), Nn = /* @__PURE__ */ new WeakMap(), Ii = /* @__PURE__ */ new WeakMap(), Ct = /* @__PURE__ */ new WeakMap(), ii = /* @__PURE__ */ new WeakMap(), bn = /* @__PURE__ */ new WeakMap(), hn = /* @__PURE__ */ new WeakMap(), mi = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakSet(), An = class ts {
254
254
  constructor() {
255
255
  Rr(this, Nt), I(this, "id", rl++), I(this, "current", /* @__PURE__ */ new Map()), I(this, "previous", /* @__PURE__ */ new Map()), se(this, xi, /* @__PURE__ */ new Set()), se(this, pi, /* @__PURE__ */ new Set()), se(this, Ln, 0), se(this, Nn, 0), se(this, Ii, null), se(this, Ct, []), se(this, ii, /* @__PURE__ */ new Set()), se(this, bn, /* @__PURE__ */ new Set()), se(this, hn, /* @__PURE__ */ new Map()), I(this, "is_fork", !1), se(this, mi, !1);
256
256
  }
@@ -282,9 +282,9 @@ var rl = 1, xi = /* @__PURE__ */ new WeakMap(), pi = /* @__PURE__ */ new WeakMap
282
282
  flush() {
283
283
  var t = null;
284
284
  try {
285
- Xi = !0, be = this, ke(Nt, this, ts).call(this);
285
+ Xi = !0, be = this, ke(Nt, this, ns).call(this);
286
286
  } finally {
287
- Qo = 0, ar = null, Vn = null, Ei = null, Xi = !1, be = null, rt = null, sn.clear();
287
+ es = 0, ar = null, Vn = null, Ei = null, Xi = !1, be = null, rt = null, sn.clear();
288
288
  }
289
289
  }
290
290
  discard() {
@@ -315,7 +315,7 @@ var rl = 1, xi = /* @__PURE__ */ new WeakMap(), pi = /* @__PURE__ */ new WeakMap
315
315
  }
316
316
  static ensure() {
317
317
  if (be === null) {
318
- const t = be = new es();
318
+ const t = be = new ts();
319
319
  Xi || (Ut.add(be), ei || ln(() => {
320
320
  be === t && t.flush();
321
321
  }));
@@ -350,12 +350,12 @@ var rl = 1, xi = /* @__PURE__ */ new WeakMap(), pi = /* @__PURE__ */ new WeakMap
350
350
  S(Ct, this).push(n);
351
351
  }
352
352
  };
353
- Zo = An;
354
- function ao() {
353
+ Qo = An;
354
+ function lo() {
355
355
  return this.is_fork || S(Nn, this) > 0;
356
356
  }
357
- function ts() {
358
- if (Qo++ > 1e3 && (Ut.delete(this), sl()), !ke(Nt, this, ao).call(this)) {
357
+ function ns() {
358
+ if (es++ > 1e3 && (Ut.delete(this), sl()), !ke(Nt, this, lo).call(this)) {
359
359
  for (const s of S(ii, this))
360
360
  S(bn, this).delete(s), De(s, Dt), this.schedule(s);
361
361
  for (const s of S(bn, this))
@@ -365,35 +365,35 @@ function ts() {
365
365
  ne(Ct, this, []), this.apply();
366
366
  var t = Vn = [], n = [], i = Ei = [];
367
367
  for (const s of e) try {
368
- ke(Nt, this, ns).call(this, s, t, n);
368
+ ke(Nt, this, is).call(this, s, t, n);
369
369
  } catch (l) {
370
- throw ss(s), l;
370
+ throw as(s), l;
371
371
  }
372
372
  if (be = null, i.length > 0) {
373
- var r = Zo.ensure();
373
+ var r = Qo.ensure();
374
374
  for (const s of i) r.schedule(s);
375
375
  }
376
- if (Vn = null, Ei = null, ke(Nt, this, ao).call(this)) {
377
- ke(Nt, this, lo).call(this, n), ke(Nt, this, lo).call(this, t);
378
- for (const [s, l] of S(hn, this)) os(s, l);
376
+ if (Vn = null, Ei = null, ke(Nt, this, lo).call(this)) {
377
+ ke(Nt, this, co).call(this, n), ke(Nt, this, co).call(this, t);
378
+ for (const [s, l] of S(hn, this)) ss(s, l);
379
379
  } else {
380
380
  S(Ln, this) === 0 && Ut.delete(this), S(ii, this).clear(), S(bn, this).clear();
381
381
  for (const s of S(xi, this)) s(this);
382
- S(xi, this).clear(), so = this, co(n), co(t), so = null, S(Ii, this)?.resolve();
382
+ S(xi, this).clear(), ao = this, uo(n), uo(t), ao = null, S(Ii, this)?.resolve();
383
383
  }
384
384
  var o = be;
385
385
  if (S(Ct, this).length > 0) {
386
386
  const s = o ?? (o = this);
387
387
  S(Ct, s).push(...S(Ct, this).filter((l) => !S(Ct, s).includes(l)));
388
388
  }
389
- o !== null && (Ut.add(o), ke(Nt, o, ts).call(o)), Ut.has(this) || ke(Nt, this, ol).call(this);
389
+ o !== null && (Ut.add(o), ke(Nt, o, ns).call(o)), Ut.has(this) || ke(Nt, this, ol).call(this);
390
390
  }
391
- function ns(e, t, n) {
391
+ function is(e, t, n) {
392
392
  e.f ^= bt;
393
393
  for (var i = e.first; i !== null; ) {
394
394
  var r = i.f, o = (r & 96) !== 0;
395
395
  if (!(o && r & 1024 || r & 8192 || S(hn, this).has(i)) && i.fn !== null) {
396
- o ? i.f ^= bt : r & 4 ? t.push(i) : an && r & 16777224 ? n.push(i) : ui(i) && (r & 16 && S(bn, this).add(i), Wn(i));
396
+ o ? i.f ^= bt : r & 4 ? t.push(i) : an && r & 16777224 ? n.push(i) : ui(i) && (r & 16 && S(bn, this).add(i), Kn(i));
397
397
  var s = i.first;
398
398
  if (s !== null) {
399
399
  i = s;
@@ -410,8 +410,8 @@ function ns(e, t, n) {
410
410
  }
411
411
  }
412
412
  }
413
- function lo(e) {
414
- for (var t = 0; t < e.length; t += 1) Xo(e[t], S(ii, this), S(bn, this));
413
+ function co(e) {
414
+ for (var t = 0; t < e.length; t += 1) Jo(e[t], S(ii, this), S(bn, this));
415
415
  }
416
416
  function ol() {
417
417
  for (const l of Ut) {
@@ -427,10 +427,10 @@ function ol() {
427
427
  else if (t.length > 0) {
428
428
  l.activate();
429
429
  var i = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map();
430
- for (var o of t) is(o, n, i, r);
430
+ for (var o of t) rs(o, n, i, r);
431
431
  if (S(Ct, l).length > 0) {
432
432
  l.apply();
433
- for (var s of S(Ct, l)) ke(Nt, l, ns).call(l, s, [], []);
433
+ for (var s of S(Ct, l)) ke(Nt, l, is).call(l, s, [], []);
434
434
  ne(Ct, l, []);
435
435
  }
436
436
  l.deactivate();
@@ -463,12 +463,12 @@ function sl() {
463
463
  }
464
464
  }
465
465
  var zt = null;
466
- function co(e) {
466
+ function uo(e) {
467
467
  var t = e.length;
468
468
  if (t !== 0) {
469
469
  for (var n = 0; n < t; ) {
470
470
  var i = e[n++];
471
- if (!(i.f & 24576) && ui(i) && (zt = /* @__PURE__ */ new Set(), Wn(i), i.deps === null && i.first === null && i.nodes === null && i.teardown === null && i.ac === null && Ss(i), zt?.size > 0)) {
471
+ if (!(i.f & 24576) && ui(i) && (zt = /* @__PURE__ */ new Set(), Kn(i), i.deps === null && i.first === null && i.nodes === null && i.teardown === null && i.ac === null && ws(i), zt?.size > 0)) {
472
472
  sn.clear();
473
473
  for (const r of zt) {
474
474
  if (r.f & 24576) continue;
@@ -478,7 +478,7 @@ function co(e) {
478
478
  zt.has(s) && (zt.delete(s), o.push(s)), s = s.parent;
479
479
  for (let l = o.length - 1; l >= 0; l--) {
480
480
  const c = o[l];
481
- c.f & 24576 || Wn(c);
481
+ c.f & 24576 || Kn(c);
482
482
  }
483
483
  }
484
484
  zt.clear();
@@ -487,19 +487,19 @@ function co(e) {
487
487
  zt = null;
488
488
  }
489
489
  }
490
- function is(e, t, n, i) {
490
+ function rs(e, t, n, i) {
491
491
  if (!n.has(e) && (n.add(e), e.reactions !== null))
492
492
  for (const r of e.reactions) {
493
493
  const o = r.f;
494
- o & 2 ? is(r, t, n, i) : o & 4194320 && !(o & 2048) && rs(r, t, i) && (De(r, Dt), Mr(r));
494
+ o & 2 ? rs(r, t, n, i) : o & 4194320 && !(o & 2048) && os(r, t, i) && (De(r, Dt), Mr(r));
495
495
  }
496
496
  }
497
- function rs(e, t, n) {
497
+ function os(e, t, n) {
498
498
  const i = n.get(e);
499
499
  if (i !== void 0) return i;
500
500
  if (e.deps !== null) for (const r of e.deps) {
501
- if (jn.call(t, r)) return !0;
502
- if (r.f & 2 && rs(r, t, n))
501
+ if (Hn.call(t, r)) return !0;
502
+ if (r.f & 2 && os(r, t, n))
503
503
  return n.set(r, !0), !0;
504
504
  }
505
505
  return n.set(e, !1), !1;
@@ -507,22 +507,22 @@ function rs(e, t, n) {
507
507
  function Mr(e) {
508
508
  be.schedule(e);
509
509
  }
510
- function os(e, t) {
510
+ function ss(e, t) {
511
511
  if (!(e.f & 32 && e.f & 1024)) {
512
512
  e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), De(e, bt);
513
513
  for (var n = e.first; n !== null; )
514
- os(n, t), n = n.next;
514
+ ss(n, t), n = n.next;
515
515
  }
516
516
  }
517
- function ss(e) {
517
+ function as(e) {
518
518
  De(e, bt);
519
519
  for (var t = e.first; t !== null; )
520
- ss(t), t = t.next;
520
+ as(t), t = t.next;
521
521
  }
522
522
  function al(e) {
523
523
  let t = 0, n = kn(0), i;
524
524
  return () => {
525
- Br() && (a(n), ji(() => (t === 0 && (i = qn(() => e(() => ti(n)))), t += 1, () => {
525
+ Br() && (a(n), Hi(() => (t === 0 && (i = qn(() => e(() => ti(n)))), t += 1, () => {
526
526
  ln(() => {
527
527
  t -= 1, t === 0 && (i?.(), i = void 0, ti(n));
528
528
  });
@@ -533,14 +533,14 @@ var ll = zi | $n;
533
533
  function cl(e, t, n, i) {
534
534
  new dl(e, t, n, i);
535
535
  }
536
- var Pt = /* @__PURE__ */ new WeakMap(), Ji = /* @__PURE__ */ new WeakMap(), tn = /* @__PURE__ */ new WeakMap(), ri = /* @__PURE__ */ new WeakMap(), pt = /* @__PURE__ */ new WeakMap(), rn = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakMap(), Wt = /* @__PURE__ */ new WeakMap(), In = /* @__PURE__ */ new WeakMap(), zn = /* @__PURE__ */ new WeakMap(), Sn = /* @__PURE__ */ new WeakMap(), gi = /* @__PURE__ */ new WeakMap(), lr = /* @__PURE__ */ new WeakMap(), cr = /* @__PURE__ */ new WeakMap(), un = /* @__PURE__ */ new WeakMap(), uo = /* @__PURE__ */ new WeakMap(), nt = /* @__PURE__ */ new WeakSet(), dl = class {
536
+ var Pt = /* @__PURE__ */ new WeakMap(), Ji = /* @__PURE__ */ new WeakMap(), tn = /* @__PURE__ */ new WeakMap(), ri = /* @__PURE__ */ new WeakMap(), pt = /* @__PURE__ */ new WeakMap(), rn = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakMap(), In = /* @__PURE__ */ new WeakMap(), zn = /* @__PURE__ */ new WeakMap(), Sn = /* @__PURE__ */ new WeakMap(), gi = /* @__PURE__ */ new WeakMap(), lr = /* @__PURE__ */ new WeakMap(), cr = /* @__PURE__ */ new WeakMap(), un = /* @__PURE__ */ new WeakMap(), fo = /* @__PURE__ */ new WeakMap(), nt = /* @__PURE__ */ new WeakSet(), dl = class {
537
537
  constructor(e, t, n, i) {
538
- Rr(this, nt), I(this, "parent", void 0), I(this, "is_pending", !1), I(this, "transform_error", void 0), se(this, Pt, void 0), se(this, Ji, ie ? de : null), se(this, tn, void 0), se(this, ri, void 0), se(this, pt, void 0), se(this, rn, null), se(this, Et, null), se(this, Wt, null), se(this, In, null), se(this, zn, 0), se(this, Sn, 0), se(this, gi, !1), se(this, lr, /* @__PURE__ */ new Set()), se(this, cr, /* @__PURE__ */ new Set()), se(this, un, null), se(this, uo, al(() => (ne(un, this, kn(S(zn, this))), () => {
538
+ Rr(this, nt), I(this, "parent", void 0), I(this, "is_pending", !1), I(this, "transform_error", void 0), se(this, Pt, void 0), se(this, Ji, ie ? de : null), se(this, tn, void 0), se(this, ri, void 0), se(this, pt, void 0), se(this, rn, null), se(this, Et, null), se(this, Kt, null), se(this, In, null), se(this, zn, 0), se(this, Sn, 0), se(this, gi, !1), se(this, lr, /* @__PURE__ */ new Set()), se(this, cr, /* @__PURE__ */ new Set()), se(this, un, null), se(this, fo, al(() => (ne(un, this, kn(S(zn, this))), () => {
539
539
  ne(un, this, null);
540
540
  }))), ne(Pt, this, e), ne(tn, this, t), ne(ri, this, (r) => {
541
541
  var o = oe;
542
542
  o.b = this, o.f |= 128, n(r);
543
- }), this.parent = oe.b, this.transform_error = i ?? this.parent?.transform_error ?? ((r) => r), ne(pt, this, Hi(() => {
543
+ }), this.parent = oe.b, this.transform_error = i ?? this.parent?.transform_error ?? ((r) => r), ne(pt, this, ji(() => {
544
544
  if (ie) {
545
545
  const r = S(Ji, this);
546
546
  Cn();
@@ -549,11 +549,11 @@ var Pt = /* @__PURE__ */ new WeakMap(), Ji = /* @__PURE__ */ new WeakMap(), tn =
549
549
  const s = JSON.parse(r.data.slice(2));
550
550
  ke(nt, this, fl).call(this, s);
551
551
  } else o ? ke(nt, this, hl).call(this) : ke(nt, this, ul).call(this);
552
- } else ke(nt, this, fo).call(this);
552
+ } else ke(nt, this, ho).call(this);
553
553
  }, ll)), ie && ne(Pt, this, de);
554
554
  }
555
555
  defer_effect(e) {
556
- Xo(e, S(lr, this), S(cr, this));
556
+ Jo(e, S(lr, this), S(cr, this));
557
557
  }
558
558
  is_rendered() {
559
559
  return !this.is_pending && (!this.parent || this.parent.is_rendered());
@@ -562,28 +562,28 @@ var Pt = /* @__PURE__ */ new WeakMap(), Ji = /* @__PURE__ */ new WeakMap(), tn =
562
562
  return !!S(tn, this).pending;
563
563
  }
564
564
  update_pending_count(e, t) {
565
- ke(nt, this, as).call(this, e, t), ne(zn, this, S(zn, this) + e), !(!S(un, this) || S(gi, this)) && (ne(gi, this, !0), ln(() => {
566
- ne(gi, this, !1), S(un, this) && Kn(S(un, this), S(zn, this));
565
+ ke(nt, this, ls).call(this, e, t), ne(zn, this, S(zn, this) + e), !(!S(un, this) || S(gi, this)) && (ne(gi, this, !0), ln(() => {
566
+ ne(gi, this, !1), S(un, this) && Wn(S(un, this), S(zn, this));
567
567
  }));
568
568
  }
569
569
  get_effect_pending() {
570
- return S(uo, this).call(this), a(S(un, this));
570
+ return S(fo, this).call(this), a(S(un, this));
571
571
  }
572
572
  error(e) {
573
573
  var t = S(tn, this).onerror;
574
574
  let n = S(tn, this).failed;
575
575
  if (!t && !n) throw e;
576
- S(rn, this) && (Ze(S(rn, this)), ne(rn, this, null)), S(Et, this) && (Ze(S(Et, this)), ne(Et, this, null)), S(Wt, this) && (Ze(S(Wt, this)), ne(Wt, this, null)), ie && (We(S(Ji, this)), Vo(), We(Pi()));
576
+ S(rn, this) && (Ze(S(rn, this)), ne(rn, this, null)), S(Et, this) && (Ze(S(Et, this)), ne(Et, this, null)), S(Kt, this) && (Ze(S(Kt, this)), ne(Kt, this, null)), ie && (Ke(S(Ji, this)), Wo(), Ke(Pi()));
577
577
  var i = !1, r = !1;
578
578
  const o = () => {
579
579
  if (i) {
580
580
  Za();
581
581
  return;
582
582
  }
583
- i = !0, r && Ja(), S(Wt, this) !== null && Rn(S(Wt, this), () => {
584
- ne(Wt, this, null);
583
+ i = !0, r && Ja(), S(Kt, this) !== null && Rn(S(Kt, this), () => {
584
+ ne(Kt, this, null);
585
585
  }), ke(nt, this, dr).call(this, () => {
586
- ke(nt, this, fo).call(this);
586
+ ke(nt, this, ho).call(this);
587
587
  });
588
588
  }, s = (l) => {
589
589
  try {
@@ -591,7 +591,7 @@ var Pt = /* @__PURE__ */ new WeakMap(), Ji = /* @__PURE__ */ new WeakMap(), tn =
591
591
  } catch (c) {
592
592
  nn(c, S(pt, this) && S(pt, this).parent);
593
593
  }
594
- n && ne(Wt, this, ke(nt, this, dr).call(this, () => {
594
+ n && ne(Kt, this, ke(nt, this, dr).call(this, () => {
595
595
  try {
596
596
  return It(() => {
597
597
  var c = oe;
@@ -623,7 +623,7 @@ function ul() {
623
623
  }
624
624
  function fl(e) {
625
625
  const t = S(tn, this).failed;
626
- t && ne(Wt, this, It(() => {
626
+ t && ne(Kt, this, It(() => {
627
627
  t(S(Pt, this), () => e, () => () => {
628
628
  });
629
629
  }));
@@ -637,13 +637,13 @@ function hl() {
637
637
  }), ke(nt, this, Or).call(this, be));
638
638
  }));
639
639
  }
640
- function fo() {
640
+ function ho() {
641
641
  try {
642
642
  if (this.is_pending = this.has_pending_snippet(), ne(Sn, this, 0), ne(zn, this, 0), ne(rn, this, It(() => {
643
643
  S(ri, this).call(this, S(Pt, this));
644
644
  })), S(Sn, this) > 0) {
645
645
  var e = ne(In, this, document.createDocumentFragment());
646
- Kr(S(rn, this), e);
646
+ Wr(S(rn, this), e);
647
647
  const t = S(tn, this).pending;
648
648
  ne(Et, this, It(() => t(S(Pt, this))));
649
649
  } else ke(nt, this, Or).call(this, be);
@@ -656,20 +656,20 @@ function Or(e) {
656
656
  }
657
657
  function dr(e) {
658
658
  var t = oe, n = ae, i = Oe;
659
- St(S(pt, this)), ot(S(pt, this)), Hn(S(pt, this).ctx);
659
+ St(S(pt, this)), ot(S(pt, this)), jn(S(pt, this).ctx);
660
660
  try {
661
661
  return An.ensure(), e();
662
662
  } catch (r) {
663
- return Go(r), null;
663
+ return Yo(r), null;
664
664
  } finally {
665
- St(t), ot(n), Hn(i);
665
+ St(t), ot(n), jn(i);
666
666
  }
667
667
  }
668
- function as(e, t) {
668
+ function ls(e, t) {
669
669
  if (!this.has_pending_snippet()) {
670
670
  if (this.parent) {
671
671
  var n;
672
- ke(nt, n = this.parent, as).call(n, e, t);
672
+ ke(nt, n = this.parent, ls).call(n, e, t);
673
673
  }
674
674
  return;
675
675
  }
@@ -698,7 +698,7 @@ function pl(e, t, n, i) {
698
698
  c.then(() => d(t.map(r)));
699
699
  return;
700
700
  }
701
- var f = ls();
701
+ var f = cs();
702
702
  function h() {
703
703
  Promise.all(n.map((u) => /* @__PURE__ */ gl(u))).then((u) => d([...t.map(r), ...u])).catch((u) => nn(u, s)).finally(() => f());
704
704
  }
@@ -710,13 +710,13 @@ function ml() {
710
710
  var e = oe, t = ae, n = Oe, i = be;
711
711
  if (0) var r;
712
712
  return function(s = !0) {
713
- St(e), ot(t), Hn(n), s && !(e.f & 16384) && (i?.activate(), i?.apply());
713
+ St(e), ot(t), jn(n), s && !(e.f & 16384) && (i?.activate(), i?.apply());
714
714
  };
715
715
  }
716
716
  function Ai(e = !0) {
717
- St(null), ot(null), Hn(null), e && be?.deactivate();
717
+ St(null), ot(null), jn(null), e && be?.deactivate();
718
718
  }
719
- function ls() {
719
+ function cs() {
720
720
  var e = oe.b, t = be, n = e.is_rendered();
721
721
  return e.update_pending_count(1, t), t.increment(n), (i = !1) => {
722
722
  e.update_pending_count(-1, t), t.decrement(n, i);
@@ -729,7 +729,7 @@ function Bi(e) {
729
729
  ctx: Oe,
730
730
  deps: null,
731
731
  effects: null,
732
- equals: Wo,
732
+ equals: $o,
733
733
  f: t,
734
734
  fn: e,
735
735
  reactions: null,
@@ -743,7 +743,7 @@ function Bi(e) {
743
743
  // @__NO_SIDE_EFFECTS__
744
744
  function gl(e, t, n) {
745
745
  let i = oe;
746
- i === null && ja();
746
+ i === null && Ha();
747
747
  var r = void 0, o = kn(Ve), s = !ae, l = /* @__PURE__ */ new Map();
748
748
  return El(() => {
749
749
  var c = oe, d = jo();
@@ -755,7 +755,7 @@ function gl(e, t, n) {
755
755
  }
756
756
  var f = be;
757
757
  if (s) {
758
- if (c.f & 32768) var h = ls();
758
+ if (c.f & 32768) var h = cs();
759
759
  if (i.b.is_rendered())
760
760
  l.get(f)?.reject($t), l.delete(f);
761
761
  else {
@@ -767,9 +767,9 @@ function gl(e, t, n) {
767
767
  const u = (y, v = void 0) => {
768
768
  if (h && h(v === $t), !(v === $t || c.f & 16384)) {
769
769
  if (f.activate(), v)
770
- o.f |= ki, Kn(o, v);
770
+ o.f |= ki, Wn(o, v);
771
771
  else {
772
- o.f & 8388608 && (o.f ^= ki), Kn(o, y);
772
+ o.f & 8388608 && (o.f ^= ki), Wn(o, y);
773
773
  for (const [k, w] of l) {
774
774
  if (l.delete(k), k === f) break;
775
775
  w.reject($t);
@@ -794,12 +794,12 @@ function gl(e, t, n) {
794
794
  // @__NO_SIDE_EFFECTS__
795
795
  function M(e) {
796
796
  const t = /* @__PURE__ */ Bi(e);
797
- return an || _s(t), t;
797
+ return an || Cs(t), t;
798
798
  }
799
799
  // @__NO_SIDE_EFFECTS__
800
800
  function Lr(e) {
801
801
  const t = /* @__PURE__ */ Bi(e);
802
- return t.equals = qo, t;
802
+ return t.equals = Uo, t;
803
803
  }
804
804
  function vl(e) {
805
805
  var t = e.effects;
@@ -822,15 +822,15 @@ function Nr(e) {
822
822
  } finally {
823
823
  }
824
824
  else try {
825
- e.f &= ~li, vl(e), t = Es(e);
825
+ e.f &= ~li, vl(e), t = xs(e);
826
826
  } finally {
827
827
  St(n);
828
828
  }
829
829
  return t;
830
830
  }
831
- function cs(e) {
831
+ function ds(e) {
832
832
  var t = e.v, n = Nr(e);
833
- if (!e.equals(n) && (e.wv = ks(), (!be?.is_fork || e.deps === null) && (e.v = n, be?.capture(e, t), e.deps === null))) {
833
+ if (!e.equals(n) && (e.wv = Ps(), (!be?.is_fork || e.deps === null) && (e.v = n, be?.capture(e, t), e.deps === null))) {
834
834
  De(e, bt);
835
835
  return;
836
836
  }
@@ -838,20 +838,20 @@ function cs(e) {
838
838
  }
839
839
  function bl(e) {
840
840
  if (e.effects !== null)
841
- for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort($t), t.teardown = Ma, t.ac = null, oi(t, 0), Hr(t));
841
+ for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort($t), t.teardown = Ma, t.ac = null, oi(t, 0), jr(t));
842
842
  }
843
- function ds(e) {
843
+ function us(e) {
844
844
  if (e.effects !== null)
845
- for (const t of e.effects) t.teardown && Wn(t);
845
+ for (const t of e.effects) t.teardown && Kn(t);
846
846
  }
847
847
  var ur = /* @__PURE__ */ new Set(), sn = /* @__PURE__ */ new Map();
848
- var us = !1;
848
+ var fs = !1;
849
849
  function kn(e, t) {
850
850
  var n = {
851
851
  f: 0,
852
852
  v: e,
853
853
  reactions: null,
854
- equals: Wo,
854
+ equals: $o,
855
855
  rv: 0,
856
856
  wv: 0
857
857
  };
@@ -860,23 +860,23 @@ function kn(e, t) {
860
860
  // @__NO_SIDE_EFFECTS__
861
861
  function $(e, t) {
862
862
  const n = kn(e, t);
863
- return _s(n), n;
863
+ return Cs(n), n;
864
864
  }
865
865
  // @__NO_SIDE_EFFECTS__
866
- function fs(e, t = !1, n = !0) {
866
+ function hs(e, t = !1, n = !0) {
867
867
  const i = kn(e);
868
- if (t || (i.equals = qo), ci && n && Oe !== null && Oe.l !== null) {
868
+ if (t || (i.equals = Uo), ci && n && Oe !== null && Oe.l !== null) {
869
869
  var r;
870
870
  ((r = Oe.l).s ?? (r.s = [])).push(i);
871
871
  }
872
872
  return i;
873
873
  }
874
- function H(e, t, n = !1) {
875
- ae !== null && (!xt || ae.f & 131072) && di() && ae.f & 4325394 && (yt === null || !jn.call(yt, e)) && Xa();
874
+ function j(e, t, n = !1) {
875
+ ae !== null && (!xt || ae.f & 131072) && di() && ae.f & 4325394 && (yt === null || !Hn.call(yt, e)) && Xa();
876
876
  let i = n ? on(t) : t;
877
- return Kn(e, i, Ei);
877
+ return Wn(e, i, Ei);
878
878
  }
879
- function Kn(e, t, n = null) {
879
+ function Wn(e, t, n = null) {
880
880
  if (!e.equals(t)) {
881
881
  var i = e.v;
882
882
  dn ? sn.set(e, t) : sn.set(e, i), e.v = t;
@@ -885,20 +885,20 @@ function Kn(e, t, n = null) {
885
885
  const o = e;
886
886
  e.f & 2048 && Nr(o), rt === null && Ar(o);
887
887
  }
888
- e.wv = ks(), hs(e, Dt, n), di() && oe !== null && oe.f & 1024 && !(oe.f & 96) && (mt === null ? Ml([e]) : mt.push(e)), !r.is_fork && ur.size > 0 && !us && Il();
888
+ e.wv = Ps(), ps(e, Dt, n), di() && oe !== null && oe.f & 1024 && !(oe.f & 96) && (mt === null ? Ml([e]) : mt.push(e)), !r.is_fork && ur.size > 0 && !fs && Il();
889
889
  }
890
890
  return t;
891
891
  }
892
892
  function Il() {
893
- us = !1;
893
+ fs = !1;
894
894
  for (const e of ur)
895
- e.f & 1024 && De(e, xn), ui(e) && Wn(e);
895
+ e.f & 1024 && De(e, xn), ui(e) && Kn(e);
896
896
  ur.clear();
897
897
  }
898
898
  function ti(e) {
899
- H(e, e.v + 1);
899
+ j(e, e.v + 1);
900
900
  }
901
- function hs(e, t, n) {
901
+ function ps(e, t, n) {
902
902
  var i = e.reactions;
903
903
  if (i !== null)
904
904
  for (var r = di(), o = i.length, s = 0; s < o; s++) {
@@ -907,7 +907,7 @@ function hs(e, t, n) {
907
907
  var d = (c & Dt) === 0;
908
908
  if (d && De(l, t), c & 2) {
909
909
  var f = l;
910
- rt?.delete(f), c & 65536 || (c & 512 && (l.f |= li), hs(f, xn, n));
910
+ rt?.delete(f), c & 65536 || (c & 512 && (l.f |= li), ps(f, xn, n));
911
911
  } else if (d) {
912
912
  var h = l;
913
913
  c & 16 && zt !== null && zt.add(h), n !== null ? n.push(h) : Mr(h);
@@ -923,17 +923,17 @@ function on(e) {
923
923
  var n = /* @__PURE__ */ new Map(), i = _r(e), r = /* @__PURE__ */ $(0), o = null, s = wn, l = (h) => {
924
924
  if (wn === s) return h();
925
925
  var u = ae, y = wn;
926
- ot(null), mo(s);
926
+ ot(null), go(s);
927
927
  var v = h();
928
- return ot(u), mo(y), v;
928
+ return ot(u), go(y), v;
929
929
  };
930
930
  i && n.set("length", /* @__PURE__ */ $(e.length, o));
931
931
  var c = "";
932
932
  let d = !1;
933
933
  function f(h) {
934
934
  if (!d) {
935
- d = !0, c = h, oo(r, `${c} version`);
936
- for (const [u, y] of n) oo(y, wl(c, u));
935
+ d = !0, c = h, so(r, `${c} version`);
936
+ for (const [u, y] of n) so(y, wl(c, u));
937
937
  d = !1;
938
938
  }
939
939
  }
@@ -944,7 +944,7 @@ function on(e) {
944
944
  return v === void 0 ? l(() => {
945
945
  var k = /* @__PURE__ */ $(y.value, o);
946
946
  return n.set(u, k), k;
947
- }) : H(v, y.value, !0), !0;
947
+ }) : j(v, y.value, !0), !0;
948
948
  },
949
949
  deleteProperty(h, u) {
950
950
  var y = n.get(u);
@@ -954,7 +954,7 @@ function on(e) {
954
954
  n.set(u, v), ti(r);
955
955
  }
956
956
  } else
957
- H(y, Ve), ti(r);
957
+ j(y, Ve), ti(r);
958
958
  return !0;
959
959
  },
960
960
  get(h, u, y) {
@@ -997,20 +997,20 @@ function on(e) {
997
997
  var k = n.get(u), w = u in h;
998
998
  if (i && u === "length") for (var g = y; g < k.v; g += 1) {
999
999
  var D = n.get(g + "");
1000
- D !== void 0 ? H(D, Ve) : g in h && (D = l(() => /* @__PURE__ */ $(Ve, o)), n.set(g + "", D));
1000
+ D !== void 0 ? j(D, Ve) : g in h && (D = l(() => /* @__PURE__ */ $(Ve, o)), n.set(g + "", D));
1001
1001
  }
1002
1002
  if (k === void 0)
1003
- (!w || vn(h, u)?.writable) && (k = l(() => /* @__PURE__ */ $(void 0, o)), H(k, on(y)), n.set(u, k));
1003
+ (!w || vn(h, u)?.writable) && (k = l(() => /* @__PURE__ */ $(void 0, o)), j(k, on(y)), n.set(u, k));
1004
1004
  else {
1005
1005
  w = k.v !== Ve;
1006
1006
  var A = l(() => on(y));
1007
- H(k, A);
1007
+ j(k, A);
1008
1008
  }
1009
1009
  var O = Reflect.getOwnPropertyDescriptor(h, u);
1010
1010
  if (O?.set && O.set.call(v, y), !w) {
1011
1011
  if (i && typeof u == "string") {
1012
1012
  var C = n.get("length"), L = Number(u);
1013
- Number.isInteger(L) && L >= C.v && H(C, L + 1);
1013
+ Number.isInteger(L) && L >= C.v && j(C, L + 1);
1014
1014
  }
1015
1015
  ti(r);
1016
1016
  }
@@ -1033,12 +1033,12 @@ function on(e) {
1033
1033
  function wl(e, t) {
1034
1034
  return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : Sl.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
1035
1035
  }
1036
- var ho, Tl, ps, ms, gs;
1036
+ var po, Tl, ms, gs, vs;
1037
1037
  function fr() {
1038
- if (ho === void 0) {
1039
- ho = window, Tl = document, ps = /Firefox/.test(navigator.userAgent);
1038
+ if (po === void 0) {
1039
+ po = window, Tl = document, ms = /Firefox/.test(navigator.userAgent);
1040
1040
  var e = Element.prototype, t = Node.prototype, n = Text.prototype;
1041
- ms = vn(t, "firstChild").get, gs = vn(t, "nextSibling").get, no(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), no(n) && (n.__t = void 0);
1041
+ gs = vn(t, "firstChild").get, vs = vn(t, "nextSibling").get, io(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), io(n) && (n.__t = void 0);
1042
1042
  }
1043
1043
  }
1044
1044
  function dt(e = "") {
@@ -1046,11 +1046,11 @@ function dt(e = "") {
1046
1046
  }
1047
1047
  // @__NO_SIDE_EFFECTS__
1048
1048
  function cn(e) {
1049
- return ms.call(e);
1049
+ return gs.call(e);
1050
1050
  }
1051
1051
  // @__NO_SIDE_EFFECTS__
1052
1052
  function Bt(e) {
1053
- return gs.call(e);
1053
+ return vs.call(e);
1054
1054
  }
1055
1055
  function Re(e, t) {
1056
1056
  if (!ie) return /* @__PURE__ */ cn(e);
@@ -1058,9 +1058,9 @@ function Re(e, t) {
1058
1058
  if (n === null) n = de.appendChild(dt());
1059
1059
  else if (t && n.nodeType !== 3) {
1060
1060
  var i = dt();
1061
- return n?.before(i), We(i), i;
1061
+ return n?.before(i), Ke(i), i;
1062
1062
  }
1063
- return t && zr(n), We(n), n;
1063
+ return t && zr(n), Ke(n), n;
1064
1064
  }
1065
1065
  function Qe(e, t = !1) {
1066
1066
  if (!ie) {
@@ -1070,7 +1070,7 @@ function Qe(e, t = !1) {
1070
1070
  if (t) {
1071
1071
  if (de?.nodeType !== 3) {
1072
1072
  var i = dt();
1073
- return de?.before(i), We(i), i;
1073
+ return de?.before(i), Ke(i), i;
1074
1074
  }
1075
1075
  zr(de);
1076
1076
  }
@@ -1084,16 +1084,16 @@ function Me(e, t = 1, n = !1) {
1084
1084
  if (n) {
1085
1085
  if (i?.nodeType !== 3) {
1086
1086
  var o = dt();
1087
- return i === null ? r?.after(o) : i.before(o), We(o), o;
1087
+ return i === null ? r?.after(o) : i.before(o), Ke(o), o;
1088
1088
  }
1089
1089
  zr(i);
1090
1090
  }
1091
- return We(i), i;
1091
+ return Ke(i), i;
1092
1092
  }
1093
- function vs(e) {
1093
+ function ys(e) {
1094
1094
  e.textContent = "";
1095
1095
  }
1096
- function ys() {
1096
+ function bs() {
1097
1097
  return !an || zt !== null ? !1 : (oe.f & Pr) !== 0;
1098
1098
  }
1099
1099
  function Fi(e, t, n) {
@@ -1116,7 +1116,7 @@ function Dr(e) {
1116
1116
  }
1117
1117
  }
1118
1118
  function _l(e) {
1119
- oe === null && (ae === null && Wa(e), Ka()), dn && Va(e);
1119
+ oe === null && (ae === null && Ka(e), Wa()), dn && Va(e);
1120
1120
  }
1121
1121
  function Cl(e, t) {
1122
1122
  var n = t.last;
@@ -1144,7 +1144,7 @@ function Ft(e, t) {
1144
1144
  if (e & 4) Vn !== null ? Vn.push(i) : An.ensure().schedule(i);
1145
1145
  else if (t !== null) {
1146
1146
  try {
1147
- Wn(i);
1147
+ Kn(i);
1148
1148
  } catch (s) {
1149
1149
  throw Ze(i), s;
1150
1150
  }
@@ -1169,9 +1169,9 @@ function re(e) {
1169
1169
  if (!ae && t & 32 && !(t & 32768)) {
1170
1170
  var n = Oe;
1171
1171
  (n.e ?? (n.e = [])).push(e);
1172
- } else return bs(e);
1172
+ } else return Is(e);
1173
1173
  }
1174
- function bs(e) {
1174
+ function Is(e) {
1175
1175
  return Ft(4 | Na, e);
1176
1176
  }
1177
1177
  function kl(e) {
@@ -1190,13 +1190,13 @@ function Pl(e) {
1190
1190
  }) : (Ze(t), i(void 0));
1191
1191
  });
1192
1192
  }
1193
- function jr(e) {
1193
+ function Hr(e) {
1194
1194
  return Ft(4, e);
1195
1195
  }
1196
1196
  function El(e) {
1197
1197
  return Ft(za | $n, e);
1198
1198
  }
1199
- function ji(e, t = 0) {
1199
+ function Hi(e, t = 0) {
1200
1200
  return Ft(8 | t, e);
1201
1201
  }
1202
1202
  function E(e, t = [], n = [], i = []) {
@@ -1204,26 +1204,26 @@ function E(e, t = [], n = [], i = []) {
1204
1204
  Ft(8, () => e(...r.map(a)));
1205
1205
  });
1206
1206
  }
1207
- function Hi(e, t = 0) {
1207
+ function ji(e, t = 0) {
1208
1208
  var n = Ft(16 | t, e);
1209
1209
  return n;
1210
1210
  }
1211
1211
  function It(e) {
1212
1212
  return Ft(32 | $n, e);
1213
1213
  }
1214
- function Is(e) {
1214
+ function Ss(e) {
1215
1215
  var t = e.teardown;
1216
1216
  if (t !== null) {
1217
1217
  const n = dn, i = ae;
1218
- po(!0), ot(null);
1218
+ mo(!0), ot(null);
1219
1219
  try {
1220
1220
  t.call(null);
1221
1221
  } finally {
1222
- po(n), ot(i);
1222
+ mo(n), ot(i);
1223
1223
  }
1224
1224
  }
1225
1225
  }
1226
- function Hr(e, t = !1) {
1226
+ function jr(e, t = !1) {
1227
1227
  var n = e.first;
1228
1228
  for (e.first = e.last = null; n !== null; ) {
1229
1229
  const r = n.ac;
@@ -1242,12 +1242,12 @@ function xl(e) {
1242
1242
  }
1243
1243
  function Ze(e, t = !0) {
1244
1244
  var n = !1;
1245
- (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (Al(e.nodes.start, e.nodes.end), n = !0), De(e, io), Hr(e, t && !n), oi(e, 0);
1245
+ (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (Al(e.nodes.start, e.nodes.end), n = !0), De(e, ro), jr(e, t && !n), oi(e, 0);
1246
1246
  var i = e.nodes && e.nodes.t;
1247
1247
  if (i !== null) for (const o of i) o.stop();
1248
- Is(e), e.f ^= io, e.f |= La;
1248
+ Ss(e), e.f ^= ro, e.f |= La;
1249
1249
  var r = e.parent;
1250
- r !== null && r.first !== null && Ss(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
1250
+ r !== null && r.first !== null && ws(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
1251
1251
  }
1252
1252
  function Al(e, t) {
1253
1253
  for (; e !== null; ) {
@@ -1255,13 +1255,13 @@ function Al(e, t) {
1255
1255
  e.remove(), e = n;
1256
1256
  }
1257
1257
  }
1258
- function Ss(e) {
1258
+ function ws(e) {
1259
1259
  var t = e.parent, n = e.prev, i = e.next;
1260
1260
  n !== null && (n.next = i), i !== null && (i.prev = n), t !== null && (t.first === e && (t.first = i), t.last === e && (t.last = n));
1261
1261
  }
1262
1262
  function Rn(e, t, n = !0) {
1263
1263
  var i = [];
1264
- ws(e, i, !0);
1264
+ Ts(e, i, !0);
1265
1265
  var r = () => {
1266
1266
  n && Ze(e), t && t();
1267
1267
  }, o = i.length;
@@ -1270,7 +1270,7 @@ function Rn(e, t, n = !0) {
1270
1270
  for (var l of i) l.out(s);
1271
1271
  } else r();
1272
1272
  }
1273
- function ws(e, t, n) {
1273
+ function Ts(e, t, n) {
1274
1274
  if (!(e.f & 8192)) {
1275
1275
  e.f ^= kr;
1276
1276
  var i = e.nodes && e.nodes.t;
@@ -1278,26 +1278,26 @@ function ws(e, t, n) {
1278
1278
  for (const l of i) (l.is_global || n) && t.push(l);
1279
1279
  for (var r = e.first; r !== null; ) {
1280
1280
  var o = r.next, s = (r.f & 65536) !== 0 || (r.f & 32) !== 0 && (e.f & 16) !== 0;
1281
- ws(r, t, s ? n : !1), r = o;
1281
+ Ts(r, t, s ? n : !1), r = o;
1282
1282
  }
1283
1283
  }
1284
1284
  }
1285
1285
  function Vr(e) {
1286
- Ts(e, !0);
1286
+ _s(e, !0);
1287
1287
  }
1288
- function Ts(e, t) {
1288
+ function _s(e, t) {
1289
1289
  if (e.f & 8192) {
1290
1290
  e.f ^= kr, e.f & 1024 || (De(e, Dt), An.ensure().schedule(e));
1291
1291
  for (var n = e.first; n !== null; ) {
1292
1292
  var i = n.next, r = (n.f & 65536) !== 0 || (n.f & 32) !== 0;
1293
- Ts(n, r ? t : !1), n = i;
1293
+ _s(n, r ? t : !1), n = i;
1294
1294
  }
1295
1295
  var o = e.nodes && e.nodes.t;
1296
1296
  if (o !== null)
1297
1297
  for (const s of o) (s.is_global || t) && s.in();
1298
1298
  }
1299
1299
  }
1300
- function Kr(e, t) {
1300
+ function Wr(e, t) {
1301
1301
  if (e.nodes)
1302
1302
  for (var n = e.nodes.start, i = e.nodes.end; n !== null; ) {
1303
1303
  var r = n === i ? null : /* @__PURE__ */ Bt(n);
@@ -1305,7 +1305,7 @@ function Kr(e, t) {
1305
1305
  }
1306
1306
  }
1307
1307
  var Rl = null, Si = !1, dn = !1;
1308
- function po(e) {
1308
+ function mo(e) {
1309
1309
  dn = e;
1310
1310
  }
1311
1311
  var ae = null, xt = !1;
@@ -1317,19 +1317,19 @@ function St(e) {
1317
1317
  oe = e;
1318
1318
  }
1319
1319
  var yt = null;
1320
- function _s(e) {
1320
+ function Cs(e) {
1321
1321
  ae !== null && (!an || ae.f & 2) && (yt === null ? yt = [e] : yt.push(e));
1322
1322
  }
1323
1323
  var it = null, lt = 0, mt = null;
1324
1324
  function Ml(e) {
1325
1325
  mt = e;
1326
1326
  }
1327
- var Cs = 1, mn = 0, wn = mn;
1328
- function mo(e) {
1327
+ var ks = 1, mn = 0, wn = mn;
1328
+ function go(e) {
1329
1329
  wn = e;
1330
1330
  }
1331
- function ks() {
1332
- return ++Cs;
1331
+ function Ps() {
1332
+ return ++ks;
1333
1333
  }
1334
1334
  function ui(e) {
1335
1335
  var t = e.f;
@@ -1337,27 +1337,27 @@ function ui(e) {
1337
1337
  if (t & 2 && (e.f &= ~li), t & 4096) {
1338
1338
  for (var n = e.deps, i = n.length, r = 0; r < i; r++) {
1339
1339
  var o = n[r];
1340
- if (ui(o) && cs(o), o.wv > e.wv) return !0;
1340
+ if (ui(o) && ds(o), o.wv > e.wv) return !0;
1341
1341
  }
1342
1342
  t & 512 && rt === null && De(e, bt);
1343
1343
  }
1344
1344
  return !1;
1345
1345
  }
1346
- function Ps(e, t, n = !0) {
1346
+ function Es(e, t, n = !0) {
1347
1347
  var i = e.reactions;
1348
- if (i !== null && !(!an && yt !== null && jn.call(yt, e)))
1348
+ if (i !== null && !(!an && yt !== null && Hn.call(yt, e)))
1349
1349
  for (var r = 0; r < i.length; r++) {
1350
1350
  var o = i[r];
1351
- o.f & 2 ? Ps(o, t, !1) : t === o && (n ? De(o, Dt) : o.f & 1024 && De(o, xn), Mr(o));
1351
+ o.f & 2 ? Es(o, t, !1) : t === o && (n ? De(o, Dt) : o.f & 1024 && De(o, xn), Mr(o));
1352
1352
  }
1353
1353
  }
1354
- function Es(e) {
1354
+ function xs(e) {
1355
1355
  var t = it, n = lt, i = mt, r = ae, o = yt, s = Oe, l = xt, c = wn, d = e.f;
1356
- it = null, lt = 0, mt = null, ae = d & 96 ? null : e, yt = null, Hn(e.ctx), xt = !1, wn = ++mn, e.ac !== null && (Dr(() => {
1356
+ it = null, lt = 0, mt = null, ae = d & 96 ? null : e, yt = null, jn(e.ctx), xt = !1, wn = ++mn, e.ac !== null && (Dr(() => {
1357
1357
  e.ac.abort($t);
1358
1358
  }), e.ac = null);
1359
1359
  try {
1360
- e.f |= ro;
1360
+ e.f |= oo;
1361
1361
  var f = e.fn, h = f();
1362
1362
  e.f |= Pr;
1363
1363
  var u = e.deps, y = be?.is_fork;
@@ -1371,7 +1371,7 @@ function Es(e) {
1371
1371
  ((k = u[v]).reactions ?? (k.reactions = [])).push(e);
1372
1372
  }
1373
1373
  } else !y && u !== null && lt < u.length && (oi(e, lt), u.length = lt);
1374
- if (di() && mt !== null && !xt && u !== null && !(e.f & 6146)) for (v = 0; v < mt.length; v++) Ps(mt[v], e);
1374
+ if (di() && mt !== null && !xt && u !== null && !(e.f & 6146)) for (v = 0; v < mt.length; v++) Es(mt[v], e);
1375
1375
  if (r !== null && r !== e) {
1376
1376
  if (mn++, r.deps !== null) for (let w = 0; w < n; w += 1) r.deps[w].rv = mn;
1377
1377
  if (t !== null) for (const w of t) w.rv = mn;
@@ -1379,9 +1379,9 @@ function Es(e) {
1379
1379
  }
1380
1380
  return e.f & 8388608 && (e.f ^= ki), h;
1381
1381
  } catch (w) {
1382
- return Go(w);
1382
+ return Yo(w);
1383
1383
  } finally {
1384
- e.f ^= ro, it = t, lt = n, mt = i, ae = r, yt = o, Hn(s), xt = l, wn = c;
1384
+ e.f ^= oo, it = t, lt = n, mt = i, ae = r, yt = o, jn(s), xt = l, wn = c;
1385
1385
  }
1386
1386
  }
1387
1387
  function Ol(e, t) {
@@ -1393,7 +1393,7 @@ function Ol(e, t) {
1393
1393
  r === 0 ? n = t.reactions = null : (n[i] = n[r], n.pop());
1394
1394
  }
1395
1395
  }
1396
- if (n === null && t.f & 2 && (it === null || !jn.call(it, t))) {
1396
+ if (n === null && t.f & 2 && (it === null || !Hn.call(it, t))) {
1397
1397
  var o = t;
1398
1398
  o.f & 512 && (o.f ^= 512, o.f &= ~li), Ar(o), bl(o), oi(o, 0);
1399
1399
  }
@@ -1403,7 +1403,7 @@ function oi(e, t) {
1403
1403
  if (n !== null)
1404
1404
  for (var i = t; i < n.length; i++) Ol(e, n[i]);
1405
1405
  }
1406
- function Wn(e) {
1406
+ function Kn(e) {
1407
1407
  var t = e.f;
1408
1408
  if (!(t & 16384)) {
1409
1409
  De(e, bt);
@@ -1411,9 +1411,9 @@ function Wn(e) {
1411
1411
  if (oe = e, Si = !0, 0)
1412
1412
  var r, o;
1413
1413
  try {
1414
- t & 16777232 ? xl(e) : Hr(e), Is(e);
1415
- var s = Es(e);
1416
- if (e.teardown = typeof s == "function" ? s : null, e.wv = Cs, 0)
1414
+ t & 16777232 ? xl(e) : jr(e), Ss(e);
1415
+ var s = xs(e);
1416
+ if (e.teardown = typeof s == "function" ? s : null, e.wv = ks, 0)
1417
1417
  for (var l of e.deps) ;
1418
1418
  } finally {
1419
1419
  Si = i, oe = n;
@@ -1422,7 +1422,7 @@ function Wn(e) {
1422
1422
  }
1423
1423
  function a(e) {
1424
1424
  var t = (e.f & 2) !== 0;
1425
- if (Rl?.add(e), ae !== null && !xt && !(oe !== null && oe.f & 16384) && (yt === null || !jn.call(yt, e))) {
1425
+ if (Rl?.add(e), ae !== null && !xt && !(oe !== null && oe.f & 16384) && (yt === null || !Hn.call(yt, e))) {
1426
1426
  var n = ae.deps;
1427
1427
  if (ae.f & 2097152)
1428
1428
  e.rv < mn && (e.rv = mn, it === null && n !== null && n[lt] === e ? lt++ : it === null ? it = [e] : it.push(e));
@@ -1430,7 +1430,7 @@ function a(e) {
1430
1430
  var i;
1431
1431
  ((i = ae).deps ?? (i.deps = [])).push(e);
1432
1432
  var r = e.reactions;
1433
- r === null ? e.reactions = [ae] : jn.call(r, ae) || r.push(ae);
1433
+ r === null ? e.reactions = [ae] : Hn.call(r, ae) || r.push(ae);
1434
1434
  }
1435
1435
  }
1436
1436
  if (0) {
@@ -1446,25 +1446,25 @@ function a(e) {
1446
1446
  var c = e;
1447
1447
  if (dn) {
1448
1448
  var d = c.v;
1449
- return (!(c.f & 1024) && c.reactions !== null || As(c)) && (d = Nr(c)), sn.set(c, d), d;
1449
+ return (!(c.f & 1024) && c.reactions !== null || Rs(c)) && (d = Nr(c)), sn.set(c, d), d;
1450
1450
  }
1451
1451
  var f = (c.f & 512) === 0 && !xt && ae !== null && (Si || (ae.f & 512) !== 0), h = (c.f & Pr) === 0;
1452
- ui(c) && (f && (c.f |= 512), cs(c)), f && !h && (ds(c), xs(c));
1452
+ ui(c) && (f && (c.f |= 512), ds(c)), f && !h && (us(c), As(c));
1453
1453
  }
1454
1454
  if (rt?.has(e)) return rt.get(e);
1455
1455
  if (e.f & 8388608) throw e.v;
1456
1456
  return e.v;
1457
1457
  }
1458
- function xs(e) {
1458
+ function As(e) {
1459
1459
  if (e.f |= 512, e.deps !== null)
1460
1460
  for (const t of e.deps)
1461
- (t.reactions ?? (t.reactions = [])).push(e), t.f & 2 && !(t.f & 512) && (ds(t), xs(t));
1461
+ (t.reactions ?? (t.reactions = [])).push(e), t.f & 2 && !(t.f & 512) && (us(t), As(t));
1462
1462
  }
1463
- function As(e) {
1463
+ function Rs(e) {
1464
1464
  if (e.v === Ve) return !0;
1465
1465
  if (e.deps === null) return !1;
1466
1466
  for (const t of e.deps)
1467
- if (sn.has(t) || t.f & 2 && As(t)) return !0;
1467
+ if (sn.has(t) || t.f & 2 && Rs(t)) return !0;
1468
1468
  return !1;
1469
1469
  }
1470
1470
  function qn(e) {
@@ -1493,7 +1493,7 @@ function hr(e, t = /* @__PURE__ */ new Set()) {
1493
1493
  }
1494
1494
  const n = Cr(e);
1495
1495
  if (n !== Object.prototype && n !== Array.prototype && n !== Map.prototype && n !== Set.prototype && n !== Date.prototype) {
1496
- const i = Fo(n);
1496
+ const i = Ho(n);
1497
1497
  for (let r in i) {
1498
1498
  const o = i[r].get;
1499
1499
  if (o) try {
@@ -1504,7 +1504,7 @@ function hr(e, t = /* @__PURE__ */ new Set()) {
1504
1504
  }
1505
1505
  }
1506
1506
  }
1507
- var Bn = Symbol("events"), Rs = /* @__PURE__ */ new Set(), pr = /* @__PURE__ */ new Set();
1507
+ var Bn = Symbol("events"), Ms = /* @__PURE__ */ new Set(), pr = /* @__PURE__ */ new Set();
1508
1508
  function Nl(e, t, n, i = {}) {
1509
1509
  function r(o) {
1510
1510
  if (i.capture || mr.call(t, o), !o.cancelBubble) return Dr(() => n?.call(this, o));
@@ -1513,7 +1513,7 @@ function Nl(e, t, n, i = {}) {
1513
1513
  t.addEventListener(e, r, i);
1514
1514
  }) : t.addEventListener(e, r, i), r;
1515
1515
  }
1516
- function Ke(e, t, n, i, r) {
1516
+ function We(e, t, n, i, r) {
1517
1517
  var o = {
1518
1518
  capture: i,
1519
1519
  passive: r
@@ -1522,18 +1522,18 @@ function Ke(e, t, n, i, r) {
1522
1522
  t.removeEventListener(e, s, o);
1523
1523
  });
1524
1524
  }
1525
- function go(e, t, n) {
1525
+ function vo(e, t, n) {
1526
1526
  (t[Bn] ?? (t[Bn] = {}))[e] = n;
1527
1527
  }
1528
1528
  function zl(e) {
1529
- for (var t = 0; t < e.length; t++) Rs.add(e[t]);
1529
+ for (var t = 0; t < e.length; t++) Ms.add(e[t]);
1530
1530
  for (var n of pr) n(e);
1531
1531
  }
1532
- var vo = null;
1532
+ var yo = null;
1533
1533
  function mr(e) {
1534
1534
  var t = this, n = t.ownerDocument, i = e.type, r = e.composedPath?.() || [], o = r[0] || e.target;
1535
- vo = e;
1536
- var s = 0, l = vo === e && e[Bn];
1535
+ yo = e;
1536
+ var s = 0, l = yo === e && e[Bn];
1537
1537
  if (l) {
1538
1538
  var c = r.indexOf(l);
1539
1539
  if (c !== -1 && (t === document || t === window)) {
@@ -1600,7 +1600,7 @@ function we(e, t) {
1600
1600
  if (ie)
1601
1601
  return Tn(de, null), de;
1602
1602
  r === void 0 && (r = Fl(o ? e : "<!>" + e), n || (r = /* @__PURE__ */ cn(r)));
1603
- var s = i || ps ? document.importNode(r, !0) : r.cloneNode(!0);
1603
+ var s = i || ms ? document.importNode(r, !0) : r.cloneNode(!0);
1604
1604
  if (n) {
1605
1605
  var l = /* @__PURE__ */ cn(s), c = s.lastChild;
1606
1606
  Tn(l, c);
@@ -1622,7 +1622,7 @@ function pe(e, t) {
1622
1622
  }
1623
1623
  e !== null && e.before(t);
1624
1624
  }
1625
- var jl = [
1625
+ var Hl = [
1626
1626
  "allowfullscreen",
1627
1627
  "async",
1628
1628
  "autofocus",
@@ -1652,7 +1652,7 @@ var jl = [
1652
1652
  "disablepictureinpicture",
1653
1653
  "disableremoteplayback"
1654
1654
  ], bf = [
1655
- ...jl,
1655
+ ...Hl,
1656
1656
  "formNoValidate",
1657
1657
  "isMap",
1658
1658
  "noModule",
@@ -1667,17 +1667,17 @@ var jl = [
1667
1667
  "allowFullscreen",
1668
1668
  "disablePictureInPicture",
1669
1669
  "disableRemotePlayback"
1670
- ], Hl = ["touchstart", "touchmove"];
1670
+ ], jl = ["touchstart", "touchmove"];
1671
1671
  function Vl(e) {
1672
- return Hl.includes(e);
1672
+ return jl.includes(e);
1673
1673
  }
1674
- var Kl = [
1674
+ var Wl = [
1675
1675
  "$state",
1676
1676
  "$state.raw",
1677
1677
  "$derived",
1678
1678
  "$derived.by"
1679
1679
  ], If = [
1680
- ...Kl,
1680
+ ...Wl,
1681
1681
  "$state.eager",
1682
1682
  "$state.snapshot",
1683
1683
  "$props",
@@ -1692,25 +1692,25 @@ var Kl = [
1692
1692
  "$inspect().with",
1693
1693
  "$inspect.trace",
1694
1694
  "$host"
1695
- ], Wl = [
1695
+ ], Kl = [
1696
1696
  "textarea",
1697
1697
  "script",
1698
1698
  "style",
1699
1699
  "title"
1700
1700
  ];
1701
1701
  function $l(e) {
1702
- return Wl.includes(e);
1702
+ return Kl.includes(e);
1703
1703
  }
1704
1704
  var gr = !0;
1705
1705
  function vi(e) {
1706
1706
  gr = e;
1707
1707
  }
1708
- function Ms(e, t) {
1708
+ function Os(e, t) {
1709
1709
  var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
1710
1710
  n !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = n, e.nodeValue = `${n}`);
1711
1711
  }
1712
- function Os(e, t) {
1713
- return Ls(e, t);
1712
+ function Ls(e, t) {
1713
+ return Ns(e, t);
1714
1714
  }
1715
1715
  function ql(e, t) {
1716
1716
  fr(), t.intro = t.intro ?? !1;
@@ -1718,8 +1718,8 @@ function ql(e, t) {
1718
1718
  try {
1719
1719
  for (var o = /* @__PURE__ */ cn(n); o && (o.nodeType !== 8 || o.data !== "["); ) o = /* @__PURE__ */ Bt(o);
1720
1720
  if (!o) throw Fn;
1721
- ct(!0), We(o);
1722
- const s = Ls(e, {
1721
+ ct(!0), Ke(o);
1722
+ const s = Ns(e, {
1723
1723
  ...t,
1724
1724
  anchor: o
1725
1725
  });
@@ -1727,13 +1727,13 @@ function ql(e, t) {
1727
1727
  } catch (s) {
1728
1728
  if (s instanceof Error && s.message.split(`
1729
1729
  `).some((l) => l.startsWith("https://svelte.dev/e/"))) throw s;
1730
- return s !== Fn && console.warn("Failed to hydrate: ", s), t.recover === !1 && qa(), fr(), vs(n), ct(!1), Os(e, t);
1730
+ return s !== Fn && console.warn("Failed to hydrate: ", s), t.recover === !1 && qa(), fr(), ys(n), ct(!1), Ls(e, t);
1731
1731
  } finally {
1732
- ct(i), We(r);
1732
+ ct(i), Ke(r);
1733
1733
  }
1734
1734
  }
1735
1735
  var yi = /* @__PURE__ */ new Map();
1736
- function Ls(e, { target: t, anchor: n, props: i = {}, events: r, context: o, intro: s = !0, transformError: l }) {
1736
+ function Ns(e, { target: t, anchor: n, props: i = {}, events: r, context: o, intro: s = !0, transformError: l }) {
1737
1737
  fr();
1738
1738
  var c = void 0, d = Pl(() => {
1739
1739
  var f = n ?? t.appendChild(dt());
@@ -1760,7 +1760,7 @@ function Ls(e, { target: t, anchor: n, props: i = {}, events: r, context: o, int
1760
1760
  }
1761
1761
  }
1762
1762
  };
1763
- return u(Ni(Rs)), pr.add(u), () => {
1763
+ return u(Ni(Ms)), pr.add(u), () => {
1764
1764
  for (var y of h) for (const w of [t, document]) {
1765
1765
  var v = yi.get(w), k = v.get(y);
1766
1766
  --k == 0 ? (w.removeEventListener(y, mr), v.delete(y), v.size === 0 && yi.delete(w)) : v.set(y, k);
@@ -1775,7 +1775,7 @@ function Ul(e, t) {
1775
1775
  const n = vr.get(e);
1776
1776
  return n ? (vr.delete(e), n(t)) : Promise.resolve();
1777
1777
  }
1778
- var Vt = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), _t = /* @__PURE__ */ new WeakMap(), Yn = /* @__PURE__ */ new WeakMap(), Zi = /* @__PURE__ */ new WeakMap(), Qi = /* @__PURE__ */ new WeakMap(), yo = /* @__PURE__ */ new WeakMap(), Ns = class {
1778
+ var Vt = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), _t = /* @__PURE__ */ new WeakMap(), Yn = /* @__PURE__ */ new WeakMap(), Zi = /* @__PURE__ */ new WeakMap(), Qi = /* @__PURE__ */ new WeakMap(), bo = /* @__PURE__ */ new WeakMap(), zs = class {
1779
1779
  constructor(e, t = !0) {
1780
1780
  I(this, "anchor", void 0), se(this, Vt, /* @__PURE__ */ new Map()), se(this, Jt, /* @__PURE__ */ new Map()), se(this, _t, /* @__PURE__ */ new Map()), se(this, Yn, /* @__PURE__ */ new Set()), se(this, Zi, !0), se(this, Qi, (n) => {
1781
1781
  if (S(Vt, this).has(n)) {
@@ -1796,7 +1796,7 @@ var Vt = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), _t =
1796
1796
  const c = () => {
1797
1797
  if (Array.from(S(Vt, this).values()).includes(s)) {
1798
1798
  var d = document.createDocumentFragment();
1799
- Kr(l, d), d.append(dt()), S(_t, this).set(s, {
1799
+ Wr(l, d), d.append(dt()), S(_t, this).set(s, {
1800
1800
  effect: l,
1801
1801
  fragment: d
1802
1802
  });
@@ -1806,14 +1806,14 @@ var Vt = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), _t =
1806
1806
  S(Zi, this) || !r ? (S(Yn, this).add(s), Rn(l, c, !1)) : c();
1807
1807
  }
1808
1808
  }
1809
- }), se(this, yo, (n) => {
1809
+ }), se(this, bo, (n) => {
1810
1810
  S(Vt, this).delete(n);
1811
1811
  const i = Array.from(S(Vt, this).values());
1812
1812
  for (const [r, o] of S(_t, this)) i.includes(r) || (Ze(o.effect), S(_t, this).delete(r));
1813
1813
  }), this.anchor = e, ne(Zi, this, t);
1814
1814
  }
1815
1815
  ensure(e, t) {
1816
- var n = be, i = ys();
1816
+ var n = be, i = bs();
1817
1817
  if (t && !S(Jt, this).has(e) && !S(_t, this).has(e)) if (i) {
1818
1818
  var r = document.createDocumentFragment(), o = dt();
1819
1819
  r.append(o), S(_t, this).set(e, {
@@ -1824,7 +1824,7 @@ var Vt = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), _t =
1824
1824
  if (S(Vt, this).set(n, e), i) {
1825
1825
  for (const [s, l] of S(Jt, this)) s === e ? n.unskip_effect(l) : n.skip_effect(l);
1826
1826
  for (const [s, l] of S(_t, this)) s === e ? n.unskip_effect(l.effect) : n.skip_effect(l.effect);
1827
- n.oncommit(S(Qi, this)), n.ondiscard(S(yo, this));
1827
+ n.oncommit(S(Qi, this)), n.ondiscard(S(bo, this));
1828
1828
  } else
1829
1829
  ie && (this.anchor = de), S(Qi, this).call(this, n);
1830
1830
  }
@@ -1868,19 +1868,19 @@ function Xl(e) {
1868
1868
  function At(e, t, n = !1) {
1869
1869
  var i;
1870
1870
  ie && (i = de, Cn());
1871
- var r = new Ns(e), o = n ? zi : 0;
1871
+ var r = new zs(e), o = n ? zi : 0;
1872
1872
  function s(l, c) {
1873
1873
  if (ie) {
1874
1874
  var d = Ko(i);
1875
1875
  if (l !== parseInt(d.substring(1))) {
1876
1876
  var f = Pi();
1877
- We(f), r.anchor = f, ct(!1), r.ensure(l, c), ct(!0);
1877
+ Ke(f), r.anchor = f, ct(!1), r.ensure(l, c), ct(!0);
1878
1878
  return;
1879
1879
  }
1880
1880
  }
1881
1881
  r.ensure(l, c);
1882
1882
  }
1883
- Hi(() => {
1883
+ ji(() => {
1884
1884
  var l = !1;
1885
1885
  t((c, d = 0) => {
1886
1886
  l = !0, s(d, c);
@@ -1903,7 +1903,7 @@ function Jl(e, t, n) {
1903
1903
  var c = i.length === 0 && n !== null;
1904
1904
  if (c) {
1905
1905
  var d = n, f = d.parentNode;
1906
- vs(f), f.append(d), e.items.clear();
1906
+ ys(f), f.append(d), e.items.clear();
1907
1907
  }
1908
1908
  yr(e, t, !c);
1909
1909
  } else
@@ -1920,15 +1920,15 @@ function yr(e, t, n = !0) {
1920
1920
  }
1921
1921
  for (var r = 0; r < t.length; r++) {
1922
1922
  var o = t[r];
1923
- i?.has(o) ? (o.f |= Qn, Kr(o, document.createDocumentFragment())) : Ze(t[r], n);
1923
+ i?.has(o) ? (o.f |= Qn, Wr(o, document.createDocumentFragment())) : Ze(t[r], n);
1924
1924
  }
1925
1925
  }
1926
1926
  var bi;
1927
- function zs(e, t, n, i, r, o = null) {
1927
+ function Ds(e, t, n, i, r, o = null) {
1928
1928
  var s = e, l = /* @__PURE__ */ new Map();
1929
1929
  if (t & 4) {
1930
1930
  var c = e;
1931
- s = ie ? We(/* @__PURE__ */ cn(c)) : c.appendChild(dt());
1931
+ s = ie ? Ke(/* @__PURE__ */ cn(c)) : c.appendChild(dt());
1932
1932
  }
1933
1933
  ie && Cn();
1934
1934
  var d = null, f = /* @__PURE__ */ Lr(() => {
@@ -1944,20 +1944,20 @@ function zs(e, t, n, i, r, o = null) {
1944
1944
  w.pending.delete(g);
1945
1945
  }
1946
1946
  var w = {
1947
- effect: Hi(() => {
1947
+ effect: ji(() => {
1948
1948
  h = a(f);
1949
1949
  var g = h.length;
1950
1950
  let D = !1;
1951
- ie && Ko(s) === "[!" != (g === 0) && (s = Pi(), We(s), ct(!1), D = !0);
1952
- for (var A = /* @__PURE__ */ new Set(), O = be, C = ys(), L = 0; L < g; L += 1) {
1951
+ ie && Ko(s) === "[!" != (g === 0) && (s = Pi(), Ke(s), ct(!1), D = !0);
1952
+ for (var A = /* @__PURE__ */ new Set(), O = be, C = bs(), L = 0; L < g; L += 1) {
1953
1953
  ie && de.nodeType === 8 && de.data === "]" && (s = de, D = !0, ct(!1));
1954
1954
  var R = h[L], z = i(R, L);
1955
1955
  if (0)
1956
1956
  var q;
1957
1957
  var V = y ? null : l.get(z);
1958
- V ? (V.v && Kn(V.v, R), V.i && Kn(V.i, L), C && O.unskip_effect(V.e)) : (V = Ql(l, y ? s : bi ?? (bi = dt()), R, z, L, r, t, n), y || (V.e.f |= Qn), l.set(z, V)), A.add(z);
1958
+ V ? (V.v && Wn(V.v, R), V.i && Wn(V.i, L), C && O.unskip_effect(V.e)) : (V = Ql(l, y ? s : bi ?? (bi = dt()), R, z, L, r, t, n), y || (V.e.f |= Qn), l.set(z, V)), A.add(z);
1959
1959
  }
1960
- if (g === 0 && o && !d && (y ? d = It(() => o(s)) : (d = It(() => o(bi ?? (bi = dt()))), d.f |= Qn)), g > A.size && Ha("", "", ""), ie && g > 0 && We(Pi()), !y)
1960
+ if (g === 0 && o && !d && (y ? d = It(() => o(s)) : (d = It(() => o(bi ?? (bi = dt()))), d.f |= Qn)), g > A.size && ja("", "", ""), ie && g > 0 && Ke(Pi()), !y)
1961
1961
  if (u.set(O, A), C) {
1962
1962
  for (const [X, G] of l) A.has(X) || O.skip_effect(G.e);
1963
1963
  O.oncommit(v), O.ondiscard(k);
@@ -2035,7 +2035,7 @@ function Zl(e, t, n, i, r) {
2035
2035
  });
2036
2036
  }
2037
2037
  function Ql(e, t, n, i, r, o, s, l) {
2038
- var c = s & 1 ? s & 16 ? kn(n) : /* @__PURE__ */ fs(n, !1, !1) : null, d = s & 2 ? kn(r) : null;
2038
+ var c = s & 1 ? s & 16 ? kn(n) : /* @__PURE__ */ hs(n, !1, !1) : null, d = s & 2 ? kn(r) : null;
2039
2039
  return {
2040
2040
  v: c,
2041
2041
  i: d,
@@ -2061,16 +2061,16 @@ function On(e, t, n, i, r) {
2061
2061
  o === !0 && (o = t[n === "default" ? "children" : n], s = !0), o === void 0 ? r !== null && r(e) : o(e, s ? () => i : i);
2062
2062
  }
2063
2063
  var ec = null;
2064
- function bo(e) {
2064
+ function Io(e) {
2065
2065
  ec = e;
2066
2066
  }
2067
- function Ds(e, t, n, i, r, o) {
2067
+ function Bs(e, t, n, i, r, o) {
2068
2068
  let s = ie;
2069
2069
  ie && Cn();
2070
2070
  var l = !1, c = null;
2071
2071
  ie && de.nodeType === 1 && (c = de, Cn());
2072
- var d = ie ? de : e, f = oe, h = new Ns(d, !1);
2073
- Hi(() => {
2072
+ var d = ie ? de : e, f = oe, h = new zs(d, !1);
2073
+ ji(() => {
2074
2074
  const u = t() || null;
2075
2075
  var y = r ? r() : n || u === "svg" ? Ea : void 0;
2076
2076
  if (u === null) {
@@ -2082,20 +2082,20 @@ function Ds(e, t, n, i, r, o) {
2082
2082
  if (c = ie ? c : Fi(u, y), Tn(c, c), i) {
2083
2083
  ie && $l(u) && c.append(document.createComment(""));
2084
2084
  var k = ie ? /* @__PURE__ */ cn(c) : c.appendChild(dt());
2085
- ie && (k === null ? ct(!1) : We(k)), bo(f), i(c, k), bo(null);
2085
+ ie && (k === null ? ct(!1) : Ke(k)), Io(f), i(c, k), Io(null);
2086
2086
  }
2087
2087
  oe.nodes.end = c, v.before(c);
2088
2088
  }
2089
- ie && We(v);
2089
+ ie && Ke(v);
2090
2090
  }), vi(!0), () => {
2091
2091
  u && vi(!1);
2092
2092
  };
2093
2093
  }, zi), Fr(() => {
2094
2094
  vi(!0);
2095
- }), s && (ct(!0), We(d));
2095
+ }), s && (ct(!0), Ke(d));
2096
2096
  }
2097
2097
  function st(e, t) {
2098
- jr(() => {
2098
+ Hr(() => {
2099
2099
  var n = e.getRootNode(), i = n.host ? n : n.head ?? n.ownerDocument.head;
2100
2100
  if (!i.querySelector("#" + t.hash)) {
2101
2101
  const r = Fi("style");
@@ -2103,20 +2103,20 @@ function st(e, t) {
2103
2103
  }
2104
2104
  });
2105
2105
  }
2106
- function Bs(e, t, n) {
2107
- jr(() => {
2106
+ function Fs(e, t, n) {
2107
+ Hr(() => {
2108
2108
  var i = qn(() => t(e, n?.()) || {});
2109
2109
  if (n && i?.update) {
2110
2110
  var r = !1, o = {};
2111
- ji(() => {
2111
+ Hi(() => {
2112
2112
  var s = n();
2113
- Ll(s), r && $o(o, s) && (o = s, i.update(s));
2113
+ Ll(s), r && qo(o, s) && (o = s, i.update(s));
2114
2114
  }), r = !0;
2115
2115
  }
2116
2116
  if (i?.destroy) return () => i.destroy();
2117
2117
  });
2118
2118
  }
2119
- var Io = [...`
2119
+ var So = [...`
2120
2120
  \r\f \v\uFEFF`];
2121
2121
  function tc(e, t, n) {
2122
2122
  var i = e == null ? "" : "" + e;
@@ -2125,12 +2125,12 @@ function tc(e, t, n) {
2125
2125
  else if (i.length)
2126
2126
  for (var o = r.length, s = 0; (s = i.indexOf(r, s)) >= 0; ) {
2127
2127
  var l = s + o;
2128
- (s === 0 || Io.includes(i[s - 1])) && (l === i.length || Io.includes(i[l])) ? i = (s === 0 ? "" : i.substring(0, s)) + i.substring(l + 1) : s = l;
2128
+ (s === 0 || So.includes(i[s - 1])) && (l === i.length || So.includes(i[l])) ? i = (s === 0 ? "" : i.substring(0, s)) + i.substring(l + 1) : s = l;
2129
2129
  }
2130
2130
  }
2131
2131
  return i === "" ? null : i;
2132
2132
  }
2133
- function So(e, t = !1) {
2133
+ function wo(e, t = !1) {
2134
2134
  var n = t ? " !important;" : ";", i = "";
2135
2135
  for (var r of Object.keys(e)) {
2136
2136
  var o = e[r];
@@ -2168,7 +2168,7 @@ function nc(e, t) {
2168
2168
  }
2169
2169
  }
2170
2170
  }
2171
- return i && (n += So(i)), r && (n += So(r, !0)), n = n.trim(), n === "" ? null : n;
2171
+ return i && (n += wo(i)), r && (n += wo(r, !0)), n = n.trim(), n === "" ? null : n;
2172
2172
  }
2173
2173
  return e == null ? null : String(e);
2174
2174
  }
@@ -2204,14 +2204,14 @@ function gt(e, t, n, i) {
2204
2204
  i || void 0;
2205
2205
  return;
2206
2206
  }
2207
- r[t] !== (r[t] = n) && (t === "loading" && (e[Da] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && Fs(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
2207
+ r[t] !== (r[t] = n) && (t === "loading" && (e[Da] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && Hs(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
2208
2208
  }
2209
2209
  function P(e, t, n) {
2210
2210
  var i = ae, r = oe;
2211
2211
  let o = ie;
2212
2212
  ie && ct(!1), ot(null), St(null);
2213
2213
  try {
2214
- t !== "style" && (br.has(e.getAttribute("is") || e.nodeName) || !customElements || customElements.get(e.getAttribute("is") || e.nodeName.toLowerCase()) ? Fs(e).includes(t) : n && typeof n == "object") ? e[t] = n : gt(e, t, n == null ? n : String(n));
2214
+ t !== "style" && (br.has(e.getAttribute("is") || e.nodeName) || !customElements || customElements.get(e.getAttribute("is") || e.nodeName.toLowerCase()) ? Hs(e).includes(t) : n && typeof n == "object") ? e[t] = n : gt(e, t, n == null ? n : String(n));
2215
2215
  } finally {
2216
2216
  ot(i), St(r), o && ct(!0);
2217
2217
  }
@@ -2223,30 +2223,30 @@ function ac(e) {
2223
2223
  });
2224
2224
  }
2225
2225
  var br = /* @__PURE__ */ new Map();
2226
- function Fs(e) {
2226
+ function Hs(e) {
2227
2227
  var t = e.getAttribute("is") || e.nodeName, n = br.get(t);
2228
2228
  if (n) return n;
2229
2229
  br.set(t, n = []);
2230
2230
  for (var i, r = e, o = Element.prototype; o !== r; ) {
2231
- i = Fo(r);
2231
+ i = Ho(r);
2232
2232
  for (var s in i) i[s].set && n.push(s);
2233
2233
  r = Cr(r);
2234
2234
  }
2235
2235
  return n;
2236
2236
  }
2237
- var js, Dn = /* @__PURE__ */ new WeakMap(), Ri = /* @__PURE__ */ new WeakMap(), nr = /* @__PURE__ */ new WeakMap(), wo = /* @__PURE__ */ new WeakSet(), Hs = class {
2237
+ var js, Dn = /* @__PURE__ */ new WeakMap(), Ri = /* @__PURE__ */ new WeakMap(), nr = /* @__PURE__ */ new WeakMap(), To = /* @__PURE__ */ new WeakSet(), Vs = class {
2238
2238
  constructor(e) {
2239
- Rr(this, wo), se(this, Dn, /* @__PURE__ */ new WeakMap()), se(this, Ri, void 0), se(this, nr, void 0), ne(nr, this, e);
2239
+ Rr(this, To), se(this, Dn, /* @__PURE__ */ new WeakMap()), se(this, Ri, void 0), se(this, nr, void 0), ne(nr, this, e);
2240
2240
  }
2241
2241
  observe(e, t) {
2242
2242
  var n = S(Dn, this).get(e) || /* @__PURE__ */ new Set();
2243
- return n.add(t), S(Dn, this).set(e, n), ke(wo, this, lc).call(this).observe(e, S(nr, this)), () => {
2243
+ return n.add(t), S(Dn, this).set(e, n), ke(To, this, lc).call(this).observe(e, S(nr, this)), () => {
2244
2244
  var i = S(Dn, this).get(e);
2245
2245
  i.delete(t), i.size === 0 && (S(Dn, this).delete(e), S(Ri, this).unobserve(e));
2246
2246
  };
2247
2247
  }
2248
2248
  };
2249
- js = Hs;
2249
+ js = Vs;
2250
2250
  function lc() {
2251
2251
  return S(Ri, this) ?? ne(Ri, this, new ResizeObserver((e) => {
2252
2252
  for (var t of e) {
@@ -2255,23 +2255,23 @@ function lc() {
2255
2255
  }
2256
2256
  }));
2257
2257
  }
2258
- I(Hs, "entries", /* @__PURE__ */ new WeakMap());
2259
- function To(e, t) {
2258
+ I(Vs, "entries", /* @__PURE__ */ new WeakMap());
2259
+ function _o(e, t) {
2260
2260
  return e === t || e?.[yn] === t;
2261
2261
  }
2262
2262
  function Ue(e = {}, t, n, i) {
2263
2263
  var r = Oe.r, o = oe;
2264
- return jr(() => {
2264
+ return Hr(() => {
2265
2265
  var s, l;
2266
- return ji(() => {
2266
+ return Hi(() => {
2267
2267
  s = l, l = i?.() || [], qn(() => {
2268
- e !== n(...l) && (t(e, ...l), s && To(n(...s), e) && t(null, ...s));
2268
+ e !== n(...l) && (t(e, ...l), s && _o(n(...s), e) && t(null, ...s));
2269
2269
  });
2270
2270
  }), () => {
2271
2271
  let c = o;
2272
2272
  for (; c !== r && c.parent !== null && c.parent.f & 33554432; ) c = c.parent;
2273
2273
  const d = () => {
2274
- l && To(n(...l), e) && t(null, ...l);
2274
+ l && _o(n(...l), e) && t(null, ...l);
2275
2275
  }, f = c.teardown;
2276
2276
  c.teardown = () => {
2277
2277
  d(), f?.();
@@ -2283,7 +2283,7 @@ function m(e, t, n, i) {
2283
2283
  var r = !ci || (n & 2) !== 0, o = (n & 8) !== 0, s = (n & 16) !== 0, l = i, c = !0, d = () => (c && (c = !1, l = s ? qn(i) : i), l);
2284
2284
  let f;
2285
2285
  if (o) {
2286
- var h = yn in e || Ho in e;
2286
+ var h = yn in e || Vo in e;
2287
2287
  f = vn(e, t)?.set ?? (h && t in e ? (A) => e[t] = A : void 0);
2288
2288
  }
2289
2289
  var u, y = !1;
@@ -2308,7 +2308,7 @@ function m(e, t, n, i) {
2308
2308
  return function(A, O) {
2309
2309
  if (arguments.length > 0) {
2310
2310
  const C = O ? a(g) : r && o ? on(A) : A;
2311
- return H(g, C), w = !0, l !== void 0 && (l = C), A;
2311
+ return j(g, C), w = !0, l !== void 0 && (l = C), A;
2312
2312
  }
2313
2313
  return dn && w || D.f & 16384 ? g.v : a(g);
2314
2314
  };
@@ -2320,7 +2320,7 @@ var fn = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), dc =
2320
2320
  constructor(e) {
2321
2321
  se(this, fn, void 0), se(this, Mt, void 0);
2322
2322
  var t = /* @__PURE__ */ new Map(), n = (r, o) => {
2323
- var s = /* @__PURE__ */ fs(o, !1, !1);
2323
+ var s = /* @__PURE__ */ hs(o, !1, !1);
2324
2324
  return t.set(r, s), s;
2325
2325
  };
2326
2326
  const i = new Proxy({
@@ -2331,13 +2331,13 @@ var fn = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), dc =
2331
2331
  return a(t.get(o) ?? n(o, Reflect.get(r, o)));
2332
2332
  },
2333
2333
  has(r, o) {
2334
- return o === Ho ? !0 : (a(t.get(o) ?? n(o, Reflect.get(r, o))), Reflect.has(r, o));
2334
+ return o === Vo ? !0 : (a(t.get(o) ?? n(o, Reflect.get(r, o))), Reflect.has(r, o));
2335
2335
  },
2336
2336
  set(r, o, s) {
2337
- return H(t.get(o) ?? n(o, s), s), Reflect.set(r, o, s);
2337
+ return j(t.get(o) ?? n(o, s), s), Reflect.set(r, o, s);
2338
2338
  }
2339
2339
  });
2340
- ne(Mt, this, (e.hydrate ? ql : Os)(e.component, {
2340
+ ne(Mt, this, (e.hydrate ? ql : Ls)(e.component, {
2341
2341
  target: e.target,
2342
2342
  anchor: e.anchor,
2343
2343
  props: i,
@@ -2375,8 +2375,8 @@ var fn = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), dc =
2375
2375
  $destroy() {
2376
2376
  S(Mt, this).$destroy();
2377
2377
  }
2378
- }, Vs;
2379
- typeof HTMLElement == "function" && (Vs = class extends HTMLElement {
2378
+ }, Ws;
2379
+ typeof HTMLElement == "function" && (Ws = class extends HTMLElement {
2380
2380
  constructor(e, t, n) {
2381
2381
  super(), I(this, "$$ctor", void 0), I(this, "$$s", void 0), I(this, "$$c", void 0), I(this, "$$cn", !1), I(this, "$$d", {}), I(this, "$$r", !1), I(this, "$$p_d", {}), I(this, "$$l", {}), I(this, "$$l_u", /* @__PURE__ */ new Map()), I(this, "$$me", void 0), I(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, n && (this.$$shadowRoot = this.attachShadow(n));
2382
2382
  }
@@ -2418,7 +2418,7 @@ typeof HTMLElement == "function" && (Vs = class extends HTMLElement {
2418
2418
  $$host: this
2419
2419
  }
2420
2420
  }), this.$$me = kl(() => {
2421
- ji(() => {
2421
+ Hi(() => {
2422
2422
  this.$$r = !0;
2423
2423
  for (const i of _i(this.$$c)) {
2424
2424
  if (!this.$$p_d[i]?.reflect) continue;
@@ -2481,7 +2481,7 @@ function uc(e) {
2481
2481
  }), t;
2482
2482
  }
2483
2483
  function et(e, t, n, i, r, o) {
2484
- let s = class extends Vs {
2484
+ let s = class extends Ws {
2485
2485
  constructor() {
2486
2486
  super(e, n, r), this.$$p_d = t;
2487
2487
  }
@@ -2506,7 +2506,7 @@ function et(e, t, n, i, r, o) {
2506
2506
  } });
2507
2507
  }), o && (s = o(s)), e.element = s, s;
2508
2508
  }
2509
- var Ki = class extends Event {
2509
+ var Wi = class extends Event {
2510
2510
  constructor(e, t, n, i) {
2511
2511
  super("context-request", {
2512
2512
  bubbles: !0,
@@ -2536,11 +2536,11 @@ var Ki = class extends Event {
2536
2536
  return this.currentValue;
2537
2537
  }
2538
2538
  requestValue() {
2539
- this.host.dispatchEvent(new Ki(this.context, this.host, this.handleValue, this.subscribe));
2539
+ this.host.dispatchEvent(new Wi(this.context, this.host, this.handleValue, this.subscribe));
2540
2540
  }
2541
2541
  }, hc = (e, t) => {
2542
2542
  let n;
2543
- return e.dispatchEvent(new Ki(t, e, (i) => {
2543
+ return e.dispatchEvent(new Wi(t, e, (i) => {
2544
2544
  n = i;
2545
2545
  }, !1)), n;
2546
2546
  }, Pn = class {
@@ -2566,7 +2566,7 @@ var Ki = class extends Event {
2566
2566
  if (n.context !== this.context || this.getContextTarget(n, this.host) === this.host) return;
2567
2567
  const i = /* @__PURE__ */ new Set();
2568
2568
  for (const [r, { consumerHost: o }] of this.subscriptions)
2569
- i.has(r) || (i.add(r), o.dispatchEvent(new Ki(this.context, o, r, !0)));
2569
+ i.has(r) || (i.add(r), o.dispatchEvent(new Wi(this.context, o, r, !0)));
2570
2570
  n.stopPropagation();
2571
2571
  }), this.host = e, this.context = t.context, this.currentValue = t.initialValue;
2572
2572
  }
@@ -2615,7 +2615,7 @@ var Ki = class extends Event {
2615
2615
  this.pendingByContext.delete(t.context);
2616
2616
  for (const i of n.requests) {
2617
2617
  const r = i.requestorRef.deref(), o = i.callbackRef.deref();
2618
- !r || !o || r.dispatchEvent(new Ki(t.context, r, o, !0));
2618
+ !r || !o || r.dispatchEvent(new Wi(t.context, r, o, !0));
2619
2619
  }
2620
2620
  }
2621
2621
  }), this.host = e;
@@ -2626,7 +2626,7 @@ var Ki = class extends Event {
2626
2626
  detach() {
2627
2627
  this.attached && (this.attached = !1, this.host.removeEventListener("context-request", this.onContextRequest), this.host.removeEventListener("context-provider", this.onContextProvider), this.pendingByContext.clear());
2628
2628
  }
2629
- }, fi = (e) => e, mc = fi(Symbol.for("pie.assessmentToolkit.runtimeContext")), Ir = fi(Symbol.for("pie.assessmentToolkit.hostRuntimeContext")), Ws = fi(Symbol.for("pie.assessmentToolkit.shellContext")), $s = fi(Symbol.for("pie.assessmentToolkit.regionScopeContext"));
2629
+ }, fi = (e) => e, mc = fi(Symbol.for("pie.assessmentToolkit.runtimeContext")), Ir = fi(Symbol.for("pie.assessmentToolkit.hostRuntimeContext")), $s = fi(Symbol.for("pie.assessmentToolkit.shellContext")), qs = fi(Symbol.for("pie.assessmentToolkit.regionScopeContext"));
2630
2630
  function gc(e, t, n) {
2631
2631
  let i = !1;
2632
2632
  const r = new Ks(e, {
@@ -2656,7 +2656,7 @@ function gc(e, t, n) {
2656
2656
  function vc(e, t) {
2657
2657
  return gc(e, Ir, t);
2658
2658
  }
2659
- var Wr = "pie-register", $r = "pie-unregister", qs = "pie-item-session-changed", yc = "item-session-changed", bc = "pie-content-loaded", Ic = "pie-item-player-error", Sc = {
2659
+ var Kr = "pie-register", $r = "pie-unregister", Us = "pie-item-session-changed", yc = "item-session-changed", bc = "pie-content-loaded", Ic = "pie-item-player-error", Sc = {
2660
2660
  bubbles: !0,
2661
2661
  composed: !0,
2662
2662
  cancelable: !1
@@ -3270,12 +3270,12 @@ var kc = class {
3270
3270
  }
3271
3271
  }
3272
3272
  };
3273
- function Us(e) {
3273
+ function Gs(e) {
3274
3274
  return (...t) => {
3275
3275
  console.debug(`[${e}]`, ...t);
3276
3276
  };
3277
3277
  }
3278
- var Sf = Us("I18nService"), ir = {
3278
+ var Sf = Gs("I18nService"), ir = {
3279
3279
  assessment: [],
3280
3280
  section: [],
3281
3281
  item: [],
@@ -3324,7 +3324,7 @@ function Ac(e) {
3324
3324
  for (const [n, i] of Object.entries(e)) t[n] = xc(n, i);
3325
3325
  return t;
3326
3326
  }
3327
- function Gs(e) {
3327
+ function Ys(e) {
3328
3328
  const t = e.trim();
3329
3329
  return t || "";
3330
3330
  }
@@ -3333,7 +3333,7 @@ function vt(e) {
3333
3333
  const t = /* @__PURE__ */ new Set();
3334
3334
  for (const n of e) {
3335
3335
  if (typeof n != "string") throw new Error("Invalid tools config: tool list entries must be strings.");
3336
- const i = Gs(n);
3336
+ const i = Ys(n);
3337
3337
  i && t.add(i);
3338
3338
  }
3339
3339
  return Array.from(t);
@@ -3357,7 +3357,7 @@ function gn(e) {
3357
3357
  providers: i
3358
3358
  };
3359
3359
  }
3360
- function Ys(e, t) {
3360
+ function Xs(e, t) {
3361
3361
  const n = vt(e.placement[t]), i = vt(e.policy.allowed), r = new Set(vt(e.policy.blocked));
3362
3362
  return (i.length === 0 ? n : n.filter((o) => i.includes(o))).filter((o) => !r.has(o));
3363
3363
  }
@@ -3372,7 +3372,7 @@ var Rc = [
3372
3372
  function Ti(e, t) {
3373
3373
  if (typeof e != "string" || e.trim().length === 0) throw new Error(`Invalid tool registration: "${t}" must be a non-empty string.`);
3374
3374
  }
3375
- function _o(e) {
3375
+ function Co(e) {
3376
3376
  if (Ti(e.toolId, "toolId"), Ti(e.name, "name"), Ti(e.description, "description"), typeof e.icon != "string" && typeof e.icon != "function") throw new Error(`Invalid tool registration "${e.toolId}": "icon" must be a string or function.`);
3377
3377
  if (!Array.isArray(e.supportedLevels) || e.supportedLevels.length === 0) throw new Error(`Invalid tool registration "${e.toolId}": "supportedLevels" must be a non-empty array.`);
3378
3378
  const t = e.supportedLevels.find((n) => !Rc.includes(n));
@@ -3389,18 +3389,18 @@ var Mc = class {
3389
3389
  I(this, "tools", /* @__PURE__ */ new Map()), I(this, "pnpIndex", /* @__PURE__ */ new Map()), I(this, "componentOverrides", {}), I(this, "moduleLoaders", /* @__PURE__ */ new Map()), I(this, "loadedToolModules", /* @__PURE__ */ new Set()), I(this, "moduleLoadPromises", /* @__PURE__ */ new Map());
3390
3390
  }
3391
3391
  normalizeToolId(e) {
3392
- return Gs(e);
3392
+ return Ys(e);
3393
3393
  }
3394
3394
  normalizeToolIds(e) {
3395
3395
  return e.map((t) => this.normalizeToolId(t));
3396
3396
  }
3397
3397
  register(e) {
3398
- if (_o(e), this.tools.has(e.toolId)) throw new Error(`Tool '${e.toolId}' is already registered`);
3398
+ if (Co(e), this.tools.has(e.toolId)) throw new Error(`Tool '${e.toolId}' is already registered`);
3399
3399
  if (this.tools.set(e.toolId, e), e.pnpSupportIds) for (const t of e.pnpSupportIds)
3400
3400
  this.pnpIndex.has(t) || this.pnpIndex.set(t, /* @__PURE__ */ new Set()), this.pnpIndex.get(t).add(e.toolId);
3401
3401
  }
3402
3402
  override(e) {
3403
- if (_o(e), !this.tools.has(e.toolId)) throw new Error(`Cannot override non-existent tool '${e.toolId}'`);
3403
+ if (Co(e), !this.tools.has(e.toolId)) throw new Error(`Cannot override non-existent tool '${e.toolId}'`);
3404
3404
  const t = this.tools.get(e.toolId);
3405
3405
  if (t.pnpSupportIds) for (const n of t.pnpSupportIds) this.pnpIndex.get(n)?.delete(e.toolId);
3406
3406
  if (this.tools.set(e.toolId, e), e.pnpSupportIds) for (const n of e.pnpSupportIds)
@@ -3527,7 +3527,7 @@ var Mc = class {
3527
3527
  return i.renderToolbar(t, r);
3528
3528
  }
3529
3529
  };
3530
- function Xs(e) {
3530
+ function Js(e) {
3531
3531
  return e.level === "item";
3532
3532
  }
3533
3533
  function Oc(e) {
@@ -3536,11 +3536,11 @@ function Oc(e) {
3536
3536
  function Lc(e) {
3537
3537
  return e.level === "rubric";
3538
3538
  }
3539
- function Js(e) {
3539
+ function Zs(e) {
3540
3540
  return e.level === "element";
3541
3541
  }
3542
3542
  function qr(e) {
3543
- if (Js(e)) {
3543
+ if (Zs(e)) {
3544
3544
  const t = e.item.config;
3545
3545
  if (!t) return "";
3546
3546
  const n = [], i = (l) => l.replace(/<[^>]*>/g, " ").trim(), r = t.elements?.[e.elementId];
@@ -3555,7 +3555,7 @@ function qr(e) {
3555
3555
  }
3556
3556
  return n.filter(Boolean).join(" ").trim();
3557
3557
  }
3558
- if (Xs(e)) {
3558
+ if (Js(e)) {
3559
3559
  const t = e.item;
3560
3560
  if (!t?.config) return "";
3561
3561
  const n = t.config, i = [], r = (c) => c.replace(/<[^>]*>/g, " ").trim();
@@ -3599,7 +3599,7 @@ function qr(e) {
3599
3599
  }
3600
3600
  return "";
3601
3601
  }
3602
- function Wi(e) {
3602
+ function Ki(e) {
3603
3603
  const t = qr(e);
3604
3604
  return [
3605
3605
  /<math[>\s]/i,
@@ -3619,7 +3619,7 @@ function Nc(e) {
3619
3619
  "inline-choice",
3620
3620
  "select-text"
3621
3621
  ];
3622
- if (Js(e)) {
3622
+ if (Zs(e)) {
3623
3623
  const n = e.item.config;
3624
3624
  if (!n?.models) return !1;
3625
3625
  const i = (Array.isArray(n.models) ? n.models : Object.values(n.models)).find((o) => o && typeof o == "object" && o.id === e.elementId);
@@ -3627,7 +3627,7 @@ function Nc(e) {
3627
3627
  const r = i.element || "";
3628
3628
  return t.includes(r);
3629
3629
  }
3630
- if (Xs(e)) {
3630
+ if (Js(e)) {
3631
3631
  const n = e.item.config?.models;
3632
3632
  return (Array.isArray(n) ? n : n && typeof n == "object" ? Object.values(n) : []).some((i) => {
3633
3633
  if (!i || typeof i != "object") return !1;
@@ -3667,7 +3667,7 @@ function Ur(e, t, n) {
3667
3667
  if (!Fc(t)) throw new Error(`Unknown tool scope level '${t}'. Register custom levels with registerToolScopeLevel().`);
3668
3668
  return `${i}:${t}:${r}`;
3669
3669
  }
3670
- var jc = class {
3670
+ var Hc = class {
3671
3671
  constructor() {
3672
3672
  I(this, "providers", /* @__PURE__ */ new Map()), I(this, "configs", /* @__PURE__ */ new Map()), I(this, "initialized", /* @__PURE__ */ new Map()), I(this, "initializationPromises", /* @__PURE__ */ new Map());
3673
3673
  }
@@ -3815,7 +3815,7 @@ var jc = class {
3815
3815
  const e = Array.from(this.providers.keys());
3816
3816
  await Promise.all(e.map((t) => this.unregister(t))), console.log("[ToolProviderRegistry] Registry destroyed");
3817
3817
  }
3818
- }, Hc = class {
3818
+ }, jc = class {
3819
3819
  constructor() {
3820
3820
  I(this, "providerId", "desmos-calculator"), I(this, "providerName", "Desmos Calculator"), I(this, "category", "calculator"), I(this, "version", "1.10"), I(this, "requiresAuth", !0), I(this, "desmosProvider", null), I(this, "config", null);
3821
3821
  }
@@ -3890,7 +3890,7 @@ var jc = class {
3890
3890
  destroy() {
3891
3891
  this.desmosProvider && (this.desmosProvider.destroy(), this.desmosProvider = null), this.config = null, console.log("[DesmosToolProvider] Destroyed");
3892
3892
  }
3893
- }, Zs = (e, t) => {
3893
+ }, Qs = (e, t) => {
3894
3894
  const n = t?.useSentenceSegmenter !== !1;
3895
3895
  try {
3896
3896
  if (!n) throw new Error("Segmenter disabled by policy");
@@ -3917,7 +3917,7 @@ var jc = class {
3917
3917
  text: e,
3918
3918
  offset: 0
3919
3919
  }];
3920
- }, Qs = class {
3920
+ }, Gr = class {
3921
3921
  constructor() {
3922
3922
  I(this, "providerId", "browser"), I(this, "providerName", "Browser Speech Synthesis"), I(this, "version", "1.0.0");
3923
3923
  }
@@ -4011,7 +4011,7 @@ var jc = class {
4011
4011
  }
4012
4012
  segmentSentences(e) {
4013
4013
  const t = this.getSegmentationPolicy();
4014
- return Zs(e, {
4014
+ return Qs(e, {
4015
4015
  locale: t.locale,
4016
4016
  useSentenceSegmenter: t.useSentenceSegmenter
4017
4017
  });
@@ -4080,7 +4080,7 @@ var jc = class {
4080
4080
  ...e.providerOptions || {}
4081
4081
  });
4082
4082
  }
4083
- }, Kc = class {
4083
+ }, Wc = class {
4084
4084
  async emitTelemetry(e, t) {
4085
4085
  try {
4086
4086
  await this.config?.onTelemetry?.(e, t);
@@ -4112,7 +4112,7 @@ var jc = class {
4112
4112
  }
4113
4113
  async _initializeBrowserTTS(e) {
4114
4114
  if (typeof window > "u" || !("speechSynthesis" in window)) throw new Error("[TTSToolProvider] Browser TTS not supported (Web Speech API not available)");
4115
- this.ttsProvider = new Qs(), console.log("[TTSToolProvider] Browser TTS initialized (Web Speech API)");
4115
+ this.ttsProvider = new Gr(), console.log("[TTSToolProvider] Browser TTS initialized (Web Speech API)");
4116
4116
  }
4117
4117
  async _initializeServerTTS(e) {
4118
4118
  if (!e.apiEndpoint) throw new Error("[TTSToolProvider] apiEndpoint required for server-based TTS backends");
@@ -4181,8 +4181,8 @@ var jc = class {
4181
4181
  annotationToolbar: "pie-tool-annotation-toolbar",
4182
4182
  graph: "pie-tool-graph",
4183
4183
  periodicTable: "pie-tool-periodic-table"
4184
- }, Wc = (e, t) => Ta(t?.toolTagMap?.[e] ?? ea[e] ?? e, `tool component tag for "${e}"`), $c = (e) => document.createElement(e), jt = (e, t, n, i) => {
4185
- const r = Wc(e, i), o = i?.toolComponentFactories?.[e] ?? i?.toolComponentFactory;
4184
+ }, Kc = (e, t) => Ta(t?.toolTagMap?.[e] ?? ea[e] ?? e, `tool component tag for "${e}"`), $c = (e) => document.createElement(e), Ht = (e, t, n, i) => {
4185
+ const r = Kc(e, i), o = i?.toolComponentFactories?.[e] ?? i?.toolComponentFactory;
4186
4186
  return o ? o({
4187
4187
  toolId: e,
4188
4188
  tagName: r,
@@ -4196,7 +4196,7 @@ var jc = class {
4196
4196
  icon: "calculator",
4197
4197
  provider: {
4198
4198
  getProviderId: (e) => typeof e?.provider?.id == "string" && e.provider.id.length > 0 ? e.provider.id : "calculator-desmos",
4199
- createProvider: () => new Hc(),
4199
+ createProvider: () => new jc(),
4200
4200
  getInitConfig: (e) => e?.provider?.init ?? {},
4201
4201
  getAuthFetcher: (e) => {
4202
4202
  const t = e?.provider?.runtime?.authFetcher;
@@ -4219,10 +4219,10 @@ var jc = class {
4219
4219
  "scientificCalculator"
4220
4220
  ],
4221
4221
  isVisibleInContext(e) {
4222
- return Wi(e);
4222
+ return Ki(e);
4223
4223
  },
4224
4224
  renderToolbar(e, t) {
4225
- const n = Ur(this.toolId, t.scope.level, t.scope.scopeId), i = t.componentOverrides, r = jt(this.toolId, e, t, i);
4225
+ const n = Ur(this.toolId, t.scope.level, t.scope.scopeId), i = t.componentOverrides, r = Ht(this.toolId, e, t, i);
4226
4226
  r.setAttribute("tool-id", n), r.toolkitCoordinator = t.toolkitCoordinator;
4227
4227
  const o = {
4228
4228
  toolId: this.toolId,
@@ -4262,7 +4262,7 @@ var jc = class {
4262
4262
  }
4263
4263
  };
4264
4264
  }
4265
- }, Co = (e) => e && typeof e == "object" ? e : {}, Uc = (e) => e === "polly" || e === "google" || e === "server", ht = (e, t) => e === void 0 ? t : e, Gc = (e) => {
4265
+ }, ko = (e) => e && typeof e == "object" ? e : {}, Uc = (e) => e === "polly" || e === "google" || e === "server", ht = (e, t) => e === void 0 ? t : e, Gc = (e) => {
4266
4266
  const t = e.backend || "browser";
4267
4267
  if (!Uc(t)) return e;
4268
4268
  const n = {
@@ -4286,7 +4286,7 @@ var jc = class {
4286
4286
  defaultVoice: ht(n.defaultVoice, "en-US-Wavenet-A")
4287
4287
  } : n;
4288
4288
  }, sr = (e) => {
4289
- const t = Co(e), n = Co(e?.settings);
4289
+ const t = ko(e), n = ko(e?.settings);
4290
4290
  return Gc({
4291
4291
  ...t,
4292
4292
  ...n
@@ -4316,15 +4316,16 @@ var jc = class {
4316
4316
  includeAuthOnAssetFetch: e.includeAuthOnAssetFetch,
4317
4317
  validateEndpoint: e.validateEndpoint
4318
4318
  };
4319
- }, Jn = /* @__PURE__ */ new Map(), Yc = "__pieToolElementUnmount", ko = Object.freeze([1.5, 2]), Xc = (e) => {
4320
- if (!Array.isArray(e)) return [...ko];
4319
+ }, Jn = /* @__PURE__ */ new Map(), Yc = "__pieToolElementUnmount", Po = Object.freeze([1.5, 2]), Xc = (e) => {
4320
+ if (!Array.isArray(e)) return [...Po];
4321
+ if (e.length === 0) return [];
4321
4322
  const t = /* @__PURE__ */ new Set();
4322
4323
  for (const n of e) {
4323
4324
  if (typeof n != "number" || !Number.isFinite(n) || n <= 0) continue;
4324
4325
  const i = Math.round(n * 100) / 100;
4325
4326
  i !== 1 && t.add(i);
4326
4327
  }
4327
- return t.size ? Array.from(t) : [...ko];
4328
+ return t.size ? Array.from(t) : [...Po];
4328
4329
  }, Jc = {
4329
4330
  toolId: "textToSpeech",
4330
4331
  name: "Text to Speech",
@@ -4332,7 +4333,7 @@ var jc = class {
4332
4333
  icon: "volume-up",
4333
4334
  provider: {
4334
4335
  getProviderId: () => "tts",
4335
- createProvider: (e) => new Kc(Mi(sr(e))),
4336
+ createProvider: (e) => new Wc(Mi(sr(e))),
4336
4337
  getInitConfig: (e) => {
4337
4338
  const t = sr(e), n = Mi(t), i = ta(t, n);
4338
4339
  return {
@@ -4402,7 +4403,7 @@ function Yt(e) {
4402
4403
  const t = e.isActive();
4403
4404
  e.button.active = t, e.overlay.visible = t, e.onActiveChange?.(t);
4404
4405
  }
4405
- function Gr(e, t) {
4406
+ function Yr(e, t) {
4406
4407
  e.setAttribute("data-pie-tool-surface", t);
4407
4408
  }
4408
4409
  var Zc = {
@@ -4413,7 +4414,7 @@ var Zc = {
4413
4414
  supportedLevels: ["item", "element"],
4414
4415
  pnpSupportIds: ["ruler", "measurement"],
4415
4416
  isVisibleInContext(e) {
4416
- return Wi(e);
4417
+ return Ki(e);
4417
4418
  },
4418
4419
  renderToolbar(e, t) {
4419
4420
  const n = Gt(this.toolId, t), i = {
@@ -4425,8 +4426,8 @@ var Zc = {
4425
4426
  tooltip: "Ruler",
4426
4427
  onClick: () => t.toggleTool(this.toolId),
4427
4428
  active: n.isActive()
4428
- }, r = t.componentOverrides ?? {}, o = jt(this.toolId, e, t, r);
4429
- return o.setAttribute("tool-id", n.fullToolId), Gr(o, "frameless"), {
4429
+ }, r = t.componentOverrides ?? {}, o = Ht(this.toolId, e, t, r);
4430
+ return o.setAttribute("tool-id", n.fullToolId), Yr(o, "frameless"), {
4430
4431
  toolId: this.toolId,
4431
4432
  button: i,
4432
4433
  elements: [{
@@ -4451,7 +4452,7 @@ var Zc = {
4451
4452
  supportedLevels: ["item", "element"],
4452
4453
  pnpSupportIds: ["protractor", "angleMeasurement"],
4453
4454
  isVisibleInContext(e) {
4454
- return Wi(e);
4455
+ return Ki(e);
4455
4456
  },
4456
4457
  renderToolbar(e, t) {
4457
4458
  const n = Gt(this.toolId, t), i = {
@@ -4463,8 +4464,8 @@ var Zc = {
4463
4464
  tooltip: "Protractor",
4464
4465
  onClick: () => t.toggleTool(this.toolId),
4465
4466
  active: n.isActive()
4466
- }, r = t.componentOverrides ?? {}, o = jt(this.toolId, e, t, r);
4467
- return o.setAttribute("tool-id", n.fullToolId), Gr(o, "frameless"), {
4467
+ }, r = t.componentOverrides ?? {}, o = Ht(this.toolId, e, t, r);
4468
+ return o.setAttribute("tool-id", n.fullToolId), Yr(o, "frameless"), {
4468
4469
  toolId: this.toolId,
4469
4470
  button: i,
4470
4471
  elements: [{
@@ -4497,7 +4498,7 @@ var Zc = {
4497
4498
  return Nc(e);
4498
4499
  },
4499
4500
  renderToolbar(e, t) {
4500
- const n = Gt(this.toolId, t), i = t.componentOverrides ?? {}, r = jt(this.toolId, e, t, i);
4501
+ const n = Gt(this.toolId, t), i = t.componentOverrides ?? {}, r = Ht(this.toolId, e, t, i);
4501
4502
  r.setAttribute("tool-id", n.fullToolId), r.setAttribute("strategy", "strikethrough"), r.setAttribute("button-alignment", "inline");
4502
4503
  const o = {
4503
4504
  toolId: this.toolId,
@@ -4558,7 +4559,7 @@ var Zc = {
4558
4559
  tooltip: "Highlight",
4559
4560
  onClick: () => t.toggleTool(this.toolId),
4560
4561
  active: n.isActive()
4561
- }, r = t.componentOverrides ?? {}, o = jt(this.toolId, e, t, r);
4562
+ }, r = t.componentOverrides ?? {}, o = Ht(this.toolId, e, t, r);
4562
4563
  return o.setAttribute("tool-id", n.fullToolId), {
4563
4564
  toolId: this.toolId,
4564
4565
  button: i,
@@ -4609,8 +4610,8 @@ var Zc = {
4609
4610
  tooltip: "Line Reader",
4610
4611
  onClick: () => t.toggleTool(this.toolId),
4611
4612
  active: n.isActive()
4612
- }, r = t.componentOverrides ?? {}, o = jt(this.toolId, e, t, r);
4613
- return o.setAttribute("tool-id", n.fullToolId), Gr(o, "frameless"), {
4613
+ }, r = t.componentOverrides ?? {}, o = Ht(this.toolId, e, t, r);
4614
+ return o.setAttribute("tool-id", n.fullToolId), Yr(o, "frameless"), {
4614
4615
  toolId: this.toolId,
4615
4616
  button: i,
4616
4617
  elements: [{
@@ -4655,7 +4656,7 @@ var Zc = {
4655
4656
  tooltip: "Theme",
4656
4657
  onClick: () => t.toggleTool(this.toolId),
4657
4658
  active: n.isActive()
4658
- }, r = t.componentOverrides ?? {}, o = jt(this.toolId, e, t, r);
4659
+ }, r = t.componentOverrides ?? {}, o = Ht(this.toolId, e, t, r);
4659
4660
  return o.setAttribute("tool-id", n.fullToolId), {
4660
4661
  toolId: this.toolId,
4661
4662
  button: i,
@@ -4716,7 +4717,7 @@ var Zc = {
4716
4717
  tooltip: "Highlight",
4717
4718
  onClick: () => t.toggleTool(this.toolId),
4718
4719
  active: n.isActive()
4719
- }, r = t.componentOverrides ?? {}, o = jt(this.toolId, e, t, r);
4720
+ }, r = t.componentOverrides ?? {}, o = Ht(this.toolId, e, t, r);
4720
4721
  return o.setAttribute("tool-id", n.fullToolId), {
4721
4722
  toolId: this.toolId,
4722
4723
  button: i,
@@ -4747,7 +4748,7 @@ var Zc = {
4747
4748
  "graphingTool"
4748
4749
  ],
4749
4750
  isVisibleInContext(e) {
4750
- return Wi(e);
4751
+ return Ki(e);
4751
4752
  },
4752
4753
  renderToolbar(e, t) {
4753
4754
  const n = Gt(this.toolId, t), i = {
@@ -4759,7 +4760,7 @@ var Zc = {
4759
4760
  tooltip: "Graph",
4760
4761
  onClick: () => t.toggleTool(this.toolId),
4761
4762
  active: n.isActive()
4762
- }, r = t.componentOverrides ?? {}, o = jt(this.toolId, e, t, r);
4763
+ }, r = t.componentOverrides ?? {}, o = Ht(this.toolId, e, t, r);
4763
4764
  return o.setAttribute("tool-id", n.fullToolId), {
4764
4765
  toolId: this.toolId,
4765
4766
  button: i,
@@ -4811,7 +4812,7 @@ var Zc = {
4811
4812
  tooltip: "Periodic Table",
4812
4813
  onClick: () => t.toggleTool(this.toolId),
4813
4814
  active: n.isActive()
4814
- }, r = t.componentOverrides ?? {}, o = jt(this.toolId, e, t, r);
4815
+ }, r = t.componentOverrides ?? {}, o = Ht(this.toolId, e, t, r);
4815
4816
  return o.setAttribute("tool-id", n.fullToolId), {
4816
4817
  toolId: this.toolId,
4817
4818
  button: i,
@@ -5007,7 +5008,7 @@ var fd = {
5007
5008
  itemGlossary: "itemGlossary",
5008
5009
  tutorialAvailable: "tutorialAvailable"
5009
5010
  }
5010
- }, Tf = Object.values(fd).flatMap((e) => Object.values(e)), Ot = Us("ToolCoordinator"), en;
5011
+ }, Tf = Object.values(fd).flatMap((e) => Object.values(e)), Ot = Gs("ToolCoordinator"), en;
5011
5012
  (function(e) {
5012
5013
  e[e.BASE = 0] = "BASE", e[e.TOOL = 1e3] = "TOOL", e[e.MODAL = 2e3] = "MODAL", e[e.CONTROL = 3e3] = "CONTROL", e[e.HIGHLIGHT = 4e3] = "HIGHLIGHT";
5013
5014
  })(en || (en = {}));
@@ -5147,7 +5148,7 @@ var hd = class {
5147
5148
  layer: e.layer
5148
5149
  }));
5149
5150
  }
5150
- }, Po = (e) => e.trim().replace(/\s+/g, " "), sa = (e) => {
5151
+ }, Eo = (e) => e.trim().replace(/\s+/g, " "), sa = (e) => {
5151
5152
  if (e.hidden || e.getAttribute("aria-hidden") === "true" || e.hasAttribute("inert")) return !0;
5152
5153
  const t = e.classList;
5153
5154
  if (t?.contains("sr-only") || t?.contains("pie-sr-only") || t?.contains("visually-hidden")) return !0;
@@ -5218,13 +5219,13 @@ var hd = class {
5218
5219
  text: h,
5219
5220
  map: n
5220
5221
  };
5221
- }, md = (e, t) => Sr(e, t).text, Se;
5222
+ }, md = (e, t) => Sr(e, t).text, Ie;
5222
5223
  (function(e) {
5223
5224
  e.IDLE = "idle", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.ERROR = "error";
5224
- })(Se || (Se = {}));
5225
+ })(Ie || (Ie = {}));
5225
5226
  var gd = class {
5226
5227
  constructor() {
5227
- I(this, "currentProvider", null), I(this, "provider", null), I(this, "highlightCoordinator", null), I(this, "catalogResolver", null), I(this, "state", Se.IDLE), I(this, "ttsConfig", {}), I(this, "currentText", null), I(this, "currentContentElement", null), I(this, "normalizedToDOM", /* @__PURE__ */ new Map()), I(this, "listeners", /* @__PURE__ */ new Map()), I(this, "lastError", null), I(this, "speakRunId", 0), I(this, "currentBoundaryOffset", 0), I(this, "seekSegments", []), I(this, "currentSeekSegmentIndex", 0), I(this, "activeHighlightMode", "word"), I(this, "telemetryReporter", null);
5228
+ I(this, "currentProvider", null), I(this, "provider", null), I(this, "highlightCoordinator", null), I(this, "catalogResolver", null), I(this, "state", Ie.IDLE), I(this, "ttsConfig", {}), I(this, "currentText", null), I(this, "currentContentElement", null), I(this, "normalizedToDOM", /* @__PURE__ */ new Map()), I(this, "listeners", /* @__PURE__ */ new Map()), I(this, "lastError", null), I(this, "speakRunId", 0), I(this, "currentBoundaryOffset", 0), I(this, "seekSegments", []), I(this, "currentSeekSegmentIndex", 0), I(this, "activeHighlightMode", "word"), I(this, "telemetryReporter", null);
5228
5229
  }
5229
5230
  async emitTelemetry(e, t) {
5230
5231
  try {
@@ -5416,7 +5417,7 @@ var gd = class {
5416
5417
  }), i.filter((l) => l.text.trim().length > 0);
5417
5418
  }
5418
5419
  segmentSentences(e) {
5419
- return Zs(e, { locale: this.ttsConfig.providerOptions?.locale || void 0 });
5420
+ return Qs(e, { locale: this.ttsConfig.providerOptions?.locale || void 0 });
5420
5421
  }
5421
5422
  createSeekSegmentsFromText(e) {
5422
5423
  return this.segmentSentences(e).map((t) => {
@@ -5506,7 +5507,7 @@ var gd = class {
5506
5507
  const l = t?.highlightModeOverride || this.resolveHighlightMode();
5507
5508
  this.activeHighlightMode = l;
5508
5509
  const c = !!this.currentContentElement && !o && !this.hasExplicitBreakSemantics(i);
5509
- this.seekSegments = this.hasExplicitBreakSemantics(i) ? [] : c && this.currentContentElement ? this.createSpeechPlan(this.currentContentElement, r) : this.createSeekSegmentsFromText(i), this.setState(Se.LOADING), this.prepareHighlightsForSpeak({
5510
+ this.seekSegments = this.hasExplicitBreakSemantics(i) ? [] : c && this.currentContentElement ? this.createSpeechPlan(this.currentContentElement, r) : this.createSeekSegmentsFromText(i), this.setState(Ie.LOADING), this.prepareHighlightsForSpeak({
5510
5511
  contentToSpeak: i,
5511
5512
  options: t,
5512
5513
  highlightMode: l,
@@ -5516,18 +5517,75 @@ var gd = class {
5516
5517
  if (this.configureWordBoundaryHighlighting({
5517
5518
  highlightMode: l,
5518
5519
  wordBoundaryOffset: t?.wordBoundaryOffset || 0
5519
- }), this.setState(Se.PLAYING), await this.executeSpeakPlayback({
5520
+ }), this.setState(Ie.PLAYING), await this.executeSpeakPlayback({
5520
5521
  shouldUsePlan: c,
5521
5522
  runId: n,
5522
5523
  highlightMode: l,
5523
5524
  contentToSpeak: i
5524
5525
  }), n !== this.speakRunId) return;
5525
- this.setState(Se.IDLE), this.clearHighlightsAndTracking();
5526
+ this.setState(Ie.IDLE), this.clearHighlightsAndTracking();
5526
5527
  } catch (d) {
5527
- if (console.error("TTS error:", d), this.lastError = d instanceof Error ? d.message : String(d), n !== this.speakRunId) return;
5528
- throw this.setState(Se.ERROR), this.clearHighlightsAndTracking(), d;
5528
+ let f = d;
5529
+ if (n === this.speakRunId) try {
5530
+ if (await this.retryWithBrowserFallback({
5531
+ error: d,
5532
+ runId: n,
5533
+ shouldUsePlan: c,
5534
+ highlightMode: l,
5535
+ contentToSpeak: i,
5536
+ wordBoundaryOffset: t?.wordBoundaryOffset || 0
5537
+ })) {
5538
+ this.setState(Ie.IDLE), this.clearHighlightsAndTracking();
5539
+ return;
5540
+ }
5541
+ } catch (h) {
5542
+ f = h;
5543
+ }
5544
+ if (console.error("TTS error:", f), this.lastError = f instanceof Error ? f.message : String(f), n !== this.speakRunId) return;
5545
+ throw this.setState(Ie.ERROR), this.clearHighlightsAndTracking(), f;
5529
5546
  }
5530
5547
  }
5548
+ shouldAttemptBrowserFallback(e) {
5549
+ if (!this.provider || !this.currentProvider || (this.currentProvider.providerId || "").toLowerCase() === "browser") return !1;
5550
+ const t = (e instanceof Error ? e.message : String(e)).toLowerCase().trim();
5551
+ return t ? !!(t.includes("text-to-speech service encountered an error") || t.includes("service unavailable") || t.includes("failed to fetch") || t.includes("network error") || t.includes("failed to download synthesized audio") || /\b5\d{2}\b/.test(t) || /server returned 5\d{2}/.test(t)) : !1;
5552
+ }
5553
+ async switchProviderToBrowser(e) {
5554
+ if (!this.currentProvider) return !1;
5555
+ const t = new Gr(), n = this.currentProvider.providerId, i = { ...this.ttsConfig };
5556
+ try {
5557
+ return this.provider?.stop(), this.currentProvider.destroy(), this.currentProvider = t, this.provider = await t.initialize(i), this.ttsConfig = i, await this.emitTelemetry("pie-tool-runtime-fallback", {
5558
+ toolId: "textToSpeech",
5559
+ operation: "tts-speak",
5560
+ fromProvider: n,
5561
+ toProvider: t.providerId,
5562
+ reason: e instanceof Error ? e.message : String(e)
5563
+ }), console.warn("[TTSService] Server TTS playback failed; switched to browser fallback", {
5564
+ fromProvider: n,
5565
+ reason: e
5566
+ }), !0;
5567
+ } catch (r) {
5568
+ return await this.emitTelemetry("pie-tool-runtime-fallback-error", {
5569
+ toolId: "textToSpeech",
5570
+ operation: "tts-speak",
5571
+ fromProvider: n,
5572
+ toProvider: "browser",
5573
+ errorType: "TTSRuntimeFallbackError",
5574
+ message: r instanceof Error ? r.message : String(r)
5575
+ }), console.error("[TTSService] Failed to switch to browser fallback provider", r), !1;
5576
+ }
5577
+ }
5578
+ async retryWithBrowserFallback(e) {
5579
+ return !this.shouldAttemptBrowserFallback(e.error) || !await this.switchProviderToBrowser(e.error) ? !1 : (e.runId !== this.speakRunId || (this.configureWordBoundaryHighlighting({
5580
+ highlightMode: e.highlightMode,
5581
+ wordBoundaryOffset: e.wordBoundaryOffset
5582
+ }), await this.executeSpeakPlayback({
5583
+ shouldUsePlan: e.shouldUsePlan,
5584
+ runId: e.runId,
5585
+ highlightMode: e.highlightMode,
5586
+ contentToSpeak: e.contentToSpeak
5587
+ })), !0);
5588
+ }
5531
5589
  async applyLanguageSettings(e) {
5532
5590
  if (!e?.language || !this.provider) return;
5533
5591
  const t = this.ttsConfig.providerOptions || {}, n = t.textNormalization || {}, i = t.segmenter || {}, r = {
@@ -5548,7 +5606,7 @@ var gd = class {
5548
5606
  }, "updateSettings" in this.provider && typeof this.provider.updateSettings == "function" && await this.provider.updateSettings({ providerOptions: r });
5549
5607
  }
5550
5608
  resolveSpeechContent(e, t) {
5551
- const n = Po(e), i = t?.contentElement && this.extractVisibleText(t.contentElement, t.language) || n;
5609
+ const n = Eo(e), i = t?.contentElement && this.extractVisibleText(t.contentElement, t.language) || n;
5552
5610
  let r = i, o = !1, s = "dom-or-input";
5553
5611
  if (t?.catalogId && this.catalogResolver) {
5554
5612
  const l = this.catalogResolver.getAlternative(t.catalogId, {
@@ -5615,7 +5673,7 @@ var gd = class {
5615
5673
  if (!i) return;
5616
5674
  const r = document.createRange();
5617
5675
  r.selectNodeContents(i), r.setEnd(e.startContainer, e.startOffset);
5618
- const o = r.toString(), s = Po(o).length;
5676
+ const o = r.toString(), s = Eo(o).length;
5619
5677
  console.log("[TTSService] speakRange offset calculation:", {
5620
5678
  selectedText: n,
5621
5679
  textBeforeRange: o.substring(0, 100),
@@ -5627,26 +5685,26 @@ var gd = class {
5627
5685
  });
5628
5686
  }
5629
5687
  pause() {
5630
- this.provider && this.state === Se.PLAYING && (this.provider.pause(), this.setState(Se.PAUSED));
5688
+ this.provider && this.state === Ie.PLAYING && (this.provider.pause(), this.setState(Ie.PAUSED));
5631
5689
  }
5632
5690
  resume() {
5633
- this.provider && this.state === Se.PAUSED && (this.provider.resume(), this.setState(Se.PLAYING));
5691
+ this.provider && this.state === Ie.PAUSED && (this.provider.resume(), this.setState(Ie.PLAYING));
5634
5692
  }
5635
5693
  async seekBy(e) {
5636
- if (!this.provider || !this.currentText || this.state !== Se.PLAYING && this.state !== Se.PAUSED || this.hasExplicitBreakSemantics(this.currentText) || this.seekSegments.length === 0) return;
5694
+ if (!this.provider || !this.currentText || this.state !== Ie.PLAYING && this.state !== Ie.PAUSED || this.hasExplicitBreakSemantics(this.currentText) || this.seekSegments.length === 0) return;
5637
5695
  const t = Number.isFinite(e) ? Math.trunc(e) : 0;
5638
5696
  if (t === 0) return;
5639
5697
  const n = this.getCurrentSeekSegmentIndex(), i = Math.max(0, Math.min(this.seekSegments.length - 1, n + t));
5640
5698
  if (i === n) return;
5641
5699
  this.speakRunId += 1, this.provider.stop(), this.currentSeekSegmentIndex = i;
5642
5700
  const r = ++this.speakRunId, o = this.seekSegments.slice(i);
5643
- this.setState(Se.PLAYING);
5701
+ this.setState(Ie.PLAYING);
5644
5702
  try {
5645
5703
  if (await this.speakWithPlan(o, r, { highlightMode: this.activeHighlightMode }), r !== this.speakRunId) return;
5646
- this.setState(Se.IDLE), this.clearHighlightsAndTracking();
5704
+ this.setState(Ie.IDLE), this.clearHighlightsAndTracking();
5647
5705
  } catch (s) {
5648
5706
  if (r !== this.speakRunId) return;
5649
- throw this.lastError = s instanceof Error ? s.message : String(s), this.setState(Se.ERROR), this.clearHighlightsAndTracking(), s;
5707
+ throw this.lastError = s instanceof Error ? s.message : String(s), this.setState(Ie.ERROR), this.clearHighlightsAndTracking(), s;
5650
5708
  }
5651
5709
  }
5652
5710
  async seekForward(e = 1) {
@@ -5658,13 +5716,13 @@ var gd = class {
5658
5716
  await this.seekBy(-t);
5659
5717
  }
5660
5718
  stop() {
5661
- this.provider && (this.speakRunId += 1, this.provider.stop(), this.setState(Se.IDLE), this.currentText = null, this.highlightCoordinator && this.highlightCoordinator.clearTTS(), this.currentContentElement = null, this.normalizedToDOM.clear(), this.currentBoundaryOffset = 0, this.seekSegments = [], this.currentSeekSegmentIndex = 0);
5719
+ this.provider && (this.speakRunId += 1, this.provider.stop(), this.setState(Ie.IDLE), this.currentText = null, this.highlightCoordinator && this.highlightCoordinator.clearTTS(), this.currentContentElement = null, this.normalizedToDOM.clear(), this.currentBoundaryOffset = 0, this.seekSegments = [], this.currentSeekSegmentIndex = 0);
5662
5720
  }
5663
5721
  isPlaying() {
5664
- return this.state === Se.PLAYING;
5722
+ return this.state === Ie.PLAYING;
5665
5723
  }
5666
5724
  isPaused() {
5667
- return this.state === Se.PAUSED;
5725
+ return this.state === Ie.PAUSED;
5668
5726
  }
5669
5727
  getState() {
5670
5728
  return this.state;
@@ -5692,8 +5750,8 @@ var gd = class {
5692
5750
  providerId: "tts",
5693
5751
  previousState: t,
5694
5752
  state: e
5695
- }), e === Se.PLAYING) {
5696
- const n = t === Se.PAUSED ? "pie-tool-playback-resume" : "pie-tool-playback-start";
5753
+ }), e === Ie.PLAYING) {
5754
+ const n = t === Ie.PAUSED ? "pie-tool-playback-resume" : "pie-tool-playback-start";
5697
5755
  this.emitTelemetry(n, {
5698
5756
  toolId: "textToSpeech",
5699
5757
  providerId: "tts",
@@ -5702,7 +5760,7 @@ var gd = class {
5702
5760
  });
5703
5761
  return;
5704
5762
  }
5705
- if (e === Se.PAUSED) {
5763
+ if (e === Ie.PAUSED) {
5706
5764
  this.emitTelemetry("pie-tool-playback-pause", {
5707
5765
  toolId: "textToSpeech",
5708
5766
  providerId: "tts",
@@ -5711,7 +5769,7 @@ var gd = class {
5711
5769
  });
5712
5770
  return;
5713
5771
  }
5714
- if (e === Se.ERROR) {
5772
+ if (e === Ie.ERROR) {
5715
5773
  this.emitTelemetry("pie-tool-playback-error", {
5716
5774
  toolId: "textToSpeech",
5717
5775
  providerId: "tts",
@@ -5721,7 +5779,7 @@ var gd = class {
5721
5779
  });
5722
5780
  return;
5723
5781
  }
5724
- e === Se.IDLE && (t === Se.PLAYING || t === Se.PAUSED || t === Se.LOADING) && this.emitTelemetry("pie-tool-playback-stop", {
5782
+ e === Ie.IDLE && (t === Ie.PLAYING || t === Ie.PAUSED || t === Ie.LOADING) && this.emitTelemetry("pie-tool-playback-stop", {
5725
5783
  toolId: "textToSpeech",
5726
5784
  providerId: "tts",
5727
5785
  previousState: t,
@@ -5769,7 +5827,7 @@ var gd = class {
5769
5827
  constructor(t) {
5770
5828
  if (I(this, "assessmentId", void 0), I(this, "config", void 0), I(this, "ttsService", void 0), I(this, "toolCoordinator", void 0), I(this, "highlightCoordinator", void 0), I(this, "elementToolStateStore", void 0), I(this, "catalogResolver", void 0), I(this, "toolProviderRegistry", void 0), I(this, "hooks", void 0), I(this, "lazyInit", void 0), I(this, "ttsInitialized", !1), I(this, "ttsInitPromise", void 0), I(this, "ttsReconfigurePromise", void 0), I(this, "stateLoaded", !1), I(this, "stateLoadPromise", void 0), I(this, "coordinatorReadyPromise", void 0), I(this, "coordinatorReadyNotified", !1), I(this, "providerInitPromises", /* @__PURE__ */ new Map()), I(this, "packagedToolRegistry", ra()), I(this, "sectionControllers", /* @__PURE__ */ new Map()), I(this, "sectionControllerKeys", /* @__PURE__ */ new Map()), I(this, "sectionControllerInitPromises", /* @__PURE__ */ new Map()), I(this, "sectionPersistenceStrategies", /* @__PURE__ */ new Map()), I(this, "sectionControllerLifecycleListeners", /* @__PURE__ */ new Set()), I(this, "sectionEventListenerIds", /* @__PURE__ */ new WeakMap()), I(this, "sectionEventSubscriptions", /* @__PURE__ */ new Map()), I(this, "telemetryListeners", /* @__PURE__ */ new Set()), I(this, "nextSectionEventListenerId", 1), I(this, "floatingToolsChangeCallback", null), !t.assessmentId) throw new Error("ToolkitCoordinator requires assessmentId in config");
5771
5829
  const n = aa.resolveConfig(t);
5772
- this.assessmentId = n.assessmentId, this.config = n, this.hooks = n.hooks ?? {}, this.lazyInit = t.lazyInit === !0, this.toolCoordinator = new hd(), this.highlightCoordinator = new kc(), this.elementToolStateStore = new _c(), this.catalogResolver = new Tc(n.accessibility?.catalogs || [], n.accessibility?.language || "en-US"), this.toolProviderRegistry = new jc(), this._registerToolProviders(), this.ttsService = new gd(), this.setupStatePersistenceHooks(), this.lazyInit || this.waitUntilReady().catch((i) => {
5830
+ this.assessmentId = n.assessmentId, this.config = n, this.hooks = n.hooks ?? {}, this.lazyInit = t.lazyInit === !0, this.toolCoordinator = new hd(), this.highlightCoordinator = new kc(), this.elementToolStateStore = new _c(), this.catalogResolver = new Tc(n.accessibility?.catalogs || [], n.accessibility?.language || "en-US"), this.toolProviderRegistry = new Hc(), this._registerToolProviders(), this.ttsService = new gd(), this.setupStatePersistenceHooks(), this.lazyInit || this.waitUntilReady().catch((i) => {
5773
5831
  console.error("[ToolkitCoordinator] Failed eager initialization:", i), this.handleError(i, { phase: "coordinator-ready" });
5774
5832
  });
5775
5833
  }
@@ -6280,7 +6338,7 @@ var gd = class {
6280
6338
  reason: l.message
6281
6339
  }), console.warn("[ToolkitCoordinator] Failed to initialize TTS via registry, falling back to browser provider:", l);
6282
6340
  }
6283
- const o = new Qs();
6341
+ const o = new Gr();
6284
6342
  try {
6285
6343
  await this.initializeTTSService(o, r), await this.emitTelemetry("tts-init-success", { provider: "browser-fallback" }), await this.emitTelemetry("pie-tool-init-success", {
6286
6344
  toolId: "tts",
@@ -6385,7 +6443,7 @@ var gd = class {
6385
6443
  this.config.tools || (this.config.tools = gn()), this.config.tools.placement || (this.config.tools.placement = gn().placement), this.config.tools.placement.section = [...t], this.floatingToolsChangeCallback && this.floatingToolsChangeCallback(t);
6386
6444
  }
6387
6445
  getFloatingTools() {
6388
- return this.config.tools ? Ys(this.config.tools, "section") : [];
6446
+ return this.config.tools ? Xs(this.config.tools, "section") : [];
6389
6447
  }
6390
6448
  onFloatingToolsChange(t) {
6391
6449
  return this.floatingToolsChangeCallback = t, t(this.getFloatingTools()), () => {
@@ -6487,7 +6545,7 @@ function _d(e, t) {
6487
6545
  function wr(e) {
6488
6546
  return Object.entries(e.itemSessions).reduce((t, [n, i]) => (i.session && (t[n] = i.session), t), {});
6489
6547
  }
6490
- var Eo = /* @__PURE__ */ new Map(), Cd = /* @__PURE__ */ we('<div class="pie-item-shell-anchor svelte-ljk393" aria-hidden="true"></div> <!>', 1), kd = {
6548
+ var xo = /* @__PURE__ */ new Map(), Cd = /* @__PURE__ */ we('<div class="pie-item-shell-anchor svelte-ljk393" aria-hidden="true"></div> <!>', 1), kd = {
6491
6549
  hash: "svelte-ljk393",
6492
6550
  code: ".pie-item-shell-anchor.svelte-ljk393 {display:none;}"
6493
6551
  };
@@ -6530,12 +6588,12 @@ function Pd(e, t) {
6530
6588
  }
6531
6589
  function L(F) {
6532
6590
  if (!a(g) || !r()) return;
6533
- const Z = F.detail, K = {
6591
+ const Z = F.detail, W = {
6534
6592
  itemId: r(),
6535
6593
  session: Z
6536
6594
  };
6537
- qt(a(g), qs, K);
6538
- const ce = zo({
6595
+ qt(a(g), Us, W);
6596
+ const ce = Do({
6539
6597
  itemId: r(),
6540
6598
  sessionDetail: Z
6541
6599
  });
@@ -6578,16 +6636,16 @@ function Pd(e, t) {
6578
6636
  }
6579
6637
  re(() => {
6580
6638
  if (!a(g)) return;
6581
- C(Wr);
6639
+ C(Kr);
6582
6640
  const F = /* @__PURE__ */ new WeakSet();
6583
6641
  let Z = "";
6584
- const K = 500, ce = (ue) => {
6642
+ const W = 500, ce = (ue) => {
6585
6643
  if (ue.stopPropagation(), F.has(ue)) return;
6586
6644
  F.add(ue);
6587
6645
  const Q = q(ue.detail);
6588
6646
  if (Q === Z) return;
6589
- const Te = r() || o() || "__unknown-item__", _e = Date.now(), fe = Eo.get(Te);
6590
- fe && fe.fingerprint === Q && _e - fe.timestamp < K || (Eo.set(Te, {
6647
+ const Te = r() || o() || "__unknown-item__", _e = Date.now(), fe = xo.get(Te);
6648
+ fe && fe.fingerprint === Q && _e - fe.timestamp < W || (xo.set(Te, {
6591
6649
  fingerprint: Q,
6592
6650
  timestamp: _e
6593
6651
  }), Z = Q, L(ue));
@@ -6606,7 +6664,7 @@ function Pd(e, t) {
6606
6664
  }), re(() => {
6607
6665
  if (!(!a(g) || !a(O)))
6608
6666
  return u = new Pn(a(g), {
6609
- context: Ws,
6667
+ context: $s,
6610
6668
  initialValue: a(O)
6611
6669
  }), u.connect(), y = new En(a(g)), y.attach(), () => {
6612
6670
  y?.detach(), y = null, u?.disconnect(), u = null;
@@ -6616,7 +6674,7 @@ function Pd(e, t) {
6616
6674
  }), re(() => {
6617
6675
  if (!(!a(g) || !a(A)))
6618
6676
  return v = new Pn(a(g), {
6619
- context: $s,
6677
+ context: qs,
6620
6678
  initialValue: a(A)
6621
6679
  }), v.connect(), k = new En(a(g)), k.attach(), () => {
6622
6680
  k?.detach(), k = null, v?.disconnect(), v = null;
@@ -6662,7 +6720,7 @@ function Pd(e, t) {
6662
6720
  d(F), p();
6663
6721
  }
6664
6722
  }, X = Cd(), G = Qe(X);
6665
- Ue(G, (F) => H(f, F), () => a(f));
6723
+ Ue(G, (F) => j(f, F), () => a(f));
6666
6724
  var U = Me(G, 2);
6667
6725
  return On(U, t, "default", {}, null), pe(e, X), Ye(V);
6668
6726
  }
@@ -6687,7 +6745,7 @@ customElements.define("pie-item-shell", et(Pd, {
6687
6745
  item: { type: "Object" }
6688
6746
  }, ["default"], [], { mode: "open" }));
6689
6747
  var ca = fi(Symbol.for("@pie-players/pie-section-player/card-render-context"));
6690
- function Yr(e) {
6748
+ function Xr(e) {
6691
6749
  if (!e) return null;
6692
6750
  const t = e.getRootNode();
6693
6751
  return t && "host" in t ? t.host : e.parentElement;
@@ -6741,20 +6799,20 @@ var Ad = /* @__PURE__ */ we('<div class="pie-section-player-item-card-anchor sve
6741
6799
  };
6742
6800
  function Md(e, t) {
6743
6801
  Ge(t, !0), st(e, Rd);
6744
- let n = m(t, "item", 7), i = m(t, "itemIndex", 7, 0), r = m(t, "itemCount", 7, 1), o = m(t, "canonicalItemId", 7), s = m(t, "resolvedPlayerTag", 7, "div"), l = m(t, "playerAction", 7, (K, ce) => {
6802
+ let n = m(t, "item", 7), i = m(t, "itemIndex", 7, 0), r = m(t, "itemCount", 7, 1), o = m(t, "canonicalItemId", 7), s = m(t, "resolvedPlayerTag", 7, "div"), l = m(t, "playerAction", 7, (W, ce) => {
6745
6803
  }), c = m(t, "playerParams", 7), d = m(t, "itemToolbarTools", 7), f = /* @__PURE__ */ $(null), h = /* @__PURE__ */ $(null), u = /* @__PURE__ */ $(null), y = /* @__PURE__ */ $(!1);
6746
6804
  const v = /* @__PURE__ */ M(() => (a(y) ? a(h) : null) || s()), k = /* @__PURE__ */ M(() => (a(y) ? a(u) : null) || l()), w = /* @__PURE__ */ M(() => Number.isFinite(i()) ? Math.max(0, Number(i())) + 1 : 1), g = /* @__PURE__ */ M(() => Number.isFinite(r()) ? Math.max(1, Number(r())) : 1), D = /* @__PURE__ */ M(() => a(g) > 1 ? `Question ${a(w)}` : "Question");
6747
6805
  function A() {
6748
- H(y, !1), H(h, null), H(u, null);
6806
+ j(y, !1), j(h, null), j(u, null);
6749
6807
  }
6750
- function O(K) {
6751
- !K || typeof K != "object" || (typeof K.resolvedPlayerTag == "string" && K.resolvedPlayerTag.trim() && H(h, K.resolvedPlayerTag, !0), typeof K.playerAction == "function" && H(u, K.playerAction, !0));
6808
+ function O(W) {
6809
+ !W || typeof W != "object" || (typeof W.resolvedPlayerTag == "string" && W.resolvedPlayerTag.trim() && j(h, W.resolvedPlayerTag, !0), typeof W.playerAction == "function" && j(u, W.playerAction, !0));
6752
6810
  }
6753
6811
  Vi(() => {
6754
- const K = Yr(a(f));
6755
- if (!K) return;
6756
- H(y, !0);
6757
- const ce = da(K, O);
6812
+ const W = Xr(a(f));
6813
+ if (!W) return;
6814
+ j(y, !0);
6815
+ const ce = da(W, O);
6758
6816
  return () => {
6759
6817
  ce(), A();
6760
6818
  };
@@ -6763,54 +6821,54 @@ function Md(e, t) {
6763
6821
  get item() {
6764
6822
  return n();
6765
6823
  },
6766
- set item(K) {
6767
- n(K), p();
6824
+ set item(W) {
6825
+ n(W), p();
6768
6826
  },
6769
6827
  get itemIndex() {
6770
6828
  return i();
6771
6829
  },
6772
- set itemIndex(K = 0) {
6773
- i(K), p();
6830
+ set itemIndex(W = 0) {
6831
+ i(W), p();
6774
6832
  },
6775
6833
  get itemCount() {
6776
6834
  return r();
6777
6835
  },
6778
- set itemCount(K = 1) {
6779
- r(K), p();
6836
+ set itemCount(W = 1) {
6837
+ r(W), p();
6780
6838
  },
6781
6839
  get canonicalItemId() {
6782
6840
  return o();
6783
6841
  },
6784
- set canonicalItemId(K) {
6785
- o(K), p();
6842
+ set canonicalItemId(W) {
6843
+ o(W), p();
6786
6844
  },
6787
6845
  get resolvedPlayerTag() {
6788
6846
  return s();
6789
6847
  },
6790
- set resolvedPlayerTag(K = "div") {
6791
- s(K), p();
6848
+ set resolvedPlayerTag(W = "div") {
6849
+ s(W), p();
6792
6850
  },
6793
6851
  get playerAction() {
6794
6852
  return l();
6795
6853
  },
6796
- set playerAction(K = (ce, me) => {
6854
+ set playerAction(W = (ce, me) => {
6797
6855
  }) {
6798
- l(K), p();
6856
+ l(W), p();
6799
6857
  },
6800
6858
  get playerParams() {
6801
6859
  return c();
6802
6860
  },
6803
- set playerParams(K) {
6804
- c(K), p();
6861
+ set playerParams(W) {
6862
+ c(W), p();
6805
6863
  },
6806
6864
  get itemToolbarTools() {
6807
6865
  return d();
6808
6866
  },
6809
- set itemToolbarTools(K) {
6810
- d(K), p();
6867
+ set itemToolbarTools(W) {
6868
+ d(W), p();
6811
6869
  }
6812
6870
  }, L = Ad(), R = Qe(L);
6813
- Ue(R, (K) => H(f, K), () => a(f));
6871
+ Ue(R, (W) => j(f, W), () => a(f));
6814
6872
  var z = Me(R, 2);
6815
6873
  E(() => P(z, "item-id", n().id)), E(() => P(z, "canonical-item-id", o())), P(z, "content-kind", "assessment-item"), E(() => P(z, "item", n()));
6816
6874
  var q = Re(z), V = Re(q), X = Re(V), G = Re(X, !0);
@@ -6818,10 +6876,10 @@ function Md(e, t) {
6818
6876
  var U = Me(X, 2);
6819
6877
  E(() => P(U, "item-id", n().id)), E(() => P(U, "catalog-id", n().id)), E(() => P(U, "tools", d())), P(U, "content-kind", "assessment-item"), P(U, "size", "md"), P(U, "language", "en-US"), kt(U, 1, "svelte-7chqkg"), Ae(V);
6820
6878
  var F = Me(V, 2), Z = Re(F);
6821
- return Ds(Z, () => a(v), !1, (K, ce) => {
6822
- Bs(K, (me, Le) => a(k)?.(me, Le), c);
6823
- }), Ae(F), Vo(2), Ae(q), Ae(z), E(() => {
6824
- gt(q, "data-canonical-item-id", o()), Ms(G, a(D));
6879
+ return Bs(Z, () => a(v), !1, (W, ce) => {
6880
+ Fs(W, (me, Le) => a(k)?.(me, Le), c);
6881
+ }), Ae(F), Wo(2), Ae(q), Ae(z), E(() => {
6882
+ gt(q, "data-canonical-item-id", o()), Os(G, a(D));
6825
6883
  }), pe(e, L), Ye(C);
6826
6884
  }
6827
6885
  customElements.define("pie-section-player-item-card", et(Md, {
@@ -6915,7 +6973,7 @@ function Nd(e, t) {
6915
6973
  }
6916
6974
  re(() => {
6917
6975
  if (!a(g)) return;
6918
- C(Wr);
6976
+ C(Kr);
6919
6977
  const G = (F) => {
6920
6978
  F.stopPropagation(), L(F.detail);
6921
6979
  }, U = (F) => {
@@ -6929,7 +6987,7 @@ function Nd(e, t) {
6929
6987
  }), re(() => {
6930
6988
  if (!(!a(g) || !a(O)))
6931
6989
  return u = new Pn(a(g), {
6932
- context: Ws,
6990
+ context: $s,
6933
6991
  initialValue: a(O)
6934
6992
  }), u.connect(), y = new En(a(g)), y.attach(), () => {
6935
6993
  y?.detach(), y = null, u?.disconnect(), u = null;
@@ -6939,7 +6997,7 @@ function Nd(e, t) {
6939
6997
  }), re(() => {
6940
6998
  if (!(!a(g) || !a(A)))
6941
6999
  return v = new Pn(a(g), {
6942
- context: $s,
7000
+ context: qs,
6943
7001
  initialValue: a(A)
6944
7002
  }), v.connect(), k = new En(a(g)), k.attach(), () => {
6945
7003
  k?.detach(), k = null, v?.disconnect(), v = null;
@@ -6985,7 +7043,7 @@ function Nd(e, t) {
6985
7043
  d(G), p();
6986
7044
  }
6987
7045
  }, q = Od(), V = Qe(q);
6988
- Ue(V, (G) => H(f, G), () => a(f));
7046
+ Ue(V, (G) => j(f, G), () => a(f));
6989
7047
  var X = Me(V, 2);
6990
7048
  return On(X, t, "default", {}, null), pe(e, q), Ye(z);
6991
7049
  }
@@ -7019,15 +7077,15 @@ function Bd(e, t) {
7019
7077
  }), o = m(t, "playerParams", 7), s = m(t, "passageToolbarTools", 7), l = /* @__PURE__ */ $(null), c = /* @__PURE__ */ $(null), d = /* @__PURE__ */ $(null), f = /* @__PURE__ */ $(!1);
7020
7078
  const h = /* @__PURE__ */ M(() => (a(f) ? a(c) : null) || i()), u = /* @__PURE__ */ M(() => (a(f) ? a(d) : null) || r());
7021
7079
  function y() {
7022
- H(f, !1), H(c, null), H(d, null);
7080
+ j(f, !1), j(c, null), j(d, null);
7023
7081
  }
7024
7082
  function v(z) {
7025
- !z || typeof z != "object" || (typeof z.resolvedPlayerTag == "string" && z.resolvedPlayerTag.trim() && H(c, z.resolvedPlayerTag, !0), typeof z.playerAction == "function" && H(d, z.playerAction, !0));
7083
+ !z || typeof z != "object" || (typeof z.resolvedPlayerTag == "string" && z.resolvedPlayerTag.trim() && j(c, z.resolvedPlayerTag, !0), typeof z.playerAction == "function" && j(d, z.playerAction, !0));
7026
7084
  }
7027
7085
  Vi(() => {
7028
- const z = Yr(a(l));
7086
+ const z = Xr(a(l));
7029
7087
  if (!z) return;
7030
- H(f, !0);
7088
+ j(f, !0);
7031
7089
  const q = da(z, v);
7032
7090
  return () => {
7033
7091
  q(), y();
@@ -7066,14 +7124,14 @@ function Bd(e, t) {
7066
7124
  s(z), p();
7067
7125
  }
7068
7126
  }, w = zd(), g = Qe(w);
7069
- Ue(g, (z) => H(l, z), () => a(l));
7127
+ Ue(g, (z) => j(l, z), () => a(l));
7070
7128
  var D = Me(g, 2);
7071
7129
  E(() => P(D, "item-id", n().id)), P(D, "content-kind", "rubric-block-stimulus"), E(() => P(D, "item", n()));
7072
7130
  var A = Re(D), O = Re(A), C = Me(Re(O), 2);
7073
7131
  E(() => P(C, "item-id", n().id)), E(() => P(C, "catalog-id", n().id)), E(() => P(C, "tools", s())), P(C, "content-kind", "rubric-block-stimulus"), P(C, "size", "md"), P(C, "language", "en-US"), kt(C, 1, "svelte-10ek8e9"), Ae(O);
7074
7132
  var L = Me(O, 2), R = Re(L);
7075
- return Ds(R, () => a(h), !1, (z, q) => {
7076
- Bs(z, (V, X) => a(u)?.(V, X), o);
7133
+ return Bs(R, () => a(h), !1, (z, q) => {
7134
+ Fs(z, (V, X) => a(u)?.(V, X), o);
7077
7135
  }), Ae(L), Ae(A), Ae(D), pe(e, w), Ye(k);
7078
7136
  }
7079
7137
  customElements.define("pie-section-player-passage-card", et(Bd, {
@@ -7095,7 +7153,7 @@ customElements.define("pie-section-player-passage-card", et(Bd, {
7095
7153
  var Fd = {
7096
7154
  id: "",
7097
7155
  data: []
7098
- }, Xr = {
7156
+ }, Jr = {
7099
7157
  section: null,
7100
7158
  assessmentItemRefs: [],
7101
7159
  passages: [],
@@ -7110,21 +7168,21 @@ var Fd = {
7110
7168
  testAttemptSession: null,
7111
7169
  itemViewModels: []
7112
7170
  };
7113
- function jd(e, t) {
7171
+ function Hd(e, t) {
7114
7172
  return ua(e, t)?.canonicalItemId || "";
7115
7173
  }
7116
- function Hd(e, t) {
7174
+ function jd(e, t) {
7117
7175
  return ua(e, t)?.session;
7118
7176
  }
7119
7177
  function Vd(e, t) {
7120
- return Hd(e, t) || Fd;
7178
+ return jd(e, t) || Fd;
7121
7179
  }
7122
7180
  function ua(e, t) {
7123
7181
  const n = t.id || "";
7124
7182
  if (n)
7125
7183
  return e.itemViewModels.find((i) => i.itemId === n || i.canonicalItemId === n || i.item?.id === n);
7126
7184
  }
7127
- var xo = {
7185
+ var Ao = {
7128
7186
  iife: {
7129
7187
  tagName: "pie-item-player",
7130
7188
  ensureDefined: () => Promise.resolve(),
@@ -7142,12 +7200,12 @@ var xo = {
7142
7200
  ensureDefined: () => Promise.resolve(),
7143
7201
  attributes: { strategy: "preloaded" }
7144
7202
  }
7145
- }, Ao = "section-demo-direct", Ro = "iife";
7146
- var Mo = "inherit", fa = {
7203
+ }, Ro = "section-demo-direct", Mo = "iife";
7204
+ var Oo = "inherit", fa = {
7147
7205
  mode: "gather",
7148
7206
  role: "student"
7149
7207
  };
7150
- function Kd(e) {
7208
+ function Wd(e) {
7151
7209
  const t = gn(e.runtime?.tools || e.tools || {}), n = or(e.enabledTools), i = or(e.itemToolbarTools), r = or(e.passageToolbarTools);
7152
7210
  return gn({
7153
7211
  ...t,
@@ -7159,7 +7217,7 @@ function Kd(e) {
7159
7217
  }
7160
7218
  });
7161
7219
  }
7162
- function Wd(e) {
7220
+ function Kd(e) {
7163
7221
  const t = e.runtime || {}, n = e.player || {}, i = t.player || {}, r = {
7164
7222
  ...n,
7165
7223
  ...i,
@@ -7187,7 +7245,7 @@ function Wd(e) {
7187
7245
  };
7188
7246
  }
7189
7247
  function $d(e) {
7190
- const t = String(e.effectiveRuntime?.playerType || e.playerType || "iife"), n = xo[t] || xo.iife, i = n?.tagName || "pie-item-player", r = n?.attributes || {}, o = n?.props || {}, s = e.effectiveRuntime?.player || {}, l = o.loaderOptions || {}, c = s.loaderOptions || {};
7248
+ const t = String(e.effectiveRuntime?.playerType || e.playerType || "iife"), n = Ao[t] || Ao.iife, i = n?.tagName || "pie-item-player", r = n?.attributes || {}, o = n?.props || {}, s = e.effectiveRuntime?.player || {}, l = o.loaderOptions || {}, c = s.loaderOptions || {};
7191
7249
  return {
7192
7250
  effectivePlayerType: t,
7193
7251
  resolvedPlayerDefinition: n,
@@ -7209,13 +7267,13 @@ function qd(e) {
7209
7267
  return e.map((t) => t?.entity);
7210
7268
  }
7211
7269
  function Ud(e) {
7212
- const t = e.assessmentId ?? "section-demo-direct", n = e.playerType ?? "iife", i = e.player ?? null, r = e.lazyInit ?? !0, o = e.accessibility ?? null, s = e.coordinator ?? null, l = e.createSectionController ?? null, c = e.isolation ?? "inherit", d = e.env ?? null, f = e.tools ?? null, h = Kd({
7270
+ const t = e.assessmentId ?? "section-demo-direct", n = e.playerType ?? "iife", i = e.player ?? null, r = e.lazyInit ?? !0, o = e.accessibility ?? null, s = e.coordinator ?? null, l = e.createSectionController ?? null, c = e.isolation ?? "inherit", d = e.env ?? null, f = e.tools ?? null, h = Wd({
7213
7271
  runtime: e.runtime,
7214
7272
  tools: f,
7215
7273
  enabledTools: e.enabledTools,
7216
7274
  itemToolbarTools: e.itemToolbarTools,
7217
7275
  passageToolbarTools: e.passageToolbarTools
7218
- }), u = Wd({
7276
+ }), u = Kd({
7219
7277
  assessmentId: t,
7220
7278
  playerType: n,
7221
7279
  player: i,
@@ -7242,7 +7300,7 @@ function ha(e) {
7242
7300
  return e === "iife" ? "preloaded" : e;
7243
7301
  }
7244
7302
  function Gd(e) {
7245
- return e.detail?.composition || Xr;
7303
+ return e.detail?.composition || Jr;
7246
7304
  }
7247
7305
  function pa(e) {
7248
7306
  const t = qd(e.renderables || []);
@@ -7283,7 +7341,7 @@ function Jd(e) {
7283
7341
  };
7284
7342
  }
7285
7343
  function Zd(e) {
7286
- return jd(e.compositionModel, e.item);
7344
+ return Hd(e.compositionModel, e.item);
7287
7345
  }
7288
7346
  var Qd = /* @__PURE__ */ we('<div class="pie-section-player-content-card svelte-pqze5h"><div class="pie-section-player-content-card-body pie-section-player-item-content pie-section-player__item-content svelte-pqze5h">Loading section content...</div></div>'), eu = /* @__PURE__ */ we("<pie-section-player-item-card></pie-section-player-item-card>", 2), tu = {
7289
7347
  hash: "svelte-pqze5h",
@@ -7296,13 +7354,13 @@ function nu(e, t) {
7296
7354
  let v = /* @__PURE__ */ $(!1), k = /* @__PURE__ */ $(""), w = /* @__PURE__ */ $(0);
7297
7355
  const g = _a({
7298
7356
  setLastPreloadSignature: (R) => {
7299
- H(k, R, !0);
7357
+ j(k, R, !0);
7300
7358
  },
7301
7359
  setPreloadRunToken: (R) => {
7302
- H(w, R, !0);
7360
+ j(w, R, !0);
7303
7361
  },
7304
7362
  setElementsLoaded: (R) => {
7305
- H(v, R, !0);
7363
+ j(v, R, !0);
7306
7364
  }
7307
7365
  });
7308
7366
  re(() => {
@@ -7396,7 +7454,7 @@ function nu(e, t) {
7396
7454
  pe(R, z);
7397
7455
  }, L = (R) => {
7398
7456
  var z = si(), q = Qe(z);
7399
- zs(q, 19, n, (V, X) => V.id || X, (V, X, G) => {
7457
+ Ds(q, 19, n, (V, X) => V.id || X, (V, X, G) => {
7400
7458
  var U = eu();
7401
7459
  E(() => P(U, "item", a(X))), E(() => P(U, "itemIndex", a(G))), E(() => P(U, "itemCount", n().length)), E(() => P(U, "canonicalItemId", Zd({
7402
7460
  compositionModel: i(),
@@ -7513,7 +7571,7 @@ function su(e, t) {
7513
7571
  pe(v, k);
7514
7572
  }, y = (v) => {
7515
7573
  var k = si(), w = Qe(k);
7516
- zs(w, 19, n, (g, D) => g.id || D, (g, D) => {
7574
+ Ds(w, 19, n, (g, D) => g.id || D, (g, D) => {
7517
7575
  var A = ru();
7518
7576
  E(() => P(A, "passage", a(D))), E(() => P(A, "playerParams", Xd({
7519
7577
  passage: a(D),
@@ -7555,7 +7613,7 @@ customElements.define("pie-section-player-passages-pane", et(su, {
7555
7613
  type: "String"
7556
7614
  }
7557
7615
  }, [], []));
7558
- var Oo = {
7616
+ var Lo = {
7559
7617
  readiness: { mode: "progressive" },
7560
7618
  preload: { enabled: !0 },
7561
7619
  focus: { autoFocusFirstItem: !1 },
@@ -7569,7 +7627,7 @@ function au(e) {
7569
7627
  return String(e?.id || "");
7570
7628
  }
7571
7629
  }
7572
- function Lo(e) {
7630
+ function No(e) {
7573
7631
  if (e == null) return "";
7574
7632
  try {
7575
7633
  return JSON.stringify(e);
@@ -7578,22 +7636,22 @@ function Lo(e) {
7578
7636
  }
7579
7637
  }
7580
7638
  function lu(e) {
7581
- return (t, n) => (No(t, n, e), {
7639
+ return (t, n) => (zo(t, n, e), {
7582
7640
  update(i) {
7583
- No(t, i, e);
7641
+ zo(t, i, e);
7584
7642
  },
7585
7643
  destroy() {
7586
7644
  uu(t, e.stateKey);
7587
7645
  }
7588
7646
  });
7589
7647
  }
7590
- function No(e, t, n) {
7648
+ function zo(e, t, n) {
7591
7649
  const i = e, r = cu(e, n.stateKey), o = Object.keys(t.attributes || {}), s = Object.keys(t.props || {}), l = r.attributeKeys || [], c = r.propKeys || [];
7592
7650
  for (const u of l) o.includes(u) || e.removeAttribute(u);
7593
7651
  for (const u of c) s.includes(u) || delete i[u];
7594
- const d = Lo(t.config);
7652
+ const d = No(t.config);
7595
7653
  r.configSignature !== d && (i.config = t.config);
7596
- const f = Lo(t.env);
7654
+ const f = No(t.env);
7597
7655
  r.envSignature !== f && (i.env = t.env);
7598
7656
  const h = au(t.session);
7599
7657
  t.session !== void 0 && r.sessionSignature !== h && (i.session = t.session);
@@ -7621,7 +7679,7 @@ function uu(e, t) {
7621
7679
  const n = ai.get(e);
7622
7680
  n && (n.delete(t), n.size === 0 && ai.delete(e));
7623
7681
  }
7624
- function Jr(e, t = !1) {
7682
+ function Zr(e, t = !1) {
7625
7683
  if (typeof e == "boolean") return e;
7626
7684
  if (e == null) return t;
7627
7685
  const n = String(e).trim().toLowerCase();
@@ -7829,7 +7887,7 @@ function ku(e, t) {
7829
7887
  preloaded: "pie-item-player",
7830
7888
  custom: ""
7831
7889
  };
7832
- let s = m(t, "assessmentId", 7, ""), l = m(t, "section", 7, null), c = m(t, "sectionId", 7, ""), d = m(t, "attemptId", 7, ""), f = m(t, "view", 7, "candidate"), h = m(t, "env", 23, () => ({})), u = m(t, "lazyInit", 7, !0), y = m(t, "tools", 23, () => ({})), v = m(t, "accessibility", 23, () => ({})), k = m(t, "player", 7, null), w = m(t, "playerType", 7, ""), g = m(t, "coordinator", 7, null), D = m(t, "createSectionController", 7, null), A = m(t, "isolation", 7, "inherit"), O = /* @__PURE__ */ $(null), C = /* @__PURE__ */ $(null), L = /* @__PURE__ */ $(null), R = /* @__PURE__ */ $(null), z = null, q = null, V = null, X = null, G = /* @__PURE__ */ $(0), U = /* @__PURE__ */ $(null), F = /* @__PURE__ */ $(null), Z = /* @__PURE__ */ $(""), K = null, ce = !1, me = null;
7890
+ let s = m(t, "assessmentId", 7, ""), l = m(t, "section", 7, null), c = m(t, "sectionId", 7, ""), d = m(t, "attemptId", 7, ""), f = m(t, "view", 7, "candidate"), h = m(t, "env", 23, () => ({})), u = m(t, "lazyInit", 7, !0), y = m(t, "tools", 23, () => ({})), v = m(t, "accessibility", 23, () => ({})), k = m(t, "player", 7, null), w = m(t, "playerType", 7, ""), g = m(t, "coordinator", 7, null), D = m(t, "createSectionController", 7, null), A = m(t, "isolation", 7, "inherit"), O = /* @__PURE__ */ $(null), C = /* @__PURE__ */ $(null), L = /* @__PURE__ */ $(null), R = /* @__PURE__ */ $(null), z = null, q = null, V = null, X = null, G = /* @__PURE__ */ $(0), U = /* @__PURE__ */ $(null), F = /* @__PURE__ */ $(null), Z = /* @__PURE__ */ $(""), W = null, ce = !1, me = null;
7833
7891
  const Le = yu();
7834
7892
  function ue() {
7835
7893
  if (!a(O)) return null;
@@ -7837,27 +7895,27 @@ function ku(e, t) {
7837
7895
  return T && "host" in T ? T.host : a(O).parentElement;
7838
7896
  }
7839
7897
  const Q = /* @__PURE__ */ M(() => ue());
7840
- function Te(T, j) {
7841
- a(Q) && qt(a(Q), T, j);
7898
+ function Te(T, H) {
7899
+ a(Q) && qt(a(Q), T, H);
7842
7900
  }
7843
7901
  function _e(T) {
7844
- let j = 5381;
7845
- for (let te = 0; te < T.length; te += 1) j = (j << 5) + j ^ T.charCodeAt(te);
7846
- return (j >>> 0).toString(36);
7902
+ let H = 5381;
7903
+ for (let te = 0; te < T.length; te += 1) H = (H << 5) + H ^ T.charCodeAt(te);
7904
+ return (H >>> 0).toString(36);
7847
7905
  }
7848
7906
  function fe(T) {
7849
7907
  return T && typeof T == "object" ? T : {};
7850
7908
  }
7851
- function je(T) {
7852
- const j = fe(T.section), te = typeof j.identifier == "string" ? j.identifier : "", Y = typeof T.sectionId == "string" ? T.sectionId : "";
7909
+ function He(T) {
7910
+ const H = fe(T.section), te = typeof H.identifier == "string" ? H.identifier : "", Y = typeof T.sectionId == "string" ? T.sectionId : "";
7853
7911
  return te || Y;
7854
7912
  }
7855
7913
  function Pe(T) {
7856
7914
  return typeof T.currentItemIndex == "number" ? T.currentItemIndex : -1;
7857
7915
  }
7858
7916
  function $e(T) {
7859
- return (Array.isArray(T.renderables) ? T.renderables : []).map((j, te) => {
7860
- const Y = fe(fe(j).entity), ze = typeof Y.id == "string" && Y.id || `renderable-${te}`, Xt = fe(Y.config);
7917
+ return (Array.isArray(T.renderables) ? T.renderables : []).map((H, te) => {
7918
+ const Y = fe(fe(H).entity), ze = typeof Y.id == "string" && Y.id || `renderable-${te}`, Xt = fe(Y.config);
7861
7919
  return {
7862
7920
  id: ze,
7863
7921
  version: typeof Y.version == "string" && Y.version || (typeof Y.version == "number" ? String(Y.version) : "") || (typeof Xt.version == "string" ? Xt.version : "")
@@ -7865,9 +7923,9 @@ function ku(e, t) {
7865
7923
  });
7866
7924
  }
7867
7925
  function ge(T) {
7868
- const j = fe(T.itemSessionsByItemId);
7869
- return Object.keys(j).sort((te, Y) => te.localeCompare(Y)).map((te) => {
7870
- const Y = fe(j[te]), ze = typeof Y.id == "string" ? Y.id : "", Xt = Array.isArray(Y.data) ? Y.data : [];
7926
+ const H = fe(T.itemSessionsByItemId);
7927
+ return Object.keys(H).sort((te, Y) => te.localeCompare(Y)).map((te) => {
7928
+ const Y = fe(H[te]), ze = typeof Y.id == "string" ? Y.id : "", Xt = Array.isArray(Y.data) ? Y.data : [];
7871
7929
  let Gn = "";
7872
7930
  try {
7873
7931
  Gn = _e(JSON.stringify(Xt));
@@ -7881,24 +7939,24 @@ function ku(e, t) {
7881
7939
  };
7882
7940
  });
7883
7941
  }
7884
- function He(T) {
7885
- const j = fe(T), te = $e(j).map((ze) => `${ze.id}:${ze.version}`).join("|"), Y = ge(j).map((ze) => `${ze.itemId}:${ze.sessionId}:${ze.payloadSignature}`).join("|");
7942
+ function je(T) {
7943
+ const H = fe(T), te = $e(H).map((ze) => `${ze.id}:${ze.version}`).join("|"), Y = ge(H).map((ze) => `${ze.itemId}:${ze.sessionId}:${ze.payloadSignature}`).join("|");
7886
7944
  return {
7887
- sectionId: je(j),
7888
- currentItemIndex: Pe(j),
7945
+ sectionId: He(H),
7946
+ currentItemIndex: Pe(H),
7889
7947
  renderableSignature: te,
7890
7948
  itemSessionSignature: Y
7891
7949
  };
7892
7950
  }
7893
7951
  function B(T) {
7894
- const j = He(T);
7895
- return `${j.sectionId}|${j.currentItemIndex}|${j.renderableSignature}|${j.itemSessionSignature}`;
7952
+ const H = je(T);
7953
+ return `${H.sectionId}|${H.currentItemIndex}|${H.renderableSignature}|${H.itemSessionSignature}`;
7896
7954
  }
7897
7955
  function _(T) {
7898
7956
  return T === "iife" || T === "esm" || T === "preloaded" || T === "custom";
7899
7957
  }
7900
- function ve(T, j) {
7901
- const te = T?.type, Y = _(te) ? te : _(j) ? j : T?.tagName ? "custom" : "iife", ze = T?.tagName?.trim();
7958
+ function ve(T, H) {
7959
+ const te = T?.type, Y = _(te) ? te : _(H) ? H : T?.tagName ? "custom" : "iife", ze = T?.tagName?.trim();
7902
7960
  return Y === "custom" && !ze ? {
7903
7961
  type: "iife",
7904
7962
  tagName: o.iife,
@@ -7912,19 +7970,19 @@ function ku(e, t) {
7912
7970
  source: T?.source,
7913
7971
  loaderConfig: T?.loaderConfig,
7914
7972
  loaderOptions: T?.loaderOptions,
7915
- isDefault: !T && !j
7973
+ isDefault: !T && !H
7916
7974
  };
7917
7975
  }
7918
7976
  function ye(T) {
7919
- const j = T || {};
7977
+ const H = T || {};
7920
7978
  return {
7921
- mode: typeof j.mode == "string" && j.mode.trim() ? j.mode.trim() : r.mode,
7922
- role: typeof j.role == "string" && j.role.trim() ? j.role.trim() : r.role
7979
+ mode: typeof H.mode == "string" && H.mode.trim() ? H.mode.trim() : r.mode,
7980
+ role: typeof H.role == "string" && H.role.trim() ? H.role.trim() : r.role
7923
7981
  };
7924
7982
  }
7925
7983
  function Xe(T) {
7926
- const j = ye(T);
7927
- return j.mode === "author" ? "author" : j.role === "instructor" ? "scorer" : "candidate";
7984
+ const H = ye(T);
7985
+ return H.mode === "author" ? "author" : H.role === "instructor" ? "scorer" : "candidate";
7928
7986
  }
7929
7987
  async function b() {
7930
7988
  if (D()) return D()();
@@ -7938,67 +7996,67 @@ function ku(e, t) {
7938
7996
  accessibility: v()
7939
7997
  });
7940
7998
  }
7941
- const W = /* @__PURE__ */ M(() => A() !== "force" && a(L)?.coordinator ? a(L).coordinator : g() || a(C));
7999
+ const K = /* @__PURE__ */ M(() => A() !== "force" && a(L)?.coordinator ? a(L).coordinator : g() || a(C));
7942
8000
  re(() => {
7943
8001
  if (g()) {
7944
- a(C) && H(C, null);
8002
+ a(C) && j(C, null);
7945
8003
  return;
7946
8004
  }
7947
8005
  if (A() !== "force" && a(L)?.coordinator) {
7948
- a(C) && H(C, null);
8006
+ a(C) && j(C, null);
7949
8007
  return;
7950
8008
  }
7951
- a(C) || H(C, ee(), !0);
8009
+ a(C) || j(C, ee(), !0);
7952
8010
  });
7953
- const Ie = /* @__PURE__ */ M(() => s() || a(W)?.assessmentId || ""), Ce = /* @__PURE__ */ M(() => c() || l()?.identifier || `section-${a(Ie) || "default"}`), ut = /* @__PURE__ */ M(() => ye(h())), wt = /* @__PURE__ */ M(() => Xe(a(ut))), x = /* @__PURE__ */ M(() => ve(k(), w())), le = /* @__PURE__ */ M(() => Oi({
8011
+ const Se = /* @__PURE__ */ M(() => s() || a(K)?.assessmentId || ""), Ce = /* @__PURE__ */ M(() => c() || l()?.identifier || `section-${a(Se) || "default"}`), ut = /* @__PURE__ */ M(() => ye(h())), wt = /* @__PURE__ */ M(() => Xe(a(ut))), x = /* @__PURE__ */ M(() => ve(k(), w())), le = /* @__PURE__ */ M(() => Oi({
7954
8012
  player: a(x),
7955
8013
  component: "pie-assessment-toolkit"
7956
8014
  })), Ee = /* @__PURE__ */ M(() => {
7957
- if (!a(W)) return null;
7958
- const T = a(W).getServiceBundle();
8015
+ if (!a(K)) return null;
8016
+ const T = a(K).getServiceBundle();
7959
8017
  return {
7960
- toolkitCoordinator: a(W),
7961
- toolCoordinator: a(W).toolCoordinator,
8018
+ toolkitCoordinator: a(K),
8019
+ toolCoordinator: a(K).toolCoordinator,
7962
8020
  ttsService: T.ttsService,
7963
8021
  highlightCoordinator: T.highlightCoordinator,
7964
8022
  catalogResolver: T.catalogResolver,
7965
8023
  elementToolStateStore: T.elementToolStateStore,
7966
- assessmentId: a(Ie),
8024
+ assessmentId: a(Se),
7967
8025
  sectionId: a(Ce),
7968
8026
  itemPlayer: a(x),
7969
- reportSessionChanged: (j, te) => {
8027
+ reportSessionChanged: (H, te) => {
7970
8028
  tt({
7971
- itemId: j,
7972
- result: i.updateItemSession(j, te),
8029
+ itemId: H,
8030
+ result: i.updateItemSession(H, te),
7973
8031
  fallbackSession: te
7974
8032
  });
7975
8033
  }
7976
8034
  };
7977
- }), J = /* @__PURE__ */ M(() => a(W) ? {
8035
+ }), J = /* @__PURE__ */ M(() => a(K) ? {
7978
8036
  runtimeId: n,
7979
- coordinator: a(W)
8037
+ coordinator: a(K)
7980
8038
  } : null);
7981
8039
  function Fe(T) {
7982
- const j = B(T);
7983
- j !== a(Z) && (H(Z, j, !0), H(G, a(G) + 1), H(U, T, !0), Te("composition-changed", {
8040
+ const H = B(T);
8041
+ H !== a(Z) && (j(Z, H, !0), j(G, a(G) + 1), j(U, T, !0), Te("composition-changed", {
7984
8042
  composition: a(U),
7985
8043
  version: a(G)
7986
8044
  }));
7987
8045
  }
7988
8046
  function xe(T) {
7989
- if (K = T ?? i.getCompositionModel(), ce) return;
8047
+ if (W = T ?? i.getCompositionModel(), ce) return;
7990
8048
  ce = !0;
7991
- const j = () => {
7992
- ce = !1, me = null, Fe(K);
8049
+ const H = () => {
8050
+ ce = !1, me = null, Fe(W);
7993
8051
  };
7994
8052
  if (typeof window < "u" && typeof window.requestAnimationFrame == "function") {
7995
- me = window.requestAnimationFrame(j);
8053
+ me = window.requestAnimationFrame(H);
7996
8054
  return;
7997
8055
  }
7998
- queueMicrotask(j);
8056
+ queueMicrotask(H);
7999
8057
  }
8000
8058
  function tt(T) {
8001
- const j = {
8059
+ const H = {
8002
8060
  ...T.result?.eventDetail || T.fallbackSession,
8003
8061
  itemId: T.itemId,
8004
8062
  canonicalItemId: T.canonicalItemId || T.itemId,
@@ -8007,8 +8065,8 @@ function ku(e, t) {
8007
8065
  Iu({
8008
8066
  state: Le,
8009
8067
  itemId: T.itemId,
8010
- payload: j
8011
- }) && Te("session-changed", j);
8068
+ payload: H
8069
+ }) && Te("session-changed", H);
8012
8070
  }
8013
8071
  function Je(T) {
8014
8072
  return T instanceof HTMLElement ? hc(T, Ir)?.runtimeId === n : !1;
@@ -8016,25 +8074,25 @@ function ku(e, t) {
8016
8074
  function Ne(T) {
8017
8075
  return T.detail ?? null;
8018
8076
  }
8019
- function at(T, j) {
8020
- for (const te of j) T.addEventListener(te.name, te.handler);
8077
+ function at(T, H) {
8078
+ for (const te of H) T.addEventListener(te.name, te.handler);
8021
8079
  return () => {
8022
- for (const te of j) T.removeEventListener(te.name, te.handler);
8080
+ for (const te of H) T.removeEventListener(te.name, te.handler);
8023
8081
  };
8024
8082
  }
8025
8083
  re(() => {
8026
8084
  if (a(Q)) {
8027
8085
  if (A() === "force") {
8028
- H(L, null);
8086
+ j(L, null);
8029
8087
  return;
8030
8088
  }
8031
8089
  return vc(a(Q), (T) => {
8032
- T.runtimeId !== n && H(L, T, !0);
8090
+ T.runtimeId !== n && j(L, T, !0);
8033
8091
  });
8034
8092
  }
8035
8093
  }), re(() => {
8036
- const T = A() !== "force" && a(L) ? a(L).runtimeId : null, j = T ? "inherited" : "owned";
8037
- j !== a(R) && (H(R, j, !0), Te(j === "inherited" ? "runtime-inherited" : "runtime-owned", {
8094
+ const T = A() !== "force" && a(L) ? a(L).runtimeId : null, H = T ? "inherited" : "owned";
8095
+ H !== a(R) && (j(R, H, !0), Te(H === "inherited" ? "runtime-inherited" : "runtime-owned", {
8038
8096
  runtimeId: n,
8039
8097
  parentRuntimeId: T
8040
8098
  }));
@@ -8071,19 +8129,19 @@ function ku(e, t) {
8071
8129
  eventMap: Pa,
8072
8130
  staticAttributes: {
8073
8131
  instrumentationLayer: "toolkit",
8074
- assessmentId: a(Ie),
8132
+ assessmentId: a(Se),
8075
8133
  sectionId: a(Ce),
8076
8134
  attemptId: d() || void 0
8077
8135
  }
8078
8136
  });
8079
8137
  }), re(() => {
8080
- if (a(W))
8081
- return a(W).subscribeTelemetry(({ eventName: T, payload: j }) => {
8138
+ if (a(K))
8139
+ return a(K).subscribeTelemetry(({ eventName: T, payload: H }) => {
8082
8140
  if (!Ca(a(le)) || !a(le).isReady()) return;
8083
8141
  const te = T.startsWith("pie-") ? T : `pie-toolkit-${T}`, Y = (/* @__PURE__ */ new Date()).toISOString(), ze = {
8084
- ...j || {},
8142
+ ...H || {},
8085
8143
  instrumentationLayer: "toolkit",
8086
- assessmentId: a(Ie),
8144
+ assessmentId: a(Se),
8087
8145
  sectionId: a(Ce),
8088
8146
  attemptId: d() || void 0,
8089
8147
  component: "pie-assessment-toolkit",
@@ -8091,9 +8149,9 @@ function ku(e, t) {
8091
8149
  timestamp: Y
8092
8150
  };
8093
8151
  a(le).trackEvent(te, ze);
8094
- const Xt = j && typeof j.errorType == "string" ? j.errorType : void 0;
8152
+ const Xt = H && typeof H.errorType == "string" ? H.errorType : void 0;
8095
8153
  if (!T.endsWith("-error") && !Xt) return;
8096
- const Gn = j && typeof j.message == "string" ? j.message : `Toolkit telemetry error: ${T}`;
8154
+ const Gn = H && typeof H.message == "string" ? H.message : `Toolkit telemetry error: ${T}`;
8097
8155
  a(le).trackError(new Error(Gn), {
8098
8156
  component: "pie-assessment-toolkit",
8099
8157
  errorType: Xt || "ToolkitTelemetryError",
@@ -8101,47 +8159,47 @@ function ku(e, t) {
8101
8159
  });
8102
8160
  });
8103
8161
  }), re(() => {
8104
- if (!l() || !a(W)) return;
8162
+ if (!l() || !a(K)) return;
8105
8163
  let T = !1;
8106
8164
  return i.initialize({
8107
- coordinator: a(W),
8165
+ coordinator: a(K),
8108
8166
  section: l(),
8109
8167
  sectionId: a(Ce),
8110
- assessmentId: a(Ie),
8168
+ assessmentId: a(Se),
8111
8169
  attemptId: d() || void 0,
8112
8170
  view: a(wt),
8113
8171
  createDefaultController: b,
8114
- onCompositionChanged: (j) => {
8115
- T || xe(j);
8172
+ onCompositionChanged: (H) => {
8173
+ T || xe(H);
8116
8174
  }
8117
8175
  }).then(() => {
8118
8176
  T || (Te("toolkit-ready", {
8119
8177
  runtimeId: n,
8120
- assessmentId: a(Ie),
8178
+ assessmentId: a(Se),
8121
8179
  sectionId: a(Ce),
8122
8180
  itemPlayer: a(x),
8123
- coordinator: a(W)
8181
+ coordinator: a(K)
8124
8182
  }), Te("section-ready", { sectionId: a(Ce) }));
8125
- }).catch((j) => {
8126
- H(F, j, !0), i.reportSectionError({
8183
+ }).catch((H) => {
8184
+ j(F, H, !0), i.reportSectionError({
8127
8185
  source: "section-runtime",
8128
- error: j,
8186
+ error: H,
8129
8187
  timestamp: Date.now()
8130
8188
  }), Te("runtime-error", {
8131
8189
  runtimeId: n,
8132
- error: j
8190
+ error: H
8133
8191
  });
8134
8192
  }), () => {
8135
8193
  T = !0;
8136
8194
  };
8137
8195
  }), re(() => {
8138
8196
  if (!a(Q)) return;
8139
- const T = a(Q), j = (te) => Je(te.target);
8197
+ const T = a(Q), H = (te) => Je(te.target);
8140
8198
  return at(T, [
8141
8199
  {
8142
- name: Wr,
8200
+ name: Kr,
8143
8201
  handler: (te) => {
8144
- if (!j(te)) return;
8202
+ if (!H(te)) return;
8145
8203
  const Y = Ne(te);
8146
8204
  if (!Y?.element || !Y?.itemId) return;
8147
8205
  const ze = i.register(Y);
@@ -8151,7 +8209,7 @@ function ku(e, t) {
8151
8209
  {
8152
8210
  name: $r,
8153
8211
  handler: (te) => {
8154
- if (!j(te)) return;
8212
+ if (!H(te)) return;
8155
8213
  const Y = Ne(te);
8156
8214
  if (!Y?.itemId) return;
8157
8215
  const ze = Y?.element ? i.unregister(Y.element) : !1;
@@ -8159,9 +8217,9 @@ function ku(e, t) {
8159
8217
  }
8160
8218
  },
8161
8219
  {
8162
- name: qs,
8220
+ name: Us,
8163
8221
  handler: (te) => {
8164
- if (!j(te)) return;
8222
+ if (!H(te)) return;
8165
8223
  const Y = Ne(te);
8166
8224
  if (!Y?.itemId) return;
8167
8225
  const ze = i.updateItemSession(Y.itemId, Y.session);
@@ -8176,7 +8234,7 @@ function ku(e, t) {
8176
8234
  {
8177
8235
  name: bc,
8178
8236
  handler: (te) => {
8179
- if (!j(te)) return;
8237
+ if (!H(te)) return;
8180
8238
  const Y = Ne(te);
8181
8239
  Y?.itemId && i.handleContentLoaded({
8182
8240
  itemId: Y.itemId,
@@ -8190,7 +8248,7 @@ function ku(e, t) {
8190
8248
  {
8191
8249
  name: Ic,
8192
8250
  handler: (te) => {
8193
- if (!j(te)) return;
8251
+ if (!H(te)) return;
8194
8252
  const Y = Ne(te);
8195
8253
  Y?.itemId && i.handleItemPlayerError({
8196
8254
  itemId: Y.itemId,
@@ -8203,17 +8261,17 @@ function ku(e, t) {
8203
8261
  }
8204
8262
  ]);
8205
8263
  });
8206
- async function Ht() {
8207
- if (!a(W)) throw new Error("Coordinator not initialized");
8208
- await a(W).waitUntilReady();
8264
+ async function jt() {
8265
+ if (!a(K)) throw new Error("Coordinator not initialized");
8266
+ await a(K).waitUntilReady();
8209
8267
  }
8210
8268
  function Tt() {
8211
- if (!a(W)) throw new Error("Coordinator not initialized");
8212
- return a(W).getServiceBundle();
8269
+ if (!a(K)) throw new Error("Coordinator not initialized");
8270
+ return a(K).getServiceBundle();
8213
8271
  }
8214
8272
  function qe(T) {
8215
- if (!a(W)) throw new Error("Coordinator not initialized");
8216
- a(W).setHooks(T);
8273
+ if (!a(K)) throw new Error("Coordinator not initialized");
8274
+ a(K).setHooks(T);
8217
8275
  }
8218
8276
  function he(T) {
8219
8277
  return i.navigateToItem(T);
@@ -8232,11 +8290,11 @@ function ku(e, t) {
8232
8290
  }
8233
8291
  re(() => () => {
8234
8292
  me !== null && typeof window < "u" && (window.cancelAnimationFrame(me), me = null), ce = !1, i.dispose().catch((T) => {
8235
- H(F, T, !0);
8293
+ j(F, T, !0);
8236
8294
  });
8237
8295
  });
8238
8296
  var N = {
8239
- waitUntilReady: Ht,
8297
+ waitUntilReady: jt,
8240
8298
  getServiceBundle: Tt,
8241
8299
  setHooks: qe,
8242
8300
  navigateToItem: he,
@@ -8329,7 +8387,7 @@ function ku(e, t) {
8329
8387
  A(T), p();
8330
8388
  }
8331
8389
  }, ft = _u(), Un = Qe(ft);
8332
- Ue(Un, (T) => H(O, T), () => a(O));
8390
+ Ue(Un, (T) => j(O, T), () => a(O));
8333
8391
  var Yi = Me(Un, 2);
8334
8392
  return On(Yi, t, "default", {}, null), pe(e, ft), Ye(N);
8335
8393
  }
@@ -8515,7 +8573,7 @@ var Pu = class {
8515
8573
  };
8516
8574
  }
8517
8575
  applyItemSessionChanged(e) {
8518
- const t = zo({
8576
+ const t = Do({
8519
8577
  itemId: e.itemId,
8520
8578
  sessionDetail: e.sessionDetail,
8521
8579
  previousItemSession: e.itemSessions[e.itemId]
@@ -8545,7 +8603,7 @@ var Pu = class {
8545
8603
  }
8546
8604
  };
8547
8605
  }
8548
- }, Au = Bo("section-controller", () => Do()), Ru = class {
8606
+ }, Au = Fo("section-controller", () => Bo()), Ru = class {
8549
8607
  constructor() {
8550
8608
  this.contentService = new Pu(), this.sessionService = new xu(), this.itemNavigationService = new Eu(), this.sessionPersistence = null, this.state = {
8551
8609
  input: null,
@@ -9026,7 +9084,7 @@ var Pu = class {
9026
9084
  };
9027
9085
  function Nu(e, t) {
9028
9086
  Ge(t, !0), st(e, Lu);
9029
- let n = m(t, "assessmentId", 7, Ao), i = m(t, "runtime", 7, null), r = m(t, "section", 7, null), o = m(t, "sectionId", 7, ""), s = m(t, "attemptId", 7, ""), l = m(t, "playerType", 7, Ro), c = m(t, "player", 7, null), d = m(t, "lazyInit", 7, !0), f = m(t, "tools", 7, null), h = m(t, "accessibility", 7, null), u = m(t, "coordinator", 7, null), y = m(t, "createSectionController", 7, null), v = m(t, "isolation", 7, Mo), k = m(t, "env", 7, null), w = /* @__PURE__ */ $(null), g = /* @__PURE__ */ $(null), D = /* @__PURE__ */ $(-1);
9087
+ let n = m(t, "assessmentId", 7, Ro), i = m(t, "runtime", 7, null), r = m(t, "section", 7, null), o = m(t, "sectionId", 7, ""), s = m(t, "attemptId", 7, ""), l = m(t, "playerType", 7, Mo), c = m(t, "player", 7, null), d = m(t, "lazyInit", 7, !0), f = m(t, "tools", 7, null), h = m(t, "accessibility", 7, null), u = m(t, "coordinator", 7, null), y = m(t, "createSectionController", 7, null), v = m(t, "isolation", 7, Oo), k = m(t, "env", 7, null), w = /* @__PURE__ */ $(null), g = /* @__PURE__ */ $(null), D = /* @__PURE__ */ $(-1);
9030
9088
  const A = Mn(), O = /* @__PURE__ */ M(() => i()?.assessmentId ?? n()), C = /* @__PURE__ */ M(() => i()?.playerType ?? l()), L = /* @__PURE__ */ M(() => i()?.player ?? c()), R = /* @__PURE__ */ M(() => i()?.lazyInit ?? d()), z = /* @__PURE__ */ M(() => i()?.tools ?? f()), q = /* @__PURE__ */ M(() => i()?.accessibility ?? h()), V = /* @__PURE__ */ M(() => i()?.coordinator ?? u()), X = /* @__PURE__ */ M(() => i()?.createSectionController ?? y()), G = /* @__PURE__ */ M(() => i()?.isolation ?? v()), U = /* @__PURE__ */ M(() => i()?.env ?? k() ?? fa), F = /* @__PURE__ */ M(() => o() || a(Z)?.identifier || "");
9031
9089
  let Z = /* @__PURE__ */ M(() => {
9032
9090
  if (!r()) return null;
@@ -9036,30 +9094,30 @@ function Nu(e, t) {
9036
9094
  personalNeedsProfile: ud()
9037
9095
  };
9038
9096
  });
9039
- function K(b, ee) {
9097
+ function W(b, ee) {
9040
9098
  A(b, ee);
9041
9099
  }
9042
9100
  function ce(b) {
9043
- const ee = b.detail, W = ee?.composition || Xr, Ie = typeof ee?.version == "number" ? ee.version : a(D) + 1;
9044
- Ie !== a(D) && (H(D, Ie, !0), K("composition-changed", { composition: W }));
9101
+ const ee = b.detail, K = ee?.composition || Jr, Se = typeof ee?.version == "number" ? ee.version : a(D) + 1;
9102
+ Se !== a(D) && (j(D, Se, !0), W("composition-changed", { composition: K }));
9045
9103
  }
9046
9104
  function me(b, ee) {
9047
- const W = b.detail;
9048
- ee === "toolkit-ready" && W?.coordinator && H(g, W.coordinator, !0), K(ee, W || {});
9105
+ const K = b.detail;
9106
+ ee === "toolkit-ready" && K?.coordinator && j(g, K.coordinator, !0), W(ee, K || {});
9049
9107
  }
9050
9108
  const Le = /* @__PURE__ */ M(() => gn(a(z) || {})), ue = /* @__PURE__ */ M(() => [
9051
9109
  "section",
9052
9110
  "item",
9053
9111
  "passage"
9054
- ].some((b) => Ys(a(Le), b).includes("annotationToolbar"))), Q = /* @__PURE__ */ M(() => a(g)?.isToolEnabled?.("annotationToolbar") ?? a(Le)?.providers?.annotationToolbar?.enabled !== !1), Te = /* @__PURE__ */ M(() => !!(a(g) && a(ue) && a(Q)));
9112
+ ].some((b) => Xs(a(Le), b).includes("annotationToolbar"))), Q = /* @__PURE__ */ M(() => a(g)?.isToolEnabled?.("annotationToolbar") ?? a(Le)?.providers?.annotationToolbar?.enabled !== !1), Te = /* @__PURE__ */ M(() => !!(a(g) && a(ue) && a(Q)));
9055
9113
  let _e = /* @__PURE__ */ $(!1);
9056
9114
  re(() => {
9057
9115
  if (!a(Te) || a(_e)) return;
9058
9116
  let b = !1;
9059
- return import("./tool-annotation-toolbar-BPFElcYO.js").then(() => {
9060
- b || H(_e, !0);
9117
+ return import("./tool-annotation-toolbar-CltCGj49.js").then(() => {
9118
+ b || j(_e, !0);
9061
9119
  }).catch(() => {
9062
- b || H(_e, !1);
9120
+ b || j(_e, !1);
9063
9121
  }), () => {
9064
9122
  b = !0;
9065
9123
  };
@@ -9069,24 +9127,24 @@ function Nu(e, t) {
9069
9127
  function fe(b) {
9070
9128
  return a(w)?.navigateToItem ? a(w).navigateToItem(b) : null;
9071
9129
  }
9072
- function je() {
9130
+ function He() {
9073
9131
  return a(w)?.getCompositionModel ? a(w).getCompositionModel() : null;
9074
9132
  }
9075
9133
  function Pe() {
9076
- const b = je(), ee = b?.items || [], W = b?.isPageMode === !0, Ie = Math.max(0, Math.min(typeof b?.currentItemIndex == "number" ? b.currentItemIndex : 0, Math.max(0, ee.length - 1)));
9134
+ const b = He(), ee = b?.items || [], K = b?.isPageMode === !0, Se = Math.max(0, Math.min(typeof b?.currentItemIndex == "number" ? b.currentItemIndex : 0, Math.max(0, ee.length - 1)));
9077
9135
  return {
9078
- currentIndex: Ie,
9136
+ currentIndex: Se,
9079
9137
  totalItems: ee.length,
9080
- canNext: !W && Ie < ee.length - 1,
9081
- canPrevious: !W && Ie > 0,
9082
- currentItemId: ee[Ie]?.id || void 0
9138
+ canNext: !K && Se < ee.length - 1,
9139
+ canPrevious: !K && Se > 0,
9140
+ currentItemId: ee[Se]?.id || void 0
9083
9141
  };
9084
9142
  }
9085
9143
  function $e() {
9086
9144
  const b = a(F);
9087
9145
  if (!b) return null;
9088
- const ee = s() || void 0, W = a(g) || a(V);
9089
- return W?.getSectionController && W.getSectionController({
9146
+ const ee = s() || void 0, K = a(g) || a(V);
9147
+ return K?.getSectionController && K.getSectionController({
9090
9148
  sectionId: b,
9091
9149
  attemptId: ee
9092
9150
  }) || null;
@@ -9094,25 +9152,25 @@ function Nu(e, t) {
9094
9152
  function ge() {
9095
9153
  return $e();
9096
9154
  }
9097
- async function He(b = 5e3) {
9155
+ async function je(b = 5e3) {
9098
9156
  const ee = Date.now();
9099
9157
  for (; Date.now() - ee < b; ) {
9100
- const W = $e();
9101
- if (W) return W;
9102
- await new Promise((Ie) => setTimeout(Ie, 25));
9158
+ const K = $e();
9159
+ if (K) return K;
9160
+ await new Promise((Se) => setTimeout(Se, 25));
9103
9161
  }
9104
9162
  return null;
9105
9163
  }
9106
9164
  var B = {
9107
9165
  navigateToItem: fe,
9108
- getCompositionModelSnapshot: je,
9166
+ getCompositionModelSnapshot: He,
9109
9167
  getNavigationStateSnapshot: Pe,
9110
9168
  getSectionController: ge,
9111
- waitForSectionController: He,
9169
+ waitForSectionController: je,
9112
9170
  get assessmentId() {
9113
9171
  return n();
9114
9172
  },
9115
- set assessmentId(b = Ao) {
9173
+ set assessmentId(b = Ro) {
9116
9174
  n(b), p();
9117
9175
  },
9118
9176
  get runtime() {
@@ -9142,7 +9200,7 @@ function Nu(e, t) {
9142
9200
  get playerType() {
9143
9201
  return l();
9144
9202
  },
9145
- set playerType(b = Ro) {
9203
+ set playerType(b = Mo) {
9146
9204
  l(b), p();
9147
9205
  },
9148
9206
  get player() {
@@ -9184,7 +9242,7 @@ function Nu(e, t) {
9184
9242
  get isolation() {
9185
9243
  return v();
9186
9244
  },
9187
- set isolation(b = Mo) {
9245
+ set isolation(b = Oo) {
9188
9246
  v(b), p();
9189
9247
  },
9190
9248
  get env() {
@@ -9203,7 +9261,7 @@ function Nu(e, t) {
9203
9261
  a(Te) && a(_e) && b(ye);
9204
9262
  });
9205
9263
  var Xe = Me(ve, 2);
9206
- return On(Xe, t, "default", {}, null), Ae(_), Ue(_, (b) => H(w, b), () => a(w)), Ke("composition-changed", _, ce), Ke("toolkit-ready", _, (b) => me(b, "toolkit-ready")), Ke("section-ready", _, (b) => me(b, "section-ready")), Ke("runtime-error", _, (b) => me(b, "runtime-error")), Ke("session-changed", _, (b) => me(b, "session-changed")), Ke("runtime-owned", _, (b) => me(b, "runtime-owned")), Ke("runtime-inherited", _, (b) => me(b, "runtime-inherited")), pe(e, _), Ye(B);
9264
+ return On(Xe, t, "default", {}, null), Ae(_), Ue(_, (b) => j(w, b), () => a(w)), We("composition-changed", _, ce), We("toolkit-ready", _, (b) => me(b, "toolkit-ready")), We("section-ready", _, (b) => me(b, "section-ready")), We("runtime-error", _, (b) => me(b, "runtime-error")), We("session-changed", _, (b) => me(b, "session-changed")), We("runtime-owned", _, (b) => me(b, "runtime-owned")), We("runtime-inherited", _, (b) => me(b, "runtime-inherited")), pe(e, _), Ye(B);
9207
9265
  }
9208
9266
  customElements.define("pie-section-player-base", et(Nu, {
9209
9267
  assessmentId: {
@@ -9245,7 +9303,7 @@ customElements.define("pie-section-player-base", et(Nu, {
9245
9303
  "getSectionController",
9246
9304
  "waitForSectionController"
9247
9305
  ], { mode: "open" }));
9248
- var zu = /* @__PURE__ */ we("<pie-section-toolbar></pie-section-toolbar>", 2), Du = /* @__PURE__ */ we('<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), Bu = /* @__PURE__ */ we('<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), Fu = /* @__PURE__ */ we("<pie-section-toolbar></pie-section-toolbar>", 2), ju = /* @__PURE__ */ we("<div><!> <div><!> <!> <!></div> <!></div>"), Hu = {
9306
+ var zu = /* @__PURE__ */ we("<pie-section-toolbar></pie-section-toolbar>", 2), Du = /* @__PURE__ */ we('<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), Bu = /* @__PURE__ */ we('<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), Fu = /* @__PURE__ */ we("<pie-section-toolbar></pie-section-toolbar>", 2), Hu = /* @__PURE__ */ we("<div><!> <div><!> <!> <!></div> <!></div>"), ju = {
9249
9307
  hash: "svelte-klnow4",
9250
9308
  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;}
9251
9309
 
@@ -9254,9 +9312,9 @@ var zu = /* @__PURE__ */ we("<pie-section-toolbar></pie-section-toolbar>", 2), D
9254
9312
  }`
9255
9313
  };
9256
9314
  function Vu(e, t) {
9257
- Ge(t, !0), st(e, Hu);
9315
+ Ge(t, !0), st(e, ju);
9258
9316
  let n = m(t, "showToolbar", 7, "false"), i = m(t, "toolbarPosition", 7, "right"), r = m(t, "enabledTools", 7, "");
9259
- const o = /* @__PURE__ */ M(() => Jr(n(), !1) && i() !== "none"), s = /* @__PURE__ */ M(() => i() === "top"), l = /* @__PURE__ */ M(() => i() === "bottom"), c = /* @__PURE__ */ M(() => i() === "left" || i() === "right");
9317
+ const o = /* @__PURE__ */ M(() => Zr(n(), !1) && i() !== "none"), s = /* @__PURE__ */ M(() => i() === "top"), l = /* @__PURE__ */ M(() => i() === "bottom"), c = /* @__PURE__ */ M(() => i() === "left" || i() === "right");
9260
9318
  var d = {
9261
9319
  get showToolbar() {
9262
9320
  return n();
@@ -9276,7 +9334,7 @@ function Vu(e, t) {
9276
9334
  set enabledTools(C = "") {
9277
9335
  r(C), p();
9278
9336
  }
9279
- }, f = ju(), h = Re(f), u = (C) => {
9337
+ }, f = Hu(), h = Re(f), u = (C) => {
9280
9338
  var L = zu();
9281
9339
  E(() => P(L, "position", i())), E(() => P(L, "enabled-tools", r())), E(() => kt(L, 1, `pie-section-player-toolbar pie-section-player-toolbar--${i()}`, "svelte-klnow4")), pe(C, L);
9282
9340
  };
@@ -9323,14 +9381,14 @@ customElements.define("pie-section-player-shell", et(Vu, {
9323
9381
  type: "String"
9324
9382
  }
9325
9383
  }, ["default"], [], { mode: "open" }));
9326
- var Ku = /* @__PURE__ */ we('<div class="pie-section-player-layout-scaffold-anchor svelte-9tgqlk" aria-hidden="true"></div> <div class="pie-section-player-nav-status svelte-9tgqlk" role="status" aria-live="polite" aria-atomic="true"> </div> <pie-section-player-base><pie-section-player-shell><!></pie-section-player-shell></pie-section-player-base>', 3), Wu = {
9384
+ var Wu = /* @__PURE__ */ we('<div class="pie-section-player-layout-scaffold-anchor svelte-9tgqlk" aria-hidden="true"></div> <div class="pie-section-player-nav-status svelte-9tgqlk" role="status" aria-live="polite" aria-atomic="true"> </div> <pie-section-player-base><pie-section-player-shell><!></pie-section-player-shell></pie-section-player-base>', 3), Ku = {
9327
9385
  hash: "svelte-9tgqlk",
9328
9386
  code: `.pie-section-player-layout-scaffold-anchor.svelte-9tgqlk {display:none;}
9329
9387
 
9330
9388
  /* Visually hidden but available to screen readers (WCAG 4.1.3). */.pie-section-player-nav-status.svelte-9tgqlk {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;}`
9331
9389
  };
9332
9390
  function ma(e, t) {
9333
- Ge(t, !0), st(e, Wu);
9391
+ Ge(t, !0), st(e, Ku);
9334
9392
  let n = m(t, "runtime", 7, null), i = m(t, "section", 7, null), r = m(t, "sectionId", 7, ""), o = m(t, "attemptId", 7, ""), s = m(t, "showToolbar", 7, "false"), l = m(t, "toolbarPosition", 7, "right"), c = m(t, "enabledTools", 7, ""), d = m(t, "focusPolicy", 23, () => ({ autoFocusFirstItem: !1 })), f = m(t, "cardRenderContext", 7, null), h = m(t, "onCompositionChanged", 7), u = m(t, "onSectionReady", 7), y = m(t, "onRuntimeError", 7), v = m(t, "onSessionChanged", 7), k = m(t, "onRuntimeOwned", 7), w = m(t, "onRuntimeInherited", 7), g = m(t, "onToolkitReady", 7), D = /* @__PURE__ */ $(null), A = /* @__PURE__ */ $(""), O = null;
9335
9393
  function C(_) {
9336
9394
  const ve = typeof _.itemIndex == "number" ? _.itemIndex + 1 : null, ye = typeof _.totalItems == "number" ? _.totalItems : null;
@@ -9338,7 +9396,7 @@ function ma(e, t) {
9338
9396
  }
9339
9397
  function L(_) {
9340
9398
  O?.(), O = null, _?.subscribe && (O = _.subscribe((ve) => {
9341
- ve?.type === "item-selected" && (H(A, C(ve), !0), d()?.autoFocusFirstItem === !0 && queueMicrotask(() => {
9399
+ ve?.type === "item-selected" && (j(A, C(ve), !0), d()?.autoFocusFirstItem === !0 && queueMicrotask(() => {
9342
9400
  const ye = Array.from(document.querySelectorAll(".pie-section-player-content-card[data-section-item-card]"));
9343
9401
  if (!ye.length) return;
9344
9402
  const Xe = ye.find((b) => ve.currentItemId && b.getAttribute("data-canonical-item-id") === String(ve.currentItemId) || ve.currentItemId && b.closest("pie-item-shell")?.getAttribute("canonical-item-id") === String(ve.currentItemId)) || ye[0];
@@ -9353,7 +9411,7 @@ function ma(e, t) {
9353
9411
  O?.();
9354
9412
  });
9355
9413
  let R = /* @__PURE__ */ $(null), z = /* @__PURE__ */ $(null);
9356
- const q = /* @__PURE__ */ M(() => Yr(a(D))), V = /* @__PURE__ */ M(() => Jr(s(), !1));
9414
+ const q = /* @__PURE__ */ M(() => Xr(a(D))), V = /* @__PURE__ */ M(() => Zr(s(), !1));
9357
9415
  function X(_) {
9358
9416
  h()?.(_);
9359
9417
  }
@@ -9369,7 +9427,7 @@ function ma(e, t) {
9369
9427
  function Z(_) {
9370
9428
  k()?.(_);
9371
9429
  }
9372
- function K(_) {
9430
+ function W(_) {
9373
9431
  w()?.(_);
9374
9432
  }
9375
9433
  function ce(_) {
@@ -9399,8 +9457,8 @@ function ma(e, t) {
9399
9457
  }
9400
9458
  re(() => {
9401
9459
  if (!(!a(q) || !f()))
9402
- return H(z, xd(a(q), f()), !0), () => {
9403
- a(z)?.disconnect(), H(z, null);
9460
+ return j(z, xd(a(q), f()), !0), () => {
9461
+ a(z)?.disconnect(), j(z, null);
9404
9462
  };
9405
9463
  }), re(() => {
9406
9464
  f() && a(z)?.setValue(f());
@@ -9507,16 +9565,16 @@ function ma(e, t) {
9507
9565
  set onToolkitReady(_) {
9508
9566
  g(_), p();
9509
9567
  }
9510
- }, fe = Ku(), je = Qe(fe);
9511
- Ue(je, (_) => H(D, _), () => a(D));
9512
- var Pe = Me(je, 2), $e = Re(Pe, !0);
9568
+ }, fe = Wu(), He = Qe(fe);
9569
+ Ue(He, (_) => j(D, _), () => a(D));
9570
+ var Pe = Me(He, 2), $e = Re(Pe, !0);
9513
9571
  Ae(Pe);
9514
9572
  var ge = Me(Pe, 2);
9515
9573
  E(() => P(ge, "runtime", n())), E(() => P(ge, "section", i())), E(() => P(ge, "section-id", r())), E(() => P(ge, "attempt-id", o()));
9516
- var He = Re(ge);
9517
- E(() => P(He, "show-toolbar", a(V))), E(() => P(He, "toolbar-position", l())), E(() => P(He, "enabled-tools", c()));
9518
- var B = Re(He);
9519
- return On(B, t, "default", {}, null), Ae(He), Ae(ge), Ue(ge, (_) => H(R, _), () => a(R)), E(() => Ms($e, a(A))), Ke("composition-changed", ge, X), Ke("section-ready", ge, G), Ke("runtime-error", ge, U), Ke("session-changed", ge, F), Ke("runtime-owned", ge, Z), Ke("runtime-inherited", ge, K), Ke("toolkit-ready", ge, ce), pe(e, fe), Ye(_e);
9574
+ var je = Re(ge);
9575
+ E(() => P(je, "show-toolbar", a(V))), E(() => P(je, "toolbar-position", l())), E(() => P(je, "enabled-tools", c()));
9576
+ var B = Re(je);
9577
+ return On(B, t, "default", {}, null), Ae(je), Ae(ge), Ue(ge, (_) => j(R, _), () => a(R)), E(() => Os($e, a(A))), We("composition-changed", ge, X), We("section-ready", ge, G), We("runtime-error", ge, U), We("session-changed", ge, F), We("runtime-owned", ge, Z), We("runtime-inherited", ge, W), We("toolkit-ready", ge, ce), pe(e, fe), Ye(_e);
9520
9578
  }
9521
9579
  et(ma, {
9522
9580
  runtime: {},
@@ -9547,7 +9605,7 @@ function qi(e, t) {
9547
9605
  let n = m(t, "assessmentId", 7), i = m(t, "runtime", 7, null), r = m(t, "section", 7, null), o = m(t, "sectionId", 7, ""), s = m(t, "attemptId", 7, ""), l = m(t, "playerType", 7), c = m(t, "player", 7), d = m(t, "lazyInit", 7), f = m(t, "tools", 7), h = m(t, "accessibility", 7), u = m(t, "coordinator", 7), y = m(t, "createSectionController", 7), v = m(t, "isolation", 7), k = m(t, "env", 7), w = m(t, "iifeBundleHost", 7), g = m(t, "showToolbar", 7, "false"), D = m(t, "toolbarPosition", 7, "right"), A = m(t, "enabledTools", 7, ""), O = m(t, "itemToolbarTools", 7, ""), C = m(t, "passageToolbarTools", 7, ""), L = m(t, "debug", 7, void 0), R = m(t, "playerActionConfig", 23, () => ({
9548
9606
  stateKey: "__sectionPlayerAppliedParams",
9549
9607
  includeSessionRefInState: !1
9550
- })), z = m(t, "policies", 7, Oo);
9608
+ })), z = m(t, "policies", 7, Lo);
9551
9609
  const q = Mn(), V = typeof window < "u" && typeof document < "u", X = /* @__PURE__ */ M(() => {
9552
9610
  if (L() !== void 0 && L() !== null) {
9553
9611
  const N = String(L()), ft = !(N.toLowerCase() === "false" || N === "0" || N === "");
@@ -9557,10 +9615,10 @@ function qi(e, t) {
9557
9615
  }
9558
9616
  return ft;
9559
9617
  }
9560
- return Do();
9561
- }), G = Bo("section-player-layout-kernel", () => a(X));
9562
- let U = /* @__PURE__ */ $(on(pa(Xr))), F = /* @__PURE__ */ $(!1), Z = /* @__PURE__ */ $(null), K = /* @__PURE__ */ $(!1), ce = /* @__PURE__ */ $(!1), me = /* @__PURE__ */ $(!1), Le = /* @__PURE__ */ $(!1), ue = /* @__PURE__ */ $(!1);
9563
- const Q = /* @__PURE__ */ M(() => a(U).compositionModel), Te = /* @__PURE__ */ M(() => a(U).passages), _e = /* @__PURE__ */ M(() => a(U).items), fe = /* @__PURE__ */ M(() => a(U).renderables), je = /* @__PURE__ */ M(() => a(U).renderablesSignature), Pe = /* @__PURE__ */ M(() => Ud({
9618
+ return Bo();
9619
+ }), G = Fo("section-player-layout-kernel", () => a(X));
9620
+ let U = /* @__PURE__ */ $(on(pa(Jr))), F = /* @__PURE__ */ $(!1), Z = /* @__PURE__ */ $(null), W = /* @__PURE__ */ $(!1), ce = /* @__PURE__ */ $(!1), me = /* @__PURE__ */ $(!1), Le = /* @__PURE__ */ $(!1), ue = /* @__PURE__ */ $(!1);
9621
+ const Q = /* @__PURE__ */ M(() => a(U).compositionModel), Te = /* @__PURE__ */ M(() => a(U).passages), _e = /* @__PURE__ */ M(() => a(U).items), fe = /* @__PURE__ */ M(() => a(U).renderables), He = /* @__PURE__ */ M(() => a(U).renderablesSignature), Pe = /* @__PURE__ */ M(() => Ud({
9564
9622
  assessmentId: n(),
9565
9623
  playerType: l(),
9566
9624
  player: c(),
@@ -9575,34 +9633,34 @@ function qi(e, t) {
9575
9633
  enabledTools: A(),
9576
9634
  itemToolbarTools: O(),
9577
9635
  passageToolbarTools: C()
9578
- })), $e = /* @__PURE__ */ M(() => a(Pe).effectiveRuntime), ge = /* @__PURE__ */ M(() => a(Pe).playerRuntime), He = /* @__PURE__ */ M(() => a(ge).resolvedPlayerDefinition), B = /* @__PURE__ */ M(() => a(ge).resolvedPlayerTag), _ = /* @__PURE__ */ M(() => a(ge).resolvedPlayerAttributes), ve = /* @__PURE__ */ M(() => a(ge).resolvedPlayerProps), ye = /* @__PURE__ */ M(() => L() === void 0 || L() === null ? a(ve) : {
9636
+ })), $e = /* @__PURE__ */ M(() => a(Pe).effectiveRuntime), ge = /* @__PURE__ */ M(() => a(Pe).playerRuntime), je = /* @__PURE__ */ M(() => a(ge).resolvedPlayerDefinition), B = /* @__PURE__ */ M(() => a(ge).resolvedPlayerTag), _ = /* @__PURE__ */ M(() => a(ge).resolvedPlayerAttributes), ve = /* @__PURE__ */ M(() => a(ge).resolvedPlayerProps), ye = /* @__PURE__ */ M(() => L() === void 0 || L() === null ? a(ve) : {
9579
9637
  ...a(ve) || {},
9580
9638
  debug: L()
9581
- }), Xe = /* @__PURE__ */ M(() => a(ge).resolvedPlayerEnv), b = /* @__PURE__ */ M(() => a(ge).strategy), ee = /* @__PURE__ */ M(() => lu(R())), W = /* @__PURE__ */ M(() => ({
9639
+ }), Xe = /* @__PURE__ */ M(() => a(ge).resolvedPlayerEnv), b = /* @__PURE__ */ M(() => a(ge).strategy), ee = /* @__PURE__ */ M(() => lu(R())), K = /* @__PURE__ */ M(() => ({
9582
9640
  resolvedPlayerTag: a(B),
9583
9641
  playerAction: a(ee)
9584
- })), Ie = /* @__PURE__ */ M(() => Jr(g(), !1)), Ce = /* @__PURE__ */ M(() => hu({
9642
+ })), Se = /* @__PURE__ */ M(() => Zr(g(), !1)), Ce = /* @__PURE__ */ M(() => hu({
9585
9643
  mode: z().readiness.mode,
9586
9644
  signals: {
9587
- sectionReady: a(K),
9588
- interactionReady: a(K),
9645
+ sectionReady: a(W),
9646
+ interactionReady: a(W),
9589
9647
  allLoadingComplete: a(F),
9590
9648
  runtimeError: a(Le)
9591
9649
  },
9592
9650
  reason: `policy:${z().readiness.mode}`
9593
9651
  }));
9594
9652
  function ut(N) {
9595
- H(U, Yd(N), !0), q("composition-changed", N.detail);
9653
+ j(U, Yd(N), !0), q("composition-changed", N.detail);
9596
9654
  }
9597
9655
  function wt(N) {
9598
9656
  const ft = N.detail;
9599
- H(F, ft?.elementsLoaded === !0);
9657
+ j(F, ft?.elementsLoaded === !0);
9600
9658
  }
9601
9659
  function x(N) {
9602
- H(K, !0);
9660
+ j(W, !0);
9603
9661
  }
9604
9662
  function le(N) {
9605
- H(Le, !0), q("runtime-error", N.detail || {});
9663
+ j(Le, !0), q("runtime-error", N.detail || {});
9606
9664
  }
9607
9665
  function Ee(N) {
9608
9666
  q("session-changed", N.detail || {});
@@ -9616,7 +9674,7 @@ function qi(e, t) {
9616
9674
  async function xe() {
9617
9675
  if (a(ue)) return;
9618
9676
  const N = await a(Z)?.waitForSectionController?.(2500);
9619
- N && (H(ue, !0), q("section-controller-ready", {
9677
+ N && (j(ue, !0), q("section-controller-ready", {
9620
9678
  sectionId: o(),
9621
9679
  attemptId: s() || void 0,
9622
9680
  controller: N
@@ -9650,7 +9708,7 @@ function qi(e, t) {
9650
9708
  passagesCount: a(Te).length
9651
9709
  };
9652
9710
  }
9653
- function Ht() {
9711
+ function jt() {
9654
9712
  return Je();
9655
9713
  }
9656
9714
  function Tt() {
@@ -9669,7 +9727,7 @@ function qi(e, t) {
9669
9727
  }
9670
9728
  function Rt() {
9671
9729
  const N = a(Z)?.getSectionController?.() || null;
9672
- return N && !a(ue) && (H(ue, !0), q("section-controller-ready", {
9730
+ return N && !a(ue) && (j(ue, !0), q("section-controller-ready", {
9673
9731
  sectionId: o(),
9674
9732
  attemptId: s() || void 0,
9675
9733
  controller: N
@@ -9677,23 +9735,23 @@ function qi(e, t) {
9677
9735
  }
9678
9736
  async function Ui(N = 5e3) {
9679
9737
  const ft = await a(Z)?.waitForSectionController?.(N);
9680
- return ft && !a(ue) && (H(ue, !0), q("section-controller-ready", {
9738
+ return ft && !a(ue) && (j(ue, !0), q("section-controller-ready", {
9681
9739
  sectionId: o(),
9682
9740
  attemptId: s() || void 0,
9683
9741
  controller: ft
9684
9742
  })), ft || null;
9685
9743
  }
9686
9744
  re(() => {
9687
- a(He)?.ensureDefined?.().catch((N) => {
9745
+ a(je)?.ensureDefined?.().catch((N) => {
9688
9746
  G.error("Failed to load item player component:", N);
9689
9747
  });
9690
9748
  }), re(() => {
9691
- q("readiness-change", a(Ce)), a(Ce).interactionReady && !a(ce) && (H(ce, !0), q("interaction-ready", a(Ce))), a(Ce).allLoadingComplete && !a(me) && (H(me, !0), q("ready", a(Ce)));
9749
+ q("readiness-change", a(Ce)), a(Ce).interactionReady && !a(ce) && (j(ce, !0), q("interaction-ready", a(Ce))), a(Ce).allLoadingComplete && !a(me) && (j(me, !0), q("ready", a(Ce)));
9692
9750
  });
9693
9751
  var Gi = {
9694
9752
  getSnapshot: Ne,
9695
9753
  selectComposition: at,
9696
- selectNavigation: Ht,
9754
+ selectNavigation: jt,
9697
9755
  selectReadiness: Tt,
9698
9756
  navigateTo: qe,
9699
9757
  navigateNext: he,
@@ -9838,7 +9896,7 @@ function qi(e, t) {
9838
9896
  get policies() {
9839
9897
  return z();
9840
9898
  },
9841
- set policies(N = Oo) {
9899
+ set policies(N = Lo) {
9842
9900
  z(N), p();
9843
9901
  }
9844
9902
  };
@@ -9863,7 +9921,7 @@ function qi(e, t) {
9863
9921
  onRuntimeInherited: Fe,
9864
9922
  onToolkitReady: tt,
9865
9923
  get showToolbar() {
9866
- return a(Ie);
9924
+ return a(Se);
9867
9925
  },
9868
9926
  get toolbarPosition() {
9869
9927
  return D();
@@ -9875,7 +9933,7 @@ function qi(e, t) {
9875
9933
  return z().focus;
9876
9934
  },
9877
9935
  get cardRenderContext() {
9878
- return a(W);
9936
+ return a(K);
9879
9937
  },
9880
9938
  children: (N, ft) => {
9881
9939
  var Un = si(), Yi = Qe(Un);
@@ -9886,7 +9944,7 @@ function qi(e, t) {
9886
9944
  passages: a(Te),
9887
9945
  items: a(_e),
9888
9946
  preloadedRenderables: a(fe),
9889
- preloadedRenderablesSignature: a(je),
9947
+ preloadedRenderablesSignature: a(He),
9890
9948
  resolvedPlayerEnv: a(Xe),
9891
9949
  resolvedPlayerAttributes: a(_),
9892
9950
  resolvedPlayerProps: a(ye),
@@ -9910,7 +9968,7 @@ function qi(e, t) {
9910
9968
  return a(fe);
9911
9969
  },
9912
9970
  get preloadedRenderablesSignature() {
9913
- return a(je);
9971
+ return a(He);
9914
9972
  },
9915
9973
  get resolvedPlayerEnv() {
9916
9974
  return a(Xe);
@@ -9937,7 +9995,7 @@ function qi(e, t) {
9937
9995
  }, null), pe(N, Un);
9938
9996
  },
9939
9997
  $$slots: { default: !0 }
9940
- }), (N) => H(Z, N, !0), () => a(Z)), Ye(Gi);
9998
+ }), (N) => j(Z, N, !0), () => a(Z)), Ye(Gi);
9941
9999
  }
9942
10000
  et(qi, {
9943
10001
  assessmentId: {},
@@ -9989,7 +10047,7 @@ function ga(e, t) {
9989
10047
  return Math.max(i(), Math.min(r(), C));
9990
10048
  }
9991
10049
  function k(C) {
9992
- s() || (C.preventDefault(), H(h, !0), u = C.clientX, y = n(), f("resize-start", { value: n() }));
10050
+ s() || (C.preventDefault(), j(h, !0), u = C.clientX, y = n(), f("resize-start", { value: n() }));
9993
10051
  }
9994
10052
  function w(C) {
9995
10053
  if (!a(h)) return;
@@ -10000,7 +10058,7 @@ function ga(e, t) {
10000
10058
  });
10001
10059
  }
10002
10060
  function g() {
10003
- a(h) && (H(h, !1), f("resize-commit", {
10061
+ a(h) && (j(h, !1), f("resize-commit", {
10004
10062
  value: n(),
10005
10063
  input: "pointer"
10006
10064
  }));
@@ -10084,7 +10142,7 @@ function ga(e, t) {
10084
10142
  }, O = $u();
10085
10143
  return E((C) => {
10086
10144
  kt(O, 1, `pie-section-player-split-divider ${a(h) ? "pie-section-player-split-divider--dragging" : ""}`, "svelte-1ncvi88"), gt(O, "aria-label", l()), gt(O, "aria-controls", c() || void 0), gt(O, "aria-valuemin", i()), gt(O, "aria-valuemax", r()), gt(O, "aria-valuenow", C), gt(O, "aria-valuetext", d() || void 0), gt(O, "aria-disabled", s() ? "true" : void 0), gt(O, "tabindex", s() ? void 0 : 0);
10087
- }, [() => Math.round(n())]), go("mousedown", O, k), go("keydown", O, D), pe(e, O), Ye(A);
10145
+ }, [() => Math.round(n())]), vo("mousedown", O, k), vo("keydown", O, D), pe(e, O), Ye(A);
10088
10146
  }
10089
10147
  zl(["mousedown", "keydown"]);
10090
10148
  et(ga, {
@@ -10170,7 +10228,7 @@ function Zu(e, t) {
10170
10228
  const x = X() ?? n, le = typeof x == "number" ? x : Number(x);
10171
10229
  return Math.max(i, Math.min(r, Number.isFinite(le) ? le : n));
10172
10230
  });
10173
- let U = /* @__PURE__ */ $(50), F = /* @__PURE__ */ $(null), Z = /* @__PURE__ */ $(null), K = /* @__PURE__ */ $(null), ce = /* @__PURE__ */ $(!1);
10231
+ let U = /* @__PURE__ */ $(50), F = /* @__PURE__ */ $(null), Z = /* @__PURE__ */ $(null), W = /* @__PURE__ */ $(null), ce = /* @__PURE__ */ $(!1);
10174
10232
  const me = Mn(), Le = /* @__PURE__ */ M(() => `pie-section-player-splitpane-${(c() || d() || "default").replace(/[^a-zA-Z0-9_-]/g, "-")}`), ue = /* @__PURE__ */ M(() => `${a(Le)}-passages`), Q = /* @__PURE__ */ M(() => `${a(Le)}-items`), Te = /* @__PURE__ */ M(() => `${Math.round(a(U))}% passages width`), _e = /* @__PURE__ */ M(() => Oi({
10175
10233
  runtimePlayer: s()?.player,
10176
10234
  player: h(),
@@ -10181,13 +10239,13 @@ function Zu(e, t) {
10181
10239
  const x = a(Z).getRootNode();
10182
10240
  return x && "host" in x ? x.host : a(Z).parentElement;
10183
10241
  }
10184
- const je = /* @__PURE__ */ M(() => fe());
10242
+ const He = /* @__PURE__ */ M(() => fe());
10185
10243
  re(() => {
10186
10244
  const x = a(G);
10187
10245
  if (typeof window > "u") return;
10188
10246
  const le = window.matchMedia(`(max-width: ${x}px)`);
10189
10247
  function Ee() {
10190
- H(ce, le.matches, !0);
10248
+ j(ce, le.matches, !0);
10191
10249
  }
10192
10250
  return Ee(), le.addEventListener("change", Ee), () => le.removeEventListener("change", Ee);
10193
10251
  });
@@ -10198,7 +10256,7 @@ function Zu(e, t) {
10198
10256
  function $e(x) {
10199
10257
  if (!a(F)) return;
10200
10258
  const le = x.detail, Ee = Number(le?.value);
10201
- Number.isNaN(Ee) || H(U, Math.max(20, Math.min(80, Ee)), !0);
10259
+ Number.isNaN(Ee) || j(U, Math.max(20, Math.min(80, Ee)), !0);
10202
10260
  }
10203
10261
  function ge(x) {
10204
10262
  const le = x.paneSelector ?? ".pie-section-player-passages-pane, .pie-section-player-items-pane", Ee = x.managedClass ?? "pie-pane-scrollbars-managed", J = x.activeClass ?? "pie-pane-scrolling", Fe = x.idleTimeoutMs ?? 900, xe = /* @__PURE__ */ new Map(), tt = /* @__PURE__ */ new Set(), Je = /* @__PURE__ */ new Map(), Ne = (he) => {
@@ -10212,7 +10270,7 @@ function Zu(e, t) {
10212
10270
  tt.add(he), he.classList.add(Ee);
10213
10271
  const Be = () => Ne(he);
10214
10272
  he.addEventListener("scroll", Be, { passive: !0 }), Je.set(he, Be);
10215
- }, Ht = (he) => {
10273
+ }, jt = (he) => {
10216
10274
  if (!tt.has(he)) return;
10217
10275
  tt.delete(he);
10218
10276
  const Be = Je.get(he);
@@ -10222,7 +10280,7 @@ function Zu(e, t) {
10222
10280
  }, Tt = () => {
10223
10281
  const he = new Set(Array.from(x.root.querySelectorAll(le)));
10224
10282
  for (const Be of he) at(Be);
10225
- for (const Be of tt) he.has(Be) || Ht(Be);
10283
+ for (const Be of tt) he.has(Be) || jt(Be);
10226
10284
  };
10227
10285
  Tt();
10228
10286
  const qe = new MutationObserver(() => {
@@ -10233,43 +10291,43 @@ function Zu(e, t) {
10233
10291
  subtree: !0
10234
10292
  }), () => {
10235
10293
  qe.disconnect();
10236
- for (const he of tt) Ht(he);
10294
+ for (const he of tt) jt(he);
10237
10295
  Je.clear(), tt.clear(), xe.clear();
10238
10296
  };
10239
10297
  }
10240
- function He() {
10241
- return a(K)?.getSnapshot?.() ?? null;
10298
+ function je() {
10299
+ return a(W)?.getSnapshot?.() ?? null;
10242
10300
  }
10243
10301
  function B() {
10244
- return a(K)?.selectComposition?.() ?? null;
10302
+ return a(W)?.selectComposition?.() ?? null;
10245
10303
  }
10246
10304
  function _() {
10247
- return a(K)?.selectNavigation?.() ?? null;
10305
+ return a(W)?.selectNavigation?.() ?? null;
10248
10306
  }
10249
10307
  function ve() {
10250
- return a(K)?.selectReadiness?.() ?? null;
10308
+ return a(W)?.selectReadiness?.() ?? null;
10251
10309
  }
10252
10310
  function ye(x) {
10253
- return a(K)?.navigateTo?.(x) === !0;
10311
+ return a(W)?.navigateTo?.(x) === !0;
10254
10312
  }
10255
10313
  function Xe() {
10256
- return a(K)?.navigateNext?.() === !0;
10314
+ return a(W)?.navigateNext?.() === !0;
10257
10315
  }
10258
10316
  function b() {
10259
- return a(K)?.navigatePrevious?.() === !0;
10317
+ return a(W)?.navigatePrevious?.() === !0;
10260
10318
  }
10261
10319
  function ee() {
10262
- return a(K)?.getSectionController?.() || null;
10320
+ return a(W)?.getSectionController?.() || null;
10263
10321
  }
10264
- async function W(x = 5e3) {
10265
- return await a(K)?.waitForSectionController?.(x) || null;
10322
+ async function K(x = 5e3) {
10323
+ return await a(W)?.waitForSectionController?.(x) || null;
10266
10324
  }
10267
10325
  Vi(() => Uu()), re(() => {
10268
10326
  if (a(F))
10269
10327
  return ge({ root: a(F) });
10270
10328
  }), re(() => {
10271
- if (!a(je)) return;
10272
- const x = a(je);
10329
+ if (!a(He)) return;
10330
+ const x = a(He);
10273
10331
  return Li({
10274
10332
  host: x,
10275
10333
  instrumentationProvider: a(_e),
@@ -10285,8 +10343,8 @@ function Zu(e, t) {
10285
10343
  dedupeWindowMs: 100
10286
10344
  });
10287
10345
  });
10288
- var Ie = {
10289
- getSnapshot: He,
10346
+ var Se = {
10347
+ getSnapshot: je,
10290
10348
  selectComposition: B,
10291
10349
  selectNavigation: _,
10292
10350
  selectReadiness: ve,
@@ -10294,7 +10352,7 @@ function Zu(e, t) {
10294
10352
  navigateNext: Xe,
10295
10353
  navigatePrevious: b,
10296
10354
  getSectionController: ee,
10297
- waitForSectionController: W,
10355
+ waitForSectionController: K,
10298
10356
  get assessmentId() {
10299
10357
  return o();
10300
10358
  },
@@ -10434,7 +10492,7 @@ function Zu(e, t) {
10434
10492
  X(x), p();
10435
10493
  }
10436
10494
  }, Ce = Xu(), ut = Qe(Ce);
10437
- Ue(ut, (x) => H(Z, x), () => a(Z));
10495
+ Ue(ut, (x) => j(Z, x), () => a(Z));
10438
10496
  var wt = Me(ut, 2);
10439
10497
  {
10440
10498
  let x = /* @__PURE__ */ M(() => a(ce) ? "top" : L());
@@ -10524,7 +10582,7 @@ function Zu(e, t) {
10524
10582
  $$slots: { default: (le, Ee) => {
10525
10583
  const J = /* @__PURE__ */ M(() => Ee.layoutModel);
10526
10584
  var Fe = Yu(), xe = Re(Fe), tt = (at) => {
10527
- var Ht = Gu(), Tt = Qe(Ht), qe = Re(Tt);
10585
+ var jt = Gu(), Tt = Qe(jt), qe = Re(Tt);
10528
10586
  E(() => P(qe, "passages", a(J).passages)), E(() => P(qe, "elementsLoaded", a(J).paneElementsLoaded)), E(() => P(qe, "resolvedPlayerEnv", a(J).resolvedPlayerEnv)), E(() => P(qe, "resolvedPlayerAttributes", a(J).resolvedPlayerAttributes)), E(() => P(qe, "resolvedPlayerProps", a(J).resolvedPlayerProps)), E(() => P(qe, "playerStrategy", a(J).playerStrategy)), E(() => P(qe, "passageToolbarTools", q())), Ae(Tt);
10529
10587
  var he = Me(Tt, 2), Be = (Rt) => {
10530
10588
  ga(Rt, {
@@ -10546,21 +10604,21 @@ function Zu(e, t) {
10546
10604
  };
10547
10605
  At(he, (Rt) => {
10548
10606
  a(ce) || Rt(Be);
10549
- }), E(() => gt(Tt, "id", a(ue))), pe(at, Ht);
10607
+ }), E(() => gt(Tt, "id", a(ue))), pe(at, jt);
10550
10608
  };
10551
10609
  At(xe, (at) => {
10552
10610
  a(J).passages.length > 0 && at(tt);
10553
10611
  });
10554
10612
  var Je = Me(xe, 2), Ne = Re(Je);
10555
- E(() => P(Ne, "items", a(J).items)), E(() => P(Ne, "compositionModel", a(J).compositionModel)), E(() => P(Ne, "resolvedPlayerEnv", a(J).resolvedPlayerEnv)), E(() => P(Ne, "resolvedPlayerAttributes", a(J).resolvedPlayerAttributes)), E(() => P(Ne, "resolvedPlayerProps", a(J).resolvedPlayerProps)), E(() => P(Ne, "playerStrategy", a(J).playerStrategy)), E(() => P(Ne, "itemToolbarTools", z())), E(() => P(Ne, "iifeBundleHost", A())), E(() => P(Ne, "preloadedRenderables", a(J).preloadedRenderables)), E(() => P(Ne, "preloadedRenderablesSignature", a(J).preloadedRenderablesSignature)), P(Ne, "preloadComponentTag", "pie-section-player-splitpane"), Ae(Je), Ae(Fe), Ue(Fe, (at) => H(F, at), () => a(F)), E(() => {
10613
+ E(() => P(Ne, "items", a(J).items)), E(() => P(Ne, "compositionModel", a(J).compositionModel)), E(() => P(Ne, "resolvedPlayerEnv", a(J).resolvedPlayerEnv)), E(() => P(Ne, "resolvedPlayerAttributes", a(J).resolvedPlayerAttributes)), E(() => P(Ne, "resolvedPlayerProps", a(J).resolvedPlayerProps)), E(() => P(Ne, "playerStrategy", a(J).playerStrategy)), E(() => P(Ne, "itemToolbarTools", z())), E(() => P(Ne, "iifeBundleHost", A())), E(() => P(Ne, "preloadedRenderables", a(J).preloadedRenderables)), E(() => P(Ne, "preloadedRenderablesSignature", a(J).preloadedRenderablesSignature)), P(Ne, "preloadComponentTag", "pie-section-player-splitpane"), Ae(Je), Ae(Fe), Ue(Fe, (at) => j(F, at), () => a(F)), E(() => {
10556
10614
  kt(Fe, 1, `pie-section-player-split-content ${a(J).passages.length === 0 ? "pie-section-player-split-content--no-passages" : ""} ${a(ce) ? "pie-section-player-split-content--stacked" : ""}`, "svelte-1psecfm"), ic(Fe, a(J).passages.length === 0 ? "grid-template-columns: 1fr" : a(ce) ? "" : `grid-template-columns: ${a(U)}% 0.5rem ${100 - a(U) - 0.5}%`), gt(Je, "id", a(Q));
10557
- }), Ke("elements-loaded-change", Ne, function(...at) {
10615
+ }), We("elements-loaded-change", Ne, function(...at) {
10558
10616
  a(J).onItemsPaneElementsLoaded?.apply(this, at);
10559
10617
  }), pe(le, Fe);
10560
10618
  } }
10561
- }), (le) => H(K, le, !0), () => a(K));
10619
+ }), (le) => j(W, le, !0), () => a(W));
10562
10620
  }
10563
- return pe(e, Ce), Ye(Ie);
10621
+ return pe(e, Ce), Ye(Se);
10564
10622
  }
10565
10623
  customElements.define("pie-section-player-splitpane", et(Zu, {
10566
10624
  assessmentId: {
@@ -10652,7 +10710,7 @@ function rf(e, t) {
10652
10710
  let o = m(t, "assessmentId", 7), s = m(t, "runtime", 7, null), l = m(t, "section", 7, null), c = m(t, "sectionId", 7, ""), d = m(t, "attemptId", 7, ""), f = m(t, "playerType", 7), h = m(t, "player", 7), u = m(t, "lazyInit", 7), y = m(t, "tools", 7), v = m(t, "accessibility", 7), k = m(t, "coordinator", 7), w = m(t, "createSectionController", 7), g = m(t, "isolation", 7), D = m(t, "env", 7), A = m(t, "iifeBundleHost", 7), O = m(t, "debug", 7, void 0), C = m(t, "showToolbar", 7, "false"), L = m(t, "toolbarPosition", 7, "right"), R = m(t, "enabledTools", 7, ""), z = m(t, "itemToolbarTools", 7, ""), q = m(t, "passageToolbarTools", 7, ""), V = m(t, "policies", 7, void 0), X = m(t, "narrowLayoutBreakpoint", 7, void 0);
10653
10711
  const G = Mn();
10654
10712
  let U = /* @__PURE__ */ $(null), F = /* @__PURE__ */ $(null), Z = /* @__PURE__ */ $(!1);
10655
- const K = /* @__PURE__ */ M(() => Oi({
10713
+ const W = /* @__PURE__ */ M(() => Oi({
10656
10714
  runtimePlayer: s()?.player,
10657
10715
  player: h(),
10658
10716
  component: "pie-section-player-vertical"
@@ -10670,10 +10728,10 @@ function rf(e, t) {
10670
10728
  const b = a(Le);
10671
10729
  if (typeof window > "u") return;
10672
10730
  const ee = window.matchMedia(`(max-width: ${b}px)`);
10673
- function W() {
10674
- H(Z, ee.matches, !0);
10731
+ function K() {
10732
+ j(Z, ee.matches, !0);
10675
10733
  }
10676
- return W(), ee.addEventListener("change", W), () => ee.removeEventListener("change", W);
10734
+ return K(), ee.addEventListener("change", K), () => ee.removeEventListener("change", K);
10677
10735
  });
10678
10736
  const ue = /* @__PURE__ */ M(() => a(Z) ? "top" : L());
10679
10737
  function Q(b) {
@@ -10689,7 +10747,7 @@ function rf(e, t) {
10689
10747
  function fe() {
10690
10748
  return a(F)?.selectNavigation?.() ?? null;
10691
10749
  }
10692
- function je() {
10750
+ function He() {
10693
10751
  return a(F)?.selectReadiness?.() ?? null;
10694
10752
  }
10695
10753
  function Pe(b) {
@@ -10701,7 +10759,7 @@ function rf(e, t) {
10701
10759
  function ge() {
10702
10760
  return a(F)?.navigatePrevious?.() === !0;
10703
10761
  }
10704
- function He() {
10762
+ function je() {
10705
10763
  return a(F)?.getSectionController?.() || null;
10706
10764
  }
10707
10765
  async function B(b = 5e3) {
@@ -10712,7 +10770,7 @@ function rf(e, t) {
10712
10770
  const b = a(me);
10713
10771
  return Li({
10714
10772
  host: b,
10715
- instrumentationProvider: a(K),
10773
+ instrumentationProvider: a(W),
10716
10774
  component: "pie-section-player-vertical",
10717
10775
  eventMap: Tr,
10718
10776
  staticAttributes: {
@@ -10729,11 +10787,11 @@ function rf(e, t) {
10729
10787
  getSnapshot: Te,
10730
10788
  selectComposition: _e,
10731
10789
  selectNavigation: fe,
10732
- selectReadiness: je,
10790
+ selectReadiness: He,
10733
10791
  navigateTo: Pe,
10734
10792
  navigateNext: $e,
10735
10793
  navigatePrevious: ge,
10736
- getSectionController: He,
10794
+ getSectionController: je,
10737
10795
  waitForSectionController: B,
10738
10796
  get assessmentId() {
10739
10797
  return o();
@@ -10874,7 +10932,7 @@ function rf(e, t) {
10874
10932
  X(b), p();
10875
10933
  }
10876
10934
  }, ve = tf(), ye = Qe(ve);
10877
- Ue(ye, (b) => H(U, b), () => a(U));
10935
+ Ue(ye, (b) => j(U, b), () => a(U));
10878
10936
  var Xe = Me(ye, 2);
10879
10937
  return Ue(qi(Xe, {
10880
10938
  get assessmentId() {
@@ -10960,20 +11018,20 @@ function rf(e, t) {
10960
11018
  },
10961
11019
  children: Er,
10962
11020
  $$slots: { default: (b, ee) => {
10963
- const W = /* @__PURE__ */ M(() => ee.layoutModel);
10964
- var Ie = ef(), Ce = Re(Ie), ut = (le) => {
11021
+ const K = /* @__PURE__ */ M(() => ee.layoutModel);
11022
+ var Se = ef(), Ce = Re(Se), ut = (le) => {
10965
11023
  var Ee = Qu(), J = Re(Ee);
10966
- E(() => P(J, "passages", a(W).passages)), E(() => P(J, "elementsLoaded", a(W).paneElementsLoaded)), E(() => P(J, "resolvedPlayerEnv", a(W).resolvedPlayerEnv)), E(() => P(J, "resolvedPlayerAttributes", a(W).resolvedPlayerAttributes)), E(() => P(J, "resolvedPlayerProps", a(W).resolvedPlayerProps)), E(() => P(J, "playerStrategy", a(W).playerStrategy)), E(() => P(J, "passageToolbarTools", q())), Ae(Ee), pe(le, Ee);
11024
+ E(() => P(J, "passages", a(K).passages)), E(() => P(J, "elementsLoaded", a(K).paneElementsLoaded)), E(() => P(J, "resolvedPlayerEnv", a(K).resolvedPlayerEnv)), E(() => P(J, "resolvedPlayerAttributes", a(K).resolvedPlayerAttributes)), E(() => P(J, "resolvedPlayerProps", a(K).resolvedPlayerProps)), E(() => P(J, "playerStrategy", a(K).playerStrategy)), E(() => P(J, "passageToolbarTools", q())), Ae(Ee), pe(le, Ee);
10967
11025
  };
10968
11026
  At(Ce, (le) => {
10969
- a(W).passages.length > 0 && a(W).paneElementsLoaded && le(ut);
11027
+ a(K).passages.length > 0 && a(K).paneElementsLoaded && le(ut);
10970
11028
  });
10971
11029
  var wt = Me(Ce, 2), x = Re(wt);
10972
- E(() => P(x, "items", a(W).items)), E(() => P(x, "compositionModel", a(W).compositionModel)), E(() => P(x, "resolvedPlayerEnv", a(W).resolvedPlayerEnv)), E(() => P(x, "resolvedPlayerAttributes", a(W).resolvedPlayerAttributes)), E(() => P(x, "resolvedPlayerProps", a(W).resolvedPlayerProps)), E(() => P(x, "playerStrategy", a(W).playerStrategy)), E(() => P(x, "itemToolbarTools", z())), E(() => P(x, "iifeBundleHost", A())), E(() => P(x, "preloadedRenderables", a(W).preloadedRenderables)), E(() => P(x, "preloadedRenderablesSignature", a(W).preloadedRenderablesSignature)), P(x, "preloadComponentTag", "pie-section-player-vertical"), Ae(wt), Ae(Ie), Ke("elements-loaded-change", x, function(...le) {
10973
- a(W).onItemsPaneElementsLoaded?.apply(this, le);
10974
- }), pe(b, Ie);
11030
+ E(() => P(x, "items", a(K).items)), E(() => P(x, "compositionModel", a(K).compositionModel)), E(() => P(x, "resolvedPlayerEnv", a(K).resolvedPlayerEnv)), E(() => P(x, "resolvedPlayerAttributes", a(K).resolvedPlayerAttributes)), E(() => P(x, "resolvedPlayerProps", a(K).resolvedPlayerProps)), E(() => P(x, "playerStrategy", a(K).playerStrategy)), E(() => P(x, "itemToolbarTools", z())), E(() => P(x, "iifeBundleHost", A())), E(() => P(x, "preloadedRenderables", a(K).preloadedRenderables)), E(() => P(x, "preloadedRenderablesSignature", a(K).preloadedRenderablesSignature)), P(x, "preloadComponentTag", "pie-section-player-vertical"), Ae(wt), Ae(Se), We("elements-loaded-change", x, function(...le) {
11031
+ a(K).onItemsPaneElementsLoaded?.apply(this, le);
11032
+ }), pe(b, Se);
10975
11033
  } }
10976
- }), (b) => H(F, b, !0), () => a(F)), pe(e, ve), Ye(_);
11034
+ }), (b) => j(F, b, !0), () => a(F)), pe(e, ve), Ye(_);
10977
11035
  }
10978
11036
  customElements.define("pie-section-player-vertical", et(rf, {
10979
11037
  assessmentId: {
@@ -11091,7 +11149,7 @@ function cf(e, t) {
11091
11149
  function Z() {
11092
11150
  return a(X);
11093
11151
  }
11094
- function K() {
11152
+ function W() {
11095
11153
  return a(X).composition;
11096
11154
  }
11097
11155
  function ce() {
@@ -11119,8 +11177,8 @@ function cf(e, t) {
11119
11177
  const _ = B;
11120
11178
  z(_.type, _.detail);
11121
11179
  }
11122
- function je() {
11123
- H(X, {
11180
+ function He() {
11181
+ j(X, {
11124
11182
  ...a(X),
11125
11183
  navigation: a(V)?.selectNavigation?.() || a(X).navigation
11126
11184
  }, !0);
@@ -11145,7 +11203,7 @@ function cf(e, t) {
11145
11203
  });
11146
11204
  var Pe = {
11147
11205
  getSnapshot: Z,
11148
- selectComposition: K,
11206
+ selectComposition: W,
11149
11207
  selectNavigation: ce,
11150
11208
  selectReadiness: me,
11151
11209
  navigateTo: Le,
@@ -11286,9 +11344,9 @@ function cf(e, t) {
11286
11344
  R(B), p();
11287
11345
  }
11288
11346
  }, $e = af(), ge = Qe($e);
11289
- Ue(ge, (B) => H(q, B), () => a(q));
11290
- var He = Me(ge, 2);
11291
- return Ue(qi(He, {
11347
+ Ue(ge, (B) => j(q, B), () => a(q));
11348
+ var je = Me(ge, 2);
11349
+ return Ue(qi(je, {
11292
11350
  get assessmentId() {
11293
11351
  return n();
11294
11352
  },
@@ -11358,7 +11416,7 @@ function cf(e, t) {
11358
11416
  $$events: {
11359
11417
  "readiness-change": (B) => {
11360
11418
  const _ = B.detail;
11361
- H(X, {
11419
+ j(X, {
11362
11420
  ...a(X),
11363
11421
  readiness: _
11364
11422
  }, !0), fe(B);
@@ -11372,31 +11430,31 @@ function cf(e, t) {
11372
11430
  "session-changed": fe,
11373
11431
  "composition-changed": (B) => {
11374
11432
  const _ = B.detail, ve = _?.composition?.items || [], ye = _?.composition?.passages || [];
11375
- H(X, {
11433
+ j(X, {
11376
11434
  ...a(X),
11377
11435
  composition: {
11378
11436
  itemsCount: ve.length,
11379
11437
  passagesCount: ye.length
11380
11438
  }
11381
- }, !0), je(), fe(B);
11439
+ }, !0), He(), fe(B);
11382
11440
  }
11383
11441
  },
11384
11442
  children: Er,
11385
11443
  $$slots: { default: (B, _) => {
11386
- const ve = /* @__PURE__ */ M(() => _.items), ye = /* @__PURE__ */ M(() => _.passages), Xe = /* @__PURE__ */ M(() => _.compositionModel), b = /* @__PURE__ */ M(() => _.resolvedPlayerEnv), ee = /* @__PURE__ */ M(() => _.resolvedPlayerAttributes), W = /* @__PURE__ */ M(() => _.resolvedPlayerProps), Ie = /* @__PURE__ */ M(() => _.playerStrategy), Ce = /* @__PURE__ */ M(() => _.preloadedRenderables), ut = /* @__PURE__ */ M(() => _.preloadedRenderablesSignature), wt = /* @__PURE__ */ M(() => _.onItemsPaneElementsLoaded);
11444
+ const ve = /* @__PURE__ */ M(() => _.items), ye = /* @__PURE__ */ M(() => _.passages), Xe = /* @__PURE__ */ M(() => _.compositionModel), b = /* @__PURE__ */ M(() => _.resolvedPlayerEnv), ee = /* @__PURE__ */ M(() => _.resolvedPlayerAttributes), K = /* @__PURE__ */ M(() => _.resolvedPlayerProps), Se = /* @__PURE__ */ M(() => _.playerStrategy), Ce = /* @__PURE__ */ M(() => _.preloadedRenderables), ut = /* @__PURE__ */ M(() => _.preloadedRenderablesSignature), wt = /* @__PURE__ */ M(() => _.onItemsPaneElementsLoaded);
11387
11445
  var x = sf(), le = Re(x), Ee = (Fe) => {
11388
11446
  var xe = of();
11389
- E(() => P(xe, "passages", a(ye))), E(() => P(xe, "elementsLoaded", a(X).readiness.allLoadingComplete)), E(() => P(xe, "resolvedPlayerEnv", a(b))), E(() => P(xe, "resolvedPlayerAttributes", a(ee))), E(() => P(xe, "resolvedPlayerProps", a(W))), E(() => P(xe, "playerStrategy", a(Ie))), E(() => P(xe, "passageToolbarTools", L())), pe(Fe, xe);
11447
+ E(() => P(xe, "passages", a(ye))), E(() => P(xe, "elementsLoaded", a(X).readiness.allLoadingComplete)), E(() => P(xe, "resolvedPlayerEnv", a(b))), E(() => P(xe, "resolvedPlayerAttributes", a(ee))), E(() => P(xe, "resolvedPlayerProps", a(K))), E(() => P(xe, "playerStrategy", a(Se))), E(() => P(xe, "passageToolbarTools", L())), pe(Fe, xe);
11390
11448
  };
11391
11449
  At(le, (Fe) => {
11392
11450
  a(ye).length > 0 && Fe(Ee);
11393
11451
  });
11394
11452
  var J = Me(le, 2);
11395
- E(() => P(J, "items", a(ve))), E(() => P(J, "compositionModel", a(Xe))), E(() => P(J, "resolvedPlayerEnv", a(b))), E(() => P(J, "resolvedPlayerAttributes", a(ee))), E(() => P(J, "resolvedPlayerProps", a(W))), E(() => P(J, "playerStrategy", a(Ie))), E(() => P(J, "itemToolbarTools", C())), E(() => P(J, "iifeBundleHost", w())), E(() => P(J, "preloadedRenderables", a(Ce))), E(() => P(J, "preloadedRenderablesSignature", a(ut))), P(J, "preloadComponentTag", "pie-section-player-kernel-host"), Ae(x), Ke("elements-loaded-change", J, function(...Fe) {
11453
+ E(() => P(J, "items", a(ve))), E(() => P(J, "compositionModel", a(Xe))), E(() => P(J, "resolvedPlayerEnv", a(b))), E(() => P(J, "resolvedPlayerAttributes", a(ee))), E(() => P(J, "resolvedPlayerProps", a(K))), E(() => P(J, "playerStrategy", a(Se))), E(() => P(J, "itemToolbarTools", C())), E(() => P(J, "iifeBundleHost", w())), E(() => P(J, "preloadedRenderables", a(Ce))), E(() => P(J, "preloadedRenderablesSignature", a(ut))), P(J, "preloadComponentTag", "pie-section-player-kernel-host"), Ae(x), We("elements-loaded-change", J, function(...Fe) {
11396
11454
  a(wt)?.apply(this, Fe);
11397
11455
  }), pe(B, x);
11398
11456
  } }
11399
- }), (B) => H(V, B, !0), () => a(V)), pe(e, $e), Ye(Pe);
11457
+ }), (B) => j(V, B, !0), () => a(V)), pe(e, $e), Ye(Pe);
11400
11458
  }
11401
11459
  customElements.define("pie-section-player-kernel-host", et(cf, {
11402
11460
  assessmentId: {
@@ -11471,7 +11529,7 @@ customElements.define("pie-section-player-kernel-host", et(cf, {
11471
11529
  "getSectionController",
11472
11530
  "waitForSectionController"
11473
11531
  ]));
11474
- var Kt = {
11532
+ var Wt = {
11475
11533
  runtimeOwned: "runtime-owned",
11476
11534
  runtimeInherited: "runtime-inherited",
11477
11535
  runtimeError: "runtime-error",
@@ -11481,7 +11539,7 @@ var Kt = {
11481
11539
  readinessChange: "readiness-change",
11482
11540
  interactionReady: "interaction-ready",
11483
11541
  ready: "ready"
11484
- }, Zr = [
11542
+ }, Qr = [
11485
11543
  "assessmentId",
11486
11544
  "section",
11487
11545
  "sectionId",
@@ -11493,7 +11551,7 @@ var Kt = {
11493
11551
  "enabledTools",
11494
11552
  "itemToolbarTools",
11495
11553
  "passageToolbarTools"
11496
- ], Qr = [
11554
+ ], eo = [
11497
11555
  "runtime",
11498
11556
  "playerType",
11499
11557
  "player",
@@ -11505,16 +11563,16 @@ var Kt = {
11505
11563
  "isolation",
11506
11564
  "env",
11507
11565
  "iifeBundleHost"
11508
- ], va = [...Zr, ...Qr], ya = [
11509
- Kt.runtimeOwned,
11510
- Kt.runtimeInherited,
11511
- Kt.runtimeError,
11512
- Kt.compositionChanged,
11513
- Kt.sessionChanged,
11514
- Kt.sectionControllerReady,
11515
- Kt.readinessChange,
11516
- Kt.interactionReady,
11517
- Kt.ready
11566
+ ], va = [...Qr, ...eo], ya = [
11567
+ Wt.runtimeOwned,
11568
+ Wt.runtimeInherited,
11569
+ Wt.runtimeError,
11570
+ Wt.compositionChanged,
11571
+ Wt.sessionChanged,
11572
+ Wt.sectionControllerReady,
11573
+ Wt.readinessChange,
11574
+ Wt.interactionReady,
11575
+ Wt.ready
11518
11576
  ], ba = [
11519
11577
  "getSnapshot",
11520
11578
  "selectComposition",
@@ -11537,8 +11595,8 @@ var Kt = {
11537
11595
  version: 1,
11538
11596
  layout: "splitpane",
11539
11597
  props: va,
11540
- recommendedBasicProps: Zr,
11541
- advancedEscapeHatchProps: Qr,
11598
+ recommendedBasicProps: Qr,
11599
+ advancedEscapeHatchProps: eo,
11542
11600
  events: ya,
11543
11601
  commands: ba,
11544
11602
  capabilities: Ia
@@ -11546,15 +11604,15 @@ var Kt = {
11546
11604
  version: 1,
11547
11605
  layout: "vertical",
11548
11606
  props: va,
11549
- recommendedBasicProps: Zr,
11550
- advancedEscapeHatchProps: Qr,
11607
+ recommendedBasicProps: Qr,
11608
+ advancedEscapeHatchProps: eo,
11551
11609
  events: ya,
11552
11610
  commands: ba,
11553
11611
  capabilities: Ia
11554
11612
  };
11555
11613
  export {
11556
- Oo as DEFAULT_SECTION_PLAYER_POLICIES,
11557
- Kt as SECTION_PLAYER_PUBLIC_EVENTS,
11614
+ Lo as DEFAULT_SECTION_PLAYER_POLICIES,
11615
+ Wt as SECTION_PLAYER_PUBLIC_EVENTS,
11558
11616
  _f as SPLITPANE_LAYOUT_CONTRACT,
11559
11617
  Cf as VERTICAL_LAYOUT_CONTRACT
11560
11618
  };