triiiceratops 0.10.3 → 0.10.4

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,10 +1,10 @@
1
1
  import "svelte/internal/disclose-version";
2
2
  import * as e from "svelte/internal/client";
3
3
  import { onMount as wt, getContext as he, untrack as je, setContext as yt, onDestroy as Te } from "svelte";
4
- import { m as Ne, g as ce, a as S, c as He, o as At, s as xt, V as pe, X as Pe, b as Zt } from "./X-Dgb3I7Ob.js";
5
- import { M as x1 } from "./X-Dgb3I7Ob.js";
6
- import { a as Mt, b as Ht, c as Vt, d as St, e as Ct, f as zt, g as kt, h as It, i as Lt, j as Pt, k as Tt, l as Bt, m as Et, n as Ft, o as Rt, p as Gt, q as Ot, r as jt, s as Nt, t as Dt, u as Xt, v as Yt } from "./annotation_tool_point-CKkqbVDq.js";
7
- import { i as Ut, a as qt, b as Kt, c as Wt, d as Qt, e as Jt, f as $t, g as er } from "./image_filters_reset-DZrbHhqM.js";
4
+ import { m as Ne, g as ce, a as S, c as He, o as xt, s as At, V as pe, X as Pe, b as Zt } from "./X-DuHUJc5I.js";
5
+ import { M as A1 } from "./X-DuHUJc5I.js";
6
+ import { a as Mt, b as Ht, c as Vt, d as St, e as Ct, f as zt, g as kt, h as It, i as Lt, j as Pt, k as Tt, l as Bt, m as Et, n as Ft, o as Rt, p as Gt, q as Ot, r as jt, s as Nt, t as Dt, u as Xt, v as Yt } from "./annotation_tool_point-r6erVcAH.js";
7
+ import { i as Ut, a as qt, b as Kt, c as Wt, d as Qt, e as Jt, f as $t, g as er } from "./image_filters_reset-GRY5dmGP.js";
8
8
  const tr = [
9
9
  "light",
10
10
  "dark",
@@ -293,13 +293,13 @@ function wr(a) {
293
293
  for (const C of Z) {
294
294
  const w = C.getAttribute("d");
295
295
  if (w) {
296
- const M = Ar(w);
296
+ const M = xr(w);
297
297
  v.push(...M);
298
298
  }
299
299
  }
300
300
  const V = r.querySelectorAll("circle");
301
301
  for (const C of V) {
302
- const w = parseFloat(C.getAttribute("cx") || "0"), M = parseFloat(C.getAttribute("cy") || "0"), D = parseFloat(C.getAttribute("r") || "0"), N = xr(w, M, D);
302
+ const w = parseFloat(C.getAttribute("cx") || "0"), M = parseFloat(C.getAttribute("cy") || "0"), D = parseFloat(C.getAttribute("r") || "0"), N = Ar(w, M, D);
303
303
  v.push(...N);
304
304
  }
305
305
  const _ = r.querySelectorAll("rect");
@@ -323,7 +323,7 @@ function yr(a) {
323
323
  }
324
324
  return t;
325
325
  }
326
- function Ar(a) {
326
+ function xr(a) {
327
327
  const t = [], r = /[ML]\s*([\d.]+)[,\s]+([\d.]+)/g;
328
328
  let v;
329
329
  for (; (v = r.exec(a)) !== null; ) {
@@ -332,7 +332,7 @@ function Ar(a) {
332
332
  }
333
333
  return t;
334
334
  }
335
- function xr(a, t, r, v = 8) {
335
+ function Ar(a, t, r, v = 8) {
336
336
  const i = [];
337
337
  for (let Z = 0; Z < v; Z++) {
338
338
  const V = Z / v * Math.PI * 2, _ = a + r * Math.cos(V), C = t + r * Math.sin(V);
@@ -450,19 +450,19 @@ function zr(a, t) {
450
450
  let r = e.prop(t, "viewerState", 7), v = e.state(void 0), i = e.state(void 0), Z = e.state(void 0), V = e.state(0), _ = e.derived(() => {
451
451
  if (!r().manifestId || !r().canvasId)
452
452
  return [];
453
- const A = Ne.getAnnotations(r().manifestId, r().canvasId), n = r().currentCanvasSearchAnnotations;
454
- return [...A, ...n];
453
+ const x = Ne.getAnnotations(r().manifestId, r().canvasId), n = r().currentCanvasSearchAnnotations;
454
+ return [...x, ...n];
455
455
  }), C = e.derived(() => {
456
- const A = /* @__PURE__ */ new Set();
456
+ const x = /* @__PURE__ */ new Set();
457
457
  return r().currentCanvasSearchAnnotations.forEach((n) => {
458
458
  const s = n.id || n["@id"];
459
- s && A.add(s);
460
- }), A;
459
+ s && x.add(s);
460
+ }), x;
461
461
  }), w = e.derived(() => Hr(e.get(_), e.get(C))), M = e.derived(() => {
462
462
  if (e.get(V), !e.get(i) || !e.get(Z) || !e.get(w).length)
463
463
  return [];
464
- const A = e.get(i).world.getItemAt(0);
465
- if (!A)
464
+ const x = e.get(i).world.getItemAt(0);
465
+ if (!x)
466
466
  return [];
467
467
  const n = [], s = r().pluginPanels.find((y) => y.id === "annotation-editor:panel"), p = s ? s.isVisible() : !1;
468
468
  for (const y of e.get(w)) {
@@ -471,7 +471,7 @@ function zr(a, t) {
471
471
  continue;
472
472
  } else continue;
473
473
  if (y.geometry.type === "RECTANGLE") {
474
- const x = A.imageToViewportRectangle(y.geometry.x, y.geometry.y, y.geometry.w, y.geometry.h), o = e.get(i).viewport.viewportToViewerElementRectangle(x);
474
+ const A = x.imageToViewportRectangle(y.geometry.x, y.geometry.y, y.geometry.w, y.geometry.h), o = e.get(i).viewport.viewportToViewerElementRectangle(A);
475
475
  n.push({
476
476
  id: y.id,
477
477
  type: "RECTANGLE",
@@ -487,14 +487,14 @@ function zr(a, t) {
487
487
  pointerEvents: p ? "none" : "auto"
488
488
  });
489
489
  } else if (y.geometry.type === "POLYGON") {
490
- const x = y.geometry.points.map((d) => {
491
- const u = A.imageToViewportCoordinates(new (e.get(Z)).Point(d[0], d[1])), B = e.get(i).viewport.viewportToViewerElementCoordinates(u);
490
+ const A = y.geometry.points.map((d) => {
491
+ const u = x.imageToViewportCoordinates(new (e.get(Z)).Point(d[0], d[1])), B = e.get(i).viewport.viewportToViewerElementCoordinates(u);
492
492
  return [B.x, B.y];
493
493
  });
494
494
  let o = 1 / 0, l = 1 / 0, z = -1 / 0, H = -1 / 0;
495
- for (const [d, u] of x)
495
+ for (const [d, u] of A)
496
496
  o = Math.min(o, d), l = Math.min(l, u), z = Math.max(z, d), H = Math.max(H, u);
497
- const P = x.map(([d, u]) => [d - o, u - l]);
497
+ const P = A.map(([d, u]) => [d - o, u - l]);
498
498
  n.push({
499
499
  id: y.id,
500
500
  type: "POLYGON",
@@ -511,8 +511,8 @@ function zr(a, t) {
511
511
  wt(() => {
512
512
  if (e.get(v))
513
513
  return (async () => {
514
- const A = await import("openseadragon");
515
- e.set(Z, A.default || A, !0), e.set(i, e.get(Z)({
514
+ const x = await import("openseadragon");
515
+ e.set(Z, x.default || x, !0), e.set(i, e.get(Z)({
516
516
  element: e.get(v),
517
517
  tileSources: null,
518
518
  // Will be set via effect
@@ -531,24 +531,24 @@ function zr(a, t) {
531
531
  gestureSettingsMouse: { clickToZoom: !1 }
532
532
  })), r().notifyOSDReady(e.get(i));
533
533
  })(), () => {
534
- var A;
535
- (A = e.get(i)) == null || A.destroy(), r().osdViewer = null;
534
+ var x;
535
+ (x = e.get(i)) == null || x.destroy(), r().osdViewer = null;
536
536
  };
537
537
  }), e.user_effect(() => {
538
538
  if (!e.get(i)) return;
539
- const A = () => {
539
+ const x = () => {
540
540
  e.update(V);
541
541
  };
542
- return e.get(i).addHandler("open", A), e.get(i).addHandler("animation", A), e.get(i).addHandler("resize", A), e.get(i).addHandler("rotate", A), e.get(i).world.addHandler("add-item", A), e.get(i).world.addHandler("remove-item", A), () => {
543
- e.get(i).removeHandler("open", A), e.get(i).removeHandler("animation", A), e.get(i).removeHandler("resize", A), e.get(i).removeHandler("rotate", A), e.get(i).world.removeHandler("add-item", A), e.get(i).world.removeHandler("remove-item", A);
542
+ return e.get(i).addHandler("open", x), e.get(i).addHandler("animation", x), e.get(i).addHandler("resize", x), e.get(i).addHandler("rotate", x), e.get(i).world.addHandler("add-item", x), e.get(i).world.addHandler("remove-item", x), () => {
543
+ e.get(i).removeHandler("open", x), e.get(i).removeHandler("animation", x), e.get(i).removeHandler("resize", x), e.get(i).removeHandler("rotate", x), e.get(i).world.removeHandler("add-item", x), e.get(i).world.removeHandler("remove-item", x);
544
544
  };
545
545
  }), e.user_effect(() => {
546
546
  !e.get(i) || !t.tileSources || e.get(i).open(t.tileSources);
547
547
  });
548
548
  var D = Cr(), N = e.child(D);
549
- e.bind_this(N, (A) => e.set(v, A), () => e.get(v));
549
+ e.bind_this(N, (x) => e.set(v, x), () => e.get(v));
550
550
  var T = e.sibling(N, 2);
551
- e.each(T, 17, () => e.get(M), (A) => A.id, (A, n) => {
551
+ e.each(T, 17, () => e.get(M), (x) => x.id, (x, n) => {
552
552
  var s = e.comment(), p = e.first_child(s);
553
553
  {
554
554
  var y = (o) => {
@@ -562,7 +562,7 @@ function zr(a, t) {
562
562
  pointer-events: ${e.get(n).pointerEvents ?? ""};
563
563
  `), e.set_attribute(l, "title", e.get(n).tooltip);
564
564
  }), e.append(o, l);
565
- }, x = (o) => {
565
+ }, A = (o) => {
566
566
  var l = e.comment(), z = e.first_child(l);
567
567
  {
568
568
  var H = (P) => {
@@ -593,10 +593,10 @@ function zr(a, t) {
593
593
  e.append(o, l);
594
594
  };
595
595
  e.if(p, (o) => {
596
- e.get(n).type === "RECTANGLE" ? o(y) : o(x, !1);
596
+ e.get(n).type === "RECTANGLE" ? o(y) : o(A, !1);
597
597
  });
598
598
  }
599
- e.append(A, s);
599
+ e.append(x, s);
600
600
  }), e.reset(D), e.template_effect(() => e.set_class(N, 1, `w-full h-full osd-background ${r().config.transparentBackground ? "" : "bg-base-100"}`)), e.append(a, D), e.pop();
601
601
  }
602
602
  var kr = e.from_svg('<path d="M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"></path>'), Ir = e.from_svg('<path d="M160,48V208L80,128Z" opacity="0.2"></path><path d="M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"></path>', 1), Lr = e.from_svg('<path d="M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"></path>'), Pr = e.from_svg('<path d="M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"></path>'), Tr = e.from_svg('<path d="M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"></path>'), Br = e.from_svg('<path d="M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"></path>'), Er = e.from_svg('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');
@@ -605,7 +605,7 @@ function Fr(a, t) {
605
605
  const r = ce();
606
606
  let v = e.rest_props(t, ["$$slots", "$$events", "$$legacy", "children"]), i = e.derived(() => t.weight ?? r.weight ?? "regular"), Z = e.derived(() => t.color ?? r.color ?? "currentColor"), V = e.derived(() => t.size ?? r.size ?? "1em"), _ = e.derived(() => t.mirrored ?? r.mirrored ?? !1);
607
607
  function C(n) {
608
- let { weight: s, color: p, size: y, mirrored: x, ...o } = n;
608
+ let { weight: s, color: p, size: y, mirrored: A, ...o } = n;
609
609
  return o;
610
610
  }
611
611
  var w = Er();
@@ -639,13 +639,13 @@ function Fr(a, t) {
639
639
  var T = (n) => {
640
640
  var s = kr();
641
641
  e.append(n, s);
642
- }, A = (n) => {
642
+ }, x = (n) => {
643
643
  var s = e.comment(), p = e.first_child(s);
644
644
  {
645
645
  var y = (o) => {
646
646
  var l = Ir();
647
647
  e.next(), e.append(o, l);
648
- }, x = (o) => {
648
+ }, A = (o) => {
649
649
  var l = e.comment(), z = e.first_child(l);
650
650
  {
651
651
  var H = (d) => {
@@ -716,7 +716,7 @@ function Fr(a, t) {
716
716
  e.if(
717
717
  p,
718
718
  (o) => {
719
- e.get(i) === "duotone" ? o(y) : o(x, !1);
719
+ e.get(i) === "duotone" ? o(y) : o(A, !1);
720
720
  },
721
721
  !0
722
722
  );
@@ -724,7 +724,7 @@ function Fr(a, t) {
724
724
  e.append(n, s);
725
725
  };
726
726
  e.if(N, (n) => {
727
- e.get(i) === "bold" ? n(T) : n(A, !1);
727
+ e.get(i) === "bold" ? n(T) : n(x, !1);
728
728
  });
729
729
  }
730
730
  e.reset(w), e.append(a, w), e.pop();
@@ -735,7 +735,7 @@ function Yr(a, t) {
735
735
  const r = ce();
736
736
  let v = e.rest_props(t, ["$$slots", "$$events", "$$legacy", "children"]), i = e.derived(() => t.weight ?? r.weight ?? "regular"), Z = e.derived(() => t.color ?? r.color ?? "currentColor"), V = e.derived(() => t.size ?? r.size ?? "1em"), _ = e.derived(() => t.mirrored ?? r.mirrored ?? !1);
737
737
  function C(n) {
738
- let { weight: s, color: p, size: y, mirrored: x, ...o } = n;
738
+ let { weight: s, color: p, size: y, mirrored: A, ...o } = n;
739
739
  return o;
740
740
  }
741
741
  var w = Xr();
@@ -769,13 +769,13 @@ function Yr(a, t) {
769
769
  var T = (n) => {
770
770
  var s = Rr();
771
771
  e.append(n, s);
772
- }, A = (n) => {
772
+ }, x = (n) => {
773
773
  var s = e.comment(), p = e.first_child(s);
774
774
  {
775
775
  var y = (o) => {
776
776
  var l = Gr();
777
777
  e.next(), e.append(o, l);
778
- }, x = (o) => {
778
+ }, A = (o) => {
779
779
  var l = e.comment(), z = e.first_child(l);
780
780
  {
781
781
  var H = (d) => {
@@ -846,7 +846,7 @@ function Yr(a, t) {
846
846
  e.if(
847
847
  p,
848
848
  (o) => {
849
- e.get(i) === "duotone" ? o(y) : o(x, !1);
849
+ e.get(i) === "duotone" ? o(y) : o(A, !1);
850
850
  },
851
851
  !0
852
852
  );
@@ -854,7 +854,7 @@ function Yr(a, t) {
854
854
  e.append(n, s);
855
855
  };
856
856
  e.if(N, (n) => {
857
- e.get(i) === "bold" ? n(T) : n(A, !1);
857
+ e.get(i) === "bold" ? n(T) : n(x, !1);
858
858
  });
859
859
  }
860
860
  e.reset(w), e.append(a, w), e.pop();
@@ -1021,13 +1021,13 @@ const Ur = (
1021
1021
  /** @type {LocalizedString} */
1022
1022
  "Toggle Search"
1023
1023
  )
1024
- ), Aa = (
1024
+ ), xa = (
1025
1025
  /** @type {(inputs: {}) => LocalizedString} */
1026
1026
  () => (
1027
1027
  /** @type {LocalizedString} */
1028
1028
  "Suche umschalten"
1029
1029
  )
1030
- ), nt = /* @__NO_SIDE_EFFECTS__ */ (a = {}, t = {}) => (t.locale ?? S()) === "en" ? ya() : Aa(), xa = (
1030
+ ), nt = /* @__NO_SIDE_EFFECTS__ */ (a = {}, t = {}) => (t.locale ?? S()) === "en" ? ya() : xa(), Aa = (
1031
1031
  /** @type {(inputs: {}) => LocalizedString} */
1032
1032
  () => (
1033
1033
  /** @type {LocalizedString} */
@@ -1039,7 +1039,7 @@ const Ur = (
1039
1039
  /** @type {LocalizedString} */
1040
1040
  "Galerie ausblenden"
1041
1041
  )
1042
- ), Ae = /* @__NO_SIDE_EFFECTS__ */ (a = {}, t = {}) => (t.locale ?? S()) === "en" ? xa() : Za(), Ma = (
1042
+ ), xe = /* @__NO_SIDE_EFFECTS__ */ (a = {}, t = {}) => (t.locale ?? S()) === "en" ? Aa() : Za(), Ma = (
1043
1043
  /** @type {(inputs: {}) => LocalizedString} */
1044
1044
  () => (
1045
1045
  /** @type {LocalizedString} */
@@ -1051,7 +1051,7 @@ const Ur = (
1051
1051
  /** @type {LocalizedString} */
1052
1052
  "Galerie einblenden"
1053
1053
  )
1054
- ), xe = /* @__NO_SIDE_EFFECTS__ */ (a = {}, t = {}) => (t.locale ?? S()) === "en" ? Ma() : Ha(), Va = (
1054
+ ), Ae = /* @__NO_SIDE_EFFECTS__ */ (a = {}, t = {}) => (t.locale ?? S()) === "en" ? Ma() : Ha(), Va = (
1055
1055
  /** @type {(inputs: {}) => LocalizedString} */
1056
1056
  () => (
1057
1057
  /** @type {LocalizedString} */
@@ -1297,13 +1297,13 @@ const Ur = (
1297
1297
  /** @type {LocalizedString} */
1298
1298
  "Core"
1299
1299
  )
1300
- ), An = (
1300
+ ), xn = (
1301
1301
  /** @type {(inputs: {}) => LocalizedString} */
1302
1302
  () => (
1303
1303
  /** @type {LocalizedString} */
1304
1304
  "Basis"
1305
1305
  )
1306
- ), xn = /* @__NO_SIDE_EFFECTS__ */ (a = {}, t = {}) => (t.locale ?? S()) === "en" ? yn() : An(), Zn = (
1306
+ ), An = /* @__NO_SIDE_EFFECTS__ */ (a = {}, t = {}) => (t.locale ?? S()) === "en" ? yn() : xn(), Zn = (
1307
1307
  /** @type {(inputs: {}) => LocalizedString} */
1308
1308
  () => (
1309
1309
  /** @type {LocalizedString} */
@@ -1519,7 +1519,7 @@ const Ur = (
1519
1519
  /** @type {LocalizedString} */
1520
1520
  "Canvas-Navigation"
1521
1521
  )
1522
- ), Ao = /* @__NO_SIDE_EFFECTS__ */ (a = {}, t = {}) => (t.locale ?? S()) === "en" ? wo() : yo(), xo = (
1522
+ ), xo = /* @__NO_SIDE_EFFECTS__ */ (a = {}, t = {}) => (t.locale ?? S()) === "en" ? wo() : yo(), Ao = (
1523
1523
  /** @type {(inputs: {}) => LocalizedString} */
1524
1524
  () => (
1525
1525
  /** @type {LocalizedString} */
@@ -1531,7 +1531,7 @@ const Ur = (
1531
1531
  /** @type {LocalizedString} */
1532
1532
  "Konfiguration"
1533
1533
  )
1534
- ), Mo = /* @__NO_SIDE_EFFECTS__ */ (a = {}, t = {}) => (t.locale ?? S()) === "en" ? xo() : Zo(), Ho = (
1534
+ ), Mo = /* @__NO_SIDE_EFFECTS__ */ (a = {}, t = {}) => (t.locale ?? S()) === "en" ? Ao() : Zo(), Ho = (
1535
1535
  /** @type {(inputs: {}) => LocalizedString} */
1536
1536
  () => (
1537
1537
  /** @type {LocalizedString} */
@@ -1735,7 +1735,7 @@ const Ur = (
1735
1735
  /** @type {LocalizedString} */
1736
1736
  "Suche"
1737
1737
  )
1738
- ), Ai = /* @__NO_SIDE_EFFECTS__ */ (a = {}, t = {}) => (t.locale ?? S()) === "en" ? wi() : yi(), xi = (
1738
+ ), xi = /* @__NO_SIDE_EFFECTS__ */ (a = {}, t = {}) => (t.locale ?? S()) === "en" ? wi() : yi(), Ai = (
1739
1739
  /** @type {(inputs: {}) => LocalizedString} */
1740
1740
  () => (
1741
1741
  /** @type {LocalizedString} */
@@ -1747,7 +1747,7 @@ const Ur = (
1747
1747
  /** @type {LocalizedString} */
1748
1748
  "Annotationen"
1749
1749
  )
1750
- ), Mi = /* @__NO_SIDE_EFFECTS__ */ (a = {}, t = {}) => (t.locale ?? S()) === "en" ? xi() : Zi(), Hi = (
1750
+ ), Mi = /* @__NO_SIDE_EFFECTS__ */ (a = {}, t = {}) => (t.locale ?? S()) === "en" ? Ai() : Zi(), Hi = (
1751
1751
  /** @type {(inputs: {}) => LocalizedString} */
1752
1752
  () => (
1753
1753
  /** @type {LocalizedString} */
@@ -1971,7 +1971,7 @@ const Ur = (
1971
1971
  hello_world: Kr,
1972
1972
  hide_all_annotations: lt,
1973
1973
  hide_annotations: ke,
1974
- hide_gallery: Ae,
1974
+ hide_gallery: xe,
1975
1975
  iiif_manifest_label: vn,
1976
1976
  image_adjustments: Kn,
1977
1977
  image_adjustments_title: Ut,
@@ -2017,8 +2017,8 @@ const Ur = (
2017
2017
  settings_submenu_annotations: Mi,
2018
2018
  settings_submenu_gallery: Yo,
2019
2019
  settings_submenu_right_menu_items: So,
2020
- settings_submenu_search: Ai,
2021
- settings_toggle_canvas_nav: Ao,
2020
+ settings_submenu_search: xi,
2021
+ settings_toggle_canvas_nav: xo,
2022
2022
  settings_toggle_close_button: ti,
2023
2023
  settings_toggle_draggable: Jo,
2024
2024
  settings_toggle_left_menu: po,
@@ -2034,13 +2034,13 @@ const Ur = (
2034
2034
  settings_transparent_background: t0,
2035
2035
  show_all_annotations: st,
2036
2036
  show_annotations: Ie,
2037
- show_gallery: xe,
2037
+ show_gallery: Ae,
2038
2038
  theme_menu_title: l0,
2039
2039
  toggle_annotations: ot,
2040
2040
  toggle_metadata: it,
2041
2041
  toggle_search: nt,
2042
2042
  try_your_own: Ji,
2043
- viewer_variant_core: xn,
2043
+ viewer_variant_core: An,
2044
2044
  viewer_variant_custom_theme: Cn,
2045
2045
  viewer_variant_full: Hn,
2046
2046
  viewer_variant_svelte: Ni,
@@ -2051,8 +2051,8 @@ const Ur = (
2051
2051
  visible_count: dt
2052
2052
  }, Symbol.toStringTag, { value: "Module" }));
2053
2053
  let ht = e.state(e.proxy(S()));
2054
- const u0 = xt;
2055
- At((a, t) => {
2054
+ const u0 = At;
2055
+ xt((a, t) => {
2056
2056
  u0(a, t), e.set(ht, S(), !0);
2057
2057
  });
2058
2058
  const ue = {
@@ -2080,13 +2080,13 @@ function h0(a, t) {
2080
2080
  ), e.append(a, r), e.pop();
2081
2081
  }
2082
2082
  e.delegate(["click"]);
2083
- var m0 = e.from_svg('<path d="M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z"></path>'), b0 = e.from_svg('<path d="M208,96l-80,80L48,96Z" opacity="0.2"></path><path d="M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z"></path>', 1), w0 = e.from_svg('<path d="M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z"></path>'), y0 = e.from_svg('<path d="M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"></path>'), A0 = e.from_svg('<path d="M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"></path>'), x0 = e.from_svg('<path d="M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z"></path>'), Z0 = e.from_svg('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');
2083
+ var m0 = e.from_svg('<path d="M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z"></path>'), b0 = e.from_svg('<path d="M208,96l-80,80L48,96Z" opacity="0.2"></path><path d="M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z"></path>', 1), w0 = e.from_svg('<path d="M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z"></path>'), y0 = e.from_svg('<path d="M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"></path>'), x0 = e.from_svg('<path d="M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"></path>'), A0 = e.from_svg('<path d="M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z"></path>'), Z0 = e.from_svg('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');
2084
2084
  function M0(a, t) {
2085
2085
  e.push(t, !0);
2086
2086
  const r = ce();
2087
2087
  let v = e.rest_props(t, ["$$slots", "$$events", "$$legacy", "children"]), i = e.derived(() => t.weight ?? r.weight ?? "regular"), Z = e.derived(() => t.color ?? r.color ?? "currentColor"), V = e.derived(() => t.size ?? r.size ?? "1em"), _ = e.derived(() => t.mirrored ?? r.mirrored ?? !1);
2088
2088
  function C(n) {
2089
- let { weight: s, color: p, size: y, mirrored: x, ...o } = n;
2089
+ let { weight: s, color: p, size: y, mirrored: A, ...o } = n;
2090
2090
  return o;
2091
2091
  }
2092
2092
  var w = Z0();
@@ -2120,13 +2120,13 @@ function M0(a, t) {
2120
2120
  var T = (n) => {
2121
2121
  var s = m0();
2122
2122
  e.append(n, s);
2123
- }, A = (n) => {
2123
+ }, x = (n) => {
2124
2124
  var s = e.comment(), p = e.first_child(s);
2125
2125
  {
2126
2126
  var y = (o) => {
2127
2127
  var l = b0();
2128
2128
  e.next(), e.append(o, l);
2129
- }, x = (o) => {
2129
+ }, A = (o) => {
2130
2130
  var l = e.comment(), z = e.first_child(l);
2131
2131
  {
2132
2132
  var H = (d) => {
@@ -2142,13 +2142,13 @@ function M0(a, t) {
2142
2142
  var c = e.comment(), m = e.first_child(c);
2143
2143
  {
2144
2144
  var E = (f) => {
2145
- var b = A0();
2145
+ var b = x0();
2146
2146
  e.append(f, b);
2147
2147
  }, I = (f) => {
2148
2148
  var b = e.comment(), O = e.first_child(b);
2149
2149
  {
2150
2150
  var q = (h) => {
2151
- var k = x0();
2151
+ var k = A0();
2152
2152
  e.append(h, k);
2153
2153
  }, X = (h) => {
2154
2154
  var k = e.text();
@@ -2197,7 +2197,7 @@ function M0(a, t) {
2197
2197
  e.if(
2198
2198
  p,
2199
2199
  (o) => {
2200
- e.get(i) === "duotone" ? o(y) : o(x, !1);
2200
+ e.get(i) === "duotone" ? o(y) : o(A, !1);
2201
2201
  },
2202
2202
  !0
2203
2203
  );
@@ -2205,7 +2205,7 @@ function M0(a, t) {
2205
2205
  e.append(n, s);
2206
2206
  };
2207
2207
  e.if(N, (n) => {
2208
- e.get(i) === "bold" ? n(T) : n(A, !1);
2208
+ e.get(i) === "bold" ? n(T) : n(x, !1);
2209
2209
  });
2210
2210
  }
2211
2211
  e.reset(w), e.append(a, w), e.pop();
@@ -2216,7 +2216,7 @@ function Re(a, t) {
2216
2216
  const r = ce();
2217
2217
  let v = e.rest_props(t, ["$$slots", "$$events", "$$legacy", "children"]), i = e.derived(() => t.weight ?? r.weight ?? "regular"), Z = e.derived(() => t.color ?? r.color ?? "currentColor"), V = e.derived(() => t.size ?? r.size ?? "1em"), _ = e.derived(() => t.mirrored ?? r.mirrored ?? !1);
2218
2218
  function C(n) {
2219
- let { weight: s, color: p, size: y, mirrored: x, ...o } = n;
2219
+ let { weight: s, color: p, size: y, mirrored: A, ...o } = n;
2220
2220
  return o;
2221
2221
  }
2222
2222
  var w = I0();
@@ -2250,13 +2250,13 @@ function Re(a, t) {
2250
2250
  var T = (n) => {
2251
2251
  var s = H0();
2252
2252
  e.append(n, s);
2253
- }, A = (n) => {
2253
+ }, x = (n) => {
2254
2254
  var s = e.comment(), p = e.first_child(s);
2255
2255
  {
2256
2256
  var y = (o) => {
2257
2257
  var l = V0();
2258
2258
  e.next(), e.append(o, l);
2259
- }, x = (o) => {
2259
+ }, A = (o) => {
2260
2260
  var l = e.comment(), z = e.first_child(l);
2261
2261
  {
2262
2262
  var H = (d) => {
@@ -2327,7 +2327,7 @@ function Re(a, t) {
2327
2327
  e.if(
2328
2328
  p,
2329
2329
  (o) => {
2330
- e.get(i) === "duotone" ? o(y) : o(x, !1);
2330
+ e.get(i) === "duotone" ? o(y) : o(A, !1);
2331
2331
  },
2332
2332
  !0
2333
2333
  );
@@ -2335,7 +2335,7 @@ function Re(a, t) {
2335
2335
  e.append(n, s);
2336
2336
  };
2337
2337
  e.if(N, (n) => {
2338
- e.get(i) === "bold" ? n(T) : n(A, !1);
2338
+ e.get(i) === "bold" ? n(T) : n(x, !1);
2339
2339
  });
2340
2340
  }
2341
2341
  e.reset(w), e.append(a, w), e.pop();
@@ -2346,7 +2346,7 @@ function Ge(a, t) {
2346
2346
  const r = ce();
2347
2347
  let v = e.rest_props(t, ["$$slots", "$$events", "$$legacy", "children"]), i = e.derived(() => t.weight ?? r.weight ?? "regular"), Z = e.derived(() => t.color ?? r.color ?? "currentColor"), V = e.derived(() => t.size ?? r.size ?? "1em"), _ = e.derived(() => t.mirrored ?? r.mirrored ?? !1);
2348
2348
  function C(n) {
2349
- let { weight: s, color: p, size: y, mirrored: x, ...o } = n;
2349
+ let { weight: s, color: p, size: y, mirrored: A, ...o } = n;
2350
2350
  return o;
2351
2351
  }
2352
2352
  var w = R0();
@@ -2380,13 +2380,13 @@ function Ge(a, t) {
2380
2380
  var T = (n) => {
2381
2381
  var s = L0();
2382
2382
  e.append(n, s);
2383
- }, A = (n) => {
2383
+ }, x = (n) => {
2384
2384
  var s = e.comment(), p = e.first_child(s);
2385
2385
  {
2386
2386
  var y = (o) => {
2387
2387
  var l = P0();
2388
2388
  e.next(), e.append(o, l);
2389
- }, x = (o) => {
2389
+ }, A = (o) => {
2390
2390
  var l = e.comment(), z = e.first_child(l);
2391
2391
  {
2392
2392
  var H = (d) => {
@@ -2457,7 +2457,7 @@ function Ge(a, t) {
2457
2457
  e.if(
2458
2458
  p,
2459
2459
  (o) => {
2460
- e.get(i) === "duotone" ? o(y) : o(x, !1);
2460
+ e.get(i) === "duotone" ? o(y) : o(A, !1);
2461
2461
  },
2462
2462
  !0
2463
2463
  );
@@ -2465,7 +2465,7 @@ function Ge(a, t) {
2465
2465
  e.append(n, s);
2466
2466
  };
2467
2467
  e.if(N, (n) => {
2468
- e.get(i) === "bold" ? n(T) : n(A, !1);
2468
+ e.get(i) === "bold" ? n(T) : n(x, !1);
2469
2469
  });
2470
2470
  }
2471
2471
  e.reset(w), e.append(a, w), e.pop();
@@ -2487,11 +2487,11 @@ function W0(a, t) {
2487
2487
  var p;
2488
2488
  if (e.get(v).length > 0)
2489
2489
  if (((p = r.config.annotations) == null ? void 0 : p.visible) ?? !0) {
2490
- const x = /* @__PURE__ */ new Set();
2490
+ const A = /* @__PURE__ */ new Set();
2491
2491
  e.get(v).forEach((o) => {
2492
2492
  const l = i(o);
2493
- l && x.add(l);
2494
- }), r.visibleAnnotationIds = x;
2493
+ l && A.add(l);
2494
+ }), r.visibleAnnotationIds = A;
2495
2495
  } else
2496
2496
  r.visibleAnnotationIds = /* @__PURE__ */ new Set();
2497
2497
  else
@@ -2510,8 +2510,8 @@ function W0(a, t) {
2510
2510
  else {
2511
2511
  const p = /* @__PURE__ */ new Set();
2512
2512
  e.get(v).forEach((y) => {
2513
- const x = i(y);
2514
- x && p.add(x);
2513
+ const A = i(y);
2514
+ A && p.add(A);
2515
2515
  }), r.visibleAnnotationIds = p;
2516
2516
  }
2517
2517
  }
@@ -2524,12 +2524,12 @@ function W0(a, t) {
2524
2524
  return;
2525
2525
  }
2526
2526
  const p = () => {
2527
- let x = document;
2527
+ let A = document;
2528
2528
  if (e.get(w)) {
2529
2529
  const z = e.get(w).getRootNode();
2530
- (z instanceof Document || z instanceof ShadowRoot) && (x = z);
2530
+ (z instanceof Document || z instanceof ShadowRoot) && (A = z);
2531
2531
  }
2532
- const o = x.getElementById(`annotation-list-item-${e.get(C)}`), l = x.getElementById(`annotation-visual-${e.get(C)}`);
2532
+ const o = A.getElementById(`annotation-list-item-${e.get(C)}`), l = A.getElementById(`annotation-visual-${e.get(C)}`);
2533
2533
  if (o && l) {
2534
2534
  const z = o.getBoundingClientRect(), H = l.getBoundingClientRect(), P = z.left, d = z.top + z.height / 2, u = H.left + H.width / 2, B = H.top + H.height / 2;
2535
2535
  e.set(M, { x1: P, y1: d, x2: u, y2: B }, !0);
@@ -2550,20 +2550,20 @@ function W0(a, t) {
2550
2550
  }) : []);
2551
2551
  var N = K0(), T = e.first_child(N);
2552
2552
  {
2553
- var A = (p) => {
2554
- var y = G0(), x = e.child(y), o = e.sibling(x), l = e.sibling(o);
2553
+ var x = (p) => {
2554
+ var y = G0(), A = e.child(y), o = e.sibling(A), l = e.sibling(o);
2555
2555
  e.reset(y), e.template_effect(() => {
2556
- e.set_attribute(x, "x1", e.get(M).x1), e.set_attribute(x, "y1", e.get(M).y1), e.set_attribute(x, "x2", e.get(M).x2), e.set_attribute(x, "y2", e.get(M).y2), e.set_attribute(o, "cx", e.get(M).x1), e.set_attribute(o, "cy", e.get(M).y1), e.set_attribute(l, "cx", e.get(M).x2), e.set_attribute(l, "cy", e.get(M).y2);
2556
+ e.set_attribute(A, "x1", e.get(M).x1), e.set_attribute(A, "y1", e.get(M).y1), e.set_attribute(A, "x2", e.get(M).x2), e.set_attribute(A, "y2", e.get(M).y2), e.set_attribute(o, "cx", e.get(M).x1), e.set_attribute(o, "cy", e.get(M).y1), e.set_attribute(l, "cx", e.get(M).x2), e.set_attribute(l, "cy", e.get(M).y2);
2557
2557
  }), e.append(p, y);
2558
2558
  };
2559
2559
  e.if(T, (p) => {
2560
- e.get(M) && p(A);
2560
+ e.get(M) && p(x);
2561
2561
  });
2562
2562
  }
2563
2563
  var n = e.sibling(T, 2);
2564
2564
  {
2565
2565
  var s = (p) => {
2566
- var y = q0(), x = e.child(y), o = e.child(x), l = e.child(o);
2566
+ var y = q0(), A = e.child(y), o = e.child(A), l = e.child(o);
2567
2567
  l.__click = (c) => {
2568
2568
  c.preventDefault(), _();
2569
2569
  };
@@ -2697,7 +2697,7 @@ function W0(a, t) {
2697
2697
  var m = U0();
2698
2698
  e.append(c, m);
2699
2699
  }
2700
- ), e.reset(g), e.reset(x), e.reset(y), e.bind_this(y, (c) => e.set(w, c), () => e.get(w)), e.template_effect(
2700
+ ), e.reset(g), e.reset(A), e.reset(y), e.bind_this(y, (c) => e.set(w, c), () => e.get(w)), e.template_effect(
2701
2701
  (c, m, E) => {
2702
2702
  e.set_attribute(l, "title", c), e.set_text(u, `${m ?? ""} `), e.set_text(R, E);
2703
2703
  },
@@ -2826,7 +2826,7 @@ function be(a, t) {
2826
2826
  function T() {
2827
2827
  e.set(Z, !1), window.removeEventListener("mousemove", N), window.removeEventListener("mouseup", T);
2828
2828
  }
2829
- function A(l) {
2829
+ function x(l) {
2830
2830
  r.setCanvas(l);
2831
2831
  }
2832
2832
  let n = e.state(e.proxy(r.dockSide));
@@ -2860,7 +2860,7 @@ function be(a, t) {
2860
2860
  const H = (d = e.get(_)) == null ? void 0 : d.getRootNode(), P = ((u = H == null ? void 0 : H.getElementById) == null ? void 0 : u.call(H, "triiiceratops-center-panel")) ?? document.getElementById("triiiceratops-center-panel");
2861
2861
  P ? (r.galleryCenterPanelRect = P.getBoundingClientRect(), console.log("[Gallery] Captured center panel rect:", r.galleryCenterPanelRect)) : console.warn("[Gallery] Could not find center panel in startDrag"), r.isGalleryDragging = !0, window.addEventListener("mousemove", w), window.addEventListener("mouseup", M), z && e.set(n, "none");
2862
2862
  }
2863
- var y = e.comment(), x = e.first_child(y);
2863
+ var y = e.comment(), A = e.first_child(y);
2864
2864
  {
2865
2865
  var o = (l) => {
2866
2866
  var z = nl(), H = e.first_child(z), P = e.child(H);
@@ -2892,7 +2892,7 @@ function be(a, t) {
2892
2892
  var R = e.sibling(u, 2), G = e.child(R);
2893
2893
  e.each(G, 21, () => e.get(C), e.index, (I, f) => {
2894
2894
  var b = tl();
2895
- b.__click = () => A(e.get(f).id);
2895
+ b.__click = () => x(e.get(f).id);
2896
2896
  var O = e.child(b), q = e.child(O);
2897
2897
  {
2898
2898
  var X = (Q) => {
@@ -2945,7 +2945,7 @@ function be(a, t) {
2945
2945
  ${e.get(n) === "left" || e.get(n) === "right" ? "flex-col border-x" : ""}` : "fixed z-900 bg-base-100 shadow-2xl rounded-lg flex flex-col border border-base-300 overflow-hidden select-none") + (r.isGalleryDragging ? " pointer-events-none opacity-80" : "")), e.set_style(H, e.get(n) !== "none" ? "" : `left: ${r.galleryPosition.x}px; top: ${r.galleryPosition.y}px; width: ${r.gallerySize.width}px; height: ${r.gallerySize.height}px;`), e.set_class(R, 1, `flex-1 p-1 bg-base-100 ${e.get(s) ? "overflow-x-auto overflow-y-hidden h-full" : "overflow-y-auto overflow-x-hidden"}`), e.set_class(G, 1, e.clsx(e.get(s) ? "flex flex-row gap-2 h-full items-center" : "grid gap-2")), e.set_style(G, e.get(s) ? "" : "grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));");
2946
2946
  }), e.append(l, z);
2947
2947
  };
2948
- e.if(x, (l) => {
2948
+ e.if(A, (l) => {
2949
2949
  r.showThumbnailGallery && l(o);
2950
2950
  });
2951
2951
  }
@@ -2958,7 +2958,7 @@ function gl(a, t) {
2958
2958
  const r = ce();
2959
2959
  let v = e.rest_props(t, ["$$slots", "$$events", "$$legacy", "children"]), i = e.derived(() => t.weight ?? r.weight ?? "regular"), Z = e.derived(() => t.color ?? r.color ?? "currentColor"), V = e.derived(() => t.size ?? r.size ?? "1em"), _ = e.derived(() => t.mirrored ?? r.mirrored ?? !1);
2960
2960
  function C(n) {
2961
- let { weight: s, color: p, size: y, mirrored: x, ...o } = n;
2961
+ let { weight: s, color: p, size: y, mirrored: A, ...o } = n;
2962
2962
  return o;
2963
2963
  }
2964
2964
  var w = vl();
@@ -2992,13 +2992,13 @@ function gl(a, t) {
2992
2992
  var T = (n) => {
2993
2993
  var s = ol();
2994
2994
  e.append(n, s);
2995
- }, A = (n) => {
2995
+ }, x = (n) => {
2996
2996
  var s = e.comment(), p = e.first_child(s);
2997
2997
  {
2998
2998
  var y = (o) => {
2999
2999
  var l = il();
3000
3000
  e.next(), e.append(o, l);
3001
- }, x = (o) => {
3001
+ }, A = (o) => {
3002
3002
  var l = e.comment(), z = e.first_child(l);
3003
3003
  {
3004
3004
  var H = (d) => {
@@ -3069,7 +3069,7 @@ function gl(a, t) {
3069
3069
  e.if(
3070
3070
  p,
3071
3071
  (o) => {
3072
- e.get(i) === "duotone" ? o(y) : o(x, !1);
3072
+ e.get(i) === "duotone" ? o(y) : o(A, !1);
3073
3073
  },
3074
3074
  !0
3075
3075
  );
@@ -3077,7 +3077,7 @@ function gl(a, t) {
3077
3077
  e.append(n, s);
3078
3078
  };
3079
3079
  e.if(N, (n) => {
3080
- e.get(i) === "bold" ? n(T) : n(A, !1);
3080
+ e.get(i) === "bold" ? n(T) : n(x, !1);
3081
3081
  });
3082
3082
  }
3083
3083
  e.reset(w), e.append(a, w), e.pop();
@@ -3088,7 +3088,7 @@ function wl(a, t) {
3088
3088
  const r = ce();
3089
3089
  let v = e.rest_props(t, ["$$slots", "$$events", "$$legacy", "children"]), i = e.derived(() => t.weight ?? r.weight ?? "regular"), Z = e.derived(() => t.color ?? r.color ?? "currentColor"), V = e.derived(() => t.size ?? r.size ?? "1em"), _ = e.derived(() => t.mirrored ?? r.mirrored ?? !1);
3090
3090
  function C(n) {
3091
- let { weight: s, color: p, size: y, mirrored: x, ...o } = n;
3091
+ let { weight: s, color: p, size: y, mirrored: A, ...o } = n;
3092
3092
  return o;
3093
3093
  }
3094
3094
  var w = bl();
@@ -3122,13 +3122,13 @@ function wl(a, t) {
3122
3122
  var T = (n) => {
3123
3123
  var s = fl();
3124
3124
  e.append(n, s);
3125
- }, A = (n) => {
3125
+ }, x = (n) => {
3126
3126
  var s = e.comment(), p = e.first_child(s);
3127
3127
  {
3128
3128
  var y = (o) => {
3129
3129
  var l = _l();
3130
3130
  e.next(), e.append(o, l);
3131
- }, x = (o) => {
3131
+ }, A = (o) => {
3132
3132
  var l = e.comment(), z = e.first_child(l);
3133
3133
  {
3134
3134
  var H = (d) => {
@@ -3199,7 +3199,7 @@ function wl(a, t) {
3199
3199
  e.if(
3200
3200
  p,
3201
3201
  (o) => {
3202
- e.get(i) === "duotone" ? o(y) : o(x, !1);
3202
+ e.get(i) === "duotone" ? o(y) : o(A, !1);
3203
3203
  },
3204
3204
  !0
3205
3205
  );
@@ -3207,18 +3207,18 @@ function wl(a, t) {
3207
3207
  e.append(n, s);
3208
3208
  };
3209
3209
  e.if(N, (n) => {
3210
- e.get(i) === "bold" ? n(T) : n(A, !1);
3210
+ e.get(i) === "bold" ? n(T) : n(x, !1);
3211
3211
  });
3212
3212
  }
3213
3213
  e.reset(w), e.append(a, w), e.pop();
3214
3214
  }
3215
- var yl = e.from_svg('<path d="M220,48V88a12,12,0,0,1-24,0V60H168a12,12,0,0,1,0-24h40A12,12,0,0,1,220,48ZM88,196H60V168a12,12,0,0,0-24,0v40a12,12,0,0,0,12,12H88a12,12,0,0,0,0-24Zm120-40a12,12,0,0,0-12,12v28H168a12,12,0,0,0,0,24h40a12,12,0,0,0,12-12V168A12,12,0,0,0,208,156ZM88,36H48A12,12,0,0,0,36,48V88a12,12,0,0,0,24,0V60H88a12,12,0,0,0,0-24Z"></path>'), Al = e.from_svg('<path d="M208,48V208H48V48Z" opacity="0.2"></path><path d="M216,48V88a8,8,0,0,1-16,0V56H168a8,8,0,0,1,0-16h40A8,8,0,0,1,216,48ZM88,200H56V168a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H88a8,8,0,0,0,0-16Zm120-40a8,8,0,0,0-8,8v32H168a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V168A8,8,0,0,0,208,160ZM88,40H48a8,8,0,0,0-8,8V88a8,8,0,0,0,16,0V56H88a8,8,0,0,0,0-16Z"></path>', 1), xl = e.from_svg('<path d="M93.66,202.34A8,8,0,0,1,88,216H48a8,8,0,0,1-8-8V168a8,8,0,0,1,13.66-5.66ZM88,40H48a8,8,0,0,0-8,8V88a8,8,0,0,0,13.66,5.66l40-40A8,8,0,0,0,88,40ZM211.06,160.61a8,8,0,0,0-8.72,1.73l-40,40A8,8,0,0,0,168,216h40a8,8,0,0,0,8-8V168A8,8,0,0,0,211.06,160.61ZM208,40H168a8,8,0,0,0-5.66,13.66l40,40A8,8,0,0,0,216,88V48A8,8,0,0,0,208,40Z"></path>'), Zl = e.from_svg('<path d="M214,48V88a6,6,0,0,1-12,0V54H168a6,6,0,0,1,0-12h40A6,6,0,0,1,214,48ZM88,202H54V168a6,6,0,0,0-12,0v40a6,6,0,0,0,6,6H88a6,6,0,0,0,0-12Zm120-40a6,6,0,0,0-6,6v34H168a6,6,0,0,0,0,12h40a6,6,0,0,0,6-6V168A6,6,0,0,0,208,162ZM88,42H48a6,6,0,0,0-6,6V88a6,6,0,0,0,12,0V54H88a6,6,0,0,0,0-12Z"></path>'), Ml = e.from_svg('<path d="M216,48V88a8,8,0,0,1-16,0V56H168a8,8,0,0,1,0-16h40A8,8,0,0,1,216,48ZM88,200H56V168a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H88a8,8,0,0,0,0-16Zm120-40a8,8,0,0,0-8,8v32H168a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V168A8,8,0,0,0,208,160ZM88,40H48a8,8,0,0,0-8,8V88a8,8,0,0,0,16,0V56H88a8,8,0,0,0,0-16Z"></path>'), Hl = e.from_svg('<path d="M212,48V88a4,4,0,0,1-8,0V52H168a4,4,0,0,1,0-8h40A4,4,0,0,1,212,48ZM88,204H52V168a4,4,0,0,0-8,0v40a4,4,0,0,0,4,4H88a4,4,0,0,0,0-8Zm120-40a4,4,0,0,0-4,4v36H168a4,4,0,0,0,0,8h40a4,4,0,0,0,4-4V168A4,4,0,0,0,208,164ZM88,44H48a4,4,0,0,0-4,4V88a4,4,0,0,0,8,0V52H88a4,4,0,0,0,0-8Z"></path>'), Vl = e.from_svg('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');
3215
+ var yl = e.from_svg('<path d="M220,48V88a12,12,0,0,1-24,0V60H168a12,12,0,0,1,0-24h40A12,12,0,0,1,220,48ZM88,196H60V168a12,12,0,0,0-24,0v40a12,12,0,0,0,12,12H88a12,12,0,0,0,0-24Zm120-40a12,12,0,0,0-12,12v28H168a12,12,0,0,0,0,24h40a12,12,0,0,0,12-12V168A12,12,0,0,0,208,156ZM88,36H48A12,12,0,0,0,36,48V88a12,12,0,0,0,24,0V60H88a12,12,0,0,0,0-24Z"></path>'), xl = e.from_svg('<path d="M208,48V208H48V48Z" opacity="0.2"></path><path d="M216,48V88a8,8,0,0,1-16,0V56H168a8,8,0,0,1,0-16h40A8,8,0,0,1,216,48ZM88,200H56V168a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H88a8,8,0,0,0,0-16Zm120-40a8,8,0,0,0-8,8v32H168a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V168A8,8,0,0,0,208,160ZM88,40H48a8,8,0,0,0-8,8V88a8,8,0,0,0,16,0V56H88a8,8,0,0,0,0-16Z"></path>', 1), Al = e.from_svg('<path d="M93.66,202.34A8,8,0,0,1,88,216H48a8,8,0,0,1-8-8V168a8,8,0,0,1,13.66-5.66ZM88,40H48a8,8,0,0,0-8,8V88a8,8,0,0,0,13.66,5.66l40-40A8,8,0,0,0,88,40ZM211.06,160.61a8,8,0,0,0-8.72,1.73l-40,40A8,8,0,0,0,168,216h40a8,8,0,0,0,8-8V168A8,8,0,0,0,211.06,160.61ZM208,40H168a8,8,0,0,0-5.66,13.66l40,40A8,8,0,0,0,216,88V48A8,8,0,0,0,208,40Z"></path>'), Zl = e.from_svg('<path d="M214,48V88a6,6,0,0,1-12,0V54H168a6,6,0,0,1,0-12h40A6,6,0,0,1,214,48ZM88,202H54V168a6,6,0,0,0-12,0v40a6,6,0,0,0,6,6H88a6,6,0,0,0,0-12Zm120-40a6,6,0,0,0-6,6v34H168a6,6,0,0,0,0,12h40a6,6,0,0,0,6-6V168A6,6,0,0,0,208,162ZM88,42H48a6,6,0,0,0-6,6V88a6,6,0,0,0,12,0V54H88a6,6,0,0,0,0-12Z"></path>'), Ml = e.from_svg('<path d="M216,48V88a8,8,0,0,1-16,0V56H168a8,8,0,0,1,0-16h40A8,8,0,0,1,216,48ZM88,200H56V168a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H88a8,8,0,0,0,0-16Zm120-40a8,8,0,0,0-8,8v32H168a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V168A8,8,0,0,0,208,160ZM88,40H48a8,8,0,0,0-8,8V88a8,8,0,0,0,16,0V56H88a8,8,0,0,0,0-16Z"></path>'), Hl = e.from_svg('<path d="M212,48V88a4,4,0,0,1-8,0V52H168a4,4,0,0,1,0-8h40A4,4,0,0,1,212,48ZM88,204H52V168a4,4,0,0,0-8,0v40a4,4,0,0,0,4,4H88a4,4,0,0,0,0-8Zm120-40a4,4,0,0,0-4,4v36H168a4,4,0,0,0,0,8h40a4,4,0,0,0,4-4V168A4,4,0,0,0,208,164ZM88,44H48a4,4,0,0,0-4,4V88a4,4,0,0,0,8,0V52H88a4,4,0,0,0,0-8Z"></path>'), Vl = e.from_svg('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');
3216
3216
  function Sl(a, t) {
3217
3217
  e.push(t, !0);
3218
3218
  const r = ce();
3219
3219
  let v = e.rest_props(t, ["$$slots", "$$events", "$$legacy", "children"]), i = e.derived(() => t.weight ?? r.weight ?? "regular"), Z = e.derived(() => t.color ?? r.color ?? "currentColor"), V = e.derived(() => t.size ?? r.size ?? "1em"), _ = e.derived(() => t.mirrored ?? r.mirrored ?? !1);
3220
3220
  function C(n) {
3221
- let { weight: s, color: p, size: y, mirrored: x, ...o } = n;
3221
+ let { weight: s, color: p, size: y, mirrored: A, ...o } = n;
3222
3222
  return o;
3223
3223
  }
3224
3224
  var w = Vl();
@@ -3252,17 +3252,17 @@ function Sl(a, t) {
3252
3252
  var T = (n) => {
3253
3253
  var s = yl();
3254
3254
  e.append(n, s);
3255
- }, A = (n) => {
3255
+ }, x = (n) => {
3256
3256
  var s = e.comment(), p = e.first_child(s);
3257
3257
  {
3258
3258
  var y = (o) => {
3259
- var l = Al();
3259
+ var l = xl();
3260
3260
  e.next(), e.append(o, l);
3261
- }, x = (o) => {
3261
+ }, A = (o) => {
3262
3262
  var l = e.comment(), z = e.first_child(l);
3263
3263
  {
3264
3264
  var H = (d) => {
3265
- var u = xl();
3265
+ var u = Al();
3266
3266
  e.append(d, u);
3267
3267
  }, P = (d) => {
3268
3268
  var u = e.comment(), B = e.first_child(u);
@@ -3329,7 +3329,7 @@ function Sl(a, t) {
3329
3329
  e.if(
3330
3330
  p,
3331
3331
  (o) => {
3332
- e.get(i) === "duotone" ? o(y) : o(x, !1);
3332
+ e.get(i) === "duotone" ? o(y) : o(A, !1);
3333
3333
  },
3334
3334
  !0
3335
3335
  );
@@ -3337,7 +3337,7 @@ function Sl(a, t) {
3337
3337
  e.append(n, s);
3338
3338
  };
3339
3339
  e.if(N, (n) => {
3340
- e.get(i) === "bold" ? n(T) : n(A, !1);
3340
+ e.get(i) === "bold" ? n(T) : n(x, !1);
3341
3341
  });
3342
3342
  }
3343
3343
  e.reset(w), e.append(a, w), e.pop();
@@ -3348,7 +3348,7 @@ function Bl(a, t) {
3348
3348
  const r = ce();
3349
3349
  let v = e.rest_props(t, ["$$slots", "$$events", "$$legacy", "children"]), i = e.derived(() => t.weight ?? r.weight ?? "regular"), Z = e.derived(() => t.color ?? r.color ?? "currentColor"), V = e.derived(() => t.size ?? r.size ?? "1em"), _ = e.derived(() => t.mirrored ?? r.mirrored ?? !1);
3350
3350
  function C(n) {
3351
- let { weight: s, color: p, size: y, mirrored: x, ...o } = n;
3351
+ let { weight: s, color: p, size: y, mirrored: A, ...o } = n;
3352
3352
  return o;
3353
3353
  }
3354
3354
  var w = Tl();
@@ -3382,13 +3382,13 @@ function Bl(a, t) {
3382
3382
  var T = (n) => {
3383
3383
  var s = Cl();
3384
3384
  e.append(n, s);
3385
- }, A = (n) => {
3385
+ }, x = (n) => {
3386
3386
  var s = e.comment(), p = e.first_child(s);
3387
3387
  {
3388
3388
  var y = (o) => {
3389
3389
  var l = zl();
3390
3390
  e.next(), e.append(o, l);
3391
- }, x = (o) => {
3391
+ }, A = (o) => {
3392
3392
  var l = e.comment(), z = e.first_child(l);
3393
3393
  {
3394
3394
  var H = (d) => {
@@ -3459,7 +3459,7 @@ function Bl(a, t) {
3459
3459
  e.if(
3460
3460
  p,
3461
3461
  (o) => {
3462
- e.get(i) === "duotone" ? o(y) : o(x, !1);
3462
+ e.get(i) === "duotone" ? o(y) : o(A, !1);
3463
3463
  },
3464
3464
  !0
3465
3465
  );
@@ -3467,7 +3467,7 @@ function Bl(a, t) {
3467
3467
  e.append(n, s);
3468
3468
  };
3469
3469
  e.if(N, (n) => {
3470
- e.get(i) === "bold" ? n(T) : n(A, !1);
3470
+ e.get(i) === "bold" ? n(T) : n(x, !1);
3471
3471
  });
3472
3472
  }
3473
3473
  e.reset(w), e.append(a, w), e.pop();
@@ -3478,7 +3478,7 @@ function mt(a, t) {
3478
3478
  const r = ce();
3479
3479
  let v = e.rest_props(t, ["$$slots", "$$events", "$$legacy", "children"]), i = e.derived(() => t.weight ?? r.weight ?? "regular"), Z = e.derived(() => t.color ?? r.color ?? "currentColor"), V = e.derived(() => t.size ?? r.size ?? "1em"), _ = e.derived(() => t.mirrored ?? r.mirrored ?? !1);
3480
3480
  function C(n) {
3481
- let { weight: s, color: p, size: y, mirrored: x, ...o } = n;
3481
+ let { weight: s, color: p, size: y, mirrored: A, ...o } = n;
3482
3482
  return o;
3483
3483
  }
3484
3484
  var w = Nl();
@@ -3512,13 +3512,13 @@ function mt(a, t) {
3512
3512
  var T = (n) => {
3513
3513
  var s = El();
3514
3514
  e.append(n, s);
3515
- }, A = (n) => {
3515
+ }, x = (n) => {
3516
3516
  var s = e.comment(), p = e.first_child(s);
3517
3517
  {
3518
3518
  var y = (o) => {
3519
3519
  var l = Fl();
3520
3520
  e.next(), e.append(o, l);
3521
- }, x = (o) => {
3521
+ }, A = (o) => {
3522
3522
  var l = e.comment(), z = e.first_child(l);
3523
3523
  {
3524
3524
  var H = (d) => {
@@ -3589,7 +3589,7 @@ function mt(a, t) {
3589
3589
  e.if(
3590
3590
  p,
3591
3591
  (o) => {
3592
- e.get(i) === "duotone" ? o(y) : o(x, !1);
3592
+ e.get(i) === "duotone" ? o(y) : o(A, !1);
3593
3593
  },
3594
3594
  !0
3595
3595
  );
@@ -3597,7 +3597,7 @@ function mt(a, t) {
3597
3597
  e.append(n, s);
3598
3598
  };
3599
3599
  e.if(N, (n) => {
3600
- e.get(i) === "bold" ? n(T) : n(A, !1);
3600
+ e.get(i) === "bold" ? n(T) : n(x, !1);
3601
3601
  });
3602
3602
  }
3603
3603
  e.reset(w), e.append(a, w), e.pop();
@@ -3608,7 +3608,7 @@ function Ql(a, t) {
3608
3608
  const r = ce();
3609
3609
  let v = e.rest_props(t, ["$$slots", "$$events", "$$legacy", "children"]), i = e.derived(() => t.weight ?? r.weight ?? "regular"), Z = e.derived(() => t.color ?? r.color ?? "currentColor"), V = e.derived(() => t.size ?? r.size ?? "1em"), _ = e.derived(() => t.mirrored ?? r.mirrored ?? !1);
3610
3610
  function C(n) {
3611
- let { weight: s, color: p, size: y, mirrored: x, ...o } = n;
3611
+ let { weight: s, color: p, size: y, mirrored: A, ...o } = n;
3612
3612
  return o;
3613
3613
  }
3614
3614
  var w = Wl();
@@ -3642,13 +3642,13 @@ function Ql(a, t) {
3642
3642
  var T = (n) => {
3643
3643
  var s = Dl();
3644
3644
  e.append(n, s);
3645
- }, A = (n) => {
3645
+ }, x = (n) => {
3646
3646
  var s = e.comment(), p = e.first_child(s);
3647
3647
  {
3648
3648
  var y = (o) => {
3649
3649
  var l = Xl();
3650
3650
  e.next(), e.append(o, l);
3651
- }, x = (o) => {
3651
+ }, A = (o) => {
3652
3652
  var l = e.comment(), z = e.first_child(l);
3653
3653
  {
3654
3654
  var H = (d) => {
@@ -3719,7 +3719,7 @@ function Ql(a, t) {
3719
3719
  e.if(
3720
3720
  p,
3721
3721
  (o) => {
3722
- e.get(i) === "duotone" ? o(y) : o(x, !1);
3722
+ e.get(i) === "duotone" ? o(y) : o(A, !1);
3723
3723
  },
3724
3724
  !0
3725
3725
  );
@@ -3727,7 +3727,7 @@ function Ql(a, t) {
3727
3727
  e.append(n, s);
3728
3728
  };
3729
3729
  e.if(N, (n) => {
3730
- e.get(i) === "bold" ? n(T) : n(A, !1);
3730
+ e.get(i) === "bold" ? n(T) : n(x, !1);
3731
3731
  });
3732
3732
  }
3733
3733
  e.reset(w), e.append(a, w), e.pop();
@@ -3738,7 +3738,7 @@ function os(a, t) {
3738
3738
  const r = ce();
3739
3739
  let v = e.rest_props(t, ["$$slots", "$$events", "$$legacy", "children"]), i = e.derived(() => t.weight ?? r.weight ?? "regular"), Z = e.derived(() => t.color ?? r.color ?? "currentColor"), V = e.derived(() => t.size ?? r.size ?? "1em"), _ = e.derived(() => t.mirrored ?? r.mirrored ?? !1);
3740
3740
  function C(n) {
3741
- let { weight: s, color: p, size: y, mirrored: x, ...o } = n;
3741
+ let { weight: s, color: p, size: y, mirrored: A, ...o } = n;
3742
3742
  return o;
3743
3743
  }
3744
3744
  var w = ns();
@@ -3772,13 +3772,13 @@ function os(a, t) {
3772
3772
  var T = (n) => {
3773
3773
  var s = Jl();
3774
3774
  e.append(n, s);
3775
- }, A = (n) => {
3775
+ }, x = (n) => {
3776
3776
  var s = e.comment(), p = e.first_child(s);
3777
3777
  {
3778
3778
  var y = (o) => {
3779
3779
  var l = $l();
3780
3780
  e.next(), e.append(o, l);
3781
- }, x = (o) => {
3781
+ }, A = (o) => {
3782
3782
  var l = e.comment(), z = e.first_child(l);
3783
3783
  {
3784
3784
  var H = (d) => {
@@ -3849,7 +3849,7 @@ function os(a, t) {
3849
3849
  e.if(
3850
3850
  p,
3851
3851
  (o) => {
3852
- e.get(i) === "duotone" ? o(y) : o(x, !1);
3852
+ e.get(i) === "duotone" ? o(y) : o(A, !1);
3853
3853
  },
3854
3854
  !0
3855
3855
  );
@@ -3857,15 +3857,15 @@ function os(a, t) {
3857
3857
  e.append(n, s);
3858
3858
  };
3859
3859
  e.if(N, (n) => {
3860
- e.get(i) === "bold" ? n(T) : n(A, !1);
3860
+ e.get(i) === "bold" ? n(T) : n(x, !1);
3861
3861
  });
3862
3862
  }
3863
3863
  e.reset(w), e.append(a, w), e.pop();
3864
3864
  }
3865
3865
  var is = e.from_html("<button><!></button>"), ls = e.from_html("<button><!></button>"), ss = e.from_html("<button><!></button>"), cs = e.from_html("<button><!></button>"), ds = e.from_html("<button><!></button>"), vs = e.from_html('<div class="tooltip tooltip-left"><!></div>'), gs = e.from_html('<div class="tooltip tooltip-left"><!></div>'), fs = e.from_html('<div class="tooltip tooltip-left"><!></div>'), _s = e.from_html('<div class="tooltip tooltip-top"><!></div>'), us = e.from_html('<div class="tooltip tooltip-top"><!></div>'), ps = e.from_html('<div class="absolute z-600 bottom-6 right-6"><!> <!> <!> <!> <!></div>'), hs = e.from_html('<div class="tooltip tooltip-left"><!></div>'), ms = e.from_html('<div class="tooltip tooltip-left"><!></div>'), bs = e.from_html('<div class="tooltip tooltip-top"><!></div>'), ws = e.from_html('<div class="tooltip tooltip-top"><!></div>'), ys = e.from_html('<div class="fab fab-flower fab-top-left absolute z-600 pointer-events-auto bottom-6 right-6"><div tabindex="0" role="button" class="btn btn-lg btn-primary btn-circle shadow-xl"><span class="sr-only"> </span> <!></div> <div class="fab-main-action tooltip tooltip-top"><!></div> <!> <!> <!> <!></div>');
3866
- function As(a, t) {
3866
+ function xs(a, t) {
3867
3867
  e.push(t, !0);
3868
- const r = (x) => {
3868
+ const r = (A) => {
3869
3869
  var o = is();
3870
3870
  o.__click = () => _.toggleSearchPanel();
3871
3871
  var l = e.child(o);
@@ -3877,8 +3877,8 @@ function As(a, t) {
3877
3877
  ]));
3878
3878
  },
3879
3879
  [() => /* @__PURE__ */ nt()]
3880
- ), e.append(x, o);
3881
- }, v = (x) => {
3880
+ ), e.append(A, o);
3881
+ }, v = (A) => {
3882
3882
  var o = ls();
3883
3883
  o.__click = () => _.toggleThumbnailGallery();
3884
3884
  var l = e.child(o);
@@ -3887,10 +3887,10 @@ function As(a, t) {
3887
3887
  e.set_attribute(o, "aria-label", z), e.set_class(o, 1, `btn btn-lg btn-circle shadow-lg ${_.showThumbnailGallery ? "btn-info" : "btn-neutral"}`);
3888
3888
  },
3889
3889
  [
3890
- () => _.showThumbnailGallery ? /* @__PURE__ */ Ae() : /* @__PURE__ */ xe()
3890
+ () => _.showThumbnailGallery ? /* @__PURE__ */ xe() : /* @__PURE__ */ Ae()
3891
3891
  ]
3892
- ), e.append(x, o);
3893
- }, i = (x) => {
3892
+ ), e.append(A, o);
3893
+ }, i = (A) => {
3894
3894
  var o = ss();
3895
3895
  o.__click = () => _.toggleFullScreen();
3896
3896
  var l = e.child(o);
@@ -3904,8 +3904,8 @@ function As(a, t) {
3904
3904
  _.isFullScreen ? P(z) : P(H, !1);
3905
3905
  });
3906
3906
  }
3907
- e.reset(o), e.template_effect(() => e.set_class(o, 1, `btn btn-circle btn-lg shadow-lg transition-all duration-300 ease-out ${_.isFullScreen ? "btn-warning" : "btn-neutral"}`)), e.append(x, o);
3908
- }, Z = (x) => {
3907
+ e.reset(o), e.template_effect(() => e.set_class(o, 1, `btn btn-circle btn-lg shadow-lg transition-all duration-300 ease-out ${_.isFullScreen ? "btn-warning" : "btn-neutral"}`)), e.append(A, o);
3908
+ }, Z = (A) => {
3909
3909
  var o = cs();
3910
3910
  o.__click = () => _.toggleAnnotations();
3911
3911
  var l = e.child(o);
@@ -3914,8 +3914,8 @@ function As(a, t) {
3914
3914
  e.set_attribute(o, "aria-label", z), e.set_class(o, 1, `btn btn-lg btn-circle shadow-lg ${_.showAnnotations ? "btn-error" : "btn-neutral"}`);
3915
3915
  },
3916
3916
  [() => /* @__PURE__ */ ot()]
3917
- ), e.append(x, o);
3918
- }, V = (x) => {
3917
+ ), e.append(A, o);
3918
+ }, V = (A) => {
3919
3919
  var o = ds();
3920
3920
  o.__click = () => _.toggleMetadataDialog();
3921
3921
  var l = e.child(o);
@@ -3924,17 +3924,17 @@ function As(a, t) {
3924
3924
  e.set_attribute(o, "aria-label", z), e.set_class(o, 1, `btn btn-lg btn-circle shadow-lg ${_.showMetadataDialog ? "btn-info" : "btn-neutral"}`);
3925
3925
  },
3926
3926
  [() => /* @__PURE__ */ it()]
3927
- ), e.append(x, o);
3928
- }, _ = he(pe), C = e.derived(() => _.config.rightMenu || {}), w = e.derived(() => e.get(C).showSearch !== !1), M = e.derived(() => e.get(C).showGallery !== !1), D = e.derived(() => e.get(C).showFullscreen !== !1), N = e.derived(() => e.get(C).showAnnotations !== !1), T = e.derived(() => e.get(C).showInfo !== !1), A = e.derived(() => [
3927
+ ), e.append(A, o);
3928
+ }, _ = he(pe), C = e.derived(() => _.config.rightMenu || {}), w = e.derived(() => e.get(C).showSearch !== !1), M = e.derived(() => e.get(C).showGallery !== !1), D = e.derived(() => e.get(C).showFullscreen !== !1), N = e.derived(() => e.get(C).showAnnotations !== !1), T = e.derived(() => e.get(C).showInfo !== !1), x = e.derived(() => [
3929
3929
  e.get(w) ? "search" : null,
3930
3930
  e.get(M) ? "gallery" : null,
3931
3931
  e.get(D) ? "fullscreen" : null,
3932
3932
  e.get(N) ? "annotations" : null,
3933
3933
  e.get(T) ? "info" : null
3934
- ].filter((x) => x !== null));
3934
+ ].filter((A) => A !== null));
3935
3935
  var n = e.comment(), s = e.first_child(n);
3936
3936
  {
3937
- var p = (x) => {
3937
+ var p = (A) => {
3938
3938
  var o = ps(), l = e.child(o);
3939
3939
  {
3940
3940
  var z = (c) => {
@@ -3950,7 +3950,7 @@ function As(a, t) {
3950
3950
  var P = (c) => {
3951
3951
  var m = gs(), E = e.child(m);
3952
3952
  v(E), e.reset(m), e.template_effect((I) => e.set_attribute(m, "data-tip", I), [
3953
- () => _.showThumbnailGallery ? /* @__PURE__ */ Ae() : /* @__PURE__ */ xe()
3953
+ () => _.showThumbnailGallery ? /* @__PURE__ */ xe() : /* @__PURE__ */ Ae()
3954
3954
  ]), e.append(c, m);
3955
3955
  };
3956
3956
  e.if(H, (c) => {
@@ -3991,8 +3991,8 @@ function As(a, t) {
3991
3991
  e.get(T) && c(g);
3992
3992
  });
3993
3993
  }
3994
- e.reset(o), e.append(x, o);
3995
- }, y = (x) => {
3994
+ e.reset(o), e.append(A, o);
3995
+ }, y = (A) => {
3996
3996
  var o = e.comment(), l = e.first_child(o);
3997
3997
  {
3998
3998
  var z = (H) => {
@@ -4007,7 +4007,7 @@ function As(a, t) {
4007
4007
  var m = (X) => {
4008
4008
  var h = hs(), k = e.child(h);
4009
4009
  v(k), e.reset(h), e.template_effect((re) => e.set_attribute(h, "data-tip", re), [
4010
- () => _.showThumbnailGallery ? /* @__PURE__ */ Ae() : /* @__PURE__ */ xe()
4010
+ () => _.showThumbnailGallery ? /* @__PURE__ */ xe() : /* @__PURE__ */ Ae()
4011
4011
  ]), e.append(X, h);
4012
4012
  };
4013
4013
  e.if(c, (X) => {
@@ -4058,27 +4058,27 @@ function As(a, t) {
4058
4058
  e.if(
4059
4059
  l,
4060
4060
  (H) => {
4061
- e.get(A).length > 1 && H(z);
4061
+ e.get(x).length > 1 && H(z);
4062
4062
  },
4063
4063
  !0
4064
4064
  );
4065
4065
  }
4066
- e.append(x, o);
4066
+ e.append(A, o);
4067
4067
  };
4068
- e.if(s, (x) => {
4069
- e.get(A).length === 1 ? x(p) : x(y, !1);
4068
+ e.if(s, (A) => {
4069
+ e.get(x).length === 1 ? A(p) : A(y, !1);
4070
4070
  });
4071
4071
  }
4072
4072
  e.append(a, n), e.pop();
4073
4073
  }
4074
4074
  e.delegate(["click"]);
4075
- var xs = e.from_svg('<path d="M222.41,155.16a12,12,0,0,0-11.56-.69A16,16,0,0,1,188,139,16.2,16.2,0,0,1,202.8,124a15.83,15.83,0,0,1,8,1.5A12,12,0,0,0,228,114.7V72a20,20,0,0,0-20-20H176a40.15,40.15,0,0,0-12.62-29.16,39.67,39.67,0,0,0-29.94-10.76,40.08,40.08,0,0,0-37.34,37C96,50.07,96,51,96,52H64A20,20,0,0,0,44,72v28a40.15,40.15,0,0,0-29.16,12.62A40,40,0,0,0,41.1,179.9a28.3,28.3,0,0,0,2.9.1v28a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V165.31A12,12,0,0,0,222.41,155.16ZM204,204H68V165.31a12,12,0,0,0-17.15-10.84A15.9,15.9,0,0,1,42.8,156,16.2,16.2,0,0,1,28,141.06a16,16,0,0,1,22.82-15.52A12,12,0,0,0,68,114.7V76h42.7a12,12,0,0,0,10.83-17.15A15.9,15.9,0,0,1,120,50.8,16.19,16.19,0,0,1,134.94,36a16,16,0,0,1,15.53,22.81A12,12,0,0,0,161.31,76H204v24c-1,0-1.93,0-2.9.11A40,40,0,0,0,204,180h0Z"></path>'), Zs = e.from_svg('<path d="M204,168a28,28,0,0,0,12-2.69V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V165.31a28,28,0,1,1,0-50.62V72a8,8,0,0,1,8-8h46.69a28,28,0,1,1,50.61,0H208a8,8,0,0,1,8,8v42.69A28,28,0,1,0,204,168Z" opacity="0.2"></path><path d="M220.27,158.54a8,8,0,0,0-7.7-.46,20,20,0,1,1,0-36.16A8,8,0,0,0,224,114.69V72a16,16,0,0,0-16-16H171.78a35.36,35.36,0,0,0,.22-4,36.15,36.15,0,0,0-11.36-26.25,36,36,0,0,0-60.55,23.63,36.56,36.56,0,0,0,.14,6.62H64A16,16,0,0,0,48,72v32.22a35.36,35.36,0,0,0-4-.22,36.12,36.12,0,0,0-26.24,11.36,35.7,35.7,0,0,0-9.69,27,36.08,36.08,0,0,0,33.31,33.6,36.56,36.56,0,0,0,6.62-.14V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V165.31A8,8,0,0,0,220.27,158.54ZM208,208H64V165.31a8,8,0,0,0-11.43-7.23,20,20,0,1,1,0-36.16A8,8,0,0,0,64,114.69V72h46.69a8,8,0,0,0,7.23-11.43,20,20,0,1,1,36.16,0A8,8,0,0,0,161.31,72H208v32.23a35.68,35.68,0,0,0-6.62-.14A36,36,0,0,0,204,176a35.36,35.36,0,0,0,4-.22Z"></path>', 1), Ms = e.from_svg('<path d="M165.78,224H208a16,16,0,0,0,16-16V170.35A8,8,0,0,0,212.94,163a23.37,23.37,0,0,1-8.94,1.77c-13.23,0-24-11.1-24-24.73s10.77-24.73,24-24.73a23.37,23.37,0,0,1,8.94,1.77A8,8,0,0,0,224,109.65V72a16,16,0,0,0-16-16H171.78a35.36,35.36,0,0,0,.22-4,36,36,0,0,0-72,0,35.36,35.36,0,0,0,.22,4H64A16,16,0,0,0,48,72v32.22a35.36,35.36,0,0,0-4-.22,36,36,0,0,0,0,72,35.36,35.36,0,0,0,4-.22V208a16,16,0,0,0,16,16h42.22"></path>'), Hs = e.from_svg('<path d="M219.21,160.24a6,6,0,0,0-5.78-.35,22,22,0,1,1-11.05-41.83,22.15,22.15,0,0,1,11.05,2.06A6,6,0,0,0,222,114.7V72a14,14,0,0,0-14-14H169.48a35,35,0,0,0,.52-6,34.1,34.1,0,0,0-10.73-24.78,33.64,33.64,0,0,0-25.45-9.15A34,34,0,0,0,102.54,58H64A14,14,0,0,0,50,72v34.53a34,34,0,0,0-30.79,10.2,34,34,0,0,0,22.31,57.18,34.34,34.34,0,0,0,8.48-.44V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V165.31A6,6,0,0,0,219.21,160.24ZM210,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V165.31a6,6,0,0,0-6-6,5.92,5.92,0,0,0-2.57.58,22,22,0,0,1-31.38-18.46,22,22,0,0,1,31.38-21.31A6,6,0,0,0,62,114.7V72a2,2,0,0,1,2-2h46.69a6,6,0,0,0,5.42-8.57,22.25,22.25,0,0,1-2-11,22,22,0,1,1,41.83,11A6,6,0,0,0,161.3,70H208a2,2,0,0,1,2,2v34.54a34,34,0,0,0-39.93,31.28,33.71,33.71,0,0,0,9.14,25.45A34.15,34.15,0,0,0,210,173.48Z"></path>'), Vs = e.from_svg('<path d="M220.27,158.54a8,8,0,0,0-7.7-.46,20,20,0,1,1,0-36.16A8,8,0,0,0,224,114.69V72a16,16,0,0,0-16-16H171.78a35.36,35.36,0,0,0,.22-4,36.11,36.11,0,0,0-11.36-26.24,36,36,0,0,0-60.55,23.62,36.56,36.56,0,0,0,.14,6.62H64A16,16,0,0,0,48,72v32.22a35.36,35.36,0,0,0-4-.22,36.12,36.12,0,0,0-26.24,11.36,35.7,35.7,0,0,0-9.69,27,36.08,36.08,0,0,0,33.31,33.6,35.68,35.68,0,0,0,6.62-.14V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V165.31A8,8,0,0,0,220.27,158.54ZM208,208H64V165.31a8,8,0,0,0-11.43-7.23,20,20,0,1,1,0-36.16A8,8,0,0,0,64,114.69V72h46.69a8,8,0,0,0,7.23-11.43,20,20,0,1,1,36.16,0A8,8,0,0,0,161.31,72H208v32.23a35.68,35.68,0,0,0-6.62-.14A36,36,0,0,0,204,176a35.36,35.36,0,0,0,4-.22Z"></path>'), Ss = e.from_svg('<path d="M218.14,161.93a4,4,0,0,0-3.86-.24,24,24,0,0,1-34.23-23.25,24,24,0,0,1,34.23-20.13A4,4,0,0,0,220,114.7V72a12,12,0,0,0-12-12H167a32,32,0,1,0-62.91-10.33A32.57,32.57,0,0,0,105,60H64A12,12,0,0,0,52,72v37a32,32,0,1,0-10.33,62.91A32.28,32.28,0,0,0,52,171v37a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V165.31A4,4,0,0,0,218.14,161.93ZM212,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V165.31a4,4,0,0,0-1.86-3.38,4,4,0,0,0-3.85-.24,24,24,0,0,1-34.24-20.13,24,24,0,0,1,34.24-23.25A4,4,0,0,0,60,114.7V72a4,4,0,0,1,4-4h46.69a4,4,0,0,0,3.62-5.71,24,24,0,0,1,20.13-34.24,24,24,0,0,1,23.25,34.24A4,4,0,0,0,161.31,68H208a4,4,0,0,1,4,4v37a32.57,32.57,0,0,0-10.33-.94A32,32,0,1,0,212,171Z"></path>'), Cs = e.from_svg('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');
4075
+ var As = e.from_svg('<path d="M222.41,155.16a12,12,0,0,0-11.56-.69A16,16,0,0,1,188,139,16.2,16.2,0,0,1,202.8,124a15.83,15.83,0,0,1,8,1.5A12,12,0,0,0,228,114.7V72a20,20,0,0,0-20-20H176a40.15,40.15,0,0,0-12.62-29.16,39.67,39.67,0,0,0-29.94-10.76,40.08,40.08,0,0,0-37.34,37C96,50.07,96,51,96,52H64A20,20,0,0,0,44,72v28a40.15,40.15,0,0,0-29.16,12.62A40,40,0,0,0,41.1,179.9a28.3,28.3,0,0,0,2.9.1v28a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V165.31A12,12,0,0,0,222.41,155.16ZM204,204H68V165.31a12,12,0,0,0-17.15-10.84A15.9,15.9,0,0,1,42.8,156,16.2,16.2,0,0,1,28,141.06a16,16,0,0,1,22.82-15.52A12,12,0,0,0,68,114.7V76h42.7a12,12,0,0,0,10.83-17.15A15.9,15.9,0,0,1,120,50.8,16.19,16.19,0,0,1,134.94,36a16,16,0,0,1,15.53,22.81A12,12,0,0,0,161.31,76H204v24c-1,0-1.93,0-2.9.11A40,40,0,0,0,204,180h0Z"></path>'), Zs = e.from_svg('<path d="M204,168a28,28,0,0,0,12-2.69V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V165.31a28,28,0,1,1,0-50.62V72a8,8,0,0,1,8-8h46.69a28,28,0,1,1,50.61,0H208a8,8,0,0,1,8,8v42.69A28,28,0,1,0,204,168Z" opacity="0.2"></path><path d="M220.27,158.54a8,8,0,0,0-7.7-.46,20,20,0,1,1,0-36.16A8,8,0,0,0,224,114.69V72a16,16,0,0,0-16-16H171.78a35.36,35.36,0,0,0,.22-4,36.15,36.15,0,0,0-11.36-26.25,36,36,0,0,0-60.55,23.63,36.56,36.56,0,0,0,.14,6.62H64A16,16,0,0,0,48,72v32.22a35.36,35.36,0,0,0-4-.22,36.12,36.12,0,0,0-26.24,11.36,35.7,35.7,0,0,0-9.69,27,36.08,36.08,0,0,0,33.31,33.6,36.56,36.56,0,0,0,6.62-.14V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V165.31A8,8,0,0,0,220.27,158.54ZM208,208H64V165.31a8,8,0,0,0-11.43-7.23,20,20,0,1,1,0-36.16A8,8,0,0,0,64,114.69V72h46.69a8,8,0,0,0,7.23-11.43,20,20,0,1,1,36.16,0A8,8,0,0,0,161.31,72H208v32.23a35.68,35.68,0,0,0-6.62-.14A36,36,0,0,0,204,176a35.36,35.36,0,0,0,4-.22Z"></path>', 1), Ms = e.from_svg('<path d="M165.78,224H208a16,16,0,0,0,16-16V170.35A8,8,0,0,0,212.94,163a23.37,23.37,0,0,1-8.94,1.77c-13.23,0-24-11.1-24-24.73s10.77-24.73,24-24.73a23.37,23.37,0,0,1,8.94,1.77A8,8,0,0,0,224,109.65V72a16,16,0,0,0-16-16H171.78a35.36,35.36,0,0,0,.22-4,36,36,0,0,0-72,0,35.36,35.36,0,0,0,.22,4H64A16,16,0,0,0,48,72v32.22a35.36,35.36,0,0,0-4-.22,36,36,0,0,0,0,72,35.36,35.36,0,0,0,4-.22V208a16,16,0,0,0,16,16h42.22"></path>'), Hs = e.from_svg('<path d="M219.21,160.24a6,6,0,0,0-5.78-.35,22,22,0,1,1-11.05-41.83,22.15,22.15,0,0,1,11.05,2.06A6,6,0,0,0,222,114.7V72a14,14,0,0,0-14-14H169.48a35,35,0,0,0,.52-6,34.1,34.1,0,0,0-10.73-24.78,33.64,33.64,0,0,0-25.45-9.15A34,34,0,0,0,102.54,58H64A14,14,0,0,0,50,72v34.53a34,34,0,0,0-30.79,10.2,34,34,0,0,0,22.31,57.18,34.34,34.34,0,0,0,8.48-.44V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V165.31A6,6,0,0,0,219.21,160.24ZM210,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V165.31a6,6,0,0,0-6-6,5.92,5.92,0,0,0-2.57.58,22,22,0,0,1-31.38-18.46,22,22,0,0,1,31.38-21.31A6,6,0,0,0,62,114.7V72a2,2,0,0,1,2-2h46.69a6,6,0,0,0,5.42-8.57,22.25,22.25,0,0,1-2-11,22,22,0,1,1,41.83,11A6,6,0,0,0,161.3,70H208a2,2,0,0,1,2,2v34.54a34,34,0,0,0-39.93,31.28,33.71,33.71,0,0,0,9.14,25.45A34.15,34.15,0,0,0,210,173.48Z"></path>'), Vs = e.from_svg('<path d="M220.27,158.54a8,8,0,0,0-7.7-.46,20,20,0,1,1,0-36.16A8,8,0,0,0,224,114.69V72a16,16,0,0,0-16-16H171.78a35.36,35.36,0,0,0,.22-4,36.11,36.11,0,0,0-11.36-26.24,36,36,0,0,0-60.55,23.62,36.56,36.56,0,0,0,.14,6.62H64A16,16,0,0,0,48,72v32.22a35.36,35.36,0,0,0-4-.22,36.12,36.12,0,0,0-26.24,11.36,35.7,35.7,0,0,0-9.69,27,36.08,36.08,0,0,0,33.31,33.6,35.68,35.68,0,0,0,6.62-.14V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V165.31A8,8,0,0,0,220.27,158.54ZM208,208H64V165.31a8,8,0,0,0-11.43-7.23,20,20,0,1,1,0-36.16A8,8,0,0,0,64,114.69V72h46.69a8,8,0,0,0,7.23-11.43,20,20,0,1,1,36.16,0A8,8,0,0,0,161.31,72H208v32.23a35.68,35.68,0,0,0-6.62-.14A36,36,0,0,0,204,176a35.36,35.36,0,0,0,4-.22Z"></path>'), Ss = e.from_svg('<path d="M218.14,161.93a4,4,0,0,0-3.86-.24,24,24,0,0,1-34.23-23.25,24,24,0,0,1,34.23-20.13A4,4,0,0,0,220,114.7V72a12,12,0,0,0-12-12H167a32,32,0,1,0-62.91-10.33A32.57,32.57,0,0,0,105,60H64A12,12,0,0,0,52,72v37a32,32,0,1,0-10.33,62.91A32.28,32.28,0,0,0,52,171v37a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V165.31A4,4,0,0,0,218.14,161.93ZM212,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V165.31a4,4,0,0,0-1.86-3.38,4,4,0,0,0-3.85-.24,24,24,0,0,1-34.24-20.13,24,24,0,0,1,34.24-23.25A4,4,0,0,0,60,114.7V72a4,4,0,0,1,4-4h46.69a4,4,0,0,0,3.62-5.71,24,24,0,0,1,20.13-34.24,24,24,0,0,1,23.25,34.24A4,4,0,0,0,161.31,68H208a4,4,0,0,1,4,4v37a32.57,32.57,0,0,0-10.33-.94A32,32,0,1,0,212,171Z"></path>'), Cs = e.from_svg('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');
4076
4076
  function zs(a, t) {
4077
4077
  e.push(t, !0);
4078
4078
  const r = ce();
4079
4079
  let v = e.rest_props(t, ["$$slots", "$$events", "$$legacy", "children"]), i = e.derived(() => t.weight ?? r.weight ?? "regular"), Z = e.derived(() => t.color ?? r.color ?? "currentColor"), V = e.derived(() => t.size ?? r.size ?? "1em"), _ = e.derived(() => t.mirrored ?? r.mirrored ?? !1);
4080
4080
  function C(n) {
4081
- let { weight: s, color: p, size: y, mirrored: x, ...o } = n;
4081
+ let { weight: s, color: p, size: y, mirrored: A, ...o } = n;
4082
4082
  return o;
4083
4083
  }
4084
4084
  var w = Cs();
@@ -4110,15 +4110,15 @@ function zs(a, t) {
4110
4110
  var N = e.sibling(M, 2);
4111
4111
  {
4112
4112
  var T = (n) => {
4113
- var s = xs();
4113
+ var s = As();
4114
4114
  e.append(n, s);
4115
- }, A = (n) => {
4115
+ }, x = (n) => {
4116
4116
  var s = e.comment(), p = e.first_child(s);
4117
4117
  {
4118
4118
  var y = (o) => {
4119
4119
  var l = Zs();
4120
4120
  e.next(), e.append(o, l);
4121
- }, x = (o) => {
4121
+ }, A = (o) => {
4122
4122
  var l = e.comment(), z = e.first_child(l);
4123
4123
  {
4124
4124
  var H = (d) => {
@@ -4189,7 +4189,7 @@ function zs(a, t) {
4189
4189
  e.if(
4190
4190
  p,
4191
4191
  (o) => {
4192
- e.get(i) === "duotone" ? o(y) : o(x, !1);
4192
+ e.get(i) === "duotone" ? o(y) : o(A, !1);
4193
4193
  },
4194
4194
  !0
4195
4195
  );
@@ -4197,7 +4197,7 @@ function zs(a, t) {
4197
4197
  e.append(n, s);
4198
4198
  };
4199
4199
  e.if(N, (n) => {
4200
- e.get(i) === "bold" ? n(T) : n(A, !1);
4200
+ e.get(i) === "bold" ? n(T) : n(x, !1);
4201
4201
  });
4202
4202
  }
4203
4203
  e.reset(w), e.append(a, w), e.pop();
@@ -4214,30 +4214,30 @@ function Ls(a, t) {
4214
4214
  {
4215
4215
  var w = (M) => {
4216
4216
  var D = Is(), N = e.child(D);
4217
- e.each(N, 21, () => e.get(v), (y) => y.id, (y, x) => {
4218
- const o = e.derived(() => e.get(x).icon), l = e.derived(() => typeof Fe[e.get(x).tooltip] == "function" ? Fe[e.get(x).tooltip]() : e.get(x).tooltip);
4217
+ e.each(N, 21, () => e.get(v), (y) => y.id, (y, A) => {
4218
+ const o = e.derived(() => e.get(A).icon), l = e.derived(() => typeof Fe[e.get(A).tooltip] == "function" ? Fe[e.get(A).tooltip]() : e.get(A).tooltip);
4219
4219
  var z = ks(), H = e.child(z);
4220
4220
  H.__click = () => {
4221
- e.get(x).onClick(), e.set(i, !1);
4221
+ e.get(A).onClick(), e.set(i, !1);
4222
4222
  };
4223
4223
  var P = e.child(H);
4224
4224
  e.component(P, () => e.get(o), (d, u) => {
4225
4225
  u(d, { size: 28, weight: "bold" });
4226
4226
  }), e.reset(H), e.reset(z), e.template_effect(
4227
4227
  (d) => {
4228
- e.set_attribute(z, "data-tip", e.get(l)), e.set_attribute(H, "aria-label", e.get(x).tooltip), e.set_class(H, 1, `btn btn-lg btn-circle shadow-lg ${d ?? ""}`);
4228
+ e.set_attribute(z, "data-tip", e.get(l)), e.set_attribute(H, "aria-label", e.get(A).tooltip), e.set_class(H, 1, `btn btn-lg btn-circle shadow-lg ${d ?? ""}`);
4229
4229
  },
4230
4230
  [
4231
4231
  () => {
4232
4232
  var d, u;
4233
- return (u = (d = e.get(x)).isActive) != null && u.call(d) ? e.get(x).activeClass ?? "btn-primary" : "btn-neutral";
4233
+ return (u = (d = e.get(A)).isActive) != null && u.call(d) ? e.get(A).activeClass ?? "btn-primary" : "btn-neutral";
4234
4234
  }
4235
4235
  ]
4236
4236
  ), e.append(y, z);
4237
4237
  }), e.reset(N);
4238
- var T = e.sibling(N, 2), A = e.child(T);
4239
- A.__click = V;
4240
- var n = e.child(A);
4238
+ var T = e.sibling(N, 2), x = e.child(T);
4239
+ x.__click = V;
4240
+ var n = e.child(x);
4241
4241
  {
4242
4242
  var s = (y) => {
4243
4243
  Pe(y, { size: 28, weight: "bold" });
@@ -4248,8 +4248,8 @@ function Ls(a, t) {
4248
4248
  e.get(i) ? y(s) : y(p, !1);
4249
4249
  });
4250
4250
  }
4251
- e.reset(A), e.reset(T), e.reset(D), e.template_effect(() => {
4252
- e.set_class(N, 1, `flex flex-col-reverse gap-3 mb-3 transition-all duration-300 origin-bottom ${e.get(i) ? "opacity-100 translate-y-0 scale-100" : "opacity-0 translate-y-4 scale-90 pointer-events-none"}`), e.set_attribute(T, "data-tip", e.get(Z)), e.set_class(A, 1, `btn btn-lg btn-secondary btn-circle shadow-xl transition-transform duration-300 ${e.get(i) ? "rotate-90" : ""}`), e.set_attribute(A, "aria-label", e.get(Z));
4251
+ e.reset(x), e.reset(T), e.reset(D), e.template_effect(() => {
4252
+ e.set_class(N, 1, `flex flex-col-reverse gap-3 mb-3 transition-all duration-300 origin-bottom ${e.get(i) ? "opacity-100 translate-y-0 scale-100" : "opacity-0 translate-y-4 scale-90 pointer-events-none"}`), e.set_attribute(T, "data-tip", e.get(Z)), e.set_class(x, 1, `btn btn-lg btn-secondary btn-circle shadow-xl transition-transform duration-300 ${e.get(i) ? "rotate-90" : ""}`), e.set_attribute(x, "aria-label", e.get(Z));
4253
4253
  }), e.append(M, D);
4254
4254
  };
4255
4255
  e.if(C, (M) => {
@@ -4287,7 +4287,7 @@ function Rs(a, t) {
4287
4287
  D.__click = () => r.toggleMetadataDialog(), e.reset(M);
4288
4288
  var N = e.sibling(M, 2), T = e.child(N, !0);
4289
4289
  e.reset(N);
4290
- var A = e.sibling(N, 2), n = e.child(A);
4290
+ var x = e.sibling(N, 2), n = e.child(x);
4291
4291
  {
4292
4292
  var s = (g) => {
4293
4293
  var c = Ps(), m = e.child(c), E = e.child(m);
@@ -4299,14 +4299,14 @@ function Rs(a, t) {
4299
4299
  }
4300
4300
  var p = e.sibling(n, 2), y = e.child(p);
4301
4301
  {
4302
- var x = (g) => {
4302
+ var A = (g) => {
4303
4303
  var c = Ts(), m = e.first_child(c), E = e.child(m, !0);
4304
4304
  e.reset(m);
4305
4305
  var I = e.sibling(m, 2), f = e.child(I);
4306
4306
  e.html(f, () => e.get(V)), e.reset(I), e.template_effect((b) => e.set_text(E, b), [() => /* @__PURE__ */ tt()]), e.append(g, c);
4307
4307
  };
4308
4308
  e.if(y, (g) => {
4309
- e.get(V) && g(x);
4309
+ e.get(V) && g(A);
4310
4310
  });
4311
4311
  }
4312
4312
  var o = e.sibling(y, 2);
@@ -4332,8 +4332,8 @@ function Rs(a, t) {
4332
4332
  e.reset(E);
4333
4333
  var f = e.sibling(E, 2), b = e.child(f);
4334
4334
  e.html(b, () => e.get(c).value), e.reset(f), e.template_effect(() => e.set_text(I, e.get(c).label)), e.append(g, m);
4335
- }), e.reset(p), e.reset(A);
4336
- var H = e.sibling(A, 2), P = e.child(H), d = e.child(P);
4335
+ }), e.reset(p), e.reset(x);
4336
+ var H = e.sibling(x, 2), P = e.child(H), d = e.child(P);
4337
4337
  d.__click = () => r.toggleMetadataDialog();
4338
4338
  var u = e.child(d, !0);
4339
4339
  e.reset(d), e.reset(P), e.reset(H), e.reset(w);
@@ -4359,7 +4359,7 @@ e.from_svg('<path d="M134,32V64a6,6,0,0,1-12,0V32a6,6,0,0,1,12,0Zm39.25,56.75A6,
4359
4359
  e.from_svg('<path d="M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"></path>');
4360
4360
  e.from_svg('<path d="M132,32V64a4,4,0,0,1-8,0V32a4,4,0,0,1,8,0Zm41.25,54.75a4,4,0,0,0,2.83-1.18L198.71,63a4,4,0,0,0-5.66-5.66L170.43,79.92a4,4,0,0,0,2.82,6.83ZM224,124H192a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8Zm-47.92,46.43a4,4,0,1,0-5.65,5.65l22.62,22.63a4,4,0,0,0,5.66-5.66ZM128,188a4,4,0,0,0-4,4v32a4,4,0,0,0,8,0V192A4,4,0,0,0,128,188ZM79.92,170.43,57.29,193.05A4,4,0,0,0,63,198.71l22.62-22.63a4,4,0,1,0-5.65-5.65ZM68,128a4,4,0,0,0-4-4H32a4,4,0,0,0,0,8H64A4,4,0,0,0,68,128ZM63,57.29A4,4,0,0,0,57.29,63L79.92,85.57a4,4,0,1,0,5.65-5.65Z"></path>');
4361
4361
  e.from_svg('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');
4362
- var Gs = e.from_html('<button class="btn btn-sm btn-circle btn-ghost"><!></button>'), Os = e.from_html('<span class="loading loading-spinner loading-xs"></span>'), js = e.from_html('<div class="flex justify-center p-8"><span class="loading loading-spinner loading-lg text-primary"></span></div>'), Ns = e.from_html('<div class="text-center opacity-50 p-4"> </div>'), Ds = e.from_html('<div class="text-center opacity-50 p-4 text-sm"> </div>'), Xs = e.from_html('<div class="leading-relaxed"><span><!></span> <span class="bg-yellow-200 text-yellow-900 font-bold px-0.5 rounded"><!></span> <span><!></span></div>'), Ys = e.from_html('<div class="leading-relaxed"><!></div>'), Us = e.from_html('<div class="p-3 text-sm border-b border-base-200 last:border-none hover:bg-base-200/30 transition-colors"><!></div>'), qs = e.from_html('<button class="w-full text-left bg-base-100 shadow-sm border border-base-200 rounded-box cursor-pointer hover:shadow-md transition-all block p-0 select-none"><div class="text-sm font-bold opacity-80 bg-base-200/50 flex items-center justify-between py-2 px-3 border-b border-base-200"><span> </span> <span class="badge badge-sm badge-ghost"> </span></div> <div class="p-0"></div></button>'), Ks = e.from_html('<div class="text-xs font-bold opacity-50 uppercase tracking-wider pb-2"> </div> <!>', 1), Ws = e.from_html('<div role="dialog"><div class="flex items-center justify-between p-4 border-b border-base-300"><h2 class="font-bold text-lg"> </h2> <!></div> <div class="p-4 border-b border-base-300 shrink-0"><div class="relative w-full"><input type="text" class="input input-bordered w-full pr-12"/> <button class="btn btn-primary absolute right-0 top-0 h-full rounded-l-none"><!></button></div></div> <div class="flex-1 overflow-y-auto p-4 space-y-4"><!></div></div>');
4362
+ var Gs = e.from_html('<button class="btn btn-sm btn-circle btn-ghost"><!></button>'), Os = e.from_html('<span class="loading loading-spinner loading-xs"></span>'), js = e.from_html('<div class="flex justify-center p-8"><span class="loading loading-spinner loading-lg text-primary"></span></div>'), Ns = e.from_html('<div class="text-center opacity-50 p-4"> </div>'), Ds = e.from_html('<div class="text-center opacity-50 p-4 text-sm"> </div>'), Xs = e.from_html('<div class="leading-relaxed"><span><!></span> <span class="bg-yellow-200 text-yellow-900 font-bold px-0.5 rounded"><!></span> <span><!></span></div>'), Ys = e.from_html('<div class="leading-relaxed"><!></div>'), Us = e.from_html('<div class="p-3 text-sm border-b border-base-200 last:border-none hover:bg-base-200/30 transition-colors"><!></div>'), qs = e.from_html('<button><div class="text-sm font-bold opacity-80 bg-base-200/50 flex items-center justify-between py-2 px-3 border-b border-base-200"><span> </span> <span class="badge badge-sm badge-ghost"> </span></div> <div class="p-0"></div></button>'), Ks = e.from_html('<div class="text-xs font-bold opacity-50 uppercase tracking-wider pb-2"> </div> <!>', 1), Ws = e.from_html('<div role="dialog"><div class="flex items-center justify-between p-4 border-b border-base-300"><h2 class="font-bold text-lg"> </h2> <!></div> <div class="p-4 border-b border-base-300 shrink-0"><div class="relative w-full"><input type="text" class="input input-bordered w-full pr-12"/> <button class="btn btn-primary absolute right-0 top-0 h-full rounded-l-none"><!></button></div></div> <div class="flex-1 overflow-y-auto p-4 space-y-4"><!></div></div>');
4363
4363
  function Oe(a, t) {
4364
4364
  e.push(t, !0);
4365
4365
  const r = he(pe);
@@ -4377,8 +4377,8 @@ function Oe(a, t) {
4377
4377
  T.key === "Enter" && Z();
4378
4378
  }
4379
4379
  function _(T) {
4380
- const A = r.canvases[T];
4381
- A && r.setCanvas(A.id);
4380
+ const x = r.canvases[T];
4381
+ x && r.setCanvas(x.id);
4382
4382
  }
4383
4383
  let C = e.derived(() => {
4384
4384
  var T;
@@ -4390,18 +4390,18 @@ function Oe(a, t) {
4390
4390
  var M = e.comment(), D = e.first_child(M);
4391
4391
  {
4392
4392
  var N = (T) => {
4393
- var A = Ws(), n = e.child(A), s = e.child(n), p = e.child(s, !0);
4393
+ var x = Ws(), n = e.child(x), s = e.child(n), p = e.child(s, !0);
4394
4394
  e.reset(s);
4395
4395
  var y = e.sibling(s, 2);
4396
4396
  {
4397
- var x = (c) => {
4397
+ var A = (c) => {
4398
4398
  var m = Gs();
4399
4399
  m.__click = () => r.toggleSearchPanel();
4400
4400
  var E = e.child(m);
4401
4401
  Pe(E, { size: 20, weight: "bold" }), e.reset(m), e.template_effect((I) => e.set_attribute(m, "aria-label", I), [() => /* @__PURE__ */ _t()]), e.append(c, m);
4402
4402
  };
4403
4403
  e.if(y, (c) => {
4404
- e.get(i) && c(x);
4404
+ e.get(i) && c(A);
4405
4405
  });
4406
4406
  }
4407
4407
  e.reset(n);
@@ -4473,7 +4473,7 @@ function Oe(a, t) {
4473
4473
  }
4474
4474
  e.reset(J), e.append(ae, J);
4475
4475
  }), e.reset(oe), e.reset(ee), e.template_effect(() => {
4476
- e.set_text(U, e.get(te).canvasLabel), e.set_text(ie, `${e.get(te).hits.length ?? ""}
4476
+ e.set_class(ee, 1, `w-full text-left bg-base-100 shadow-sm border border-base-200 rounded-box cursor-pointer hover:shadow-md transition-all block p-0 select-none ${r.currentCanvasIndex === e.get(te).canvasIndex ? "ring-2 ring-primary bg-primary/5" : ""}`), e.set_text(U, e.get(te).canvasLabel), e.set_text(ie, `${e.get(te).hits.length ?? ""}
4477
4477
  ${e.get(te).hits.length === 1 ? "match" : "matches"}`);
4478
4478
  }), e.append(K, ee);
4479
4479
  }), e.template_effect((K) => e.set_text(F, K), [
@@ -4504,9 +4504,9 @@ function Oe(a, t) {
4504
4504
  r.isSearching ? c(G) : c(g, !1);
4505
4505
  });
4506
4506
  }
4507
- e.reset(B), e.reset(A), e.template_effect(
4507
+ e.reset(B), e.reset(x), e.template_effect(
4508
4508
  (c, m, E, I) => {
4509
- e.set_class(A, 1, `h-full bg-base-200 shadow-2xl z-100 flex flex-col transition-[width] duration-200 ${r.config.transparentBackground ? "" : e.get(w) === "left" ? "border-r border-base-300" : "border-l border-base-300"}`), e.set_style(A, `width: ${e.get(C) ?? ""}`), e.set_attribute(A, "aria-label", c), e.set_text(p, m), e.set_attribute(z, "placeholder", E), e.set_attribute(H, "aria-label", I);
4509
+ e.set_class(x, 1, `h-full bg-base-200 shadow-2xl z-100 flex flex-col transition-[width] duration-200 ${r.config.transparentBackground ? "" : e.get(w) === "left" ? "border-r border-base-300" : "border-l border-base-300"}`), e.set_style(x, `width: ${e.get(C) ?? ""}`), e.set_attribute(x, "aria-label", c), e.set_text(p, m), e.set_attribute(z, "placeholder", E), e.set_attribute(H, "aria-label", I);
4510
4510
  },
4511
4511
  [
4512
4512
  () => /* @__PURE__ */ Se(),
@@ -4514,7 +4514,7 @@ function Oe(a, t) {
4514
4514
  () => /* @__PURE__ */ Ke(),
4515
4515
  () => /* @__PURE__ */ Se()
4516
4516
  ]
4517
- ), e.bind_value(z, () => e.get(v), (c) => e.set(v, c)), e.append(T, A);
4517
+ ), e.bind_value(z, () => e.get(v), (c) => e.set(v, c)), e.append(T, x);
4518
4518
  };
4519
4519
  e.if(D, (T) => {
4520
4520
  r.showSearchPanel && T(N);
@@ -4584,7 +4584,7 @@ function w1(a, t) {
4584
4584
  }), N = e.derived(() => {
4585
4585
  var L;
4586
4586
  return _.showSearchPanel && ((L = _.config.search) == null ? void 0 : L.position) !== "left" || _.showThumbnailGallery && _.dockSide === "right" || _.pluginPanels.some((F) => F.position === "right" && F.isVisible());
4587
- }), T = e.derived(() => _.manifestEntry), A = e.derived(() => _.canvases), n = e.derived(() => _.currentCanvasIndex);
4587
+ }), T = e.derived(() => _.manifestEntry), x = e.derived(() => _.canvases), n = e.derived(() => _.currentCanvasIndex);
4588
4588
  e.user_effect(() => {
4589
4589
  if (_.pendingSearchQuery && e.get(T) && !e.get(T).isFetching && !e.get(T).error && e.get(T).manifesto) {
4590
4590
  const L = _.pendingSearchQuery;
@@ -4592,13 +4592,13 @@ function w1(a, t) {
4592
4592
  }
4593
4593
  }), e.user_effect(() => {
4594
4594
  var L;
4595
- e.get(A) && e.get(A).length > 0 && !_.canvasId && !((L = e.get(T)) != null && L.isFetching) && (console.log("[Viewer] Auto-selecting first canvas:", e.get(A)[0].id), _.setCanvas(e.get(A)[0].id));
4595
+ e.get(x) && e.get(x).length > 0 && !_.canvasId && !((L = e.get(T)) != null && L.isFetching) && (console.log("[Viewer] Auto-selecting first canvas:", e.get(x)[0].id), _.setCanvas(e.get(x)[0].id));
4596
4596
  });
4597
4597
  let s = e.derived(() => {
4598
4598
  var oe, ae;
4599
- if (!e.get(A) || e.get(n) === -1 || !e.get(A)[e.get(n)])
4599
+ if (!e.get(x) || e.get(n) === -1 || !e.get(x)[e.get(n)])
4600
4600
  return (oe = e.get(T)) != null && oe.isFetching || console.log("TriiiceratopsViewer: No canvas found"), null;
4601
- const L = e.get(A)[e.get(n)];
4601
+ const L = e.get(x)[e.get(n)];
4602
4602
  let F = L.getImages();
4603
4603
  if ((!F || !F.length) && L.getContent && (F = L.getContent()), !F || !F.length)
4604
4604
  return L.__jsonld && L.__jsonld.items, (ae = e.get(T)) != null && ae.isFetching || console.log("TriiiceratopsViewer: No images/content in canvas"), null;
@@ -4638,7 +4638,7 @@ function w1(a, t) {
4638
4638
  });
4639
4639
  var p = g1(), y = e.child(p);
4640
4640
  {
4641
- var x = (L) => {
4641
+ var A = (L) => {
4642
4642
  var F = e1(), Q = e.child(F);
4643
4643
  {
4644
4644
  var K = (j) => {
@@ -4656,7 +4656,7 @@ function w1(a, t) {
4656
4656
  var U = Js(), $ = e.child(U);
4657
4657
  be($, {
4658
4658
  get canvases() {
4659
- return e.get(A);
4659
+ return e.get(x);
4660
4660
  }
4661
4661
  }), e.reset(U), e.append(j, U);
4662
4662
  };
@@ -4686,7 +4686,7 @@ function w1(a, t) {
4686
4686
  }), e.reset(F), e.template_effect(() => e.set_class(F, 1, `flex-none flex flex-row z-20 transition-all ${_.config.transparentBackground ? "" : "bg-base-200 border-r border-base-300"}`)), e.append(L, F);
4687
4687
  };
4688
4688
  e.if(y, (L) => {
4689
- e.get(D) && L(x);
4689
+ e.get(D) && L(A);
4690
4690
  });
4691
4691
  }
4692
4692
  var o = e.sibling(y, 2), l = e.child(o);
@@ -4695,7 +4695,7 @@ function w1(a, t) {
4695
4695
  var F = t1(), Q = e.child(F);
4696
4696
  be(Q, {
4697
4697
  get canvases() {
4698
- return e.get(A);
4698
+ return e.get(x);
4699
4699
  }
4700
4700
  }), e.reset(F), e.append(L, F);
4701
4701
  };
@@ -4783,7 +4783,7 @@ function w1(a, t) {
4783
4783
  var G = e.sibling(R, 2);
4784
4784
  {
4785
4785
  var g = (L) => {
4786
- As(L, {});
4786
+ xs(L, {});
4787
4787
  };
4788
4788
  e.if(G, (L) => {
4789
4789
  _.showRightMenu && L(g);
@@ -4828,7 +4828,7 @@ function w1(a, t) {
4828
4828
  });
4829
4829
  };
4830
4830
  e.if(I, (L) => {
4831
- e.get(A).length > 1 && _.showCanvasNav && L(f);
4831
+ e.get(x).length > 1 && _.showCanvasNav && L(f);
4832
4832
  });
4833
4833
  }
4834
4834
  var b = e.sibling(I, 2);
@@ -4836,7 +4836,7 @@ function w1(a, t) {
4836
4836
  var O = (L) => {
4837
4837
  be(L, {
4838
4838
  get canvases() {
4839
- return e.get(A);
4839
+ return e.get(x);
4840
4840
  }
4841
4841
  });
4842
4842
  };
@@ -4851,7 +4851,7 @@ function w1(a, t) {
4851
4851
  var F = i1(), Q = e.child(F);
4852
4852
  be(Q, {
4853
4853
  get canvases() {
4854
- return e.get(A);
4854
+ return e.get(x);
4855
4855
  }
4856
4856
  }), e.reset(F), e.append(L, F);
4857
4857
  };
@@ -4899,7 +4899,7 @@ function w1(a, t) {
4899
4899
  var U = c1(), $ = e.child(U);
4900
4900
  be($, {
4901
4901
  get canvases() {
4902
- return e.get(A);
4902
+ return e.get(x);
4903
4903
  }
4904
4904
  }), e.reset(U), e.append(j, U);
4905
4905
  };
@@ -4938,7 +4938,7 @@ function w1(a, t) {
4938
4938
  }
4939
4939
  export {
4940
4940
  tr as DAISYUI_THEMES,
4941
- x1 as ManifestsState,
4941
+ A1 as ManifestsState,
4942
4942
  w1 as TriiiceratopsViewer,
4943
4943
  pe as VIEWER_STATE_KEY,
4944
4944
  Zt as ViewerState,