triiiceratops 0.4.0 → 0.5.0

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.
@@ -25,7 +25,7 @@ function ks() {
25
25
  });
26
26
  return { promise: e, resolve: a, reject: i };
27
27
  }
28
- const ot = 2, Pa = 4, En = 8, Us = 1 << 24, li = 16, ui = 32, wi = 64, xn = 128, jt = 512, ut = 1024, Et = 2048, hi = 4096, Dt = 8192, oi = 16384, bn = 32768, _i = 65536, Za = 1 << 17, Gs = 1 << 18, zi = 1 << 19, js = 1 << 20, ai = 1 << 25, Fi = 32768, sa = 1 << 21, Ca = 1 << 22, vi = 1 << 23, $t = Symbol("$state"), Ra = Symbol("legacy props"), wl = Symbol(""), Xi = new class extends Error {
28
+ const ot = 2, Pa = 4, En = 8, Us = 1 << 24, li = 16, ui = 32, wi = 64, xn = 128, Zt = 512, ut = 1024, Et = 2048, hi = 4096, Dt = 8192, oi = 16384, bn = 32768, _i = 65536, Za = 1 << 17, Gs = 1 << 18, zi = 1 << 19, js = 1 << 20, ai = 1 << 25, Fi = 32768, sa = 1 << 21, Ca = 1 << 22, vi = 1 << 23, ei = Symbol("$state"), Ra = Symbol("legacy props"), wl = Symbol(""), Xi = new class extends Error {
29
29
  constructor() {
30
30
  super(...arguments);
31
31
  Qe(this, "name", "StaleReactionError");
@@ -88,11 +88,11 @@ function ht(a) {
88
88
  return Pe = a;
89
89
  }
90
90
  function yi() {
91
- return ht(/* @__PURE__ */ Zt(Pe));
91
+ return ht(/* @__PURE__ */ Wt(Pe));
92
92
  }
93
93
  function Z(a) {
94
94
  if (Se) {
95
- if (/* @__PURE__ */ Zt(Pe) !== null)
95
+ if (/* @__PURE__ */ Wt(Pe) !== null)
96
96
  throw Yr(), Hi;
97
97
  Pe = a;
98
98
  }
@@ -101,7 +101,7 @@ function gt(a = 1) {
101
101
  if (Se) {
102
102
  for (var i = a, e = Pe; i--; )
103
103
  e = /** @type {TemplateNode} */
104
- /* @__PURE__ */ Zt(e);
104
+ /* @__PURE__ */ Wt(e);
105
105
  Pe = e;
106
106
  }
107
107
  }
@@ -119,7 +119,7 @@ function cn(a = !0) {
119
119
  }
120
120
  var r = (
121
121
  /** @type {TemplateNode} */
122
- /* @__PURE__ */ Zt(e)
122
+ /* @__PURE__ */ Wt(e)
123
123
  );
124
124
  a && e.remove(), e = r;
125
125
  }
@@ -500,7 +500,7 @@ ua = function(i) {
500
500
  }
501
501
  this.committed = !0, Jr.delete(this);
502
502
  };
503
- let Kt = mn;
503
+ let Qt = mn;
504
504
  function Js(a) {
505
505
  var i = dr;
506
506
  dr = !0;
@@ -522,7 +522,7 @@ function $s() {
522
522
  try {
523
523
  var e = 0;
524
524
  for (dn(!0); Bt.length > 0; ) {
525
- var t = Kt.ensure();
525
+ var t = Qt.ensure();
526
526
  if (e++ > 1e3) {
527
527
  var r, n;
528
528
  kl();
@@ -629,7 +629,7 @@ var Gl = _i | zi | xn;
629
629
  function jl(a, i, e) {
630
630
  new Zl(a, i, e);
631
631
  }
632
- var Ht, At, Tr, Wt, Ci, qt, Ft, _t, Xt, ri, di, Ri, pi, Ai, gi, _n, $e, io, ro, ha, an, sn, ca;
632
+ var Ht, At, Tr, qt, Ci, Xt, Ft, _t, Yt, ri, di, Ri, pi, Ai, gi, _n, $e, io, ro, ha, an, sn, ca;
633
633
  class Zl {
634
634
  /**
635
635
  * @param {TemplateNode} node
@@ -646,17 +646,17 @@ class Zl {
646
646
  /** @type {TemplateNode | null} */
647
647
  fe(this, Tr, Se ? Pe : null);
648
648
  /** @type {BoundaryProps} */
649
- fe(this, Wt);
649
+ fe(this, qt);
650
650
  /** @type {((anchor: Node) => void)} */
651
651
  fe(this, Ci);
652
652
  /** @type {Effect} */
653
- fe(this, qt);
653
+ fe(this, Xt);
654
654
  /** @type {Effect | null} */
655
655
  fe(this, Ft, null);
656
656
  /** @type {Effect | null} */
657
657
  fe(this, _t, null);
658
658
  /** @type {Effect | null} */
659
- fe(this, Xt, null);
659
+ fe(this, Yt, null);
660
660
  /** @type {DocumentFragment | null} */
661
661
  fe(this, ri, null);
662
662
  /** @type {TemplateNode | null} */
@@ -675,8 +675,8 @@ class Zl {
675
675
  fe(this, _n, Ul(() => (ye(this, gi, Bi(D(this, Ri))), () => {
676
676
  ye(this, gi, null);
677
677
  })));
678
- ye(this, At, i), ye(this, Wt, e), ye(this, Ci, t), this.parent = /** @type {Effect} */
679
- Le.b, ye(this, Ht, !!D(this, Wt).pending), ye(this, qt, ar(() => {
678
+ ye(this, At, i), ye(this, qt, e), ye(this, Ci, t), this.parent = /** @type {Effect} */
679
+ Le.b, ye(this, Ht, !!D(this, qt).pending), ye(this, Xt, ar(() => {
680
680
  if (Le.b = this, Se) {
681
681
  const n = D(this, Tr);
682
682
  yi(), /** @type {Comment} */
@@ -705,7 +705,7 @@ class Zl {
705
705
  return D(this, Ht) || !!this.parent && this.parent.is_pending();
706
706
  }
707
707
  has_pending_snippet() {
708
- return !!D(this, Wt).pending;
708
+ return !!D(this, qt).pending;
709
709
  }
710
710
  /**
711
711
  * Update the source that powers `$effect.pending()` inside this boundary,
@@ -724,11 +724,11 @@ class Zl {
724
724
  }
725
725
  /** @param {unknown} error */
726
726
  error(i) {
727
- var e = D(this, Wt).onerror;
728
- let t = D(this, Wt).failed;
727
+ var e = D(this, qt).onerror;
728
+ let t = D(this, qt).failed;
729
729
  if (D(this, Ai) || !e && !t)
730
730
  throw i;
731
- D(this, Ft) && (at(D(this, Ft)), ye(this, Ft, null)), D(this, _t) && (at(D(this, _t)), ye(this, _t, null)), D(this, Xt) && (at(D(this, Xt)), ye(this, Xt, null)), Se && (ht(
731
+ D(this, Ft) && (at(D(this, Ft)), ye(this, Ft, null)), D(this, _t) && (at(D(this, _t)), ye(this, _t, null)), D(this, Yt) && (at(D(this, Yt)), ye(this, Yt, null)), Se && (ht(
732
732
  /** @type {TemplateNode} */
733
733
  D(this, Tr)
734
734
  ), gt(), ht(cn()));
@@ -738,21 +738,21 @@ class Zl {
738
738
  Ml();
739
739
  return;
740
740
  }
741
- r = !0, n && Dl(), Kt.ensure(), ye(this, Ri, 0), D(this, Xt) !== null && Di(D(this, Xt), () => {
742
- ye(this, Xt, null);
741
+ r = !0, n && Dl(), Qt.ensure(), ye(this, Ri, 0), D(this, Yt) !== null && Di(D(this, Yt), () => {
742
+ ye(this, Yt, null);
743
743
  }), ye(this, Ht, this.has_pending_snippet()), ye(this, Ft, Ge(this, $e, an).call(this, () => (ye(this, Ai, !1), yt(() => D(this, Ci).call(this, D(this, At)))))), D(this, pi) > 0 ? Ge(this, $e, sn).call(this) : ye(this, Ht, !1);
744
744
  };
745
745
  var h = Me;
746
746
  try {
747
747
  wt(null), n = !0, e == null || e(i, s), n = !1;
748
748
  } catch (u) {
749
- tr(u, D(this, qt) && D(this, qt).parent);
749
+ tr(u, D(this, Xt) && D(this, Xt).parent);
750
750
  } finally {
751
751
  wt(h);
752
752
  }
753
753
  t && Ti(() => {
754
- ye(this, Xt, Ge(this, $e, an).call(this, () => {
755
- Kt.ensure(), ye(this, Ai, !0);
754
+ ye(this, Yt, Ge(this, $e, an).call(this, () => {
755
+ Qt.ensure(), ye(this, Ai, !0);
756
756
  try {
757
757
  return yt(() => {
758
758
  t(
@@ -765,7 +765,7 @@ class Zl {
765
765
  return tr(
766
766
  u,
767
767
  /** @type {Effect} */
768
- D(this, qt).parent
768
+ D(this, Xt).parent
769
769
  ), null;
770
770
  } finally {
771
771
  ye(this, Ai, !1);
@@ -774,7 +774,7 @@ class Zl {
774
774
  });
775
775
  }
776
776
  }
777
- Ht = new WeakMap(), At = new WeakMap(), Tr = new WeakMap(), Wt = new WeakMap(), Ci = new WeakMap(), qt = new WeakMap(), Ft = new WeakMap(), _t = new WeakMap(), Xt = new WeakMap(), ri = new WeakMap(), di = new WeakMap(), Ri = new WeakMap(), pi = new WeakMap(), Ai = new WeakMap(), gi = new WeakMap(), _n = new WeakMap(), $e = new WeakSet(), io = function() {
777
+ Ht = new WeakMap(), At = new WeakMap(), Tr = new WeakMap(), qt = new WeakMap(), Ci = new WeakMap(), Xt = new WeakMap(), Ft = new WeakMap(), _t = new WeakMap(), Yt = new WeakMap(), ri = new WeakMap(), di = new WeakMap(), Ri = new WeakMap(), pi = new WeakMap(), Ai = new WeakMap(), gi = new WeakMap(), _n = new WeakMap(), $e = new WeakSet(), io = function() {
778
778
  try {
779
779
  ye(this, Ft, yt(() => D(this, Ci).call(this, D(this, At))));
780
780
  } catch (i) {
@@ -782,10 +782,10 @@ Ht = new WeakMap(), At = new WeakMap(), Tr = new WeakMap(), Wt = new WeakMap(),
782
782
  }
783
783
  ye(this, Ht, !1);
784
784
  }, ro = function() {
785
- const i = D(this, Wt).pending;
786
- i && (ye(this, _t, yt(() => i(D(this, At)))), Kt.enqueue(() => {
785
+ const i = D(this, qt).pending;
786
+ i && (ye(this, _t, yt(() => i(D(this, At)))), Qt.enqueue(() => {
787
787
  var e = Ge(this, $e, ha).call(this);
788
- ye(this, Ft, Ge(this, $e, an).call(this, () => (Kt.ensure(), yt(() => D(this, Ci).call(this, e))))), D(this, pi) > 0 ? Ge(this, $e, sn).call(this) : (Di(
788
+ ye(this, Ft, Ge(this, $e, an).call(this, () => (Qt.ensure(), yt(() => D(this, Ci).call(this, e))))), D(this, pi) > 0 ? Ge(this, $e, sn).call(this) : (Di(
789
789
  /** @type {Effect} */
790
790
  D(this, _t),
791
791
  () => {
@@ -801,7 +801,7 @@ Ht = new WeakMap(), At = new WeakMap(), Tr = new WeakMap(), Wt = new WeakMap(),
801
801
  */
802
802
  an = function(i) {
803
803
  var e = Le, t = Me, r = ze;
804
- ii(D(this, qt)), wt(D(this, qt)), er(D(this, qt).ctx);
804
+ ii(D(this, Xt)), wt(D(this, Xt)), er(D(this, Xt).ctx);
805
805
  try {
806
806
  return i();
807
807
  } catch (n) {
@@ -812,7 +812,7 @@ an = function(i) {
812
812
  }, sn = function() {
813
813
  const i = (
814
814
  /** @type {(anchor: Node) => void} */
815
- D(this, Wt).pending
815
+ D(this, qt).pending
816
816
  );
817
817
  D(this, Ft) !== null && (ye(this, ri, document.createDocumentFragment()), D(this, ri).append(
818
818
  /** @type {TemplateNode} */
@@ -1009,7 +1009,7 @@ function so(a) {
1009
1009
  if (Je !== null)
1010
1010
  (vr() || Ie != null && Ie.is_fork) && Je.set(a, i);
1011
1011
  else {
1012
- var e = (a.f & jt) === 0 ? hi : ut;
1012
+ var e = (a.f & Zt) === 0 ? hi : ut;
1013
1013
  ct(a, e);
1014
1014
  }
1015
1015
  }
@@ -1042,7 +1042,7 @@ function lo(a, i = !1, e = !0) {
1042
1042
  function we(a, i, e = !1) {
1043
1043
  Me !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
1044
1044
  // to ensure we error if state is set inside an inspect effect
1045
- (!Qt || (Me.f & Za) !== 0) && nr() && (Me.f & (ot | li | Ca | Za)) !== 0 && !(pt != null && pt.includes(a)) && Il();
1045
+ (!Jt || (Me.f & Za) !== 0) && nr() && (Me.f & (ot | li | Ca | Za)) !== 0 && !(pt != null && pt.includes(a)) && Il();
1046
1046
  let t = e ? it(i) : i;
1047
1047
  return ir(a, t);
1048
1048
  }
@@ -1050,11 +1050,11 @@ function ir(a, i) {
1050
1050
  if (!a.equals(i)) {
1051
1051
  var e = a.v;
1052
1052
  Ui ? mi.set(a, i) : mi.set(a, e), a.v = i;
1053
- var t = Kt.ensure();
1053
+ var t = Qt.ensure();
1054
1054
  t.capture(a, e), (a.f & ot) !== 0 && ((a.f & Et) !== 0 && Oa(
1055
1055
  /** @type {Derived} */
1056
1056
  a
1057
- ), ct(a, (a.f & jt) !== 0 ? ut : hi)), a.wv = Io(), uo(a, Et), nr() && Le !== null && (Le.f & ut) !== 0 && (Le.f & (ui | wi)) === 0 && (Lt === null ? su([a]) : Lt.push(a)), !t.is_fork && fa.size > 0 && !oo && Yl();
1057
+ ), ct(a, (a.f & Zt) !== 0 ? ut : hi)), a.wv = Io(), uo(a, Et), nr() && Le !== null && (Le.f & ut) !== 0 && (Le.f & (ui | wi)) === 0 && (Lt === null ? su([a]) : Lt.push(a)), !t.is_fork && fa.size > 0 && !oo && Yl();
1058
1058
  }
1059
1059
  return i;
1060
1060
  }
@@ -1090,7 +1090,7 @@ function uo(a, i) {
1090
1090
  /** @type {Derived} */
1091
1091
  s
1092
1092
  );
1093
- Je == null || Je.delete(l), (h & Fi) === 0 && (h & jt && (s.f |= Fi), uo(l, hi));
1093
+ Je == null || Je.delete(l), (h & Fi) === 0 && (h & Zt && (s.f |= Fi), uo(l, hi));
1094
1094
  } else u && ((h & li) !== 0 && kt !== null && kt.add(
1095
1095
  /** @type {Effect} */
1096
1096
  s
@@ -1102,7 +1102,7 @@ function uo(a, i) {
1102
1102
  }
1103
1103
  }
1104
1104
  function it(a) {
1105
- if (typeof a != "object" || a === null || $t in a)
1105
+ if (typeof a != "object" || a === null || ei in a)
1106
1106
  return a;
1107
1107
  const i = Sa(a);
1108
1108
  if (i !== ml && i !== _l)
@@ -1143,7 +1143,7 @@ function it(a) {
1143
1143
  },
1144
1144
  get(h, u, l) {
1145
1145
  var p;
1146
- if (u === $t)
1146
+ if (u === ei)
1147
1147
  return a;
1148
1148
  var o = e.get(u), c = u in h;
1149
1149
  if (o === void 0 && (!c || (p = si(h, u)) != null && p.writable) && (o = s(() => {
@@ -1174,7 +1174,7 @@ function it(a) {
1174
1174
  },
1175
1175
  has(h, u) {
1176
1176
  var f;
1177
- if (u === $t)
1177
+ if (u === ei)
1178
1178
  return !0;
1179
1179
  var l = e.get(u), o = l !== void 0 && l.v !== st || Reflect.has(h, u);
1180
1180
  if (l !== void 0 || Le !== null && (!o || (f = si(h, u)) != null && f.writable)) {
@@ -1235,8 +1235,8 @@ function it(a) {
1235
1235
  }
1236
1236
  function qa(a) {
1237
1237
  try {
1238
- if (a !== null && typeof a == "object" && $t in a)
1239
- return a[$t];
1238
+ if (a !== null && typeof a == "object" && ei in a)
1239
+ return a[ei];
1240
1240
  } catch {
1241
1241
  }
1242
1242
  return a;
@@ -1263,7 +1263,7 @@ function lt(a) {
1263
1263
  );
1264
1264
  }
1265
1265
  // @__NO_SIDE_EFFECTS__
1266
- function Zt(a) {
1266
+ function Wt(a) {
1267
1267
  return (
1268
1268
  /** @type {TemplateNode | null} */
1269
1269
  fo.call(a)
@@ -1284,7 +1284,7 @@ function q(a, i) {
1284
1284
  function Q(a, i = !1) {
1285
1285
  if (!Se) {
1286
1286
  var e = /* @__PURE__ */ lt(a);
1287
- return e instanceof Comment && e.data === "" ? /* @__PURE__ */ Zt(e) : e;
1287
+ return e instanceof Comment && e.data === "" ? /* @__PURE__ */ Wt(e) : e;
1288
1288
  }
1289
1289
  if (i && (Pe == null ? void 0 : Pe.nodeType) !== Sn) {
1290
1290
  var t = Tt();
@@ -1296,7 +1296,7 @@ function he(a, i = 1, e = !1) {
1296
1296
  let t = Se ? Pe : a;
1297
1297
  for (var r; i--; )
1298
1298
  r = t, t = /** @type {TemplateNode} */
1299
- /* @__PURE__ */ Zt(t);
1299
+ /* @__PURE__ */ Wt(t);
1300
1300
  if (!Se)
1301
1301
  return t;
1302
1302
  if (e && (t == null ? void 0 : t.nodeType) !== Sn) {
@@ -1369,7 +1369,7 @@ function Vt(a, i, e) {
1369
1369
  ctx: ze,
1370
1370
  deps: null,
1371
1371
  nodes: null,
1372
- f: a | Et | jt,
1372
+ f: a | Et | Zt,
1373
1373
  first: null,
1374
1374
  fn: i,
1375
1375
  last: null,
@@ -1400,13 +1400,13 @@ function Vt(a, i, e) {
1400
1400
  return r;
1401
1401
  }
1402
1402
  function vr() {
1403
- return Me !== null && !Qt;
1403
+ return Me !== null && !Jt;
1404
1404
  }
1405
1405
  function _o(a) {
1406
1406
  const i = Vt(En, null, !1);
1407
1407
  return ct(i, ut), i.teardown = a, i;
1408
1408
  }
1409
- function ti(a) {
1409
+ function jt(a) {
1410
1410
  mo();
1411
1411
  var i = (
1412
1412
  /** @type {Effect} */
@@ -1428,14 +1428,14 @@ function tu(a) {
1428
1428
  return mo(), Vt(En | js, a, !0);
1429
1429
  }
1430
1430
  function iu(a) {
1431
- Kt.ensure();
1431
+ Qt.ensure();
1432
1432
  const i = Vt(wi | zi, a, !0);
1433
1433
  return () => {
1434
1434
  at(i);
1435
1435
  };
1436
1436
  }
1437
1437
  function ru(a) {
1438
- Kt.ensure();
1438
+ Qt.ensure();
1439
1439
  const i = Vt(wi | zi, a, !0);
1440
1440
  return (e = {}) => new Promise((t) => {
1441
1441
  e.outro ? Di(i, () => {
@@ -1514,7 +1514,7 @@ function at(a, i = !0) {
1514
1514
  }
1515
1515
  function xo(a, i) {
1516
1516
  for (; a !== null; ) {
1517
- var e = a === i ? null : /* @__PURE__ */ Zt(a);
1517
+ var e = a === i ? null : /* @__PURE__ */ Wt(a);
1518
1518
  a.remove(), a = e;
1519
1519
  }
1520
1520
  }
@@ -1570,7 +1570,7 @@ function Po(a, i) {
1570
1570
  function Co(a, i) {
1571
1571
  if (a.nodes)
1572
1572
  for (var e = a.nodes.start, t = a.nodes.end; e !== null; ) {
1573
- var r = e === t ? null : /* @__PURE__ */ Zt(e);
1573
+ var r = e === t ? null : /* @__PURE__ */ Wt(e);
1574
1574
  i.append(e), e = r;
1575
1575
  }
1576
1576
  }
@@ -1582,7 +1582,7 @@ let Ui = !1;
1582
1582
  function Ka(a) {
1583
1583
  Ui = a;
1584
1584
  }
1585
- let Me = null, Qt = !1;
1585
+ let Me = null, Jt = !1;
1586
1586
  function wt(a) {
1587
1587
  Me = a;
1588
1588
  }
@@ -1623,7 +1623,7 @@ function Qr(a) {
1623
1623
  ), n.wv > a.wv)
1624
1624
  return !0;
1625
1625
  }
1626
- (i & jt) !== 0 && // During time traveling we don't want to reset the status so that
1626
+ (i & Zt) !== 0 && // During time traveling we don't want to reset the status so that
1627
1627
  // traversal of the graph in the other batches still happens
1628
1628
  Je === null && ct(a, ut);
1629
1629
  }
@@ -1647,9 +1647,9 @@ function Do(a, i, e = !0) {
1647
1647
  }
1648
1648
  function Oo(a) {
1649
1649
  var m;
1650
- var i = dt, e = Rt, t = Lt, r = Me, n = pt, s = ze, h = Qt, u = Mi, l = a.f;
1650
+ var i = dt, e = Rt, t = Lt, r = Me, n = pt, s = ze, h = Jt, u = Mi, l = a.f;
1651
1651
  dt = /** @type {null | Value[]} */
1652
- null, Rt = 0, Lt = null, Me = (l & (ui | wi)) === 0 ? a : null, pt = null, er(a.ctx), Qt = !1, Mi = ++mr, a.ac !== null && (Cn(() => {
1652
+ null, Rt = 0, Lt = null, Me = (l & (ui | wi)) === 0 ? a : null, pt = null, er(a.ctx), Jt = !1, Mi = ++mr, a.ac !== null && (Cn(() => {
1653
1653
  a.ac.abort(Xi);
1654
1654
  }), a.ac = null);
1655
1655
  try {
@@ -1665,11 +1665,11 @@ function Oo(a) {
1665
1665
  f[Rt + p] = dt[p];
1666
1666
  else
1667
1667
  a.deps = f = dt;
1668
- if (vr() && (a.f & jt) !== 0)
1668
+ if (vr() && (a.f & Zt) !== 0)
1669
1669
  for (p = Rt; p < f.length; p++)
1670
1670
  ((m = f[p]).reactions ?? (m.reactions = [])).push(a);
1671
1671
  } else f !== null && Rt < f.length && (pn(a, Rt), f.length = Rt);
1672
- if (nr() && Lt !== null && !Qt && f !== null && (a.f & (ot | hi | Et)) === 0)
1672
+ if (nr() && Lt !== null && !Jt && f !== null && (a.f & (ot | hi | Et)) === 0)
1673
1673
  for (p = 0; p < /** @type {Source[]} */
1674
1674
  Lt.length; p++)
1675
1675
  Do(
@@ -1682,7 +1682,7 @@ function Oo(a) {
1682
1682
  } catch (d) {
1683
1683
  return Ys(d);
1684
1684
  } finally {
1685
- a.f ^= sa, dt = i, Rt = e, Lt = t, Me = r, pt = n, er(s), Qt = h, Mi = u;
1685
+ a.f ^= sa, dt = i, Rt = e, Lt = t, Me = r, pt = n, er(s), Jt = h, Mi = u;
1686
1686
  }
1687
1687
  }
1688
1688
  function ou(a, i) {
@@ -1697,7 +1697,7 @@ function ou(a, i) {
1697
1697
  e === null && (i.f & ot) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
1698
1698
  // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
1699
1699
  // allows us to skip the expensive work of disconnecting and immediately reconnecting it
1700
- (dt === null || !dt.includes(i)) && (ct(i, hi), (i.f & jt) !== 0 && (i.f ^= jt, i.f &= ~Fi), ao(
1700
+ (dt === null || !dt.includes(i)) && (ct(i, hi), (i.f & Zt) !== 0 && (i.f ^= Zt, i.f &= ~Fi), ao(
1701
1701
  /** @type {Derived} **/
1702
1702
  i
1703
1703
  ), pn(
@@ -1734,7 +1734,7 @@ async function lu() {
1734
1734
  }
1735
1735
  function T(a) {
1736
1736
  var i = a.f, e = (i & ot) !== 0;
1737
- if (Me !== null && !Qt) {
1737
+ if (Me !== null && !Jt) {
1738
1738
  var t = Le !== null && (Le.f & oi) !== 0;
1739
1739
  if (!t && !(pt != null && pt.includes(a))) {
1740
1740
  var r = Me.deps;
@@ -1758,7 +1758,7 @@ function T(a) {
1758
1758
  return ((s.f & ut) === 0 && s.reactions !== null || Lo(s)) && (h = Oa(s)), mi.set(s, h), h;
1759
1759
  }
1760
1760
  } else e && (!(Je != null && Je.has(a)) || Ie != null && Ie.is_fork && !vr()) && (s = /** @type {Derived} */
1761
- a, Qr(s) && so(s), Oi && vr() && (s.f & jt) === 0 && Mo(s));
1761
+ a, Qr(s) && so(s), Oi && vr() && (s.f & Zt) === 0 && Mo(s));
1762
1762
  if (Je != null && Je.has(a))
1763
1763
  return Je.get(a);
1764
1764
  if ((a.f & vi) !== 0)
@@ -1767,9 +1767,9 @@ function T(a) {
1767
1767
  }
1768
1768
  function Mo(a) {
1769
1769
  if (a.deps !== null) {
1770
- a.f ^= jt;
1770
+ a.f ^= Zt;
1771
1771
  for (const i of a.deps)
1772
- (i.reactions ?? (i.reactions = [])).push(a), (i.f & ot) !== 0 && (i.f & jt) === 0 && Mo(
1772
+ (i.reactions ?? (i.reactions = [])).push(a), (i.f & ot) !== 0 && (i.f & Zt) === 0 && Mo(
1773
1773
  /** @type {Derived} */
1774
1774
  i
1775
1775
  );
@@ -1787,11 +1787,11 @@ function Lo(a) {
1787
1787
  return !1;
1788
1788
  }
1789
1789
  function Gi(a) {
1790
- var i = Qt;
1790
+ var i = Jt;
1791
1791
  try {
1792
- return Qt = !0, a();
1792
+ return Jt = !0, a();
1793
1793
  } finally {
1794
- Qt = i;
1794
+ Jt = i;
1795
1795
  }
1796
1796
  }
1797
1797
  const uu = -7169;
@@ -1800,12 +1800,12 @@ function ct(a, i) {
1800
1800
  }
1801
1801
  function hu(a) {
1802
1802
  if (!(typeof a != "object" || !a || a instanceof EventTarget)) {
1803
- if ($t in a)
1803
+ if (ei in a)
1804
1804
  pa(a);
1805
1805
  else if (!Array.isArray(a))
1806
1806
  for (let i in a) {
1807
1807
  const e = a[i];
1808
- typeof e == "object" && e && $t in e && pa(e);
1808
+ typeof e == "object" && e && ei in e && pa(e);
1809
1809
  }
1810
1810
  }
1811
1811
  }
@@ -2088,7 +2088,7 @@ function wu(a, i) {
2088
2088
  try {
2089
2089
  for (var n = /* @__PURE__ */ lt(e); n && (n.nodeType !== Vi || /** @type {Comment} */
2090
2090
  n.data !== zs); )
2091
- n = /* @__PURE__ */ Zt(n);
2091
+ n = /* @__PURE__ */ Wt(n);
2092
2092
  if (!n)
2093
2093
  throw Hi;
2094
2094
  Gt(!0), ht(
@@ -2170,7 +2170,7 @@ function Tu(a, i) {
2170
2170
  const e = va.get(a);
2171
2171
  return e ? (va.delete(a), e(i)) : Promise.resolve();
2172
2172
  }
2173
- var Ut, Yt, It, Ii, Er, xr, yn;
2173
+ var Ut, Kt, It, Ii, Er, xr, yn;
2174
2174
  class An {
2175
2175
  /**
2176
2176
  * @param {TemplateNode} anchor
@@ -2195,7 +2195,7 @@ class An {
2195
2195
  * Can result in the entries `true->Effect` and `false->Effect`
2196
2196
  * @type {Map<Key, Effect>}
2197
2197
  */
2198
- fe(this, Yt, /* @__PURE__ */ new Map());
2198
+ fe(this, Kt, /* @__PURE__ */ new Map());
2199
2199
  /**
2200
2200
  * Similar to #onscreen with respect to the keys, but contains branches that are not yet
2201
2201
  * in the DOM, because their insertion is deferred.
@@ -2221,12 +2221,12 @@ class An {
2221
2221
  var e = (
2222
2222
  /** @type {Key} */
2223
2223
  D(this, Ut).get(i)
2224
- ), t = D(this, Yt).get(e);
2224
+ ), t = D(this, Kt).get(e);
2225
2225
  if (t)
2226
2226
  La(t), D(this, Ii).delete(e);
2227
2227
  else {
2228
2228
  var r = D(this, It).get(e);
2229
- r && (D(this, Yt).set(e, r.effect), D(this, It).delete(e), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), t = r.effect);
2229
+ r && (D(this, Kt).set(e, r.effect), D(this, It).delete(e), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), t = r.effect);
2230
2230
  }
2231
2231
  for (const [n, s] of D(this, Ut)) {
2232
2232
  if (D(this, Ut).delete(n), n === i)
@@ -2234,7 +2234,7 @@ class An {
2234
2234
  const h = D(this, It).get(s);
2235
2235
  h && (at(h.effect), D(this, It).delete(s));
2236
2236
  }
2237
- for (const [n, s] of D(this, Yt)) {
2237
+ for (const [n, s] of D(this, Kt)) {
2238
2238
  if (n === e || D(this, Ii).has(n)) continue;
2239
2239
  const h = () => {
2240
2240
  if (Array.from(D(this, Ut).values()).includes(n)) {
@@ -2242,7 +2242,7 @@ class An {
2242
2242
  Co(s, l), l.append(Tt()), D(this, It).set(n, { effect: s, fragment: l });
2243
2243
  } else
2244
2244
  at(s);
2245
- D(this, Ii).delete(n), D(this, Yt).delete(n);
2245
+ D(this, Ii).delete(n), D(this, Kt).delete(n);
2246
2246
  };
2247
2247
  D(this, Er) || !t ? (D(this, Ii).add(n), Di(s, h, !1)) : h();
2248
2248
  }
@@ -2269,7 +2269,7 @@ class An {
2269
2269
  /** @type {Batch} */
2270
2270
  Ie
2271
2271
  ), r = go();
2272
- if (e && !D(this, Yt).has(i) && !D(this, It).has(i))
2272
+ if (e && !D(this, Kt).has(i) && !D(this, It).has(i))
2273
2273
  if (r) {
2274
2274
  var n = document.createDocumentFragment(), s = Tt();
2275
2275
  n.append(s), D(this, It).set(i, {
@@ -2277,12 +2277,12 @@ class An {
2277
2277
  fragment: n
2278
2278
  });
2279
2279
  } else
2280
- D(this, Yt).set(
2280
+ D(this, Kt).set(
2281
2281
  i,
2282
2282
  yt(() => e(this.anchor))
2283
2283
  );
2284
2284
  if (D(this, Ut).set(t, i), r) {
2285
- for (const [h, u] of D(this, Yt))
2285
+ for (const [h, u] of D(this, Kt))
2286
2286
  h === i ? t.skipped_effects.delete(u) : t.skipped_effects.add(u);
2287
2287
  for (const [h, u] of D(this, It))
2288
2288
  h === i ? t.skipped_effects.delete(u.effect) : t.skipped_effects.add(u.effect);
@@ -2291,7 +2291,7 @@ class An {
2291
2291
  Se && (this.anchor = Pe), D(this, xr).call(this);
2292
2292
  }
2293
2293
  }
2294
- Ut = new WeakMap(), Yt = new WeakMap(), It = new WeakMap(), Ii = new WeakMap(), Er = new WeakMap(), xr = new WeakMap(), yn = new WeakMap();
2294
+ Ut = new WeakMap(), Kt = new WeakMap(), It = new WeakMap(), Ii = new WeakMap(), Er = new WeakMap(), xr = new WeakMap(), yn = new WeakMap();
2295
2295
  function xt(a, i, ...e) {
2296
2296
  var t = new An(a);
2297
2297
  ar(() => {
@@ -2300,7 +2300,7 @@ function xt(a, i, ...e) {
2300
2300
  }, _i);
2301
2301
  }
2302
2302
  function Bo(a) {
2303
- ze === null && Aa(), rr && ze.l !== null ? xu(ze).m.push(a) : ti(() => {
2303
+ ze === null && Aa(), rr && ze.l !== null ? xu(ze).m.push(a) : jt(() => {
2304
2304
  const i = Gi(a);
2305
2305
  if (typeof i == "function") return (
2306
2306
  /** @type {() => void} */
@@ -2395,7 +2395,7 @@ function ma(a, i = !0) {
2395
2395
  at(a[e], i);
2396
2396
  }
2397
2397
  var $a;
2398
- function Jt(a, i, e, t, r, n = null) {
2398
+ function $t(a, i, e, t, r, n = null) {
2399
2399
  var s = a, h = /* @__PURE__ */ new Map(), u = (i & Ns) !== 0;
2400
2400
  if (u) {
2401
2401
  var l = (
@@ -2545,7 +2545,7 @@ function cr(a, i, e) {
2545
2545
  ) : e; t !== null; ) {
2546
2546
  var s = (
2547
2547
  /** @type {TemplateNode} */
2548
- /* @__PURE__ */ Zt(t)
2548
+ /* @__PURE__ */ Wt(t)
2549
2549
  );
2550
2550
  if (n.before(t), t === r)
2551
2551
  return;
@@ -2575,7 +2575,7 @@ function Li(a, i, e = !1, t = !1, r = !1) {
2575
2575
  Pe.data;
2576
2576
  for (var u = yi(), l = u; u !== null && (u.nodeType !== Vi || /** @type {Comment} */
2577
2577
  u.data !== ""); )
2578
- l = u, u = /* @__PURE__ */ Zt(u);
2578
+ l = u, u = /* @__PURE__ */ Wt(u);
2579
2579
  if (u === null)
2580
2580
  throw Yr(), Hi;
2581
2581
  Ot(Pe, l), n = ht(u);
@@ -2994,7 +2994,7 @@ function Nn(a) {
2994
2994
  return a === "" ? null : +a;
2995
2995
  }
2996
2996
  function ns(a, i) {
2997
- return a === i || (a == null ? void 0 : a[$t]) === i;
2997
+ return a === i || (a == null ? void 0 : a[ei]) === i;
2998
2998
  }
2999
2999
  function jo(a = {}, i, e, t) {
3000
3000
  return Ma(() => {
@@ -3033,13 +3033,13 @@ function Fu(a = !1) {
3033
3033
  }
3034
3034
  e.b.length && tu(() => {
3035
3035
  as(i, t), aa(e.b);
3036
- }), ti(() => {
3036
+ }), jt(() => {
3037
3037
  const r = Gi(() => e.m.map(yl));
3038
3038
  return () => {
3039
3039
  for (const n of r)
3040
3040
  typeof n == "function" && n();
3041
3041
  };
3042
- }), e.a.length && ti(() => {
3042
+ }), e.a.length && jt(() => {
3043
3043
  as(i, t), aa(e.a);
3044
3044
  });
3045
3045
  }
@@ -3117,7 +3117,7 @@ const zu = {
3117
3117
  }
3118
3118
  },
3119
3119
  has(a, i) {
3120
- if (i === $t || i === Ra) return !1;
3120
+ if (i === ei || i === Ra) return !1;
3121
3121
  for (let e of a.props)
3122
3122
  if (sr(e) && (e = e()), e != null && i in e) return !0;
3123
3123
  return !1;
@@ -3150,7 +3150,7 @@ function Zo(a, i, e, t) {
3150
3150
  t
3151
3151
  )), h), o;
3152
3152
  if (n) {
3153
- var c = $t in a || Ra in a;
3153
+ var c = ei in a || Ra in a;
3154
3154
  o = ((C = si(a, i)) == null ? void 0 : C.set) ?? (c && i in a ? (b) => a[i] = b : void 0);
3155
3155
  }
3156
3156
  var f, p = !1;
@@ -4418,18 +4418,18 @@ var dh = /* @__PURE__ */ (function() {
4418
4418
  var e = this.getProperty("viewingHint");
4419
4419
  return Array.isArray(e) && (e = e[0]), e || null;
4420
4420
  }, i.prototype.getDefaultTree = function() {
4421
- return a.prototype.getDefaultTree.call(this), this.defaultTree.data.type = Ce.normaliseType(ei.COLLECTION), this._parseManifests(this), this._parseCollections(this), Ce.generateTreeNodeIds(this.defaultTree), this.defaultTree;
4421
+ return a.prototype.getDefaultTree.call(this), this.defaultTree.data.type = Ce.normaliseType(ti.COLLECTION), this._parseManifests(this), this._parseCollections(this), Ce.generateTreeNodeIds(this.defaultTree), this.defaultTree;
4422
4422
  }, i.prototype._parseManifests = function(e) {
4423
4423
  if (e.getManifests() && e.getManifests().length)
4424
4424
  for (var t = 0; t < e.getManifests().length; t++) {
4425
4425
  var r = e.getManifests()[t], n = r.getDefaultTree();
4426
- n.label = r.parentLabel || r.getLabel().getValue(this.options.locale) || "manifest " + (t + 1), n.navDate = r.getNavDate(), n.data.id = r.id, n.data.type = Ce.normaliseType(ei.MANIFEST), e.defaultTree.addNode(n);
4426
+ n.label = r.parentLabel || r.getLabel().getValue(this.options.locale) || "manifest " + (t + 1), n.navDate = r.getNavDate(), n.data.id = r.id, n.data.type = Ce.normaliseType(ti.MANIFEST), e.defaultTree.addNode(n);
4427
4427
  }
4428
4428
  }, i.prototype._parseCollections = function(e) {
4429
4429
  if (e.getCollections() && e.getCollections().length)
4430
4430
  for (var t = 0; t < e.getCollections().length; t++) {
4431
4431
  var r = e.getCollections()[t], n = r.getDefaultTree();
4432
- n.label = r.parentLabel || r.getLabel().getValue(this.options.locale) || "collection " + (t + 1), n.navDate = r.getNavDate(), n.data.id = r.id, n.data.type = Ce.normaliseType(ei.COLLECTION), e.defaultTree.addNode(n);
4432
+ n.label = r.parentLabel || r.getLabel().getValue(this.options.locale) || "collection " + (t + 1), n.navDate = r.getNavDate(), n.data.id = r.id, n.data.type = Ce.normaliseType(ti.COLLECTION), e.defaultTree.addNode(n);
4433
4433
  }
4434
4434
  }, i;
4435
4435
  })(Xo)
@@ -5134,7 +5134,7 @@ var ia = function(a, i, e, t) {
5134
5134
  var e = this.getProperty("behavior");
5135
5135
  return Array.isArray(e) && (e = e[0]), e || null;
5136
5136
  }, i.prototype.getDefaultTree = function() {
5137
- if (a.prototype.getDefaultTree.call(this), this.defaultTree.data.type = Ce.normaliseType(ei.MANIFEST), !this.isLoaded)
5137
+ if (a.prototype.getDefaultTree.call(this), this.defaultTree.data.type = Ce.normaliseType(ti.MANIFEST), !this.isLoaded)
5138
5138
  return this.defaultTree;
5139
5139
  var e = this.getTopRanges();
5140
5140
  return e.length && e[0].getTree(this.defaultTree), Ce.generateTreeNodeIds(this.defaultTree), this.defaultTree;
@@ -5338,7 +5338,7 @@ var bh = /* @__PURE__ */ (function() {
5338
5338
  var t = this.getDuration();
5339
5339
  return !!(t && e >= t.start && e <= t.end);
5340
5340
  }, i.prototype._parseTreeNode = function(e, t) {
5341
- e.label = t.getLabel().getValue(this.options.locale), e.data = t, e.data.type = Ce.normaliseType(ei.RANGE), t.treeNode = e;
5341
+ e.label = t.getLabel().getValue(this.options.locale), e.data = t, e.data.type = Ce.normaliseType(ti.RANGE), t.treeNode = e;
5342
5342
  var r = t.getRanges();
5343
5343
  if (r && r.length)
5344
5344
  for (var n = 0; n < r.length; n++) {
@@ -5722,17 +5722,17 @@ var Dh = (
5722
5722
  return a.prototype.addNode = function(i) {
5723
5723
  this.nodes.push(i), i.parentNode = this;
5724
5724
  }, a.prototype.isCollection = function() {
5725
- return this.data.type === Ce.normaliseType(ei.COLLECTION);
5725
+ return this.data.type === Ce.normaliseType(ti.COLLECTION);
5726
5726
  }, a.prototype.isManifest = function() {
5727
- return this.data.type === Ce.normaliseType(ei.MANIFEST);
5727
+ return this.data.type === Ce.normaliseType(ti.MANIFEST);
5728
5728
  }, a.prototype.isRange = function() {
5729
- return this.data.type === Ce.normaliseType(ei.RANGE);
5729
+ return this.data.type === Ce.normaliseType(ti.RANGE);
5730
5730
  }, a;
5731
5731
  })()
5732
- ), ei;
5732
+ ), ti;
5733
5733
  (function(a) {
5734
5734
  a.COLLECTION = "collection", a.MANIFEST = "manifest", a.RANGE = "range";
5735
- })(ei || (ei = {}));
5735
+ })(ti || (ti = {}));
5736
5736
  var Lh = function(a, i) {
5737
5737
  return Ce.parseManifest(a, i);
5738
5738
  }, br;
@@ -5828,7 +5828,7 @@ br = new WeakMap();
5828
5828
  const Yi = new Hh();
5829
5829
  var Sr, Pr, Cr, Rr, Ar, Ir, Dr, Or, Mr, Lr, Hr, Fr, Nr, Br, zr, Vr, kr, Ur, Gr, jr, Zr, Wr, qr, Xr;
5830
5830
  class Fh {
5831
- constructor(i = null, e = []) {
5831
+ constructor(i = null, e = null, t = []) {
5832
5832
  fe(this, Sr, /* @__PURE__ */ be(null));
5833
5833
  fe(this, Pr, /* @__PURE__ */ be(null));
5834
5834
  fe(this, Cr, /* @__PURE__ */ be(!1));
@@ -5860,9 +5860,9 @@ class Fh {
5860
5860
  fe(this, qr, /* @__PURE__ */ be(it([])));
5861
5861
  fe(this, Xr, /* @__PURE__ */ be(null));
5862
5862
  Qe(this, "pluginEventHandlers", /* @__PURE__ */ new Map());
5863
- this.manifestId = i || null, this.manifestId && Yi.fetchManifest(this.manifestId);
5864
- for (const t of e)
5865
- this.registerPlugin(t);
5863
+ this.manifestId = i || null, this.canvasId = e || null, this.manifestId && Yi.fetchManifest(this.manifestId);
5864
+ for (const r of t)
5865
+ this.registerPlugin(r);
5866
5866
  }
5867
5867
  get manifestId() {
5868
5868
  return T(D(this, Sr));
@@ -18915,7 +18915,7 @@ function $h(a, i) {
18915
18915
  var p;
18916
18916
  (p = T(r)) == null || p.destroy(), e().osdViewer = null;
18917
18917
  };
18918
- }), ti(() => {
18918
+ }), jt(() => {
18919
18919
  if (!T(r)) return;
18920
18920
  const p = () => {
18921
18921
  Kl(n);
@@ -18923,13 +18923,13 @@ function $h(a, i) {
18923
18923
  return T(r).addHandler("open", p), T(r).addHandler("animation", p), T(r).addHandler("resize", p), T(r).addHandler("rotate", p), T(r).world.addHandler("add-item", p), T(r).world.addHandler("remove-item", p), () => {
18924
18924
  T(r).removeHandler("open", p), T(r).removeHandler("animation", p), T(r).removeHandler("resize", p), T(r).removeHandler("rotate", p), T(r).world.removeHandler("add-item", p), T(r).world.removeHandler("remove-item", p);
18925
18925
  };
18926
- }), ti(() => {
18926
+ }), jt(() => {
18927
18927
  !T(r) || !i.tileSources || T(r).open(i.tileSources);
18928
18928
  });
18929
18929
  var o = Jh(), c = q(o);
18930
18930
  jo(c, (p) => we(t, p), () => T(t));
18931
18931
  var f = he(c, 2);
18932
- Jt(f, 17, () => T(l), (p) => p.id, (p, m) => {
18932
+ $t(f, 17, () => T(l), (p) => p.id, (p, m) => {
18933
18933
  var d = ee(), g = Q(d);
18934
18934
  {
18935
18935
  var w = (C) => {
@@ -19828,7 +19828,7 @@ function Qd(a, i) {
19828
19828
  function r(f) {
19829
19829
  return f.id || f["@id"] || (typeof f.getId == "function" ? f.getId() : "") || "";
19830
19830
  }
19831
- ti(() => {
19831
+ jt(() => {
19832
19832
  if (T(t).length > 0) {
19833
19833
  const f = /* @__PURE__ */ new Set();
19834
19834
  T(t).forEach((p) => {
@@ -19916,7 +19916,7 @@ function Qd(a, i) {
19916
19916
  class: "group-open:rotate-180 transition-transform opacity-80"
19917
19917
  }), Z(d);
19918
19918
  var I = he(d, 2);
19919
- Jt(
19919
+ $t(
19920
19920
  I,
19921
19921
  21,
19922
19922
  () => T(u),
@@ -20226,10 +20226,10 @@ function ur(a, i) {
20226
20226
  e.canvasId = C;
20227
20227
  }
20228
20228
  let p = /* @__PURE__ */ be(it(e.dockSide));
20229
- ti(() => {
20229
+ jt(() => {
20230
20230
  const C = e.dockSide;
20231
20231
  we(p, C === "none" || C === "top" || C === "bottom" || C === "left" || C === "right" ? C : "none", !0);
20232
- }), ti(() => {
20232
+ }), jt(() => {
20233
20233
  e.dockSide !== T(p) && (e.dockSide = T(p), e.isGalleryDockedBottom = T(p) === "bottom", e.isGalleryDockedRight = T(p) === "right");
20234
20234
  });
20235
20235
  let m = /* @__PURE__ */ ue(() => T(p) === "top" || T(p) === "bottom" || T(p) === "none" && e.gallerySize.height < 320);
@@ -20259,7 +20259,7 @@ function ur(a, i) {
20259
20259
  var O = q(I);
20260
20260
  Z(I), Z(z);
20261
20261
  var W = he(z, 2), U = q(W);
20262
- Jt(U, 21, () => T(s), In, (ae, se) => {
20262
+ $t(U, 21, () => T(s), In, (ae, se) => {
20263
20263
  var N = op();
20264
20264
  N.__click = () => f(T(se).id);
20265
20265
  var X = q(N), de = q(X);
@@ -21436,7 +21436,7 @@ function bg(a, i) {
21436
21436
  {
21437
21437
  var u = (l) => {
21438
21438
  var o = xg(), c = q(o);
21439
- Jt(c, 21, () => T(t), (w) => w.id, (w, R) => {
21439
+ $t(c, 21, () => T(t), (w) => w.id, (w, R) => {
21440
21440
  const C = /* @__PURE__ */ ue(() => T(R).icon);
21441
21441
  var b = Eg(), A = q(b);
21442
21442
  A.__click = () => {
@@ -21549,7 +21549,7 @@ function Ig(a, i) {
21549
21549
  });
21550
21550
  }
21551
21551
  var M = he(b, 2);
21552
- Jt(M, 17, () => T(r), In, (F, j) => {
21552
+ $t(M, 17, () => T(r), In, (F, j) => {
21553
21553
  var ie = Rg(), ae = Q(ie), se = q(ae, !0);
21554
21554
  Z(ae);
21555
21555
  var N = he(ae, 2), X = q(N);
@@ -21636,7 +21636,7 @@ function Vg(a, i) {
21636
21636
  var Y = Bg(), k = Q(Y), B = q(k, !0);
21637
21637
  Z(k);
21638
21638
  var K = he(k, 2);
21639
- Jt(K, 17, () => e.searchResults, In, (ke, _e) => {
21639
+ $t(K, 17, () => e.searchResults, In, (ke, _e) => {
21640
21640
  var ce = Ng();
21641
21641
  ce.__click = () => s(T(_e));
21642
21642
  var De = q(ce), je = q(De), et = q(je, !0);
@@ -21711,12 +21711,14 @@ var kg = /* @__PURE__ */ xe('<div class="h-full w-[200px] pointer-events-auto re
21711
21711
  function ov(a, i) {
21712
21712
  Ze(i, !0);
21713
21713
  let e = Zo(i, "plugins", 19, () => []);
21714
- const t = new Fh(null, e());
21714
+ const t = new Fh(null, i.canvasId, e());
21715
21715
  Nl(ji, t), Eu(() => {
21716
21716
  t.destroyAllPlugins();
21717
- }), ti(() => {
21717
+ }), jt(() => {
21718
21718
  i.manifestId && t.setManifest(i.manifestId);
21719
- }), ti(() => {
21719
+ }), jt(() => {
21720
+ i.canvasId && t.setCanvas(i.canvasId);
21721
+ }), jt(() => {
21720
21722
  const Y = () => {
21721
21723
  t.isFullScreen = !!document.fullscreenElement;
21722
21724
  };
@@ -21783,7 +21785,7 @@ function ov(a, i) {
21783
21785
  });
21784
21786
  }
21785
21787
  var f = he(o, 2);
21786
- Jt(f, 17, () => t.pluginPanels, (Y) => Y.id, (Y, k) => {
21788
+ $t(f, 17, () => t.pluginPanels, (Y) => Y.id, (Y, k) => {
21787
21789
  var B = ee(), K = Q(B);
21788
21790
  {
21789
21791
  var ke = (_e) => {
@@ -21877,7 +21879,7 @@ function ov(a, i) {
21877
21879
  var H = he(M, 2);
21878
21880
  bg(H, {});
21879
21881
  var z = he(H, 2);
21880
- Jt(z, 17, () => t.pluginPanels, (Y) => Y.id, (Y, k) => {
21882
+ $t(z, 17, () => t.pluginPanels, (Y) => Y.id, (Y, k) => {
21881
21883
  var B = ee(), K = Q(B);
21882
21884
  {
21883
21885
  var ke = (_e) => {
@@ -21934,7 +21936,7 @@ function ov(a, i) {
21934
21936
  });
21935
21937
  }
21936
21938
  var j = he(ne, 2);
21937
- Jt(j, 17, () => t.pluginPanels, (Y) => Y.id, (Y, k) => {
21939
+ $t(j, 17, () => t.pluginPanels, (Y) => Y.id, (Y, k) => {
21938
21940
  var B = ee(), K = Q(B);
21939
21941
  {
21940
21942
  var ke = (_e) => {
@@ -21974,7 +21976,7 @@ function ov(a, i) {
21974
21976
  });
21975
21977
  }
21976
21978
  var de = he(N, 2);
21977
- Jt(de, 17, () => t.pluginPanels, (Y) => Y.id, (Y, k) => {
21979
+ $t(de, 17, () => t.pluginPanels, (Y) => Y.id, (Y, k) => {
21978
21980
  var B = ee(), K = Q(B);
21979
21981
  {
21980
21982
  var ke = (_e) => {