@celldl/viewer 0.20260801.0 → 0.20260807.1
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,9 +1,9 @@
|
|
|
1
1
|
import * as pr from "vue";
|
|
2
|
-
import { watch as xr, computed as Ea, toValue as Qr, unref as
|
|
2
|
+
import { watch as xr, computed as Ea, toValue as Qr, unref as oi, defineComponent as ai, ref as yt, onMounted as li, nextTick as Sa, reactive as Ta, h as Bt, getCurrentInstance as Ia, shallowRef as Ra, onUnmounted as Aa, isRef as dt, isReactive as Li, isVNode as Na, createApp as ji, openBlock as Ca, createElementBlock as Oa } from "vue";
|
|
3
3
|
const Pa = typeof window < "u" && typeof document < "u";
|
|
4
4
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
5
5
|
const La = Object.prototype.toString, ja = (r) => La.call(r) === "[object Object]";
|
|
6
|
-
function
|
|
6
|
+
function pn(r) {
|
|
7
7
|
return Array.isArray(r) ? r : [r];
|
|
8
8
|
}
|
|
9
9
|
function Da(r, e, t) {
|
|
@@ -20,15 +20,15 @@ function Ma(r) {
|
|
|
20
20
|
}
|
|
21
21
|
function $a(...r) {
|
|
22
22
|
const e = (n, i, s, a) => (n.addEventListener(i, s, a), () => n.removeEventListener(i, s, a)), t = Ea(() => {
|
|
23
|
-
const n =
|
|
23
|
+
const n = pn(Qr(r[0])).filter((i) => i != null);
|
|
24
24
|
return n.every((i) => typeof i != "string") ? n : void 0;
|
|
25
25
|
});
|
|
26
26
|
return Da(() => {
|
|
27
27
|
var n, i;
|
|
28
28
|
return [
|
|
29
29
|
(n = (i = t.value) === null || i === void 0 ? void 0 : i.map((s) => Ma(s))) !== null && n !== void 0 ? n : [Ba].filter((s) => s != null),
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
pn(Qr(t.value ? r[1] : r[0])),
|
|
31
|
+
pn(oi(t.value ? r[2] : r[1])),
|
|
32
32
|
Qr(t.value ? r[3] : r[2])
|
|
33
33
|
];
|
|
34
34
|
}, ([n, i, s, a], o, f) => {
|
|
@@ -39,12 +39,12 @@ function $a(...r) {
|
|
|
39
39
|
});
|
|
40
40
|
}, { flush: "post" });
|
|
41
41
|
}
|
|
42
|
-
var $e = "top", Ge = "bottom", Ve = "right", Fe = "left",
|
|
42
|
+
var $e = "top", Ge = "bottom", Ve = "right", Fe = "left", ui = "auto", Nr = [$e, Ge, Ve, Fe], Ut = "start", Er = "end", Fa = "clippingParents", po = "viewport", Zt = "popper", ka = "reference", Di = /* @__PURE__ */ Nr.reduce(function(r, e) {
|
|
43
43
|
return r.concat([e + "-" + Ut, e + "-" + Er]);
|
|
44
|
-
}, []), go = /* @__PURE__ */ [].concat(Nr, [
|
|
44
|
+
}, []), go = /* @__PURE__ */ [].concat(Nr, [ui]).reduce(function(r, e) {
|
|
45
45
|
return r.concat([e, e + "-" + Ut, e + "-" + Er]);
|
|
46
46
|
}, []), Ua = "beforeRead", qa = "read", Wa = "afterRead", Ga = "beforeMain", Va = "main", Ha = "afterMain", Qa = "beforeWrite", za = "write", Xa = "afterWrite", Ya = [Ua, qa, Wa, Ga, Va, Ha, Qa, za, Xa];
|
|
47
|
-
function
|
|
47
|
+
function Je(r) {
|
|
48
48
|
return r ? (r.nodeName || "").toLowerCase() : null;
|
|
49
49
|
}
|
|
50
50
|
function ze(r) {
|
|
@@ -74,7 +74,7 @@ function Ka(r) {
|
|
|
74
74
|
var e = r.state;
|
|
75
75
|
Object.keys(e.elements).forEach(function(t) {
|
|
76
76
|
var n = e.styles[t] || {}, i = e.attributes[t] || {}, s = e.elements[t];
|
|
77
|
-
!We(s) || !
|
|
77
|
+
!We(s) || !Je(s) || (Object.assign(s.style, n), Object.keys(i).forEach(function(a) {
|
|
78
78
|
var o = i[a];
|
|
79
79
|
o === !1 ? s.removeAttribute(a) : s.setAttribute(a, o === !0 ? "" : o);
|
|
80
80
|
}));
|
|
@@ -98,7 +98,7 @@ function Za(r) {
|
|
|
98
98
|
var i = e.elements[n], s = e.attributes[n] || {}, a = Object.keys(e.styles.hasOwnProperty(n) ? e.styles[n] : t[n]), o = a.reduce(function(f, g) {
|
|
99
99
|
return f[g] = "", f;
|
|
100
100
|
}, {});
|
|
101
|
-
!We(i) || !
|
|
101
|
+
!We(i) || !Je(i) || (Object.assign(i.style, o), Object.keys(s).forEach(function(f) {
|
|
102
102
|
i.removeAttribute(f);
|
|
103
103
|
}));
|
|
104
104
|
});
|
|
@@ -112,7 +112,7 @@ var yo = {
|
|
|
112
112
|
effect: Za,
|
|
113
113
|
requires: ["computeStyles"]
|
|
114
114
|
};
|
|
115
|
-
function
|
|
115
|
+
function Ze(r) {
|
|
116
116
|
return r.split("-")[0];
|
|
117
117
|
}
|
|
118
118
|
var Ot = Math.max, Yr = Math.min, Wt = Math.round;
|
|
@@ -134,7 +134,7 @@ function Gt(r, e) {
|
|
|
134
134
|
y: t.top / i
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function fi(r) {
|
|
138
138
|
var e = Gt(r), t = r.offsetWidth, n = r.offsetHeight;
|
|
139
139
|
return Math.abs(e.width - t) <= 1 && (t = e.width), Math.abs(e.height - n) <= 1 && (n = e.height), {
|
|
140
140
|
x: r.offsetLeft,
|
|
@@ -157,20 +157,20 @@ function _o(r, e) {
|
|
|
157
157
|
}
|
|
158
158
|
return !1;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function et(r) {
|
|
161
161
|
return ze(r).getComputedStyle(r);
|
|
162
162
|
}
|
|
163
163
|
function Ja(r) {
|
|
164
|
-
return ["table", "td", "th"].indexOf(
|
|
164
|
+
return ["table", "td", "th"].indexOf(Je(r)) >= 0;
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function wt(r) {
|
|
167
167
|
return ((qt(r) ? r.ownerDocument : (
|
|
168
168
|
// $FlowFixMe[prop-missing]
|
|
169
169
|
r.document
|
|
170
170
|
)) || window.document).documentElement;
|
|
171
171
|
}
|
|
172
|
-
function
|
|
173
|
-
return
|
|
172
|
+
function Jr(r) {
|
|
173
|
+
return Je(r) === "html" ? r : (
|
|
174
174
|
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
175
175
|
// $FlowFixMe[incompatible-return]
|
|
176
176
|
// $FlowFixMe[prop-missing]
|
|
@@ -178,22 +178,22 @@ function Zr(r) {
|
|
|
178
178
|
r.parentNode || // DOM Element detected
|
|
179
179
|
(bo(r) ? r.host : null) || // ShadowRoot detected
|
|
180
180
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
181
|
-
|
|
181
|
+
wt(r)
|
|
182
182
|
);
|
|
183
183
|
}
|
|
184
184
|
function Bi(r) {
|
|
185
185
|
return !We(r) || // https://github.com/popperjs/popper-core/issues/837
|
|
186
|
-
|
|
186
|
+
et(r).position === "fixed" ? null : r.offsetParent;
|
|
187
187
|
}
|
|
188
188
|
function el(r) {
|
|
189
189
|
var e = navigator.userAgent.toLowerCase().indexOf("firefox") !== -1, t = navigator.userAgent.indexOf("Trident") !== -1;
|
|
190
190
|
if (t && We(r)) {
|
|
191
|
-
var n =
|
|
191
|
+
var n = et(r);
|
|
192
192
|
if (n.position === "fixed")
|
|
193
193
|
return null;
|
|
194
194
|
}
|
|
195
|
-
for (var i =
|
|
196
|
-
var s =
|
|
195
|
+
for (var i = Jr(r); We(i) && ["html", "body"].indexOf(Je(i)) < 0; ) {
|
|
196
|
+
var s = et(i);
|
|
197
197
|
if (s.transform !== "none" || s.perspective !== "none" || s.contain === "paint" || ["transform", "perspective"].indexOf(s.willChange) !== -1 || e && s.willChange === "filter" || e && s.filter && s.filter !== "none")
|
|
198
198
|
return i;
|
|
199
199
|
i = i.parentNode;
|
|
@@ -201,11 +201,11 @@ function el(r) {
|
|
|
201
201
|
return null;
|
|
202
202
|
}
|
|
203
203
|
function Cr(r) {
|
|
204
|
-
for (var e = ze(r), t = Bi(r); t && Ja(t) &&
|
|
204
|
+
for (var e = ze(r), t = Bi(r); t && Ja(t) && et(t).position === "static"; )
|
|
205
205
|
t = Bi(t);
|
|
206
|
-
return t && (
|
|
206
|
+
return t && (Je(t) === "html" || Je(t) === "body" && et(t).position === "static") ? e : t || el(r) || e;
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function ci(r) {
|
|
209
209
|
return ["top", "bottom"].indexOf(r) >= 0 ? "x" : "y";
|
|
210
210
|
}
|
|
211
211
|
function br(r, e, t) {
|
|
@@ -237,9 +237,9 @@ var rl = function(e, t) {
|
|
|
237
237
|
})) : e, wo(typeof e != "number" ? e : vo(e, Nr));
|
|
238
238
|
};
|
|
239
239
|
function nl(r) {
|
|
240
|
-
var e, t = r.state, n = r.name, i = r.options, s = t.elements.arrow, a = t.modifiersData.popperOffsets, o =
|
|
240
|
+
var e, t = r.state, n = r.name, i = r.options, s = t.elements.arrow, a = t.modifiersData.popperOffsets, o = Ze(t.placement), f = ci(o), g = [Fe, Ve].indexOf(o) >= 0, c = g ? "height" : "width";
|
|
241
241
|
if (!(!s || !a)) {
|
|
242
|
-
var m = rl(i.padding, t), I =
|
|
242
|
+
var m = rl(i.padding, t), I = fi(s), v = f === "y" ? $e : Fe, d = f === "y" ? Ge : Ve, y = t.rects.reference[c] + t.rects.reference[f] - a[f] - t.rects.popper[c], w = a[f] - t.rects.reference[f], p = Cr(s), _ = p ? f === "y" ? p.clientHeight || 0 : p.clientWidth || 0 : 0, S = y / 2 - w / 2, h = m[v], T = _ - I[c] - m[d], O = _ / 2 - I[c] / 2 + S, L = br(h, O, T), j = f;
|
|
243
243
|
t.modifiersData[n] = (e = {}, e[j] = L, e.centerOffset = L - O, e);
|
|
244
244
|
}
|
|
245
245
|
}
|
|
@@ -276,7 +276,7 @@ function Mi(r) {
|
|
|
276
276
|
var e, t = r.popper, n = r.popperRect, i = r.placement, s = r.variation, a = r.offsets, o = r.position, f = r.gpuAcceleration, g = r.adaptive, c = r.roundOffsets, m = r.isFixed, I = c === !0 ? al(a) : typeof c == "function" ? c(a) : a, v = I.x, d = v === void 0 ? 0 : v, y = I.y, w = y === void 0 ? 0 : y, p = a.hasOwnProperty("x"), _ = a.hasOwnProperty("y"), S = Fe, h = $e, T = window;
|
|
277
277
|
if (g) {
|
|
278
278
|
var O = Cr(t), L = "clientHeight", j = "clientWidth";
|
|
279
|
-
if (O === ze(t) && (O =
|
|
279
|
+
if (O === ze(t) && (O = wt(t), et(O).position !== "static" && o === "absolute" && (L = "scrollHeight", j = "scrollWidth")), O = O, i === $e || (i === Fe || i === Ve) && s === Er) {
|
|
280
280
|
h = Ge;
|
|
281
281
|
var re = m && T.visualViewport ? T.visualViewport.height : (
|
|
282
282
|
// $FlowFixMe[prop-missing]
|
|
@@ -304,7 +304,7 @@ function Mi(r) {
|
|
|
304
304
|
}
|
|
305
305
|
function ll(r) {
|
|
306
306
|
var e = r.state, t = r.options, n = t.gpuAcceleration, i = n === void 0 ? !0 : n, s = t.adaptive, a = s === void 0 ? !0 : s, o = t.roundOffsets, f = o === void 0 ? !0 : o, g = {
|
|
307
|
-
placement:
|
|
307
|
+
placement: Ze(e.placement),
|
|
308
308
|
variation: Vt(e.placement),
|
|
309
309
|
popper: e.elements.popper,
|
|
310
310
|
popperRect: e.rects.popper,
|
|
@@ -372,51 +372,51 @@ function $i(r) {
|
|
|
372
372
|
return hl[e];
|
|
373
373
|
});
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function di(r) {
|
|
376
376
|
var e = ze(r), t = e.pageXOffset, n = e.pageYOffset;
|
|
377
377
|
return {
|
|
378
378
|
scrollLeft: t,
|
|
379
379
|
scrollTop: n
|
|
380
380
|
};
|
|
381
381
|
}
|
|
382
|
-
function
|
|
383
|
-
return Gt(
|
|
382
|
+
function hi(r) {
|
|
383
|
+
return Gt(wt(r)).left + di(r).scrollLeft;
|
|
384
384
|
}
|
|
385
385
|
function pl(r) {
|
|
386
|
-
var e = ze(r), t =
|
|
386
|
+
var e = ze(r), t = wt(r), n = e.visualViewport, i = t.clientWidth, s = t.clientHeight, a = 0, o = 0;
|
|
387
387
|
return n && (i = n.width, s = n.height, /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || (a = n.offsetLeft, o = n.offsetTop)), {
|
|
388
388
|
width: i,
|
|
389
389
|
height: s,
|
|
390
|
-
x: a +
|
|
390
|
+
x: a + hi(r),
|
|
391
391
|
y: o
|
|
392
392
|
};
|
|
393
393
|
}
|
|
394
394
|
function gl(r) {
|
|
395
|
-
var e, t =
|
|
396
|
-
return
|
|
395
|
+
var e, t = wt(r), n = di(r), i = (e = r.ownerDocument) == null ? void 0 : e.body, s = Ot(t.scrollWidth, t.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), a = Ot(t.scrollHeight, t.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), o = -n.scrollLeft + hi(r), f = -n.scrollTop;
|
|
396
|
+
return et(i || t).direction === "rtl" && (o += Ot(t.clientWidth, i ? i.clientWidth : 0) - s), {
|
|
397
397
|
width: s,
|
|
398
398
|
height: a,
|
|
399
399
|
x: o,
|
|
400
400
|
y: f
|
|
401
401
|
};
|
|
402
402
|
}
|
|
403
|
-
function
|
|
404
|
-
var e =
|
|
403
|
+
function pi(r) {
|
|
404
|
+
var e = et(r), t = e.overflow, n = e.overflowX, i = e.overflowY;
|
|
405
405
|
return /auto|scroll|overlay|hidden/.test(t + i + n);
|
|
406
406
|
}
|
|
407
407
|
function xo(r) {
|
|
408
|
-
return ["html", "body", "#document"].indexOf(
|
|
408
|
+
return ["html", "body", "#document"].indexOf(Je(r)) >= 0 ? r.ownerDocument.body : We(r) && pi(r) ? r : xo(Jr(r));
|
|
409
409
|
}
|
|
410
410
|
function yr(r, e) {
|
|
411
411
|
var t;
|
|
412
412
|
e === void 0 && (e = []);
|
|
413
|
-
var n = xo(r), i = n === ((t = r.ownerDocument) == null ? void 0 : t.body), s = ze(n), a = i ? [s].concat(s.visualViewport || [],
|
|
413
|
+
var n = xo(r), i = n === ((t = r.ownerDocument) == null ? void 0 : t.body), s = ze(n), a = i ? [s].concat(s.visualViewport || [], pi(n) ? n : []) : n, o = e.concat(a);
|
|
414
414
|
return i ? o : (
|
|
415
415
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
416
|
-
o.concat(yr(
|
|
416
|
+
o.concat(yr(Jr(a)))
|
|
417
417
|
);
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function Jn(r) {
|
|
420
420
|
return Object.assign({}, r, {
|
|
421
421
|
left: r.x,
|
|
422
422
|
top: r.y,
|
|
@@ -429,12 +429,12 @@ function bl(r) {
|
|
|
429
429
|
return e.top = e.top + r.clientTop, e.left = e.left + r.clientLeft, e.bottom = e.top + r.clientHeight, e.right = e.left + r.clientWidth, e.width = r.clientWidth, e.height = r.clientHeight, e.x = e.left, e.y = e.top, e;
|
|
430
430
|
}
|
|
431
431
|
function Fi(r, e) {
|
|
432
|
-
return e === po ?
|
|
432
|
+
return e === po ? Jn(pl(r)) : qt(e) ? bl(e) : Jn(gl(wt(r)));
|
|
433
433
|
}
|
|
434
434
|
function yl(r) {
|
|
435
|
-
var e = yr(
|
|
435
|
+
var e = yr(Jr(r)), t = ["absolute", "fixed"].indexOf(et(r).position) >= 0, n = t && We(r) ? Cr(r) : r;
|
|
436
436
|
return qt(n) ? e.filter(function(i) {
|
|
437
|
-
return qt(i) && _o(i, n) &&
|
|
437
|
+
return qt(i) && _o(i, n) && Je(i) !== "body" && (t ? et(i).position !== "static" : !0);
|
|
438
438
|
}) : [];
|
|
439
439
|
}
|
|
440
440
|
function _l(r, e, t) {
|
|
@@ -445,7 +445,7 @@ function _l(r, e, t) {
|
|
|
445
445
|
return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
|
|
446
446
|
}
|
|
447
447
|
function Eo(r) {
|
|
448
|
-
var e = r.reference, t = r.element, n = r.placement, i = n ?
|
|
448
|
+
var e = r.reference, t = r.element, n = r.placement, i = n ? Ze(n) : null, s = n ? Vt(n) : null, a = e.x + e.width / 2 - t.width / 2, o = e.y + e.height / 2 - t.height / 2, f;
|
|
449
449
|
switch (i) {
|
|
450
450
|
case $e:
|
|
451
451
|
f = {
|
|
@@ -477,7 +477,7 @@ function Eo(r) {
|
|
|
477
477
|
y: e.y
|
|
478
478
|
};
|
|
479
479
|
}
|
|
480
|
-
var g = i ?
|
|
480
|
+
var g = i ? ci(i) : null;
|
|
481
481
|
if (g != null) {
|
|
482
482
|
var c = g === "y" ? "height" : "width";
|
|
483
483
|
switch (s) {
|
|
@@ -493,11 +493,11 @@ function Eo(r) {
|
|
|
493
493
|
}
|
|
494
494
|
function Sr(r, e) {
|
|
495
495
|
e === void 0 && (e = {});
|
|
496
|
-
var t = e, n = t.placement, i = n === void 0 ? r.placement : n, s = t.boundary, a = s === void 0 ? Fa : s, o = t.rootBoundary, f = o === void 0 ? po : o, g = t.elementContext, c = g === void 0 ? Zt : g, m = t.altBoundary, I = m === void 0 ? !1 : m, v = t.padding, d = v === void 0 ? 0 : v, y = wo(typeof d != "number" ? d : vo(d, Nr)), w = c === Zt ? ka : Zt, p = r.rects.popper, _ = r.elements[I ? w : c], S = _l(qt(_) ? _ : _.contextElement ||
|
|
496
|
+
var t = e, n = t.placement, i = n === void 0 ? r.placement : n, s = t.boundary, a = s === void 0 ? Fa : s, o = t.rootBoundary, f = o === void 0 ? po : o, g = t.elementContext, c = g === void 0 ? Zt : g, m = t.altBoundary, I = m === void 0 ? !1 : m, v = t.padding, d = v === void 0 ? 0 : v, y = wo(typeof d != "number" ? d : vo(d, Nr)), w = c === Zt ? ka : Zt, p = r.rects.popper, _ = r.elements[I ? w : c], S = _l(qt(_) ? _ : _.contextElement || wt(r.elements.popper), a, f), h = Gt(r.elements.reference), T = Eo({
|
|
497
497
|
reference: h,
|
|
498
498
|
element: p,
|
|
499
499
|
placement: i
|
|
500
|
-
}), O =
|
|
500
|
+
}), O = Jn(Object.assign({}, p, T)), L = c === Zt ? O : h, j = {
|
|
501
501
|
top: S.top - L.top + y.top,
|
|
502
502
|
bottom: L.bottom - S.bottom + y.bottom,
|
|
503
503
|
left: S.left - L.left + y.left,
|
|
@@ -526,14 +526,14 @@ function ml(r, e) {
|
|
|
526
526
|
boundary: i,
|
|
527
527
|
rootBoundary: s,
|
|
528
528
|
padding: a
|
|
529
|
-
})[
|
|
529
|
+
})[Ze(y)], d;
|
|
530
530
|
}, {});
|
|
531
531
|
return Object.keys(v).sort(function(d, y) {
|
|
532
532
|
return v[d] - v[y];
|
|
533
533
|
});
|
|
534
534
|
}
|
|
535
535
|
function wl(r) {
|
|
536
|
-
if (
|
|
536
|
+
if (Ze(r) === ui)
|
|
537
537
|
return [];
|
|
538
538
|
var e = zr(r);
|
|
539
539
|
return [$i(r), e, $i(e)];
|
|
@@ -541,8 +541,8 @@ function wl(r) {
|
|
|
541
541
|
function vl(r) {
|
|
542
542
|
var e = r.state, t = r.options, n = r.name;
|
|
543
543
|
if (!e.modifiersData[n]._skip) {
|
|
544
|
-
for (var i = t.mainAxis, s = i === void 0 ? !0 : i, a = t.altAxis, o = a === void 0 ? !0 : a, f = t.fallbackPlacements, g = t.padding, c = t.boundary, m = t.rootBoundary, I = t.altBoundary, v = t.flipVariations, d = v === void 0 ? !0 : v, y = t.allowedAutoPlacements, w = e.options.placement, p =
|
|
545
|
-
return fe.concat(
|
|
544
|
+
for (var i = t.mainAxis, s = i === void 0 ? !0 : i, a = t.altAxis, o = a === void 0 ? !0 : a, f = t.fallbackPlacements, g = t.padding, c = t.boundary, m = t.rootBoundary, I = t.altBoundary, v = t.flipVariations, d = v === void 0 ? !0 : v, y = t.allowedAutoPlacements, w = e.options.placement, p = Ze(w), _ = p === w, S = f || (_ || !d ? [zr(w)] : wl(w)), h = [w].concat(S).reduce(function(fe, he) {
|
|
545
|
+
return fe.concat(Ze(he) === ui ? ml(e, {
|
|
546
546
|
placement: he,
|
|
547
547
|
boundary: c,
|
|
548
548
|
rootBoundary: m,
|
|
@@ -551,7 +551,7 @@ function vl(r) {
|
|
|
551
551
|
allowedAutoPlacements: y
|
|
552
552
|
}) : he);
|
|
553
553
|
}, []), T = e.rects.reference, O = e.rects.popper, L = /* @__PURE__ */ new Map(), j = !0, re = h[0], D = 0; D < h.length; D++) {
|
|
554
|
-
var $ = h[D], H =
|
|
554
|
+
var $ = h[D], H = Ze($), M = Vt($) === Ut, ee = [$e, Ge].indexOf(H) >= 0, le = ee ? "width" : "height", ue = Sr(e, {
|
|
555
555
|
placement: $,
|
|
556
556
|
boundary: c,
|
|
557
557
|
rootBoundary: m,
|
|
@@ -636,7 +636,7 @@ var Sl = {
|
|
|
636
636
|
fn: El
|
|
637
637
|
};
|
|
638
638
|
function Tl(r, e, t) {
|
|
639
|
-
var n =
|
|
639
|
+
var n = Ze(r), i = [Fe, $e].indexOf(n) >= 0 ? -1 : 1, s = typeof t == "function" ? t(Object.assign({}, e, {
|
|
640
640
|
placement: r
|
|
641
641
|
})) : t, a = s[0], o = s[1];
|
|
642
642
|
return a = a || 0, o = (o || 0) * i, [Fe, Ve].indexOf(n) >= 0 ? {
|
|
@@ -684,7 +684,7 @@ function Ol(r) {
|
|
|
684
684
|
rootBoundary: g,
|
|
685
685
|
padding: m,
|
|
686
686
|
altBoundary: c
|
|
687
|
-
}), p =
|
|
687
|
+
}), p = Ze(e.placement), _ = Vt(e.placement), S = !_, h = ci(p), T = Cl(h), O = e.modifiersData.popperOffsets, L = e.rects.reference, j = e.rects.popper, re = typeof y == "function" ? y(Object.assign({}, e.rects, {
|
|
688
688
|
placement: e.placement
|
|
689
689
|
})) : y, D = typeof re == "number" ? {
|
|
690
690
|
mainAxis: re,
|
|
@@ -698,7 +698,7 @@ function Ol(r) {
|
|
|
698
698
|
};
|
|
699
699
|
if (O) {
|
|
700
700
|
if (s) {
|
|
701
|
-
var M, ee = h === "y" ? $e : Fe, le = h === "y" ? Ge : Ve, ue = h === "y" ? "height" : "width", me = O[h], G = me + w[ee], ce = me - w[le], A = v ? -j[ue] / 2 : 0, W = _ === Ut ? L[ue] : j[ue], Z = _ === Ut ? -j[ue] : -L[ue], Q = e.elements.arrow, fe = v && Q ?
|
|
701
|
+
var M, ee = h === "y" ? $e : Fe, le = h === "y" ? Ge : Ve, ue = h === "y" ? "height" : "width", me = O[h], G = me + w[ee], ce = me - w[le], A = v ? -j[ue] / 2 : 0, W = _ === Ut ? L[ue] : j[ue], Z = _ === Ut ? -j[ue] : -L[ue], Q = e.elements.arrow, fe = v && Q ? fi(Q) : {
|
|
702
702
|
width: 0,
|
|
703
703
|
height: 0
|
|
704
704
|
}, he = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : mo(), xe = he[ee], we = he[le], U = br(0, L[ue], fe[ue]), z = S ? L[ue] / 2 - A - U - xe - D.mainAxis : W - U - xe - D.mainAxis, oe = S ? -L[ue] / 2 + A + U + we + D.mainAxis : Z + U + we + D.mainAxis, ye = e.elements.arrow && Cr(e.elements.arrow), be = ye ? h === "y" ? ye.clientTop || 0 : ye.clientLeft || 0 : 0, C = (M = $?.[h]) != null ? M : 0, B = me + z - C - be, q = me + oe - C, ne = br(v ? Yr(G, B) : G, me, v ? Ot(ce, q) : ce);
|
|
@@ -725,7 +725,7 @@ function Ll(r) {
|
|
|
725
725
|
};
|
|
726
726
|
}
|
|
727
727
|
function jl(r) {
|
|
728
|
-
return r === ze(r) || !We(r) ?
|
|
728
|
+
return r === ze(r) || !We(r) ? di(r) : Ll(r);
|
|
729
729
|
}
|
|
730
730
|
function Dl(r) {
|
|
731
731
|
var e = r.getBoundingClientRect(), t = Wt(e.width) / r.offsetWidth || 1, n = Wt(e.height) / r.offsetHeight || 1;
|
|
@@ -733,15 +733,15 @@ function Dl(r) {
|
|
|
733
733
|
}
|
|
734
734
|
function Bl(r, e, t) {
|
|
735
735
|
t === void 0 && (t = !1);
|
|
736
|
-
var n = We(e), i = We(e) && Dl(e), s =
|
|
736
|
+
var n = We(e), i = We(e) && Dl(e), s = wt(e), a = Gt(r, i), o = {
|
|
737
737
|
scrollLeft: 0,
|
|
738
738
|
scrollTop: 0
|
|
739
739
|
}, f = {
|
|
740
740
|
x: 0,
|
|
741
741
|
y: 0
|
|
742
742
|
};
|
|
743
|
-
return (n || !n && !t) && ((
|
|
744
|
-
|
|
743
|
+
return (n || !n && !t) && ((Je(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
744
|
+
pi(s)) && (o = jl(e)), We(e) ? (f = Gt(e, !0), f.x += e.clientLeft, f.y += e.clientTop) : s && (f.x = hi(s))), {
|
|
745
745
|
x: a.left + o.scrollLeft - f.x,
|
|
746
746
|
y: a.top + o.scrollTop - f.y,
|
|
747
747
|
width: a.width,
|
|
@@ -849,7 +849,7 @@ function Ul(r) {
|
|
|
849
849
|
if (Wi(_, S)) {
|
|
850
850
|
c.rects = {
|
|
851
851
|
reference: Bl(_, Cr(S), c.options.strategy === "fixed"),
|
|
852
|
-
popper:
|
|
852
|
+
popper: fi(S)
|
|
853
853
|
}, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(D) {
|
|
854
854
|
return c.modifiersData[D.name] = Object.assign({}, D.data);
|
|
855
855
|
});
|
|
@@ -910,20 +910,20 @@ function Ul(r) {
|
|
|
910
910
|
}
|
|
911
911
|
var ql = [cl, Nl, ul, yo, Rl, xl, Pl, sl, Sl], Wl = /* @__PURE__ */ Ul({
|
|
912
912
|
defaultModifiers: ql
|
|
913
|
-
}), Gl = "tippy-box", So = "tippy-content", To = "tippy-backdrop", Io = "tippy-arrow", Ro = "tippy-svg-arrow",
|
|
913
|
+
}), Gl = "tippy-box", So = "tippy-content", To = "tippy-backdrop", Io = "tippy-arrow", Ro = "tippy-svg-arrow", It = {
|
|
914
914
|
passive: !0,
|
|
915
915
|
capture: !0
|
|
916
916
|
}, Ao = function() {
|
|
917
917
|
return document.body;
|
|
918
918
|
};
|
|
919
|
-
function
|
|
919
|
+
function gn(r, e, t) {
|
|
920
920
|
if (Array.isArray(r)) {
|
|
921
921
|
var n = r[e];
|
|
922
922
|
return n ?? (Array.isArray(t) ? t[e] : t);
|
|
923
923
|
}
|
|
924
924
|
return r;
|
|
925
925
|
}
|
|
926
|
-
function
|
|
926
|
+
function gi(r, e) {
|
|
927
927
|
var t = {}.toString.call(r);
|
|
928
928
|
return t.indexOf("[object") === 0 && t.indexOf(e + "]") > -1;
|
|
929
929
|
}
|
|
@@ -974,24 +974,24 @@ function Hi(r) {
|
|
|
974
974
|
function Pt() {
|
|
975
975
|
return document.createElement("div");
|
|
976
976
|
}
|
|
977
|
-
function
|
|
977
|
+
function en(r) {
|
|
978
978
|
return ["Element", "Fragment"].some(function(e) {
|
|
979
|
-
return
|
|
979
|
+
return gi(r, e);
|
|
980
980
|
});
|
|
981
981
|
}
|
|
982
982
|
function zl(r) {
|
|
983
|
-
return
|
|
983
|
+
return gi(r, "NodeList");
|
|
984
984
|
}
|
|
985
|
-
function
|
|
986
|
-
return
|
|
985
|
+
function bi(r) {
|
|
986
|
+
return gi(r, "MouseEvent");
|
|
987
987
|
}
|
|
988
988
|
function Xl(r) {
|
|
989
989
|
return !!(r && r._tippy && r._tippy.reference === r);
|
|
990
990
|
}
|
|
991
991
|
function Yl(r) {
|
|
992
|
-
return
|
|
992
|
+
return en(r) ? [r] : zl(r) ? Ht(r) : Array.isArray(r) ? r : Ht(document.querySelectorAll(r));
|
|
993
993
|
}
|
|
994
|
-
function
|
|
994
|
+
function bn(r, e) {
|
|
995
995
|
r.forEach(function(t) {
|
|
996
996
|
t && (t.style.transitionDuration = e + "ms");
|
|
997
997
|
});
|
|
@@ -1015,7 +1015,7 @@ function Kl(r, e) {
|
|
|
1015
1015
|
return y || w || p || _;
|
|
1016
1016
|
});
|
|
1017
1017
|
}
|
|
1018
|
-
function
|
|
1018
|
+
function yn(r, e, t) {
|
|
1019
1019
|
var n = e + "EventListener";
|
|
1020
1020
|
["transitionend", "webkitTransitionEnd"].forEach(function(i) {
|
|
1021
1021
|
r[n](i, t);
|
|
@@ -1030,15 +1030,15 @@ function Qi(r, e) {
|
|
|
1030
1030
|
}
|
|
1031
1031
|
return !1;
|
|
1032
1032
|
}
|
|
1033
|
-
var
|
|
1033
|
+
var Ke = {
|
|
1034
1034
|
isTouch: !1
|
|
1035
1035
|
}, zi = 0;
|
|
1036
1036
|
function Zl() {
|
|
1037
|
-
|
|
1037
|
+
Ke.isTouch || (Ke.isTouch = !0, window.performance && document.addEventListener("mousemove", Po));
|
|
1038
1038
|
}
|
|
1039
1039
|
function Po() {
|
|
1040
1040
|
var r = performance.now();
|
|
1041
|
-
r - zi < 20 && (
|
|
1041
|
+
r - zi < 20 && (Ke.isTouch = !1, document.removeEventListener("mousemove", Po)), zi = r;
|
|
1042
1042
|
}
|
|
1043
1043
|
function Jl() {
|
|
1044
1044
|
var r = document.activeElement;
|
|
@@ -1048,7 +1048,7 @@ function Jl() {
|
|
|
1048
1048
|
}
|
|
1049
1049
|
}
|
|
1050
1050
|
function eu() {
|
|
1051
|
-
document.addEventListener("touchstart", Zl,
|
|
1051
|
+
document.addEventListener("touchstart", Zl, It), window.addEventListener("blur", Jl);
|
|
1052
1052
|
}
|
|
1053
1053
|
var tu = typeof window < "u" && typeof document < "u", ru = tu ? (
|
|
1054
1054
|
// @ts-ignore
|
|
@@ -1164,15 +1164,15 @@ function Xi(r, e) {
|
|
|
1164
1164
|
var lu = function() {
|
|
1165
1165
|
return "innerHTML";
|
|
1166
1166
|
};
|
|
1167
|
-
function
|
|
1167
|
+
function ei(r, e) {
|
|
1168
1168
|
r[lu()] = e;
|
|
1169
1169
|
}
|
|
1170
1170
|
function Yi(r) {
|
|
1171
1171
|
var e = Pt();
|
|
1172
|
-
return r === !0 ? e.className = Io : (e.className = Ro,
|
|
1172
|
+
return r === !0 ? e.className = Io : (e.className = Ro, en(r) ? e.appendChild(r) : ei(e, r)), e;
|
|
1173
1173
|
}
|
|
1174
1174
|
function Ki(r, e) {
|
|
1175
|
-
|
|
1175
|
+
en(e.content) ? (ei(r, ""), r.appendChild(e.content)) : typeof e.content != "function" && (e.allowHTML ? ei(r, e.content) : r.textContent = e.content);
|
|
1176
1176
|
}
|
|
1177
1177
|
function Kr(r) {
|
|
1178
1178
|
var e = r.firstElementChild, t = Ht(e.children);
|
|
@@ -1204,7 +1204,7 @@ function jo(r) {
|
|
|
1204
1204
|
};
|
|
1205
1205
|
}
|
|
1206
1206
|
jo.$$tippy = !0;
|
|
1207
|
-
var uu = 1, Dr = [],
|
|
1207
|
+
var uu = 1, Dr = [], _n = [];
|
|
1208
1208
|
function fu(r, e) {
|
|
1209
1209
|
var t = Xi(r, Object.assign({}, He, Lo(Hi(e)))), n, i, s, a = !1, o = !1, f = !1, g = !1, c, m, I, v = [], d = Gi(B, t.interactiveDebounce), y, w = uu++, p = null, _ = Ql(t.plugins), S = {
|
|
1210
1210
|
// Is the instance currently enabled?
|
|
@@ -1272,7 +1272,7 @@ function fu(r, e) {
|
|
|
1272
1272
|
return Kr(O);
|
|
1273
1273
|
}
|
|
1274
1274
|
function ue(F) {
|
|
1275
|
-
return h.state.isMounted && !h.state.isVisible ||
|
|
1275
|
+
return h.state.isMounted && !h.state.isVisible || Ke.isTouch || c && c.type === "focus" ? 0 : gn(h.props.delay, F ? 0 : 1, He.delay);
|
|
1276
1276
|
}
|
|
1277
1277
|
function me(F) {
|
|
1278
1278
|
F === void 0 && (F = !1), O.style.pointerEvents = h.props.interactive && !F ? "" : "none", O.style.zIndex = "" + h.props.zIndex;
|
|
@@ -1314,13 +1314,13 @@ function fu(r, e) {
|
|
|
1314
1314
|
});
|
|
1315
1315
|
}
|
|
1316
1316
|
function Z(F) {
|
|
1317
|
-
if (!(
|
|
1317
|
+
if (!(Ke.isTouch && (f || F.type === "mousedown"))) {
|
|
1318
1318
|
var se = F.composedPath && F.composedPath()[0] || F.target;
|
|
1319
1319
|
if (!(h.props.interactive && Qi(O, se))) {
|
|
1320
1320
|
if (Rt(h.props.triggerTarget || r).some(function(de) {
|
|
1321
1321
|
return Qi(de, se);
|
|
1322
1322
|
})) {
|
|
1323
|
-
if (
|
|
1323
|
+
if (Ke.isTouch || h.state.isVisible && h.props.trigger.indexOf("click") >= 0)
|
|
1324
1324
|
return;
|
|
1325
1325
|
} else
|
|
1326
1326
|
G("onClickOutside", [h, F]);
|
|
@@ -1338,11 +1338,11 @@ function fu(r, e) {
|
|
|
1338
1338
|
}
|
|
1339
1339
|
function he() {
|
|
1340
1340
|
var F = ee();
|
|
1341
|
-
F.addEventListener("mousedown", Z, !0), F.addEventListener("touchend", Z,
|
|
1341
|
+
F.addEventListener("mousedown", Z, !0), F.addEventListener("touchend", Z, It), F.addEventListener("touchstart", fe, It), F.addEventListener("touchmove", Q, It);
|
|
1342
1342
|
}
|
|
1343
1343
|
function xe() {
|
|
1344
1344
|
var F = ee();
|
|
1345
|
-
F.removeEventListener("mousedown", Z, !0), F.removeEventListener("touchend", Z,
|
|
1345
|
+
F.removeEventListener("mousedown", Z, !0), F.removeEventListener("touchend", Z, It), F.removeEventListener("touchstart", fe, It), F.removeEventListener("touchmove", Q, It);
|
|
1346
1346
|
}
|
|
1347
1347
|
function we(F, se) {
|
|
1348
1348
|
z(F, function() {
|
|
@@ -1355,11 +1355,11 @@ function fu(r, e) {
|
|
|
1355
1355
|
function z(F, se) {
|
|
1356
1356
|
var de = le().box;
|
|
1357
1357
|
function ve(pe) {
|
|
1358
|
-
pe.target === de && (
|
|
1358
|
+
pe.target === de && (yn(de, "remove", ve), se());
|
|
1359
1359
|
}
|
|
1360
1360
|
if (F === 0)
|
|
1361
1361
|
return se();
|
|
1362
|
-
|
|
1362
|
+
yn(de, "remove", m), yn(de, "add", ve), m = ve;
|
|
1363
1363
|
}
|
|
1364
1364
|
function oe(F, se, de) {
|
|
1365
1365
|
de === void 0 && (de = !1);
|
|
@@ -1403,7 +1403,7 @@ function fu(r, e) {
|
|
|
1403
1403
|
var se, de = !1;
|
|
1404
1404
|
if (!(!h.state.isEnabled || J(F) || o)) {
|
|
1405
1405
|
var ve = ((se = c) == null ? void 0 : se.type) === "focus";
|
|
1406
|
-
c = F, y = F.currentTarget, A(), !h.state.isVisible &&
|
|
1406
|
+
c = F, y = F.currentTarget, A(), !h.state.isVisible && bi(F) && Dr.forEach(function(pe) {
|
|
1407
1407
|
return pe(F);
|
|
1408
1408
|
}), F.type === "click" && (h.props.trigger.indexOf("mouseenter") < 0 || a) && h.props.hideOnClick !== !1 && h.state.isVisible ? de = !0 : V(F), F.type === "click" && (a = !de), de && !ve && Ee(F);
|
|
1409
1409
|
}
|
|
@@ -1412,10 +1412,10 @@ function fu(r, e) {
|
|
|
1412
1412
|
var se = F.target, de = M().contains(se) || O.contains(se);
|
|
1413
1413
|
if (!(F.type === "mousemove" && de)) {
|
|
1414
1414
|
var ve = K().concat(O).map(function(pe) {
|
|
1415
|
-
var Ce, Be = pe._tippy,
|
|
1416
|
-
return
|
|
1415
|
+
var Ce, Be = pe._tippy, tt = (Ce = Be.popperInstance) == null ? void 0 : Ce.state;
|
|
1416
|
+
return tt ? {
|
|
1417
1417
|
popperRect: pe.getBoundingClientRect(),
|
|
1418
|
-
popperState:
|
|
1418
|
+
popperState: tt,
|
|
1419
1419
|
props: t
|
|
1420
1420
|
} : null;
|
|
1421
1421
|
}).filter(Boolean);
|
|
@@ -1436,11 +1436,11 @@ function fu(r, e) {
|
|
|
1436
1436
|
h.props.trigger.indexOf("focusin") < 0 && F.target !== M() || h.props.interactive && F.relatedTarget && O.contains(F.relatedTarget) || Ee(F);
|
|
1437
1437
|
}
|
|
1438
1438
|
function J(F) {
|
|
1439
|
-
return
|
|
1439
|
+
return Ke.isTouch ? $() !== F.type.indexOf("touch") >= 0 : !1;
|
|
1440
1440
|
}
|
|
1441
1441
|
function te() {
|
|
1442
1442
|
P();
|
|
1443
|
-
var F = h.props, se = F.popperOptions, de = F.placement, ve = F.offset, pe = F.getReferenceClientRect, Ce = F.moveTransition, Be = H() ? Kr(O).arrow : null,
|
|
1443
|
+
var F = h.props, se = F.popperOptions, de = F.placement, ve = F.offset, pe = F.getReferenceClientRect, Ce = F.moveTransition, Be = H() ? Kr(O).arrow : null, tt = pe ? {
|
|
1444
1444
|
getBoundingClientRect: pe,
|
|
1445
1445
|
contextElement: pe.contextElement || M()
|
|
1446
1446
|
} : r, jt = {
|
|
@@ -1449,15 +1449,15 @@ function fu(r, e) {
|
|
|
1449
1449
|
phase: "beforeWrite",
|
|
1450
1450
|
requires: ["computeStyles"],
|
|
1451
1451
|
fn: function(ct) {
|
|
1452
|
-
var
|
|
1452
|
+
var nt = ct.state;
|
|
1453
1453
|
if (H()) {
|
|
1454
1454
|
var x = le(), R = x.box;
|
|
1455
1455
|
["placement", "reference-hidden", "escaped"].forEach(function(ie) {
|
|
1456
|
-
ie === "placement" ? R.setAttribute("data-placement",
|
|
1457
|
-
}),
|
|
1456
|
+
ie === "placement" ? R.setAttribute("data-placement", nt.placement) : nt.attributes.popper["data-popper-" + ie] ? R.setAttribute("data-" + ie, "") : R.removeAttribute("data-" + ie);
|
|
1457
|
+
}), nt.attributes.popper = {};
|
|
1458
1458
|
}
|
|
1459
1459
|
}
|
|
1460
|
-
},
|
|
1460
|
+
}, rt = [{
|
|
1461
1461
|
name: "offset",
|
|
1462
1462
|
options: {
|
|
1463
1463
|
offset: ve
|
|
@@ -1483,16 +1483,16 @@ function fu(r, e) {
|
|
|
1483
1483
|
adaptive: !Ce
|
|
1484
1484
|
}
|
|
1485
1485
|
}, jt];
|
|
1486
|
-
H() && Be &&
|
|
1486
|
+
H() && Be && rt.push({
|
|
1487
1487
|
name: "arrow",
|
|
1488
1488
|
options: {
|
|
1489
1489
|
element: Be,
|
|
1490
1490
|
padding: 3
|
|
1491
1491
|
}
|
|
1492
|
-
}),
|
|
1492
|
+
}), rt.push.apply(rt, se?.modifiers || []), h.popperInstance = Wl(tt, O, Object.assign({}, se, {
|
|
1493
1493
|
placement: de,
|
|
1494
1494
|
onFirstUpdate: I,
|
|
1495
|
-
modifiers:
|
|
1495
|
+
modifiers: rt
|
|
1496
1496
|
}));
|
|
1497
1497
|
}
|
|
1498
1498
|
function P() {
|
|
@@ -1508,7 +1508,7 @@ function fu(r, e) {
|
|
|
1508
1508
|
function V(F) {
|
|
1509
1509
|
h.clearDelayTimeouts(), F && G("onTrigger", [h, F]), he();
|
|
1510
1510
|
var se = ue(!0), de = D(), ve = de[0], pe = de[1];
|
|
1511
|
-
|
|
1511
|
+
Ke.isTouch && ve === "hold" && pe && (se = pe), se ? n = setTimeout(function() {
|
|
1512
1512
|
h.show();
|
|
1513
1513
|
}, se) : h.show();
|
|
1514
1514
|
}
|
|
@@ -1554,20 +1554,20 @@ function fu(r, e) {
|
|
|
1554
1554
|
});
|
|
1555
1555
|
}
|
|
1556
1556
|
function u() {
|
|
1557
|
-
var F = h.state.isVisible, se = h.state.isDestroyed, de = !h.state.isEnabled, ve =
|
|
1557
|
+
var F = h.state.isVisible, se = h.state.isDestroyed, de = !h.state.isEnabled, ve = Ke.isTouch && !h.props.touch, pe = gn(h.props.duration, 0, He.duration);
|
|
1558
1558
|
if (!(F || se || de || ve) && !M().hasAttribute("disabled") && (G("onShow", [h], !1), h.props.onShow(h) !== !1)) {
|
|
1559
1559
|
if (h.state.isVisible = !0, H() && (O.style.visibility = "visible"), me(), he(), h.state.isMounted || (O.style.transition = "none"), H()) {
|
|
1560
|
-
var Ce = le(), Be = Ce.box,
|
|
1561
|
-
|
|
1560
|
+
var Ce = le(), Be = Ce.box, tt = Ce.content;
|
|
1561
|
+
bn([Be, tt], 0);
|
|
1562
1562
|
}
|
|
1563
1563
|
I = function() {
|
|
1564
|
-
var
|
|
1564
|
+
var rt;
|
|
1565
1565
|
if (!(!h.state.isVisible || g)) {
|
|
1566
1566
|
if (g = !0, O.offsetHeight, O.style.transition = h.props.moveTransition, H() && h.props.animation) {
|
|
1567
|
-
var Yt = le(), ct = Yt.box,
|
|
1568
|
-
|
|
1567
|
+
var Yt = le(), ct = Yt.box, nt = Yt.content;
|
|
1568
|
+
bn([ct, nt], pe), Tr([ct, nt], "visible");
|
|
1569
1569
|
}
|
|
1570
|
-
ce(), A(), Vi(
|
|
1570
|
+
ce(), A(), Vi(_n, h), (rt = h.popperInstance) == null || rt.forceUpdate(), G("onMount", [h]), h.props.animation && H() && U(pe, function() {
|
|
1571
1571
|
h.state.isShown = !0, G("onShown", [h]);
|
|
1572
1572
|
});
|
|
1573
1573
|
}
|
|
@@ -1575,11 +1575,11 @@ function fu(r, e) {
|
|
|
1575
1575
|
}
|
|
1576
1576
|
}
|
|
1577
1577
|
function E() {
|
|
1578
|
-
var F = !h.state.isVisible, se = h.state.isDestroyed, de = !h.state.isEnabled, ve =
|
|
1578
|
+
var F = !h.state.isVisible, se = h.state.isDestroyed, de = !h.state.isEnabled, ve = gn(h.props.duration, 1, He.duration);
|
|
1579
1579
|
if (!(F || se || de) && (G("onHide", [h], !1), h.props.onHide(h) !== !1)) {
|
|
1580
1580
|
if (h.state.isVisible = !1, h.state.isShown = !1, g = !1, a = !1, H() && (O.style.visibility = "hidden"), W(), xe(), me(!0), H()) {
|
|
1581
1581
|
var pe = le(), Ce = pe.box, Be = pe.content;
|
|
1582
|
-
h.props.animation && (
|
|
1582
|
+
h.props.animation && (bn([Ce, Be], ve), Tr([Ce, Be], "hidden"));
|
|
1583
1583
|
}
|
|
1584
1584
|
ce(), A(), h.props.animation ? H() && we(ve, h.unmount) : h.unmount();
|
|
1585
1585
|
}
|
|
@@ -1590,7 +1590,7 @@ function fu(r, e) {
|
|
|
1590
1590
|
function k() {
|
|
1591
1591
|
h.state.isVisible && h.hide(), h.state.isMounted && (P(), K().forEach(function(F) {
|
|
1592
1592
|
F._tippy.unmount();
|
|
1593
|
-
}), O.parentNode && O.parentNode.removeChild(O),
|
|
1593
|
+
}), O.parentNode && O.parentNode.removeChild(O), _n = _n.filter(function(F) {
|
|
1594
1594
|
return F !== h;
|
|
1595
1595
|
}), h.state.isMounted = !1, G("onHidden", [h]));
|
|
1596
1596
|
}
|
|
@@ -1608,11 +1608,11 @@ function _e(r, e) {
|
|
|
1608
1608
|
var f = o && fu(o, n);
|
|
1609
1609
|
return f && a.push(f), a;
|
|
1610
1610
|
}, []);
|
|
1611
|
-
return
|
|
1611
|
+
return en(r) ? s[0] : s;
|
|
1612
1612
|
}
|
|
1613
1613
|
_e.defaultProps = He;
|
|
1614
1614
|
_e.setDefaultProps = ou;
|
|
1615
|
-
_e.currentInput =
|
|
1615
|
+
_e.currentInput = Ke;
|
|
1616
1616
|
var cu = Object.assign({}, yo, {
|
|
1617
1617
|
effect: function(e) {
|
|
1618
1618
|
var t = e.state, n = {
|
|
@@ -1773,13 +1773,13 @@ function pu() {
|
|
|
1773
1773
|
var r = Pt();
|
|
1774
1774
|
return r.className = To, Tr([r], "hidden"), r;
|
|
1775
1775
|
}
|
|
1776
|
-
var
|
|
1776
|
+
var ti = {
|
|
1777
1777
|
clientX: 0,
|
|
1778
1778
|
clientY: 0
|
|
1779
1779
|
}, Br = [];
|
|
1780
1780
|
function Do(r) {
|
|
1781
1781
|
var e = r.clientX, t = r.clientY;
|
|
1782
|
-
|
|
1782
|
+
ti = {
|
|
1783
1783
|
clientX: e,
|
|
1784
1784
|
clientY: t
|
|
1785
1785
|
};
|
|
@@ -1852,10 +1852,10 @@ var yu = {
|
|
|
1852
1852
|
i || _ !== void 0 && o.followCursor !== _ && (d(), _ ? (v(), e.state.isMounted && !s && !f() && g()) : (c(), m()));
|
|
1853
1853
|
},
|
|
1854
1854
|
onMount: function() {
|
|
1855
|
-
e.props.followCursor && !s && (a && (I(
|
|
1855
|
+
e.props.followCursor && !s && (a && (I(ti), a = !1), f() || g());
|
|
1856
1856
|
},
|
|
1857
1857
|
onTrigger: function(w, p) {
|
|
1858
|
-
|
|
1858
|
+
bi(p) && (ti = {
|
|
1859
1859
|
clientX: p.clientX,
|
|
1860
1860
|
clientY: p.clientY
|
|
1861
1861
|
}), s = p.type === "focus";
|
|
@@ -1912,7 +1912,7 @@ var mu = {
|
|
|
1912
1912
|
onCreate: m,
|
|
1913
1913
|
onAfterUpdate: m,
|
|
1914
1914
|
onTrigger: function(v, d) {
|
|
1915
|
-
if (
|
|
1915
|
+
if (bi(d)) {
|
|
1916
1916
|
var y = Ht(e.reference.getClientRects()), w = y.find(function(_) {
|
|
1917
1917
|
return _.left - 2 <= d.clientX && _.right + 2 >= d.clientX && _.top - 2 <= d.clientY && _.bottom + 2 >= d.clientY;
|
|
1918
1918
|
}), p = y.indexOf(w);
|
|
@@ -2002,9 +2002,9 @@ _e.setDefaultProps({
|
|
|
2002
2002
|
}
|
|
2003
2003
|
});
|
|
2004
2004
|
const xu = (r) => r instanceof Object && "$" in r && "$el" in r;
|
|
2005
|
-
function
|
|
2005
|
+
function yi(r, e = {}, t = { mount: !0, appName: "Tippy" }) {
|
|
2006
2006
|
t = Object.assign({ mount: !0, appName: "Tippy" }, t);
|
|
2007
|
-
const n = Ia(), i =
|
|
2007
|
+
const n = Ia(), i = yt(), s = yt({
|
|
2008
2008
|
isEnabled: !1,
|
|
2009
2009
|
isVisible: !1,
|
|
2010
2010
|
isDestroyed: !1,
|
|
@@ -2100,13 +2100,13 @@ function bi(r, e = {}, t = { mount: !0, appName: "Tippy" }) {
|
|
|
2100
2100
|
mount: T,
|
|
2101
2101
|
state: s
|
|
2102
2102
|
};
|
|
2103
|
-
return t.mount && (n ? n.isMounted ? T() :
|
|
2103
|
+
return t.mount && (n ? n.isMounted ? T() : li(T) : T()), n && Aa(() => {
|
|
2104
2104
|
y();
|
|
2105
2105
|
}), dt(e) || Li(e) ? xr(e, m, { immediate: !1 }) : dt(e.content) && xr(e.content, I, { immediate: !1 }), O;
|
|
2106
2106
|
}
|
|
2107
2107
|
function Eu(r, e) {
|
|
2108
|
-
const t =
|
|
2109
|
-
return
|
|
2108
|
+
const t = yt();
|
|
2109
|
+
return li(() => {
|
|
2110
2110
|
const i = (Array.isArray(r) ? r.map((s) => s.value) : typeof r == "function" ? r() : r.value).map((s) => s instanceof Element ? s._tippy : s).filter(Boolean);
|
|
2111
2111
|
t.value = du(i, e ? { allowHTML: !0, ...e } : { allowHTML: !0 });
|
|
2112
2112
|
}), {
|
|
@@ -2114,14 +2114,14 @@ function Eu(r, e) {
|
|
|
2114
2114
|
};
|
|
2115
2115
|
}
|
|
2116
2116
|
function Su(r) {
|
|
2117
|
-
return typeof r == "function" ? r() :
|
|
2117
|
+
return typeof r == "function" ? r() : oi(r);
|
|
2118
2118
|
}
|
|
2119
2119
|
function Tu(r) {
|
|
2120
2120
|
var e, t;
|
|
2121
2121
|
const n = Su(r);
|
|
2122
2122
|
return (t = (e = n) === null || e === void 0 ? void 0 : e.$el) !== null && t !== void 0 ? t : n;
|
|
2123
2123
|
}
|
|
2124
|
-
const Iu =
|
|
2124
|
+
const Iu = ai({
|
|
2125
2125
|
props: {
|
|
2126
2126
|
to: {
|
|
2127
2127
|
type: [String, Function]
|
|
@@ -2186,7 +2186,7 @@ const Iu = oi({
|
|
|
2186
2186
|
},
|
|
2187
2187
|
emits: ["state"],
|
|
2188
2188
|
setup(r, { slots: e, emit: t, expose: n }) {
|
|
2189
|
-
const i =
|
|
2189
|
+
const i = yt(), s = yt(), a = yt(), o = yt(!1), f = () => {
|
|
2190
2190
|
let v = { ...r };
|
|
2191
2191
|
for (const d of ["to", "tag", "contentTag", "contentClass"])
|
|
2192
2192
|
v.hasOwnProperty(d) && delete v[d];
|
|
@@ -2197,14 +2197,14 @@ const Iu = oi({
|
|
|
2197
2197
|
let v = i.value;
|
|
2198
2198
|
return v || (v = i.value = s.value.parentElement), v;
|
|
2199
2199
|
} : (typeof r.to == "string" || r.to instanceof String) && (g = () => document.querySelector(r.to)));
|
|
2200
|
-
const c =
|
|
2200
|
+
const c = yi(g, f());
|
|
2201
2201
|
let m = e.content;
|
|
2202
|
-
!m && r.to === "parent" && (m = e.default),
|
|
2202
|
+
!m && r.to === "parent" && (m = e.default), li(() => {
|
|
2203
2203
|
o.value = !0, Sa(() => {
|
|
2204
2204
|
m && c.setContent(() => a.value);
|
|
2205
2205
|
});
|
|
2206
2206
|
}), xr(c.state, () => {
|
|
2207
|
-
t("state",
|
|
2207
|
+
t("state", oi(c.state));
|
|
2208
2208
|
}, { immediate: !0, deep: !0 }), xr(() => r, () => {
|
|
2209
2209
|
c.setProps(f()), m && c.setContent(() => a.value);
|
|
2210
2210
|
}, { deep: !0 });
|
|
@@ -2260,23 +2260,23 @@ const Iu = oi({
|
|
|
2260
2260
|
"touch",
|
|
2261
2261
|
"touchHold"
|
|
2262
2262
|
];
|
|
2263
|
-
let
|
|
2263
|
+
let ri = {};
|
|
2264
2264
|
Object.keys(_e.defaultProps).forEach((r) => {
|
|
2265
|
-
Ru.includes(r) ?
|
|
2265
|
+
Ru.includes(r) ? ri[r] = {
|
|
2266
2266
|
type: Boolean,
|
|
2267
2267
|
default: function() {
|
|
2268
2268
|
return _e.defaultProps[r];
|
|
2269
2269
|
}
|
|
2270
|
-
} :
|
|
2270
|
+
} : ri[r] = {
|
|
2271
2271
|
default: function() {
|
|
2272
2272
|
return _e.defaultProps[r];
|
|
2273
2273
|
}
|
|
2274
2274
|
};
|
|
2275
2275
|
});
|
|
2276
|
-
const Au =
|
|
2277
|
-
props:
|
|
2276
|
+
const Au = ai({
|
|
2277
|
+
props: ri,
|
|
2278
2278
|
setup(r) {
|
|
2279
|
-
const e =
|
|
2279
|
+
const e = yt([]), { singleton: t } = Eu(e, r);
|
|
2280
2280
|
return { instances: e, singleton: t };
|
|
2281
2281
|
},
|
|
2282
2282
|
mounted() {
|
|
@@ -2306,7 +2306,7 @@ const Au = oi({
|
|
|
2306
2306
|
}), t.props && t.props.onTippyMount && (n.onMount = function(...o) {
|
|
2307
2307
|
var f;
|
|
2308
2308
|
return (f = t.props) === null || f === void 0 ? void 0 : f.onTippyMount(...o);
|
|
2309
|
-
}), r.getAttribute("title") && !n.content && (n.content = r.getAttribute("title"), r.removeAttribute("title")), r.getAttribute("content") && !n.content && (n.content = r.getAttribute("content")),
|
|
2309
|
+
}), r.getAttribute("title") && !n.content && (n.content = r.getAttribute("title"), r.removeAttribute("title")), r.getAttribute("content") && !n.content && (n.content = r.getAttribute("content")), yi(r, n);
|
|
2310
2310
|
},
|
|
2311
2311
|
unmounted(r) {
|
|
2312
2312
|
r.$tippy ? r.$tippy.destroy() : r._tippy && r._tippy.destroy();
|
|
@@ -2348,7 +2348,7 @@ function Pu(r) {
|
|
|
2348
2348
|
});
|
|
2349
2349
|
}), t;
|
|
2350
2350
|
}
|
|
2351
|
-
var ht = {}, Mr = {},
|
|
2351
|
+
var ht = {}, Mr = {}, mn = {}, Jt = {}, Ji;
|
|
2352
2352
|
function Lu() {
|
|
2353
2353
|
if (Ji) return Jt;
|
|
2354
2354
|
Ji = 1, Jt.byteLength = o, Jt.toByteArray = g, Jt.fromByteArray = I;
|
|
@@ -3361,7 +3361,7 @@ function ut() {
|
|
|
3361
3361
|
function Ae() {
|
|
3362
3362
|
throw new Error("BigInt not supported");
|
|
3363
3363
|
}
|
|
3364
|
-
})(
|
|
3364
|
+
})(mn)), mn;
|
|
3365
3365
|
}
|
|
3366
3366
|
var Du = ut();
|
|
3367
3367
|
const er = "http://www.w3.org/1999/02/22-rdf-syntax-ns#", tr = "http://www.w3.org/2001/XMLSchema#", Fr = "http://www.w3.org/2000/10/swap/", Pe = {
|
|
@@ -3430,7 +3430,7 @@ const er = "http://www.w3.org/1999/02/22-rdf-syntax-ns#", tr = "http://www.w3.or
|
|
|
3430
3430
|
_whitespace: !0,
|
|
3431
3431
|
_endOfFile: !0
|
|
3432
3432
|
}, Fu = /$0^/;
|
|
3433
|
-
class
|
|
3433
|
+
class _i {
|
|
3434
3434
|
constructor(e) {
|
|
3435
3435
|
if (this._iri = /^<((?:[^ <>{}\\]|\\[uU])+)>[ \t]*/, this._unescapedIri = /^<([^\x00-\x20<>\\"\{\}\|\^\`]*)>[ \t]*/, this._simpleQuotedString = /^"([^"\\\r\n]*)"(?=[^"])/, this._simpleApostropheString = /^'([^'\\\r\n]*)'(?=[^'])/, this._langcode = /^@([a-z]+(?:-[a-z0-9]+)*)(?=[^a-z0-9\-])/i, this._prefix = /^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:(?=[#\s<])/, this._prefixed = /^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:((?:(?:[0-:A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])(?:(?:[\.\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])*(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~]))?)?)(?:[ \t]+|(?=\.?[,;!\^\s#()\[\]\{\}"'<>]))/, this._variable = /^\?(?:(?:[A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?=[.,;!\^\s#()\[\]\{\}"'<>])/, this._blank = /^_:((?:[0-9A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?:[ \t]+|(?=\.?[,;:\s#()\[\]\{\}"'<>]))/, this._number = /^[\-+]?(?:(\d+\.\d*|\.?\d+)[eE][\-+]?|\d*(\.)?)\d+(?=\.?[,;:\s#()\[\]\{\}"'<>])/, this._boolean = /^(?:true|false)(?=[.,;\s#()\[\]\{\}"'<>])/, this._keyword = /^@[a-z]+(?=[\s#<:])/i, this._sparqlKeyword = /^(?:PREFIX|BASE|GRAPH)(?=[\s#<])/i, this._shortPredicates = /^a(?=[\s#()\[\]\{\}"'<>])/, this._newline = /^[ \t]*(?:#[^\n\r]*)?(?:\r\n|\n|\r)[ \t]*/, this._comment = /#([^\n\r]*)/, this._whitespace = /^[ \t]+/, this._endOfFile = /^(?:#[^\n\r]*)?$/, e = e || {}, this._isImpliedBy = e.isImpliedBy, this._lineMode = !!e.lineMode) {
|
|
3436
3436
|
this._n3Mode = !1;
|
|
@@ -3664,8 +3664,8 @@ const Qe = {
|
|
|
3664
3664
|
variable: ko,
|
|
3665
3665
|
literal: Fo,
|
|
3666
3666
|
defaultGraph: qu,
|
|
3667
|
-
quad:
|
|
3668
|
-
triple:
|
|
3667
|
+
quad: ni,
|
|
3668
|
+
triple: ni,
|
|
3669
3669
|
fromTerm: gr,
|
|
3670
3670
|
fromQuad: Uo
|
|
3671
3671
|
};
|
|
@@ -3694,7 +3694,7 @@ class Ue {
|
|
|
3694
3694
|
};
|
|
3695
3695
|
}
|
|
3696
3696
|
}
|
|
3697
|
-
let
|
|
3697
|
+
let tn = class extends Ue {
|
|
3698
3698
|
// ### The term type of this term
|
|
3699
3699
|
get termType() {
|
|
3700
3700
|
return "NamedNode";
|
|
@@ -3716,7 +3716,7 @@ let en = class extends Ue {
|
|
|
3716
3716
|
}
|
|
3717
3717
|
// ### The datatype IRI of this literal
|
|
3718
3718
|
get datatype() {
|
|
3719
|
-
return new
|
|
3719
|
+
return new tn(this.datatypeString);
|
|
3720
3720
|
}
|
|
3721
3721
|
// ### The datatype string of this literal
|
|
3722
3722
|
get datatypeString() {
|
|
@@ -3738,7 +3738,7 @@ let en = class extends Ue {
|
|
|
3738
3738
|
datatype: { termType: "NamedNode", value: this.datatypeString }
|
|
3739
3739
|
};
|
|
3740
3740
|
}
|
|
3741
|
-
},
|
|
3741
|
+
}, mi = class extends Ue {
|
|
3742
3742
|
constructor(e) {
|
|
3743
3743
|
super(`_:${e}`);
|
|
3744
3744
|
}
|
|
@@ -3750,7 +3750,7 @@ let en = class extends Ue {
|
|
|
3750
3750
|
get value() {
|
|
3751
3751
|
return this.id.substr(2);
|
|
3752
3752
|
}
|
|
3753
|
-
},
|
|
3753
|
+
}, wi = class extends Ue {
|
|
3754
3754
|
constructor(e) {
|
|
3755
3755
|
super(`?${e}`);
|
|
3756
3756
|
}
|
|
@@ -3762,7 +3762,7 @@ let en = class extends Ue {
|
|
|
3762
3762
|
get value() {
|
|
3763
3763
|
return this.id.substr(1);
|
|
3764
3764
|
}
|
|
3765
|
-
},
|
|
3765
|
+
}, vi = class extends Ue {
|
|
3766
3766
|
constructor() {
|
|
3767
3767
|
return super(""), zt || this;
|
|
3768
3768
|
}
|
|
@@ -3775,7 +3775,7 @@ let en = class extends Ue {
|
|
|
3775
3775
|
return this === e || !!e && this.termType === e.termType;
|
|
3776
3776
|
}
|
|
3777
3777
|
};
|
|
3778
|
-
zt = new
|
|
3778
|
+
zt = new vi();
|
|
3779
3779
|
function Nt(r, e, t) {
|
|
3780
3780
|
if (e = e || Qe, !r)
|
|
3781
3781
|
return e.defaultGraph();
|
|
@@ -3808,7 +3808,7 @@ function Nt(r, e, t) {
|
|
|
3808
3808
|
r[3] && Nt(r[3], e, !0)
|
|
3809
3809
|
);
|
|
3810
3810
|
}
|
|
3811
|
-
function
|
|
3811
|
+
function _t(r, e) {
|
|
3812
3812
|
if (typeof r == "string")
|
|
3813
3813
|
return r;
|
|
3814
3814
|
if (r instanceof Ue && r.termType !== "Quad")
|
|
@@ -3828,11 +3828,11 @@ function yt(r, e) {
|
|
|
3828
3828
|
return `"${r.value}"${r.language ? `@${r.language}` : r.datatype && r.datatype.value !== At.string ? `^^${r.datatype.value}` : ""}`;
|
|
3829
3829
|
case "Quad":
|
|
3830
3830
|
const t = [
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3831
|
+
_t(r.subject, !0),
|
|
3832
|
+
_t(r.predicate, !0),
|
|
3833
|
+
_t(r.object, !0)
|
|
3834
3834
|
];
|
|
3835
|
-
return r.graph && r.graph.termType !== "DefaultGraph" && t.push(
|
|
3835
|
+
return r.graph && r.graph.termType !== "DefaultGraph" && t.push(_t(r.graph, !0)), e ? t : JSON.stringify(t);
|
|
3836
3836
|
default:
|
|
3837
3837
|
throw new Error(`Unexpected termType: ${r.termType}`);
|
|
3838
3838
|
}
|
|
@@ -3873,10 +3873,10 @@ let Qt = class extends Ue {
|
|
|
3873
3873
|
}
|
|
3874
3874
|
};
|
|
3875
3875
|
function Mo(r) {
|
|
3876
|
-
return new
|
|
3876
|
+
return new tn(r);
|
|
3877
3877
|
}
|
|
3878
3878
|
function $o(r) {
|
|
3879
|
-
return new
|
|
3879
|
+
return new mi(r || `n3-${Uu++}`);
|
|
3880
3880
|
}
|
|
3881
3881
|
function Fo(r, e) {
|
|
3882
3882
|
if (typeof e == "string")
|
|
@@ -3885,12 +3885,12 @@ function Fo(r, e) {
|
|
|
3885
3885
|
return t === "" && (typeof r == "boolean" ? t = At.boolean : typeof r == "number" && (Number.isFinite(r) ? t = Number.isInteger(r) ? At.integer : At.double : (t = At.double, Number.isNaN(r) || (r = r > 0 ? "INF" : "-INF")))), t === "" || t === At.string ? new kt(`"${r}"`) : new kt(`"${r}"^^${t}`);
|
|
3886
3886
|
}
|
|
3887
3887
|
function ko(r) {
|
|
3888
|
-
return new
|
|
3888
|
+
return new wi(r);
|
|
3889
3889
|
}
|
|
3890
3890
|
function qu() {
|
|
3891
3891
|
return zt;
|
|
3892
3892
|
}
|
|
3893
|
-
function
|
|
3893
|
+
function ni(r, e, t, n) {
|
|
3894
3894
|
return new Qt(r, e, t, n);
|
|
3895
3895
|
}
|
|
3896
3896
|
function gr(r) {
|
|
@@ -3918,14 +3918,14 @@ function Uo(r) {
|
|
|
3918
3918
|
return r;
|
|
3919
3919
|
if (r.termType !== "Quad")
|
|
3920
3920
|
throw new Error(`Unexpected termType: ${r.termType}`);
|
|
3921
|
-
return
|
|
3921
|
+
return ni(gr(r.subject), gr(r.predicate), gr(r.object), gr(r.graph));
|
|
3922
3922
|
}
|
|
3923
3923
|
let ns = 0;
|
|
3924
|
-
class
|
|
3924
|
+
class rn {
|
|
3925
3925
|
constructor(e) {
|
|
3926
3926
|
this._contextStack = [], this._graph = null, e = e || {}, this._setBase(e.baseIRI), e.factory && qo(this, e.factory);
|
|
3927
3927
|
const t = typeof e.format == "string" ? e.format.match(/\w*$/)[0].toLowerCase() : "", n = /turtle/.test(t), i = /trig/.test(t), s = /triple/.test(t), a = /quad/.test(t), o = this._n3Mode = /n3/.test(t), f = s || a;
|
|
3928
|
-
(this._supportsNamedGraphs = !(n || o)) || (this._readPredicateOrNamedGraph = this._readPredicate), this._supportsQuads = !(n || i || s || o), this._isImpliedBy = e.isImpliedBy, this._supportsRDFStar = t === "" || /star|\*$/.test(t), f && (this._resolveRelativeIRI = (g) => null), this._blankNodePrefix = typeof e.blankNodePrefix != "string" ? "" : e.blankNodePrefix.replace(/^(?!_:)/, "_:"), this._lexer = e.lexer || new
|
|
3928
|
+
(this._supportsNamedGraphs = !(n || o)) || (this._readPredicateOrNamedGraph = this._readPredicate), this._supportsQuads = !(n || i || s || o), this._isImpliedBy = e.isImpliedBy, this._supportsRDFStar = t === "" || /star|\*$/.test(t), f && (this._resolveRelativeIRI = (g) => null), this._blankNodePrefix = typeof e.blankNodePrefix != "string" ? "" : e.blankNodePrefix.replace(/^(?!_:)/, "_:"), this._lexer = e.lexer || new _i({ lineMode: f, n3: o, isImpliedBy: this._isImpliedBy }), this._explicitQuantifiers = !!e.explicitQuantifiers;
|
|
3929
3929
|
}
|
|
3930
3930
|
// ## Static class methods
|
|
3931
3931
|
// ### `_resetBlankNodePrefix` restarts blank node prefix identification
|
|
@@ -4579,7 +4579,7 @@ function qo(r, e) {
|
|
|
4579
4579
|
"<": e.namedNode(Pe.log.isImpliedBy)
|
|
4580
4580
|
}, r.QUANTIFIERS_GRAPH = e.namedNode("urn:n3:quantifiers");
|
|
4581
4581
|
}
|
|
4582
|
-
qo(
|
|
4582
|
+
qo(rn.prototype, Qe);
|
|
4583
4583
|
function Wu(r) {
|
|
4584
4584
|
return !!r && r.termType === "NamedNode";
|
|
4585
4585
|
}
|
|
@@ -4634,7 +4634,7 @@ const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4634
4634
|
function Xr(r) {
|
|
4635
4635
|
return r.replace(/[\]\/\(\)\*\+\?\.\\\$]/g, "\\$&");
|
|
4636
4636
|
}
|
|
4637
|
-
const Yu = /^:?[^:?#]*(?:[?#]|$)|^file:|^[^:]*:\/*[^?#]+?\/(?:\.\.?(?:\/|$)|\/)/i, Ku = /^(?:(?:[^/?#]{3,}|\.?[^/?#.]\.?)(?:\/[^/?#]{3,}|\.?[^/?#.]\.?)*\/?)?(?:[?#]|$)/, is = "./", Zu = "../",
|
|
4637
|
+
const Yu = /^:?[^:?#]*(?:[?#]|$)|^file:|^[^:]*:\/*[^?#]+?\/(?:\.\.?(?:\/|$)|\/)/i, Ku = /^(?:(?:[^/?#]{3,}|\.?[^/?#.]\.?)(?:\/[^/?#]{3,}|\.?[^/?#.]\.?)*\/?)?(?:[?#]|$)/, is = "./", Zu = "../", wn = "?", ss = "#";
|
|
4638
4638
|
class Or {
|
|
4639
4639
|
constructor(e) {
|
|
4640
4640
|
this.base = e, this._baseLength = 0, this._baseMatcher = null, this._pathReplacements = new Array(e.length + 1);
|
|
@@ -4650,7 +4650,7 @@ class Or {
|
|
|
4650
4650
|
const e = /^[^:]*:\/*/.exec(this.base)[0], t = ["^", Xr(e)], n = [], i = [], s = /[^/?#]*([/?#])/y;
|
|
4651
4651
|
let a, o = 0, f = 0, g = s.lastIndex = e.length;
|
|
4652
4652
|
for (; !o && !f && (a = s.exec(this.base)); )
|
|
4653
|
-
a[1] === ss ? f = s.lastIndex - 1 : (t.push(Xr(a[0]), "(?:"), n.push(")?"), a[1] !==
|
|
4653
|
+
a[1] === ss ? f = s.lastIndex - 1 : (t.push(Xr(a[0]), "(?:"), n.push(")?"), a[1] !== wn ? i.push(g = s.lastIndex) : (o = g = s.lastIndex, f = this.base.indexOf(ss, o), this._pathReplacements[o] = wn));
|
|
4654
4654
|
for (let c = 0; c < i.length; c++)
|
|
4655
4655
|
this._pathReplacements[i[c]] = Zu.repeat(i.length - c - 1);
|
|
4656
4656
|
return this._pathReplacements[i[i.length - 1]] = is, this._baseLength = f > 0 ? f : this.base.length, t.push(
|
|
@@ -4668,7 +4668,7 @@ class Or {
|
|
|
4668
4668
|
const i = this._pathReplacements[n];
|
|
4669
4669
|
if (i) {
|
|
4670
4670
|
const s = e.substring(n);
|
|
4671
|
-
return i !==
|
|
4671
|
+
return i !== wn && !Ku.test(s) ? e : i === is && /^[^?#]/.test(s) ? s : i + s;
|
|
4672
4672
|
}
|
|
4673
4673
|
return e.substring(n - 1);
|
|
4674
4674
|
}
|
|
@@ -4899,9 +4899,9 @@ function ls(r) {
|
|
|
4899
4899
|
let e = ef[r];
|
|
4900
4900
|
return e === void 0 && (r.length === 1 ? (e = r.charCodeAt(0).toString(16), e = "\\u0000".substr(0, 6 - e.length) + e) : (e = ((r.charCodeAt(0) - 55296) * 1024 + r.charCodeAt(1) + 9216).toString(16), e = "\\U00000000".substr(0, 10 - e.length) + e)), e;
|
|
4901
4901
|
}
|
|
4902
|
-
var
|
|
4902
|
+
var vn = { exports: {} }, xn = { exports: {} }, En, us;
|
|
4903
4903
|
function Ie() {
|
|
4904
|
-
if (us) return
|
|
4904
|
+
if (us) return En;
|
|
4905
4905
|
us = 1;
|
|
4906
4906
|
class r extends Error {
|
|
4907
4907
|
constructor(t) {
|
|
@@ -4914,7 +4914,7 @@ function Ie() {
|
|
|
4914
4914
|
super(n), this.name = "AggregateError", this.errors = t;
|
|
4915
4915
|
}
|
|
4916
4916
|
}
|
|
4917
|
-
return
|
|
4917
|
+
return En = {
|
|
4918
4918
|
AggregateError: r,
|
|
4919
4919
|
ArrayIsArray(e) {
|
|
4920
4920
|
return Array.isArray(e);
|
|
@@ -5012,11 +5012,11 @@ function Ie() {
|
|
|
5012
5012
|
},
|
|
5013
5013
|
Boolean,
|
|
5014
5014
|
Uint8Array
|
|
5015
|
-
},
|
|
5015
|
+
}, En;
|
|
5016
5016
|
}
|
|
5017
|
-
var
|
|
5017
|
+
var Sn = { exports: {} }, Tn, fs;
|
|
5018
5018
|
function Vo() {
|
|
5019
|
-
return fs || (fs = 1,
|
|
5019
|
+
return fs || (fs = 1, Tn = {
|
|
5020
5020
|
format(r, ...e) {
|
|
5021
5021
|
return r.replace(/%([sdifj])/g, function(...[t, n]) {
|
|
5022
5022
|
const i = e.shift();
|
|
@@ -5043,11 +5043,11 @@ function Vo() {
|
|
|
5043
5043
|
return "{}";
|
|
5044
5044
|
}
|
|
5045
5045
|
}
|
|
5046
|
-
}),
|
|
5046
|
+
}), Tn;
|
|
5047
5047
|
}
|
|
5048
|
-
var
|
|
5048
|
+
var In, cs;
|
|
5049
5049
|
function De() {
|
|
5050
|
-
if (cs) return
|
|
5050
|
+
if (cs) return In;
|
|
5051
5051
|
cs = 1;
|
|
5052
5052
|
const { format: r, inspect: e } = Vo(), { AggregateError: t } = Ie(), n = globalThis.AggregateError || t, i = /* @__PURE__ */ Symbol("kIsNodeError"), s = [
|
|
5053
5053
|
"string",
|
|
@@ -5268,12 +5268,12 @@ function De() {
|
|
|
5268
5268
|
return `The value of "${w}" is out of range. It must be ${p}. Received ${S}`;
|
|
5269
5269
|
},
|
|
5270
5270
|
RangeError
|
|
5271
|
-
), I("ERR_MULTIPLE_CALLBACK", "Callback called multiple times", Error), I("ERR_METHOD_NOT_IMPLEMENTED", "The %s method is not implemented", Error), I("ERR_STREAM_ALREADY_FINISHED", "Cannot call %s after a stream was finished", Error), I("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable", Error), I("ERR_STREAM_DESTROYED", "Cannot call %s after a stream was destroyed", Error), I("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError), I("ERR_STREAM_PREMATURE_CLOSE", "Premature close", Error), I("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF", Error), I("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event", Error), I("ERR_STREAM_WRITE_AFTER_END", "write after end", Error), I("ERR_UNKNOWN_ENCODING", "Unknown encoding: %s", TypeError),
|
|
5271
|
+
), I("ERR_MULTIPLE_CALLBACK", "Callback called multiple times", Error), I("ERR_METHOD_NOT_IMPLEMENTED", "The %s method is not implemented", Error), I("ERR_STREAM_ALREADY_FINISHED", "Cannot call %s after a stream was finished", Error), I("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable", Error), I("ERR_STREAM_DESTROYED", "Cannot call %s after a stream was destroyed", Error), I("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError), I("ERR_STREAM_PREMATURE_CLOSE", "Premature close", Error), I("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF", Error), I("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event", Error), I("ERR_STREAM_WRITE_AFTER_END", "write after end", Error), I("ERR_UNKNOWN_ENCODING", "Unknown encoding: %s", TypeError), In = {
|
|
5272
5272
|
AbortError: y,
|
|
5273
5273
|
aggregateTwoErrors: v(d),
|
|
5274
5274
|
hideStackFrames: v,
|
|
5275
5275
|
codes: f
|
|
5276
|
-
},
|
|
5276
|
+
}, In;
|
|
5277
5277
|
}
|
|
5278
5278
|
var ir = { exports: {} }, ds;
|
|
5279
5279
|
function Rr() {
|
|
@@ -5286,7 +5286,7 @@ function Rr() {
|
|
|
5286
5286
|
return ir.exports = r, ir.exports.AbortSignal = e, ir.exports.default = r, ir.exports;
|
|
5287
5287
|
}
|
|
5288
5288
|
var qr = { exports: {} }, hs;
|
|
5289
|
-
function
|
|
5289
|
+
function nn() {
|
|
5290
5290
|
if (hs) return qr.exports;
|
|
5291
5291
|
hs = 1;
|
|
5292
5292
|
var r = typeof Reflect == "object" ? Reflect : null, e = r && typeof r.apply == "function" ? r.apply : function(T, O, L) {
|
|
@@ -5556,7 +5556,7 @@ function ke() {
|
|
|
5556
5556
|
deprecate(y, w) {
|
|
5557
5557
|
return y;
|
|
5558
5558
|
},
|
|
5559
|
-
addAbortListener:
|
|
5559
|
+
addAbortListener: nn().addAbortListener || function(w, p) {
|
|
5560
5560
|
if (w === void 0)
|
|
5561
5561
|
throw new i("signal", "AbortSignal", w);
|
|
5562
5562
|
v(w, "signal"), d(p, "listener");
|
|
@@ -5594,11 +5594,11 @@ function ke() {
|
|
|
5594
5594
|
), p.signal;
|
|
5595
5595
|
}
|
|
5596
5596
|
}, r.exports.promisify.custom = /* @__PURE__ */ Symbol.for("nodejs.util.promisify.custom");
|
|
5597
|
-
})(
|
|
5597
|
+
})(Sn)), Sn.exports;
|
|
5598
5598
|
}
|
|
5599
|
-
var Wr = {},
|
|
5599
|
+
var Wr = {}, Rn, gs;
|
|
5600
5600
|
function Lr() {
|
|
5601
|
-
if (gs) return
|
|
5601
|
+
if (gs) return Rn;
|
|
5602
5602
|
gs = 1;
|
|
5603
5603
|
const {
|
|
5604
5604
|
ArrayIsArray: r,
|
|
@@ -5776,7 +5776,7 @@ function Lr() {
|
|
|
5776
5776
|
'must be an array or string of format "</styles.css>; rel=preload; as=style"'
|
|
5777
5777
|
);
|
|
5778
5778
|
}
|
|
5779
|
-
return
|
|
5779
|
+
return Rn = {
|
|
5780
5780
|
isInt32: j,
|
|
5781
5781
|
isUint32: re,
|
|
5782
5782
|
parseFileMode: H,
|
|
@@ -5803,13 +5803,13 @@ function Lr() {
|
|
|
5803
5803
|
validateUnion: q,
|
|
5804
5804
|
validateAbortSignal: ye,
|
|
5805
5805
|
validateLinkHeaderValue: te
|
|
5806
|
-
},
|
|
5806
|
+
}, Rn;
|
|
5807
5807
|
}
|
|
5808
|
-
var Gr = { exports: {} },
|
|
5808
|
+
var Gr = { exports: {} }, An = { exports: {} }, bs;
|
|
5809
5809
|
function Lt() {
|
|
5810
|
-
if (bs) return
|
|
5810
|
+
if (bs) return An.exports;
|
|
5811
5811
|
bs = 1;
|
|
5812
|
-
var r =
|
|
5812
|
+
var r = An.exports = {}, e, t;
|
|
5813
5813
|
function n() {
|
|
5814
5814
|
throw new Error("setTimeout has not been defined");
|
|
5815
5815
|
}
|
|
@@ -5899,11 +5899,11 @@ function Lt() {
|
|
|
5899
5899
|
throw new Error("process.chdir is not supported");
|
|
5900
5900
|
}, r.umask = function() {
|
|
5901
5901
|
return 0;
|
|
5902
|
-
},
|
|
5902
|
+
}, An.exports;
|
|
5903
5903
|
}
|
|
5904
|
-
var
|
|
5904
|
+
var Nn, ys;
|
|
5905
5905
|
function ft() {
|
|
5906
|
-
if (ys) return
|
|
5906
|
+
if (ys) return Nn;
|
|
5907
5907
|
ys = 1;
|
|
5908
5908
|
const { SymbolAsyncIterator: r, SymbolIterator: e, SymbolFor: t } = Ie(), n = t("nodejs.stream.destroyed"), i = t("nodejs.stream.errored"), s = t("nodejs.stream.readable"), a = t("nodejs.stream.writable"), o = t("nodejs.stream.disturbed"), f = t("nodejs.webstream.isClosedPromise"), g = t("nodejs.webstream.controllerErrorFunction");
|
|
5909
5909
|
function c(A, W = !1) {
|
|
@@ -6012,7 +6012,7 @@ function ft() {
|
|
|
6012
6012
|
var W, Z, Q, fe, he, xe, we, U, z, oe;
|
|
6013
6013
|
return !!(A && ((W = (Z = (Q = (fe = (he = (xe = A[i]) !== null && xe !== void 0 ? xe : A.readableErrored) !== null && he !== void 0 ? he : A.writableErrored) !== null && fe !== void 0 ? fe : (we = A._readableState) === null || we === void 0 ? void 0 : we.errorEmitted) !== null && Q !== void 0 ? Q : (U = A._writableState) === null || U === void 0 ? void 0 : U.errorEmitted) !== null && Z !== void 0 ? Z : (z = A._readableState) === null || z === void 0 ? void 0 : z.errored) !== null && W !== void 0 ? W : !((oe = A._writableState) === null || oe === void 0) && oe.errored));
|
|
6014
6014
|
}
|
|
6015
|
-
return
|
|
6015
|
+
return Nn = {
|
|
6016
6016
|
isDestroyed: S,
|
|
6017
6017
|
kIsDestroyed: n,
|
|
6018
6018
|
isDisturbed: G,
|
|
@@ -6045,10 +6045,10 @@ function ft() {
|
|
|
6045
6045
|
isServerResponse: le,
|
|
6046
6046
|
willEmitClose: me,
|
|
6047
6047
|
isTransformStream: w
|
|
6048
|
-
},
|
|
6048
|
+
}, Nn;
|
|
6049
6049
|
}
|
|
6050
6050
|
var _s;
|
|
6051
|
-
function
|
|
6051
|
+
function vt() {
|
|
6052
6052
|
if (_s) return Gr.exports;
|
|
6053
6053
|
_s = 1;
|
|
6054
6054
|
const r = Lt(), { AbortError: e, codes: t } = De(), { ERR_INVALID_ARG_TYPE: n, ERR_STREAM_PREMATURE_CLOSE: i } = t, { kEmptyObject: s, once: a } = ke(), { validateAbortSignal: o, validateFunction: f, validateObject: g, validateBoolean: c } = Lr(), { Promise: m, PromisePrototypeThen: I, SymbolDispose: v } = Ie(), {
|
|
@@ -6173,9 +6173,9 @@ function wt() {
|
|
|
6173
6173
|
}
|
|
6174
6174
|
return Gr.exports = le, Gr.exports.finished = me, Gr.exports;
|
|
6175
6175
|
}
|
|
6176
|
-
var
|
|
6176
|
+
var Cn, ms;
|
|
6177
6177
|
function Xt() {
|
|
6178
|
-
if (ms) return
|
|
6178
|
+
if (ms) return Cn;
|
|
6179
6179
|
ms = 1;
|
|
6180
6180
|
const r = Lt(), {
|
|
6181
6181
|
aggregateTwoErrors: e,
|
|
@@ -6267,19 +6267,19 @@ function Xt() {
|
|
|
6267
6267
|
function re(D, $) {
|
|
6268
6268
|
!D || a(D) || (!$ && !o(D) && ($ = new n()), f(D) ? (D.socket = null, D.destroy($)) : O(D) ? D.abort() : O(D.req) ? D.req.abort() : typeof D.destroy == "function" ? D.destroy($) : typeof D.close == "function" ? D.close() : $ ? r.nextTick(j, D, $) : r.nextTick(L, D), D.destroyed || (D[s] = !0));
|
|
6269
6269
|
}
|
|
6270
|
-
return
|
|
6270
|
+
return Cn = {
|
|
6271
6271
|
construct: S,
|
|
6272
6272
|
destroyer: re,
|
|
6273
6273
|
destroy: I,
|
|
6274
6274
|
undestroy: p,
|
|
6275
6275
|
errorOrDestroy: _
|
|
6276
|
-
},
|
|
6276
|
+
}, Cn;
|
|
6277
6277
|
}
|
|
6278
|
-
var
|
|
6279
|
-
function
|
|
6280
|
-
if (ws) return
|
|
6278
|
+
var On, ws;
|
|
6279
|
+
function xi() {
|
|
6280
|
+
if (ws) return On;
|
|
6281
6281
|
ws = 1;
|
|
6282
|
-
const { ArrayIsArray: r, ObjectSetPrototypeOf: e } = Ie(), { EventEmitter: t } =
|
|
6282
|
+
const { ArrayIsArray: r, ObjectSetPrototypeOf: e } = Ie(), { EventEmitter: t } = nn();
|
|
6283
6283
|
function n(s) {
|
|
6284
6284
|
t.call(this, s);
|
|
6285
6285
|
}
|
|
@@ -6313,15 +6313,15 @@ function vi() {
|
|
|
6313
6313
|
if (typeof s.prependListener == "function") return s.prependListener(a, o);
|
|
6314
6314
|
!s._events || !s._events[a] ? s.on(a, o) : r(s._events[a]) ? s._events[a].unshift(o) : s._events[a] = [o, s._events[a]];
|
|
6315
6315
|
}
|
|
6316
|
-
return
|
|
6316
|
+
return On = {
|
|
6317
6317
|
Stream: n,
|
|
6318
6318
|
prependListener: i
|
|
6319
|
-
},
|
|
6319
|
+
}, On;
|
|
6320
6320
|
}
|
|
6321
|
-
var
|
|
6322
|
-
function
|
|
6321
|
+
var Pn = { exports: {} }, vs;
|
|
6322
|
+
function sn() {
|
|
6323
6323
|
return vs || (vs = 1, (function(r) {
|
|
6324
|
-
const { SymbolDispose: e } = Ie(), { AbortError: t, codes: n } = De(), { isNodeStream: i, isWebStream: s, kControllerErrorFunction: a } = ft(), o =
|
|
6324
|
+
const { SymbolDispose: e } = Ie(), { AbortError: t, codes: n } = De(), { isNodeStream: i, isWebStream: s, kControllerErrorFunction: a } = ft(), o = vt(), { ERR_INVALID_ARG_TYPE: f } = n;
|
|
6325
6325
|
let g;
|
|
6326
6326
|
const c = (m, I) => {
|
|
6327
6327
|
if (typeof m != "object" || !("aborted" in m))
|
|
@@ -6356,14 +6356,14 @@ function nn() {
|
|
|
6356
6356
|
}
|
|
6357
6357
|
return I;
|
|
6358
6358
|
};
|
|
6359
|
-
})(
|
|
6359
|
+
})(Pn)), Pn.exports;
|
|
6360
6360
|
}
|
|
6361
|
-
var
|
|
6361
|
+
var Ln, xs;
|
|
6362
6362
|
function tf() {
|
|
6363
|
-
if (xs) return
|
|
6363
|
+
if (xs) return Ln;
|
|
6364
6364
|
xs = 1;
|
|
6365
6365
|
const { StringPrototypeSlice: r, SymbolIterator: e, TypedArrayPrototypeSet: t, Uint8Array: n } = Ie(), { Buffer: i } = ut(), { inspect: s } = ke();
|
|
6366
|
-
return
|
|
6366
|
+
return Ln = class {
|
|
6367
6367
|
constructor() {
|
|
6368
6368
|
this.head = null, this.tail = null, this.length = 0;
|
|
6369
6369
|
}
|
|
@@ -6460,11 +6460,11 @@ function tf() {
|
|
|
6460
6460
|
customInspect: !1
|
|
6461
6461
|
});
|
|
6462
6462
|
}
|
|
6463
|
-
},
|
|
6463
|
+
}, Ln;
|
|
6464
6464
|
}
|
|
6465
|
-
var
|
|
6466
|
-
function
|
|
6467
|
-
if (Es) return
|
|
6465
|
+
var jn, Es;
|
|
6466
|
+
function on() {
|
|
6467
|
+
if (Es) return jn;
|
|
6468
6468
|
Es = 1;
|
|
6469
6469
|
const { MathFloor: r, NumberIsInteger: e } = Ie(), { validateInteger: t } = Lr(), { ERR_INVALID_ARG_VALUE: n } = De().codes;
|
|
6470
6470
|
let i = 16 * 1024, s = 16;
|
|
@@ -6488,13 +6488,13 @@ function sn() {
|
|
|
6488
6488
|
}
|
|
6489
6489
|
return o(c.objectMode);
|
|
6490
6490
|
}
|
|
6491
|
-
return
|
|
6491
|
+
return jn = {
|
|
6492
6492
|
getHighWaterMark: g,
|
|
6493
6493
|
getDefaultHighWaterMark: o,
|
|
6494
6494
|
setDefaultHighWaterMark: f
|
|
6495
|
-
},
|
|
6495
|
+
}, jn;
|
|
6496
6496
|
}
|
|
6497
|
-
var
|
|
6497
|
+
var Dn = {}, Vr = { exports: {} };
|
|
6498
6498
|
var Ss;
|
|
6499
6499
|
function rf() {
|
|
6500
6500
|
return Ss || (Ss = 1, (function(r, e) {
|
|
@@ -6529,7 +6529,7 @@ function rf() {
|
|
|
6529
6529
|
}
|
|
6530
6530
|
var Ts;
|
|
6531
6531
|
function nf() {
|
|
6532
|
-
if (Ts) return
|
|
6532
|
+
if (Ts) return Dn;
|
|
6533
6533
|
Ts = 1;
|
|
6534
6534
|
var r = rf().Buffer, e = r.isEncoding || function(p) {
|
|
6535
6535
|
switch (p = "" + p, p && p.toLowerCase()) {
|
|
@@ -6578,7 +6578,7 @@ function nf() {
|
|
|
6578
6578
|
if (typeof _ != "string" && (r.isEncoding === e || !e(p))) throw new Error("Unknown encoding: " + p);
|
|
6579
6579
|
return _ || p;
|
|
6580
6580
|
}
|
|
6581
|
-
|
|
6581
|
+
Dn.StringDecoder = i;
|
|
6582
6582
|
function i(p) {
|
|
6583
6583
|
this.encoding = n(p);
|
|
6584
6584
|
var _;
|
|
@@ -6683,11 +6683,11 @@ function nf() {
|
|
|
6683
6683
|
function w(p) {
|
|
6684
6684
|
return p && p.length ? this.write(p) : "";
|
|
6685
6685
|
}
|
|
6686
|
-
return
|
|
6686
|
+
return Dn;
|
|
6687
6687
|
}
|
|
6688
|
-
var
|
|
6688
|
+
var Bn, Is;
|
|
6689
6689
|
function Ho() {
|
|
6690
|
-
if (Is) return
|
|
6690
|
+
if (Is) return Bn;
|
|
6691
6691
|
Is = 1;
|
|
6692
6692
|
const r = Lt(), { PromisePrototypeThen: e, SymbolAsyncIterator: t, SymbolIterator: n } = Ie(), { Buffer: i } = ut(), { ERR_INVALID_ARG_TYPE: s, ERR_STREAM_NULL_VALUES: a } = De().codes;
|
|
6693
6693
|
function o(f, g, c) {
|
|
@@ -6758,11 +6758,11 @@ function Ho() {
|
|
|
6758
6758
|
}
|
|
6759
6759
|
return v;
|
|
6760
6760
|
}
|
|
6761
|
-
return
|
|
6761
|
+
return Bn = o, Bn;
|
|
6762
6762
|
}
|
|
6763
|
-
var
|
|
6764
|
-
function
|
|
6765
|
-
if (Rs) return
|
|
6763
|
+
var Mn, Rs;
|
|
6764
|
+
function an() {
|
|
6765
|
+
if (Rs) return Mn;
|
|
6766
6766
|
Rs = 1;
|
|
6767
6767
|
const r = Lt(), {
|
|
6768
6768
|
ArrayPrototypeIndexOf: e,
|
|
@@ -6778,12 +6778,12 @@ function on() {
|
|
|
6778
6778
|
SymbolAsyncIterator: m,
|
|
6779
6779
|
Symbol: I
|
|
6780
6780
|
} = Ie();
|
|
6781
|
-
|
|
6782
|
-
const { EventEmitter: v } =
|
|
6781
|
+
Mn = V, V.ReadableState = K;
|
|
6782
|
+
const { EventEmitter: v } = nn(), { Stream: d, prependListener: y } = xi(), { Buffer: w } = ut(), { addAbortSignal: p } = sn(), _ = vt();
|
|
6783
6783
|
let S = ke().debuglog("stream", (x) => {
|
|
6784
6784
|
S = x;
|
|
6785
6785
|
});
|
|
6786
|
-
const h = tf(), T = Xt(), { getHighWaterMark: O, getDefaultHighWaterMark: L } =
|
|
6786
|
+
const h = tf(), T = Xt(), { getHighWaterMark: O, getDefaultHighWaterMark: L } = on(), {
|
|
6787
6787
|
aggregateTwoErrors: j,
|
|
6788
6788
|
codes: {
|
|
6789
6789
|
ERR_INVALID_ARG_TYPE: re,
|
|
@@ -6936,7 +6936,7 @@ function on() {
|
|
|
6936
6936
|
R.state &= ~xe, R.reading || (x = b(ie, R));
|
|
6937
6937
|
}
|
|
6938
6938
|
let ge;
|
|
6939
|
-
return x > 0 ? ge =
|
|
6939
|
+
return x > 0 ? ge = tt(x, R) : ge = null, ge === null ? (R.needReadable = R.length <= R.highWaterMark, x = 0) : (R.length -= x, R.multiAwaitDrain ? R.awaitDrainWriters.clear() : R.awaitDrainWriters = null), R.length === 0 && (R.ended || (R.needReadable = !0), ie !== x && R.ended && jt(this)), ge !== null && !R.errorEmitted && !R.closeEmitted && (R.dataEmitted = !0, this.emit("data", ge)), ge;
|
|
6940
6940
|
};
|
|
6941
6941
|
function l(x, R) {
|
|
6942
6942
|
if (S("onEofChunk"), !R.ended) {
|
|
@@ -6973,40 +6973,40 @@ function on() {
|
|
|
6973
6973
|
ae.pipes.length === 1 && (ae.multiAwaitDrain || (ae.multiAwaitDrain = !0, ae.awaitDrainWriters = new g(ae.awaitDrainWriters ? [ae.awaitDrainWriters] : []))), ae.pipes.push(x), S("pipe count=%d opts=%j", ae.pipes.length, R);
|
|
6974
6974
|
const Le = (!R || R.end !== !1) && x !== r.stdout && x !== r.stderr ? Ni : Kt;
|
|
6975
6975
|
ae.endEmitted ? r.nextTick(Le) : ie.once("end", Le), x.on("unpipe", qe);
|
|
6976
|
-
function qe(
|
|
6977
|
-
S("onunpipe"),
|
|
6976
|
+
function qe(Et, it) {
|
|
6977
|
+
S("onunpipe"), Et === ie && it && it.hasUnpiped === !1 && (it.hasUnpiped = !0, xa());
|
|
6978
6978
|
}
|
|
6979
6979
|
function Ni() {
|
|
6980
6980
|
S("onend"), x.end();
|
|
6981
6981
|
}
|
|
6982
|
-
let
|
|
6982
|
+
let xt, Ci = !1;
|
|
6983
6983
|
function xa() {
|
|
6984
|
-
S("cleanup"), x.removeListener("close",
|
|
6984
|
+
S("cleanup"), x.removeListener("close", dn), x.removeListener("finish", hn), xt && x.removeListener("drain", xt), x.removeListener("error", cn), x.removeListener("unpipe", qe), ie.removeListener("end", Ni), ie.removeListener("end", Kt), ie.removeListener("data", Pi), Ci = !0, xt && ae.awaitDrainWriters && (!x._writableState || x._writableState.needDrain) && xt();
|
|
6985
6985
|
}
|
|
6986
6986
|
function Oi() {
|
|
6987
|
-
Ci || (ae.pipes.length === 1 && ae.pipes[0] === x ? (S("false write response, pause", 0), ae.awaitDrainWriters = x, ae.multiAwaitDrain = !1) : ae.pipes.length > 1 && ae.pipes.includes(x) && (S("false write response, pause", ae.awaitDrainWriters.size), ae.awaitDrainWriters.add(x)), ie.pause()),
|
|
6987
|
+
Ci || (ae.pipes.length === 1 && ae.pipes[0] === x ? (S("false write response, pause", 0), ae.awaitDrainWriters = x, ae.multiAwaitDrain = !1) : ae.pipes.length > 1 && ae.pipes.includes(x) && (S("false write response, pause", ae.awaitDrainWriters.size), ae.awaitDrainWriters.add(x)), ie.pause()), xt || (xt = Y(ie, x), x.on("drain", xt));
|
|
6988
6988
|
}
|
|
6989
6989
|
ie.on("data", Pi);
|
|
6990
|
-
function Pi(
|
|
6990
|
+
function Pi(Et) {
|
|
6991
6991
|
S("ondata");
|
|
6992
|
-
const
|
|
6993
|
-
S("dest.write",
|
|
6992
|
+
const it = x.write(Et);
|
|
6993
|
+
S("dest.write", it), it === !1 && Oi();
|
|
6994
6994
|
}
|
|
6995
|
-
function
|
|
6996
|
-
if (S("onerror",
|
|
6997
|
-
const
|
|
6998
|
-
|
|
6995
|
+
function cn(Et) {
|
|
6996
|
+
if (S("onerror", Et), Kt(), x.removeListener("error", cn), x.listenerCount("error") === 0) {
|
|
6997
|
+
const it = x._writableState || x._readableState;
|
|
6998
|
+
it && !it.errorEmitted ? A(x, Et) : x.emit("error", Et);
|
|
6999
6999
|
}
|
|
7000
7000
|
}
|
|
7001
|
-
y(x, "error",
|
|
7002
|
-
function cn() {
|
|
7003
|
-
x.removeListener("finish", dn), Kt();
|
|
7004
|
-
}
|
|
7005
|
-
x.once("close", cn);
|
|
7001
|
+
y(x, "error", cn);
|
|
7006
7002
|
function dn() {
|
|
7007
|
-
|
|
7003
|
+
x.removeListener("finish", hn), Kt();
|
|
7004
|
+
}
|
|
7005
|
+
x.once("close", dn);
|
|
7006
|
+
function hn() {
|
|
7007
|
+
S("onfinish"), x.removeListener("close", dn), Kt();
|
|
7008
7008
|
}
|
|
7009
|
-
x.once("finish",
|
|
7009
|
+
x.once("finish", hn);
|
|
7010
7010
|
function Kt() {
|
|
7011
7011
|
S("unpipe"), ie.unpipe(x);
|
|
7012
7012
|
}
|
|
@@ -7254,17 +7254,17 @@ function on() {
|
|
|
7254
7254
|
this[ue] = !!x;
|
|
7255
7255
|
}
|
|
7256
7256
|
}
|
|
7257
|
-
}), V._fromList =
|
|
7258
|
-
function
|
|
7257
|
+
}), V._fromList = tt;
|
|
7258
|
+
function tt(x, R) {
|
|
7259
7259
|
if (R.length === 0) return null;
|
|
7260
7260
|
let ie;
|
|
7261
7261
|
return R.objectMode ? ie = R.buffer.shift() : !x || x >= R.length ? (R.decoder ? ie = R.buffer.join("") : R.buffer.length === 1 ? ie = R.buffer.first() : ie = R.buffer.concat(R.length), R.buffer.clear()) : ie = R.buffer.consume(x, R.decoder), ie;
|
|
7262
7262
|
}
|
|
7263
7263
|
function jt(x) {
|
|
7264
7264
|
const R = x._readableState;
|
|
7265
|
-
S("endReadable", R.endEmitted), R.endEmitted || (R.ended = !0, r.nextTick(
|
|
7265
|
+
S("endReadable", R.endEmitted), R.endEmitted || (R.ended = !0, r.nextTick(rt, R, x));
|
|
7266
7266
|
}
|
|
7267
|
-
function
|
|
7267
|
+
function rt(x, R) {
|
|
7268
7268
|
if (S("endReadableNT", x.endEmitted, x.length), !x.errored && !x.closeEmitted && !x.endEmitted && x.length === 0) {
|
|
7269
7269
|
if (x.endEmitted = !0, R.emit("end"), R.writable && R.allowHalfOpen === !1)
|
|
7270
7270
|
r.nextTick(Yt, R);
|
|
@@ -7283,13 +7283,13 @@ function on() {
|
|
|
7283
7283
|
return G(V, x, R);
|
|
7284
7284
|
};
|
|
7285
7285
|
let ct;
|
|
7286
|
-
function
|
|
7286
|
+
function nt() {
|
|
7287
7287
|
return ct === void 0 && (ct = {}), ct;
|
|
7288
7288
|
}
|
|
7289
7289
|
return V.fromWeb = function(x, R) {
|
|
7290
|
-
return
|
|
7290
|
+
return nt().newStreamReadableFromReadableStream(x, R);
|
|
7291
7291
|
}, V.toWeb = function(x, R) {
|
|
7292
|
-
return
|
|
7292
|
+
return nt().newReadableStreamFromStreamReadable(x, R);
|
|
7293
7293
|
}, V.wrap = function(x, R) {
|
|
7294
7294
|
var ie, ae;
|
|
7295
7295
|
return new V({
|
|
@@ -7299,11 +7299,11 @@ function on() {
|
|
|
7299
7299
|
T.destroyer(x, ge), Le(ge);
|
|
7300
7300
|
}
|
|
7301
7301
|
}).wrap(x);
|
|
7302
|
-
},
|
|
7302
|
+
}, Mn;
|
|
7303
7303
|
}
|
|
7304
|
-
var
|
|
7305
|
-
function
|
|
7306
|
-
if (As) return
|
|
7304
|
+
var $n, As;
|
|
7305
|
+
function Ei() {
|
|
7306
|
+
if (As) return $n;
|
|
7307
7307
|
As = 1;
|
|
7308
7308
|
const r = Lt(), {
|
|
7309
7309
|
ArrayPrototypeSlice: e,
|
|
@@ -7316,8 +7316,8 @@ function xi() {
|
|
|
7316
7316
|
Symbol: f,
|
|
7317
7317
|
SymbolHasInstance: g
|
|
7318
7318
|
} = Ie();
|
|
7319
|
-
|
|
7320
|
-
const { EventEmitter: c } =
|
|
7319
|
+
$n = le, le.WritableState = M;
|
|
7320
|
+
const { EventEmitter: c } = nn(), m = xi().Stream, { Buffer: I } = ut(), v = Xt(), { addAbortSignal: d } = sn(), { getHighWaterMark: y, getDefaultHighWaterMark: w } = on(), {
|
|
7321
7321
|
ERR_INVALID_ARG_TYPE: p,
|
|
7322
7322
|
ERR_METHOD_NOT_IMPLEMENTED: _,
|
|
7323
7323
|
ERR_MULTIPLE_CALLBACK: S,
|
|
@@ -7658,11 +7658,11 @@ function xi() {
|
|
|
7658
7658
|
return be().newStreamWritableFromWritableStream(C, B);
|
|
7659
7659
|
}, le.toWeb = function(C) {
|
|
7660
7660
|
return be().newWritableStreamFromStreamWritable(C);
|
|
7661
|
-
},
|
|
7661
|
+
}, $n;
|
|
7662
7662
|
}
|
|
7663
|
-
var
|
|
7663
|
+
var Fn, Ns;
|
|
7664
7664
|
function sf() {
|
|
7665
|
-
if (Ns) return
|
|
7665
|
+
if (Ns) return Fn;
|
|
7666
7666
|
Ns = 1;
|
|
7667
7667
|
const r = Lt(), e = ut(), {
|
|
7668
7668
|
isReadable: t,
|
|
@@ -7674,10 +7674,10 @@ function sf() {
|
|
|
7674
7674
|
isDuplexNodeStream: f,
|
|
7675
7675
|
isReadableStream: g,
|
|
7676
7676
|
isWritableStream: c
|
|
7677
|
-
} = ft(), m =
|
|
7677
|
+
} = ft(), m = vt(), {
|
|
7678
7678
|
AbortError: I,
|
|
7679
7679
|
codes: { ERR_INVALID_ARG_TYPE: v, ERR_INVALID_RETURN_VALUE: d }
|
|
7680
|
-
} = De(), { destroyer: y } = Xt(), w = lt(), p =
|
|
7680
|
+
} = De(), { destroyer: y } = Xt(), w = lt(), p = an(), _ = Ei(), { createDeferredPromise: S } = ke(), h = Ho(), T = globalThis.Blob || e.Blob, O = typeof T < "u" ? function(M) {
|
|
7681
7681
|
return M instanceof T;
|
|
7682
7682
|
} : function(M) {
|
|
7683
7683
|
return !1;
|
|
@@ -7687,7 +7687,7 @@ function sf() {
|
|
|
7687
7687
|
super(M), M?.readable === !1 && (this._readableState.readable = !1, this._readableState.ended = !0, this._readableState.endEmitted = !0), M?.writable === !1 && (this._writableState.writable = !1, this._writableState.ending = !0, this._writableState.ended = !0, this._writableState.finished = !0);
|
|
7688
7688
|
}
|
|
7689
7689
|
}
|
|
7690
|
-
|
|
7690
|
+
Fn = function H(M, ee) {
|
|
7691
7691
|
if (f(M))
|
|
7692
7692
|
return M;
|
|
7693
7693
|
if (a(M))
|
|
@@ -7900,11 +7900,11 @@ function sf() {
|
|
|
7900
7900
|
!Q && A !== null && (Q = new I()), ce = null, me = null, G = null, A === null ? fe(Q) : (A = fe, y(ee, Q), y(M, Q));
|
|
7901
7901
|
}, W;
|
|
7902
7902
|
}
|
|
7903
|
-
return
|
|
7903
|
+
return Fn;
|
|
7904
7904
|
}
|
|
7905
|
-
var
|
|
7905
|
+
var kn, Cs;
|
|
7906
7906
|
function lt() {
|
|
7907
|
-
if (Cs) return
|
|
7907
|
+
if (Cs) return kn;
|
|
7908
7908
|
Cs = 1;
|
|
7909
7909
|
const {
|
|
7910
7910
|
ObjectDefineProperties: r,
|
|
@@ -7912,8 +7912,8 @@ function lt() {
|
|
|
7912
7912
|
ObjectKeys: t,
|
|
7913
7913
|
ObjectSetPrototypeOf: n
|
|
7914
7914
|
} = Ie();
|
|
7915
|
-
|
|
7916
|
-
const i =
|
|
7915
|
+
kn = a;
|
|
7916
|
+
const i = an(), s = Ei();
|
|
7917
7917
|
n(a.prototype, i.prototype), n(a, i);
|
|
7918
7918
|
{
|
|
7919
7919
|
const c = t(s.prototype);
|
|
@@ -7985,15 +7985,15 @@ function lt() {
|
|
|
7985
7985
|
let g;
|
|
7986
7986
|
return a.from = function(c) {
|
|
7987
7987
|
return g || (g = sf()), g(c, "body");
|
|
7988
|
-
},
|
|
7988
|
+
}, kn;
|
|
7989
7989
|
}
|
|
7990
|
-
var
|
|
7990
|
+
var Un, Os;
|
|
7991
7991
|
function Qo() {
|
|
7992
|
-
if (Os) return
|
|
7992
|
+
if (Os) return Un;
|
|
7993
7993
|
Os = 1;
|
|
7994
7994
|
const { ObjectSetPrototypeOf: r, Symbol: e } = Ie();
|
|
7995
|
-
|
|
7996
|
-
const { ERR_METHOD_NOT_IMPLEMENTED: t } = De().codes, n = lt(), { getHighWaterMark: i } =
|
|
7995
|
+
Un = a;
|
|
7996
|
+
const { ERR_METHOD_NOT_IMPLEMENTED: t } = De().codes, n = lt(), { getHighWaterMark: i } = on();
|
|
7997
7997
|
r(a.prototype, n.prototype), r(a, n);
|
|
7998
7998
|
const s = e("kCallback");
|
|
7999
7999
|
function a(g) {
|
|
@@ -8040,14 +8040,14 @@ function Qo() {
|
|
|
8040
8040
|
const g = this[s];
|
|
8041
8041
|
this[s] = null, g();
|
|
8042
8042
|
}
|
|
8043
|
-
},
|
|
8043
|
+
}, Un;
|
|
8044
8044
|
}
|
|
8045
|
-
var
|
|
8045
|
+
var qn, Ps;
|
|
8046
8046
|
function zo() {
|
|
8047
|
-
if (Ps) return
|
|
8047
|
+
if (Ps) return qn;
|
|
8048
8048
|
Ps = 1;
|
|
8049
8049
|
const { ObjectSetPrototypeOf: r } = Ie();
|
|
8050
|
-
|
|
8050
|
+
qn = t;
|
|
8051
8051
|
const e = Qo();
|
|
8052
8052
|
r(t.prototype, e.prototype), r(t, e);
|
|
8053
8053
|
function t(n) {
|
|
@@ -8056,13 +8056,13 @@ function zo() {
|
|
|
8056
8056
|
}
|
|
8057
8057
|
return t.prototype._transform = function(n, i, s) {
|
|
8058
8058
|
s(null, n);
|
|
8059
|
-
},
|
|
8059
|
+
}, qn;
|
|
8060
8060
|
}
|
|
8061
|
-
var
|
|
8062
|
-
function
|
|
8063
|
-
if (Ls) return
|
|
8061
|
+
var Wn, Ls;
|
|
8062
|
+
function Si() {
|
|
8063
|
+
if (Ls) return Wn;
|
|
8064
8064
|
Ls = 1;
|
|
8065
|
-
const r = Lt(), { ArrayIsArray: e, Promise: t, SymbolAsyncIterator: n, SymbolDispose: i } = Ie(), s =
|
|
8065
|
+
const r = Lt(), { ArrayIsArray: e, Promise: t, SymbolAsyncIterator: n, SymbolDispose: i } = Ie(), s = vt(), { once: a } = ke(), o = Xt(), f = lt(), {
|
|
8066
8066
|
aggregateTwoErrors: g,
|
|
8067
8067
|
codes: {
|
|
8068
8068
|
ERR_INVALID_ARG_TYPE: c,
|
|
@@ -8116,7 +8116,7 @@ function Ei() {
|
|
|
8116
8116
|
throw new c("val", ["Readable", "Iterable", "AsyncIterable"], Q);
|
|
8117
8117
|
}
|
|
8118
8118
|
async function* me(Q) {
|
|
8119
|
-
H || (H =
|
|
8119
|
+
H || (H = an()), yield* H.prototype[n].call(Q);
|
|
8120
8120
|
}
|
|
8121
8121
|
async function G(Q, fe, he, { end: xe }) {
|
|
8122
8122
|
let we, U = null;
|
|
@@ -8337,16 +8337,16 @@ function Ei() {
|
|
|
8337
8337
|
he
|
|
8338
8338
|
);
|
|
8339
8339
|
}
|
|
8340
|
-
return
|
|
8340
|
+
return Wn = {
|
|
8341
8341
|
pipelineImpl: W,
|
|
8342
8342
|
pipeline: A
|
|
8343
|
-
},
|
|
8343
|
+
}, Wn;
|
|
8344
8344
|
}
|
|
8345
|
-
var
|
|
8345
|
+
var Gn, js;
|
|
8346
8346
|
function Xo() {
|
|
8347
|
-
if (js) return
|
|
8347
|
+
if (js) return Gn;
|
|
8348
8348
|
js = 1;
|
|
8349
|
-
const { pipeline: r } =
|
|
8349
|
+
const { pipeline: r } = Si(), e = lt(), { destroyer: t } = Xt(), {
|
|
8350
8350
|
isNodeStream: n,
|
|
8351
8351
|
isReadable: i,
|
|
8352
8352
|
isWritable: s,
|
|
@@ -8357,8 +8357,8 @@ function Xo() {
|
|
|
8357
8357
|
} = ft(), {
|
|
8358
8358
|
AbortError: c,
|
|
8359
8359
|
codes: { ERR_INVALID_ARG_VALUE: m, ERR_MISSING_ARGS: I }
|
|
8360
|
-
} = De(), v =
|
|
8361
|
-
return
|
|
8360
|
+
} = De(), v = vt();
|
|
8361
|
+
return Gn = function(...y) {
|
|
8362
8362
|
if (y.length === 0)
|
|
8363
8363
|
throw new I("streams");
|
|
8364
8364
|
if (y.length === 1)
|
|
@@ -8466,7 +8466,7 @@ function Xo() {
|
|
|
8466
8466
|
return T._destroy = function($, H) {
|
|
8467
8467
|
!$ && h !== null && ($ = new c()), S = null, p = null, _ = null, h === null ? H($) : (h = H, n(j) && t(j, $));
|
|
8468
8468
|
}, T;
|
|
8469
|
-
},
|
|
8469
|
+
}, Gn;
|
|
8470
8470
|
}
|
|
8471
8471
|
var Ds;
|
|
8472
8472
|
function of() {
|
|
@@ -8475,7 +8475,7 @@ function of() {
|
|
|
8475
8475
|
const r = globalThis.AbortController || Rr().AbortController, {
|
|
8476
8476
|
codes: { ERR_INVALID_ARG_VALUE: e, ERR_INVALID_ARG_TYPE: t, ERR_MISSING_ARGS: n, ERR_OUT_OF_RANGE: i },
|
|
8477
8477
|
AbortError: s
|
|
8478
|
-
} = De(), { validateAbortSignal: a, validateInteger: o, validateObject: f } = Lr(), g = Ie().Symbol("kWeak"), c = Ie().Symbol("kResistStopPropagation"), { finished: m } =
|
|
8478
|
+
} = De(), { validateAbortSignal: a, validateInteger: o, validateObject: f } = Lr(), g = Ie().Symbol("kWeak"), c = Ie().Symbol("kResistStopPropagation"), { finished: m } = vt(), I = Xo(), { addAbortSignalNoValidate: v } = sn(), { isWritable: d, isNodeStream: y } = ft(), { deprecate: w } = ke(), {
|
|
8479
8479
|
ArrayPrototypePush: p,
|
|
8480
8480
|
Boolean: _,
|
|
8481
8481
|
MathFloor: S,
|
|
@@ -8724,11 +8724,11 @@ function of() {
|
|
|
8724
8724
|
find: G
|
|
8725
8725
|
}, Wr;
|
|
8726
8726
|
}
|
|
8727
|
-
var
|
|
8727
|
+
var Vn, Bs;
|
|
8728
8728
|
function Yo() {
|
|
8729
|
-
if (Bs) return
|
|
8729
|
+
if (Bs) return Vn;
|
|
8730
8730
|
Bs = 1;
|
|
8731
|
-
const { ArrayPrototypePop: r, Promise: e } = Ie(), { isIterable: t, isNodeStream: n, isWebStream: i } = ft(), { pipelineImpl: s } =
|
|
8731
|
+
const { ArrayPrototypePop: r, Promise: e } = Ie(), { isIterable: t, isNodeStream: n, isWebStream: i } = ft(), { pipelineImpl: s } = Si(), { finished: a } = vt();
|
|
8732
8732
|
Ko();
|
|
8733
8733
|
function o(...f) {
|
|
8734
8734
|
return new e((g, c) => {
|
|
@@ -8750,21 +8750,21 @@ function Yo() {
|
|
|
8750
8750
|
);
|
|
8751
8751
|
});
|
|
8752
8752
|
}
|
|
8753
|
-
return
|
|
8753
|
+
return Vn = {
|
|
8754
8754
|
finished: a,
|
|
8755
8755
|
pipeline: o
|
|
8756
|
-
},
|
|
8756
|
+
}, Vn;
|
|
8757
8757
|
}
|
|
8758
8758
|
var Ms;
|
|
8759
8759
|
function Ko() {
|
|
8760
|
-
if (Ms) return
|
|
8760
|
+
if (Ms) return xn.exports;
|
|
8761
8761
|
Ms = 1;
|
|
8762
8762
|
const { Buffer: r } = ut(), { ObjectDefineProperty: e, ObjectKeys: t, ReflectApply: n } = Ie(), {
|
|
8763
8763
|
promisify: { custom: i }
|
|
8764
8764
|
} = ke(), { streamReturningOperators: s, promiseReturningOperators: a } = of(), {
|
|
8765
8765
|
codes: { ERR_ILLEGAL_CONSTRUCTOR: o }
|
|
8766
|
-
} = De(), f = Xo(), { setDefaultHighWaterMark: g, getDefaultHighWaterMark: c } =
|
|
8767
|
-
w.isDestroyed = y.isDestroyed, w.isDisturbed = y.isDisturbed, w.isErrored = y.isErrored, w.isReadable = y.isReadable, w.isWritable = y.isWritable, w.Readable =
|
|
8766
|
+
} = De(), f = Xo(), { setDefaultHighWaterMark: g, getDefaultHighWaterMark: c } = on(), { pipeline: m } = Si(), { destroyer: I } = Xt(), v = vt(), d = Yo(), y = ft(), w = xn.exports = xi().Stream;
|
|
8767
|
+
w.isDestroyed = y.isDestroyed, w.isDisturbed = y.isDisturbed, w.isErrored = y.isErrored, w.isReadable = y.isReadable, w.isWritable = y.isWritable, w.Readable = an();
|
|
8768
8768
|
for (const _ of t(s)) {
|
|
8769
8769
|
let h = function(...T) {
|
|
8770
8770
|
if (new.target)
|
|
@@ -8807,8 +8807,8 @@ function Ko() {
|
|
|
8807
8807
|
writable: !0
|
|
8808
8808
|
});
|
|
8809
8809
|
}
|
|
8810
|
-
w.Writable =
|
|
8811
|
-
const { addAbortSignal: p } =
|
|
8810
|
+
w.Writable = Ei(), w.Duplex = lt(), w.Transform = Qo(), w.PassThrough = zo(), w.pipeline = m;
|
|
8811
|
+
const { addAbortSignal: p } = sn();
|
|
8812
8812
|
return w.addAbortSignal = p, w.finished = v, w.destroy = I, w.compose = f, w.setDefaultHighWaterMark = g, w.getDefaultHighWaterMark = c, e(w, "promises", {
|
|
8813
8813
|
__proto__: null,
|
|
8814
8814
|
configurable: !0,
|
|
@@ -8832,7 +8832,7 @@ function Ko() {
|
|
|
8832
8832
|
return S instanceof Uint8Array;
|
|
8833
8833
|
}, w._uint8ArrayToBuffer = function(S) {
|
|
8834
8834
|
return r.from(S.buffer, S.byteOffset, S.byteLength);
|
|
8835
|
-
},
|
|
8835
|
+
}, xn.exports;
|
|
8836
8836
|
}
|
|
8837
8837
|
var $s;
|
|
8838
8838
|
function af() {
|
|
@@ -8845,10 +8845,10 @@ function af() {
|
|
|
8845
8845
|
return t;
|
|
8846
8846
|
}
|
|
8847
8847
|
}), r.exports.Stream = e.Stream, r.exports.default = r.exports;
|
|
8848
|
-
})(
|
|
8848
|
+
})(vn)), vn.exports;
|
|
8849
8849
|
}
|
|
8850
|
-
var
|
|
8851
|
-
const
|
|
8850
|
+
var ln = af();
|
|
8851
|
+
const Hn = /* @__PURE__ */ Symbol("iter");
|
|
8852
8852
|
function _r(r, e, t = 4) {
|
|
8853
8853
|
if (t === 0)
|
|
8854
8854
|
return Object.assign(r, e);
|
|
@@ -8882,7 +8882,7 @@ function Jo(r, e, t = 4) {
|
|
|
8882
8882
|
}
|
|
8883
8883
|
return n;
|
|
8884
8884
|
}
|
|
8885
|
-
class
|
|
8885
|
+
class Ti {
|
|
8886
8886
|
constructor(e = {}) {
|
|
8887
8887
|
this._id = 1, this._ids = /* @__PURE__ */ Object.create(null), this._ids[""] = 1, this._entities = /* @__PURE__ */ Object.create(null), this._entities[1] = "", this._blankNodeIndex = 0, this._factory = e.factory || Qe;
|
|
8888
8888
|
}
|
|
@@ -8904,10 +8904,10 @@ class Si {
|
|
|
8904
8904
|
let s;
|
|
8905
8905
|
return t && n && i && (Ir(e.graph) || (s = this._termToNumericId(e.graph))) && this._ids[s ? `.${t}.${n}.${i}.${s}` : `.${t}.${n}.${i}`];
|
|
8906
8906
|
}
|
|
8907
|
-
return this._ids[
|
|
8907
|
+
return this._ids[_t(e)];
|
|
8908
8908
|
}
|
|
8909
8909
|
_termToNewNumericId(e) {
|
|
8910
|
-
const t = e && e.termType === "Quad" ? `.${this._termToNewNumericId(e.subject)}.${this._termToNewNumericId(e.predicate)}.${this._termToNewNumericId(e.object)}${Ir(e.graph) ? "" : `.${this._termToNewNumericId(e.graph)}`}` :
|
|
8910
|
+
const t = e && e.termType === "Quad" ? `.${this._termToNewNumericId(e.subject)}.${this._termToNewNumericId(e.predicate)}.${this._termToNewNumericId(e.object)}${Ir(e.graph) ? "" : `.${this._termToNewNumericId(e.graph)}`}` : _t(e);
|
|
8911
8911
|
return this._ids[t] || (this._ids[this._entities[++this._id] = t] = this._id);
|
|
8912
8912
|
}
|
|
8913
8913
|
createBlankNode(e) {
|
|
@@ -8924,7 +8924,7 @@ class Si {
|
|
|
8924
8924
|
}
|
|
8925
8925
|
class je {
|
|
8926
8926
|
constructor(e, t) {
|
|
8927
|
-
this._size = 0, this._graphs = /* @__PURE__ */ Object.create(null), !t && e && !e[0] && typeof e.match != "function" && (t = e, e = null), t = t || {}, this._factory = t.factory || Qe, this._entityIndex = t.entityIndex || new
|
|
8927
|
+
this._size = 0, this._graphs = /* @__PURE__ */ Object.create(null), !t && e && !e[0] && typeof e.match != "function" && (t = e, e = null), t = t || {}, this._factory = t.factory || Qe, this._entityIndex = t.entityIndex || new Ti({ factory: this._factory }), this._entities = this._entityIndex._entities, this._termFromId = this._entityIndex._termFromId.bind(this._entityIndex), this._termToNumericId = this._entityIndex._termToNumericId.bind(this._entityIndex), this._termToNewNumericId = this._entityIndex._termToNewNumericId.bind(this._entityIndex), e && this.addAll(e);
|
|
8928
8928
|
}
|
|
8929
8929
|
// ## Public properties
|
|
8930
8930
|
// ### `size` returns the number of quads in the store
|
|
@@ -9091,7 +9091,7 @@ class je {
|
|
|
9091
9091
|
// ### `removeMatches` removes all matching quads from the store
|
|
9092
9092
|
// Setting any field to `undefined` or `null` indicates a wildcard.
|
|
9093
9093
|
removeMatches(e, t, n, i) {
|
|
9094
|
-
const s = new
|
|
9094
|
+
const s = new ln.Readable({ objectMode: !0 }), a = this.readQuads(e, t, n, i);
|
|
9095
9095
|
return s._read = (o) => {
|
|
9096
9096
|
for (; --o >= 0; ) {
|
|
9097
9097
|
const { done: f, value: g } = a.next();
|
|
@@ -9176,7 +9176,7 @@ class je {
|
|
|
9176
9176
|
// Setting any field to `undefined` or `null` indicates a wildcard.
|
|
9177
9177
|
// For backwards compatibility, the object return also implements the Readable stream interface.
|
|
9178
9178
|
match(e, t, n, i) {
|
|
9179
|
-
return new
|
|
9179
|
+
return new gt(this, e, t, n, i, { entityIndex: this._entityIndex });
|
|
9180
9180
|
}
|
|
9181
9181
|
// ### `countQuads` returns the number of quads matching a pattern.
|
|
9182
9182
|
// Setting any field to `undefined` or `null` indicates a wildcard.
|
|
@@ -9308,7 +9308,7 @@ class je {
|
|
|
9308
9308
|
* Blank Nodes will be normalized.
|
|
9309
9309
|
*/
|
|
9310
9310
|
addAll(e) {
|
|
9311
|
-
if (e instanceof
|
|
9311
|
+
if (e instanceof gt && (e = e.filtered), Array.isArray(e))
|
|
9312
9312
|
this.addQuads(e);
|
|
9313
9313
|
else if (e instanceof je && e._entityIndex === this._entityIndex)
|
|
9314
9314
|
e._size !== 0 && (this._graphs = _r(this._graphs, e._graphs), this._size = null);
|
|
@@ -9324,7 +9324,7 @@ class je {
|
|
|
9324
9324
|
* Blank Nodes will be normalized.
|
|
9325
9325
|
*/
|
|
9326
9326
|
contains(e) {
|
|
9327
|
-
if (e instanceof
|
|
9327
|
+
if (e instanceof gt && (e = e.filtered), e === this)
|
|
9328
9328
|
return !0;
|
|
9329
9329
|
if (!(e instanceof je) || this._entityIndex !== e._entityIndex)
|
|
9330
9330
|
return e.every((g) => this.has(g));
|
|
@@ -9364,7 +9364,7 @@ class je {
|
|
|
9364
9364
|
* Returns a new dataset that contains all quads from the current dataset that are not included in the given dataset.
|
|
9365
9365
|
*/
|
|
9366
9366
|
difference(e) {
|
|
9367
|
-
if (e && e instanceof
|
|
9367
|
+
if (e && e instanceof gt && (e = e.filtered), e === this)
|
|
9368
9368
|
return new je({ entityIndex: this._entityIndex });
|
|
9369
9369
|
if (e instanceof je && e._entityIndex === this._entityIndex) {
|
|
9370
9370
|
const t = new je({ entityIndex: this._entityIndex }), n = Jo(this._graphs, e._graphs);
|
|
@@ -9378,7 +9378,7 @@ class je {
|
|
|
9378
9378
|
* Blank Nodes will be normalized.
|
|
9379
9379
|
*/
|
|
9380
9380
|
equals(e) {
|
|
9381
|
-
return e instanceof
|
|
9381
|
+
return e instanceof gt && (e = e.filtered), e === this || this.size === e.size && this.contains(e);
|
|
9382
9382
|
}
|
|
9383
9383
|
/**
|
|
9384
9384
|
* Creates a new dataset with all the quads that pass the test implemented by the provided `iteratee`.
|
|
@@ -9395,7 +9395,7 @@ class je {
|
|
|
9395
9395
|
* Returns a new dataset containing all quads from the current dataset that are also included in the given dataset.
|
|
9396
9396
|
*/
|
|
9397
9397
|
intersection(e) {
|
|
9398
|
-
if (e instanceof
|
|
9398
|
+
if (e instanceof gt && (e = e.filtered), e === this) {
|
|
9399
9399
|
const t = new je({ entityIndex: this._entityIndex });
|
|
9400
9400
|
return t._graphs = _r(/* @__PURE__ */ Object.create(null), this._graphs), t._size = this._size, t;
|
|
9401
9401
|
} else if (e instanceof je && this._entityIndex === e._entityIndex) {
|
|
@@ -9485,7 +9485,7 @@ function Xe(r, e, t = 0) {
|
|
|
9485
9485
|
}
|
|
9486
9486
|
return i;
|
|
9487
9487
|
}
|
|
9488
|
-
class
|
|
9488
|
+
class gt extends ln.Readable {
|
|
9489
9489
|
constructor(e, t, n, i, s, a) {
|
|
9490
9490
|
super({ objectMode: !0 }), Object.assign(this, { n3Store: e, subject: t, predicate: n, object: i, graph: s, options: a });
|
|
9491
9491
|
}
|
|
@@ -9508,8 +9508,8 @@ class pt extends an.Readable {
|
|
|
9508
9508
|
return this.filtered.size;
|
|
9509
9509
|
}
|
|
9510
9510
|
_read(e) {
|
|
9511
|
-
e > 0 && !this[
|
|
9512
|
-
const t = this[
|
|
9511
|
+
e > 0 && !this[Hn] && (this[Hn] = this[Symbol.iterator]());
|
|
9512
|
+
const t = this[Hn];
|
|
9513
9513
|
for (; --e >= 0; ) {
|
|
9514
9514
|
const { done: n, value: i } = t.next();
|
|
9515
9515
|
if (n) {
|
|
@@ -9583,7 +9583,7 @@ class pt extends an.Readable {
|
|
|
9583
9583
|
return this.filtered.has(e);
|
|
9584
9584
|
}
|
|
9585
9585
|
match(e, t, n, i) {
|
|
9586
|
-
return new
|
|
9586
|
+
return new gt(this.filtered, e, t, n, i, this.options);
|
|
9587
9587
|
}
|
|
9588
9588
|
*[Symbol.iterator]() {
|
|
9589
9589
|
yield* this._filtered || this.n3Store.readQuads(this.subject, this.predicate, this.object, this.graph);
|
|
@@ -9683,7 +9683,7 @@ class ra {
|
|
|
9683
9683
|
for (let s = 0; s < i.premise.length; s++) {
|
|
9684
9684
|
const a = i.premise[s];
|
|
9685
9685
|
for (const o of n.conclusion) {
|
|
9686
|
-
if (
|
|
9686
|
+
if (Qn(a.subject, o.subject) && Qn(a.predicate, o.predicate) && Qn(a.object, o.object)) {
|
|
9687
9687
|
const f = /* @__PURE__ */ new Set(), g = [];
|
|
9688
9688
|
a.subject.value = a.subject.value || 1, a.object.value = a.object.value || 1, a.predicate.value = a.predicate.value || 1;
|
|
9689
9689
|
for (let c = 0; c < i.premise.length; c++)
|
|
@@ -9715,13 +9715,13 @@ function Fs({ subject: r, predicate: e, object: t }, n) {
|
|
|
9715
9715
|
const i = r.value || n.has(r) || (n.add(r), !1), s = e.value || n.has(e) || (n.add(e), !1), a = t.value || n.has(t) || (n.add(t), !1);
|
|
9716
9716
|
return !i && s ? { content: "predicates", value: [e, t, r] } : a ? { content: "objects", value: [t, r, e] } : { content: "subjects", value: [r, e, t] };
|
|
9717
9717
|
}
|
|
9718
|
-
function
|
|
9718
|
+
function Qn(r, e) {
|
|
9719
9719
|
return r.value === null && (r.value = e.value), r.value === e.value;
|
|
9720
9720
|
}
|
|
9721
|
-
class na extends
|
|
9721
|
+
class na extends ln.Transform {
|
|
9722
9722
|
constructor(e) {
|
|
9723
9723
|
super({ decodeStrings: !0 }), this._readableState.objectMode = !0;
|
|
9724
|
-
const t = new
|
|
9724
|
+
const t = new rn(e);
|
|
9725
9725
|
let n, i;
|
|
9726
9726
|
const s = {
|
|
9727
9727
|
// Handle quads by pushing them down the pipeline
|
|
@@ -9763,7 +9763,7 @@ class na extends an.Transform {
|
|
|
9763
9763
|
}), this;
|
|
9764
9764
|
}
|
|
9765
9765
|
}
|
|
9766
|
-
class ia extends
|
|
9766
|
+
class ia extends ln.Transform {
|
|
9767
9767
|
constructor(e) {
|
|
9768
9768
|
super({ encoding: "utf8", writableObjectMode: !0 });
|
|
9769
9769
|
const t = this._writer = new Pr({
|
|
@@ -9794,12 +9794,12 @@ class ia extends an.Transform {
|
|
|
9794
9794
|
}
|
|
9795
9795
|
}
|
|
9796
9796
|
const lf = {
|
|
9797
|
-
Lexer:
|
|
9798
|
-
Parser:
|
|
9797
|
+
Lexer: _i,
|
|
9798
|
+
Parser: rn,
|
|
9799
9799
|
Writer: Pr,
|
|
9800
9800
|
Store: je,
|
|
9801
9801
|
StoreFactory: ea,
|
|
9802
|
-
EntityIndex:
|
|
9802
|
+
EntityIndex: Ti,
|
|
9803
9803
|
StreamParser: na,
|
|
9804
9804
|
StreamWriter: ia,
|
|
9805
9805
|
Util: Go,
|
|
@@ -9807,26 +9807,26 @@ const lf = {
|
|
|
9807
9807
|
BaseIRI: Or,
|
|
9808
9808
|
DataFactory: Qe,
|
|
9809
9809
|
Term: Ue,
|
|
9810
|
-
NamedNode:
|
|
9810
|
+
NamedNode: tn,
|
|
9811
9811
|
Literal: kt,
|
|
9812
|
-
BlankNode:
|
|
9813
|
-
Variable:
|
|
9814
|
-
DefaultGraph:
|
|
9812
|
+
BlankNode: mi,
|
|
9813
|
+
Variable: wi,
|
|
9814
|
+
DefaultGraph: vi,
|
|
9815
9815
|
Quad: Qt,
|
|
9816
9816
|
Triple: Qt,
|
|
9817
9817
|
termFromId: Nt,
|
|
9818
|
-
termToId:
|
|
9818
|
+
termToId: _t
|
|
9819
9819
|
}, uf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9820
9820
|
__proto__: null,
|
|
9821
9821
|
BaseIRI: Or,
|
|
9822
|
-
BlankNode:
|
|
9822
|
+
BlankNode: mi,
|
|
9823
9823
|
DataFactory: Qe,
|
|
9824
|
-
DefaultGraph:
|
|
9825
|
-
EntityIndex:
|
|
9826
|
-
Lexer:
|
|
9824
|
+
DefaultGraph: vi,
|
|
9825
|
+
EntityIndex: Ti,
|
|
9826
|
+
Lexer: _i,
|
|
9827
9827
|
Literal: kt,
|
|
9828
|
-
NamedNode:
|
|
9829
|
-
Parser:
|
|
9828
|
+
NamedNode: tn,
|
|
9829
|
+
Parser: rn,
|
|
9830
9830
|
Quad: Qt,
|
|
9831
9831
|
Reasoner: ra,
|
|
9832
9832
|
Store: je,
|
|
@@ -9836,12 +9836,12 @@ const lf = {
|
|
|
9836
9836
|
Term: Ue,
|
|
9837
9837
|
Triple: Qt,
|
|
9838
9838
|
Util: Go,
|
|
9839
|
-
Variable:
|
|
9839
|
+
Variable: wi,
|
|
9840
9840
|
Writer: Pr,
|
|
9841
9841
|
default: lf,
|
|
9842
9842
|
getRulesFromDataset: ta,
|
|
9843
9843
|
termFromId: Nt,
|
|
9844
|
-
termToId:
|
|
9844
|
+
termToId: _t
|
|
9845
9845
|
}, Symbol.toStringTag, { value: "Module" })), sa = /* @__PURE__ */ Pu(uf);
|
|
9846
9846
|
var ks;
|
|
9847
9847
|
function ff() {
|
|
@@ -9859,7 +9859,7 @@ function ff() {
|
|
|
9859
9859
|
}
|
|
9860
9860
|
return Mr.default = e, Mr;
|
|
9861
9861
|
}
|
|
9862
|
-
var
|
|
9862
|
+
var St = {}, zn = {}, Oe = {}, Tt = {}, sr = {}, Us;
|
|
9863
9863
|
function oa() {
|
|
9864
9864
|
if (Us) return sr;
|
|
9865
9865
|
Us = 1, Object.defineProperty(sr, "__esModule", { value: !0 }), sr.BlankNode = void 0;
|
|
@@ -9888,7 +9888,7 @@ function aa() {
|
|
|
9888
9888
|
return ar.DefaultGraph = r, r.INSTANCE = new r(), ar;
|
|
9889
9889
|
}
|
|
9890
9890
|
var lr = {}, ur = {}, Ws;
|
|
9891
|
-
function
|
|
9891
|
+
function Ii() {
|
|
9892
9892
|
if (Ws) return ur;
|
|
9893
9893
|
Ws = 1, Object.defineProperty(ur, "__esModule", { value: !0 }), ur.NamedNode = void 0;
|
|
9894
9894
|
let r = class {
|
|
@@ -9905,10 +9905,10 @@ var Gs;
|
|
|
9905
9905
|
function la() {
|
|
9906
9906
|
if (Gs) return lr;
|
|
9907
9907
|
Gs = 1, Object.defineProperty(lr, "__esModule", { value: !0 }), lr.Literal = void 0;
|
|
9908
|
-
const r =
|
|
9909
|
-
let e = class
|
|
9908
|
+
const r = Ii();
|
|
9909
|
+
let e = class ii {
|
|
9910
9910
|
constructor(n, i) {
|
|
9911
|
-
this.termType = "Literal", this.value = n, typeof i == "string" ? (this.language = i, this.datatype =
|
|
9911
|
+
this.termType = "Literal", this.value = n, typeof i == "string" ? (this.language = i, this.datatype = ii.RDF_LANGUAGE_STRING) : i ? (this.language = "", this.datatype = i) : (this.language = "", this.datatype = ii.XSD_STRING);
|
|
9912
9912
|
}
|
|
9913
9913
|
equals(n) {
|
|
9914
9914
|
return !!n && n.termType === "Literal" && n.value === this.value && n.language === this.language && this.datatype.equals(n.datatype);
|
|
@@ -9948,7 +9948,7 @@ var Qs;
|
|
|
9948
9948
|
function cf() {
|
|
9949
9949
|
if (Qs) return or;
|
|
9950
9950
|
Qs = 1, Object.defineProperty(or, "__esModule", { value: !0 }), or.DataFactory = void 0;
|
|
9951
|
-
const r = oa(), e = aa(), t = la(), n =
|
|
9951
|
+
const r = oa(), e = aa(), t = la(), n = Ii(), i = ua(), s = fa();
|
|
9952
9952
|
let a = 0, o = class {
|
|
9953
9953
|
constructor(g) {
|
|
9954
9954
|
this.blankNodeCounter = 0, g = g || {}, this.blankNodePrefix = g.blankNodePrefix || `df_${a++}_`;
|
|
@@ -10051,7 +10051,7 @@ function cf() {
|
|
|
10051
10051
|
var zs;
|
|
10052
10052
|
function df() {
|
|
10053
10053
|
return zs || (zs = 1, (function(r) {
|
|
10054
|
-
var e =
|
|
10054
|
+
var e = Tt && Tt.__createBinding || (Object.create ? (function(n, i, s, a) {
|
|
10055
10055
|
a === void 0 && (a = s);
|
|
10056
10056
|
var o = Object.getOwnPropertyDescriptor(i, s);
|
|
10057
10057
|
(!o || ("get" in o ? !i.__esModule : o.writable || o.configurable)) && (o = { enumerable: !0, get: function() {
|
|
@@ -10059,11 +10059,11 @@ function df() {
|
|
|
10059
10059
|
} }), Object.defineProperty(n, a, o);
|
|
10060
10060
|
}) : (function(n, i, s, a) {
|
|
10061
10061
|
a === void 0 && (a = s), n[a] = i[s];
|
|
10062
|
-
})), t =
|
|
10062
|
+
})), t = Tt && Tt.__exportStar || function(n, i) {
|
|
10063
10063
|
for (var s in n) s !== "default" && !Object.prototype.hasOwnProperty.call(i, s) && e(i, n, s);
|
|
10064
10064
|
};
|
|
10065
|
-
Object.defineProperty(r, "__esModule", { value: !0 }), t(oa(), r), t(cf(), r), t(aa(), r), t(la(), r), t(
|
|
10066
|
-
})(
|
|
10065
|
+
Object.defineProperty(r, "__esModule", { value: !0 }), t(oa(), r), t(cf(), r), t(aa(), r), t(la(), r), t(Ii(), r), t(ua(), r), t(fa(), r);
|
|
10066
|
+
})(Tt)), Tt;
|
|
10067
10067
|
}
|
|
10068
10068
|
var Xs;
|
|
10069
10069
|
function hf() {
|
|
@@ -10213,7 +10213,7 @@ function pf() {
|
|
|
10213
10213
|
} }), Object.defineProperty(r, "termToString", { enumerable: !0, get: function() {
|
|
10214
10214
|
return e.termToString;
|
|
10215
10215
|
} });
|
|
10216
|
-
})(
|
|
10216
|
+
})(zn)), zn;
|
|
10217
10217
|
}
|
|
10218
10218
|
var dr = {}, Ks;
|
|
10219
10219
|
function gf() {
|
|
@@ -10252,9 +10252,9 @@ function gf() {
|
|
|
10252
10252
|
}
|
|
10253
10253
|
var Zs;
|
|
10254
10254
|
function bf() {
|
|
10255
|
-
if (Zs) return
|
|
10255
|
+
if (Zs) return St;
|
|
10256
10256
|
Zs = 1;
|
|
10257
|
-
var r =
|
|
10257
|
+
var r = St && St.__awaiter || function(g, c, m, I) {
|
|
10258
10258
|
function v(d) {
|
|
10259
10259
|
return d instanceof m ? d : new m(function(y) {
|
|
10260
10260
|
y(d);
|
|
@@ -10281,7 +10281,7 @@ function bf() {
|
|
|
10281
10281
|
_((I = I.apply(g, c || [])).next());
|
|
10282
10282
|
});
|
|
10283
10283
|
};
|
|
10284
|
-
Object.defineProperty(
|
|
10284
|
+
Object.defineProperty(St, "__esModule", { value: !0 }), St.TTLWriter = void 0;
|
|
10285
10285
|
const e = sa, t = pf(), n = gf(), i = (g, c) => {
|
|
10286
10286
|
for (const m of ["termType", "value"]) {
|
|
10287
10287
|
const I = g[m].localeCompare(c[m]);
|
|
@@ -10482,7 +10482,7 @@ function bf() {
|
|
|
10482
10482
|
});
|
|
10483
10483
|
}
|
|
10484
10484
|
}
|
|
10485
|
-
return
|
|
10485
|
+
return St.TTLWriter = f, St;
|
|
10486
10486
|
}
|
|
10487
10487
|
var Hr = {}, Js;
|
|
10488
10488
|
function yf() {
|
|
@@ -10595,7 +10595,7 @@ function to(r) {
|
|
|
10595
10595
|
return null;
|
|
10596
10596
|
}
|
|
10597
10597
|
const If = "http://www.w3.org/2000/svg";
|
|
10598
|
-
function
|
|
10598
|
+
function Xn(r) {
|
|
10599
10599
|
return r.getAttribute("viewBox")?.split(" ").map((e) => +e);
|
|
10600
10600
|
}
|
|
10601
10601
|
function ha(r) {
|
|
@@ -10642,16 +10642,16 @@ const pa = "http://celldl.org/ontologies/celldl#", Of = "https://bg-rdf.org/onto
|
|
|
10642
10642
|
}, ya = Object.assign({}, Ff, ba);
|
|
10643
10643
|
Object.entries(ya).map((r) => `PREFIX ${r[0]}: <${r[1]}>`).join(`
|
|
10644
10644
|
`);
|
|
10645
|
-
class
|
|
10645
|
+
class Ri {
|
|
10646
10646
|
#e;
|
|
10647
10647
|
constructor(e) {
|
|
10648
10648
|
this.#e = e;
|
|
10649
10649
|
}
|
|
10650
10650
|
uri(e) {
|
|
10651
|
-
return
|
|
10651
|
+
return Zr(this.#e + (e || ""));
|
|
10652
10652
|
}
|
|
10653
10653
|
}
|
|
10654
|
-
const
|
|
10654
|
+
const pt = new Ri(pa), Ye = new Ri(ga);
|
|
10655
10655
|
new Map(Object.entries(ya));
|
|
10656
10656
|
class kf {
|
|
10657
10657
|
addMetadataPropertiesForSubject(e, t) {
|
|
@@ -10665,10 +10665,10 @@ class kf {
|
|
|
10665
10665
|
if (Mt(n) || ot(n))
|
|
10666
10666
|
i.push(this.add(e, t, n));
|
|
10667
10667
|
else if (n instanceof Ct) {
|
|
10668
|
-
const s =
|
|
10668
|
+
const s = Yn();
|
|
10669
10669
|
i.push(this.add(e, t, s, null)), i.push(...this.addMetadataPropertiesForSubject(s, n));
|
|
10670
10670
|
} else if (Array.isArray(n) && n.length > 0) {
|
|
10671
|
-
const s =
|
|
10671
|
+
const s = Yn();
|
|
10672
10672
|
i.push(this.add(e, t, s, null)), this.#n(s, n);
|
|
10673
10673
|
} else if (n instanceof Set)
|
|
10674
10674
|
for (const s of n.values())
|
|
@@ -10698,20 +10698,20 @@ class kf {
|
|
|
10698
10698
|
});
|
|
10699
10699
|
}
|
|
10700
10700
|
#t(e) {
|
|
10701
|
-
return Mt(e) || ot(e) ? e : Uf(e) ? this.contains(e,
|
|
10701
|
+
return Mt(e) || ot(e) ? e : Uf(e) ? this.contains(e, Ye.uri("rest"), null) ? this.#r(e) : this.metadataPropertiesForSubject(e) : null;
|
|
10702
10702
|
}
|
|
10703
10703
|
#r(e) {
|
|
10704
10704
|
const t = [], n = [e.value];
|
|
10705
10705
|
let i = e;
|
|
10706
|
-
for (; i && !i.equals(
|
|
10707
|
-
const s = this.statementsMatching(i,
|
|
10706
|
+
for (; i && !i.equals(Ye.uri("nil")); ) {
|
|
10707
|
+
const s = this.statementsMatching(i, Ye.uri("first"), null, null);
|
|
10708
10708
|
if (s.length !== 1 || s[0] === void 0)
|
|
10709
10709
|
break;
|
|
10710
10710
|
const a = this.#t(s[0].object);
|
|
10711
10711
|
if (!a)
|
|
10712
10712
|
break;
|
|
10713
10713
|
t.push(a);
|
|
10714
|
-
const o = this.statementsMatching(i,
|
|
10714
|
+
const o = this.statementsMatching(i, Ye.uri("rest"), null, null);
|
|
10715
10715
|
if (o.length !== 1 || o[0] === void 0 || (i = o[0].object, n.includes(i.value)))
|
|
10716
10716
|
break;
|
|
10717
10717
|
n.push(i.value);
|
|
@@ -10722,14 +10722,14 @@ class kf {
|
|
|
10722
10722
|
const n = [];
|
|
10723
10723
|
let i = e;
|
|
10724
10724
|
return t.forEach((s, a) => {
|
|
10725
|
-
if (n.push(...this.#e(i,
|
|
10726
|
-
const o =
|
|
10727
|
-
n.push(this.add(i,
|
|
10725
|
+
if (n.push(...this.#e(i, Ye.uri("first"), s)), a < t.length - 1) {
|
|
10726
|
+
const o = Yn();
|
|
10727
|
+
n.push(this.add(i, Ye.uri("rest"), o, null)), i = o;
|
|
10728
10728
|
}
|
|
10729
|
-
}), n.push(this.add(i,
|
|
10729
|
+
}), n.push(this.add(i, Ye.uri("rest"), Ye.uri("nil"), null)), n;
|
|
10730
10730
|
}
|
|
10731
10731
|
}
|
|
10732
|
-
function
|
|
10732
|
+
function Yn(r = void 0) {
|
|
10733
10733
|
return globalThis.oxigraph.blankNode(r);
|
|
10734
10734
|
}
|
|
10735
10735
|
function Uf(r) {
|
|
@@ -10744,7 +10744,7 @@ function $t(r) {
|
|
|
10744
10744
|
return e.length < 2 && (e = r.value.split("/")), e.length > 1 ? e.at(-1) : "";
|
|
10745
10745
|
}), r;
|
|
10746
10746
|
}
|
|
10747
|
-
function
|
|
10747
|
+
function Zr(r) {
|
|
10748
10748
|
return $t(globalThis.oxigraph.namedNode(r));
|
|
10749
10749
|
}
|
|
10750
10750
|
function ot(r) {
|
|
@@ -10883,10 +10883,10 @@ class Ct extends Map {
|
|
|
10883
10883
|
}
|
|
10884
10884
|
*predicateValues() {
|
|
10885
10885
|
for (const [e, t] of super.entries())
|
|
10886
|
-
yield [
|
|
10886
|
+
yield [Zr(e), t];
|
|
10887
10887
|
}
|
|
10888
10888
|
setProperty(e, t, n = !1) {
|
|
10889
|
-
e.equals(
|
|
10889
|
+
e.equals(Ye.uri("type")) && ot(t) && this.#e.add(t.uri);
|
|
10890
10890
|
const i = e.uri;
|
|
10891
10891
|
if (n && this.has(i)) {
|
|
10892
10892
|
const s = this.get(i);
|
|
@@ -10989,7 +10989,7 @@ function vr(r, e = 3) {
|
|
|
10989
10989
|
const t = 10 ** e;
|
|
10990
10990
|
return Math.round(t * r) / t;
|
|
10991
10991
|
}
|
|
10992
|
-
class
|
|
10992
|
+
class mt {
|
|
10993
10993
|
#e;
|
|
10994
10994
|
#t;
|
|
10995
10995
|
#r;
|
|
@@ -11010,12 +11010,12 @@ class _t {
|
|
|
11010
11010
|
return this.#n;
|
|
11011
11011
|
}
|
|
11012
11012
|
static fromPoints(e, t) {
|
|
11013
|
-
return new
|
|
11013
|
+
return new mt(e.x, e.y, t.x, t.y);
|
|
11014
11014
|
}
|
|
11015
11015
|
static fromSvg(e, t = null) {
|
|
11016
11016
|
const n = e.getBBox();
|
|
11017
11017
|
let i = new Te(n.x, n.y), s = new Te(n.x + n.width, n.y + n.height);
|
|
11018
|
-
return t && (i = t.transformPoint(i), s = t.transformPoint(s)), new
|
|
11018
|
+
return t && (i = t.transformPoint(i), s = t.transformPoint(s)), new mt(i.x, i.y, s.x, s.y);
|
|
11019
11019
|
}
|
|
11020
11020
|
get height() {
|
|
11021
11021
|
return this.#n - this.#r;
|
|
@@ -11036,28 +11036,28 @@ class _t {
|
|
|
11036
11036
|
return Math.abs(this.#e - e.#e) < t && Math.abs(this.#r - e.#r) < t && Math.abs(this.#t - e.#t) < t && Math.abs(this.#n - e.#n) < t;
|
|
11037
11037
|
}
|
|
11038
11038
|
expand(e) {
|
|
11039
|
-
return new
|
|
11039
|
+
return new mt(this.#e - e, this.#r - e, this.#t + e, this.#n + e);
|
|
11040
11040
|
}
|
|
11041
11041
|
inContainer(e) {
|
|
11042
11042
|
return this.#e >= e.#e && this.#r <= e.#r && this.#r >= e.#r && this.#n <= e.#n;
|
|
11043
11043
|
}
|
|
11044
11044
|
}
|
|
11045
|
-
class
|
|
11045
|
+
class bt {
|
|
11046
11046
|
static #e = null;
|
|
11047
11047
|
#t = 0;
|
|
11048
11048
|
constructor() {
|
|
11049
|
-
if (
|
|
11049
|
+
if (bt.#e)
|
|
11050
11050
|
throw new Error("Use `IdGenerator.instance` instead of `new`");
|
|
11051
|
-
|
|
11051
|
+
bt.#e = this;
|
|
11052
11052
|
}
|
|
11053
11053
|
static get instance() {
|
|
11054
|
-
return
|
|
11054
|
+
return bt.#e || (bt.#e = new bt()), bt.#e;
|
|
11055
11055
|
}
|
|
11056
11056
|
get nextId() {
|
|
11057
11057
|
return this.#t += 1, this.#t;
|
|
11058
11058
|
}
|
|
11059
11059
|
}
|
|
11060
|
-
const Wf =
|
|
11060
|
+
const Wf = bt.instance;
|
|
11061
11061
|
function Gf(r = "") {
|
|
11062
11062
|
return `${r}:${Wf.nextId}`;
|
|
11063
11063
|
}
|
|
@@ -11068,7 +11068,7 @@ class Ar {
|
|
|
11068
11068
|
#n = 1 / 0;
|
|
11069
11069
|
id;
|
|
11070
11070
|
constructor(e = 0, t = -1 / 0, n = 1 / 0) {
|
|
11071
|
-
this.#t = e, this.#
|
|
11071
|
+
this.#t = e, this.#l(t) <= this.#l(n) ? (this.#r = t, this.#n = n) : (this.#r = n, this.#n = t), this.id = Gf("V");
|
|
11072
11072
|
}
|
|
11073
11073
|
clean() {
|
|
11074
11074
|
this.#e = !1;
|
|
@@ -11080,10 +11080,10 @@ class Ar {
|
|
|
11080
11080
|
return this.minimum === this.maximum;
|
|
11081
11081
|
}
|
|
11082
11082
|
get minimum() {
|
|
11083
|
-
return this.#
|
|
11083
|
+
return this.#l(this.#r);
|
|
11084
11084
|
}
|
|
11085
11085
|
get maximum() {
|
|
11086
|
-
return this.#
|
|
11086
|
+
return this.#l(this.#n);
|
|
11087
11087
|
}
|
|
11088
11088
|
get value() {
|
|
11089
11089
|
return this.#t;
|
|
@@ -11091,7 +11091,7 @@ class Ar {
|
|
|
11091
11091
|
set value(e) {
|
|
11092
11092
|
this.#t !== e && (e < this.minimum ? e = this.minimum : e > this.maximum && (e = this.maximum), this.#t !== e && (this.#t = e, this.#e = !0));
|
|
11093
11093
|
}
|
|
11094
|
-
#
|
|
11094
|
+
#l(e) {
|
|
11095
11095
|
return typeof e == "number" ? e : e.value;
|
|
11096
11096
|
}
|
|
11097
11097
|
copy() {
|
|
@@ -11102,7 +11102,7 @@ class Ar {
|
|
|
11102
11102
|
}
|
|
11103
11103
|
narrowRange(e, t) {
|
|
11104
11104
|
let n = e, i = t;
|
|
11105
|
-
this.#
|
|
11105
|
+
this.#l(n) > this.#l(i) && (n = t, i = e), this.#l(n) > this.minimum && (this.#r = n), this.#l(i) < this.maximum && (this.#n = i);
|
|
11106
11106
|
}
|
|
11107
11107
|
reassignMaximum(e) {
|
|
11108
11108
|
this.#n = e;
|
|
@@ -11193,12 +11193,12 @@ class io extends at {
|
|
|
11193
11193
|
super(e, t);
|
|
11194
11194
|
}
|
|
11195
11195
|
}
|
|
11196
|
-
class
|
|
11196
|
+
class un {
|
|
11197
11197
|
#e;
|
|
11198
11198
|
#t;
|
|
11199
11199
|
#r;
|
|
11200
11200
|
#n;
|
|
11201
|
-
#
|
|
11201
|
+
#l;
|
|
11202
11202
|
#i = null;
|
|
11203
11203
|
constructor(e, t, n = null) {
|
|
11204
11204
|
this.setCornerPositions(e, t), this.setCentroidOffset(n || new Te(0.5, 0.5));
|
|
@@ -11222,20 +11222,20 @@ class ln {
|
|
|
11222
11222
|
this.#e.clean(), this.#t.clean();
|
|
11223
11223
|
}
|
|
11224
11224
|
copy() {
|
|
11225
|
-
return new
|
|
11225
|
+
return new un(this.#e, this.#t, this.#l);
|
|
11226
11226
|
}
|
|
11227
11227
|
setCornerPositions(e, t) {
|
|
11228
11228
|
let n = e.xValue, i = e.yValue, s = t.xValue, a = t.yValue;
|
|
11229
11229
|
n.value > s.value && (n = t.xValue, s = e.xValue), i.value > a.value && (i = t.yValue, a = e.yValue), this.#e = new at(n, i), this.#t = new at(s, a), this.#r = Me.subtract(this.#t.point, this.#e.point);
|
|
11230
11230
|
}
|
|
11231
11231
|
setCentroidOffset(e) {
|
|
11232
|
-
this.#
|
|
11232
|
+
this.#l = e, this.#n = at.fromPoint(this.#r.scale(this.#l).add(this.#e.point));
|
|
11233
11233
|
}
|
|
11234
11234
|
svg(e = {}) {
|
|
11235
11235
|
return Cf(this.#e.point, this.#t.point, e);
|
|
11236
11236
|
}
|
|
11237
11237
|
}
|
|
11238
|
-
class Vf extends
|
|
11238
|
+
class Vf extends un {
|
|
11239
11239
|
constructor(e) {
|
|
11240
11240
|
super(new io(new Ft(e[0]), new Ft(e[1])), new io(new Ft(e[2]), new Ft(e[3])));
|
|
11241
11241
|
}
|
|
@@ -11270,7 +11270,7 @@ function Yf(r) {
|
|
|
11270
11270
|
};
|
|
11271
11271
|
throw new Error(`'${r}' is not a matrix`);
|
|
11272
11272
|
}
|
|
11273
|
-
function
|
|
11273
|
+
function Kn() {
|
|
11274
11274
|
return {
|
|
11275
11275
|
a: 1,
|
|
11276
11276
|
c: 0,
|
|
@@ -11327,7 +11327,7 @@ function ma(...r) {
|
|
|
11327
11327
|
function Jf(...r) {
|
|
11328
11328
|
return ma(...r);
|
|
11329
11329
|
}
|
|
11330
|
-
function
|
|
11330
|
+
function Zn(r) {
|
|
11331
11331
|
return `matrix(${r.a},${r.b},${r.c},${r.d},${r.e},${r.f})`;
|
|
11332
11332
|
}
|
|
11333
11333
|
class st {
|
|
@@ -11336,13 +11336,13 @@ class st {
|
|
|
11336
11336
|
this.#e = e;
|
|
11337
11337
|
}
|
|
11338
11338
|
static fromString(e) {
|
|
11339
|
-
return e === "" || e === "none" ? new st(
|
|
11339
|
+
return e === "" || e === "none" ? new st(Kn()) : new st(Yf(e));
|
|
11340
11340
|
}
|
|
11341
11341
|
static Identity() {
|
|
11342
|
-
return new st(
|
|
11342
|
+
return new st(Kn());
|
|
11343
11343
|
}
|
|
11344
11344
|
get isIdentity() {
|
|
11345
|
-
return
|
|
11345
|
+
return Zn(this.#e) === Zn(Kn());
|
|
11346
11346
|
}
|
|
11347
11347
|
inverse() {
|
|
11348
11348
|
return new st(Kf(this.#e));
|
|
@@ -11351,7 +11351,7 @@ class st {
|
|
|
11351
11351
|
return new st(Jf([e.#e, this.#e]));
|
|
11352
11352
|
}
|
|
11353
11353
|
toString() {
|
|
11354
|
-
return
|
|
11354
|
+
return Zn(this.#e);
|
|
11355
11355
|
}
|
|
11356
11356
|
transformPoint(e) {
|
|
11357
11357
|
return Te.fromPoint(_a(this.#e, e));
|
|
@@ -11371,11 +11371,11 @@ class tc {
|
|
|
11371
11371
|
#r = new Te(0.5, 0.5);
|
|
11372
11372
|
#n;
|
|
11373
11373
|
// Wrt centroid, anticlockwise from bottom right
|
|
11374
|
-
#
|
|
11374
|
+
#l = !1;
|
|
11375
11375
|
#i = /* @__PURE__ */ new Set();
|
|
11376
11376
|
#u;
|
|
11377
|
-
#
|
|
11378
|
-
#
|
|
11377
|
+
#o = new Te();
|
|
11378
|
+
#a;
|
|
11379
11379
|
#s;
|
|
11380
11380
|
#f = null;
|
|
11381
11381
|
constructor(e, t) {
|
|
@@ -11388,7 +11388,7 @@ class tc {
|
|
|
11388
11388
|
const s = getComputedStyle(i).transform;
|
|
11389
11389
|
s !== "none" && (this.#f = this.#f.leftMultiply(st.fromString(s))), i = i.parentNode;
|
|
11390
11390
|
}
|
|
11391
|
-
this.#f.isIdentity && (this.#f = null), e.setCelldlSvgElement(this), this.#
|
|
11391
|
+
this.#f.isIdentity && (this.#f = null), e.setCelldlSvgElement(this), this.#a = t, this.#u = t, this.#g();
|
|
11392
11392
|
}
|
|
11393
11393
|
get bounds() {
|
|
11394
11394
|
return this.#e;
|
|
@@ -11406,33 +11406,33 @@ class tc {
|
|
|
11406
11406
|
return this.#f;
|
|
11407
11407
|
}
|
|
11408
11408
|
get height() {
|
|
11409
|
-
return this.#
|
|
11409
|
+
return this.#o.y;
|
|
11410
11410
|
}
|
|
11411
11411
|
get id() {
|
|
11412
11412
|
return this.celldlObject.id;
|
|
11413
11413
|
}
|
|
11414
11414
|
get selected() {
|
|
11415
|
-
return this.#
|
|
11415
|
+
return this.#l;
|
|
11416
11416
|
}
|
|
11417
11417
|
get size() {
|
|
11418
|
-
return this.#
|
|
11418
|
+
return this.#o;
|
|
11419
11419
|
}
|
|
11420
11420
|
get svgElement() {
|
|
11421
|
-
return this.#
|
|
11421
|
+
return this.#a;
|
|
11422
11422
|
}
|
|
11423
11423
|
get topLeft() {
|
|
11424
11424
|
return this.#s;
|
|
11425
11425
|
}
|
|
11426
11426
|
get width() {
|
|
11427
|
-
return this.#
|
|
11427
|
+
return this.#o.x;
|
|
11428
11428
|
}
|
|
11429
11429
|
setCentroid(e) {
|
|
11430
11430
|
this.#t = e;
|
|
11431
11431
|
}
|
|
11432
11432
|
svgBounds(e = !1) {
|
|
11433
|
-
return e || this.#e === void 0 ?
|
|
11433
|
+
return e || this.#e === void 0 ? mt.fromSvg(this.#a, this.#f) : this.#e;
|
|
11434
11434
|
}
|
|
11435
|
-
#
|
|
11435
|
+
#d() {
|
|
11436
11436
|
const e = [];
|
|
11437
11437
|
if (this.#u.tagName === "g" && this.#u.classList.contains(Ne.Connection)) {
|
|
11438
11438
|
const t = this.#u.children;
|
|
@@ -11444,11 +11444,11 @@ class tc {
|
|
|
11444
11444
|
}
|
|
11445
11445
|
#c(e, t) {
|
|
11446
11446
|
if (t) {
|
|
11447
|
-
for (const n of this.#
|
|
11447
|
+
for (const n of this.#d())
|
|
11448
11448
|
n.classList.add(e);
|
|
11449
11449
|
this.#i.add(e);
|
|
11450
11450
|
} else {
|
|
11451
|
-
for (const n of this.#
|
|
11451
|
+
for (const n of this.#d())
|
|
11452
11452
|
n.classList.remove(e);
|
|
11453
11453
|
this.#i.delete(e);
|
|
11454
11454
|
}
|
|
@@ -11463,38 +11463,38 @@ class tc {
|
|
|
11463
11463
|
return !1;
|
|
11464
11464
|
}
|
|
11465
11465
|
select(e = !0) {
|
|
11466
|
-
this.#c("selected", e), this.#
|
|
11466
|
+
this.#c("selected", e), this.#l = e;
|
|
11467
11467
|
}
|
|
11468
|
-
#
|
|
11468
|
+
#h() {
|
|
11469
11469
|
const e = this.svgBounds(!0);
|
|
11470
|
-
this.#
|
|
11471
|
-
const t = this.#
|
|
11470
|
+
this.#o = new Te(e.right - e.left, e.bottom - e.top), this.#t ? (this.#s = this.#t.subtract(this.#o.scale(this.#r)), this.#e = new mt(this.#s.x, this.#s.y, this.#s.x + this.#o.x, this.#s.y + this.#o.y)) : (this.#s = new Te(e.left, e.top), this.#e = e, this.#t = this.#o.scale(this.#r).add(this.#s));
|
|
11471
|
+
const t = this.#o.scale(this.#r).scalarScale(-1), n = zf / 2 - so / 2;
|
|
11472
11472
|
this.#n = [
|
|
11473
|
-
t.add(this.#
|
|
11474
|
-
t.add({ x: this.#
|
|
11473
|
+
t.add(this.#o).add({ x: n, y: n }),
|
|
11474
|
+
t.add({ x: this.#o.x, y: 0 }).add({ x: n, y: -n }),
|
|
11475
11475
|
t.add({ x: -n, y: -n }),
|
|
11476
|
-
t.add({ x: 0, y: this.#
|
|
11476
|
+
t.add({ x: 0, y: this.#o.y }).add({ x: -n, y: n })
|
|
11477
11477
|
];
|
|
11478
11478
|
}
|
|
11479
|
-
#
|
|
11480
|
-
if (this.#r = new Te(0.5, 0.5), this.#
|
|
11481
|
-
const e = this.#
|
|
11479
|
+
#g() {
|
|
11480
|
+
if (this.#r = new Te(0.5, 0.5), this.#a.tagName === "g") {
|
|
11481
|
+
const e = this.#a.children.item(0);
|
|
11482
11482
|
e.dataset.centreX && (this.#r = new Te(+e.dataset.centreX, +e.dataset.centreY));
|
|
11483
11483
|
}
|
|
11484
|
-
if (this.#
|
|
11485
|
-
const e = (this.#
|
|
11486
|
-
if (this.#
|
|
11487
|
-
const i = this.#
|
|
11484
|
+
if (this.#h(), this.#a.tagName === "g" && !this.#a.classList.contains(Ne.Connection) && this.#a.firstElementChild !== null) {
|
|
11485
|
+
const e = (this.#a.classList.contains(Ne.Compartment) ? mt.fromSvg(this.#a.firstChild) : mt.fromSvg(this.#a)).expand(so / 2);
|
|
11486
|
+
if (this.#a.firstElementChild.tagName === "svg") {
|
|
11487
|
+
const i = this.#a.firstElementChild;
|
|
11488
11488
|
i.setAttribute("x", `${e.topLeft.x}px`), i.setAttribute("y", `${e.topLeft.y}px`), i.setAttribute("width", `${e.width}px`), i.setAttribute("height", `${e.height}px`);
|
|
11489
11489
|
}
|
|
11490
11490
|
const n = new Vf(e.asArray()).svg({
|
|
11491
11491
|
class: `selection-element parent-id editor-specific ${[...this.#i.values()].join(" ")}`
|
|
11492
11492
|
});
|
|
11493
|
-
if (this.#
|
|
11493
|
+
if (this.#a.insertAdjacentHTML("beforeend", n), this.#u = this.#a.lastChild, this.celldlObject.isConduit) {
|
|
11494
11494
|
const i = new Te(e.right - e.left, e.bottom - e.top).scale(this.#r).add(new Te(e.left, e.top)), s = Af(i, ec, {
|
|
11495
11495
|
class: "selection-element parent-id editor-specific conduit"
|
|
11496
11496
|
});
|
|
11497
|
-
this.#
|
|
11497
|
+
this.#a.insertAdjacentHTML("beforeend", s);
|
|
11498
11498
|
}
|
|
11499
11499
|
}
|
|
11500
11500
|
}
|
|
@@ -11502,7 +11502,7 @@ class tc {
|
|
|
11502
11502
|
class rc extends tc {
|
|
11503
11503
|
#e;
|
|
11504
11504
|
constructor(e, t) {
|
|
11505
|
-
super(e, t), this.#e = new
|
|
11505
|
+
super(e, t), this.#e = new un(at.fromPoint(this.topLeft), at.fromPoint(this.topLeft.add(this.size)), this.centroidOffset), this.setCentroid(this.#e.centroid.point);
|
|
11506
11506
|
}
|
|
11507
11507
|
}
|
|
11508
11508
|
var Ne;
|
|
@@ -11518,9 +11518,9 @@ class wa {
|
|
|
11518
11518
|
#t;
|
|
11519
11519
|
#r;
|
|
11520
11520
|
#n;
|
|
11521
|
-
#
|
|
11521
|
+
#l;
|
|
11522
11522
|
constructor(e, t = {}, n) {
|
|
11523
|
-
this.uri = e, this.options = t, this.#t = n, this.#e = this.constructor.celldlClassName, this.#n =
|
|
11523
|
+
this.uri = e, this.options = t, this.#t = n, this.#e = this.constructor.celldlClassName, this.#n = pt.uri(this.constructor.celldlType);
|
|
11524
11524
|
}
|
|
11525
11525
|
toString() {
|
|
11526
11526
|
return `${this.#e} ${this.id}`;
|
|
@@ -11577,10 +11577,10 @@ class wa {
|
|
|
11577
11577
|
return this.#r?.svgElement || null;
|
|
11578
11578
|
}
|
|
11579
11579
|
get tooltip() {
|
|
11580
|
-
return this.#
|
|
11580
|
+
return this.#l;
|
|
11581
11581
|
}
|
|
11582
11582
|
set tooltip(e) {
|
|
11583
|
-
this.#
|
|
11583
|
+
this.#l = e;
|
|
11584
11584
|
}
|
|
11585
11585
|
activate(e = !0) {
|
|
11586
11586
|
this.#r?.activate(e);
|
|
@@ -11603,21 +11603,21 @@ class oo extends va {
|
|
|
11603
11603
|
static celldlClassName = Ne.Annotation;
|
|
11604
11604
|
static celldlType = "Annotation";
|
|
11605
11605
|
}
|
|
11606
|
-
class
|
|
11606
|
+
class fn extends va {
|
|
11607
11607
|
static celldlType = "Connector";
|
|
11608
11608
|
get isConnectable() {
|
|
11609
11609
|
return !0;
|
|
11610
11610
|
}
|
|
11611
11611
|
}
|
|
11612
|
-
class
|
|
11612
|
+
class si extends fn {
|
|
11613
11613
|
static celldlClassName = Ne.Component;
|
|
11614
11614
|
static celldlType = "Component";
|
|
11615
11615
|
}
|
|
11616
|
-
class nc extends
|
|
11616
|
+
class nc extends si {
|
|
11617
11617
|
static celldlClassName = Ne.Conduit;
|
|
11618
11618
|
static celldlType = "Conduit";
|
|
11619
11619
|
}
|
|
11620
|
-
class ic extends
|
|
11620
|
+
class ic extends fn {
|
|
11621
11621
|
static celldlClassName = Ne.Compartment;
|
|
11622
11622
|
static celldlType = "Compartment";
|
|
11623
11623
|
}
|
|
@@ -11625,7 +11625,7 @@ class ao extends wa {
|
|
|
11625
11625
|
static celldlClassName = Ne.Connection;
|
|
11626
11626
|
static celldlType = "Connection";
|
|
11627
11627
|
}
|
|
11628
|
-
class lo extends
|
|
11628
|
+
class lo extends fn {
|
|
11629
11629
|
static celldlClassName = Ne.Interface;
|
|
11630
11630
|
static celldlType = "Interface";
|
|
11631
11631
|
#e = [];
|
|
@@ -11633,7 +11633,7 @@ class lo extends un {
|
|
|
11633
11633
|
return `${super.toString()} External: ${this.#e.map((e) => e.id).join(", ")}`;
|
|
11634
11634
|
}
|
|
11635
11635
|
}
|
|
11636
|
-
class uo extends
|
|
11636
|
+
class uo extends fn {
|
|
11637
11637
|
static celldlClassName = Ne.UnconnectedPort;
|
|
11638
11638
|
static celldlType = "UnconnectedPort";
|
|
11639
11639
|
}
|
|
@@ -11643,22 +11643,15 @@ class co {
|
|
|
11643
11643
|
#t = new qf();
|
|
11644
11644
|
#r;
|
|
11645
11645
|
#n;
|
|
11646
|
-
#
|
|
11646
|
+
#l;
|
|
11647
11647
|
#i = /* @__PURE__ */ new Map();
|
|
11648
11648
|
#u = /* @__PURE__ */ new Map();
|
|
11649
|
+
#o = void 0;
|
|
11649
11650
|
constructor(e, t = "", n = {}, i = void 0) {
|
|
11650
|
-
|
|
11651
|
-
this.#l(t), this.#o();
|
|
11652
|
-
const s = i ? i.tooltip : void 0;
|
|
11653
|
-
for (const a of this.#u.values())
|
|
11654
|
-
if (a.id in n) {
|
|
11655
|
-
const o = n[a.id];
|
|
11656
|
-
this.#i.set(a.id, o), s && s in o && (a.tooltip = String(o[s]));
|
|
11657
|
-
}
|
|
11658
|
-
}
|
|
11651
|
+
this.#r = e, this.#n = Zr(fo), this.#l = new Ri(`${fo}#`), this.#i = new Map(Object.entries(n)), t !== "" && (this.#a(t), this.#s(), this.#o = i?.tooltip);
|
|
11659
11652
|
}
|
|
11660
11653
|
finishSetup() {
|
|
11661
|
-
this.#b(), this.#
|
|
11654
|
+
this.#w(), this.#b(), this.#m(), this.#v(), this.#_(), this.#y(), this.#d();
|
|
11662
11655
|
}
|
|
11663
11656
|
async viewModel() {
|
|
11664
11657
|
this.#e ? await this.#r.viewDiagram(this) : this.#r.closeDiagram();
|
|
@@ -11683,12 +11676,12 @@ class co {
|
|
|
11683
11676
|
return this.#n.value;
|
|
11684
11677
|
}
|
|
11685
11678
|
makeUri(e) {
|
|
11686
|
-
return this.#
|
|
11679
|
+
return this.#l.uri(e);
|
|
11687
11680
|
}
|
|
11688
11681
|
objectById(e) {
|
|
11689
11682
|
return this.#u.get(e) || null;
|
|
11690
11683
|
}
|
|
11691
|
-
#
|
|
11684
|
+
#a(e) {
|
|
11692
11685
|
const i = new DOMParser().parseFromString(e, "image/svg+xml").firstElementChild;
|
|
11693
11686
|
if (i.hasAttribute("width") && i.hasAttribute("height")) {
|
|
11694
11687
|
const a = to(i.getAttribute("width")), o = to(i.getAttribute("height"));
|
|
@@ -11699,7 +11692,7 @@ class co {
|
|
|
11699
11692
|
s[a].setAttribute("stroke", Hf);
|
|
11700
11693
|
this.#e = i;
|
|
11701
11694
|
}
|
|
11702
|
-
#
|
|
11695
|
+
#s() {
|
|
11703
11696
|
const e = this.#e?.getElementById(sc);
|
|
11704
11697
|
if (e && (!("contentType" in e.dataset) || e.dataset.contentType === mr)) {
|
|
11705
11698
|
const t = e.childNodes;
|
|
@@ -11710,40 +11703,51 @@ class co {
|
|
|
11710
11703
|
break;
|
|
11711
11704
|
}
|
|
11712
11705
|
}
|
|
11713
|
-
}
|
|
11706
|
+
} else
|
|
11707
|
+
for (const [t, n] of this.#i.entries())
|
|
11708
|
+
if (this.#e?.getElementById(t)) {
|
|
11709
|
+
const i = "type" in n ? String(n.type) : "Component";
|
|
11710
|
+
this.#t.add(Zr(`${this.#n.uri}#${t}`), Ye.uri("type"), pt.uri(i));
|
|
11711
|
+
}
|
|
11714
11712
|
}
|
|
11715
|
-
#
|
|
11713
|
+
#f(e) {
|
|
11716
11714
|
const t = this.#e?.getElementById(e.id);
|
|
11717
11715
|
return t ? (e.assignSvgElement(t), !0) : (console.error(`Missing SVG element for ${e.id}`), !1);
|
|
11718
11716
|
}
|
|
11719
|
-
#
|
|
11717
|
+
#d() {
|
|
11718
|
+
for (const e of this.#u.values()) {
|
|
11719
|
+
const t = this.#i.get(e.id);
|
|
11720
|
+
t && this.#o && this.#o in t && (e.tooltip = String(t[this.#o]));
|
|
11721
|
+
}
|
|
11722
|
+
}
|
|
11723
|
+
#c(e, t) {
|
|
11720
11724
|
const n = this.#t.metadataPropertiesForSubject(t);
|
|
11721
11725
|
return new e(t, n, this);
|
|
11722
11726
|
}
|
|
11723
11727
|
#h(e) {
|
|
11724
11728
|
return this.#t.subjectsOfType(e).filter((t) => t[0].value.startsWith(this.#n.value));
|
|
11725
11729
|
}
|
|
11726
|
-
#
|
|
11730
|
+
#g(e) {
|
|
11727
11731
|
this.#u.set(e.id, e);
|
|
11728
11732
|
}
|
|
11729
|
-
#
|
|
11733
|
+
#p(e, t) {
|
|
11730
11734
|
for (const n of this.#h(e))
|
|
11731
11735
|
if (n[1].equals(e)) {
|
|
11732
|
-
const i = this.#
|
|
11733
|
-
this.#
|
|
11736
|
+
const i = this.#c(t, n[0]);
|
|
11737
|
+
this.#f(i) && this.#g(i);
|
|
11734
11738
|
}
|
|
11735
11739
|
}
|
|
11736
|
-
#
|
|
11737
|
-
this.#
|
|
11740
|
+
#_() {
|
|
11741
|
+
this.#p(pt.uri("Annotation"), oo);
|
|
11738
11742
|
}
|
|
11739
|
-
#
|
|
11740
|
-
this.#
|
|
11743
|
+
#w() {
|
|
11744
|
+
this.#p(pt.uri("Component"), si), this.#p(pt.uri("UnconnectedPort"), uo);
|
|
11741
11745
|
}
|
|
11742
|
-
#
|
|
11743
|
-
this.#
|
|
11746
|
+
#b() {
|
|
11747
|
+
this.#p(pt.uri("Connector"), lo);
|
|
11744
11748
|
}
|
|
11745
|
-
#
|
|
11746
|
-
this.#
|
|
11749
|
+
#m() {
|
|
11750
|
+
this.#p(pt.uri("Conduit"), nc);
|
|
11747
11751
|
}
|
|
11748
11752
|
getConnector(e) {
|
|
11749
11753
|
if (e && ot(e) && e.value.startsWith(this.#n.value)) {
|
|
@@ -11752,18 +11756,18 @@ class co {
|
|
|
11752
11756
|
}
|
|
11753
11757
|
return null;
|
|
11754
11758
|
}
|
|
11755
|
-
#
|
|
11756
|
-
this.#
|
|
11759
|
+
#v() {
|
|
11760
|
+
this.#p(pt.uri("Connection"), ao);
|
|
11757
11761
|
}
|
|
11758
|
-
#
|
|
11762
|
+
#y() {
|
|
11759
11763
|
const e = this.#e.querySelectorAll("*[id]");
|
|
11760
11764
|
for (let t = 0; t < e.length; ++t) {
|
|
11761
11765
|
const n = e[t];
|
|
11762
11766
|
if (!this.#u.has(n.id)) {
|
|
11763
|
-
const i = n.classList.contains("celldl-Annotation") ? oo : n.classList.contains("celldl-Compartment") ? ic : n.classList.contains("celldl-Component") ?
|
|
11767
|
+
const i = n.classList.contains("celldl-Annotation") ? oo : n.classList.contains("celldl-Compartment") ? ic : n.classList.contains("celldl-Component") ? si : n.classList.contains("celldl-Connection") ? ao : n.classList.contains("celldl-InterfacePort") ? lo : n.classList.contains("celldl-Unconnected") ? uo : null;
|
|
11764
11768
|
if (i !== null) {
|
|
11765
11769
|
const s = new i(this.makeUri(n.id), {}, this);
|
|
11766
|
-
s.assignSvgElement(n), this.#
|
|
11770
|
+
s.assignSvgElement(n), this.#g(s);
|
|
11767
11771
|
}
|
|
11768
11772
|
}
|
|
11769
11773
|
}
|
|
@@ -11774,16 +11778,16 @@ class oc {
|
|
|
11774
11778
|
#t = new Te();
|
|
11775
11779
|
#r = null;
|
|
11776
11780
|
#n;
|
|
11777
|
-
#
|
|
11781
|
+
#l = new Te();
|
|
11778
11782
|
#i = new Te();
|
|
11779
11783
|
#u;
|
|
11780
|
-
#
|
|
11781
|
-
#
|
|
11784
|
+
#o = !0;
|
|
11785
|
+
#a = 0.125;
|
|
11782
11786
|
#s = 1;
|
|
11783
11787
|
#f = 32;
|
|
11784
|
-
#
|
|
11788
|
+
#d = 0.05;
|
|
11785
11789
|
constructor(e) {
|
|
11786
|
-
e.addEventListener("wheel", this.#
|
|
11790
|
+
e.addEventListener("wheel", this.#p.bind(this), { passive: !0 }), this.#n = e.id, this.#l = new Te(e.offsetLeft + e.clientLeft, e.offsetTop + e.clientTop), (e.clientWidth === 0 || e.clientHeight === 0) && (console.error("Container for viewer has no size..."), this.#o = !1), this.#i = new Te(e.clientWidth, e.clientHeight), this.#u = new ResizeObserver(this.#g.bind(this)), this.#u.observe(e);
|
|
11787
11791
|
}
|
|
11788
11792
|
get panning() {
|
|
11789
11793
|
return this.#e;
|
|
@@ -11792,21 +11796,21 @@ class oc {
|
|
|
11792
11796
|
return this.#s;
|
|
11793
11797
|
}
|
|
11794
11798
|
#c() {
|
|
11795
|
-
return
|
|
11799
|
+
return Xn(this.#r);
|
|
11796
11800
|
}
|
|
11797
|
-
#
|
|
11801
|
+
#h(e) {
|
|
11798
11802
|
this.#r.setAttribute("viewBox", e.map((t) => String(t)).join(" "));
|
|
11799
11803
|
}
|
|
11800
11804
|
enable(e) {
|
|
11801
|
-
if (!this.#
|
|
11805
|
+
if (!this.#o)
|
|
11802
11806
|
return;
|
|
11803
|
-
let t =
|
|
11804
|
-
if (t[2] * this.#i.y >= t[3] * this.#i.x ? (this.#s = this.#i.x / t[2], t[1] -= (this.#i.y / this.#s - t[3]) / 2, t[3] = this.#i.y / this.#s) : (this.#s = this.#i.y / t[3], t[0] -= (this.#i.x / this.#s - t[2]) / 2, t[2] = this.#i.x / this.#s), this.#
|
|
11805
|
-
this.#s = 1, t =
|
|
11807
|
+
let t = Xn(e);
|
|
11808
|
+
if (t[2] * this.#i.y >= t[3] * this.#i.x ? (this.#s = this.#i.x / t[2], t[1] -= (this.#i.y / this.#s - t[3]) / 2, t[3] = this.#i.y / this.#s) : (this.#s = this.#i.y / t[3], t[0] -= (this.#i.x / this.#s - t[2]) / 2, t[2] = this.#i.x / this.#s), this.#a > this.#s && (this.#a = this.#s), this.#s >= 1) {
|
|
11809
|
+
this.#s = 1, t = Xn(e);
|
|
11806
11810
|
const n = this.#i.subtract({ x: t[2], y: t[3] });
|
|
11807
11811
|
t[0] -= n.x / 2, t[1] -= n.y / 2, t[2] = this.#i.x, t[3] = this.#i.y;
|
|
11808
11812
|
}
|
|
11809
|
-
this.#r = e, this.#
|
|
11813
|
+
this.#r = e, this.#h(t), this.#e = !1;
|
|
11810
11814
|
}
|
|
11811
11815
|
disable() {
|
|
11812
11816
|
this.#r = null, this.#e = !1, this.#s = 1;
|
|
@@ -11819,7 +11823,7 @@ class oc {
|
|
|
11819
11823
|
const t = this.#t.subtract(e).scalarScale(1 / this.#s);
|
|
11820
11824
|
if (!t.isZero()) {
|
|
11821
11825
|
const n = this.#c();
|
|
11822
|
-
return n[0] += t.x, n[1] += t.y, this.#
|
|
11826
|
+
return n[0] += t.x, n[1] += t.y, this.#h(n), this.#t = Te.fromPoint(e), !0;
|
|
11823
11827
|
}
|
|
11824
11828
|
}
|
|
11825
11829
|
return !1;
|
|
@@ -11827,21 +11831,21 @@ class oc {
|
|
|
11827
11831
|
pointerUp(e) {
|
|
11828
11832
|
this.#e = !1;
|
|
11829
11833
|
}
|
|
11830
|
-
#
|
|
11834
|
+
#g(e) {
|
|
11831
11835
|
if (this.#r) {
|
|
11832
11836
|
for (const t of e)
|
|
11833
11837
|
if (t.target.id === this.#n) {
|
|
11834
11838
|
const n = new Te(t.contentRect.width, t.contentRect.height), i = this.#c(), s = n.subtract(this.#i);
|
|
11835
|
-
Math.abs(s.x * i[3]) >= Math.abs(s.y * i[2]) ? (this.#s = n.x / i[2], i[1] -= (this.#i.y / this.#s - i[3]) / 2, i[3] = n.y / this.#s) : (this.#s = n.y / i[3], i[0] -= (this.#i.x / this.#s - i[2]) / 2, i[2] = n.x / this.#s), this.#i = n, this.#
|
|
11839
|
+
Math.abs(s.x * i[3]) >= Math.abs(s.y * i[2]) ? (this.#s = n.x / i[2], i[1] -= (this.#i.y / this.#s - i[3]) / 2, i[3] = n.y / this.#s) : (this.#s = n.y / i[3], i[0] -= (this.#i.x / this.#s - i[2]) / 2, i[2] = n.x / this.#s), this.#i = n, this.#h(i);
|
|
11836
11840
|
}
|
|
11837
11841
|
}
|
|
11838
11842
|
}
|
|
11839
|
-
#
|
|
11843
|
+
#p(e) {
|
|
11840
11844
|
if (this.#r) {
|
|
11841
|
-
const n = (e.deltaY === 0 && e.deltaX ? e.deltaX : e.deltaY) < 0 ? 1 : -1, i = this.#s * Math.exp(n * this.#
|
|
11842
|
-
this.#s = Math.min(Math.max(i, this.#
|
|
11845
|
+
const n = (e.deltaY === 0 && e.deltaX ? e.deltaX : e.deltaY) < 0 ? 1 : -1, i = this.#s * Math.exp(n * this.#d / 3);
|
|
11846
|
+
this.#s = Math.min(Math.max(i, this.#a), this.#f);
|
|
11843
11847
|
const s = this.#i.scalarScale(1 / this.#s), a = this.#c();
|
|
11844
|
-
a[0] += (a[2] - s.x) * (e.clientX - this.#
|
|
11848
|
+
a[0] += (a[2] - s.x) * (e.clientX - this.#l.x) / this.#i.x, a[1] += (a[3] - s.y) * (e.clientY - this.#l.y) / this.#i.y, a[2] = s.x, a[3] = s.y, this.#h(a);
|
|
11845
11849
|
}
|
|
11846
11850
|
}
|
|
11847
11851
|
}
|
|
@@ -11867,21 +11871,21 @@ class Ai {
|
|
|
11867
11871
|
#t = null;
|
|
11868
11872
|
#r = "";
|
|
11869
11873
|
#n = null;
|
|
11870
|
-
#
|
|
11874
|
+
#l = !1;
|
|
11871
11875
|
#i = null;
|
|
11872
11876
|
#u = !1;
|
|
11873
|
-
#l = null;
|
|
11874
11877
|
#o = null;
|
|
11878
|
+
#a = null;
|
|
11875
11879
|
#s = 0;
|
|
11876
11880
|
#f;
|
|
11877
|
-
#
|
|
11881
|
+
#d;
|
|
11878
11882
|
#c = "";
|
|
11879
11883
|
constructor() {
|
|
11880
11884
|
Ai.instance = this;
|
|
11881
11885
|
}
|
|
11882
11886
|
mount(e, t) {
|
|
11883
11887
|
this.#e = e, this.#r = t, this.#i = new oc(this.#e);
|
|
11884
|
-
const { tippy: n } =
|
|
11888
|
+
const { tippy: n } = yi(this.#e, {
|
|
11885
11889
|
content: "",
|
|
11886
11890
|
animation: "none",
|
|
11887
11891
|
duration: [0, 0],
|
|
@@ -11891,13 +11895,13 @@ class Ai {
|
|
|
11891
11895
|
arrow: !0,
|
|
11892
11896
|
followCursor: !0
|
|
11893
11897
|
});
|
|
11894
|
-
n.value && (this.#f = n, this.#
|
|
11898
|
+
n.value && (this.#f = n, this.#d = this.#f.value.popper);
|
|
11895
11899
|
}
|
|
11896
|
-
#
|
|
11897
|
-
this.#e && (this.#e.addEventListener("click", this.#
|
|
11900
|
+
#h() {
|
|
11901
|
+
this.#e && (this.#e.addEventListener("click", this.#E.bind(this)), this.#e.addEventListener("pointerover", this.#S.bind(this)), this.#e.addEventListener("pointerout", this.#T.bind(this)), this.#e.addEventListener("pointerdown", this.#I.bind(this)), this.#e.addEventListener("pointermove", this.#R.bind(this)), this.#e.addEventListener("pointerup", this.#A.bind(this)));
|
|
11898
11902
|
}
|
|
11899
|
-
#
|
|
11900
|
-
this.#e && (this.#e.removeEventListener("click", this.#
|
|
11903
|
+
#g() {
|
|
11904
|
+
this.#e && (this.#e.removeEventListener("click", this.#E.bind(this)), this.#e.removeEventListener("pointerover", this.#S.bind(this)), this.#e.removeEventListener("pointerout", this.#T.bind(this)), this.#e.removeEventListener("pointerdown", this.#I.bind(this)), this.#e.removeEventListener("pointermove", this.#R.bind(this)), this.#e.removeEventListener("pointerup", this.#A.bind(this)));
|
|
11901
11905
|
}
|
|
11902
11906
|
get celldlModel() {
|
|
11903
11907
|
return this.#t;
|
|
@@ -11906,49 +11910,49 @@ class Ai {
|
|
|
11906
11910
|
return this.#e ? [this.#e.clientWidth, this.#e.clientHeight] : [0, 0];
|
|
11907
11911
|
}
|
|
11908
11912
|
async viewDiagram(e) {
|
|
11909
|
-
this.#t !== null ? this.closeDiagram(!0) : this.#
|
|
11913
|
+
this.#t !== null ? this.closeDiagram(!0) : this.#h(), this.#t = e, this.#n = e.svgDiagram, this.#e && this.#e.appendChild(this.#n), await pr.nextTick(), e.finishSetup(), this.#r !== "" && (this.#n?.setAttribute(this.#r, ""), this.#n?.querySelectorAll("*").forEach((t) => {
|
|
11910
11914
|
t.setAttribute(this.#r, "");
|
|
11911
|
-
})), this.#i?.enable(this.#n), this.#
|
|
11915
|
+
})), this.#i?.enable(this.#n), this.#o = null, this.#u = !1, this.#a = null;
|
|
11912
11916
|
}
|
|
11913
11917
|
closeDiagram(e = !1) {
|
|
11914
|
-
this.#t !== null && (e || this.#
|
|
11918
|
+
this.#t !== null && (e || this.#g(), this.#i?.disable(), this.#e && this.#e.removeChild(this.#n), this.#n = null, this.#t = null);
|
|
11915
11919
|
}
|
|
11916
11920
|
resetObjectStates() {
|
|
11917
|
-
this.#
|
|
11921
|
+
this.#x(), this.#y();
|
|
11918
11922
|
}
|
|
11919
|
-
#
|
|
11923
|
+
#p() {
|
|
11920
11924
|
this.#n?.style.removeProperty("cursor"), this.#e && this.#e.style.setProperty("cursor", "default");
|
|
11921
11925
|
}
|
|
11922
|
-
#
|
|
11926
|
+
#_() {
|
|
11923
11927
|
this.#f && this.#f.value.hide();
|
|
11924
11928
|
}
|
|
11925
11929
|
#w(e, t = "") {
|
|
11926
11930
|
if (e === "")
|
|
11927
|
-
this.#
|
|
11928
|
-
else if (this.#f && (this.#f.value.setContent(e), this.#f.value.show(), this.#
|
|
11931
|
+
this.#_();
|
|
11932
|
+
else if (this.#f && (this.#f.value.setContent(e), this.#f.value.show(), this.#d && (this.#c !== "" && (this.#d.classList.remove(this.#c), this.#c = ""), t !== ""))) {
|
|
11929
11933
|
const n = `tooltip-${t}`;
|
|
11930
|
-
this.#
|
|
11934
|
+
this.#d.classList.add(n), this.#c = n;
|
|
11931
11935
|
}
|
|
11932
11936
|
}
|
|
11933
|
-
#
|
|
11937
|
+
#b(e, t = void 0) {
|
|
11934
11938
|
this.#t && this.#t.viewerEvent(e, t);
|
|
11935
11939
|
}
|
|
11936
|
-
#
|
|
11940
|
+
#m(e, t) {
|
|
11937
11941
|
e.activate(t);
|
|
11938
11942
|
}
|
|
11939
|
-
#
|
|
11940
|
-
e && this.#
|
|
11943
|
+
#v(e) {
|
|
11944
|
+
e && this.#o !== e && (this.#m(e, !0), this.#o = e, e.tooltip && this.#w(e.tooltip, "info"), this.#b("active", e));
|
|
11941
11945
|
}
|
|
11942
|
-
#
|
|
11943
|
-
this.#
|
|
11946
|
+
#y() {
|
|
11947
|
+
this.#o && (this.#m(this.#o, !1), this.#o = null, this.#b("unactive"));
|
|
11944
11948
|
}
|
|
11945
11949
|
#N(e) {
|
|
11946
|
-
this.#
|
|
11950
|
+
this.#x(), e !== null && (e.select(!0), this.#a = e, this.#b("select", e));
|
|
11947
11951
|
}
|
|
11948
|
-
#
|
|
11949
|
-
this.#
|
|
11952
|
+
#x() {
|
|
11953
|
+
this.#a && (this.#b("unselect", this.#a), this.#a.select(!1), this.#a = null);
|
|
11950
11954
|
}
|
|
11951
|
-
#
|
|
11955
|
+
#E(e) {
|
|
11952
11956
|
const t = e.target;
|
|
11953
11957
|
if (this.#t === null || !this.#n?.contains(t) || // clickTolerance = 1px ? to set pointerMoved?
|
|
11954
11958
|
this.#u && Date.now() - this.#s > ac)
|
|
@@ -11958,43 +11962,43 @@ class Ai {
|
|
|
11958
11962
|
}
|
|
11959
11963
|
#C(e, t, n) {
|
|
11960
11964
|
let i = !1;
|
|
11961
|
-
this.#
|
|
11965
|
+
this.#a !== null && (i = n === this.#a, this.#x()), !i && n && n === this.#o && this.#N(n);
|
|
11962
11966
|
}
|
|
11963
11967
|
#O(e) {
|
|
11964
11968
|
return e === this.#n || e.id === lc || !this.#n?.contains(e);
|
|
11965
11969
|
}
|
|
11966
|
-
#
|
|
11970
|
+
#S(e) {
|
|
11967
11971
|
if (this.#t === null)
|
|
11968
11972
|
return;
|
|
11969
11973
|
const t = e.target, n = this.#t.objectById(ho(t));
|
|
11970
11974
|
if (this.#O(t)) {
|
|
11971
|
-
this.#
|
|
11975
|
+
this.#_(), this.#o && n !== this.#o && this.#y();
|
|
11972
11976
|
return;
|
|
11973
11977
|
}
|
|
11974
|
-
this.#
|
|
11975
|
-
}
|
|
11976
|
-
#S(e) {
|
|
11977
|
-
const t = e.target;
|
|
11978
|
-
(t === this.#n || !this.#n?.contains(t)) && this.#l && this.#m();
|
|
11978
|
+
this.#o && n !== this.#o && this.#y(), n && this.#v(n);
|
|
11979
11979
|
}
|
|
11980
11980
|
#T(e) {
|
|
11981
|
-
|
|
11981
|
+
const t = e.target;
|
|
11982
|
+
(t === this.#n || !this.#n?.contains(t)) && this.#o && this.#y();
|
|
11982
11983
|
}
|
|
11983
11984
|
#I(e) {
|
|
11984
|
-
|
|
11985
|
+
this.#u = !1, this.#s = Date.now(), this.#n?.style.removeProperty("cursor"), this.#e?.style.setProperty("cursor", "grab"), this.#i.pointerDown(e), this.#l = !0;
|
|
11986
|
+
}
|
|
11987
|
+
#R(e) {
|
|
11988
|
+
if (this.#l) {
|
|
11985
11989
|
this.#u = this.#i.pointerMove(e) || this.#u;
|
|
11986
11990
|
return;
|
|
11987
11991
|
}
|
|
11988
11992
|
this.#u = !0;
|
|
11989
11993
|
}
|
|
11990
|
-
#
|
|
11991
|
-
if (this.#t !== null && this.#
|
|
11992
|
-
this.#i.pointerUp(e), this.#
|
|
11994
|
+
#A(e) {
|
|
11995
|
+
if (this.#t !== null && this.#l) {
|
|
11996
|
+
this.#i.pointerUp(e), this.#l = !1, this.#p();
|
|
11993
11997
|
return;
|
|
11994
11998
|
}
|
|
11995
11999
|
}
|
|
11996
12000
|
}
|
|
11997
|
-
const uc = /* @__PURE__ */
|
|
12001
|
+
const uc = /* @__PURE__ */ ai({
|
|
11998
12002
|
__name: "WrappedViewer",
|
|
11999
12003
|
props: {
|
|
12000
12004
|
annotations: {},
|
|
@@ -12041,4 +12045,4 @@ const uc = /* @__PURE__ */ oi({
|
|
|
12041
12045
|
export {
|
|
12042
12046
|
Tc as default
|
|
12043
12047
|
};
|
|
12044
|
-
//# sourceMappingURL=WrappedViewer-
|
|
12048
|
+
//# sourceMappingURL=WrappedViewer-CcH9JaZs.js.map
|