@pie-players/pie-section-player 0.3.37 → 0.3.38

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,9 +1,9 @@
1
1
  import { t as y } from "./defineProperty-CyepwRr5-3800a70a.js";
2
2
  if (typeof window < "u") {
3
- var Ln, Pn;
4
- ((Ln = (Pn = window).__svelte ?? (Pn.__svelte = {})).v ?? (Ln.v = /* @__PURE__ */ new Set())).add("5");
3
+ var Ln, On;
4
+ ((Ln = (On = window).__svelte ?? (On.__svelte = {})).v ?? (Ln.v = /* @__PURE__ */ new Set())).add("5");
5
5
  }
6
- var me = {}, N = /* @__PURE__ */ Symbol(), li = Array.isArray, Ar = Array.prototype.indexOf, be = Array.prototype.includes, To = Array.from, ho = Object.keys, fo = Object.defineProperty, Qt = Object.getOwnPropertyDescriptor, xr = Object.getOwnPropertyDescriptors, _r = Object.prototype, Cr = Array.prototype, ci = Object.getPrototypeOf, On = Object.isExtensible, Er = () => {
6
+ var me = {}, N = /* @__PURE__ */ Symbol(), li = Array.isArray, xr = Array.prototype.indexOf, be = Array.prototype.includes, To = Array.from, ho = Object.keys, fo = Object.defineProperty, Qt = Object.getOwnPropertyDescriptor, Ar = Object.getOwnPropertyDescriptors, _r = Object.prototype, Cr = Array.prototype, ci = Object.getPrototypeOf, Pn = Object.isExtensible, Er = () => {
7
7
  };
8
8
  function Mr(t) {
9
9
  for (var e = 0; e < t.length; e++) t[e]();
@@ -18,7 +18,7 @@ function ui() {
18
18
  reject: e
19
19
  };
20
20
  }
21
- var nt = 1024, vt = 2048, ce = 4096, nn = 8192, Lr = 16384, rn = 32768, Rn = 1 << 25, sn = 65536, $e = 1 << 19, Pr = 1 << 20, Oe = 1 << 25, ze = 65536, jn = 1 << 21, Or = 1 << 22, po = 1 << 23, Re = /* @__PURE__ */ Symbol("$state"), di = /* @__PURE__ */ Symbol("legacy props"), Rr = /* @__PURE__ */ Symbol(""), Mt = new class extends Error {
21
+ var nt = 1024, vt = 2048, ce = 4096, nn = 8192, Lr = 16384, rn = 32768, Rn = 1 << 25, sn = 65536, $e = 1 << 19, Or = 1 << 20, Pe = 1 << 25, ze = 65536, jn = 1 << 21, Pr = 1 << 22, po = 1 << 23, Re = /* @__PURE__ */ Symbol("$state"), di = /* @__PURE__ */ Symbol("legacy props"), Rr = /* @__PURE__ */ Symbol(""), Mt = new class extends Error {
22
22
  constructor(...t) {
23
23
  super(...t), y(this, "name", "StaleReactionError"), y(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
24
24
  }
@@ -68,9 +68,9 @@ function Io(t) {
68
68
  function Zr() {
69
69
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
70
70
  }
71
- var P = !1;
71
+ var O = !1;
72
72
  function Lt(t) {
73
- P = t;
73
+ O = t;
74
74
  }
75
75
  var L;
76
76
  function U(t) {
@@ -81,13 +81,13 @@ function ko() {
81
81
  return U(/* @__PURE__ */ St(L));
82
82
  }
83
83
  function Ue(t) {
84
- if (P) {
84
+ if (O) {
85
85
  if (/* @__PURE__ */ St(L) !== null) throw Io(), me;
86
86
  L = t;
87
87
  }
88
88
  }
89
89
  function Yr(t = 1) {
90
- if (P) {
90
+ if (O) {
91
91
  for (var e = t, o = L; e--; ) o = /* @__PURE__ */ St(o);
92
92
  L = o;
93
93
  }
@@ -118,7 +118,7 @@ function Xr(t, e) {
118
118
  function pi(t) {
119
119
  return !Xr(t, this.v);
120
120
  }
121
- var Pt = !1, $o = !1, V = null;
121
+ var Ot = !1, $o = !1, V = null;
122
122
  function ye(t) {
123
123
  V = t;
124
124
  }
@@ -228,9 +228,9 @@ function c(t, e) {
228
228
  function $(t, e, o) {
229
229
  return t.set(E(t, e), o), o;
230
230
  }
231
- var Ii, It = /* @__PURE__ */ new Set(), x = null, q = null, Ho = null, je = !1, Co = !1, we = null, go = null, ki = 0, ns = 1, mo = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), oo = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), Bo = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), no = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap(), ge = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakSet(), ue = class $i {
231
+ var Ii, It = /* @__PURE__ */ new Set(), A = null, q = null, Ho = null, je = !1, Co = !1, we = null, go = null, ki = 0, ns = 1, mo = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), oo = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), Bo = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), no = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap(), ge = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakSet(), ue = class $i {
232
232
  constructor() {
233
- ln(this, F), y(this, "id", ns++), y(this, "current", /* @__PURE__ */ new Map()), y(this, "previous", /* @__PURE__ */ new Map()), I(this, mo, /* @__PURE__ */ new Set()), I(this, Ke, /* @__PURE__ */ new Set()), I(this, xe, /* @__PURE__ */ new Set()), I(this, Kt, /* @__PURE__ */ new Map()), I(this, qt, /* @__PURE__ */ new Map()), I(this, oo, null), I(this, dt, []), I(this, Bo, []), I(this, Te, /* @__PURE__ */ new Set()), I(this, te, /* @__PURE__ */ new Set()), I(this, Ht, /* @__PURE__ */ new Map()), I(this, no, /* @__PURE__ */ new Set()), y(this, "is_fork", !1), I(this, Ze, !1), I(this, ge, /* @__PURE__ */ new Set());
233
+ ln(this, F), y(this, "id", ns++), y(this, "current", /* @__PURE__ */ new Map()), y(this, "previous", /* @__PURE__ */ new Map()), I(this, mo, /* @__PURE__ */ new Set()), I(this, Ke, /* @__PURE__ */ new Set()), I(this, Ae, /* @__PURE__ */ new Set()), I(this, Kt, /* @__PURE__ */ new Map()), I(this, qt, /* @__PURE__ */ new Map()), I(this, oo, null), I(this, dt, []), I(this, Bo, []), I(this, Te, /* @__PURE__ */ new Set()), I(this, te, /* @__PURE__ */ new Set()), I(this, Ht, /* @__PURE__ */ new Map()), I(this, no, /* @__PURE__ */ new Set()), y(this, "is_fork", !1), I(this, Ze, !1), I(this, ge, /* @__PURE__ */ new Set());
234
234
  }
235
235
  skip_effect(e) {
236
236
  c(Ht, this).has(e) || c(Ht, this).set(e, {
@@ -251,21 +251,21 @@ var Ii, It = /* @__PURE__ */ new Set(), x = null, q = null, Ho = null, je = !1,
251
251
  e.v !== N && !this.previous.has(e) && this.previous.set(e, e.v), !(e.f & 8388608) && (this.current.set(e, [o, n]), q?.set(e, o)), this.is_fork || (e.v = o);
252
252
  }
253
253
  activate() {
254
- x = this;
254
+ A = this;
255
255
  }
256
256
  deactivate() {
257
- x = null, q = null;
257
+ A = null, q = null;
258
258
  }
259
259
  flush() {
260
260
  try {
261
- Co = !0, x = this, E(F, this, cn).call(this);
261
+ Co = !0, A = this, E(F, this, cn).call(this);
262
262
  } finally {
263
- ki = 0, Ho = null, we = null, go = null, Co = !1, x = null, q = null, ne.clear();
263
+ ki = 0, Ho = null, we = null, go = null, Co = !1, A = null, q = null, ne.clear();
264
264
  }
265
265
  }
266
266
  discard() {
267
267
  for (const e of c(Ke, this)) e(this);
268
- c(Ke, this).clear(), c(xe, this).clear(), It.delete(this);
268
+ c(Ke, this).clear(), c(Ae, this).clear(), It.delete(this);
269
269
  }
270
270
  register_created_effect(e) {
271
271
  c(Bo, this).push(e);
@@ -299,26 +299,26 @@ var Ii, It = /* @__PURE__ */ new Set(), x = null, q = null, Ho = null, je = !1,
299
299
  c(Ke, this).add(e);
300
300
  }
301
301
  on_fork_commit(e) {
302
- c(xe, this).add(e);
302
+ c(Ae, this).add(e);
303
303
  }
304
304
  run_fork_commit_callbacks() {
305
- for (const e of c(xe, this)) e(this);
306
- c(xe, this).clear();
305
+ for (const e of c(Ae, this)) e(this);
306
+ c(Ae, this).clear();
307
307
  }
308
308
  settled() {
309
309
  return (c(oo, this) ?? $(oo, this, ui())).promise;
310
310
  }
311
311
  static ensure() {
312
- if (x === null) {
313
- const e = x = new $i();
314
- Co || (It.add(x), je || se(() => {
315
- x === e && e.flush();
312
+ if (A === null) {
313
+ const e = A = new $i();
314
+ Co || (It.add(A), je || se(() => {
315
+ A === e && e.flush();
316
316
  }));
317
317
  }
318
- return x;
318
+ return A;
319
319
  }
320
320
  apply() {
321
- if (!Pt || !this.is_fork && It.size === 1) {
321
+ if (!Ot || !this.is_fork && It.size === 1) {
322
322
  q = null;
323
323
  return;
324
324
  }
@@ -339,7 +339,7 @@ var Ii, It = /* @__PURE__ */ new Set(), x = null, q = null, Ho = null, je = !1,
339
339
  for (var o = e; o.parent !== null; ) {
340
340
  o = o.parent;
341
341
  var n = o.f;
342
- if (we !== null && o === S && (Pt || (_ === null || (_.f & 2) === 0) && !es)) return;
342
+ if (we !== null && o === S && (Ot || (_ === null || (_.f & 2) === 0) && !es)) return;
343
343
  if ((n & 96) !== 0) {
344
344
  if ((n & 1024) === 0) return;
345
345
  o.f ^= nt;
@@ -378,31 +378,31 @@ function cn() {
378
378
  } catch (a) {
379
379
  throw _i(s), a;
380
380
  }
381
- if (x = null, n.length > 0) {
381
+ if (A = null, n.length > 0) {
382
382
  var i = Ii.ensure();
383
383
  for (const s of n) i.schedule(s);
384
384
  }
385
385
  if (we = null, go = null, E(F, this, Fo).call(this) || E(F, this, is).call(this)) {
386
386
  E(F, this, Go).call(this, o), E(F, this, Go).call(this, e);
387
- for (const [s, a] of c(Ht, this)) xi(s, a);
387
+ for (const [s, a] of c(Ht, this)) Ai(s, a);
388
388
  } else {
389
389
  c(Kt, this).size === 0 && It.delete(this), c(Te, this).clear(), c(te, this).clear();
390
390
  for (const s of c(mo, this)) s(this);
391
391
  c(mo, this).clear(), Nn(o), Nn(e), c(oo, this)?.resolve();
392
392
  }
393
- var r = x;
393
+ var r = A;
394
394
  if (c(dt, this).length > 0) {
395
395
  const s = r ?? (r = this);
396
396
  c(dt, s).push(...c(dt, this).filter((a) => !c(dt, s).includes(a)));
397
397
  }
398
- r !== null && (It.add(r), E(F, r, cn).call(r)), Pt && !It.has(this) && E(F, this, rs).call(this);
398
+ r !== null && (It.add(r), E(F, r, cn).call(r)), Ot && !It.has(this) && E(F, this, rs).call(this);
399
399
  }
400
400
  function Si(t, e, o) {
401
401
  t.f ^= nt;
402
402
  for (var n = t.first; n !== null; ) {
403
403
  var i = n.f, r = (i & 96) !== 0;
404
404
  if (!(r && (i & 1024) !== 0 || (i & 8192) !== 0 || c(Ht, this).has(n)) && n.fn !== null) {
405
- r ? n.f ^= nt : (i & 4) !== 0 ? e.push(n) : Pt && (i & 16777224) !== 0 ? o.push(n) : De(n) && (i & 16 && c(te, this).add(n), ke(n));
405
+ r ? n.f ^= nt : (i & 4) !== 0 ? e.push(n) : Ot && (i & 16777224) !== 0 ? o.push(n) : De(n) && (i & 16 && c(te, this).add(n), ke(n));
406
406
  var s = n.first;
407
407
  if (s !== null) {
408
408
  n = s;
@@ -441,7 +441,7 @@ function rs() {
441
441
  });
442
442
  l.activate();
443
443
  var i = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map();
444
- for (var s of e) Ai(s, n, i, r);
444
+ for (var s of e) xi(s, n, i, r);
445
445
  r = /* @__PURE__ */ new Map();
446
446
  var a = [...l.current.keys()].filter((d) => this.current.has(d) ? this.current.get(d)[0] !== d : !0);
447
447
  for (const d of c(Bo, this)) !(d.f & 155648) && un(d, a, r) && ((d.f & 4194320) !== 0 ? (j(d, vt), l.schedule(d)) : c(Te, l).add(d));
@@ -460,9 +460,9 @@ function io(t) {
460
460
  je = !0;
461
461
  try {
462
462
  var o;
463
- for (t && (x !== null && !x.is_fork && x.flush(), o = t()); ; ) {
464
- if (Qr(), x === null) return o;
465
- x.flush();
463
+ for (t && (A !== null && !A.is_fork && A.flush(), o = t()); ; ) {
464
+ if (Qr(), A === null) return o;
465
+ A.flush();
466
466
  }
467
467
  } finally {
468
468
  je = e;
@@ -499,10 +499,10 @@ function Nn(t) {
499
499
  wt = null;
500
500
  }
501
501
  }
502
- function Ai(t, e, o, n) {
502
+ function xi(t, e, o, n) {
503
503
  if (!o.has(t) && (o.add(t), t.reactions !== null)) for (const i of t.reactions) {
504
504
  const r = i.f;
505
- (r & 2) !== 0 ? Ai(i, e, o, n) : r & 4194320 && !(r & 2048) && un(i, e, n) && (j(i, vt), dn(i));
505
+ (r & 2) !== 0 ? xi(i, e, o, n) : r & 4194320 && !(r & 2048) && un(i, e, n) && (j(i, vt), dn(i));
506
506
  }
507
507
  }
508
508
  function un(t, e, o) {
@@ -515,12 +515,12 @@ function un(t, e, o) {
515
515
  return o.set(t, !1), !1;
516
516
  }
517
517
  function dn(t) {
518
- x.schedule(t);
518
+ A.schedule(t);
519
519
  }
520
- function xi(t, e) {
520
+ function Ai(t, e) {
521
521
  if (!((t.f & 32) !== 0 && (t.f & 1024) !== 0)) {
522
522
  (t.f & 2048) !== 0 ? e.d.push(t) : t.f & 4096 && e.m.push(t), j(t, nt);
523
- for (var o = t.first; o !== null; ) xi(o, e), o = o.next;
523
+ for (var o = t.first; o !== null; ) Ai(o, e), o = o.next;
524
524
  }
525
525
  }
526
526
  function _i(t) {
@@ -543,13 +543,13 @@ function cs(t, e, o, n) {
543
543
  }
544
544
  var ft = /* @__PURE__ */ new WeakMap(), Uo = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), ut = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakMap(), oe = /* @__PURE__ */ new WeakMap(), Ye = /* @__PURE__ */ new WeakMap(), Jo = /* @__PURE__ */ new WeakMap(), Ko = /* @__PURE__ */ new WeakMap(), Ut = /* @__PURE__ */ new WeakMap(), Wn = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakSet(), us = class {
545
545
  constructor(t, e, o, n) {
546
- ln(this, z), y(this, "parent", void 0), y(this, "is_pending", !1), y(this, "transform_error", void 0), I(this, ft, void 0), I(this, Uo, P ? L : null), I(this, Tt, void 0), I(this, We, void 0), I(this, et, void 0), I(this, kt, null), I(this, X, null), I(this, ut, null), I(this, ee, null), I(this, fe, 0), I(this, oe, 0), I(this, Ye, !1), I(this, Jo, /* @__PURE__ */ new Set()), I(this, Ko, /* @__PURE__ */ new Set()), I(this, Ut, null), I(this, Wn, as(() => ($(Ut, this, ae(c(fe, this))), () => {
546
+ ln(this, z), y(this, "parent", void 0), y(this, "is_pending", !1), y(this, "transform_error", void 0), I(this, ft, void 0), I(this, Uo, O ? L : null), I(this, Tt, void 0), I(this, We, void 0), I(this, et, void 0), I(this, kt, null), I(this, X, null), I(this, ut, null), I(this, ee, null), I(this, fe, 0), I(this, oe, 0), I(this, Ye, !1), I(this, Jo, /* @__PURE__ */ new Set()), I(this, Ko, /* @__PURE__ */ new Set()), I(this, Ut, null), I(this, Wn, as(() => ($(Ut, this, ae(c(fe, this))), () => {
547
547
  $(Ut, this, null);
548
548
  }))), $(ft, this, t), $(Tt, this, e), $(We, this, (i) => {
549
549
  var r = S;
550
550
  r.b = this, r.f |= 128, o(i);
551
551
  }), this.parent = S.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), $(et, this, yn(() => {
552
- if (P) {
552
+ if (O) {
553
553
  const i = c(Uo, this);
554
554
  ko();
555
555
  const r = i.data === "[!";
@@ -558,7 +558,7 @@ var ft = /* @__PURE__ */ new WeakMap(), Uo = /* @__PURE__ */ new WeakMap(), Tt =
558
558
  E(z, this, hs).call(this, s);
559
559
  } else r ? E(z, this, fs).call(this) : E(z, this, ds).call(this);
560
560
  } else E(z, this, Ci).call(this);
561
- }, ls)), P && $(ft, this, L);
561
+ }, ls)), O && $(ft, this, L);
562
562
  }
563
563
  defer_effect(t) {
564
564
  wi(t, c(Jo, this), c(Ko, this));
@@ -579,7 +579,7 @@ var ft = /* @__PURE__ */ new WeakMap(), Uo = /* @__PURE__ */ new WeakMap(), Tt =
579
579
  }
580
580
  error(t) {
581
581
  if (!c(Tt, this).onerror && !c(Tt, this).failed) throw t;
582
- x?.is_fork ? (c(kt, this) && x.skip_effect(c(kt, this)), c(X, this) && x.skip_effect(c(X, this)), c(ut, this) && x.skip_effect(c(ut, this)), x.on_fork_commit(() => {
582
+ A?.is_fork ? (c(kt, this) && A.skip_effect(c(kt, this)), c(X, this) && A.skip_effect(c(X, this)), c(ut, this) && A.skip_effect(c(ut, this)), A.on_fork_commit(() => {
583
583
  E(z, this, Vn).call(this, t);
584
584
  })) : E(z, this, Vn).call(this, t);
585
585
  }
@@ -604,7 +604,7 @@ function fs() {
604
604
  var e = $(ee, this, document.createDocumentFragment()), o = pt();
605
605
  e.append(o), $(kt, this, E(z, this, Zo).call(this, () => it(() => c(We, this).call(this, o)))), c(oe, this) === 0 && (c(ft, this).before(e), $(ee, this, null), de(c(X, this), () => {
606
606
  $(X, this, null);
607
- }), E(z, this, hn).call(this, x));
607
+ }), E(z, this, hn).call(this, A));
608
608
  }));
609
609
  }
610
610
  function Ci() {
@@ -616,7 +616,7 @@ function Ci() {
616
616
  In(c(kt, this), t);
617
617
  const e = c(Tt, this).pending;
618
618
  $(X, this, it(() => e(c(ft, this))));
619
- } else E(z, this, hn).call(this, x);
619
+ } else E(z, this, hn).call(this, A);
620
620
  } catch (e) {
621
621
  this.error(e);
622
622
  }
@@ -648,7 +648,7 @@ function Ei(t, e) {
648
648
  }), c(ee, this) && (c(ft, this).before(c(ee, this)), $(ee, this, null)));
649
649
  }
650
650
  function Vn(t) {
651
- c(kt, this) && (D(c(kt, this)), $(kt, this, null)), c(X, this) && (D(c(X, this)), $(X, this, null)), c(ut, this) && (D(c(ut, this)), $(ut, this, null)), P && (U(c(Uo, this)), Yr(), U(vo()));
651
+ c(kt, this) && (D(c(kt, this)), $(kt, this, null)), c(X, this) && (D(c(X, this)), $(X, this, null)), c(ut, this) && (D(c(ut, this)), $(ut, this, null)), O && (U(c(Uo, this)), Yr(), U(vo()));
652
652
  var e = c(Tt, this).onerror;
653
653
  let o = c(Tt, this).failed;
654
654
  var n = !1, i = !1;
@@ -720,16 +720,16 @@ function ps(t, e, o, n) {
720
720
  }) : h();
721
721
  }
722
722
  function vs() {
723
- var t = S, e = _, o = V, n = x;
723
+ var t = S, e = _, o = V, n = A;
724
724
  return function(i = !0) {
725
725
  $t(t), rt(e), ye(o), i && !(t.f & 16384) && (n?.activate(), n?.apply());
726
726
  };
727
727
  }
728
728
  function bo(t = !0) {
729
- $t(null), rt(null), ye(null), t && x?.deactivate();
729
+ $t(null), rt(null), ye(null), t && A?.deactivate();
730
730
  }
731
731
  function Mi() {
732
- var t = S, e = t.b, o = x, n = e.is_rendered();
732
+ var t = S, e = t.b, o = A, n = e.is_rendered();
733
733
  return e.update_pending_count(1, o), o.increment(n, t), (i = !1) => {
734
734
  e.update_pending_count(-1, o), o.decrement(n, t, i);
735
735
  };
@@ -765,7 +765,7 @@ function gs(t, e, o) {
765
765
  } catch (v) {
766
766
  l.reject(v), bo();
767
767
  }
768
- var d = x;
768
+ var d = A;
769
769
  if (s) {
770
770
  if ((u.f & 32768) !== 0) var h = Mi();
771
771
  if (n.b.is_rendered()) a.get(d)?.reject(Mt), a.delete(d);
@@ -804,7 +804,7 @@ function gs(t, e, o) {
804
804
  // @__NO_SIDE_EFFECTS__
805
805
  function Eo(t) {
806
806
  const e = /* @__PURE__ */ So(t);
807
- return Pt || Ki(e), e;
807
+ return Ot || Ki(e), e;
808
808
  }
809
809
  // @__NO_SIDE_EFFECTS__
810
810
  function fn(t) {
@@ -820,7 +820,7 @@ function ms(t) {
820
820
  }
821
821
  function pn(t) {
822
822
  var e, o = S, n = t.parent;
823
- if (!Ot && n !== null && (n.f & 24576) !== 0) return Kr(), t.v;
823
+ if (!Pt && n !== null && (n.f & 24576) !== 0) return Kr(), t.v;
824
824
  $t(n);
825
825
  try {
826
826
  t.f &= ~ze, ms(t), e = Qi(t);
@@ -831,19 +831,19 @@ function pn(t) {
831
831
  }
832
832
  function Li(t) {
833
833
  var e = pn(t);
834
- if (!t.equals(e) && (t.wv = Yi(), (!x?.is_fork || t.deps === null) && (x !== null ? x.capture(t, e, !0) : t.v = e, t.deps === null))) {
834
+ if (!t.equals(e) && (t.wv = Yi(), (!A?.is_fork || t.deps === null) && (A !== null ? A.capture(t, e, !0) : t.v = e, t.deps === null))) {
835
835
  j(t, nt);
836
836
  return;
837
837
  }
838
- Ot || (q !== null ? (mn() || x?.is_fork) && q.set(t, e) : an(t));
838
+ Pt || (q !== null ? (mn() || A?.is_fork) && q.set(t, e) : an(t));
839
839
  }
840
840
  function bs(t) {
841
841
  if (t.effects !== null) for (const e of t.effects) (e.teardown || e.ac) && (e.teardown?.(), e.ac?.abort(Mt), e.teardown = Er, e.ac = null, Ve(e, 0), wn(e));
842
842
  }
843
- function Pi(t) {
843
+ function Oi(t) {
844
844
  if (t.effects !== null) for (const e of t.effects) e.teardown && ke(e);
845
845
  }
846
- var Yo = /* @__PURE__ */ new Set(), ne = /* @__PURE__ */ new Map(), Oi = !1;
846
+ var Yo = /* @__PURE__ */ new Set(), ne = /* @__PURE__ */ new Map(), Pi = !1;
847
847
  function ae(t, e) {
848
848
  return {
849
849
  f: 0,
@@ -873,18 +873,18 @@ function C(t, e, o = !1) {
873
873
  }
874
874
  function Ie(t, e, o = null) {
875
875
  if (!t.equals(e)) {
876
- ne.set(t, Ot ? e : t.v);
876
+ ne.set(t, Pt ? e : t.v);
877
877
  var n = ue.ensure();
878
878
  if (n.capture(t, e), (t.f & 2) !== 0) {
879
879
  const i = t;
880
880
  t.f & 2048 && pn(i), q === null && an(i);
881
881
  }
882
- t.wv = Yi(), ji(t, vt, o), qe() && S !== null && S.f & 1024 && !(S.f & 96) && (tt === null ? Cs([t]) : tt.push(t)), !n.is_fork && Yo.size > 0 && !Oi && ys();
882
+ t.wv = Yi(), ji(t, vt, o), qe() && S !== null && S.f & 1024 && !(S.f & 96) && (tt === null ? Cs([t]) : tt.push(t)), !n.is_fork && Yo.size > 0 && !Pi && ys();
883
883
  }
884
884
  return e;
885
885
  }
886
886
  function ys() {
887
- Oi = !1;
887
+ Pi = !1;
888
888
  for (const t of Yo) t.f & 1024 && j(t, ce), De(t) && ke(t);
889
889
  Yo.clear();
890
890
  }
@@ -982,8 +982,8 @@ function Yt(t) {
982
982
  var w = Reflect.getOwnPropertyDescriptor(u, l);
983
983
  if (w?.set && w.set.call(h, d), !v) {
984
984
  if (n && typeof l == "string") {
985
- var R = o.get("length"), A = Number(l);
986
- Number.isInteger(A) && A >= R.v && C(R, A + 1);
985
+ var R = o.get("length"), x = Number(l);
986
+ Number.isInteger(x) && x >= R.v && C(R, x + 1);
987
987
  }
988
988
  Ne(i);
989
989
  }
@@ -1008,7 +1008,7 @@ function Xo() {
1008
1008
  if (zn === void 0) {
1009
1009
  zn = window, Ni = /Firefox/.test(navigator.userAgent);
1010
1010
  var t = Element.prototype, e = Node.prototype, o = Text.prototype;
1011
- Wi = Qt(e, "firstChild").get, Vi = Qt(e, "nextSibling").get, On(t) && (t.__click = void 0, t.__className = void 0, t.__attributes = null, t.__style = void 0, t.__e = void 0), On(o) && (o.__t = void 0);
1011
+ Wi = Qt(e, "firstChild").get, Vi = Qt(e, "nextSibling").get, Pn(t) && (t.__click = void 0, t.__className = void 0, t.__attributes = null, t.__style = void 0, t.__e = void 0), Pn(o) && (o.__t = void 0);
1012
1012
  }
1013
1013
  }
1014
1014
  function pt(t = "") {
@@ -1023,7 +1023,7 @@ function St(t) {
1023
1023
  return Vi.call(t);
1024
1024
  }
1025
1025
  function Xe(t, e) {
1026
- if (!P) return /* @__PURE__ */ le(t);
1026
+ if (!O) return /* @__PURE__ */ le(t);
1027
1027
  var o = /* @__PURE__ */ le(L);
1028
1028
  if (o === null) o = L.appendChild(pt());
1029
1029
  else if (e && o.nodeType !== 3) {
@@ -1033,7 +1033,7 @@ function Xe(t, e) {
1033
1033
  return e && gn(o), U(o), o;
1034
1034
  }
1035
1035
  function Mo(t, e = !1) {
1036
- if (!P) {
1036
+ if (!O) {
1037
1037
  var o = /* @__PURE__ */ le(t);
1038
1038
  return o instanceof Comment && o.data === "" ? /* @__PURE__ */ St(o) : o;
1039
1039
  }
@@ -1047,9 +1047,9 @@ function Mo(t, e = !1) {
1047
1047
  return L;
1048
1048
  }
1049
1049
  function Rt(t, e = 1, o = !1) {
1050
- let n = P ? L : t;
1050
+ let n = O ? L : t;
1051
1051
  for (var i; e--; ) i = n, n = /* @__PURE__ */ St(n);
1052
- if (!P) return n;
1052
+ if (!O) return n;
1053
1053
  if (o) {
1054
1054
  if (n?.nodeType !== 3) {
1055
1055
  var r = pt();
@@ -1063,7 +1063,7 @@ function zi(t) {
1063
1063
  t.textContent = "";
1064
1064
  }
1065
1065
  function qi() {
1066
- return !Pt || wt !== null ? !1 : (S.f & rn) !== 0;
1066
+ return !Ot || wt !== null ? !1 : (S.f & rn) !== 0;
1067
1067
  }
1068
1068
  function vn(t, e, o) {
1069
1069
  let n = o ? { is: o } : void 0;
@@ -1084,13 +1084,13 @@ function Di(t) {
1084
1084
  }
1085
1085
  }
1086
1086
  function ws(t) {
1087
- S === null && (_ === null && qr(t), zr()), Ot && Vr(t);
1087
+ S === null && (_ === null && qr(t), zr()), Pt && Vr(t);
1088
1088
  }
1089
1089
  function Ts(t, e) {
1090
1090
  var o = e.last;
1091
1091
  o === null ? e.last = e.first = t : (o.next = t, t.prev = o, e.last = t);
1092
1092
  }
1093
- function At(t, e) {
1093
+ function xt(t, e) {
1094
1094
  var o = S;
1095
1095
  o !== null && o.f & 8192 && (t |= nn);
1096
1096
  var n = {
@@ -1109,7 +1109,7 @@ function At(t, e) {
1109
1109
  wv: 0,
1110
1110
  ac: null
1111
1111
  };
1112
- x?.register_created_effect(n);
1112
+ A?.register_created_effect(n);
1113
1113
  var i = n;
1114
1114
  if ((t & 4) !== 0) we !== null ? we.push(n) : ue.ensure().schedule(n);
1115
1115
  else if (e !== null) {
@@ -1130,7 +1130,7 @@ function mn() {
1130
1130
  return _ !== null && !ht;
1131
1131
  }
1132
1132
  function Is(t) {
1133
- const e = At(8, null);
1133
+ const e = xt(8, null);
1134
1134
  return j(e, nt), e.teardown = t, e;
1135
1135
  }
1136
1136
  function qn(t) {
@@ -1142,18 +1142,18 @@ function qn(t) {
1142
1142
  } else return Hi(t);
1143
1143
  }
1144
1144
  function Hi(t) {
1145
- return At(4 | Pr, t);
1145
+ return xt(4 | Or, t);
1146
1146
  }
1147
1147
  function ks(t) {
1148
1148
  ue.ensure();
1149
- const e = At(64 | $e, t);
1149
+ const e = xt(64 | $e, t);
1150
1150
  return () => {
1151
1151
  D(e);
1152
1152
  };
1153
1153
  }
1154
1154
  function $s(t) {
1155
1155
  ue.ensure();
1156
- const e = At(64 | $e, t);
1156
+ const e = xt(64 | $e, t);
1157
1157
  return (o = {}) => new Promise((n) => {
1158
1158
  o.outro ? de(e, () => {
1159
1159
  D(e), n(void 0);
@@ -1161,29 +1161,29 @@ function $s(t) {
1161
1161
  });
1162
1162
  }
1163
1163
  function Bi(t) {
1164
- return At(4, t);
1164
+ return xt(4, t);
1165
1165
  }
1166
1166
  function Ss(t) {
1167
- return At(Or | $e, t);
1167
+ return xt(Pr | $e, t);
1168
1168
  }
1169
1169
  function bn(t, e = 0) {
1170
- return At(8 | e, t);
1170
+ return xt(8 | e, t);
1171
1171
  }
1172
1172
  function Qe(t, e = [], o = [], n = []) {
1173
1173
  ps(n, e, o, (i) => {
1174
- At(8, () => t(...i.map(g)));
1174
+ xt(8, () => t(...i.map(g)));
1175
1175
  });
1176
1176
  }
1177
1177
  function yn(t, e = 0) {
1178
- return At(16 | e, t);
1178
+ return xt(16 | e, t);
1179
1179
  }
1180
1180
  function it(t) {
1181
- return At(32 | $e, t);
1181
+ return xt(32 | $e, t);
1182
1182
  }
1183
1183
  function Fi(t) {
1184
1184
  var e = t.teardown;
1185
1185
  if (e !== null) {
1186
- const o = Ot, n = _;
1186
+ const o = Pt, n = _;
1187
1187
  Dn(!0), rt(null);
1188
1188
  try {
1189
1189
  e.call(null);
@@ -1203,7 +1203,7 @@ function wn(t, e = !1) {
1203
1203
  (o.f & 64) !== 0 ? o.parent = null : D(o, e), o = n;
1204
1204
  }
1205
1205
  }
1206
- function As(t) {
1206
+ function xs(t) {
1207
1207
  for (var e = t.first; e !== null; ) {
1208
1208
  var o = e.next;
1209
1209
  !(e.f & 32) && D(e), e = o;
@@ -1211,14 +1211,14 @@ function As(t) {
1211
1211
  }
1212
1212
  function D(t, e = !0) {
1213
1213
  var o = !1;
1214
- (e || t.f & 262144) && t.nodes !== null && t.nodes.end !== null && (xs(t.nodes.start, t.nodes.end), o = !0), j(t, Rn), wn(t, e && !o), Ve(t, 0);
1214
+ (e || t.f & 262144) && t.nodes !== null && t.nodes.end !== null && (As(t.nodes.start, t.nodes.end), o = !0), j(t, Rn), wn(t, e && !o), Ve(t, 0);
1215
1215
  var n = t.nodes && t.nodes.t;
1216
1216
  if (n !== null) for (const r of n) r.stop();
1217
1217
  Fi(t), t.f ^= Rn, t.f |= Lr;
1218
1218
  var i = t.parent;
1219
1219
  i !== null && i.first !== null && Gi(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes = t.ac = t.b = null;
1220
1220
  }
1221
- function xs(t, e) {
1221
+ function As(t, e) {
1222
1222
  for (; t !== null; ) {
1223
1223
  var o = t === e ? null : /* @__PURE__ */ St(t);
1224
1224
  t.remove(), t = o;
@@ -1274,9 +1274,9 @@ function In(t, e) {
1274
1274
  e.append(o), o = i;
1275
1275
  }
1276
1276
  }
1277
- var _s = null, ro = !1, Ot = !1;
1277
+ var _s = null, ro = !1, Pt = !1;
1278
1278
  function Dn(t) {
1279
- Ot = t;
1279
+ Pt = t;
1280
1280
  }
1281
1281
  var _ = null, ht = !1;
1282
1282
  function rt(t) {
@@ -1288,7 +1288,7 @@ function $t(t) {
1288
1288
  }
1289
1289
  var ot = null;
1290
1290
  function Ki(t) {
1291
- _ !== null && (!Pt || _.f & 2) && (ot === null ? ot = [t] : ot.push(t));
1291
+ _ !== null && (!Ot || _.f & 2) && (ot === null ? ot = [t] : ot.push(t));
1292
1292
  }
1293
1293
  var G = null, Y = 0, tt = null;
1294
1294
  function Cs(t) {
@@ -1315,7 +1315,7 @@ function De(t) {
1315
1315
  }
1316
1316
  function Xi(t, e, o = !0) {
1317
1317
  var n = t.reactions;
1318
- if (n !== null && !(!Pt && ot !== null && be.call(ot, t))) for (var i = 0; i < n.length; i++) {
1318
+ if (n !== null && !(!Ot && ot !== null && be.call(ot, t))) for (var i = 0; i < n.length; i++) {
1319
1319
  var r = n[i];
1320
1320
  (r.f & 2) !== 0 ? Xi(r, e, !1) : e === r && (o ? j(r, vt) : r.f & 1024 && j(r, ce), dn(r));
1321
1321
  }
@@ -1329,7 +1329,7 @@ function Qi(t) {
1329
1329
  t.f |= jn;
1330
1330
  var d = t.fn, h = d();
1331
1331
  t.f |= rn;
1332
- var f = t.deps, v = x?.is_fork;
1332
+ var f = t.deps, v = A?.is_fork;
1333
1333
  if (G !== null) {
1334
1334
  var m;
1335
1335
  if (v || Ve(t, Y), f !== null && Y > 0) for (f.length = Y + G.length, m = 0; m < G.length; m++) f[Y + m] = G[m];
@@ -1355,7 +1355,7 @@ function Qi(t) {
1355
1355
  function Es(t, e) {
1356
1356
  let o = e.reactions;
1357
1357
  if (o !== null) {
1358
- var n = Ar.call(o, t);
1358
+ var n = xr.call(o, t);
1359
1359
  if (n !== -1) {
1360
1360
  var i = o.length - 1;
1361
1361
  i === 0 ? o = e.reactions = null : (o[n] = o[i], o.pop());
@@ -1377,7 +1377,7 @@ function ke(t) {
1377
1377
  var o = S, n = ro;
1378
1378
  S = t, ro = !0;
1379
1379
  try {
1380
- (e & 16777232) !== 0 ? As(t) : wn(t), Fi(t);
1380
+ (e & 16777232) !== 0 ? xs(t) : wn(t), Fi(t);
1381
1381
  var i = Qi(t);
1382
1382
  t.teardown = typeof i == "function" ? i : null, t.wv = Zi;
1383
1383
  } finally {
@@ -1397,22 +1397,22 @@ function g(t) {
1397
1397
  i === null ? t.reactions = [_] : be.call(i, _) || i.push(_);
1398
1398
  }
1399
1399
  }
1400
- if (Ot && ne.has(t)) return ne.get(t);
1400
+ if (Pt && ne.has(t)) return ne.get(t);
1401
1401
  if (e) {
1402
1402
  var r = t;
1403
- if (Ot) {
1403
+ if (Pt) {
1404
1404
  var s = r.v;
1405
1405
  return (!(r.f & 1024) && r.reactions !== null || er(r)) && (s = pn(r)), ne.set(r, s), s;
1406
1406
  }
1407
1407
  var a = (r.f & 512) === 0 && !ht && _ !== null && (ro || (_.f & 512) !== 0), u = (r.f & rn) === 0;
1408
- De(r) && (a && (r.f |= 512), Li(r)), a && !u && (Pi(r), tr(r));
1408
+ De(r) && (a && (r.f |= 512), Li(r)), a && !u && (Oi(r), tr(r));
1409
1409
  }
1410
1410
  if (q?.has(t)) return q.get(t);
1411
1411
  if ((t.f & 8388608) !== 0) throw t.v;
1412
1412
  return t.v;
1413
1413
  }
1414
1414
  function tr(t) {
1415
- if (t.f |= 512, t.deps !== null) for (const e of t.deps) (e.reactions ?? (e.reactions = [])).push(t), e.f & 2 && !(e.f & 512) && (Pi(e), tr(e));
1415
+ if (t.f |= 512, t.deps !== null) for (const e of t.deps) (e.reactions ?? (e.reactions = [])).push(t), e.f & 2 && !(e.f & 512) && (Oi(e), tr(e));
1416
1416
  }
1417
1417
  function er(t) {
1418
1418
  if (t.v === N) return !0;
@@ -1484,12 +1484,12 @@ function Fn(t) {
1484
1484
  }
1485
1485
  }
1486
1486
  var Ls = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (t) => t });
1487
- function Ps(t) {
1487
+ function Os(t) {
1488
1488
  return Ls?.createHTML(t) ?? t;
1489
1489
  }
1490
- function Os(t) {
1490
+ function Ps(t) {
1491
1491
  var e = vn("template");
1492
- return e.innerHTML = Ps(t.replaceAll("<!>", "<!---->")), e.content;
1492
+ return e.innerHTML = Os(t.replaceAll("<!>", "<!---->")), e.content;
1493
1493
  }
1494
1494
  function so(t, e) {
1495
1495
  var o = S;
@@ -1504,8 +1504,8 @@ function so(t, e) {
1504
1504
  function he(t, e) {
1505
1505
  var o = (e & 1) !== 0, n = (e & 2) !== 0, i, r = !t.startsWith("<!>");
1506
1506
  return () => {
1507
- if (P) return so(L, null), L;
1508
- i === void 0 && (i = Os(r ? t : "<!>" + t), o || (i = /* @__PURE__ */ le(i)));
1507
+ if (O) return so(L, null), L;
1508
+ i === void 0 && (i = Ps(r ? t : "<!>" + t), o || (i = /* @__PURE__ */ le(i)));
1509
1509
  var s = n || Ni ? document.importNode(i, !0) : i.cloneNode(!0);
1510
1510
  if (o) {
1511
1511
  var a = /* @__PURE__ */ le(s), u = s.lastChild;
@@ -1515,7 +1515,7 @@ function he(t, e) {
1515
1515
  };
1516
1516
  }
1517
1517
  function zt(t, e) {
1518
- if (P) {
1518
+ if (O) {
1519
1519
  var o = S;
1520
1520
  (!(o.f & 32768) || o.nodes.end === null) && (o.nodes.end = L), ko();
1521
1521
  return;
@@ -1535,7 +1535,7 @@ function nr(t, e) {
1535
1535
  }
1536
1536
  function Ns(t, e) {
1537
1537
  Xo(), e.intro = e.intro ?? !1;
1538
- const o = e.target, n = P, i = L;
1538
+ const o = e.target, n = O, i = L;
1539
1539
  try {
1540
1540
  for (var r = /* @__PURE__ */ le(o); r && (r.nodeType !== 8 || r.data !== "["); ) r = /* @__PURE__ */ St(r);
1541
1541
  if (!r) throw me;
@@ -1562,7 +1562,7 @@ function ir(t, { target: e, anchor: o, props: n = {}, events: i, context: r, int
1562
1562
  } }, (v) => {
1563
1563
  vi({});
1564
1564
  var m = V;
1565
- if (r && (m.c = r), i && (n.$$events = i), P && so(v, null), u = t(v, n) || {}, P && (S.nodes.end = L, L === null || L.nodeType !== 8 || L.data !== "]")) throw Io(), me;
1565
+ if (r && (m.c = r), i && (n.$$events = i), O && so(v, null), u = t(v, n) || {}, O && (S.nodes.end = L, L === null || L.nodeType !== 8 || L.data !== "]")) throw Io(), me;
1566
1566
  gi();
1567
1567
  }, a);
1568
1568
  var h = /* @__PURE__ */ new Set(), f = (v) => {
@@ -1571,11 +1571,11 @@ function ir(t, { target: e, anchor: o, props: n = {}, events: i, context: r, int
1571
1571
  if (!h.has(k)) {
1572
1572
  h.add(k);
1573
1573
  var p = js(k);
1574
- for (const A of [e, document]) {
1575
- var w = to.get(A);
1576
- w === void 0 && (w = /* @__PURE__ */ new Map(), to.set(A, w));
1574
+ for (const x of [e, document]) {
1575
+ var w = to.get(x);
1576
+ w === void 0 && (w = /* @__PURE__ */ new Map(), to.set(x, w));
1577
1577
  var R = w.get(k);
1578
- R === void 0 ? (A.addEventListener(k, Fn, { passive: p }), w.set(k, 1)) : w.set(k, R + 1);
1578
+ R === void 0 ? (x.addEventListener(k, Fn, { passive: p }), w.set(k, 1)) : w.set(k, R + 1);
1579
1579
  }
1580
1580
  }
1581
1581
  }
@@ -1595,9 +1595,9 @@ function Ws(t, e) {
1595
1595
  const o = tn.get(t);
1596
1596
  return o ? (tn.delete(t), o(e)) : Promise.resolve();
1597
1597
  }
1598
- var _t = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), Lo = /* @__PURE__ */ new WeakMap(), Po = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap(), Vs = class {
1598
+ var _t = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), Lo = /* @__PURE__ */ new WeakMap(), Oo = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap(), Vs = class {
1599
1599
  constructor(t, e = !0) {
1600
- y(this, "anchor", void 0), I(this, _t, /* @__PURE__ */ new Map()), I(this, jt, /* @__PURE__ */ new Map()), I(this, ct, /* @__PURE__ */ new Map()), I(this, Ce, /* @__PURE__ */ new Set()), I(this, Lo, !0), I(this, Po, (o) => {
1600
+ y(this, "anchor", void 0), I(this, _t, /* @__PURE__ */ new Map()), I(this, jt, /* @__PURE__ */ new Map()), I(this, ct, /* @__PURE__ */ new Map()), I(this, Ce, /* @__PURE__ */ new Set()), I(this, Lo, !0), I(this, Oo, (o) => {
1601
1601
  if (c(_t, this).has(o)) {
1602
1602
  var n = c(_t, this).get(o), i = c(jt, this).get(n);
1603
1603
  if (i) Tn(i), c(Ce, this).delete(n);
@@ -1632,7 +1632,7 @@ var _t = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap(), ct =
1632
1632
  }), this.anchor = t, $(Lo, this, e);
1633
1633
  }
1634
1634
  ensure(t, e) {
1635
- var o = x, n = qi();
1635
+ var o = A, n = qi();
1636
1636
  if (e && !c(jt, this).has(t) && !c(ct, this).has(t)) if (n) {
1637
1637
  var i = document.createDocumentFragment(), r = pt();
1638
1638
  i.append(r), c(ct, this).set(t, {
@@ -1643,16 +1643,16 @@ var _t = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap(), ct =
1643
1643
  if (c(_t, this).set(o, t), n) {
1644
1644
  for (const [s, a] of c(jt, this)) s === t ? o.unskip_effect(a) : o.skip_effect(a);
1645
1645
  for (const [s, a] of c(ct, this)) s === t ? o.unskip_effect(a.effect) : o.skip_effect(a.effect);
1646
- o.oncommit(c(Po, this)), o.ondiscard(c(Un, this));
1647
- } else P && (this.anchor = L), c(Po, this).call(this, o);
1646
+ o.oncommit(c(Oo, this)), o.ondiscard(c(Un, this));
1647
+ } else O && (this.anchor = L), c(Oo, this).call(this, o);
1648
1648
  }
1649
1649
  };
1650
1650
  function Ee(t, e, o = !1) {
1651
1651
  var n;
1652
- P && (n = L, ko());
1652
+ O && (n = L, ko());
1653
1653
  var i = new Vs(t), r = o ? sn : 0;
1654
1654
  function s(a, u) {
1655
- if (P) {
1655
+ if (O) {
1656
1656
  var l = hi(n);
1657
1657
  if (a !== parseInt(l.substring(1))) {
1658
1658
  var d = vo();
@@ -1704,7 +1704,7 @@ function en(t, e, o = !0) {
1704
1704
  }
1705
1705
  for (var i = 0; i < e.length; i++) {
1706
1706
  var r = e[i];
1707
- n?.has(r) ? (r.f |= Oe, In(r, document.createDocumentFragment())) : D(e[i], o);
1707
+ n?.has(r) ? (r.f |= Pe, In(r, document.createDocumentFragment())) : D(e[i], o);
1708
1708
  }
1709
1709
  }
1710
1710
  var eo;
@@ -1712,15 +1712,15 @@ function Ds(t, e, o, n, i, r = null) {
1712
1712
  var s = t, a = /* @__PURE__ */ new Map();
1713
1713
  if ((e & 4) !== 0) {
1714
1714
  var u = t;
1715
- s = P ? U(/* @__PURE__ */ le(u)) : u.appendChild(pt());
1715
+ s = O ? U(/* @__PURE__ */ le(u)) : u.appendChild(pt());
1716
1716
  }
1717
- P && ko();
1717
+ O && ko();
1718
1718
  var l = null, d = /* @__PURE__ */ fn(() => {
1719
1719
  var w = o();
1720
1720
  return li(w) ? w : w == null ? [] : To(w);
1721
1721
  }), h, f = /* @__PURE__ */ new Map(), v = !0;
1722
1722
  function m(w) {
1723
- !(p.effect.f & 16384) && (p.pending.delete(w), p.fallback = l, Hs(p, h, s, e, n), l !== null && (h.length === 0 ? (l.f & 33554432) === 0 ? Tn(l) : (l.f ^= Oe, Pe(l, null, s)) : de(l, () => {
1723
+ !(p.effect.f & 16384) && (p.pending.delete(w), p.fallback = l, Hs(p, h, s, e, n), l !== null && (h.length === 0 ? (l.f & 33554432) === 0 ? Tn(l) : (l.f ^= Pe, Oe(l, null, s)) : de(l, () => {
1724
1724
  l = null;
1725
1725
  })));
1726
1726
  }
@@ -1732,16 +1732,16 @@ function Ds(t, e, o, n, i, r = null) {
1732
1732
  h = g(d);
1733
1733
  var w = h.length;
1734
1734
  let R = !1;
1735
- P && hi(s) === "[!" != (w === 0) && (s = vo(), U(s), Lt(!1), R = !0);
1736
- for (var A = /* @__PURE__ */ new Set(), O = x, J = qi(), H = 0; H < w; H += 1) {
1737
- P && L.nodeType === 8 && L.data === "]" && (s = L, R = !0, Lt(!1));
1735
+ O && hi(s) === "[!" != (w === 0) && (s = vo(), U(s), Lt(!1), R = !0);
1736
+ for (var x = /* @__PURE__ */ new Set(), P = A, J = qi(), H = 0; H < w; H += 1) {
1737
+ O && L.nodeType === 8 && L.data === "]" && (s = L, R = !0, Lt(!1));
1738
1738
  var B = h[H], gt = n(B, H), K = v ? null : a.get(gt);
1739
- K ? (K.v && Ie(K.v, B), K.i && Ie(K.i, H), J && O.unskip_effect(K.e)) : (K = Bs(a, v ? s : eo ?? (eo = pt()), B, gt, H, i, e, o), v || (K.e.f |= Oe), a.set(gt, K)), A.add(gt);
1739
+ K ? (K.v && Ie(K.v, B), K.i && Ie(K.i, H), J && P.unskip_effect(K.e)) : (K = Bs(a, v ? s : eo ?? (eo = pt()), B, gt, H, i, e, o), v || (K.e.f |= Pe), a.set(gt, K)), x.add(gt);
1740
1740
  }
1741
- if (w === 0 && r && !l && (v ? l = it(() => r(s)) : (l = it(() => r(eo ?? (eo = pt()))), l.f |= Oe)), w > A.size && Wr("", "", ""), P && w > 0 && U(vo()), !v) if (f.set(O, A), J) {
1742
- for (const [mt, He] of a) A.has(mt) || O.skip_effect(He.e);
1743
- O.oncommit(m), O.ondiscard(k);
1744
- } else m(O);
1741
+ if (w === 0 && r && !l && (v ? l = it(() => r(s)) : (l = it(() => r(eo ?? (eo = pt()))), l.f |= Pe)), w > x.size && Wr("", "", ""), O && w > 0 && U(vo()), !v) if (f.set(P, x), J) {
1742
+ for (const [mt, He] of a) x.has(mt) || P.skip_effect(He.e);
1743
+ P.oncommit(m), P.ondiscard(k);
1744
+ } else m(P);
1745
1745
  R && Lt(!0), g(d);
1746
1746
  }),
1747
1747
  flags: e,
@@ -1750,7 +1750,7 @@ function Ds(t, e, o, n, i, r = null) {
1750
1750
  outrogroups: null,
1751
1751
  fallback: l
1752
1752
  };
1753
- v = !1, P && (s = L);
1753
+ v = !1, O && (s = L);
1754
1754
  }
1755
1755
  function Me(t) {
1756
1756
  for (; t !== null && (t.f & 32) === 0; ) t = t.next;
@@ -1761,22 +1761,22 @@ function Hs(t, e, o, n, i) {
1761
1761
  if (r) for (w = 0; w < s; w += 1) m = e[w], k = i(m, w), p = a.get(k).e, !(p.f & 33554432) && (p.nodes?.a?.measure(), (h ?? (h = /* @__PURE__ */ new Set())).add(p));
1762
1762
  for (w = 0; w < s; w += 1) {
1763
1763
  if (m = e[w], k = i(m, w), p = a.get(k).e, t.outrogroups !== null) for (const mt of t.outrogroups) mt.pending.delete(p), mt.done.delete(p);
1764
- if (p.f & 8192 && (Tn(p), r && (p.nodes?.a?.unfix(), (h ?? (h = /* @__PURE__ */ new Set())).delete(p))), (p.f & 33554432) !== 0) if (p.f ^= Oe, p === u) Pe(p, null, o);
1764
+ if (p.f & 8192 && (Tn(p), r && (p.nodes?.a?.unfix(), (h ?? (h = /* @__PURE__ */ new Set())).delete(p))), (p.f & 33554432) !== 0) if (p.f ^= Pe, p === u) Oe(p, null, o);
1765
1765
  else {
1766
1766
  var R = d ? d.next : u;
1767
- p === t.effect.last && (t.effect.last = p.prev), p.prev && (p.prev.next = p.next), p.next && (p.next.prev = p.prev), Nt(t, d, p), Nt(t, p, R), Pe(p, R, o), d = p, f = [], v = [], u = Me(d.next);
1767
+ p === t.effect.last && (t.effect.last = p.prev), p.prev && (p.prev.next = p.next), p.next && (p.next.prev = p.prev), Nt(t, d, p), Nt(t, p, R), Oe(p, R, o), d = p, f = [], v = [], u = Me(d.next);
1768
1768
  continue;
1769
1769
  }
1770
1770
  if (p !== u) {
1771
1771
  if (l !== void 0 && l.has(p)) {
1772
1772
  if (f.length < v.length) {
1773
- var A = v[0], O;
1774
- d = A.prev;
1773
+ var x = v[0], P;
1774
+ d = x.prev;
1775
1775
  var J = f[0], H = f[f.length - 1];
1776
- for (O = 0; O < f.length; O += 1) Pe(f[O], A, o);
1777
- for (O = 0; O < v.length; O += 1) l.delete(v[O]);
1778
- Nt(t, J.prev, H.next), Nt(t, d, J), Nt(t, H, A), u = A, d = H, w -= 1, f = [], v = [];
1779
- } else l.delete(p), Pe(p, u, o), Nt(t, p.prev, p.next), Nt(t, p, d === null ? t.effect.first : d.next), Nt(t, d, p), d = p;
1776
+ for (P = 0; P < f.length; P += 1) Oe(f[P], x, o);
1777
+ for (P = 0; P < v.length; P += 1) l.delete(v[P]);
1778
+ Nt(t, J.prev, H.next), Nt(t, d, J), Nt(t, H, x), u = x, d = H, w -= 1, f = [], v = [];
1779
+ } else l.delete(p), Oe(p, u, o), Nt(t, p.prev, p.next), Nt(t, p, d === null ? t.effect.first : d.next), Nt(t, d, p), d = p;
1780
1780
  continue;
1781
1781
  }
1782
1782
  for (f = [], v = []; u !== null && u !== p; ) (l ?? (l = /* @__PURE__ */ new Set())).add(u), v.push(u), u = Me(u.next);
@@ -1816,7 +1816,7 @@ function Bs(t, e, o, n, i, r, s, a) {
1816
1816
  }))
1817
1817
  };
1818
1818
  }
1819
- function Pe(t, e, o) {
1819
+ function Oe(t, e, o) {
1820
1820
  if (t.nodes) for (var n = t.nodes.start, i = t.nodes.end, r = e && (e.f & 33554432) === 0 ? e.nodes.start : o; n !== null; ) {
1821
1821
  var s = /* @__PURE__ */ St(n);
1822
1822
  if (r.before(n), n === i) return;
@@ -1843,7 +1843,7 @@ function Jn(t, e = !1) {
1843
1843
  }
1844
1844
  return n;
1845
1845
  }
1846
- function Oo(t) {
1846
+ function Po(t) {
1847
1847
  return t[0] !== "-" || t[1] !== "-" ? t.toLowerCase() : t;
1848
1848
  }
1849
1849
  function Gs(t, e) {
@@ -1852,7 +1852,7 @@ function Gs(t, e) {
1852
1852
  if (Array.isArray(e) ? (n = e[0], i = e[1]) : n = e, t) {
1853
1853
  t = String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
1854
1854
  var r = !1, s = 0, a = !1, u = [];
1855
- n && u.push(...Object.keys(n).map(Oo)), i && u.push(...Object.keys(i).map(Oo));
1855
+ n && u.push(...Object.keys(n).map(Po)), i && u.push(...Object.keys(i).map(Po));
1856
1856
  var l = 0, d = -1;
1857
1857
  const k = t.length;
1858
1858
  for (var h = 0; h < k; h++) {
@@ -1861,7 +1861,7 @@ function Gs(t, e) {
1861
1861
  if (f === ":" && d === -1) d = h;
1862
1862
  else if (f === ";" || h === k - 1) {
1863
1863
  if (d !== -1) {
1864
- var v = Oo(t.substring(l, d).trim());
1864
+ var v = Po(t.substring(l, d).trim());
1865
1865
  if (!u.includes(v)) {
1866
1866
  f !== ";" && h++;
1867
1867
  var m = t.substring(l, h).trim();
@@ -1885,16 +1885,16 @@ function Ro(t, e = {}, o, n) {
1885
1885
  }
1886
1886
  function Kn(t, e, o, n) {
1887
1887
  var i = t.__style;
1888
- if (P || i !== e) {
1888
+ if (O || i !== e) {
1889
1889
  var r = Gs(e, n);
1890
- (!P || r !== t.getAttribute("style")) && (r == null ? t.removeAttribute("style") : t.style.cssText = r), t.__style = e;
1890
+ (!O || r !== t.getAttribute("style")) && (r == null ? t.removeAttribute("style") : t.style.cssText = r), t.__style = e;
1891
1891
  } else n && (Array.isArray(n) ? (Ro(t, o?.[0], n[0]), Ro(t, o?.[1], n[1], "important")) : Ro(t, o, n));
1892
1892
  return n;
1893
1893
  }
1894
1894
  var Us = /* @__PURE__ */ Symbol("is custom element"), Js = /* @__PURE__ */ Symbol("is html"), Ks = jr ? "link" : "LINK";
1895
1895
  function Zn(t, e, o, n) {
1896
1896
  var i = Zs(t);
1897
- P && (i[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === Ks) || i[e] !== (i[e] = o) && (e === "loading" && (t[Rr] = o), o == null ? t.removeAttribute(e) : typeof o != "string" && Ys(t).includes(e) ? t[e] = o : t.setAttribute(e, o));
1897
+ O && (i[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === Ks) || i[e] !== (i[e] = o) && (e === "loading" && (t[Rr] = o), o == null ? t.removeAttribute(e) : typeof o != "string" && Ys(t).includes(e) ? t[e] = o : t.setAttribute(e, o));
1898
1898
  }
1899
1899
  function Zs(t) {
1900
1900
  return t.__attributes ?? (t.__attributes = {
@@ -1908,7 +1908,7 @@ function Ys(t) {
1908
1908
  if (o) return o;
1909
1909
  Yn.set(e, o = []);
1910
1910
  for (var n, i = t, r = Element.prototype; r !== i; ) {
1911
- n = xr(i);
1911
+ n = Ar(i);
1912
1912
  for (var s in n) n[s].set && o.push(s);
1913
1913
  i = ci(i);
1914
1914
  }
@@ -1964,33 +1964,33 @@ function No(t, e, o, n) {
1964
1964
  let d;
1965
1965
  if (r) {
1966
1966
  var h = Re in t || di in t;
1967
- d = Qt(t, e)?.set ?? (h && e in t ? (A) => t[e] = A : void 0);
1967
+ d = Qt(t, e)?.set ?? (h && e in t ? (x) => t[e] = x : void 0);
1968
1968
  }
1969
1969
  var f, v = !1;
1970
1970
  r ? [f, v] = os(() => t[e]) : f = t[e], f === void 0 && n !== void 0 && (f = l(), d && (i && Br(e), d(f)));
1971
1971
  var m;
1972
1972
  if (i ? m = () => {
1973
- var A = t[e];
1974
- return A === void 0 ? l() : (u = !0, A);
1973
+ var x = t[e];
1974
+ return x === void 0 ? l() : (u = !0, x);
1975
1975
  } : m = () => {
1976
- var A = t[e];
1977
- return A !== void 0 && (a = void 0), A === void 0 ? a : A;
1976
+ var x = t[e];
1977
+ return x !== void 0 && (a = void 0), x === void 0 ? a : x;
1978
1978
  }, i && (o & 4) === 0) return m;
1979
1979
  if (d) {
1980
1980
  var k = t.$$legacy;
1981
- return (function(A, O) {
1982
- return arguments.length > 0 ? ((!i || !O || k || v) && d(O ? m() : A), A) : m();
1981
+ return (function(x, P) {
1982
+ return arguments.length > 0 ? ((!i || !P || k || v) && d(P ? m() : x), x) : m();
1983
1983
  });
1984
1984
  }
1985
1985
  var p = !1, w = ((o & 1) !== 0 ? So : fn)(() => (p = !1, m()));
1986
1986
  r && g(w);
1987
1987
  var R = S;
1988
- return (function(A, O) {
1988
+ return (function(x, P) {
1989
1989
  if (arguments.length > 0) {
1990
- const J = O ? g(w) : i && r ? Yt(A) : A;
1991
- return C(w, J), p = !0, a !== void 0 && (a = J), A;
1990
+ const J = P ? g(w) : i && r ? Yt(x) : x;
1991
+ return C(w, J), p = !0, a !== void 0 && (a = J), x;
1992
1992
  }
1993
- return Ot && p || (R.f & 16384) !== 0 ? w.v : g(w);
1993
+ return Pt && p || (R.f & 16384) !== 0 ? w.v : g(w);
1994
1994
  });
1995
1995
  }
1996
1996
  function Qs(t) {
@@ -2025,7 +2025,7 @@ var Jt = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), ta =
2025
2025
  intro: t.intro ?? !1,
2026
2026
  recover: t.recover,
2027
2027
  transformError: t.transformError
2028
- })), !Pt && (!t?.props?.$$host || t.sync === !1) && io(), $(Jt, this, n.$$events);
2028
+ })), !Ot && (!t?.props?.$$host || t.sync === !1) && io(), $(Jt, this, n.$$events);
2029
2029
  for (const i of Object.keys(c(bt, this))) i === "$set" || i === "$destroy" || i === "$on" || fo(this, i, {
2030
2030
  get() {
2031
2031
  return c(bt, this)[i];
@@ -2210,10 +2210,10 @@ var na = class extends Event {
2210
2210
  requestValue() {
2211
2211
  this.host.dispatchEvent(new na(this.context, this.host, this.handleValue, this.subscribe));
2212
2212
  }
2213
- }, Ao = (t) => t;
2214
- Ao(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.runtimeContext"));
2215
- Ao(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.hostRuntimeContext"));
2216
- var ra = Ao(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.shellContext")), sa = Ao(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.regionScopeContext"));
2213
+ }, xo = (t) => t;
2214
+ xo(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.runtimeContext"));
2215
+ xo(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.hostRuntimeContext"));
2216
+ var ra = xo(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.shellContext")), sa = xo(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.regionScopeContext"));
2217
2217
  function lr(t, e, o) {
2218
2218
  let n = !1;
2219
2219
  const i = new ia(t, {
@@ -2322,15 +2322,15 @@ function Vt(t) {
2322
2322
  }
2323
2323
  return Array.from(e);
2324
2324
  }
2325
- function fa(t) {
2325
+ function fa(t, e) {
2326
2326
  if (t != null) {
2327
2327
  if (t === "on" || t === "off") return t;
2328
- throw new Error(`Invalid tools config at "qtiEnforcement": expected "on" or "off", got ${JSON.stringify(t)}.`);
2328
+ throw new Error(`Invalid tools config at "${e}": expected "on" or "off", got ${JSON.stringify(t)}.`);
2329
2329
  }
2330
2330
  }
2331
2331
  function pa(t) {
2332
2332
  if (t != null && !re(t)) throw new Error('Invalid tools config: expected an object with "policy", "placement", and "providers".');
2333
- const e = ua(t?.policy), o = ca(t?.placement), n = ha(t?.providers), i = fa(t?.qtiEnforcement), r = {
2333
+ const e = ua(t?.policy), o = ca(t?.placement), n = ha(t?.providers), i = fa(t?.pnpEnforcement, "pnpEnforcement"), r = {
2334
2334
  policy: {
2335
2335
  allowed: Vt(Wt(e?.allowed, "policy.allowed")),
2336
2336
  blocked: Vt(Wt(e?.blocked, "policy.blocked"))
@@ -2342,7 +2342,7 @@ function pa(t) {
2342
2342
  },
2343
2343
  providers: n
2344
2344
  };
2345
- return i && (r.qtiEnforcement = i), r;
2345
+ return i && (r.pnpEnforcement = i), r;
2346
2346
  }
2347
2347
  var va = [
2348
2348
  "assessment",
@@ -2738,7 +2738,7 @@ var Sa = class {
2738
2738
  destroy() {
2739
2739
  this.desmosProvider && (this.desmosProvider.destroy(), this.desmosProvider = null), this.config = null, console.log("[DesmosToolProvider] Destroyed");
2740
2740
  }
2741
- }, Aa = (t, e) => {
2741
+ }, xa = (t, e) => {
2742
2742
  const o = e?.useSentenceSegmenter !== !1;
2743
2743
  try {
2744
2744
  if (!o) throw new Error("Segmenter disabled by policy");
@@ -2765,7 +2765,7 @@ var Sa = class {
2765
2765
  text: t,
2766
2766
  offset: 0
2767
2767
  }];
2768
- }, xa = class {
2768
+ }, Aa = class {
2769
2769
  constructor() {
2770
2770
  y(this, "providerId", "browser"), y(this, "providerName", "Browser Speech Synthesis"), y(this, "version", "1.0.0");
2771
2771
  }
@@ -2856,7 +2856,7 @@ var Sa = class {
2856
2856
  }
2857
2857
  segmentSentences(t) {
2858
2858
  const e = this.getSegmentationPolicy();
2859
- return Aa(t, {
2859
+ return xa(t, {
2860
2860
  locale: e.locale,
2861
2861
  useSentenceSegmenter: e.useSentenceSegmenter
2862
2862
  });
@@ -2957,7 +2957,7 @@ var Sa = class {
2957
2957
  }
2958
2958
  async _initializeBrowserTTS(t) {
2959
2959
  if (typeof window > "u" || !("speechSynthesis" in window)) throw new Error("[TTSToolProvider] Browser TTS not supported (Web Speech API not available)");
2960
- this.ttsProvider = new xa(), console.log("[TTSToolProvider] Browser TTS initialized (Web Speech API)");
2960
+ this.ttsProvider = new Aa(), console.log("[TTSToolProvider] Browser TTS initialized (Web Speech API)");
2961
2961
  }
2962
2962
  async _initializeServerTTS(t) {
2963
2963
  if (!t.apiEndpoint) throw new Error("[TTSToolProvider] apiEndpoint required for server-based TTS backends");
@@ -3046,14 +3046,14 @@ var Sa = class {
3046
3046
  annotationToolbar: "pie-tool-annotation-toolbar",
3047
3047
  graph: "pie-tool-graph",
3048
3048
  periodicTable: "pie-tool-periodic-table"
3049
- }, Pa = (t, e) => La(e?.toolTagMap?.[t] ?? fr[t] ?? t, `tool component tag for "${t}"`), Oa = (t) => document.createElement(t), yt = (t, e, o, n) => {
3050
- const i = Pa(t, n), r = n?.toolComponentFactories?.[t] ?? n?.toolComponentFactory;
3049
+ }, Oa = (t, e) => La(e?.toolTagMap?.[t] ?? fr[t] ?? t, `tool component tag for "${t}"`), Pa = (t) => document.createElement(t), yt = (t, e, o, n) => {
3050
+ const i = Oa(t, n), r = n?.toolComponentFactories?.[t] ?? n?.toolComponentFactory;
3051
3051
  return r ? r({
3052
3052
  toolId: t,
3053
3053
  tagName: i,
3054
3054
  context: e,
3055
3055
  toolbarContext: o
3056
- }) : Oa(i);
3056
+ }) : Pa(i);
3057
3057
  }, Ra = {
3058
3058
  toolId: "calculator",
3059
3059
  name: "Calculator",
@@ -3992,7 +3992,7 @@ function ol(t, e) {
3992
3992
  x: 0,
3993
3993
  y: 0
3994
3994
  }
3995
- })), m = /* @__PURE__ */ W(!1), k = /* @__PURE__ */ W(!1), p = /* @__PURE__ */ W(""), w = /* @__PURE__ */ W(0), R = /* @__PURE__ */ W(null), A = /* @__PURE__ */ Eo(() => g(w) > 0), O = /* @__PURE__ */ Eo(() => g(R) !== null), J = /* @__PURE__ */ Eo(() => g(f)?.scopeElement || g(h)?.scopeElement || null);
3995
+ })), m = /* @__PURE__ */ W(!1), k = /* @__PURE__ */ W(!1), p = /* @__PURE__ */ W(""), w = /* @__PURE__ */ W(0), R = /* @__PURE__ */ W(null), x = /* @__PURE__ */ Eo(() => g(w) > 0), P = /* @__PURE__ */ Eo(() => g(R) !== null), J = /* @__PURE__ */ Eo(() => g(f)?.scopeElement || g(h)?.scopeElement || null);
3996
3996
  function H() {
3997
3997
  const b = g(l)?.ownerDocument;
3998
3998
  return g(J) || b?.documentElement || document.documentElement;
@@ -4004,8 +4004,8 @@ function ol(t, e) {
4004
4004
  if (!n()) return null;
4005
4005
  const T = n().getAnnotations();
4006
4006
  for (const M of T) {
4007
- const st = b.compareBoundaryPoints(Range.START_TO_START, M.range), Ft = b.compareBoundaryPoints(Range.END_TO_END, M.range), Se = b.compareBoundaryPoints(Range.START_TO_END, M.range), xo = b.compareBoundaryPoints(Range.END_TO_START, M.range);
4008
- if (st >= 0 && Ft <= 0 || st <= 0 && Ft >= 0 || Se > 0 && xo < 0) return M.id;
4007
+ const st = b.compareBoundaryPoints(Range.START_TO_START, M.range), Ft = b.compareBoundaryPoints(Range.END_TO_END, M.range), Se = b.compareBoundaryPoints(Range.START_TO_END, M.range), Ao = b.compareBoundaryPoints(Range.END_TO_START, M.range);
4008
+ if (st >= 0 && Ft <= 0 || st <= 0 && Ft >= 0 || Se > 0 && Ao < 0) return M.id;
4009
4009
  }
4010
4010
  return null;
4011
4011
  }
@@ -4046,9 +4046,9 @@ function ol(t, e) {
4046
4046
  function Be() {
4047
4047
  if (!o() || !r) return;
4048
4048
  const b = window.getSelection();
4049
- if (!b || b.rangeCount === 0) return xt();
4049
+ if (!b || b.rangeCount === 0) return At();
4050
4050
  const T = b.getRangeAt(0), M = b.toString().trim();
4051
- if (!M || !mt(T) || !K(T.commonAncestorContainer)) return xt();
4051
+ if (!M || !mt(T) || !K(T.commonAncestorContainer)) return At();
4052
4052
  const st = T.getBoundingClientRect(), Ft = st.left + st.width / 2, Se = st.top - 8;
4053
4053
  C(R, gt(T), !0), g(v).isVisible = !0, g(v).selectedText = M, g(v).selectedRange = T.cloneRange(), g(v).toolbarPosition = {
4054
4054
  x: Ft,
@@ -4059,17 +4059,17 @@ function ol(t, e) {
4059
4059
  C(k, !1);
4060
4060
  }, 100);
4061
4061
  }
4062
- function xt() {
4062
+ function At() {
4063
4063
  g(m) && i() && (i().stop(), C(m, !1)), g(v).isVisible = !1, g(v).selectedText = "", g(v).selectedRange = null;
4064
4064
  }
4065
- function An(b) {
4065
+ function xn(b) {
4066
4066
  if (!g(v).selectedRange || !n()) return;
4067
4067
  const T = g(v).selectedText;
4068
4068
  n().addAnnotation(g(v).selectedRange, b), C(w, n().getAnnotations().length, !0), He();
4069
4069
  const M = b === Dt.UNDERLINE ? "underlined" : `highlighted in ${b}`;
4070
4070
  C(p, `"${T.length > 30 ? T.substring(0, 30) + "..." : T}" ${M}`), setTimeout(() => {
4071
4071
  C(p, "");
4072
- }, 3e3), xt();
4072
+ }, 3e3), At();
4073
4073
  }
4074
4074
  function br() {
4075
4075
  if (!g(R) || !n()) {
@@ -4087,13 +4087,13 @@ function ol(t, e) {
4087
4087
  const M = n().getAnnotations().length;
4088
4088
  C(w, M, !0), console.log("[AnnotationToolbar] Annotations remaining:", M), He(), C(p, `Removed annotation from "${T.length > 30 ? T.substring(0, 30) + "..." : T}"`), setTimeout(() => {
4089
4089
  C(p, "");
4090
- }, 3e3), xt();
4090
+ }, 3e3), At();
4091
4091
  }
4092
4092
  function yr() {
4093
4093
  const b = g(w);
4094
4094
  n()?.clearAnnotations(), C(w, 0), sessionStorage.removeItem(B()), C(p, `${b} annotation${b === 1 ? "" : "s"} cleared`), setTimeout(() => {
4095
4095
  C(p, "");
4096
- }, 3e3), xt();
4096
+ }, 3e3), At();
4097
4097
  }
4098
4098
  async function wr() {
4099
4099
  if (!(!g(v).selectedRange || !i())) {
@@ -4107,19 +4107,19 @@ function ol(t, e) {
4107
4107
  }
4108
4108
  }
4109
4109
  }
4110
- function xn(b) {
4111
- b.key === "Escape" && g(v).isVisible && (b.preventDefault(), xt());
4110
+ function An(b) {
4111
+ b.key === "Escape" && g(v).isVisible && (b.preventDefault(), At());
4112
4112
  }
4113
4113
  function Fe(b) {
4114
- !g(v).isVisible || g(k) || g(d) && !g(d).contains(b.target) && xt();
4114
+ !g(v).isVisible || g(k) || g(d) && !g(d).contains(b.target) && At();
4115
4115
  }
4116
4116
  qn(() => {
4117
4117
  if (!r) return;
4118
4118
  const b = setTimeout(() => {
4119
4119
  mr();
4120
4120
  }, 2e3), T = g(J) || document;
4121
- return T.addEventListener("mouseup", Be), T.addEventListener("click", Fe), T.addEventListener("touchend", Be), T.addEventListener("touchstart", Fe), document.addEventListener("keydown", xn), window.addEventListener("scroll", xt, !0), () => {
4122
- clearTimeout(b), T.removeEventListener("mouseup", Be), T.removeEventListener("click", Fe), T.removeEventListener("touchend", Be), T.removeEventListener("touchstart", Fe), document.removeEventListener("keydown", xn), window.removeEventListener("scroll", xt, !0);
4121
+ return T.addEventListener("mouseup", Be), T.addEventListener("click", Fe), T.addEventListener("touchend", Be), T.addEventListener("touchstart", Fe), document.addEventListener("keydown", An), window.addEventListener("scroll", At, !0), () => {
4122
+ clearTimeout(b), T.removeEventListener("mouseup", Be), T.removeEventListener("click", Fe), T.removeEventListener("touchend", Be), T.removeEventListener("touchstart", Fe), document.removeEventListener("keydown", An), window.removeEventListener("scroll", At, !0);
4123
4123
  };
4124
4124
  }), qn(() => {
4125
4125
  if (!g(l)) return;
@@ -4159,7 +4159,7 @@ function ol(t, e) {
4159
4159
  var Z = Ja(), Ge = Xe(Z), _o = Xe(Ge, !0);
4160
4160
  Ue(Ge), Ue(Z), Qe(() => {
4161
4161
  Kn(Z, `background-color: ${g(lt).hex ?? ""};`), Zn(Z, "aria-label", g(lt).label), Zn(Z, "title", g(lt).label), Gn(_o, g(lt).label);
4162
- }), _e("click", Z, () => An(g(lt).name)), zt(at, Z);
4162
+ }), _e("click", Z, () => xn(g(lt).name)), zt(at, Z);
4163
4163
  });
4164
4164
  var st = Rt(M, 2), Ft = Rt(st, 2), Se = (at) => {
4165
4165
  var lt = Ka(), Z = Rt(Mo(lt), 2);
@@ -4168,25 +4168,25 @@ function ol(t, e) {
4168
4168
  Ee(Ft, (at) => {
4169
4169
  i() && at(Se);
4170
4170
  });
4171
- var xo = Rt(Ft, 2), $r = (at) => {
4171
+ var Ao = Rt(Ft, 2), $r = (at) => {
4172
4172
  var lt = Xa(), Z = Rt(Mo(lt), 2), Ge = (Gt) => {
4173
- var Ae = Za();
4174
- _e("click", Ae, br), zt(Gt, Ae);
4173
+ var xe = Za();
4174
+ _e("click", xe, br), zt(Gt, xe);
4175
4175
  };
4176
4176
  Ee(Z, (Gt) => {
4177
- g(O) && Gt(Ge);
4177
+ g(P) && Gt(Ge);
4178
4178
  });
4179
4179
  var _o = Rt(Z, 2), Sr = (Gt) => {
4180
- var Ae = Ya();
4181
- _e("click", Ae, yr), zt(Gt, Ae);
4180
+ var xe = Ya();
4181
+ _e("click", xe, yr), zt(Gt, xe);
4182
4182
  };
4183
4183
  Ee(_o, (Gt) => {
4184
- g(A) && Gt(Sr);
4184
+ g(x) && Gt(Sr);
4185
4185
  }), zt(at, lt);
4186
4186
  };
4187
- Ee(xo, (at) => {
4188
- (g(O) || g(A)) && at($r);
4189
- }), Ue(T), ti(T, (at) => C(d, at), () => g(d)), Qe(() => Kn(T, `left:${g(v).toolbarPosition.x}px; top:${g(v).toolbarPosition.y}px; transform: translate(-50%, -100%);`)), _e("click", st, () => An(Dt.UNDERLINE)), zt(b, T);
4187
+ Ee(Ao, (at) => {
4188
+ (g(P) || g(x)) && at($r);
4189
+ }), Ue(T), ti(T, (at) => C(d, at), () => g(d)), Qe(() => Kn(T, `left:${g(v).toolbarPosition.x}px; top:${g(v).toolbarPosition.y}px; transform: translate(-50%, -100%);`)), _e("click", st, () => xn(Dt.UNDERLINE)), zt(b, T);
4190
4190
  };
4191
4191
  Ee(En, (b) => {
4192
4192
  g(v).isVisible && b(Ir);