@pie-qti/item-player 1.0.0-beta.0 → 1.0.0-beta.1

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.
@@ -19,7 +19,7 @@ function De() {
19
19
  };
20
20
  }
21
21
  //#endregion
22
- //#region \0@oxc-project+runtime@0.144.0/helpers/esm/typeof.js
22
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/typeof.js
23
23
  function Oe(e) {
24
24
  "@babel/helpers - typeof";
25
25
  return Oe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
@@ -29,7 +29,7 @@ function Oe(e) {
29
29
  }, Oe(e);
30
30
  }
31
31
  //#endregion
32
- //#region \0@oxc-project+runtime@0.144.0/helpers/esm/toPrimitive.js
32
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPrimitive.js
33
33
  function ke(e, t) {
34
34
  if (Oe(e) != "object" || !e) return e;
35
35
  var n = e[Symbol.toPrimitive];
@@ -41,13 +41,13 @@ function ke(e, t) {
41
41
  return (t === "string" ? String : Number)(e);
42
42
  }
43
43
  //#endregion
44
- //#region \0@oxc-project+runtime@0.144.0/helpers/esm/toPropertyKey.js
44
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPropertyKey.js
45
45
  function Ae(e) {
46
46
  var t = ke(e, "string");
47
47
  return Oe(t) == "symbol" ? t : t + "";
48
48
  }
49
49
  //#endregion
50
- //#region \0@oxc-project+runtime@0.144.0/helpers/esm/defineProperty.js
50
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/defineProperty.js
51
51
  function je(e, t, n) {
52
52
  return (t = Ae(t)) in e ? Object.defineProperty(e, t, {
53
53
  value: n,
@@ -390,11 +390,7 @@ function tn(e) {
390
390
  }
391
391
  function nn(e) {
392
392
  var t = tn(e);
393
- if (!e.equals(t) && (e.wv = pi(), (!I?.is_fork || e.deps === null) && (I === null ? e.v = t : (I.capture(e, t, !0), un?.capture(e, t, !0)), e.deps === null))) {
394
- A(e, Ne);
395
- return;
396
- }
397
- Qr || (dn === null ? Bt(e) : (kr() || I?.is_fork) && dn.set(e, t));
393
+ !e.equals(t) && (e.wv = pi(), (!I?.is_fork || e.deps === null) && (I === null ? e.v = t : (I.capture(e, t, !0), un?.capture(e, t, !0)), e.deps === null)) ? A(e, Ne) : Qr || (dn === null ? Bt(e) : (kr() || I?.is_fork) && dn.set(e, t));
398
394
  }
399
395
  function rn(e) {
400
396
  if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && Gt(() => {
@@ -405,33 +401,33 @@ function an(e) {
405
401
  if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && bi(t);
406
402
  }
407
403
  //#endregion
408
- //#region \0@oxc-project+runtime@0.144.0/helpers/esm/checkPrivateRedeclaration.js
404
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/checkPrivateRedeclaration.js
409
405
  function on(e, t) {
410
406
  if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
411
407
  }
412
408
  //#endregion
413
- //#region \0@oxc-project+runtime@0.144.0/helpers/esm/classPrivateMethodInitSpec.js
409
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/classPrivateMethodInitSpec.js
414
410
  function sn(e, t) {
415
411
  on(e, t), t.add(e);
416
412
  }
417
413
  //#endregion
418
- //#region \0@oxc-project+runtime@0.144.0/helpers/esm/classPrivateFieldInitSpec.js
414
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/classPrivateFieldInitSpec.js
419
415
  function M(e, t, n) {
420
416
  on(e, t), t.set(e, n);
421
417
  }
422
418
  //#endregion
423
- //#region \0@oxc-project+runtime@0.144.0/helpers/esm/assertClassBrand.js
419
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/assertClassBrand.js
424
420
  function N(e, t, n) {
425
421
  if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
426
422
  throw TypeError("Private element is not present on this object");
427
423
  }
428
424
  //#endregion
429
- //#region \0@oxc-project+runtime@0.144.0/helpers/esm/classPrivateFieldSet2.js
425
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/classPrivateFieldSet2.js
430
426
  function P(e, t, n) {
431
427
  return e.set(N(e, t), n), n;
432
428
  }
433
429
  //#endregion
434
- //#region \0@oxc-project+runtime@0.144.0/helpers/esm/classPrivateFieldGet2.js
430
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/classPrivateFieldGet2.js
435
431
  function F(e, t) {
436
432
  return e.get(N(e, t));
437
433
  }
@@ -523,11 +519,7 @@ var cn, ln = null, I = null, un = null, dn = null, fn = null, pn = !1, mn = !1,
523
519
  dn = null;
524
520
  }
525
521
  schedule(e) {
526
- if (fn = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
527
- e.b.defer_effect(e);
528
- return;
529
- }
530
- F(Dn, this).push(e);
522
+ fn = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768) ? e.b.defer_effect(e) : F(Dn, this).push(e);
531
523
  }
532
524
  };
533
525
  cn = Pn;
@@ -587,21 +579,20 @@ function Ln() {
587
579
  return;
588
580
  }
589
581
  let i = N(L, this, zn).call(this);
590
- if (i) {
591
- N(L, this, Vn).call(this, t), N(L, this, Vn).call(this, e), N(L, i, Bn).call(i, this);
592
- return;
593
- }
594
- F(kn, this).clear(), F(An, this).clear();
595
- for (let e of F(Sn, this)) e(this);
596
- F(Sn, this).clear(), un = this, Gn(t), Gn(e), un = null, F(En, this)?.resolve();
597
- var a = I;
598
- if (F(wn, this) === 0 && (F(Dn, this).length === 0 || a !== null) && N(L, this, Hn).call(this), F(Dn, this).length > 0) {
599
- if (a !== null) {
600
- for (let e of F(Dn, this)) F(Dn, a).push(e);
601
- P(Dn, this, []);
602
- } else a = this;
582
+ if (i) N(L, this, Vn).call(this, t), N(L, this, Vn).call(this, e), N(L, i, Bn).call(i, this);
583
+ else {
584
+ F(kn, this).clear(), F(An, this).clear();
585
+ for (let e of F(Sn, this)) e(this);
586
+ F(Sn, this).clear(), un = this, Gn(t), Gn(e), un = null, F(En, this)?.resolve();
587
+ var a = I;
588
+ if (F(wn, this) === 0 && (F(Dn, this).length === 0 || a !== null) && N(L, this, Hn).call(this), F(Dn, this).length > 0) {
589
+ if (a !== null) {
590
+ for (let e of F(Dn, this)) F(Dn, a).push(e);
591
+ P(Dn, this, []);
592
+ } else a = this;
593
+ }
594
+ a !== null && (Xn.clear(), N(L, a, Ln).call(a));
603
595
  }
604
- a !== null && (Xn.clear(), N(L, a, Ln).call(a));
605
596
  }
606
597
  function Rn(e, t, n) {
607
598
  e.f ^= Ne;
@@ -773,7 +764,7 @@ function ar(e, t, n) {
773
764
  }
774
765
  for (var o = 0; o < a; o++) {
775
766
  var s = r[o], c = s.f;
776
- if (!(!i && s === W)) {
767
+ if (i || s !== W) {
777
768
  var l = (c & Pe) === 0;
778
769
  if (l && A(s, t), c & 131072) Yn.add(s);
779
770
  else if (c & 2) {
@@ -1561,9 +1552,7 @@ function q(e, t) {
1561
1552
  if (E) {
1562
1553
  var n = W;
1563
1554
  (!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = D), ft();
1564
- return;
1565
- }
1566
- e !== null && e.before(t);
1555
+ } else e !== null && e.before(t);
1567
1556
  }
1568
1557
  //#endregion
1569
1558
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/reactivity/create-subscriber.js
@@ -1612,7 +1601,7 @@ var ta = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ new WeakMap(), ra =
1612
1601
  return !!F(ra, this).pending;
1613
1602
  }
1614
1603
  update_pending_count(e, t) {
1615
- N(J, this, Ta).call(this, e, t), P(ua, this, F(ua, this) + e), !(!F(ha, this) || F(fa, this)) && (P(fa, this, !0), Rt(() => {
1604
+ N(J, this, Ta).call(this, e, t), P(ua, this, F(ua, this) + e), F(ha, this) && !F(fa, this) && (P(fa, this, !0), Rt(() => {
1616
1605
  P(fa, this, !1), F(ha, this) && nr(F(ha, this), F(ua, this));
1617
1606
  }));
1618
1607
  }
@@ -1642,15 +1631,11 @@ function ya(e) {
1642
1631
  function ba(e) {
1643
1632
  var t = !1, n = !1;
1644
1633
  let r = () => {
1645
- if (t) {
1646
- ut();
1647
- return;
1648
- }
1649
- t = !0, n && kt(), F(ca, this) !== null && Gr(F(ca, this), () => {
1634
+ t ? ut() : (t = !0, n && kt(), F(ca, this) !== null && Gr(F(ca, this), () => {
1650
1635
  P(ca, this, null);
1651
1636
  }), N(J, this, wa).call(this, () => {
1652
1637
  N(J, this, Sa).call(this);
1653
- });
1638
+ }));
1654
1639
  };
1655
1640
  return {
1656
1641
  reset: r,
@@ -1667,7 +1652,7 @@ function xa() {
1667
1652
  let e = F(ra, this).pending;
1668
1653
  e && (this.is_pending = !0, P(sa, this, zr(() => e(F(ta, this)))), Rt(() => {
1669
1654
  var e = P(la, this, document.createDocumentFragment()), t = mr(), n = !1;
1670
- if (e.append(t), P(oa, this, N(J, this, wa).call(this, () => {
1655
+ e.append(t), P(oa, this, N(J, this, wa).call(this, () => {
1671
1656
  try {
1672
1657
  return zr(() => F(ia, this).call(this, t));
1673
1658
  } catch (e) {
@@ -1678,11 +1663,7 @@ function xa() {
1678
1663
  }
1679
1664
  return null;
1680
1665
  }
1681
- })), F(oa, this) === null) {
1682
- P(la, this, null), n && N(J, this, Ca).call(this, I);
1683
- return;
1684
- }
1685
- F(da, this) === 0 && (F(ta, this).before(e), P(la, this, null), Gr(F(sa, this), () => {
1666
+ })), F(oa, this) === null ? (P(la, this, null), n && N(J, this, Ca).call(this, I)) : F(da, this) === 0 && (F(ta, this).before(e), P(la, this, null), Gr(F(sa, this), () => {
1686
1667
  P(sa, this, null);
1687
1668
  }), N(J, this, Ca).call(this, I));
1688
1669
  }));
@@ -1714,16 +1695,13 @@ function wa(e) {
1714
1695
  }
1715
1696
  }
1716
1697
  function Ta(e, t) {
1717
- if (!this.has_pending_snippet()) {
1718
- if (this.parent) {
1719
- var n;
1720
- N(J, n = this.parent, Ta).call(n, e, t);
1721
- }
1722
- return;
1723
- }
1724
- P(da, this, F(da, this) + e), F(da, this) === 0 && (N(J, this, Ca).call(this, t), F(sa, this) && Gr(F(sa, this), () => {
1698
+ if (this.has_pending_snippet()) P(da, this, F(da, this) + e), F(da, this) === 0 && (N(J, this, Ca).call(this, t), F(sa, this) && Gr(F(sa, this), () => {
1725
1699
  P(sa, this, null);
1726
1700
  }), F(la, this) && (F(ta, this).before(F(la, this)), P(la, this, null)));
1701
+ else if (this.parent) {
1702
+ var n;
1703
+ N(J, n = this.parent, Ta).call(n, e, t);
1704
+ }
1727
1705
  }
1728
1706
  function Ea(e) {
1729
1707
  F(oa, this) && (H(F(oa, this)), P(oa, this, null)), F(sa, this) && (H(F(sa, this)), P(sa, this, null)), F(ca, this) && (H(F(ca, this)), P(ca, this, null)), E && (O(F(na, this)), pt(), O(mt()));
@@ -2050,26 +2028,20 @@ function Qa(e, t, n = !1, r = !1, i = !1, a = !1) {
2050
2028
  }
2051
2029
  V(() => {
2052
2030
  var e = W;
2053
- if (s === (s = t() ?? "")) {
2054
- E && ft();
2055
- return;
2056
- }
2057
- if (n && !E) {
2058
- e.nodes = null, c.innerHTML = s, s !== "" && Yi(/* @__PURE__ */ hr(c), c.lastChild);
2059
- return;
2060
- }
2061
- if (e.nodes !== null && (Ur(e.nodes.start, e.nodes.end), e.nodes = null), s !== "") {
2031
+ if (s === (s = t() ?? "")) E && ft();
2032
+ else if (n && !E) e.nodes = null, c.innerHTML = s, s !== "" && Yi(/* @__PURE__ */ hr(c), c.lastChild);
2033
+ else if (e.nodes !== null && (Ur(e.nodes.start, e.nodes.end), e.nodes = null), s !== "") {
2062
2034
  if (E) {
2063
2035
  for (var a = D.data, l = ft(), u = l; l !== null && (l.nodeType !== 8 || l.data !== "");) u = l, l = /* @__PURE__ */ gr(l);
2064
2036
  if (l === null) throw ct(), it;
2065
2037
  Yi(D, u), o = O(l);
2066
- return;
2038
+ } else {
2039
+ var d = Sr(r ? "svg" : i ? "math" : "template", r ? at : i ? ot : void 0);
2040
+ d.innerHTML = s;
2041
+ var f = r || i ? d : d.content;
2042
+ if (Yi(/* @__PURE__ */ hr(f), f.lastChild), r || i) for (; /* @__PURE__ */ hr(f);) o.before(/* @__PURE__ */ hr(f));
2043
+ else o.before(f);
2067
2044
  }
2068
- var d = Sr(r ? "svg" : i ? "math" : "template", r ? at : i ? ot : void 0);
2069
- d.innerHTML = s;
2070
- var f = r || i ? d : d.content;
2071
- if (Yi(/* @__PURE__ */ hr(f), f.lastChild), r || i) for (; /* @__PURE__ */ hr(f);) o.before(/* @__PURE__ */ hr(f));
2072
- else o.before(f);
2073
2045
  }
2074
2046
  });
2075
2047
  }
@@ -2084,11 +2056,8 @@ function $a(e, t, n, r, i, a) {
2084
2056
  Lr(() => {
2085
2057
  let e = t() || null;
2086
2058
  var a = i ? i() : n || e === "svg" ? at : void 0;
2087
- if (e === null) {
2088
- l.ensure(null, null);
2089
- return;
2090
- }
2091
- return l.ensure(e, (t) => {
2059
+ if (e === null) l.ensure(null, null);
2060
+ else return l.ensure(e, (t) => {
2092
2061
  if (e) {
2093
2062
  if (s = E ? s : Sr(e, a), Yi(s, s), r) {
2094
2063
  var n = null;
@@ -2251,11 +2220,11 @@ function ho(e, t) {
2251
2220
  }
2252
2221
  function go(e, t) {
2253
2222
  var n = !("__defaultValue" in e);
2254
- !n && e.__defaultValue === t || (e.__defaultValue = t, _o(e, !n || "__value" in e));
2223
+ (n || e.__defaultValue !== t) && (e.__defaultValue = t, _o(e, !n || "__value" in e));
2255
2224
  }
2256
2225
  function _o(e, t) {
2257
2226
  var n = e.__defaultValue, r = e.multiple, i = r ? n ?? [] : null;
2258
- if (!(r && !me(i))) {
2227
+ if (!r || me(i)) {
2259
2228
  var a = e.selectedIndex, o = t && r ? new Set(e.selectedOptions) : null;
2260
2229
  for (var s of e.options) {
2261
2230
  var c = bo(s);
@@ -2275,13 +2244,13 @@ function vo(e, t, n = !1) {
2275
2244
  if (t == null) return;
2276
2245
  if (!me(t)) return lt();
2277
2246
  for (var r of e.options) r.selected = t.includes(bo(r));
2278
- return;
2279
- }
2280
- for (r of e.options) if (cr(bo(r), t)) {
2281
- r.selected = !0;
2282
- return;
2247
+ } else {
2248
+ for (r of e.options) if (cr(bo(r), t)) {
2249
+ r.selected = !0;
2250
+ return;
2251
+ }
2252
+ (!n || t !== void 0) && (e.selectedIndex = -1);
2283
2253
  }
2284
- (!n || t !== void 0) && (e.selectedIndex = -1);
2285
2254
  }
2286
2255
  function yo(e) {
2287
2256
  var t = new MutationObserver((t) => {
@@ -2350,58 +2319,51 @@ function No(e, t, n, r, i = !1, a = !1) {
2350
2319
  }
2351
2320
  for (let i in n) {
2352
2321
  let l = n[i];
2353
- if (d && i === "value" && l == null) {
2354
- e.value = e.__value = "", u[i] = l;
2355
- continue;
2356
- }
2357
- if (i === "class") {
2358
- fo(e, e.namespaceURI === "http://www.w3.org/1999/xhtml", l, r, t?.[So], n[So]), u[i] = l, u[So] = n[So];
2359
- continue;
2360
- }
2361
- if (i === "style") {
2362
- mo(e, l, t?.[Co], n[Co]), u[i] = l, u[Co] = n[Co];
2363
- continue;
2364
- }
2365
- var g = u[i];
2366
- if (!(l === g && !(l === void 0 && e.hasAttribute(i)))) {
2367
- u[i] = l;
2368
- var _ = i[0] + i[1];
2369
- if (_ !== "$$") {
2370
- if (_ === "on") {
2371
- let t = {}, n = "$$" + i, r = i.slice(2);
2372
- var v = Oi(r);
2373
- if (Ei(r) && (r = r.slice(0, -7), t.capture = !0), !v && g) {
2374
- if (l != null) continue;
2375
- e.removeEventListener(r, u[n], t), u[n] = null;
2376
- }
2377
- if (v) Vi(r, e, l), Hi([r]);
2378
- else if (l != null) {
2379
- function a(e) {
2380
- u[i].call(this, e);
2322
+ if (d && i === "value" && l == null) e.value = e.__value = "", u[i] = l;
2323
+ else if (i === "class") fo(e, e.namespaceURI === "http://www.w3.org/1999/xhtml", l, r, t?.[So], n[So]), u[i] = l, u[So] = n[So];
2324
+ else if (i === "style") mo(e, l, t?.[Co], n[Co]), u[i] = l, u[Co] = n[Co];
2325
+ else {
2326
+ var g = u[i];
2327
+ if (l !== g || l === void 0 && e.hasAttribute(i)) {
2328
+ u[i] = l;
2329
+ var _ = i[0] + i[1];
2330
+ if (_ !== "$$") {
2331
+ if (_ === "on") {
2332
+ let t = {}, n = "$$" + i, r = i.slice(2);
2333
+ var v = Oi(r);
2334
+ if (Ei(r) && (r = r.slice(0, -7), t.capture = !0), !v && g) {
2335
+ if (l != null) continue;
2336
+ e.removeEventListener(r, u[n], t), u[n] = null;
2381
2337
  }
2382
- u[n] = zi(r, e, a, t);
2383
- }
2384
- } else if (i === "style") Y(e, i, l);
2385
- else if (i === "autofocus") Ht(e, !!l);
2386
- else if (!s && (i === "__value" || i === "value" && l != null)) e.value = e.__value = l;
2387
- else if (i === "selected" && d) ho(e, l);
2388
- else {
2389
- var y = i;
2390
- c || (y = ji(y));
2391
- var b = y === "defaultValue" || y === "defaultChecked";
2392
- if (f && y === "defaultValue") continue;
2393
- if (l == null && !s && !b) {
2394
- if (o[i] = null, y === "value" || y === "checked") {
2395
- let n = e, r = t === void 0;
2396
- if (y === "value") {
2397
- let e = n.defaultValue;
2398
- n.removeAttribute(y), n.defaultValue = e, n.value = n.__value = r ? e : null;
2399
- } else {
2400
- let e = n.defaultChecked;
2401
- n.removeAttribute(y), n.defaultChecked = e, n.checked = r ? e : !1;
2338
+ if (v) Vi(r, e, l), Hi([r]);
2339
+ else if (l != null) {
2340
+ function a(e) {
2341
+ u[i].call(this, e);
2402
2342
  }
2403
- } else e.removeAttribute(i);
2404
- } else b || (s || typeof l != "string") && m.has(y) ? (e[y] = l, y in o && (o[y] = T)) : typeof l != "function" && Y(e, y, l, a);
2343
+ u[n] = zi(r, e, a, t);
2344
+ }
2345
+ } else if (i === "style") Y(e, i, l);
2346
+ else if (i === "autofocus") Ht(e, !!l);
2347
+ else if (!s && (i === "__value" || i === "value" && l != null)) e.value = e.__value = l;
2348
+ else if (i === "selected" && d) ho(e, l);
2349
+ else {
2350
+ var y = i;
2351
+ c || (y = ji(y));
2352
+ var b = y === "defaultValue" || y === "defaultChecked";
2353
+ if (f && y === "defaultValue") continue;
2354
+ if (l == null && !s && !b) {
2355
+ if (o[i] = null, y === "value" || y === "checked") {
2356
+ let n = e, r = t === void 0;
2357
+ if (y === "value") {
2358
+ let e = n.defaultValue;
2359
+ n.removeAttribute(y), n.defaultValue = e, n.value = n.__value = r ? e : null;
2360
+ } else {
2361
+ let e = n.defaultChecked;
2362
+ n.removeAttribute(y), n.defaultChecked = e, n.checked = r ? e : !1;
2363
+ }
2364
+ } else e.removeAttribute(i);
2365
+ } else b || (s || typeof l != "string") && m.has(y) ? (e[y] = l, y in o && (o[y] = T)) : typeof l != "function" && Y(e, y, l, a);
2366
+ }
2405
2367
  }
2406
2368
  }
2407
2369
  }
@@ -2644,20 +2606,20 @@ function ms() {
2644
2606
  };
2645
2607
  }
2646
2608
  //#endregion
2647
- //#region \0@oxc-project+runtime@0.144.0/helpers/esm/getPrototypeOf.js
2609
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/getPrototypeOf.js
2648
2610
  function hs(e) {
2649
2611
  return hs = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
2650
2612
  return e.__proto__ || Object.getPrototypeOf(e);
2651
2613
  }, hs(e);
2652
2614
  }
2653
2615
  //#endregion
2654
- //#region \0@oxc-project+runtime@0.144.0/helpers/esm/superPropBase.js
2616
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/superPropBase.js
2655
2617
  function gs(e, t) {
2656
2618
  for (; !{}.hasOwnProperty.call(e, t) && (e = hs(e)) !== null;);
2657
2619
  return e;
2658
2620
  }
2659
2621
  //#endregion
2660
- //#region \0@oxc-project+runtime@0.144.0/helpers/esm/get.js
2622
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/get.js
2661
2623
  function _s() {
2662
2624
  return _s = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(e, t, n) {
2663
2625
  var r = gs(e, t);
@@ -2668,7 +2630,7 @@ function _s() {
2668
2630
  }, _s.apply(null, arguments);
2669
2631
  }
2670
2632
  //#endregion
2671
- //#region \0@oxc-project+runtime@0.144.0/helpers/esm/superPropGet.js
2633
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/superPropGet.js
2672
2634
  function vs(e, t, n, r) {
2673
2635
  var i = _s(hs(1 & r ? e.prototype : e), t, n);
2674
2636
  return 2 & r && typeof i == "function" ? function(e) {
@@ -3855,37 +3817,18 @@ function Jc(e, t, n, r) {
3855
3817
  for (let n of Object.keys(a)) {
3856
3818
  let r = n.toLowerCase(), a = e.getAttribute(n);
3857
3819
  if (a) {
3858
- if (r === "srcdoc") {
3859
- e.removeAttribute(n);
3860
- continue;
3861
- }
3862
- if (r === "ping") {
3863
- e.removeAttribute(n);
3864
- continue;
3865
- }
3866
- if (r === "is") {
3867
- e.removeAttribute(n);
3868
- continue;
3869
- }
3870
- if (r === "style" && Bc(a)) {
3871
- e.removeAttribute(n);
3872
- continue;
3873
- }
3874
- if (r === "srcset") {
3820
+ if (r === "srcdoc") e.removeAttribute(n);
3821
+ else if (r === "ping") e.removeAttribute(n);
3822
+ else if (r === "is") e.removeAttribute(n);
3823
+ else if (r === "style" && Bc(a)) e.removeAttribute(n);
3824
+ else if (r === "srcset") {
3875
3825
  let r = zc(a, t);
3876
3826
  r ? r !== a && e.setAttribute(n, r) : e.removeAttribute(n);
3877
- continue;
3878
- }
3879
- if (Uc.has(r) && Gc(a)) {
3880
- e.removeAttribute(n);
3881
- continue;
3882
- }
3883
- if (r === "background") {
3827
+ } else if (Uc.has(r) && Gc(a)) e.removeAttribute(n);
3828
+ else if (r === "background") {
3884
3829
  let r = Lc(a, t, "img");
3885
3830
  r ? r !== a && e.setAttribute(n, r) : e.removeAttribute(n);
3886
- continue;
3887
- }
3888
- if (r === "href" || r === "xlink:href" || r === "src" || r === "data" || r === "action" || r === "formaction" || r === "poster") {
3831
+ } else if (r === "href" || r === "xlink:href" || r === "src" || r === "data" || r === "action" || r === "formaction" || r === "poster") {
3889
3832
  let r = Rc(a, t, i === "img" ? "img" : i === "audio" || i === "video" || i === "source" ? "media" : i === "object" || i === "embed" ? "object" : i === "a" ? "link" : "any");
3890
3833
  r !== a && e.setAttribute(n, r);
3891
3834
  }
@@ -4937,17 +4880,13 @@ function Rl(e, t) {
4937
4880
  start: e,
4938
4881
  end: e + 1
4939
4882
  };
4940
- if (Al.test(t.data.charAt(e))) {
4941
- n.length > 0 && (r ?? (r = i));
4942
- continue;
4943
- }
4944
- r && n.push({
4883
+ Al.test(t.data.charAt(e)) ? n.length > 0 && (r ?? (r = i)) : (r && n.push({
4945
4884
  ...r,
4946
4885
  space: !0
4947
4886
  }), r = void 0, n.push({
4948
4887
  ...i,
4949
4888
  space: !1
4950
- });
4889
+ }));
4951
4890
  }
4952
4891
  let i = t.start - 1, a = t.stop - 1;
4953
4892
  if (t.unit === "word") {
@@ -5341,7 +5280,7 @@ function gu(e, t) {
5341
5280
  }
5342
5281
  function _u(e, t) {
5343
5282
  let n = gu(e.getAttribute("aria-labelledby"), t) || mu(e.getAttribute("aria-label")), r = gu(e.getAttribute("aria-describedby"), t) || mu(e.getAttribute("aria-description"));
5344
- if (!(!n && !r)) return {
5283
+ if (n || r) return {
5345
5284
  ...n ? { label: n } : {},
5346
5285
  ...r ? { description: r } : {}
5347
5286
  };
@@ -5544,11 +5483,7 @@ function Lu(e, t, n) {
5544
5483
  return r && typeof r == "object" && "type" in r && r.type === "object" ? "object" : "media";
5545
5484
  }
5546
5485
  function Ru(e, t, n) {
5547
- if (Array.isArray(e) && typeof t == "number") {
5548
- e[t] = n;
5549
- return;
5550
- }
5551
- e[String(t)] = n;
5486
+ Array.isArray(e) && typeof t == "number" ? e[t] = n : e[String(t)] = n;
5552
5487
  }
5553
5488
  function zu(e) {
5554
5489
  if (Array.isArray(e)) return e.map((e) => zu(e));
@@ -6400,13 +6335,11 @@ var Hd = class {
6400
6335
  return this._response = e, this._hasResponse = !0, !this.instance || t || this.rebuildInPlace(), !0;
6401
6336
  }
6402
6337
  restore(e) {
6403
- if (this._response = e, this._hasResponse = !0, this._moduleOwnsResponse = !1, !(!this.instance && !this.mountNode)) {
6338
+ if (this._response = e, this._hasResponse = !0, this._moduleOwnsResponse = !1, this.instance || this.mountNode) {
6404
6339
  if (this._remountRequestListeners.size > 0) {
6405
6340
  this._restorePending = !0;
6406
6341
  for (let e of this._remountRequestListeners) e();
6407
- return;
6408
- }
6409
- this.instance && this.rebuildInPlace();
6342
+ } else this.instance && this.rebuildInPlace();
6410
6343
  }
6411
6344
  }
6412
6345
  async remount(e) {
@@ -6427,7 +6360,7 @@ var Hd = class {
6427
6360
  this.instance = null, e && this.session.destroyInstance(e);
6428
6361
  }
6429
6362
  rebuildInPlace() {
6430
- !this.mountNode || !this.loaded || this.destroyed || (this.destroyInstance(), this._instanceState = void 0, this.initialize(this.mountNode));
6363
+ this.mountNode && this.loaded && !this.destroyed && (this.destroyInstance(), this._instanceState = void 0, this.initialize(this.mountNode));
6431
6364
  }
6432
6365
  buildConfiguration() {
6433
6366
  return {
@@ -7017,7 +6950,7 @@ var Qd = class {
7017
6950
  for (let t of Object.values(this.decls)) {
7018
6951
  if (t.__kind !== "response") continue;
7019
6952
  let n = t;
7020
- !n.correctResponse || n.correctResponse.kind !== "value" || (e[t.identifier] = this.qtiValueToPublic(n.correctResponse));
6953
+ n.correctResponse && n.correctResponse.kind === "value" && (e[t.identifier] = this.qtiValueToPublic(n.correctResponse));
7021
6954
  }
7022
6955
  return e;
7023
6956
  }
@@ -7112,17 +7045,11 @@ var Qd = class {
7112
7045
  let n = e[t.responseIdentifier], r = (e) => e == null ? !1 : typeof e != "string" || (t.type === "extendedTextInteraction" && t.format === "xhtml" ? e.replace(/<[^>]*>/g, "").replace(/&nbsp;|&#160;/gi, " ") : e).trim().length > 0;
7113
7046
  if (t.type === "mediaInteraction") {
7114
7047
  if (Number(n || 0) > 0) return !0;
7115
- continue;
7116
- }
7117
- if (Array.isArray(n)) {
7048
+ } else if (Array.isArray(n)) {
7118
7049
  if (n.some(r)) return !0;
7119
- continue;
7120
- }
7121
- if (n && typeof n == "object") {
7050
+ } else if (n && typeof n == "object") {
7122
7051
  if (Object.values(n).some(r)) return !0;
7123
- continue;
7124
- }
7125
- if (r(n)) return !0;
7052
+ } else if (r(n)) return !0;
7126
7053
  }
7127
7054
  return !1;
7128
7055
  }
@@ -7455,7 +7382,7 @@ var Qd = class {
7455
7382
  let e = {};
7456
7383
  for (let t of r) {
7457
7384
  let n = this.getAttrMapped(t, "fieldIdentifier"), r = this.getAttrMapped(t, "baseType");
7458
- !n || !r || (e[n] = x(r, t.textContent || ""));
7385
+ n && r && (e[n] = x(r, t.textContent || ""));
7459
7386
  }
7460
7387
  return Object.keys(e).length > 0 ? w(void 0, "record", e) : se(void 0, "record");
7461
7388
  }
@@ -7864,15 +7791,9 @@ function wf(e, t) {
7864
7791
  let n = 0, r = null;
7865
7792
  for (let i = t; i < e.length; i += 1) {
7866
7793
  let t = e[i];
7867
- if (r) {
7868
- t === "\\" ? i += 1 : t === r && (r = null);
7869
- continue;
7870
- }
7871
- if (t === "\"" || t === "'") {
7872
- r = t;
7873
- continue;
7874
- }
7875
- if (t === "{") n += 1;
7794
+ if (r) t === "\\" ? i += 1 : t === r && (r = null);
7795
+ else if (t === "\"" || t === "'") r = t;
7796
+ else if (t === "{") n += 1;
7876
7797
  else if (t === "}" && (--n, n === 0)) return {
7877
7798
  contentEnd: i,
7878
7799
  end: i + 1
@@ -7887,19 +7808,7 @@ function Tf(e, t) {
7887
7808
  let n = [], r = "", i = null, a = 0;
7888
7809
  for (let o = 0; o < e.length; o += 1) {
7889
7810
  let s = e[o];
7890
- if (i) {
7891
- r += s, s === "\\" && o + 1 < e.length ? (r += e[o + 1], o += 1) : s === i && (i = null);
7892
- continue;
7893
- }
7894
- if (s === "\"" || s === "'") {
7895
- i = s, r += s;
7896
- continue;
7897
- }
7898
- if (s === "(" ? a += 1 : s === ")" && a > 0 && --a, s === t && a === 0) {
7899
- n.push(r), r = "";
7900
- continue;
7901
- }
7902
- r += s;
7811
+ i ? (r += s, s === "\\" && o + 1 < e.length ? (r += e[o + 1], o += 1) : s === i && (i = null)) : s === "\"" || s === "'" ? (i = s, r += s) : (s === "(" ? a += 1 : s === ")" && a > 0 && --a, s === t && a === 0 ? (n.push(r), r = "") : r += s);
7903
7812
  }
7904
7813
  return n.push(r), n;
7905
7814
  }
@@ -7913,18 +7822,11 @@ function Ef(e) {
7913
7822
  continue;
7914
7823
  }
7915
7824
  i === n && (n = null), r += 1;
7916
- continue;
7917
- }
7918
- if (i === "\"" || i === "'") {
7919
- n = i, t += i, r += 1;
7920
- continue;
7921
- }
7922
- if (i === "/" && e[r + 1] === "*") {
7825
+ } else if (i === "\"" || i === "'") n = i, t += i, r += 1;
7826
+ else if (i === "/" && e[r + 1] === "*") {
7923
7827
  let n = e.indexOf("*/", r + 2);
7924
7828
  r = n === -1 ? e.length : n + 2, t += " ";
7925
- continue;
7926
- }
7927
- t += i, r += 1;
7829
+ } else t += i, r += 1;
7928
7830
  }
7929
7831
  return t;
7930
7832
  }
@@ -8107,11 +8009,7 @@ function Gf(e, t, { renderRubrics: n }) {
8107
8009
  let r = [...e.childNodes];
8108
8010
  for (let e of r) {
8109
8011
  let r = e.rawTagName?.toLowerCase();
8110
- if (r && Kf(r) && (!n || !qf(e, t))) {
8111
- e.remove();
8112
- continue;
8113
- }
8114
- e.childNodes?.length && Gf(e, t, { renderRubrics: n }), r && Kf(r) && e.replaceWith(Jf(e));
8012
+ r && Kf(r) && (!n || !qf(e, t)) ? e.remove() : (e.childNodes?.length && Gf(e, t, { renderRubrics: n }), r && Kf(r) && e.replaceWith(Jf(e)));
8115
8013
  }
8116
8014
  }
8117
8015
  function Kf(e) {
@@ -8461,13 +8359,13 @@ function vp(e) {
8461
8359
  //#endregion
8462
8360
  //#region src/components/actions/typesetAction.ts
8463
8361
  function yp(e, t) {
8464
- if (!(typeof window < "u" && typeof MutationObserver < "u")) return {
8362
+ if (typeof window > "u" || typeof MutationObserver > "u") return {
8465
8363
  update() {},
8466
8364
  destroy() {}
8467
8365
  };
8468
8366
  let n = !1, r = !1, i = null, a = t, o = () => {
8469
8367
  n || r || !a.typeset || (r = !0, requestAnimationFrame(async () => {
8470
- if (r = !1, !(n || !a.typeset)) try {
8368
+ if (r = !1, !n && a.typeset) try {
8471
8369
  await a.typeset(e);
8472
8370
  } catch {}
8473
8371
  }));
@@ -8646,7 +8544,7 @@ function Pp(e) {
8646
8544
  function Fp(e) {
8647
8545
  if (!e || typeof e == "boolean") return;
8648
8546
  let t = e.languageCode?.trim();
8649
- if (!(!t || !/^[a-zA-Z]{2,8}(?:-[a-zA-Z0-9]{1,8})*$/.test(t))) return t;
8547
+ if (t && /^[a-zA-Z]{2,8}(?:-[a-zA-Z0-9]{1,8})*$/.test(t)) return t;
8650
8548
  }
8651
8549
  function Ip(e) {
8652
8550
  let t = e.trim().toLowerCase();
@@ -8685,11 +8583,8 @@ function zp(e, t, n) {
8685
8583
  } else s.innerHTML = t;
8686
8584
  r.appendChild(i), r.appendChild(s);
8687
8585
  function l(e) {
8688
- if (e.key === "Escape") {
8689
- e.preventDefault(), o.click();
8690
- return;
8691
- }
8692
- if (e.key === "Tab") {
8586
+ if (e.key === "Escape") e.preventDefault(), o.click();
8587
+ else if (e.key === "Tab") {
8693
8588
  let t = Array.from(r.querySelectorAll("a[href], button:not([disabled]), input:not([disabled]), [tabindex]:not([tabindex=\"-1\"])")).filter((e) => e.offsetParent !== null);
8694
8589
  if (t.length === 0) {
8695
8590
  e.preventDefault();
@@ -9056,11 +8951,7 @@ function vm(e, t) {
9056
8951
  }
9057
8952
  z(s, e, !0), g(e.state()), z(l, null), z(u, [], !0);
9058
8953
  let a = e.subscribe(({ command: n, current: r }) => {
9059
- if (g(r), r.disposed) {
9060
- G(s) === e && z(s, null);
9061
- return;
9062
- }
9063
- n.action === "setResponse" && t.onResponseChange?.(n.responseIdentifier, r.responses[n.responseIdentifier]);
8954
+ g(r), r.disposed ? G(s) === e && z(s, null) : n.action === "setResponse" && t.onResponseChange?.(n.responseIdentifier, r.responses[n.responseIdentifier]);
9064
8955
  });
9065
8956
  return () => {
9066
8957
  a(), i && e?.dispose(), G(s) === e && (z(s, null), z(c, null));
@@ -9383,4 +9274,4 @@ function $() {
9383
9274
  //#endregion
9384
9275
  export { Lm as t };
9385
9276
 
9386
- //# sourceMappingURL=element-class-D-kJi_w9.js.map
9277
+ //# sourceMappingURL=element-class-IVUE-E9w.js.map