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.
- package/dist/{ArrowCounterClockwise-aFffCOKw.js → ArrowCounterClockwise-CvTUOlYp.js} +1 -1
- package/dist/{X-DZEgXrJ8.js → X-Dgb3I7Ob.js} +305 -301
- package/dist/{annotation_tool_point-CZKsj4Nk.js → annotation_tool_point-CKkqbVDq.js} +1 -1
- package/dist/components/SearchPanel.svelte +35 -23
- package/dist/components/ThumbnailGallery.svelte +25 -3
- package/dist/components/TriiiceratopsViewer.svelte +71 -6
- package/dist/{image_filters_reset-BEIf-_QA.js → image_filters_reset-DZrbHhqM.js} +1 -1
- package/dist/plugins/annotation-editor.js +3 -3
- package/dist/plugins/image-manipulation.js +3 -3
- package/dist/state/manifests.svelte.d.ts +2 -2
- package/dist/state/manifests.svelte.js +3 -0
- package/dist/state/viewer.svelte.d.ts +2 -0
- package/dist/state/viewer.svelte.js +114 -92
- package/dist/triiiceratops-bundle.js +1406 -1371
- package/dist/triiiceratops-element.css +1 -0
- package/dist/triiiceratops-element.iife.js +27 -26
- package/dist/triiiceratops.css +1 -1
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Dt = Object.defineProperty;
|
|
2
|
+
var pt = (a) => {
|
|
3
3
|
throw TypeError(a);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var n = (a, t, 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
|
|
9
|
+
import * as Bt from "manifesto.js";
|
|
10
10
|
import "svelte/internal/disclose-version";
|
|
11
|
-
import { hasContext as Tt, getContext as
|
|
11
|
+
import { hasContext as Tt, getContext as jt } from "svelte";
|
|
12
12
|
var E, D;
|
|
13
|
-
class
|
|
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),
|
|
36
|
-
|
|
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 =
|
|
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
|
|
99
|
-
let
|
|
100
|
-
const
|
|
101
|
-
return
|
|
102
|
-
const
|
|
103
|
-
if (
|
|
104
|
-
const w = this.manifests[
|
|
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
|
|
108
|
-
|
|
110
|
+
const A = I(w.json);
|
|
111
|
+
m.push(...A);
|
|
109
112
|
}
|
|
110
113
|
} else
|
|
111
|
-
this.fetchAnnotationList(
|
|
112
|
-
} else
|
|
113
|
-
}),
|
|
114
|
-
const
|
|
115
|
-
if (
|
|
116
|
-
const w = this.manifests[
|
|
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
|
|
120
|
-
|
|
122
|
+
const A = I(w.json);
|
|
123
|
+
m.push(...A);
|
|
121
124
|
}
|
|
122
125
|
} else
|
|
123
|
-
this.fetchAnnotationList(
|
|
124
|
-
} else
|
|
125
|
-
}),
|
|
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
|
|
130
|
-
var R, G,
|
|
131
|
-
class
|
|
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,
|
|
142
|
-
h(this,
|
|
143
|
-
h(this,
|
|
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
|
-
|
|
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,
|
|
151
|
-
h(this,
|
|
152
|
-
h(this,
|
|
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
|
-
|
|
158
|
+
ft(this, "eventTarget", null);
|
|
156
159
|
h(this, W, e.state(""));
|
|
157
|
-
h(this, J, e.state(
|
|
158
|
-
h(this, X, e.state(
|
|
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(
|
|
163
|
+
h(this, tt, e.state(!1));
|
|
164
|
+
h(this, et, e.state(e.proxy([])));
|
|
161
165
|
h(
|
|
162
166
|
this,
|
|
163
|
-
|
|
167
|
+
st,
|
|
164
168
|
// ==================== PLUGIN STATE ====================
|
|
165
169
|
/** Plugin-registered menu buttons */
|
|
166
170
|
e.state(e.proxy([]))
|
|
167
171
|
);
|
|
168
|
-
h(this,
|
|
169
|
-
h(this,
|
|
170
|
-
|
|
171
|
-
this.manifestId = t || null, this.canvasId = s || null, 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,
|
|
192
|
+
return e.get(n(this, B));
|
|
189
193
|
}
|
|
190
194
|
set showAnnotations(t) {
|
|
191
|
-
e.set(n(this,
|
|
195
|
+
e.set(n(this, B), t, !0);
|
|
192
196
|
}
|
|
193
197
|
get showThumbnailGallery() {
|
|
194
|
-
return e.get(n(this,
|
|
198
|
+
return e.get(n(this, T));
|
|
195
199
|
}
|
|
196
200
|
set showThumbnailGallery(t) {
|
|
197
|
-
e.set(n(this,
|
|
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,
|
|
210
|
+
return e.get(n(this, V));
|
|
207
211
|
}
|
|
208
212
|
set isGalleryDockedRight(t) {
|
|
209
|
-
e.set(n(this,
|
|
213
|
+
e.set(n(this, V), t, !0);
|
|
210
214
|
}
|
|
211
215
|
get isFullScreen() {
|
|
212
|
-
return e.get(n(this,
|
|
216
|
+
return e.get(n(this, O));
|
|
213
217
|
}
|
|
214
218
|
set isFullScreen(t) {
|
|
215
|
-
e.set(n(this,
|
|
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,
|
|
228
|
+
return e.get(n(this, Q));
|
|
225
229
|
}
|
|
226
230
|
set dockSide(t) {
|
|
227
|
-
e.set(n(this,
|
|
231
|
+
e.set(n(this, Q), t, !0);
|
|
228
232
|
}
|
|
229
233
|
get visibleAnnotationIds() {
|
|
230
|
-
return e.get(n(this,
|
|
234
|
+
return e.get(n(this, Z));
|
|
231
235
|
}
|
|
232
236
|
set visibleAnnotationIds(t) {
|
|
233
|
-
e.set(n(this,
|
|
237
|
+
e.set(n(this, Z), t, !0);
|
|
234
238
|
}
|
|
235
239
|
get config() {
|
|
236
|
-
return e.get(n(this,
|
|
240
|
+
return e.get(n(this, z));
|
|
237
241
|
}
|
|
238
242
|
set config(t) {
|
|
239
|
-
e.set(n(this,
|
|
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,
|
|
255
|
+
return e.get(n(this, H));
|
|
252
256
|
}
|
|
253
257
|
set galleryPosition(t) {
|
|
254
|
-
e.set(n(this,
|
|
258
|
+
e.set(n(this, H), t, !0);
|
|
255
259
|
}
|
|
256
260
|
get gallerySize() {
|
|
257
|
-
return e.get(n(this,
|
|
261
|
+
return e.get(n(this, N));
|
|
258
262
|
}
|
|
259
263
|
set gallerySize(t) {
|
|
260
|
-
e.set(n(this,
|
|
264
|
+
e.set(n(this, N), t, !0);
|
|
261
265
|
}
|
|
262
266
|
get isGalleryDragging() {
|
|
263
|
-
return e.get(n(this,
|
|
267
|
+
return e.get(n(this, U));
|
|
264
268
|
}
|
|
265
269
|
set isGalleryDragging(t) {
|
|
266
|
-
e.set(n(this,
|
|
270
|
+
e.set(n(this, U), t, !0);
|
|
267
271
|
}
|
|
268
272
|
get galleryDragOffset() {
|
|
269
|
-
return e.get(n(this,
|
|
273
|
+
return e.get(n(this, q));
|
|
270
274
|
}
|
|
271
275
|
set galleryDragOffset(t) {
|
|
272
|
-
e.set(n(this,
|
|
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 =
|
|
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 ?
|
|
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
|
-
|
|
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,
|
|
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,
|
|
368
|
-
r !== void 0 && 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
|
|
397
|
+
get pendingSearchQuery() {
|
|
398
398
|
return e.get(n(this, J));
|
|
399
399
|
}
|
|
400
|
-
set
|
|
400
|
+
set pendingSearchQuery(t) {
|
|
401
401
|
e.set(n(this, J), t, !0);
|
|
402
402
|
}
|
|
403
|
-
get
|
|
403
|
+
get searchResults() {
|
|
404
404
|
return e.get(n(this, X));
|
|
405
405
|
}
|
|
406
|
-
set
|
|
406
|
+
set searchResults(t) {
|
|
407
407
|
e.set(n(this, X), t, !0);
|
|
408
408
|
}
|
|
409
|
-
get
|
|
409
|
+
get isSearching() {
|
|
410
410
|
return e.get(n(this, Y));
|
|
411
411
|
}
|
|
412
|
-
set
|
|
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,
|
|
425
|
+
return e.get(n(this, et));
|
|
420
426
|
}
|
|
421
427
|
set searchAnnotations(t) {
|
|
422
|
-
e.set(n(this,
|
|
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)
|
|
437
|
-
|
|
438
|
-
|
|
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
|
|
443
|
-
if (!
|
|
444
|
-
const
|
|
445
|
-
const
|
|
446
|
-
if (!
|
|
447
|
-
const
|
|
448
|
-
if (
|
|
449
|
-
const
|
|
450
|
-
return
|
|
451
|
-
};
|
|
452
|
-
if (
|
|
453
|
-
for (const o of
|
|
454
|
-
const
|
|
455
|
-
|
|
456
|
-
|
|
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(/<mark>/g, "<mark>").replace(/<\/mark>/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,
|
|
459
|
-
|
|
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
|
-
|
|
477
|
-
|
|
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
|
-
|
|
483
|
-
|
|
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
|
|
493
|
-
if (
|
|
494
|
-
const
|
|
495
|
-
let
|
|
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 (
|
|
498
|
-
const
|
|
499
|
-
Array.isArray(
|
|
500
|
-
} else
|
|
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
|
-
|
|
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
|
-
|
|
507
|
-
|
|
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 =
|
|
515
|
-
const
|
|
516
|
-
return
|
|
517
|
-
const
|
|
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:
|
|
523
|
-
canvasId:
|
|
524
|
-
resource: { "@type": "cnt:ContentAsText", chars:
|
|
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,
|
|
543
|
+
return e.get(n(this, st));
|
|
540
544
|
}
|
|
541
545
|
set pluginMenuButtons(t) {
|
|
542
|
-
e.set(n(this,
|
|
546
|
+
e.set(n(this, st), t, !0);
|
|
543
547
|
}
|
|
544
548
|
get pluginPanels() {
|
|
545
|
-
return e.get(n(this,
|
|
549
|
+
return e.get(n(this, nt));
|
|
546
550
|
}
|
|
547
551
|
set pluginPanels(t) {
|
|
548
|
-
e.set(n(this,
|
|
552
|
+
e.set(n(this, nt), t, !0);
|
|
549
553
|
}
|
|
550
554
|
get osdViewer() {
|
|
551
|
-
return e.get(n(this,
|
|
555
|
+
return e.get(n(this, at));
|
|
552
556
|
}
|
|
553
557
|
set osdViewer(t) {
|
|
554
|
-
e.set(n(this,
|
|
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
|
-
},
|
|
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,
|
|
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(),
|
|
611
|
-
const
|
|
612
|
-
let
|
|
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(
|
|
618
|
+
return Tt(vt) ? jt(vt) : {};
|
|
615
619
|
}
|
|
616
|
-
const
|
|
620
|
+
const Ft = "en", dt = (
|
|
617
621
|
/** @type {const} */
|
|
618
622
|
["en", "de"]
|
|
619
|
-
),
|
|
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,
|
|
629
|
+
let ht, mt = !1, St = () => {
|
|
626
630
|
let a;
|
|
627
|
-
for (const t of
|
|
631
|
+
for (const t of wt) {
|
|
628
632
|
if (t === "cookie")
|
|
629
|
-
a =
|
|
633
|
+
a = Nt();
|
|
630
634
|
else if (t === "baseLocale")
|
|
631
|
-
a =
|
|
635
|
+
a = Ft;
|
|
632
636
|
else if (t === "globalVariable" && ht !== void 0)
|
|
633
637
|
a = ht;
|
|
634
|
-
else if (
|
|
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 =
|
|
645
|
-
return
|
|
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
|
|
654
|
+
const Zt = (a) => {
|
|
651
655
|
window.location.reload();
|
|
652
656
|
};
|
|
653
|
-
let
|
|
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 =
|
|
664
|
+
i = St();
|
|
661
665
|
} catch {
|
|
662
666
|
}
|
|
663
667
|
const r = [];
|
|
664
|
-
for (const
|
|
665
|
-
if (
|
|
668
|
+
for (const m of wt)
|
|
669
|
+
if (m === "globalVariable")
|
|
666
670
|
ht = a;
|
|
667
|
-
else if (
|
|
671
|
+
else if (m === "cookie") {
|
|
668
672
|
if (typeof document > "u" || typeof window > "u")
|
|
669
673
|
continue;
|
|
670
|
-
const
|
|
671
|
-
document.cookie =
|
|
674
|
+
const I = `${yt}=${a}; path=/; max-age=${Qt}`;
|
|
675
|
+
document.cookie = I;
|
|
672
676
|
} else {
|
|
673
|
-
if (
|
|
677
|
+
if (m === "baseLocale")
|
|
674
678
|
continue;
|
|
675
|
-
if (
|
|
676
|
-
const
|
|
677
|
-
if (
|
|
678
|
-
let
|
|
679
|
-
|
|
680
|
-
throw new Error(`Custom strategy "${
|
|
681
|
-
cause:
|
|
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(
|
|
687
|
+
}), r.push(g));
|
|
684
688
|
}
|
|
685
689
|
}
|
|
686
690
|
}
|
|
687
|
-
const
|
|
688
|
-
s.reload && window.location && a !== i &&
|
|
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
|
-
|
|
696
|
+
d();
|
|
693
697
|
});
|
|
694
|
-
|
|
698
|
+
d();
|
|
695
699
|
};
|
|
696
|
-
const
|
|
697
|
-
|
|
700
|
+
const re = (a) => {
|
|
701
|
+
At = /** @type {SetLocaleFn} */
|
|
698
702
|
a;
|
|
699
703
|
};
|
|
700
|
-
function
|
|
701
|
-
return typeof a != "string" ? !1 : a ?
|
|
704
|
+
function zt(a) {
|
|
705
|
+
return typeof a != "string" ? !1 : a ? dt.some((t) => t.toLowerCase() === a.toLowerCase()) : !1;
|
|
702
706
|
}
|
|
703
|
-
function
|
|
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 =
|
|
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: ${
|
|
712
|
+
throw new Error(`Invalid locale: ${a}. Expected one of: ${dt.join(", ")}`);
|
|
709
713
|
return s;
|
|
710
714
|
}
|
|
711
|
-
function
|
|
715
|
+
function Nt() {
|
|
712
716
|
if (typeof document > "u" || !document.cookie)
|
|
713
717
|
return;
|
|
714
|
-
const a = document.cookie.match(new RegExp(`(^| )${
|
|
715
|
-
if (
|
|
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
|
|
723
|
+
function It(a) {
|
|
720
724
|
return typeof a == "string" && /^custom-[A-Za-z0-9_-]+$/.test(a);
|
|
721
725
|
}
|
|
722
|
-
const
|
|
726
|
+
const Ut = (
|
|
723
727
|
/** @type {(inputs: {}) => LocalizedString} */
|
|
724
728
|
() => (
|
|
725
729
|
/** @type {LocalizedString} */
|
|
726
730
|
"Close"
|
|
727
731
|
)
|
|
728
|
-
),
|
|
732
|
+
), qt = (
|
|
729
733
|
/** @type {(inputs: {}) => LocalizedString} */
|
|
730
734
|
() => (
|
|
731
735
|
/** @type {LocalizedString} */
|
|
732
736
|
"Schließen"
|
|
733
737
|
)
|
|
734
|
-
),
|
|
735
|
-
var
|
|
736
|
-
function
|
|
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"),
|
|
740
|
-
function
|
|
741
|
-
let { weight:
|
|
742
|
-
return
|
|
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
|
|
748
|
+
var v = te();
|
|
745
749
|
e.attribute_effect(
|
|
746
|
-
|
|
747
|
-
(
|
|
750
|
+
v,
|
|
751
|
+
(o, c) => ({
|
|
748
752
|
xmlns: "http://www.w3.org/2000/svg",
|
|
749
753
|
role: "img",
|
|
750
|
-
width: e.get(
|
|
751
|
-
height: e.get(
|
|
752
|
-
fill: e.get(
|
|
753
|
-
transform: e.get(
|
|
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
|
-
...
|
|
756
|
-
...
|
|
759
|
+
...o,
|
|
760
|
+
...c
|
|
757
761
|
}),
|
|
758
|
-
[() =>
|
|
762
|
+
[() => g(s), () => g(i)]
|
|
759
763
|
);
|
|
760
|
-
var w = e.child(
|
|
764
|
+
var w = e.child(v);
|
|
761
765
|
{
|
|
762
|
-
var
|
|
763
|
-
var
|
|
764
|
-
e.snippet(
|
|
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, (
|
|
767
|
-
t.children &&
|
|
770
|
+
e.if(w, (o) => {
|
|
771
|
+
t.children && o(A);
|
|
768
772
|
});
|
|
769
773
|
}
|
|
770
|
-
var
|
|
774
|
+
var it = e.sibling(w, 2);
|
|
771
775
|
{
|
|
772
|
-
var
|
|
773
|
-
var
|
|
774
|
-
e.append(
|
|
775
|
-
},
|
|
776
|
-
var
|
|
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
|
|
779
|
-
var
|
|
780
|
-
e.next(), e.append(
|
|
781
|
-
},
|
|
782
|
-
var
|
|
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
|
|
785
|
-
var
|
|
786
|
-
e.append(b,
|
|
787
|
-
},
|
|
788
|
-
var
|
|
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
|
|
791
|
-
var rt =
|
|
792
|
-
e.append(
|
|
793
|
-
},
|
|
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
|
|
797
|
-
var ot =
|
|
798
|
-
e.append(
|
|
799
|
-
},
|
|
800
|
-
var ot = e.comment(),
|
|
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
|
|
803
|
-
var lt =
|
|
804
|
-
e.append(
|
|
805
|
-
},
|
|
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(
|
|
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
|
-
|
|
811
|
-
(
|
|
812
|
-
e.get(r) === "thin" ?
|
|
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(
|
|
821
|
+
e.append(M, ot);
|
|
818
822
|
};
|
|
819
823
|
e.if(
|
|
820
824
|
Lt,
|
|
821
|
-
(
|
|
822
|
-
e.get(r) === "regular" ?
|
|
825
|
+
(M) => {
|
|
826
|
+
e.get(r) === "regular" ? M(Mt) : M(Ct, !1);
|
|
823
827
|
},
|
|
824
828
|
!0
|
|
825
829
|
);
|
|
826
830
|
}
|
|
827
|
-
e.append(
|
|
831
|
+
e.append(L, rt);
|
|
828
832
|
};
|
|
829
833
|
e.if(
|
|
830
|
-
|
|
831
|
-
(
|
|
832
|
-
e.get(r) === "light" ?
|
|
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,
|
|
841
|
+
e.append(b, x);
|
|
838
842
|
};
|
|
839
843
|
e.if(
|
|
840
|
-
|
|
844
|
+
p,
|
|
841
845
|
(b) => {
|
|
842
|
-
e.get(r) === "fill" ? b(
|
|
846
|
+
e.get(r) === "fill" ? b(gt) : b(k, !1);
|
|
843
847
|
},
|
|
844
848
|
!0
|
|
845
849
|
);
|
|
846
850
|
}
|
|
847
|
-
e.append(
|
|
851
|
+
e.append(l, f);
|
|
848
852
|
};
|
|
849
853
|
e.if(
|
|
850
|
-
|
|
851
|
-
(
|
|
852
|
-
e.get(r) === "duotone" ?
|
|
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(
|
|
861
|
+
e.append(o, c);
|
|
858
862
|
};
|
|
859
|
-
e.if(
|
|
860
|
-
e.get(r) === "bold" ?
|
|
863
|
+
e.if(it, (o) => {
|
|
864
|
+
e.get(r) === "bold" ? o(_) : o(ut, !1);
|
|
861
865
|
});
|
|
862
866
|
}
|
|
863
|
-
e.reset(
|
|
867
|
+
e.reset(v), e.append(a, v), e.pop();
|
|
864
868
|
}
|
|
865
869
|
export {
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
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
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
+
dt as l,
|
|
878
|
+
P as m,
|
|
879
|
+
re as o,
|
|
880
|
+
At as s
|
|
877
881
|
};
|