triiiceratops 0.9.12 → 0.9.13

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.
@@ -415,7 +415,7 @@ class Bt {
415
415
  }
416
416
  const u = `${m.id || m["@id"]}?q=${encodeURIComponent(t)}`, M = await fetch(u);
417
417
  if (!M.ok) throw new Error("Search request failed");
418
- const w = await M.json(), k = w.resources || [], j = [], A = (b) => {
418
+ const w = await M.json(), k = w.resources || [], j = [], y = (b) => {
419
419
  const n = typeof b == "string" ? b : b["@id"] || b.id;
420
420
  if (!n) return null;
421
421
  const o = n.split("#xywh=");
@@ -429,7 +429,7 @@ class Bt {
429
429
  for (const g of n) {
430
430
  const Z = k.find((H) => H["@id"] === g || H.id === g);
431
431
  if (Z && Z.on) {
432
- const H = typeof Z.on == "string" ? Z.on : Z.on["@id"] || Z.on.id, s = H.split("#")[0], c = A(H), P = this.canvases.findIndex((V) => V.id === s);
432
+ const H = typeof Z.on == "string" ? Z.on : Z.on["@id"] || Z.on.id, s = H.split("#")[0], c = y(H), P = this.canvases.findIndex((V) => V.id === s);
433
433
  if (P >= 0) {
434
434
  if (!o.has(P)) {
435
435
  const V = this.canvases[P];
@@ -463,7 +463,7 @@ class Bt {
463
463
  }
464
464
  else if (k.length > 0)
465
465
  for (const b of k) {
466
- const n = typeof b.on == "string" ? b.on : b.on["@id"] || b.on.id, o = n.split("#")[0], g = A(n), Z = this.canvases.findIndex((H) => H.id === o);
466
+ const n = typeof b.on == "string" ? b.on : b.on["@id"] || b.on.id, o = n.split("#")[0], g = y(n), Z = this.canvases.findIndex((H) => H.id === o);
467
467
  if (Z >= 0) {
468
468
  const H = this.canvases[Z];
469
469
  let s = "Canvas " + (Z + 1);
@@ -1001,7 +1001,7 @@ function ca(r, t = /* @__PURE__ */ new Set()) {
1001
1001
  return la(a, l, i);
1002
1002
  }).filter((a) => a !== null);
1003
1003
  }
1004
- var da = e.from_html("<div></div>"), fa = e.from_svg('<svg class="absolute pointer-events-auto"><title> </title><polygon stroke-width="2"></polygon></svg>'), va = e.from_html('<div class="w-full h-full relative"><div class="w-full h-full osd-background bg-base-100"></div> <!></div>');
1004
+ var da = e.from_html("<div></div>"), fa = e.from_svg('<svg class="absolute pointer-events-auto"><title> </title><polygon stroke-width="2"></polygon></svg>'), va = e.from_html('<div class="w-full h-full relative"><div></div> <!></div>');
1005
1005
  function ha(r, t) {
1006
1006
  e.push(t, !0);
1007
1007
  let a = e.prop(t, "viewerState", 7), l = e.state(void 0), i = e.state(void 0), m = e.state(void 0), x = e.state(0), u = e.derived(() => {
@@ -1101,9 +1101,9 @@ function ha(r, t) {
1101
1101
  }), e.user_effect(() => {
1102
1102
  !e.get(i) || !t.tileSources || e.get(i).open(t.tileSources);
1103
1103
  });
1104
- var j = va(), A = e.child(j);
1105
- e.bind_this(A, (b) => e.set(l, b), () => e.get(l));
1106
- var I = e.sibling(A, 2);
1104
+ var j = va(), y = e.child(j);
1105
+ e.bind_this(y, (b) => e.set(l, b), () => e.get(l));
1106
+ var I = e.sibling(y, 2);
1107
1107
  e.each(I, 17, () => e.get(k), (b) => b.id, (b, n) => {
1108
1108
  var o = e.comment(), g = e.first_child(o);
1109
1109
  {
@@ -1151,7 +1151,7 @@ function ha(r, t) {
1151
1151
  });
1152
1152
  }
1153
1153
  e.append(b, o);
1154
- }), e.reset(j), e.append(r, j), e.pop();
1154
+ }), e.reset(j), e.template_effect(() => e.set_class(y, 1, `w-full h-full osd-background ${a().config.transparentBackground ? "" : "bg-base-100"}`)), e.append(r, j), e.pop();
1155
1155
  }
1156
1156
  let rt = Symbol("phosphor-svelte");
1157
1157
  function oe() {
@@ -1192,7 +1192,7 @@ function ya(r, t) {
1192
1192
  t.children && n(j);
1193
1193
  });
1194
1194
  }
1195
- var A = e.sibling(k, 2);
1195
+ var y = e.sibling(k, 2);
1196
1196
  {
1197
1197
  var I = (n) => {
1198
1198
  var o = ga();
@@ -1219,10 +1219,10 @@ function ya(r, t) {
1219
1219
  var h = e.comment(), S = e.first_child(h);
1220
1220
  {
1221
1221
  var E = (f) => {
1222
- var y = ma();
1223
- e.append(f, y);
1222
+ var A = ma();
1223
+ e.append(f, A);
1224
1224
  }, T = (f) => {
1225
- var y = e.comment(), G = e.first_child(y);
1225
+ var A = e.comment(), G = e.first_child(A);
1226
1226
  {
1227
1227
  var N = (_) => {
1228
1228
  var L = ba();
@@ -1239,7 +1239,7 @@ function ya(r, t) {
1239
1239
  !0
1240
1240
  );
1241
1241
  }
1242
- e.append(f, y);
1242
+ e.append(f, A);
1243
1243
  };
1244
1244
  e.if(
1245
1245
  S,
@@ -1281,7 +1281,7 @@ function ya(r, t) {
1281
1281
  }
1282
1282
  e.append(n, o);
1283
1283
  };
1284
- e.if(A, (n) => {
1284
+ e.if(y, (n) => {
1285
1285
  e.get(i) === "bold" ? n(I) : n(b, !1);
1286
1286
  });
1287
1287
  }
@@ -1322,7 +1322,7 @@ function Ca(r, t) {
1322
1322
  t.children && n(j);
1323
1323
  });
1324
1324
  }
1325
- var A = e.sibling(k, 2);
1325
+ var y = e.sibling(k, 2);
1326
1326
  {
1327
1327
  var I = (n) => {
1328
1328
  var o = Aa();
@@ -1349,10 +1349,10 @@ function Ca(r, t) {
1349
1349
  var h = e.comment(), S = e.first_child(h);
1350
1350
  {
1351
1351
  var E = (f) => {
1352
- var y = Va();
1353
- e.append(f, y);
1352
+ var A = Va();
1353
+ e.append(f, A);
1354
1354
  }, T = (f) => {
1355
- var y = e.comment(), G = e.first_child(y);
1355
+ var A = e.comment(), G = e.first_child(A);
1356
1356
  {
1357
1357
  var N = (_) => {
1358
1358
  var L = Ha();
@@ -1369,7 +1369,7 @@ function Ca(r, t) {
1369
1369
  !0
1370
1370
  );
1371
1371
  }
1372
- e.append(f, y);
1372
+ e.append(f, A);
1373
1373
  };
1374
1374
  e.if(
1375
1375
  S,
@@ -1411,7 +1411,7 @@ function Ca(r, t) {
1411
1411
  }
1412
1412
  e.append(n, o);
1413
1413
  };
1414
- e.if(A, (n) => {
1414
+ e.if(y, (n) => {
1415
1415
  e.get(i) === "bold" ? n(I) : n(b, !1);
1416
1416
  });
1417
1417
  }
@@ -1972,7 +1972,7 @@ function Zn(r, t) {
1972
1972
  t.children && n(j);
1973
1973
  });
1974
1974
  }
1975
- var A = e.sibling(k, 2);
1975
+ var y = e.sibling(k, 2);
1976
1976
  {
1977
1977
  var I = (n) => {
1978
1978
  var o = mn();
@@ -1999,10 +1999,10 @@ function Zn(r, t) {
1999
1999
  var h = e.comment(), S = e.first_child(h);
2000
2000
  {
2001
2001
  var E = (f) => {
2002
- var y = An();
2003
- e.append(f, y);
2002
+ var A = An();
2003
+ e.append(f, A);
2004
2004
  }, T = (f) => {
2005
- var y = e.comment(), G = e.first_child(y);
2005
+ var A = e.comment(), G = e.first_child(A);
2006
2006
  {
2007
2007
  var N = (_) => {
2008
2008
  var L = xn();
@@ -2019,7 +2019,7 @@ function Zn(r, t) {
2019
2019
  !0
2020
2020
  );
2021
2021
  }
2022
- e.append(f, y);
2022
+ e.append(f, A);
2023
2023
  };
2024
2024
  e.if(
2025
2025
  S,
@@ -2061,7 +2061,7 @@ function Zn(r, t) {
2061
2061
  }
2062
2062
  e.append(n, o);
2063
2063
  };
2064
- e.if(A, (n) => {
2064
+ e.if(y, (n) => {
2065
2065
  e.get(i) === "bold" ? n(I) : n(b, !1);
2066
2066
  });
2067
2067
  }
@@ -2102,7 +2102,7 @@ function ht(r, t) {
2102
2102
  t.children && n(j);
2103
2103
  });
2104
2104
  }
2105
- var A = e.sibling(k, 2);
2105
+ var y = e.sibling(k, 2);
2106
2106
  {
2107
2107
  var I = (n) => {
2108
2108
  var o = Vn();
@@ -2129,10 +2129,10 @@ function ht(r, t) {
2129
2129
  var h = e.comment(), S = e.first_child(h);
2130
2130
  {
2131
2131
  var E = (f) => {
2132
- var y = Ln();
2133
- e.append(f, y);
2132
+ var A = Ln();
2133
+ e.append(f, A);
2134
2134
  }, T = (f) => {
2135
- var y = e.comment(), G = e.first_child(y);
2135
+ var A = e.comment(), G = e.first_child(A);
2136
2136
  {
2137
2137
  var N = (_) => {
2138
2138
  var L = In();
@@ -2149,7 +2149,7 @@ function ht(r, t) {
2149
2149
  !0
2150
2150
  );
2151
2151
  }
2152
- e.append(f, y);
2152
+ e.append(f, A);
2153
2153
  };
2154
2154
  e.if(
2155
2155
  S,
@@ -2191,7 +2191,7 @@ function ht(r, t) {
2191
2191
  }
2192
2192
  e.append(n, o);
2193
2193
  };
2194
- e.if(A, (n) => {
2194
+ e.if(y, (n) => {
2195
2195
  e.get(i) === "bold" ? n(I) : n(b, !1);
2196
2196
  });
2197
2197
  }
@@ -2232,7 +2232,7 @@ function gt(r, t) {
2232
2232
  t.children && n(j);
2233
2233
  });
2234
2234
  }
2235
- var A = e.sibling(k, 2);
2235
+ var y = e.sibling(k, 2);
2236
2236
  {
2237
2237
  var I = (n) => {
2238
2238
  var o = kn();
@@ -2259,10 +2259,10 @@ function gt(r, t) {
2259
2259
  var h = e.comment(), S = e.first_child(h);
2260
2260
  {
2261
2261
  var E = (f) => {
2262
- var y = En();
2263
- e.append(f, y);
2262
+ var A = En();
2263
+ e.append(f, A);
2264
2264
  }, T = (f) => {
2265
- var y = e.comment(), G = e.first_child(y);
2265
+ var A = e.comment(), G = e.first_child(A);
2266
2266
  {
2267
2267
  var N = (_) => {
2268
2268
  var L = Rn();
@@ -2279,7 +2279,7 @@ function gt(r, t) {
2279
2279
  !0
2280
2280
  );
2281
2281
  }
2282
- e.append(f, y);
2282
+ e.append(f, A);
2283
2283
  };
2284
2284
  e.if(
2285
2285
  S,
@@ -2321,7 +2321,7 @@ function gt(r, t) {
2321
2321
  }
2322
2322
  e.append(n, o);
2323
2323
  };
2324
- e.if(A, (n) => {
2324
+ e.if(y, (n) => {
2325
2325
  e.get(i) === "bold" ? n(I) : n(b, !1);
2326
2326
  });
2327
2327
  }
@@ -2334,16 +2334,16 @@ function Nn(r, t) {
2334
2334
  let l = e.derived(() => {
2335
2335
  if (!a.manifestId || !a.canvasId)
2336
2336
  return [];
2337
- const A = le.getAnnotations(a.manifestId, a.canvasId), I = a.currentCanvasSearchAnnotations;
2338
- return [...A, ...I];
2337
+ const y = le.getAnnotations(a.manifestId, a.canvasId), I = a.currentCanvasSearchAnnotations;
2338
+ return [...y, ...I];
2339
2339
  });
2340
- function i(A) {
2341
- return A.id || A["@id"] || (typeof A.getId == "function" ? A.getId() : "") || "";
2340
+ function i(y) {
2341
+ return y.id || y["@id"] || (typeof y.getId == "function" ? y.getId() : "") || "";
2342
2342
  }
2343
2343
  e.user_effect(() => {
2344
- var A;
2344
+ var y;
2345
2345
  if (e.get(l).length > 0)
2346
- if (((A = a.config.annotations) == null ? void 0 : A.visible) ?? !0) {
2346
+ if (((y = a.config.annotations) == null ? void 0 : y.visible) ?? !0) {
2347
2347
  const b = /* @__PURE__ */ new Set();
2348
2348
  e.get(l).forEach((n) => {
2349
2349
  const o = i(n);
@@ -2354,28 +2354,28 @@ function Nn(r, t) {
2354
2354
  else
2355
2355
  a.visibleAnnotationIds = /* @__PURE__ */ new Set();
2356
2356
  });
2357
- let m = e.derived(() => e.get(l).length === 0 ? !1 : e.get(l).every((A) => {
2358
- const I = i(A);
2357
+ let m = e.derived(() => e.get(l).length === 0 ? !1 : e.get(l).every((y) => {
2358
+ const I = i(y);
2359
2359
  return !I || a.visibleAnnotationIds.has(I);
2360
2360
  }));
2361
- function x(A) {
2362
- a.visibleAnnotationIds.has(A) ? a.visibleAnnotationIds.delete(A) : a.visibleAnnotationIds.add(A), a.visibleAnnotationIds = new Set(a.visibleAnnotationIds);
2361
+ function x(y) {
2362
+ a.visibleAnnotationIds.has(y) ? a.visibleAnnotationIds.delete(y) : a.visibleAnnotationIds.add(y), a.visibleAnnotationIds = new Set(a.visibleAnnotationIds);
2363
2363
  }
2364
2364
  function u() {
2365
2365
  if (e.get(m))
2366
2366
  a.visibleAnnotationIds = /* @__PURE__ */ new Set();
2367
2367
  else {
2368
- const A = /* @__PURE__ */ new Set();
2368
+ const y = /* @__PURE__ */ new Set();
2369
2369
  e.get(l).forEach((I) => {
2370
2370
  const b = i(I);
2371
- b && A.add(b);
2372
- }), a.visibleAnnotationIds = A;
2371
+ b && y.add(b);
2372
+ }), a.visibleAnnotationIds = y;
2373
2373
  }
2374
2374
  }
2375
- let M = e.derived(() => e.get(l).length ? e.get(l).map((A) => {
2375
+ let M = e.derived(() => e.get(l).length ? e.get(l).map((y) => {
2376
2376
  let I = "", b = !1;
2377
- if (typeof A.getBody == "function") {
2378
- const n = A.getBody();
2377
+ if (typeof y.getBody == "function") {
2378
+ const n = y.getBody();
2379
2379
  if (n && n.length) {
2380
2380
  const o = (g) => {
2381
2381
  const Z = g.getValue ? g.getValue() : null;
@@ -2386,27 +2386,27 @@ function Nn(r, t) {
2386
2386
  return Z === "text/html" || Z === "application/html";
2387
2387
  });
2388
2388
  }
2389
- if (!I && typeof A.getLabel == "function") {
2390
- const o = A.getLabel();
2389
+ if (!I && typeof y.getLabel == "function") {
2390
+ const o = y.getLabel();
2391
2391
  o && (I = o);
2392
2392
  }
2393
2393
  } else {
2394
2394
  const n = (g) => g && (g.chars || g.value || g["cnt:chars"]) || "", o = (g) => g ? g.format === "text/html" || g.type === "TextualBody" : !1;
2395
- if (A.resource ? Array.isArray(A.resource) ? (I = A.resource.map((g) => n(g)).join(" "), A.resource.some((g) => o(g)) && (b = !0)) : (I = n(A.resource), o(A.resource) && (b = !0)) : A.body && (Array.isArray(A.body) ? (I = A.body.map((g) => n(g)).join(" "), A.body.some((g) => o(g)) && (b = !0)) : (I = n(A.body), o(A.body) && (b = !0))), !I) {
2396
- const g = A.label || A.name || A.title;
2395
+ if (y.resource ? Array.isArray(y.resource) ? (I = y.resource.map((g) => n(g)).join(" "), y.resource.some((g) => o(g)) && (b = !0)) : (I = n(y.resource), o(y.resource) && (b = !0)) : y.body && (Array.isArray(y.body) ? (I = y.body.map((g) => n(g)).join(" "), y.body.some((g) => o(g)) && (b = !0)) : (I = n(y.body), o(y.body) && (b = !0))), !I) {
2396
+ const g = y.label || y.name || y.title;
2397
2397
  g && (I = Array.isArray(g) ? g.join(" ") : g);
2398
2398
  }
2399
2399
  }
2400
2400
  return {
2401
- id: i(A),
2401
+ id: i(y),
2402
2402
  content: I,
2403
2403
  isHtml: b,
2404
- label: (typeof A.getLabel == "function" ? A.getLabel() : A.label) || ""
2404
+ label: (typeof y.getLabel == "function" ? y.getLabel() : y.label) || ""
2405
2405
  };
2406
2406
  }) : []);
2407
2407
  var w = e.comment(), k = e.first_child(w);
2408
2408
  {
2409
- var j = (A) => {
2409
+ var j = (y) => {
2410
2410
  var I = Fn(), b = e.child(I), n = e.child(b), o = e.child(n);
2411
2411
  o.__click = (p) => {
2412
2412
  p.preventDefault(), u();
@@ -2455,7 +2455,7 @@ function Nn(r, t) {
2455
2455
  });
2456
2456
  }
2457
2457
  e.reset(h);
2458
- var f = e.sibling(h, 2), y = e.child(f), G = e.child(y);
2458
+ var f = e.sibling(h, 2), A = e.child(f), G = e.child(A);
2459
2459
  G.textContent = `#${R + 1}`;
2460
2460
  var N = e.sibling(G, 2);
2461
2461
  {
@@ -2467,8 +2467,8 @@ function Nn(r, t) {
2467
2467
  e.get(B).label && e.get(B).label !== e.get(B).content && U(O);
2468
2468
  });
2469
2469
  }
2470
- e.reset(y);
2471
- var _ = e.sibling(y, 2), L = e.child(_);
2470
+ e.reset(A);
2471
+ var _ = e.sibling(A, 2), L = e.child(_);
2472
2472
  {
2473
2473
  var z = (U) => {
2474
2474
  var Y = e.comment(), K = e.first_child(Y);
@@ -2496,10 +2496,10 @@ function Nn(r, t) {
2496
2496
  () => /* @__PURE__ */ Yr({ count: e.get(l).length }),
2497
2497
  () => /* @__PURE__ */ Wr({ count: a.visibleAnnotationIds.size })
2498
2498
  ]
2499
- ), e.append(A, I);
2499
+ ), e.append(y, I);
2500
2500
  };
2501
- e.if(k, (A) => {
2502
- a.showAnnotations && A(j);
2501
+ e.if(k, (y) => {
2502
+ a.showAnnotations && y(j);
2503
2503
  });
2504
2504
  }
2505
2505
  e.append(r, w), e.pop();
@@ -2540,7 +2540,7 @@ function Ke(r, t) {
2540
2540
  t.children && n(j);
2541
2541
  });
2542
2542
  }
2543
- var A = e.sibling(k, 2);
2543
+ var y = e.sibling(k, 2);
2544
2544
  {
2545
2545
  var I = (n) => {
2546
2546
  var o = qn();
@@ -2567,10 +2567,10 @@ function Ke(r, t) {
2567
2567
  var h = e.comment(), S = e.first_child(h);
2568
2568
  {
2569
2569
  var E = (f) => {
2570
- var y = Qn();
2571
- e.append(f, y);
2570
+ var A = Qn();
2571
+ e.append(f, A);
2572
2572
  }, T = (f) => {
2573
- var y = e.comment(), G = e.first_child(y);
2573
+ var A = e.comment(), G = e.first_child(A);
2574
2574
  {
2575
2575
  var N = (_) => {
2576
2576
  var L = Wn();
@@ -2587,7 +2587,7 @@ function Ke(r, t) {
2587
2587
  !0
2588
2588
  );
2589
2589
  }
2590
- e.append(f, y);
2590
+ e.append(f, A);
2591
2591
  };
2592
2592
  e.if(
2593
2593
  S,
@@ -2629,7 +2629,7 @@ function Ke(r, t) {
2629
2629
  }
2630
2630
  e.append(n, o);
2631
2631
  };
2632
- e.if(A, (n) => {
2632
+ e.if(y, (n) => {
2633
2633
  e.get(i) === "bold" ? n(I) : n(b, !1);
2634
2634
  });
2635
2635
  }
@@ -2733,9 +2733,9 @@ function ve(r, t) {
2733
2733
  y: c.clientY,
2734
2734
  w: a.gallerySize.width,
2735
2735
  h: a.gallerySize.height
2736
- }, window.addEventListener("mousemove", A), window.addEventListener("mouseup", I);
2736
+ }, window.addEventListener("mousemove", y), window.addEventListener("mouseup", I);
2737
2737
  }
2738
- function A(c) {
2738
+ function y(c) {
2739
2739
  if (!e.get(m)) return;
2740
2740
  const P = c.clientX - x.x, V = c.clientY - x.y;
2741
2741
  a.gallerySize = {
@@ -2744,7 +2744,7 @@ function ve(r, t) {
2744
2744
  };
2745
2745
  }
2746
2746
  function I() {
2747
- e.set(m, !1), window.removeEventListener("mousemove", A), window.removeEventListener("mouseup", I);
2747
+ e.set(m, !1), window.removeEventListener("mousemove", y), window.removeEventListener("mouseup", I);
2748
2748
  }
2749
2749
  function b(c) {
2750
2750
  a.setCanvas(c);
@@ -2784,8 +2784,8 @@ function ve(r, t) {
2784
2784
  var v = (T) => {
2785
2785
  var f = Kn();
2786
2786
  f.__click = () => a.toggleThumbnailGallery();
2787
- var y = e.child(f);
2788
- Ke(y, { size: 16, weight: "bold" }), e.reset(f), e.append(T, f);
2787
+ var A = e.child(f);
2788
+ Ke(A, { size: 16, weight: "bold" }), e.reset(f), e.append(T, f);
2789
2789
  };
2790
2790
  e.if(C, (T) => {
2791
2791
  e.get(i) && T(v);
@@ -2794,11 +2794,11 @@ function ve(r, t) {
2794
2794
  var p = e.sibling(C, 2);
2795
2795
  {
2796
2796
  var B = (T) => {
2797
- var f = $n(), y = e.child(f);
2798
- y.__mousedown = g;
2799
- var G = e.child(y);
2800
- e.reset(y), e.reset(f), e.template_effect(() => {
2801
- e.set_class(f, 1, "bg-base-100 flex shrink-0 select-none relative " + (e.get(n) === "bottom" || e.get(n) === "top" ? "flex-row h-full items-center border-r border-base-200" : "flex-col w-full border-b border-base-200")), e.set_class(y, 1, "cursor-move flex items-center justify-center hover:bg-base-200/50 active:bg-base-200 transition-colors " + (e.get(n) === "bottom" || e.get(n) === "top" ? "w-8 h-full" : "h-6 w-full")), e.set_class(G, 1, "bg-base-300 rounded-full " + (e.get(n) === "bottom" || e.get(n) === "top" ? "w-1.5 h-12" : "w-12 h-1.5"));
2797
+ var f = $n(), A = e.child(f);
2798
+ A.__mousedown = g;
2799
+ var G = e.child(A);
2800
+ e.reset(A), e.reset(f), e.template_effect(() => {
2801
+ e.set_class(f, 1, "bg-base-100 flex shrink-0 select-none relative " + (e.get(n) === "bottom" || e.get(n) === "top" ? "flex-row h-full items-center border-r border-base-200" : "flex-col w-full border-b border-base-200")), e.set_class(A, 1, "cursor-move flex items-center justify-center hover:bg-base-200/50 active:bg-base-200 transition-colors " + (e.get(n) === "bottom" || e.get(n) === "top" ? "w-8 h-full" : "h-6 w-full")), e.set_class(G, 1, "bg-base-300 rounded-full " + (e.get(n) === "bottom" || e.get(n) === "top" ? "w-1.5 h-12" : "w-12 h-1.5"));
2802
2802
  }), e.append(T, f);
2803
2803
  };
2804
2804
  e.if(p, (T) => {
@@ -2807,9 +2807,9 @@ function ve(r, t) {
2807
2807
  }
2808
2808
  var R = e.sibling(p, 2), D = e.child(R);
2809
2809
  e.each(D, 21, () => e.get(M), e.index, (T, f) => {
2810
- var y = ai();
2811
- y.__click = () => b(e.get(f).id);
2812
- var G = e.child(y), N = e.child(G);
2810
+ var A = ai();
2811
+ A.__click = () => b(e.get(f).id);
2812
+ var G = e.child(A), N = e.child(G);
2813
2813
  {
2814
2814
  var O = (Y) => {
2815
2815
  var K = ei();
@@ -2828,9 +2828,9 @@ function ve(r, t) {
2828
2828
  var L = e.sibling(G, 2), z = e.child(L), q = e.child(z);
2829
2829
  e.reset(z);
2830
2830
  var U = e.sibling(z);
2831
- e.reset(L), e.reset(y), e.template_effect(() => {
2832
- e.set_class(y, 1, `group flex flex-col gap-1 p-1 rounded hover:bg-base-200 transition-colors text-left relative shrink-0 ${e.get(o) ? "w-[140px]" : ""} ${a.canvasId === e.get(f).id ? "ring-2 ring-primary bg-primary/5" : ""}`), e.set_attribute(y, "aria-label", `Select canvas ${e.get(f).label ?? ""}`), e.set_text(q, `${e.get(f).index + 1}.`), e.set_text(U, ` ${e.get(f).label ?? ""}`);
2833
- }), e.append(T, y);
2831
+ e.reset(L), e.reset(A), e.template_effect(() => {
2832
+ e.set_class(A, 1, `group flex flex-col gap-1 p-1 rounded hover:bg-base-200 transition-colors text-left relative shrink-0 ${e.get(o) ? "w-[140px]" : ""} ${a.canvasId === e.get(f).id ? "ring-2 ring-primary bg-primary/5" : ""}`), e.set_attribute(A, "aria-label", `Select canvas ${e.get(f).label ?? ""}`), e.set_text(q, `${e.get(f).index + 1}.`), e.set_text(U, ` ${e.get(f).label ?? ""}`);
2833
+ }), e.append(T, A);
2834
2834
  }), e.reset(D), e.reset(R);
2835
2835
  var d = e.sibling(R, 2);
2836
2836
  {
@@ -2846,9 +2846,9 @@ function ve(r, t) {
2846
2846
  var S = e.sibling(V, 2);
2847
2847
  {
2848
2848
  var E = (T) => {
2849
- var f = ni(), y = e.first_child(f), G = e.sibling(y, 2), N = e.sibling(G, 2), O = e.sibling(N, 2);
2849
+ var f = ni(), A = e.first_child(f), G = e.sibling(A, 2), N = e.sibling(G, 2), O = e.sibling(N, 2);
2850
2850
  e.template_effect(() => {
2851
- e.set_class(y, 1, `absolute top-2 left-2 right-2 h-16 rounded-xl border-4 border-dashed border-primary/40 z-999 pointer-events-none flex items-center justify-center transition-all duration-200 ${a.dragOverSide === "top" ? "bg-primary/20 scale-105" : "bg-base-100/50"}`), e.set_class(G, 1, `absolute bottom-2 left-2 right-2 h-16 rounded-xl border-4 border-dashed border-primary/40 z-999 pointer-events-none flex items-center justify-center transition-all duration-200 ${a.dragOverSide === "bottom" ? "bg-primary/20 scale-105" : "bg-base-100/50"}`), e.set_class(N, 1, `absolute top-2 bottom-2 left-2 w-16 rounded-xl border-4 border-dashed border-primary/40 z-999 pointer-events-none flex items-center justify-center transition-all duration-200 ${a.dragOverSide === "left" ? "bg-primary/20 scale-105" : "bg-base-100/50"}`), e.set_class(O, 1, `absolute top-2 bottom-2 right-2 w-16 rounded-xl border-4 border-dashed border-primary/40 z-999 pointer-events-none flex items-center justify-center transition-all duration-300 ${a.dragOverSide === "right" ? "bg-primary/20 scale-105" : "bg-base-100/50"}`);
2851
+ e.set_class(A, 1, `absolute top-2 left-2 right-2 h-16 rounded-xl border-4 border-dashed border-primary/40 z-999 pointer-events-none flex items-center justify-center transition-all duration-200 ${a.dragOverSide === "top" ? "bg-primary/20 scale-105" : "bg-base-100/50"}`), e.set_class(G, 1, `absolute bottom-2 left-2 right-2 h-16 rounded-xl border-4 border-dashed border-primary/40 z-999 pointer-events-none flex items-center justify-center transition-all duration-200 ${a.dragOverSide === "bottom" ? "bg-primary/20 scale-105" : "bg-base-100/50"}`), e.set_class(N, 1, `absolute top-2 bottom-2 left-2 w-16 rounded-xl border-4 border-dashed border-primary/40 z-999 pointer-events-none flex items-center justify-center transition-all duration-200 ${a.dragOverSide === "left" ? "bg-primary/20 scale-105" : "bg-base-100/50"}`), e.set_class(O, 1, `absolute top-2 bottom-2 right-2 w-16 rounded-xl border-4 border-dashed border-primary/40 z-999 pointer-events-none flex items-center justify-center transition-all duration-300 ${a.dragOverSide === "right" ? "bg-primary/20 scale-105" : "bg-base-100/50"}`);
2852
2852
  }), e.append(T, f);
2853
2853
  };
2854
2854
  e.if(S, (T) => {
@@ -2903,7 +2903,7 @@ function hi(r, t) {
2903
2903
  t.children && n(j);
2904
2904
  });
2905
2905
  }
2906
- var A = e.sibling(k, 2);
2906
+ var y = e.sibling(k, 2);
2907
2907
  {
2908
2908
  var I = (n) => {
2909
2909
  var o = oi();
@@ -2930,10 +2930,10 @@ function hi(r, t) {
2930
2930
  var h = e.comment(), S = e.first_child(h);
2931
2931
  {
2932
2932
  var E = (f) => {
2933
- var y = di();
2934
- e.append(f, y);
2933
+ var A = di();
2934
+ e.append(f, A);
2935
2935
  }, T = (f) => {
2936
- var y = e.comment(), G = e.first_child(y);
2936
+ var A = e.comment(), G = e.first_child(A);
2937
2937
  {
2938
2938
  var N = (_) => {
2939
2939
  var L = fi();
@@ -2950,7 +2950,7 @@ function hi(r, t) {
2950
2950
  !0
2951
2951
  );
2952
2952
  }
2953
- e.append(f, y);
2953
+ e.append(f, A);
2954
2954
  };
2955
2955
  e.if(
2956
2956
  S,
@@ -2992,7 +2992,7 @@ function hi(r, t) {
2992
2992
  }
2993
2993
  e.append(n, o);
2994
2994
  };
2995
- e.if(A, (n) => {
2995
+ e.if(y, (n) => {
2996
2996
  e.get(i) === "bold" ? n(I) : n(b, !1);
2997
2997
  });
2998
2998
  }
@@ -3033,7 +3033,7 @@ function yi(r, t) {
3033
3033
  t.children && n(j);
3034
3034
  });
3035
3035
  }
3036
- var A = e.sibling(k, 2);
3036
+ var y = e.sibling(k, 2);
3037
3037
  {
3038
3038
  var I = (n) => {
3039
3039
  var o = gi();
@@ -3060,10 +3060,10 @@ function yi(r, t) {
3060
3060
  var h = e.comment(), S = e.first_child(h);
3061
3061
  {
3062
3062
  var E = (f) => {
3063
- var y = mi();
3064
- e.append(f, y);
3063
+ var A = mi();
3064
+ e.append(f, A);
3065
3065
  }, T = (f) => {
3066
- var y = e.comment(), G = e.first_child(y);
3066
+ var A = e.comment(), G = e.first_child(A);
3067
3067
  {
3068
3068
  var N = (_) => {
3069
3069
  var L = bi();
@@ -3080,7 +3080,7 @@ function yi(r, t) {
3080
3080
  !0
3081
3081
  );
3082
3082
  }
3083
- e.append(f, y);
3083
+ e.append(f, A);
3084
3084
  };
3085
3085
  e.if(
3086
3086
  S,
@@ -3122,7 +3122,7 @@ function yi(r, t) {
3122
3122
  }
3123
3123
  e.append(n, o);
3124
3124
  };
3125
- e.if(A, (n) => {
3125
+ e.if(y, (n) => {
3126
3126
  e.get(i) === "bold" ? n(I) : n(b, !1);
3127
3127
  });
3128
3128
  }
@@ -3163,7 +3163,7 @@ function Ci(r, t) {
3163
3163
  t.children && n(j);
3164
3164
  });
3165
3165
  }
3166
- var A = e.sibling(k, 2);
3166
+ var y = e.sibling(k, 2);
3167
3167
  {
3168
3168
  var I = (n) => {
3169
3169
  var o = Ai();
@@ -3190,10 +3190,10 @@ function Ci(r, t) {
3190
3190
  var h = e.comment(), S = e.first_child(h);
3191
3191
  {
3192
3192
  var E = (f) => {
3193
- var y = Vi();
3194
- e.append(f, y);
3193
+ var A = Vi();
3194
+ e.append(f, A);
3195
3195
  }, T = (f) => {
3196
- var y = e.comment(), G = e.first_child(y);
3196
+ var A = e.comment(), G = e.first_child(A);
3197
3197
  {
3198
3198
  var N = (_) => {
3199
3199
  var L = Hi();
@@ -3210,7 +3210,7 @@ function Ci(r, t) {
3210
3210
  !0
3211
3211
  );
3212
3212
  }
3213
- e.append(f, y);
3213
+ e.append(f, A);
3214
3214
  };
3215
3215
  e.if(
3216
3216
  S,
@@ -3252,7 +3252,7 @@ function Ci(r, t) {
3252
3252
  }
3253
3253
  e.append(n, o);
3254
3254
  };
3255
- e.if(A, (n) => {
3255
+ e.if(y, (n) => {
3256
3256
  e.get(i) === "bold" ? n(I) : n(b, !1);
3257
3257
  });
3258
3258
  }
@@ -3293,7 +3293,7 @@ function Ei(r, t) {
3293
3293
  t.children && n(j);
3294
3294
  });
3295
3295
  }
3296
- var A = e.sibling(k, 2);
3296
+ var y = e.sibling(k, 2);
3297
3297
  {
3298
3298
  var I = (n) => {
3299
3299
  var o = Li();
@@ -3320,10 +3320,10 @@ function Ei(r, t) {
3320
3320
  var h = e.comment(), S = e.first_child(h);
3321
3321
  {
3322
3322
  var E = (f) => {
3323
- var y = Pi();
3324
- e.append(f, y);
3323
+ var A = Pi();
3324
+ e.append(f, A);
3325
3325
  }, T = (f) => {
3326
- var y = e.comment(), G = e.first_child(y);
3326
+ var A = e.comment(), G = e.first_child(A);
3327
3327
  {
3328
3328
  var N = (_) => {
3329
3329
  var L = Ti();
@@ -3340,7 +3340,7 @@ function Ei(r, t) {
3340
3340
  !0
3341
3341
  );
3342
3342
  }
3343
- e.append(f, y);
3343
+ e.append(f, A);
3344
3344
  };
3345
3345
  e.if(
3346
3346
  S,
@@ -3382,7 +3382,7 @@ function Ei(r, t) {
3382
3382
  }
3383
3383
  e.append(n, o);
3384
3384
  };
3385
- e.if(A, (n) => {
3385
+ e.if(y, (n) => {
3386
3386
  e.get(i) === "bold" ? n(I) : n(b, !1);
3387
3387
  });
3388
3388
  }
@@ -3423,7 +3423,7 @@ function xt(r, t) {
3423
3423
  t.children && n(j);
3424
3424
  });
3425
3425
  }
3426
- var A = e.sibling(k, 2);
3426
+ var y = e.sibling(k, 2);
3427
3427
  {
3428
3428
  var I = (n) => {
3429
3429
  var o = Ri();
@@ -3450,10 +3450,10 @@ function xt(r, t) {
3450
3450
  var h = e.comment(), S = e.first_child(h);
3451
3451
  {
3452
3452
  var E = (f) => {
3453
- var y = Oi();
3454
- e.append(f, y);
3453
+ var A = Oi();
3454
+ e.append(f, A);
3455
3455
  }, T = (f) => {
3456
- var y = e.comment(), G = e.first_child(y);
3456
+ var A = e.comment(), G = e.first_child(A);
3457
3457
  {
3458
3458
  var N = (_) => {
3459
3459
  var L = Fi();
@@ -3470,7 +3470,7 @@ function xt(r, t) {
3470
3470
  !0
3471
3471
  );
3472
3472
  }
3473
- e.append(f, y);
3473
+ e.append(f, A);
3474
3474
  };
3475
3475
  e.if(
3476
3476
  S,
@@ -3512,7 +3512,7 @@ function xt(r, t) {
3512
3512
  }
3513
3513
  e.append(n, o);
3514
3514
  };
3515
- e.if(A, (n) => {
3515
+ e.if(y, (n) => {
3516
3516
  e.get(i) === "bold" ? n(I) : n(b, !1);
3517
3517
  });
3518
3518
  }
@@ -3553,7 +3553,7 @@ function Ki(r, t) {
3553
3553
  t.children && n(j);
3554
3554
  });
3555
3555
  }
3556
- var A = e.sibling(k, 2);
3556
+ var y = e.sibling(k, 2);
3557
3557
  {
3558
3558
  var I = (n) => {
3559
3559
  var o = qi();
@@ -3580,10 +3580,10 @@ function Ki(r, t) {
3580
3580
  var h = e.comment(), S = e.first_child(h);
3581
3581
  {
3582
3582
  var E = (f) => {
3583
- var y = Qi();
3584
- e.append(f, y);
3583
+ var A = Qi();
3584
+ e.append(f, A);
3585
3585
  }, T = (f) => {
3586
- var y = e.comment(), G = e.first_child(y);
3586
+ var A = e.comment(), G = e.first_child(A);
3587
3587
  {
3588
3588
  var N = (_) => {
3589
3589
  var L = Wi();
@@ -3600,7 +3600,7 @@ function Ki(r, t) {
3600
3600
  !0
3601
3601
  );
3602
3602
  }
3603
- e.append(f, y);
3603
+ e.append(f, A);
3604
3604
  };
3605
3605
  e.if(
3606
3606
  S,
@@ -3642,7 +3642,7 @@ function Ki(r, t) {
3642
3642
  }
3643
3643
  e.append(n, o);
3644
3644
  };
3645
- e.if(A, (n) => {
3645
+ e.if(y, (n) => {
3646
3646
  e.get(i) === "bold" ? n(I) : n(b, !1);
3647
3647
  });
3648
3648
  }
@@ -3683,7 +3683,7 @@ function o0(r, t) {
3683
3683
  t.children && n(j);
3684
3684
  });
3685
3685
  }
3686
- var A = e.sibling(k, 2);
3686
+ var y = e.sibling(k, 2);
3687
3687
  {
3688
3688
  var I = (n) => {
3689
3689
  var o = $i();
@@ -3710,10 +3710,10 @@ function o0(r, t) {
3710
3710
  var h = e.comment(), S = e.first_child(h);
3711
3711
  {
3712
3712
  var E = (f) => {
3713
- var y = r0();
3714
- e.append(f, y);
3713
+ var A = r0();
3714
+ e.append(f, A);
3715
3715
  }, T = (f) => {
3716
- var y = e.comment(), G = e.first_child(y);
3716
+ var A = e.comment(), G = e.first_child(A);
3717
3717
  {
3718
3718
  var N = (_) => {
3719
3719
  var L = n0();
@@ -3730,7 +3730,7 @@ function o0(r, t) {
3730
3730
  !0
3731
3731
  );
3732
3732
  }
3733
- e.append(f, y);
3733
+ e.append(f, A);
3734
3734
  };
3735
3735
  e.if(
3736
3736
  S,
@@ -3772,7 +3772,7 @@ function o0(r, t) {
3772
3772
  }
3773
3773
  e.append(n, o);
3774
3774
  };
3775
- e.if(A, (n) => {
3775
+ e.if(y, (n) => {
3776
3776
  e.get(i) === "bold" ? n(I) : n(b, !1);
3777
3777
  });
3778
3778
  }
@@ -3841,11 +3841,11 @@ function x0(r, t) {
3841
3841
  },
3842
3842
  [() => /* @__PURE__ */ Rr()]
3843
3843
  ), e.append(H, s);
3844
- }, u = ce(de), M = e.derived(() => u.config.rightMenu || {}), w = e.derived(() => e.get(M).showSearch !== !1), k = e.derived(() => e.get(M).showGallery !== !1), j = e.derived(() => e.get(M).showFullscreen !== !1), A = e.derived(() => e.get(M).showAnnotations !== !1), I = e.derived(() => e.get(M).showInfo !== !1), b = e.derived(() => [
3844
+ }, u = ce(de), M = e.derived(() => u.config.rightMenu || {}), w = e.derived(() => e.get(M).showSearch !== !1), k = e.derived(() => e.get(M).showGallery !== !1), j = e.derived(() => e.get(M).showFullscreen !== !1), y = e.derived(() => e.get(M).showAnnotations !== !1), I = e.derived(() => e.get(M).showInfo !== !1), b = e.derived(() => [
3845
3845
  e.get(w) ? "search" : null,
3846
3846
  e.get(k) ? "gallery" : null,
3847
3847
  e.get(j) ? "fullscreen" : null,
3848
- e.get(A) ? "annotations" : null,
3848
+ e.get(y) ? "annotations" : null,
3849
3849
  e.get(I) ? "info" : null
3850
3850
  ].filter((H) => H !== null));
3851
3851
  var n = e.comment(), o = e.first_child(n);
@@ -3894,7 +3894,7 @@ function x0(r, t) {
3894
3894
  ]), e.append(h, S);
3895
3895
  };
3896
3896
  e.if(B, (h) => {
3897
- e.get(A) && h(R);
3897
+ e.get(y) && h(R);
3898
3898
  });
3899
3899
  }
3900
3900
  var D = e.sibling(B, 2);
@@ -3944,14 +3944,14 @@ function x0(r, t) {
3944
3944
  }
3945
3945
  var f = e.sibling(E, 2);
3946
3946
  {
3947
- var y = (O) => {
3947
+ var A = (O) => {
3948
3948
  var _ = w0(), L = e.child(_);
3949
3949
  m(L), e.reset(_), e.template_effect((z) => e.set_attribute(_, "data-tip", z), [
3950
3950
  () => u.showAnnotations ? /* @__PURE__ */ ct() : /* @__PURE__ */ dt()
3951
3951
  ]), e.append(O, _);
3952
3952
  };
3953
3953
  e.if(f, (O) => {
3954
- e.get(A) && O(y);
3954
+ e.get(y) && O(A);
3955
3955
  });
3956
3956
  }
3957
3957
  var G = e.sibling(f, 2);
@@ -4023,7 +4023,7 @@ function I0(r, t) {
4023
4023
  t.children && n(j);
4024
4024
  });
4025
4025
  }
4026
- var A = e.sibling(k, 2);
4026
+ var y = e.sibling(k, 2);
4027
4027
  {
4028
4028
  var I = (n) => {
4029
4029
  var o = M0();
@@ -4050,10 +4050,10 @@ function I0(r, t) {
4050
4050
  var h = e.comment(), S = e.first_child(h);
4051
4051
  {
4052
4052
  var E = (f) => {
4053
- var y = S0();
4054
- e.append(f, y);
4053
+ var A = S0();
4054
+ e.append(f, A);
4055
4055
  }, T = (f) => {
4056
- var y = e.comment(), G = e.first_child(y);
4056
+ var A = e.comment(), G = e.first_child(A);
4057
4057
  {
4058
4058
  var N = (_) => {
4059
4059
  var L = C0();
@@ -4070,7 +4070,7 @@ function I0(r, t) {
4070
4070
  !0
4071
4071
  );
4072
4072
  }
4073
- e.append(f, y);
4073
+ e.append(f, A);
4074
4074
  };
4075
4075
  e.if(
4076
4076
  S,
@@ -4112,7 +4112,7 @@ function I0(r, t) {
4112
4112
  }
4113
4113
  e.append(n, o);
4114
4114
  };
4115
- e.if(A, (n) => {
4115
+ e.if(y, (n) => {
4116
4116
  e.get(i) === "bold" ? n(I) : n(b, !1);
4117
4117
  });
4118
4118
  }
@@ -4151,7 +4151,7 @@ function P0(r, t) {
4151
4151
  ]
4152
4152
  ), e.append(g, s);
4153
4153
  }), e.reset(j);
4154
- var A = e.sibling(j, 2), I = e.child(A);
4154
+ var y = e.sibling(j, 2), I = e.child(y);
4155
4155
  I.__click = m;
4156
4156
  var b = e.child(I);
4157
4157
  {
@@ -4164,9 +4164,9 @@ function P0(r, t) {
4164
4164
  e.get(i) ? g(n) : g(o, !1);
4165
4165
  });
4166
4166
  }
4167
- e.reset(I), e.reset(A), e.reset(k), e.template_effect(
4167
+ e.reset(I), e.reset(y), e.reset(k), e.template_effect(
4168
4168
  (g, Z) => {
4169
- e.set_class(j, 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(A, "data-tip", g), e.set_class(I, 1, `btn btn-lg btn-secondary btn-circle shadow-xl transition-transform duration-300 ${e.get(i) ? "rotate-90" : ""}`), e.set_attribute(I, "aria-label", Z);
4169
+ e.set_class(j, 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(y, "data-tip", g), e.set_class(I, 1, `btn btn-lg btn-secondary btn-circle shadow-xl transition-transform duration-300 ${e.get(i) ? "rotate-90" : ""}`), e.set_attribute(I, "aria-label", Z);
4170
4170
  },
4171
4171
  [() => /* @__PURE__ */ vt(), () => /* @__PURE__ */ vt()]
4172
4172
  ), e.append(w, k);
@@ -4188,13 +4188,13 @@ function D0(r, t) {
4188
4188
  const h = e.get(l).getMetadata();
4189
4189
  return h ? h.map((S) => {
4190
4190
  let E = "", T = "";
4191
- const f = (y) => {
4192
- if (typeof y == "string") return y;
4193
- if (Array.isArray(y)) {
4194
- let G = y.find((N) => N.locale === d || N.language === d);
4195
- return G || (G = y.find((N) => N.locale === "en" || N.language === "en")), G || (G = y.find((N) => !N.locale && !N.language)), G || (G = y[0]), G ? G.value : "";
4191
+ const f = (A) => {
4192
+ if (typeof A == "string") return A;
4193
+ if (Array.isArray(A)) {
4194
+ let G = A.find((N) => N.locale === d || N.language === d);
4195
+ return G || (G = A.find((N) => N.locale === "en" || N.language === "en")), G || (G = A.find((N) => !N.locale && !N.language)), G || (G = A[0]), G ? G.value : "";
4196
4196
  }
4197
- return String(y);
4197
+ return String(A);
4198
4198
  };
4199
4199
  return S.getLabel ? E = f(S.getLabel()) : S.label && (E = f(S.label)), S.getValue ? T = f(S.getValue()) : S.value && (T = f(S.value)), { label: E, value: T };
4200
4200
  }) : [];
@@ -4204,9 +4204,9 @@ function D0(r, t) {
4204
4204
  }), u = e.derived(() => e.get(l) ? e.get(l).getLicense() : "");
4205
4205
  var M = j0(), w = e.child(M), k = e.child(w), j = e.child(k);
4206
4206
  j.__click = () => a.toggleMetadataDialog(), e.reset(k);
4207
- var A = e.sibling(k, 2), I = e.child(A, !0);
4208
- e.reset(A);
4209
- var b = e.sibling(A, 2), n = e.child(b);
4207
+ var y = e.sibling(k, 2), I = e.child(y, !0);
4208
+ e.reset(y);
4209
+ var b = e.sibling(y, 2), n = e.child(b);
4210
4210
  {
4211
4211
  var o = (d) => {
4212
4212
  var h = T0(), S = e.child(h), E = e.child(S);
@@ -4222,7 +4222,7 @@ function D0(r, t) {
4222
4222
  var h = B0(), S = e.first_child(h), E = e.child(S, !0);
4223
4223
  e.reset(S);
4224
4224
  var T = e.sibling(S, 2), f = e.child(T);
4225
- e.html(f, () => e.get(x)), e.reset(T), e.template_effect((y) => e.set_text(E, y), [() => /* @__PURE__ */ ir()]), e.append(d, h);
4225
+ e.html(f, () => e.get(x)), e.reset(T), e.template_effect((A) => e.set_text(E, A), [() => /* @__PURE__ */ ir()]), e.append(d, h);
4226
4226
  };
4227
4227
  e.if(Z, (d) => {
4228
4228
  e.get(x) && d(H);
@@ -4233,10 +4233,10 @@ function D0(r, t) {
4233
4233
  var c = (d) => {
4234
4234
  var h = E0(), S = e.first_child(h), E = e.child(S, !0);
4235
4235
  e.reset(S);
4236
- var T = e.sibling(S, 2), f = e.child(T), y = e.child(f, !0);
4236
+ var T = e.sibling(S, 2), f = e.child(T), A = e.child(f, !0);
4237
4237
  e.reset(f), e.reset(T), e.template_effect(
4238
4238
  (G) => {
4239
- e.set_text(E, G), e.set_attribute(f, "href", e.get(u)), e.set_text(y, e.get(u));
4239
+ e.set_text(E, G), e.set_attribute(f, "href", e.get(u)), e.set_text(A, e.get(u));
4240
4240
  },
4241
4241
  [() => /* @__PURE__ */ lr()]
4242
4242
  ), e.append(d, h);
@@ -4249,8 +4249,8 @@ function D0(r, t) {
4249
4249
  e.each(P, 17, () => e.get(i), e.index, (d, h) => {
4250
4250
  var S = R0(), E = e.first_child(S), T = e.child(E, !0);
4251
4251
  e.reset(E);
4252
- var f = e.sibling(E, 2), y = e.child(f);
4253
- e.html(y, () => e.get(h).value), e.reset(f), e.template_effect(() => e.set_text(T, e.get(h).label)), e.append(d, S);
4252
+ var f = e.sibling(E, 2), A = e.child(f);
4253
+ e.html(A, () => e.get(h).value), e.reset(f), e.template_effect(() => e.set_text(T, e.get(h).label)), e.append(d, S);
4254
4254
  }), e.reset(g), e.reset(b);
4255
4255
  var V = e.sibling(b, 2), C = e.child(V), v = e.child(C);
4256
4256
  v.__click = () => a.toggleMetadataDialog();
@@ -4278,13 +4278,13 @@ e.from_svg('<path d="M134,32V64a6,6,0,0,1-12,0V32a6,6,0,0,1,12,0Zm39.25,56.75A6,
4278
4278
  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>');
4279
4279
  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>');
4280
4280
  e.from_svg('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');
4281
- var G0 = e.from_html('<button class="btn btn-sm btn-circle btn-ghost"><!></button>'), O0 = e.from_html('<span class="loading loading-spinner loading-xs"></span>'), F0 = e.from_html('<div class="flex justify-center p-8"><span class="loading loading-spinner loading-lg text-primary"></span></div>'), N0 = e.from_html('<div class="text-center opacity-50 p-4"> </div>'), q0 = e.from_html('<div class="text-center opacity-50 p-4 text-sm"> </div>'), U0 = 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>'), Y0 = e.from_html('<div class="leading-relaxed"> </div>'), X0 = e.from_html('<button class="w-full text-left card bg-base-100 shadow hover:shadow-md transition-all p-4 text-sm group border border-transparent hover:border-primary focus:outline-none focus:ring-2 focus:ring-primary"><div class="flex justify-between items-baseline mb-1"><span class="font-bold text-xs opacity-70 bg-base-200 px-1.5 py-0.5 rounded"> </span></div> <!></button>'), Q0 = e.from_html('<div class="text-xs font-bold opacity-50 uppercase tracking-wider pb-2"> </div> <!>', 1), W0 = e.from_html('<div class="h-full bg-base-200 shadow-2xl z-100 flex flex-col border-l border-base-300 transition-[width] duration-200" 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>');
4281
+ var G0 = e.from_html('<button class="btn btn-sm btn-circle btn-ghost"><!></button>'), O0 = e.from_html('<span class="loading loading-spinner loading-xs"></span>'), F0 = e.from_html('<div class="flex justify-center p-8"><span class="loading loading-spinner loading-lg text-primary"></span></div>'), N0 = e.from_html('<div class="text-center opacity-50 p-4"> </div>'), q0 = e.from_html('<div class="text-center opacity-50 p-4 text-sm"> </div>'), U0 = 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>'), Y0 = e.from_html('<div class="leading-relaxed"> </div>'), X0 = e.from_html('<button class="w-full text-left card bg-base-100 shadow hover:shadow-md transition-all p-4 text-sm group border border-transparent hover:border-primary focus:outline-none focus:ring-2 focus:ring-primary"><div class="flex justify-between items-baseline mb-1"><span class="font-bold text-xs opacity-70 bg-base-200 px-1.5 py-0.5 rounded"> </span></div> <!></button>'), Q0 = e.from_html('<div class="text-xs font-bold opacity-50 uppercase tracking-wider pb-2"> </div> <!>', 1), W0 = 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>');
4282
4282
  function J0(r, t) {
4283
4283
  e.push(t, !0);
4284
4284
  const a = ce(de);
4285
4285
  let l = e.state(""), i = e.derived(() => {
4286
- var A;
4287
- return ((A = a.config.search) == null ? void 0 : A.showCloseButton) ?? !0;
4286
+ var y;
4287
+ return ((y = a.config.search) == null ? void 0 : y.showCloseButton) ?? !0;
4288
4288
  });
4289
4289
  e.user_effect(() => {
4290
4290
  a.searchQuery !== It(() => e.get(l)) && e.set(l, a.searchQuery, !0);
@@ -4292,20 +4292,20 @@ function J0(r, t) {
4292
4292
  function m() {
4293
4293
  a.search(e.get(l));
4294
4294
  }
4295
- function x(A) {
4296
- A.key === "Enter" && m();
4295
+ function x(y) {
4296
+ y.key === "Enter" && m();
4297
4297
  }
4298
- function u(A) {
4299
- const I = a.canvases[A.canvasIndex];
4298
+ function u(y) {
4299
+ const I = a.canvases[y.canvasIndex];
4300
4300
  I && a.setCanvas(I.id);
4301
4301
  }
4302
4302
  let M = e.derived(() => {
4303
- var A;
4304
- return ((A = a.config.search) == null ? void 0 : A.width) ?? "320px";
4303
+ var y;
4304
+ return ((y = a.config.search) == null ? void 0 : y.width) ?? "320px";
4305
4305
  });
4306
4306
  var w = e.comment(), k = e.first_child(w);
4307
4307
  {
4308
- var j = (A) => {
4308
+ var j = (y) => {
4309
4309
  var I = W0(), b = e.child(I), n = e.child(b), o = e.child(n, !0);
4310
4310
  e.reset(n);
4311
4311
  var g = e.sibling(n, 2);
@@ -4347,12 +4347,12 @@ function J0(r, t) {
4347
4347
  var h = e.comment(), S = e.first_child(h);
4348
4348
  {
4349
4349
  var E = (f) => {
4350
- var y = N0(), G = e.child(y, !0);
4351
- e.reset(y), e.template_effect((N) => e.set_text(G, N), [
4350
+ var A = N0(), G = e.child(A, !0);
4351
+ e.reset(A), e.template_effect((N) => e.set_text(G, N), [
4352
4352
  () => /* @__PURE__ */ Na({ query: a.searchQuery })
4353
- ]), e.append(f, y);
4353
+ ]), e.append(f, A);
4354
4354
  }, T = (f) => {
4355
- var y = e.comment(), G = e.first_child(y);
4355
+ var A = e.comment(), G = e.first_child(A);
4356
4356
  {
4357
4357
  var N = (_) => {
4358
4358
  var L = q0(), z = e.child(L, !0);
@@ -4396,7 +4396,7 @@ function J0(r, t) {
4396
4396
  !0
4397
4397
  );
4398
4398
  }
4399
- e.append(f, y);
4399
+ e.append(f, A);
4400
4400
  };
4401
4401
  e.if(
4402
4402
  S,
@@ -4414,7 +4414,7 @@ function J0(r, t) {
4414
4414
  }
4415
4415
  e.reset(p), e.reset(I), e.template_effect(
4416
4416
  (d, h, S, E) => {
4417
- e.set_style(I, `width: ${e.get(M) ?? ""}`), e.set_attribute(I, "aria-label", d), e.set_text(o, h), e.set_attribute(c, "placeholder", S), e.set_attribute(P, "aria-label", E);
4417
+ e.set_class(I, 1, `h-full bg-base-200 shadow-2xl z-100 flex flex-col transition-[width] duration-200 ${a.config.transparentBackground ? "" : "border-l border-base-300"}`), e.set_style(I, `width: ${e.get(M) ?? ""}`), e.set_attribute(I, "aria-label", d), e.set_text(o, h), e.set_attribute(c, "placeholder", S), e.set_attribute(P, "aria-label", E);
4418
4418
  },
4419
4419
  [
4420
4420
  () => /* @__PURE__ */ it(),
@@ -4422,16 +4422,16 @@ function J0(r, t) {
4422
4422
  () => /* @__PURE__ */ Ga(),
4423
4423
  () => /* @__PURE__ */ it()
4424
4424
  ]
4425
- ), e.bind_value(c, () => e.get(l), (d) => e.set(l, d)), e.append(A, I);
4425
+ ), e.bind_value(c, () => e.get(l), (d) => e.set(l, d)), e.append(y, I);
4426
4426
  };
4427
- e.if(k, (A) => {
4428
- a.showSearchPanel && A(j);
4427
+ e.if(k, (y) => {
4428
+ a.showSearchPanel && y(j);
4429
4429
  });
4430
4430
  }
4431
4431
  e.append(r, w), e.pop();
4432
4432
  }
4433
4433
  e.delegate(["click", "keydown"]);
4434
- var K0 = e.from_html('<div class="h-full w-[200px] pointer-events-auto relative"><!></div>'), $0 = e.from_html('<div class="h-full relative pointer-events-auto"><!></div>'), eo = e.from_html('<div class="flex-none flex flex-row z-20 bg-base-200 border-r border-base-300 transition-all"><!> <!></div>'), to = e.from_html('<div class="flex-none h-[140px] w-full pointer-events-auto relative z-20"><!></div>'), ao = e.from_html('<div class="w-full h-full flex items-center justify-center"><span class="loading loading-spinner loading-lg text-primary"></span></div>'), ro = e.from_html('<div class="w-full h-full flex items-center justify-center text-error"> </div>'), no = e.from_html('<div class="w-full h-full flex items-center justify-center text-base-content/50"> </div>'), io = e.from_html('<div class="absolute inset-0 z-40 pointer-events-none"><!></div>'), oo = e.from_html('<div class="flex-none h-[140px] w-full pointer-events-auto relative z-20"><!></div>'), so = e.from_html('<div class="relative w-full z-40 pointer-events-auto"><!></div>'), lo = e.from_html('<div class="h-full relative pointer-events-auto"><!></div>'), co = e.from_html('<div class="h-full w-[200px] pointer-events-auto relative"><!></div>'), fo = e.from_html('<div class="h-full relative pointer-events-auto"><!></div>'), vo = e.from_html('<div class="flex-none flex flex-row z-20 bg-base-200 border-l border-base-300 transition-all"><!> <!> <!></div>'), ho = e.from_html('<div id="triiiceratops-viewer" class="flex w-full h-full relative bg-base-100 overflow-hidden"><!> <div id="triiiceratops-center-panel" class="flex-1 relative min-w-0 flex flex-col"><!> <div class="flex-1 relative min-h-0 w-full h-full bg-base-100"><!> <!> <!> <!> <!> <!> <!> <!></div> <!> <!></div> <!></div>');
4434
+ var K0 = e.from_html('<div class="h-full w-[200px] pointer-events-auto relative"><!></div>'), $0 = e.from_html('<div class="h-full relative pointer-events-auto"><!></div>'), eo = e.from_html("<div><!> <!></div>"), to = e.from_html('<div class="flex-none h-[140px] w-full pointer-events-auto relative z-20"><!></div>'), ao = e.from_html('<div class="w-full h-full flex items-center justify-center"><span class="loading loading-spinner loading-lg text-primary"></span></div>'), ro = e.from_html('<div class="w-full h-full flex items-center justify-center text-error"> </div>'), no = e.from_html('<div class="w-full h-full flex items-center justify-center text-base-content/50"> </div>'), io = e.from_html('<div class="absolute inset-0 z-40 pointer-events-none"><!></div>'), oo = e.from_html('<div class="flex-none h-[140px] w-full pointer-events-auto relative z-20"><!></div>'), so = e.from_html('<div class="relative w-full z-40 pointer-events-auto"><!></div>'), lo = e.from_html('<div class="h-full relative pointer-events-auto"><!></div>'), co = e.from_html('<div class="h-full w-[200px] pointer-events-auto relative"><!></div>'), fo = e.from_html('<div class="h-full relative pointer-events-auto"><!></div>'), vo = e.from_html("<div><!> <!> <!></div>"), ho = e.from_html('<div id="triiiceratops-viewer"><!> <div id="triiiceratops-center-panel" class="flex-1 relative min-w-0 flex flex-col"><!> <div><!> <!> <!> <!> <!> <!> <!> <!></div> <!> <!></div> <!></div>');
4435
4435
  function bo(r, t) {
4436
4436
  e.push(t, !0);
4437
4437
  const a = typeof window < "u";
@@ -4470,14 +4470,14 @@ function bo(r, t) {
4470
4470
  document.removeEventListener("fullscreenchange", z);
4471
4471
  };
4472
4472
  });
4473
- let k = e.derived(() => u.showThumbnailGallery && u.dockSide === "left" || u.pluginPanels.some((z) => z.position === "left" && z.isVisible())), j = e.derived(() => u.showSearchPanel || u.showThumbnailGallery && u.dockSide === "right" || u.pluginPanels.some((z) => z.position === "right" && z.isVisible())), A = e.derived(() => u.manifest), I = e.derived(() => u.canvases), b = e.derived(() => u.currentCanvasIndex), n = e.derived(() => {
4473
+ let k = e.derived(() => u.showThumbnailGallery && u.dockSide === "left" || u.pluginPanels.some((z) => z.position === "left" && z.isVisible())), j = e.derived(() => u.showSearchPanel || u.showThumbnailGallery && u.dockSide === "right" || u.pluginPanels.some((z) => z.position === "right" && z.isVisible())), y = e.derived(() => u.manifest), I = e.derived(() => u.canvases), b = e.derived(() => u.currentCanvasIndex), n = e.derived(() => {
4474
4474
  var ae, ie;
4475
4475
  if (!e.get(I) || e.get(b) === -1 || !e.get(I)[e.get(b)])
4476
- return (ae = e.get(A)) != null && ae.isFetching || console.log("TriiiceratopsViewer: No canvas found"), null;
4476
+ return (ae = e.get(y)) != null && ae.isFetching || console.log("TriiiceratopsViewer: No canvas found"), null;
4477
4477
  const z = e.get(I)[e.get(b)];
4478
4478
  let q = z.getImages();
4479
4479
  if ((!q || !q.length) && z.getContent && (q = z.getContent()), !q || !q.length)
4480
- return z.__jsonld && z.__jsonld.items, (ie = e.get(A)) != null && ie.isFetching || console.log("TriiiceratopsViewer: No images/content in canvas"), null;
4480
+ return z.__jsonld && z.__jsonld.items, (ie = e.get(y)) != null && ie.isFetching || console.log("TriiiceratopsViewer: No images/content in canvas"), null;
4481
4481
  const U = q[0];
4482
4482
  let Y = U.getResource ? U.getResource() : null;
4483
4483
  if (!Y && U.getBody) {
@@ -4546,7 +4546,7 @@ function bo(r, t) {
4546
4546
  });
4547
4547
  }
4548
4548
  e.append(W, ee);
4549
- }), e.reset(q), e.append(z, q);
4549
+ }), e.reset(q), e.template_effect(() => e.set_class(q, 1, `flex-none flex flex-row z-20 transition-all ${u.config.transparentBackground ? "" : "bg-base-200 border-r border-base-300"}`)), e.append(z, q);
4550
4550
  };
4551
4551
  e.if(g, (z) => {
4552
4552
  e.get(k) && z(Z);
@@ -4578,7 +4578,7 @@ function bo(r, t) {
4578
4578
  var Q = ro(), ee = e.child(Q);
4579
4579
  e.reset(Q), e.template_effect(
4580
4580
  (ae) => e.set_text(ee, `${ae ?? ""}
4581
- ${e.get(A).error ?? ""}`),
4581
+ ${e.get(y).error ?? ""}`),
4582
4582
  [() => /* @__PURE__ */ fn()]
4583
4583
  ), e.append(W, Q);
4584
4584
  }, K = (W) => {
@@ -4614,7 +4614,7 @@ function bo(r, t) {
4614
4614
  U,
4615
4615
  (W) => {
4616
4616
  var Q;
4617
- (Q = e.get(A)) != null && Q.error ? W(Y) : W(K, !1);
4617
+ (Q = e.get(y)) != null && Q.error ? W(Y) : W(K, !1);
4618
4618
  },
4619
4619
  !0
4620
4620
  );
@@ -4623,7 +4623,7 @@ function bo(r, t) {
4623
4623
  };
4624
4624
  e.if(V, (z) => {
4625
4625
  var q;
4626
- (q = e.get(A)) != null && q.isFetching ? z(C) : z(v, !1);
4626
+ (q = e.get(y)) != null && q.isFetching ? z(C) : z(v, !1);
4627
4627
  });
4628
4628
  }
4629
4629
  var p = e.sibling(V, 2);
@@ -4679,7 +4679,7 @@ function bo(r, t) {
4679
4679
  }
4680
4680
  var f = e.sibling(E, 2);
4681
4681
  {
4682
- var y = (z) => {
4682
+ var A = (z) => {
4683
4683
  ve(z, {
4684
4684
  get canvases() {
4685
4685
  return e.get(I);
@@ -4687,7 +4687,7 @@ function bo(r, t) {
4687
4687
  });
4688
4688
  };
4689
4689
  e.if(f, (z) => {
4690
- u.showThumbnailGallery && u.dockSide === "none" && z(y);
4690
+ u.showThumbnailGallery && u.dockSide === "none" && z(A);
4691
4691
  });
4692
4692
  }
4693
4693
  e.reset(P);
@@ -4763,13 +4763,15 @@ function bo(r, t) {
4763
4763
  });
4764
4764
  }
4765
4765
  e.append(ee, ie);
4766
- }), e.reset(q), e.append(z, q);
4766
+ }), e.reset(q), e.template_effect(() => e.set_class(q, 1, `flex-none flex flex-row z-20 transition-all ${u.config.transparentBackground ? "" : "bg-base-200 border-l border-base-300"}`)), e.append(z, q);
4767
4767
  };
4768
4768
  e.if(_, (z) => {
4769
4769
  e.get(j) && z(L);
4770
4770
  });
4771
4771
  }
4772
- e.reset(o), e.bind_this(o, (z) => e.set(x, z), () => e.get(x)), e.append(r, o), e.pop();
4772
+ e.reset(o), e.bind_this(o, (z) => e.set(x, z), () => e.get(x)), e.template_effect(() => {
4773
+ e.set_class(o, 1, `flex w-full h-full relative overflow-hidden ${u.config.transparentBackground ? "" : "bg-base-100"}`), e.set_class(P, 1, `flex-1 relative min-h-0 w-full h-full ${u.config.transparentBackground ? "" : "bg-base-100"}`);
4774
+ }), e.append(r, o), e.pop();
4773
4775
  }
4774
4776
  class wo {
4775
4777
  constructor() {