triiiceratops 0.10.0 → 0.10.2

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,16 +1,16 @@
1
- var Et = Object.defineProperty;
2
- var dt = (a) => {
1
+ var Dt = Object.defineProperty;
2
+ var pt = (a) => {
3
3
  throw TypeError(a);
4
4
  };
5
- var Dt = (a, t, s) => t in a ? Et(a, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : a[t] = s;
6
- var gt = (a, t, s) => Dt(a, typeof t != "symbol" ? t + "" : t, s), Rt = (a, t, s) => t.has(a) || dt("Cannot " + s);
7
- var n = (a, t, s) => (Rt(a, t, "read from private field"), s ? s.call(a) : t.get(a)), h = (a, t, s) => t.has(a) ? dt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(a) : t.set(a, s);
5
+ var Rt = (a, t, s) => t in a ? Dt(a, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : a[t] = s;
6
+ var ft = (a, t, s) => Rt(a, typeof t != "symbol" ? t + "" : t, s), Gt = (a, t, s) => t.has(a) || pt("Cannot " + s);
7
+ var n = (a, t, s) => (Gt(a, t, "read from private field"), s ? s.call(a) : t.get(a)), h = (a, t, s) => t.has(a) ? pt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(a) : t.set(a, s);
8
8
  import * as e from "svelte/internal/client";
9
- import * as Gt from "manifesto.js";
9
+ import * as Bt from "manifesto.js";
10
10
  import "svelte/internal/disclose-version";
11
- import { hasContext as Tt, getContext as Bt } from "svelte";
11
+ import { hasContext as Tt, getContext as jt } from "svelte";
12
12
  var E, D;
13
- class jt {
13
+ class Vt {
14
14
  constructor() {
15
15
  h(this, E, e.state(e.proxy({})));
16
16
  h(this, D, e.state(e.proxy(/* @__PURE__ */ new Map())));
@@ -32,8 +32,8 @@ class jt {
32
32
  return `${t}::${s}`;
33
33
  }
34
34
  setUserAnnotations(t, s, i) {
35
- const r = this.userAnnotationKey(t, s), u = new Map(this.userAnnotations);
36
- u.set(r, i), this.userAnnotations = u;
35
+ const r = this.userAnnotationKey(t, s), d = new Map(this.userAnnotations);
36
+ d.set(r, i), this.userAnnotations = d;
37
37
  }
38
38
  clearUserAnnotations(t, s) {
39
39
  const i = this.userAnnotationKey(t, s);
@@ -54,7 +54,7 @@ class jt {
54
54
  const s = await fetch(t);
55
55
  if (!s.ok)
56
56
  throw new Error(`HTTP error! status: ${s.status}`);
57
- const i = await s.json(), r = Gt.parseManifest(i);
57
+ const i = await s.json(), r = Bt.parseManifest(i);
58
58
  this.manifests[t] = { json: i, manifesto: r, isFetching: !1 };
59
59
  } catch (s) {
60
60
  this.manifests[t] = { error: s.message, isFetching: !1 };
@@ -65,6 +65,9 @@ class jt {
65
65
  const s = this.manifests[t];
66
66
  return s == null ? void 0 : s.manifesto;
67
67
  }
68
+ getManifestEntry(t) {
69
+ return this.manifests[t];
70
+ }
68
71
  async fetchAnnotationList(t) {
69
72
  if (!this.manifests[t])
70
73
  try {
@@ -95,80 +98,81 @@ class jt {
95
98
  if (!i) return [];
96
99
  const r = i.getSequences()[0].getCanvasById(s);
97
100
  if (!r) return [];
98
- const u = r.__jsonld;
99
- let v = [];
100
- const A = (c) => c.resources || c.items || [];
101
- return u.otherContent && u.otherContent.forEach((c) => {
102
- const d = c["@id"] || c.id;
103
- if (d && !c.resources) {
104
- const w = this.manifests[d];
101
+ const d = r.__jsonld;
102
+ let m = [];
103
+ const I = (g) => g.resources || g.items || [];
104
+ return d.otherContent && d.otherContent.forEach((g) => {
105
+ const v = g["@id"] || g.id;
106
+ if (v && !g.resources) {
107
+ const w = this.manifests[v];
105
108
  if (w) {
106
109
  if (w.json) {
107
- const _ = A(w.json);
108
- v.push(..._);
110
+ const A = I(w.json);
111
+ m.push(...A);
109
112
  }
110
113
  } else
111
- this.fetchAnnotationList(d);
112
- } else c.resources && v.push(...c.resources);
113
- }), u.annotations && u.annotations.forEach((c) => {
114
- const d = c.id || c["@id"];
115
- if (d && !c.items) {
116
- const w = this.manifests[d];
114
+ this.fetchAnnotationList(v);
115
+ } else g.resources && m.push(...g.resources);
116
+ }), d.annotations && d.annotations.forEach((g) => {
117
+ const v = g.id || g["@id"];
118
+ if (v && !g.items) {
119
+ const w = this.manifests[v];
117
120
  if (w) {
118
121
  if (w.json) {
119
- const _ = A(w.json);
120
- v.push(..._);
122
+ const A = I(w.json);
123
+ m.push(...A);
121
124
  }
122
125
  } else
123
- this.fetchAnnotationList(d);
124
- } else c.items && v.push(...c.items);
125
- }), v;
126
+ this.fetchAnnotationList(v);
127
+ } else g.items && m.push(...g.items);
128
+ }), m;
126
129
  }
127
130
  }
128
131
  E = new WeakMap(), D = new WeakMap();
129
- const k = new jt();
130
- var R, G, T, B, j, O, V, F, N, Q, Z, q, z, H, U, K, $, W, J, X, Y, tt, et, st, nt;
131
- class ne {
132
+ const P = new Vt();
133
+ var R, G, B, T, j, V, O, F, Q, Z, z, H, N, U, q, K, $, W, J, X, Y, tt, et, st, nt, at;
134
+ class ae {
132
135
  constructor(t = null, s = null, i = []) {
133
136
  h(this, R, e.state(null));
134
137
  h(this, G, e.state(null));
135
- h(this, T, e.state(!1));
136
138
  h(this, B, e.state(!1));
139
+ h(this, T, e.state(!1));
137
140
  h(this, j, e.state(!1));
138
- h(this, O, e.state(!1));
139
141
  h(this, V, e.state(!1));
142
+ h(this, O, e.state(!1));
140
143
  h(this, F, e.state(!1));
141
- h(this, N, e.state("bottom"));
142
- h(this, Q, e.state(e.proxy(/* @__PURE__ */ new Set())));
143
- h(this, Z, e.state(e.proxy({})));
144
+ h(this, Q, e.state("bottom"));
145
+ h(this, Z, e.state(e.proxy(/* @__PURE__ */ new Set())));
146
+ h(this, z, e.state(e.proxy({})));
144
147
  h(
145
148
  this,
146
- q,
149
+ H,
147
150
  // Gallery State (Lifted for persistence during re-docking)
148
151
  e.state(e.proxy({ x: 20, y: 100 }))
149
152
  );
150
- h(this, z, e.state(e.proxy({ width: 300, height: 400 })));
151
- h(this, H, e.state(!1));
152
- h(this, U, e.state(e.proxy({ x: 0, y: 0 })));
153
+ h(this, N, e.state(e.proxy({ width: 300, height: 400 })));
154
+ h(this, U, e.state(!1));
155
+ h(this, q, e.state(e.proxy({ x: 0, y: 0 })));
153
156
  h(this, K, e.state(null));
154
157
  h(this, $, e.state(null));
155
- gt(this, "eventTarget", null);
158
+ ft(this, "eventTarget", null);
156
159
  h(this, W, e.state(""));
157
- h(this, J, e.state(e.proxy([])));
158
- h(this, X, e.state(!1));
160
+ h(this, J, e.state(null));
161
+ h(this, X, e.state(e.proxy([])));
159
162
  h(this, Y, e.state(!1));
160
- h(this, tt, e.state(e.proxy([])));
163
+ h(this, tt, e.state(!1));
164
+ h(this, et, e.state(e.proxy([])));
161
165
  h(
162
166
  this,
163
- et,
167
+ st,
164
168
  // ==================== PLUGIN STATE ====================
165
169
  /** Plugin-registered menu buttons */
166
170
  e.state(e.proxy([]))
167
171
  );
168
- h(this, st, e.state(e.proxy([])));
169
- h(this, nt, e.state(null));
170
- gt(this, "pluginEventHandlers", /* @__PURE__ */ new Map());
171
- this.manifestId = t || null, this.canvasId = s || null, this.manifestId && k.fetchManifest(this.manifestId);
172
+ h(this, nt, e.state(e.proxy([])));
173
+ h(this, at, e.state(null));
174
+ ft(this, "pluginEventHandlers", /* @__PURE__ */ new Map());
175
+ this.manifestId = t || null, this.canvasId = s || null, this.manifestId && P.fetchManifest(this.manifestId);
172
176
  for (const r of i)
173
177
  this.registerPlugin(r);
174
178
  }
@@ -185,16 +189,16 @@ class ne {
185
189
  e.set(n(this, G), t, !0);
186
190
  }
187
191
  get showAnnotations() {
188
- return e.get(n(this, T));
192
+ return e.get(n(this, B));
189
193
  }
190
194
  set showAnnotations(t) {
191
- e.set(n(this, T), t, !0);
195
+ e.set(n(this, B), t, !0);
192
196
  }
193
197
  get showThumbnailGallery() {
194
- return e.get(n(this, B));
198
+ return e.get(n(this, T));
195
199
  }
196
200
  set showThumbnailGallery(t) {
197
- e.set(n(this, B), t, !0);
201
+ e.set(n(this, T), t, !0);
198
202
  }
199
203
  get isGalleryDockedBottom() {
200
204
  return e.get(n(this, j));
@@ -203,16 +207,16 @@ class ne {
203
207
  e.set(n(this, j), t, !0);
204
208
  }
205
209
  get isGalleryDockedRight() {
206
- return e.get(n(this, O));
210
+ return e.get(n(this, V));
207
211
  }
208
212
  set isGalleryDockedRight(t) {
209
- e.set(n(this, O), t, !0);
213
+ e.set(n(this, V), t, !0);
210
214
  }
211
215
  get isFullScreen() {
212
- return e.get(n(this, V));
216
+ return e.get(n(this, O));
213
217
  }
214
218
  set isFullScreen(t) {
215
- e.set(n(this, V), t, !0);
219
+ e.set(n(this, O), t, !0);
216
220
  }
217
221
  get showMetadataDialog() {
218
222
  return e.get(n(this, F));
@@ -221,22 +225,22 @@ class ne {
221
225
  e.set(n(this, F), t, !0);
222
226
  }
223
227
  get dockSide() {
224
- return e.get(n(this, N));
228
+ return e.get(n(this, Q));
225
229
  }
226
230
  set dockSide(t) {
227
- e.set(n(this, N), t, !0);
231
+ e.set(n(this, Q), t, !0);
228
232
  }
229
233
  get visibleAnnotationIds() {
230
- return e.get(n(this, Q));
234
+ return e.get(n(this, Z));
231
235
  }
232
236
  set visibleAnnotationIds(t) {
233
- e.set(n(this, Q), t, !0);
237
+ e.set(n(this, Z), t, !0);
234
238
  }
235
239
  get config() {
236
- return e.get(n(this, Z));
240
+ return e.get(n(this, z));
237
241
  }
238
242
  set config(t) {
239
- e.set(n(this, Z), t, !0);
243
+ e.set(n(this, z), t, !0);
240
244
  }
241
245
  get showRightMenu() {
242
246
  return this.config.showRightMenu ?? !0;
@@ -248,28 +252,28 @@ class ne {
248
252
  return this.config.showCanvasNav ?? !0;
249
253
  }
250
254
  get galleryPosition() {
251
- return e.get(n(this, q));
255
+ return e.get(n(this, H));
252
256
  }
253
257
  set galleryPosition(t) {
254
- e.set(n(this, q), t, !0);
258
+ e.set(n(this, H), t, !0);
255
259
  }
256
260
  get gallerySize() {
257
- return e.get(n(this, z));
261
+ return e.get(n(this, N));
258
262
  }
259
263
  set gallerySize(t) {
260
- e.set(n(this, z), t, !0);
264
+ e.set(n(this, N), t, !0);
261
265
  }
262
266
  get isGalleryDragging() {
263
- return e.get(n(this, H));
267
+ return e.get(n(this, U));
264
268
  }
265
269
  set isGalleryDragging(t) {
266
- e.set(n(this, H), t, !0);
270
+ e.set(n(this, U), t, !0);
267
271
  }
268
272
  get galleryDragOffset() {
269
- return e.get(n(this, U));
273
+ return e.get(n(this, q));
270
274
  }
271
275
  set galleryDragOffset(t) {
272
- e.set(n(this, U), t, !0);
276
+ e.set(n(this, q), t, !0);
273
277
  }
274
278
  get dragOverSide() {
275
279
  return e.get(n(this, K));
@@ -294,7 +298,7 @@ class ne {
294
298
  */
295
299
  getSnapshot() {
296
300
  let t = -1;
297
- return this.manifestId && this.canvasId && (t = k.getCanvases(this.manifestId).findIndex((i) => (i.id || i["@id"] || (i.getCanvasId ? i.getCanvasId() : null) || (i.getId ? i.getId() : null)) === this.canvasId)), {
301
+ return this.manifestId && this.canvasId && (t = P.getCanvases(this.manifestId).findIndex((i) => (i.id || i["@id"] || (i.getCanvasId ? i.getCanvasId() : null) || (i.getId ? i.getId() : null)) === this.canvasId)), {
298
302
  manifestId: this.manifestId,
299
303
  canvasId: this.canvasId,
300
304
  currentCanvasIndex: t,
@@ -320,17 +324,13 @@ class ne {
320
324
  });
321
325
  }
322
326
  get manifest() {
323
- return this.manifestId ? k.getManifest(this.manifestId) : null;
327
+ return this.manifestId ? P.getManifest(this.manifestId) : null;
328
+ }
329
+ get manifestEntry() {
330
+ return this.manifestId ? P.getManifestEntry(this.manifestId) : null;
324
331
  }
325
332
  get canvases() {
326
- if (!this.manifestId) return [];
327
- const t = k.getCanvases(this.manifestId);
328
- return t.length > 0 && !this.canvasId && setTimeout(
329
- () => {
330
- !this.canvasId && t.length > 0 && (this.canvasId = t[0].id);
331
- },
332
- 0
333
- ), t;
333
+ return this.manifestId ? P.getCanvases(this.manifestId) : [];
334
334
  }
335
335
  get currentCanvasIndex() {
336
336
  return this.canvasId ? this.canvases.findIndex((t) => (t.id || t["@id"] || (t.getCanvasId ? t.getCanvasId() : null) || (t.getId ? t.getId() : null)) === this.canvasId) : this.canvases.length > 0 ? 0 : -1;
@@ -354,7 +354,7 @@ class ne {
354
354
  }
355
355
  }
356
356
  setManifest(t) {
357
- this.manifestId = t, this.canvasId = null, k.fetchManifest(t), this.dispatchStateChange("manifestchange");
357
+ this.manifestId = t, this.canvasId = null, P.fetchManifest(t), this.dispatchStateChange("manifestchange");
358
358
  }
359
359
  setCanvas(t) {
360
360
  this.canvasId = t, this.dispatchStateChange("canvaschange");
@@ -364,8 +364,8 @@ class ne {
364
364
  const s = this.config;
365
365
  if (this.config = t, t.gallery && (t.gallery.open !== void 0 && (this.showThumbnailGallery = t.gallery.open), t.gallery.dockPosition !== void 0 && (this.dockSide = t.gallery.dockPosition)), t.search) {
366
366
  t.search.open !== void 0 && (this.showSearchPanel = t.search.open);
367
- const r = t.search.query, u = (i = s.search) == null ? void 0 : i.query;
368
- r !== void 0 && r !== u && r !== this.searchQuery && this._performSearch(r);
367
+ const r = t.search.query, d = (i = s.search) == null ? void 0 : i.query;
368
+ r !== void 0 && r !== d && r !== this.searchQuery && this._performSearch(r);
369
369
  }
370
370
  t.annotations && t.annotations.open !== void 0 && (this.showAnnotations = t.annotations.open);
371
371
  }
@@ -394,32 +394,38 @@ class ne {
394
394
  set searchQuery(t) {
395
395
  e.set(n(this, W), t, !0);
396
396
  }
397
- get searchResults() {
397
+ get pendingSearchQuery() {
398
398
  return e.get(n(this, J));
399
399
  }
400
- set searchResults(t) {
400
+ set pendingSearchQuery(t) {
401
401
  e.set(n(this, J), t, !0);
402
402
  }
403
- get isSearching() {
403
+ get searchResults() {
404
404
  return e.get(n(this, X));
405
405
  }
406
- set isSearching(t) {
406
+ set searchResults(t) {
407
407
  e.set(n(this, X), t, !0);
408
408
  }
409
- get showSearchPanel() {
409
+ get isSearching() {
410
410
  return e.get(n(this, Y));
411
411
  }
412
- set showSearchPanel(t) {
412
+ set isSearching(t) {
413
413
  e.set(n(this, Y), t, !0);
414
414
  }
415
+ get showSearchPanel() {
416
+ return e.get(n(this, tt));
417
+ }
418
+ set showSearchPanel(t) {
419
+ e.set(n(this, tt), t, !0);
420
+ }
415
421
  toggleSearchPanel() {
416
422
  this.showSearchPanel = !this.showSearchPanel, this.showSearchPanel || (this.searchAnnotations = []), this.dispatchStateChange();
417
423
  }
418
424
  get searchAnnotations() {
419
- return e.get(n(this, tt));
425
+ return e.get(n(this, et));
420
426
  }
421
427
  set searchAnnotations(t) {
422
- e.set(n(this, tt), t, !0);
428
+ e.set(n(this, et), t, !0);
423
429
  }
424
430
  get currentCanvasSearchAnnotations() {
425
431
  return this.canvasId ? this.searchAnnotations.filter((t) => t.canvasId === this.canvasId) : [];
@@ -433,100 +439,98 @@ class ne {
433
439
  this.isSearching = !0, this.searchQuery = t, this.searchResults = [];
434
440
  try {
435
441
  const r = this.manifest;
436
- if (!r) throw new Error("No manifest loaded");
437
- let u = r.getService("http://iiif.io/api/search/1/search") || r.getService("http://iiif.io/api/search/0/search");
438
- if (u || r.__jsonld && r.__jsonld.service && (u = (Array.isArray(r.__jsonld.service) ? r.__jsonld.service : [r.__jsonld.service]).find((l) => l.profile === "http://iiif.io/api/search/1/search" || l.profile === "http://iiif.io/api/search/0/search")), !u) {
442
+ if (!r) {
443
+ console.log("[ViewerState] Manifest not loaded, deferring search:", t), this.pendingSearchQuery = t;
444
+ return;
445
+ }
446
+ let d = r.getService("http://iiif.io/api/search/1/search") || r.getService("http://iiif.io/api/search/0/search");
447
+ if (d || r.__jsonld && r.__jsonld.service && (d = (Array.isArray(r.__jsonld.service) ? r.__jsonld.service : [r.__jsonld.service]).find((c) => c.profile === "http://iiif.io/api/search/1/search" || c.profile === "http://iiif.io/api/search/0/search")), !d) {
439
448
  console.warn("No IIIF search service found in manifest"), this.isSearching = !1;
440
449
  return;
441
450
  }
442
- const A = `${u.id || u["@id"]}?q=${encodeURIComponent(t)}`, c = await fetch(A);
443
- if (!c.ok) throw new Error("Search request failed");
444
- const d = await c.json(), w = d.resources || [], _ = [], at = (o) => {
445
- const l = typeof o == "string" ? o : o["@id"] || o.id;
446
- if (!l) return null;
447
- const g = l.split("#xywh=");
448
- if (g.length < 2) return null;
449
- const m = g[1].split(",").map(Number);
450
- return m.length === 4 ? m : null;
451
- };
452
- if (d.hits)
453
- for (const o of d.hits) {
454
- const l = o.annotations || [], g = /* @__PURE__ */ new Map();
455
- for (const m of l) {
456
- const f = w.find((p) => p["@id"] === m || p.id === m);
451
+ const I = `${d.id || d["@id"]}?q=${encodeURIComponent(t)}`, g = await fetch(I);
452
+ if (!g.ok) throw new Error("Search request failed");
453
+ const v = await g.json(), w = v.resources || [], A = /* @__PURE__ */ new Map(), it = (o) => {
454
+ const c = typeof o == "string" ? o : o["@id"] || o.id;
455
+ if (!c) return null;
456
+ const u = c.split("#xywh=");
457
+ if (u.length < 2) return null;
458
+ const S = u[1].split(",").map(Number);
459
+ return S.length === 4 ? S : null;
460
+ }, _ = (o) => o ? o.replace(/&lt;mark&gt;/g, "<mark>").replace(/&lt;\/mark&gt;/g, "</mark>") : "";
461
+ if (v.hits)
462
+ for (const o of v.hits) {
463
+ const c = o.annotations || [];
464
+ let u = -1, S = null, y = [];
465
+ for (const l of c) {
466
+ const f = w.find((p) => p["@id"] === l || p.id === l);
457
467
  if (f && f.on) {
458
- const p = typeof f.on == "string" ? f.on : f.on["@id"] || f.on.id, y = p.split("#")[0], S = at(p), L = this.canvases.findIndex((I) => I.id === y);
459
- if (L >= 0) {
460
- if (!g.has(L)) {
461
- const I = this.canvases[L];
462
- let x = "Canvas " + (L + 1);
463
- try {
464
- if (I.getLabel) {
465
- const b = I.getLabel();
466
- Array.isArray(b) && b.length > 0 ? x = b[0].value : typeof b == "string" && (x = b);
467
- } else I.label && (typeof I.label == "string" ? x = I.label : Array.isArray(I.label) && (x = (s = I.label[0]) == null ? void 0 : s.value));
468
- } catch {
469
- }
470
- g.set(L, { label: String(x), bounds: [] });
471
- }
472
- S && g.get(L).bounds.push(S);
473
- }
468
+ const p = typeof f.on == "string" ? f.on : f.on["@id"] || f.on.id, gt = p.split("#")[0], k = it(p), b = this.canvases.findIndex((x) => x.id === gt);
469
+ b >= 0 && (u === -1 && (u = b), k && (y.push(k), S || (S = k)));
474
470
  }
475
471
  }
476
- for (const [m, f] of g)
477
- _.push({
472
+ if (u >= 0) {
473
+ if (!A.has(u)) {
474
+ const l = this.canvases[u];
475
+ let f = "Canvas " + (u + 1);
476
+ try {
477
+ if (l.getLabel) {
478
+ const p = l.getLabel();
479
+ Array.isArray(p) && p.length > 0 ? f = p[0].value : typeof p == "string" && (f = p);
480
+ } else l.label && (typeof l.label == "string" ? f = l.label : Array.isArray(l.label) && (f = (s = l.label[0]) == null ? void 0 : s.value));
481
+ } catch {
482
+ }
483
+ A.set(u, { canvasIndex: u, canvasLabel: String(f), hits: [] });
484
+ }
485
+ A.get(u).hits.push({
478
486
  type: "hit",
479
- before: o.before,
480
- match: o.match,
481
- after: o.after,
482
- canvasIndex: m,
483
- canvasLabel: f.label,
484
- // Store all bounds for this hit on this canvas
485
- allBounds: f.bounds,
486
- // Keep first bounds for backwards compatibility
487
- bounds: f.bounds.length > 0 ? f.bounds[0] : null
487
+ before: _(o.before),
488
+ match: _(o.match),
489
+ after: _(o.after),
490
+ bounds: S,
491
+ allBounds: y
488
492
  });
493
+ }
489
494
  }
490
495
  else if (w.length > 0)
491
496
  for (const o of w) {
492
- const l = typeof o.on == "string" ? o.on : o.on["@id"] || o.on.id, g = l.split("#")[0], m = at(l), f = this.canvases.findIndex((p) => p.id === g);
493
- if (f >= 0) {
494
- const p = this.canvases[f];
495
- let y = "Canvas " + (f + 1);
497
+ const c = typeof o.on == "string" ? o.on : o.on["@id"] || o.on.id, u = c.split("#")[0], S = it(c), y = this.canvases.findIndex((l) => l.id === u);
498
+ if (y >= 0) {
499
+ const l = this.canvases[y];
500
+ let f = "Canvas " + (y + 1);
496
501
  try {
497
- if (p.getLabel) {
498
- const S = p.getLabel();
499
- Array.isArray(S) && S.length > 0 ? y = S[0].value : typeof S == "string" && (y = S);
500
- } else p.label && (typeof p.label == "string" ? y = p.label : Array.isArray(p.label) && (y = (i = p.label[0]) == null ? void 0 : i.value));
502
+ if (l.getLabel) {
503
+ const p = l.getLabel();
504
+ Array.isArray(p) && p.length > 0 ? f = p[0].value : typeof p == "string" && (f = p);
505
+ } else l.label && (typeof l.label == "string" ? f = l.label : Array.isArray(l.label) && (f = (i = l.label[0]) == null ? void 0 : i.value));
501
506
  } catch {
502
507
  }
503
- _.push({
508
+ A.has(y) || A.set(y, { canvasIndex: y, canvasLabel: String(f), hits: [] }), A.get(y).hits.push({
504
509
  type: "resource",
505
- match: o.resource && o.resource.chars ? o.resource.chars : o.chars || "",
506
- canvasIndex: f,
507
- canvasLabel: String(y),
508
- bounds: m
510
+ match: _(o.resource && o.resource.chars ? o.resource.chars : o.chars || ""),
511
+ bounds: S,
512
+ allBounds: S ? [S] : []
509
513
  });
510
514
  }
511
515
  }
512
- this.searchResults = _;
516
+ this.searchResults = Array.from(A.values()).sort((o, c) => o.canvasIndex - c.canvasIndex);
513
517
  let ut = 0;
514
- this.searchAnnotations = _.flatMap((o) => {
515
- const l = this.canvases[o.canvasIndex];
516
- return (o.allBounds && o.allBounds.length > 0 ? o.allBounds : o.bounds ? [o.bounds] : []).map((m) => {
517
- const f = `${l.id}#xywh=${m.join(",")}`;
518
+ this.searchAnnotations = this.searchResults.flatMap((o) => {
519
+ const c = this.canvases[o.canvasIndex];
520
+ return o.hits.flatMap((u) => (u.allBounds && u.allBounds.length > 0 ? u.allBounds : u.bounds ? [u.bounds] : []).map((y) => {
521
+ const l = `${c.id}#xywh=${y.join(",")}`;
518
522
  return {
519
523
  "@id": `urn:search-hit:${ut++}`,
520
524
  "@type": "oa:Annotation",
521
525
  motivation: "sc:painting",
522
- on: f,
523
- canvasId: l.id,
524
- resource: { "@type": "cnt:ContentAsText", chars: o.match },
526
+ on: l,
527
+ canvasId: c.id,
528
+ resource: { "@type": "cnt:ContentAsText", chars: u.match },
525
529
  // Flag to identify styling in Overlay?
526
530
  // Or just standard rendering.
527
531
  isSearchHit: !0
528
532
  };
529
- });
533
+ }));
530
534
  });
531
535
  } catch (r) {
532
536
  console.error("Search error:", r);
@@ -536,22 +540,22 @@ class ne {
536
540
  }
537
541
  }
538
542
  get pluginMenuButtons() {
539
- return e.get(n(this, et));
543
+ return e.get(n(this, st));
540
544
  }
541
545
  set pluginMenuButtons(t) {
542
- e.set(n(this, et), t, !0);
546
+ e.set(n(this, st), t, !0);
543
547
  }
544
548
  get pluginPanels() {
545
- return e.get(n(this, st));
549
+ return e.get(n(this, nt));
546
550
  }
547
551
  set pluginPanels(t) {
548
- e.set(n(this, st), t, !0);
552
+ e.set(n(this, nt), t, !0);
549
553
  }
550
554
  get osdViewer() {
551
- return e.get(n(this, nt));
555
+ return e.get(n(this, at));
552
556
  }
553
557
  set osdViewer(t) {
554
- e.set(n(this, nt), t);
558
+ e.set(n(this, at), t);
555
559
  }
556
560
  registerPlugin(t) {
557
561
  const s = t.id || `plugin-${Math.random().toString(36).substr(2, 9)}`;
@@ -566,7 +570,7 @@ class ne {
566
570
  isActive: () => e.get(i),
567
571
  order: 200
568
572
  // Default order for simple plugins
569
- }, u = {
573
+ }, d = {
570
574
  id: `${s}:panel`,
571
575
  component: t.panel,
572
576
  position: t.position || "left",
@@ -580,7 +584,7 @@ class ne {
580
584
  }
581
585
  }
582
586
  };
583
- this.pluginMenuButtons = [...this.pluginMenuButtons, r], this.pluginPanels = [...this.pluginPanels, u], t.onInit && t.onInit(this);
587
+ this.pluginMenuButtons = [...this.pluginMenuButtons, r], this.pluginPanels = [...this.pluginPanels, d], t.onInit && t.onInit(this);
584
588
  }
585
589
  /**
586
590
  * Unregister a plugin's UI components by ID prefix.
@@ -607,31 +611,31 @@ class ne {
607
611
  this.pluginMenuButtons = [], this.pluginPanels = [], this.pluginEventHandlers.clear();
608
612
  }
609
613
  }
610
- R = new WeakMap(), G = new WeakMap(), T = new WeakMap(), B = new WeakMap(), j = new WeakMap(), O = new WeakMap(), V = new WeakMap(), F = new WeakMap(), N = new WeakMap(), Q = new WeakMap(), Z = new WeakMap(), q = new WeakMap(), z = new WeakMap(), H = new WeakMap(), U = new WeakMap(), K = new WeakMap(), $ = new WeakMap(), W = new WeakMap(), J = new WeakMap(), X = new WeakMap(), Y = new WeakMap(), tt = new WeakMap(), et = new WeakMap(), st = new WeakMap(), nt = new WeakMap();
611
- const ae = "triiiceratops:viewerState";
612
- let pt = Symbol("phosphor-svelte");
614
+ R = new WeakMap(), G = new WeakMap(), B = new WeakMap(), T = new WeakMap(), j = new WeakMap(), V = new WeakMap(), O = new WeakMap(), F = new WeakMap(), Q = new WeakMap(), Z = new WeakMap(), z = new WeakMap(), H = new WeakMap(), N = new WeakMap(), U = new WeakMap(), q = new WeakMap(), K = new WeakMap(), $ = new WeakMap(), W = new WeakMap(), J = new WeakMap(), X = new WeakMap(), Y = new WeakMap(), tt = new WeakMap(), et = new WeakMap(), st = new WeakMap(), nt = new WeakMap(), at = new WeakMap();
615
+ const ie = "triiiceratops:viewerState";
616
+ let vt = Symbol("phosphor-svelte");
613
617
  function Ot() {
614
- return Tt(pt) ? Bt(pt) : {};
618
+ return Tt(vt) ? jt(vt) : {};
615
619
  }
616
- const Vt = "en", ft = (
620
+ const Ft = "en", dt = (
617
621
  /** @type {const} */
618
622
  ["en", "de"]
619
- ), mt = "PARAGLIDE_LOCALE", Ft = 3456e4, yt = [
623
+ ), yt = "PARAGLIDE_LOCALE", Qt = 3456e4, wt = [
620
624
  "cookie",
621
625
  "globalVariable",
622
626
  "baseLocale"
623
627
  ];
624
628
  globalThis.__paraglide = {};
625
- let ht, vt = !1, wt = () => {
629
+ let ht, mt = !1, St = () => {
626
630
  let a;
627
- for (const t of yt) {
631
+ for (const t of wt) {
628
632
  if (t === "cookie")
629
- a = qt();
633
+ a = Nt();
630
634
  else if (t === "baseLocale")
631
- a = Vt;
635
+ a = Ft;
632
636
  else if (t === "globalVariable" && ht !== void 0)
633
637
  a = ht;
634
- else if (bt(t) && ct.has(t)) {
638
+ else if (It(t) && ct.has(t)) {
635
639
  const s = ct.get(t);
636
640
  if (s) {
637
641
  const i = s.getLocale();
@@ -641,237 +645,237 @@ let ht, vt = !1, wt = () => {
641
645
  }
642
646
  }
643
647
  if (a !== void 0) {
644
- const s = Zt(a);
645
- return vt || (ht = s, vt = !0, St(s, { reload: !1 })), s;
648
+ const s = Ht(a);
649
+ return mt || (ht = s, mt = !0, At(s, { reload: !1 })), s;
646
650
  }
647
651
  }
648
652
  throw new Error("No locale found. Read the docs https://inlang.com/m/gerre34r/library-inlang-paraglideJs/errors#no-locale-found");
649
653
  };
650
- const Nt = (a) => {
654
+ const Zt = (a) => {
651
655
  window.location.reload();
652
656
  };
653
- let St = (a, t) => {
657
+ let At = (a, t) => {
654
658
  const s = {
655
659
  reload: !0,
656
660
  ...t
657
661
  };
658
662
  let i;
659
663
  try {
660
- i = wt();
664
+ i = St();
661
665
  } catch {
662
666
  }
663
667
  const r = [];
664
- for (const v of yt)
665
- if (v === "globalVariable")
668
+ for (const m of wt)
669
+ if (m === "globalVariable")
666
670
  ht = a;
667
- else if (v === "cookie") {
671
+ else if (m === "cookie") {
668
672
  if (typeof document > "u" || typeof window > "u")
669
673
  continue;
670
- const A = `${mt}=${a}; path=/; max-age=${Ft}`;
671
- document.cookie = A;
674
+ const I = `${yt}=${a}; path=/; max-age=${Qt}`;
675
+ document.cookie = I;
672
676
  } else {
673
- if (v === "baseLocale")
677
+ if (m === "baseLocale")
674
678
  continue;
675
- if (bt(v) && ct.has(v)) {
676
- const A = ct.get(v);
677
- if (A) {
678
- let c = A.setLocale(a);
679
- c instanceof Promise && (c = c.catch((d) => {
680
- throw new Error(`Custom strategy "${v}" setLocale failed.`, {
681
- cause: d
679
+ if (It(m) && ct.has(m)) {
680
+ const I = ct.get(m);
681
+ if (I) {
682
+ let g = I.setLocale(a);
683
+ g instanceof Promise && (g = g.catch((v) => {
684
+ throw new Error(`Custom strategy "${m}" setLocale failed.`, {
685
+ cause: v
682
686
  });
683
- }), r.push(c));
687
+ }), r.push(g));
684
688
  }
685
689
  }
686
690
  }
687
- const u = () => {
688
- s.reload && window.location && a !== i && Nt();
691
+ const d = () => {
692
+ s.reload && window.location && a !== i && Zt();
689
693
  };
690
694
  if (r.length)
691
695
  return Promise.all(r).then(() => {
692
- u();
696
+ d();
693
697
  });
694
- u();
698
+ d();
695
699
  };
696
- const ie = (a) => {
697
- St = /** @type {SetLocaleFn} */
700
+ const re = (a) => {
701
+ At = /** @type {SetLocaleFn} */
698
702
  a;
699
703
  };
700
- function Qt(a) {
701
- return typeof a != "string" ? !1 : a ? ft.some((t) => t.toLowerCase() === a.toLowerCase()) : !1;
704
+ function zt(a) {
705
+ return typeof a != "string" ? !1 : a ? dt.some((t) => t.toLowerCase() === a.toLowerCase()) : !1;
702
706
  }
703
- function Zt(a) {
707
+ function Ht(a) {
704
708
  if (typeof a != "string")
705
709
  throw new Error(`Invalid locale: ${a}. Expected a string.`);
706
- const t = a.toLowerCase(), s = ft.find((i) => i.toLowerCase() === t);
710
+ const t = a.toLowerCase(), s = dt.find((i) => i.toLowerCase() === t);
707
711
  if (!s)
708
- throw new Error(`Invalid locale: ${a}. Expected one of: ${ft.join(", ")}`);
712
+ throw new Error(`Invalid locale: ${a}. Expected one of: ${dt.join(", ")}`);
709
713
  return s;
710
714
  }
711
- function qt() {
715
+ function Nt() {
712
716
  if (typeof document > "u" || !document.cookie)
713
717
  return;
714
- const a = document.cookie.match(new RegExp(`(^| )${mt}=([^;]+)`)), t = a == null ? void 0 : a[2];
715
- if (Qt(t))
718
+ const a = document.cookie.match(new RegExp(`(^| )${yt}=([^;]+)`)), t = a == null ? void 0 : a[2];
719
+ if (zt(t))
716
720
  return t;
717
721
  }
718
722
  const ct = /* @__PURE__ */ new Map();
719
- function bt(a) {
723
+ function It(a) {
720
724
  return typeof a == "string" && /^custom-[A-Za-z0-9_-]+$/.test(a);
721
725
  }
722
- const zt = (
726
+ const Ut = (
723
727
  /** @type {(inputs: {}) => LocalizedString} */
724
728
  () => (
725
729
  /** @type {LocalizedString} */
726
730
  "Close"
727
731
  )
728
- ), Ht = (
732
+ ), qt = (
729
733
  /** @type {(inputs: {}) => LocalizedString} */
730
734
  () => (
731
735
  /** @type {LocalizedString} */
732
736
  "Schließen"
733
737
  )
734
- ), re = /* @__NO_SIDE_EFFECTS__ */ (a = {}, t = {}) => (t.locale ?? wt()) === "en" ? zt() : Ht();
735
- var Ut = e.from_svg('<path d="M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"></path>'), Kt = e.from_svg('<path d="M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z" opacity="0.2"></path><path d="M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"></path>', 1), $t = e.from_svg('<path d="M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"></path>'), Wt = e.from_svg('<path d="M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"></path>'), Jt = e.from_svg('<path d="M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"></path>'), Xt = e.from_svg('<path d="M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"></path>'), Yt = e.from_svg('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');
736
- function oe(a, t) {
738
+ ), oe = /* @__NO_SIDE_EFFECTS__ */ (a = {}, t = {}) => (t.locale ?? St()) === "en" ? Ut() : qt();
739
+ var Kt = e.from_svg('<path d="M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"></path>'), $t = e.from_svg('<path d="M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z" opacity="0.2"></path><path d="M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"></path>', 1), Wt = e.from_svg('<path d="M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"></path>'), Jt = e.from_svg('<path d="M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"></path>'), Xt = e.from_svg('<path d="M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"></path>'), Yt = e.from_svg('<path d="M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"></path>'), te = e.from_svg('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');
740
+ function le(a, t) {
737
741
  e.push(t, !0);
738
742
  const s = Ot();
739
- let i = e.rest_props(t, ["$$slots", "$$events", "$$legacy", "children"]), r = e.derived(() => t.weight ?? s.weight ?? "regular"), u = e.derived(() => t.color ?? s.color ?? "currentColor"), v = e.derived(() => t.size ?? s.size ?? "1em"), A = e.derived(() => t.mirrored ?? s.mirrored ?? !1);
740
- function c(l) {
741
- let { weight: g, color: m, size: f, mirrored: p, ...y } = l;
742
- return y;
743
+ let i = e.rest_props(t, ["$$slots", "$$events", "$$legacy", "children"]), r = e.derived(() => t.weight ?? s.weight ?? "regular"), d = e.derived(() => t.color ?? s.color ?? "currentColor"), m = e.derived(() => t.size ?? s.size ?? "1em"), I = e.derived(() => t.mirrored ?? s.mirrored ?? !1);
744
+ function g(o) {
745
+ let { weight: c, color: u, size: S, mirrored: y, ...l } = o;
746
+ return l;
743
747
  }
744
- var d = Yt();
748
+ var v = te();
745
749
  e.attribute_effect(
746
- d,
747
- (l, g) => ({
750
+ v,
751
+ (o, c) => ({
748
752
  xmlns: "http://www.w3.org/2000/svg",
749
753
  role: "img",
750
- width: e.get(v),
751
- height: e.get(v),
752
- fill: e.get(u),
753
- transform: e.get(A) ? "scale(-1, 1)" : void 0,
754
+ width: e.get(m),
755
+ height: e.get(m),
756
+ fill: e.get(d),
757
+ transform: e.get(I) ? "scale(-1, 1)" : void 0,
754
758
  viewBox: "0 0 256 256",
755
- ...l,
756
- ...g
759
+ ...o,
760
+ ...c
757
761
  }),
758
- [() => c(s), () => c(i)]
762
+ [() => g(s), () => g(i)]
759
763
  );
760
- var w = e.child(d);
764
+ var w = e.child(v);
761
765
  {
762
- var _ = (l) => {
763
- var g = e.comment(), m = e.first_child(g);
764
- e.snippet(m, () => t.children), e.append(l, g);
766
+ var A = (o) => {
767
+ var c = e.comment(), u = e.first_child(c);
768
+ e.snippet(u, () => t.children), e.append(o, c);
765
769
  };
766
- e.if(w, (l) => {
767
- t.children && l(_);
770
+ e.if(w, (o) => {
771
+ t.children && o(A);
768
772
  });
769
773
  }
770
- var at = e.sibling(w, 2);
774
+ var it = e.sibling(w, 2);
771
775
  {
772
- var ut = (l) => {
773
- var g = Ut();
774
- e.append(l, g);
775
- }, o = (l) => {
776
- var g = e.comment(), m = e.first_child(g);
776
+ var _ = (o) => {
777
+ var c = Kt();
778
+ e.append(o, c);
779
+ }, ut = (o) => {
780
+ var c = e.comment(), u = e.first_child(c);
777
781
  {
778
- var f = (y) => {
779
- var S = Kt();
780
- e.next(), e.append(y, S);
781
- }, p = (y) => {
782
- var S = e.comment(), L = e.first_child(S);
782
+ var S = (l) => {
783
+ var f = $t();
784
+ e.next(), e.append(l, f);
785
+ }, y = (l) => {
786
+ var f = e.comment(), p = e.first_child(f);
783
787
  {
784
- var I = (b) => {
785
- var it = $t();
786
- e.append(b, it);
787
- }, x = (b) => {
788
- var it = e.comment(), At = e.first_child(it);
788
+ var gt = (b) => {
789
+ var x = Wt();
790
+ e.append(b, x);
791
+ }, k = (b) => {
792
+ var x = e.comment(), bt = e.first_child(x);
789
793
  {
790
- var It = (M) => {
791
- var rt = Wt();
792
- e.append(M, rt);
793
- }, _t = (M) => {
794
+ var _t = (L) => {
795
+ var rt = Jt();
796
+ e.append(L, rt);
797
+ }, xt = (L) => {
794
798
  var rt = e.comment(), Lt = e.first_child(rt);
795
799
  {
796
- var xt = (C) => {
797
- var ot = Jt();
798
- e.append(C, ot);
799
- }, Mt = (C) => {
800
- var ot = e.comment(), Ct = e.first_child(ot);
800
+ var Mt = (M) => {
801
+ var ot = Xt();
802
+ e.append(M, ot);
803
+ }, Ct = (M) => {
804
+ var ot = e.comment(), Pt = e.first_child(ot);
801
805
  {
802
- var Pt = (P) => {
803
- var lt = Xt();
804
- e.append(P, lt);
805
- }, kt = (P) => {
806
+ var kt = (C) => {
807
+ var lt = Yt();
808
+ e.append(C, lt);
809
+ }, Et = (C) => {
806
810
  var lt = e.text();
807
- lt.nodeValue = (console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'), ""), e.append(P, lt);
811
+ lt.nodeValue = (console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'), ""), e.append(C, lt);
808
812
  };
809
813
  e.if(
810
- Ct,
811
- (P) => {
812
- e.get(r) === "thin" ? P(Pt) : P(kt, !1);
814
+ Pt,
815
+ (C) => {
816
+ e.get(r) === "thin" ? C(kt) : C(Et, !1);
813
817
  },
814
818
  !0
815
819
  );
816
820
  }
817
- e.append(C, ot);
821
+ e.append(M, ot);
818
822
  };
819
823
  e.if(
820
824
  Lt,
821
- (C) => {
822
- e.get(r) === "regular" ? C(xt) : C(Mt, !1);
825
+ (M) => {
826
+ e.get(r) === "regular" ? M(Mt) : M(Ct, !1);
823
827
  },
824
828
  !0
825
829
  );
826
830
  }
827
- e.append(M, rt);
831
+ e.append(L, rt);
828
832
  };
829
833
  e.if(
830
- At,
831
- (M) => {
832
- e.get(r) === "light" ? M(It) : M(_t, !1);
834
+ bt,
835
+ (L) => {
836
+ e.get(r) === "light" ? L(_t) : L(xt, !1);
833
837
  },
834
838
  !0
835
839
  );
836
840
  }
837
- e.append(b, it);
841
+ e.append(b, x);
838
842
  };
839
843
  e.if(
840
- L,
844
+ p,
841
845
  (b) => {
842
- e.get(r) === "fill" ? b(I) : b(x, !1);
846
+ e.get(r) === "fill" ? b(gt) : b(k, !1);
843
847
  },
844
848
  !0
845
849
  );
846
850
  }
847
- e.append(y, S);
851
+ e.append(l, f);
848
852
  };
849
853
  e.if(
850
- m,
851
- (y) => {
852
- e.get(r) === "duotone" ? y(f) : y(p, !1);
854
+ u,
855
+ (l) => {
856
+ e.get(r) === "duotone" ? l(S) : l(y, !1);
853
857
  },
854
858
  !0
855
859
  );
856
860
  }
857
- e.append(l, g);
861
+ e.append(o, c);
858
862
  };
859
- e.if(at, (l) => {
860
- e.get(r) === "bold" ? l(ut) : l(o, !1);
863
+ e.if(it, (o) => {
864
+ e.get(r) === "bold" ? o(_) : o(ut, !1);
861
865
  });
862
866
  }
863
- e.reset(d), e.append(a, d), e.pop();
867
+ e.reset(v), e.append(a, v), e.pop();
864
868
  }
865
869
  export {
866
- jt as M,
867
- ae as V,
868
- oe as X,
869
- wt as a,
870
- ne as b,
871
- re as c,
870
+ Vt as M,
871
+ ie as V,
872
+ le as X,
873
+ St as a,
874
+ ae as b,
875
+ oe as c,
872
876
  Ot as g,
873
- ft as l,
874
- k as m,
875
- ie as o,
876
- St as s
877
+ dt as l,
878
+ P as m,
879
+ re as o,
880
+ At as s
877
881
  };