@wastedondestiny/destiny-library 1.5.2 → 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/destiny-library.js
CHANGED
|
@@ -10,42 +10,42 @@ const GC = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idX
|
|
|
10
10
|
setup(g, { emit: A }) {
|
|
11
11
|
const B = A, I = x(null), C = x(!1), Q = x(!0), M = x();
|
|
12
12
|
function w() {
|
|
13
|
-
var
|
|
14
|
-
(
|
|
13
|
+
var o, D;
|
|
14
|
+
(D = I.value) == null || D.style.setProperty("--max-height", ((o = I.value) == null ? void 0 : o.scrollHeight) + "px");
|
|
15
15
|
}
|
|
16
16
|
XA(async () => {
|
|
17
|
-
await JB(), M.value = new MutationObserver((
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
await JB(), M.value = new MutationObserver((o) => {
|
|
18
|
+
o.forEach((D) => {
|
|
19
|
+
D.type === "childList" && w();
|
|
20
20
|
});
|
|
21
21
|
}), M.value.observe(I.value, { childList: !0 }), w(), C.value = !0, setTimeout(() => {
|
|
22
22
|
Q.value = !1;
|
|
23
23
|
}, 0);
|
|
24
24
|
});
|
|
25
|
-
function
|
|
25
|
+
function i() {
|
|
26
26
|
B("toggle");
|
|
27
27
|
}
|
|
28
28
|
return lB(() => {
|
|
29
|
-
var
|
|
30
|
-
(
|
|
31
|
-
}), (
|
|
29
|
+
var o;
|
|
30
|
+
(o = M.value) == null || o.disconnect();
|
|
31
|
+
}), (o, D) => (O(), X("div", hC, [
|
|
32
32
|
U("span", {
|
|
33
|
-
class: p(["border-b-2 border-black/25 mt-2 mb-1 flex justify-between items-center opacity-90", { "cursor-pointer hover:opacity-100 hover:border-black/50": !
|
|
34
|
-
onClick:
|
|
33
|
+
class: p(["border-b-2 border-black/25 mt-2 mb-1 flex justify-between items-center opacity-90", { "cursor-pointer hover:opacity-100 hover:border-black/50": !o.noInteract }]),
|
|
34
|
+
onClick: i
|
|
35
35
|
}, [
|
|
36
|
-
U("span", eC, oA(
|
|
36
|
+
U("span", eC, oA(o.name), 1),
|
|
37
37
|
U("img", {
|
|
38
38
|
src: GC,
|
|
39
|
-
class: p(["h-4 w-4 transition-transform duration-350 opacity-75", { "-rotate-180":
|
|
39
|
+
class: p(["h-4 w-4 transition-transform duration-350 opacity-75", { "-rotate-180": o.open }])
|
|
40
40
|
}, null, 2)
|
|
41
41
|
], 2),
|
|
42
42
|
U("div", {
|
|
43
43
|
class: "flex flex-col gap-1",
|
|
44
44
|
ref_key: "collapsible",
|
|
45
45
|
ref: I,
|
|
46
|
-
style: TB([{ "transition-property": "max-height", "transition-timing-function": "cubic-bezier(0.4, 0, 0.2, 1)" }, { "transition-duration": C.value && !Q.value ? "300ms" : "0", "max-height": !C.value ||
|
|
46
|
+
style: TB([{ "transition-property": "max-height", "transition-timing-function": "cubic-bezier(0.4, 0, 0.2, 1)" }, { "transition-duration": C.value && !Q.value ? "300ms" : "0", "max-height": !C.value || o.open ? "var(--max-height)" : "0" }])
|
|
47
47
|
}, [
|
|
48
|
-
v(
|
|
48
|
+
v(o.$slots, "default")
|
|
49
49
|
], 4)
|
|
50
50
|
]));
|
|
51
51
|
}
|
|
@@ -196,11 +196,11 @@ function zC(g) {
|
|
|
196
196
|
};
|
|
197
197
|
return Object.assign(A.elements.popper.style, B.popper), A.styles = B, A.elements.arrow && Object.assign(A.elements.arrow.style, B.arrow), function() {
|
|
198
198
|
Object.keys(A.elements).forEach(function(I) {
|
|
199
|
-
var C = A.elements[I], Q = A.attributes[I] || {}, M = Object.keys(A.styles.hasOwnProperty(I) ? A.styles[I] : B[I]), w = M.reduce(function(
|
|
200
|
-
return
|
|
199
|
+
var C = A.elements[I], Q = A.attributes[I] || {}, M = Object.keys(A.styles.hasOwnProperty(I) ? A.styles[I] : B[I]), w = M.reduce(function(i, o) {
|
|
200
|
+
return i[o] = "", i;
|
|
201
201
|
}, {});
|
|
202
|
-
!$(C) || !UA(C) || (Object.assign(C.style, w), Object.keys(Q).forEach(function(
|
|
203
|
-
C.removeAttribute(
|
|
202
|
+
!$(C) || !UA(C) || (Object.assign(C.style, w), Object.keys(Q).forEach(function(i) {
|
|
203
|
+
C.removeAttribute(i);
|
|
204
204
|
}));
|
|
205
205
|
});
|
|
206
206
|
};
|
|
@@ -338,9 +338,9 @@ var fC = function(A, B) {
|
|
|
338
338
|
})) : A, rB(typeof A != "number" ? A : ZB(A, Mg));
|
|
339
339
|
};
|
|
340
340
|
function PC(g) {
|
|
341
|
-
var A, B = g.state, I = g.name, C = g.options, Q = B.elements.arrow, M = B.modifiersData.popperOffsets, w = FA(B.placement),
|
|
341
|
+
var A, B = g.state, I = g.name, C = g.options, Q = B.elements.arrow, M = B.modifiersData.popperOffsets, w = FA(B.placement), i = dg(w), o = [f, AA].indexOf(w) >= 0, D = o ? "height" : "width";
|
|
342
342
|
if (!(!Q || !M)) {
|
|
343
|
-
var k = fC(C.padding, B), j = Wg(Q), e =
|
|
343
|
+
var k = fC(C.padding, B), j = Wg(Q), e = i === "y" ? b : f, L = i === "y" ? _ : AA, h = B.rects.reference[D] + B.rects.reference[i] - M[i] - B.rects.popper[D], s = M[i] - B.rects.reference[i], c = wg(Q), t = c ? i === "y" ? c.clientHeight || 0 : c.clientWidth || 0 : 0, J = h / 2 - s / 2, E = k[e], S = t - j[D] - k[L], N = t / 2 - j[D] / 2 + J, F = gg(E, N, S), G = i;
|
|
344
344
|
B.modifiersData[I] = (A = {}, A[G] = F, A.centerOffset = F - N, A);
|
|
345
345
|
}
|
|
346
346
|
}
|
|
@@ -374,8 +374,8 @@ function AI(g) {
|
|
|
374
374
|
};
|
|
375
375
|
}
|
|
376
376
|
function wB(g) {
|
|
377
|
-
var A, B = g.popper, I = g.popperRect, C = g.placement, Q = g.variation, M = g.offsets, w = g.position,
|
|
378
|
-
if (
|
|
377
|
+
var A, B = g.popper, I = g.popperRect, C = g.placement, Q = g.variation, M = g.offsets, w = g.position, i = g.gpuAcceleration, o = g.adaptive, D = g.roundOffsets, k = g.isFixed, j = D === !0 ? AI(M) : typeof D == "function" ? D(M) : M, e = j.x, L = e === void 0 ? 0 : e, h = j.y, s = h === void 0 ? 0 : h, c = M.hasOwnProperty("x"), t = M.hasOwnProperty("y"), J = f, E = b, S = window;
|
|
378
|
+
if (o) {
|
|
379
379
|
var N = wg(B), F = "clientHeight", G = "clientWidth";
|
|
380
380
|
if (N === EA(B) && (N = sA(B), NA(N).position !== "static" && w === "absolute" && (F = "scrollHeight", G = "scrollWidth")), N = N, C === b || (C === f || C === AA) && Q === Ig) {
|
|
381
381
|
E = _;
|
|
@@ -383,7 +383,7 @@ function wB(g) {
|
|
|
383
383
|
// $FlowFixMe[prop-missing]
|
|
384
384
|
N[F]
|
|
385
385
|
);
|
|
386
|
-
s -= n - I.height, s *=
|
|
386
|
+
s -= n - I.height, s *= i ? 1 : -1;
|
|
387
387
|
}
|
|
388
388
|
if (C === f || (C === b || C === _) && Q === Ig) {
|
|
389
389
|
J = AA;
|
|
@@ -391,20 +391,20 @@ function wB(g) {
|
|
|
391
391
|
// $FlowFixMe[prop-missing]
|
|
392
392
|
N[G]
|
|
393
393
|
);
|
|
394
|
-
L -= V - I.width, L *=
|
|
394
|
+
L -= V - I.width, L *= i ? 1 : -1;
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
397
|
var m = Object.assign({
|
|
398
398
|
position: w
|
|
399
|
-
},
|
|
400
|
-
if (
|
|
399
|
+
}, o && _C);
|
|
400
|
+
if (i) {
|
|
401
401
|
var y;
|
|
402
402
|
return Object.assign({}, m, (y = {}, y[E] = t ? "0" : "", y[J] = c ? "0" : "", y.transform = (S.devicePixelRatio || 1) <= 1 ? "translate(" + L + "px, " + s + "px)" : "translate3d(" + L + "px, " + s + "px, 0)", y));
|
|
403
403
|
}
|
|
404
404
|
return Object.assign({}, m, (A = {}, A[E] = t ? s + "px" : "", A[J] = c ? L + "px" : "", A.transform = "", A));
|
|
405
405
|
}
|
|
406
406
|
function gI(g) {
|
|
407
|
-
var A = g.state, B = g.options, I = B.gpuAcceleration, C = I === void 0 ? !0 : I, Q = B.adaptive, M = Q === void 0 ? !0 : Q, w = B.roundOffsets,
|
|
407
|
+
var A = g.state, B = g.options, I = B.gpuAcceleration, C = I === void 0 ? !0 : I, Q = B.adaptive, M = Q === void 0 ? !0 : Q, w = B.roundOffsets, i = w === void 0 ? !0 : w, o = {
|
|
408
408
|
placement: FA(A.placement),
|
|
409
409
|
variation: zA(A.placement),
|
|
410
410
|
popper: A.elements.popper,
|
|
@@ -412,16 +412,16 @@ function gI(g) {
|
|
|
412
412
|
gpuAcceleration: C,
|
|
413
413
|
isFixed: A.options.strategy === "fixed"
|
|
414
414
|
};
|
|
415
|
-
A.modifiersData.popperOffsets != null && (A.styles.popper = Object.assign({}, A.styles.popper, wB(Object.assign({},
|
|
415
|
+
A.modifiersData.popperOffsets != null && (A.styles.popper = Object.assign({}, A.styles.popper, wB(Object.assign({}, o, {
|
|
416
416
|
offsets: A.modifiersData.popperOffsets,
|
|
417
417
|
position: A.options.strategy,
|
|
418
418
|
adaptive: M,
|
|
419
|
-
roundOffsets:
|
|
420
|
-
})))), A.modifiersData.arrow != null && (A.styles.arrow = Object.assign({}, A.styles.arrow, wB(Object.assign({},
|
|
419
|
+
roundOffsets: i
|
|
420
|
+
})))), A.modifiersData.arrow != null && (A.styles.arrow = Object.assign({}, A.styles.arrow, wB(Object.assign({}, o, {
|
|
421
421
|
offsets: A.modifiersData.arrow,
|
|
422
422
|
position: "absolute",
|
|
423
423
|
adaptive: !1,
|
|
424
|
-
roundOffsets:
|
|
424
|
+
roundOffsets: i
|
|
425
425
|
})))), A.attributes.popper = Object.assign({}, A.attributes.popper, {
|
|
426
426
|
"data-popper-placement": A.placement
|
|
427
427
|
});
|
|
@@ -436,13 +436,13 @@ var BI = {
|
|
|
436
436
|
passive: !0
|
|
437
437
|
};
|
|
438
438
|
function CI(g) {
|
|
439
|
-
var A = g.state, B = g.instance, I = g.options, C = I.scroll, Q = C === void 0 ? !0 : C, M = I.resize, w = M === void 0 ? !0 : M,
|
|
440
|
-
return Q &&
|
|
441
|
-
|
|
442
|
-
}), w &&
|
|
443
|
-
Q &&
|
|
444
|
-
|
|
445
|
-
}), w &&
|
|
439
|
+
var A = g.state, B = g.instance, I = g.options, C = I.scroll, Q = C === void 0 ? !0 : C, M = I.resize, w = M === void 0 ? !0 : M, i = EA(A.elements.popper), o = [].concat(A.scrollParents.reference, A.scrollParents.popper);
|
|
440
|
+
return Q && o.forEach(function(D) {
|
|
441
|
+
D.addEventListener("scroll", B.update, eg);
|
|
442
|
+
}), w && i.addEventListener("resize", B.update, eg), function() {
|
|
443
|
+
Q && o.forEach(function(D) {
|
|
444
|
+
D.removeEventListener("scroll", B.update, eg);
|
|
445
|
+
}), w && i.removeEventListener("resize", B.update, eg);
|
|
446
446
|
};
|
|
447
447
|
}
|
|
448
448
|
var II = {
|
|
@@ -493,12 +493,12 @@ function MI(g) {
|
|
|
493
493
|
};
|
|
494
494
|
}
|
|
495
495
|
function wI(g) {
|
|
496
|
-
var A, B = sA(g), I = zg(g), C = (A = g.ownerDocument) == null ? void 0 : A.body, Q = nA(B.scrollWidth, B.clientWidth, C ? C.scrollWidth : 0, C ? C.clientWidth : 0), M = nA(B.scrollHeight, B.clientHeight, C ? C.scrollHeight : 0, C ? C.clientHeight : 0), w = -I.scrollLeft + qg(g),
|
|
496
|
+
var A, B = sA(g), I = zg(g), C = (A = g.ownerDocument) == null ? void 0 : A.body, Q = nA(B.scrollWidth, B.clientWidth, C ? C.scrollWidth : 0, C ? C.clientWidth : 0), M = nA(B.scrollHeight, B.clientHeight, C ? C.scrollHeight : 0, C ? C.clientHeight : 0), w = -I.scrollLeft + qg(g), i = -I.scrollTop;
|
|
497
497
|
return NA(C || B).direction === "rtl" && (w += nA(B.clientWidth, C ? C.clientWidth : 0) - Q), {
|
|
498
498
|
width: Q,
|
|
499
499
|
height: M,
|
|
500
500
|
x: w,
|
|
501
|
-
y:
|
|
501
|
+
y: i
|
|
502
502
|
};
|
|
503
503
|
}
|
|
504
504
|
function Xg(g) {
|
|
@@ -539,73 +539,73 @@ function iI(g) {
|
|
|
539
539
|
}) : [];
|
|
540
540
|
}
|
|
541
541
|
function oI(g, A, B) {
|
|
542
|
-
var I = A === "clippingParents" ? iI(g) : [].concat(A), C = [].concat(I, [B]), Q = C[0], M = C.reduce(function(w,
|
|
543
|
-
var
|
|
544
|
-
return w.top = nA(
|
|
542
|
+
var I = A === "clippingParents" ? iI(g) : [].concat(A), C = [].concat(I, [B]), Q = C[0], M = C.reduce(function(w, i) {
|
|
543
|
+
var o = iB(g, i);
|
|
544
|
+
return w.top = nA(o.top, w.top), w.right = ag(o.right, w.right), w.bottom = ag(o.bottom, w.bottom), w.left = nA(o.left, w.left), w;
|
|
545
545
|
}, iB(g, Q));
|
|
546
546
|
return M.width = M.right - M.left, M.height = M.bottom - M.top, M.x = M.left, M.y = M.top, M;
|
|
547
547
|
}
|
|
548
548
|
function dB(g) {
|
|
549
|
-
var A = g.reference, B = g.element, I = g.placement, C = I ? FA(I) : null, Q = I ? zA(I) : null, M = A.x + A.width / 2 - B.width / 2, w = A.y + A.height / 2 - B.height / 2,
|
|
549
|
+
var A = g.reference, B = g.element, I = g.placement, C = I ? FA(I) : null, Q = I ? zA(I) : null, M = A.x + A.width / 2 - B.width / 2, w = A.y + A.height / 2 - B.height / 2, i;
|
|
550
550
|
switch (C) {
|
|
551
551
|
case b:
|
|
552
|
-
|
|
552
|
+
i = {
|
|
553
553
|
x: M,
|
|
554
554
|
y: A.y - B.height
|
|
555
555
|
};
|
|
556
556
|
break;
|
|
557
557
|
case _:
|
|
558
|
-
|
|
558
|
+
i = {
|
|
559
559
|
x: M,
|
|
560
560
|
y: A.y + A.height
|
|
561
561
|
};
|
|
562
562
|
break;
|
|
563
563
|
case AA:
|
|
564
|
-
|
|
564
|
+
i = {
|
|
565
565
|
x: A.x + A.width,
|
|
566
566
|
y: w
|
|
567
567
|
};
|
|
568
568
|
break;
|
|
569
569
|
case f:
|
|
570
|
-
|
|
570
|
+
i = {
|
|
571
571
|
x: A.x - B.width,
|
|
572
572
|
y: w
|
|
573
573
|
};
|
|
574
574
|
break;
|
|
575
575
|
default:
|
|
576
|
-
|
|
576
|
+
i = {
|
|
577
577
|
x: A.x,
|
|
578
578
|
y: A.y
|
|
579
579
|
};
|
|
580
580
|
}
|
|
581
|
-
var
|
|
582
|
-
if (
|
|
583
|
-
var
|
|
581
|
+
var o = C ? dg(C) : null;
|
|
582
|
+
if (o != null) {
|
|
583
|
+
var D = o === "y" ? "height" : "width";
|
|
584
584
|
switch (Q) {
|
|
585
585
|
case rA:
|
|
586
|
-
|
|
586
|
+
i[o] = i[o] - (A[D] / 2 - B[D] / 2);
|
|
587
587
|
break;
|
|
588
588
|
case Ig:
|
|
589
|
-
|
|
589
|
+
i[o] = i[o] + (A[D] / 2 - B[D] / 2);
|
|
590
590
|
break;
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
|
-
return
|
|
593
|
+
return i;
|
|
594
594
|
}
|
|
595
595
|
function Qg(g, A) {
|
|
596
596
|
A === void 0 && (A = {});
|
|
597
|
-
var B = A, I = B.placement, C = I === void 0 ? g.placement : I, Q = B.boundary, M = Q === void 0 ? nC : Q, w = B.rootBoundary,
|
|
597
|
+
var B = A, I = B.placement, C = I === void 0 ? g.placement : I, Q = B.boundary, M = Q === void 0 ? nC : Q, w = B.rootBoundary, i = w === void 0 ? xB : w, o = B.elementContext, D = o === void 0 ? _A : o, k = B.altBoundary, j = k === void 0 ? !1 : k, e = B.padding, L = e === void 0 ? 0 : e, h = rB(typeof L != "number" ? L : ZB(L, Mg)), s = D === _A ? uC : _A, c = g.rects.popper, t = g.elements[j ? s : D], J = oI(ZA(t) ? t : t.contextElement || sA(g.elements.popper), M, i), E = dA(g.elements.reference), S = dB({
|
|
598
598
|
reference: E,
|
|
599
599
|
element: c,
|
|
600
600
|
strategy: "absolute",
|
|
601
601
|
placement: C
|
|
602
|
-
}), N = Og(Object.assign({}, c, S)), F =
|
|
602
|
+
}), N = Og(Object.assign({}, c, S)), F = D === _A ? N : E, G = {
|
|
603
603
|
top: J.top - F.top + h.top,
|
|
604
604
|
bottom: F.bottom - J.bottom + h.bottom,
|
|
605
605
|
left: J.left - F.left + h.left,
|
|
606
606
|
right: F.right - J.right + h.right
|
|
607
607
|
}, n = g.modifiersData.offset;
|
|
608
|
-
if (
|
|
608
|
+
if (D === _A && n) {
|
|
609
609
|
var V = n[C];
|
|
610
610
|
Object.keys(G).forEach(function(m) {
|
|
611
611
|
var y = [AA, _].indexOf(m) >= 0 ? 1 : -1, H = [b, _].indexOf(m) >= 0 ? "y" : "x";
|
|
@@ -616,10 +616,10 @@ function Qg(g, A) {
|
|
|
616
616
|
}
|
|
617
617
|
function YI(g, A) {
|
|
618
618
|
A === void 0 && (A = {});
|
|
619
|
-
var B = A, I = B.placement, C = B.boundary, Q = B.rootBoundary, M = B.padding, w = B.flipVariations,
|
|
620
|
-
return zA(L) ===
|
|
619
|
+
var B = A, I = B.placement, C = B.boundary, Q = B.rootBoundary, M = B.padding, w = B.flipVariations, i = B.allowedAutoPlacements, o = i === void 0 ? OB : i, D = zA(I), k = D ? w ? EB : EB.filter(function(L) {
|
|
620
|
+
return zA(L) === D;
|
|
621
621
|
}) : Mg, j = k.filter(function(L) {
|
|
622
|
-
return
|
|
622
|
+
return o.indexOf(L) >= 0;
|
|
623
623
|
});
|
|
624
624
|
j.length === 0 && (j = k);
|
|
625
625
|
var e = j.reduce(function(L, h) {
|
|
@@ -643,22 +643,22 @@ function FI(g) {
|
|
|
643
643
|
function UI(g) {
|
|
644
644
|
var A = g.state, B = g.options, I = g.name;
|
|
645
645
|
if (!A.modifiersData[I]._skip) {
|
|
646
|
-
for (var C = B.mainAxis, Q = C === void 0 ? !0 : C, M = B.altAxis, w = M === void 0 ? !0 : M,
|
|
646
|
+
for (var C = B.mainAxis, Q = C === void 0 ? !0 : C, M = B.altAxis, w = M === void 0 ? !0 : M, i = B.fallbackPlacements, o = B.padding, D = B.boundary, k = B.rootBoundary, j = B.altBoundary, e = B.flipVariations, L = e === void 0 ? !0 : e, h = B.allowedAutoPlacements, s = A.options.placement, c = FA(s), t = c === s, J = i || (t || !L ? [kg(s)] : FI(s)), E = [s].concat(J).reduce(function(cA, BA) {
|
|
647
647
|
return cA.concat(FA(BA) === Zg ? YI(A, {
|
|
648
648
|
placement: BA,
|
|
649
|
-
boundary:
|
|
649
|
+
boundary: D,
|
|
650
650
|
rootBoundary: k,
|
|
651
|
-
padding:
|
|
651
|
+
padding: o,
|
|
652
652
|
flipVariations: L,
|
|
653
653
|
allowedAutoPlacements: h
|
|
654
654
|
}) : BA);
|
|
655
655
|
}, []), S = A.rects.reference, N = A.rects.popper, F = /* @__PURE__ */ new Map(), G = !0, n = E[0], V = 0; V < E.length; V++) {
|
|
656
656
|
var m = E[V], y = FA(m), H = zA(m) === rA, q = [b, _].indexOf(y) >= 0, gA = q ? "width" : "height", Z = Qg(A, {
|
|
657
657
|
placement: m,
|
|
658
|
-
boundary:
|
|
658
|
+
boundary: D,
|
|
659
659
|
rootBoundary: k,
|
|
660
660
|
altBoundary: j,
|
|
661
|
-
padding:
|
|
661
|
+
padding: o
|
|
662
662
|
}), W = q ? H ? AA : f : H ? _ : b;
|
|
663
663
|
S[gA] > N[gA] && (W = kg(W));
|
|
664
664
|
var r = kg(W), MA = [];
|
|
@@ -720,14 +720,14 @@ function cI(g) {
|
|
|
720
720
|
elementContext: "reference"
|
|
721
721
|
}), w = Qg(A, {
|
|
722
722
|
altBoundary: !0
|
|
723
|
-
}),
|
|
723
|
+
}), i = oB(M, I), o = oB(w, C, Q), D = YB(i), k = YB(o);
|
|
724
724
|
A.modifiersData[B] = {
|
|
725
|
-
referenceClippingOffsets:
|
|
726
|
-
popperEscapeOffsets:
|
|
727
|
-
isReferenceHidden:
|
|
725
|
+
referenceClippingOffsets: i,
|
|
726
|
+
popperEscapeOffsets: o,
|
|
727
|
+
isReferenceHidden: D,
|
|
728
728
|
hasPopperEscaped: k
|
|
729
729
|
}, A.attributes.popper = Object.assign({}, A.attributes.popper, {
|
|
730
|
-
"data-popper-reference-hidden":
|
|
730
|
+
"data-popper-reference-hidden": D,
|
|
731
731
|
"data-popper-escaped": k
|
|
732
732
|
});
|
|
733
733
|
}
|
|
@@ -751,10 +751,10 @@ function GI(g, A, B) {
|
|
|
751
751
|
};
|
|
752
752
|
}
|
|
753
753
|
function hI(g) {
|
|
754
|
-
var A = g.state, B = g.options, I = g.name, C = B.offset, Q = C === void 0 ? [0, 0] : C, M = OB.reduce(function(
|
|
755
|
-
return
|
|
756
|
-
}, {}), w = M[A.placement],
|
|
757
|
-
A.modifiersData.popperOffsets != null && (A.modifiersData.popperOffsets.x +=
|
|
754
|
+
var A = g.state, B = g.options, I = g.name, C = B.offset, Q = C === void 0 ? [0, 0] : C, M = OB.reduce(function(D, k) {
|
|
755
|
+
return D[k] = GI(k, A.rects, Q), D;
|
|
756
|
+
}, {}), w = M[A.placement], i = w.x, o = w.y;
|
|
757
|
+
A.modifiersData.popperOffsets != null && (A.modifiersData.popperOffsets.x += i, A.modifiersData.popperOffsets.y += o), A.modifiersData[I] = M;
|
|
758
758
|
}
|
|
759
759
|
var eI = {
|
|
760
760
|
name: "offset",
|
|
@@ -783,11 +783,11 @@ function kI(g) {
|
|
|
783
783
|
return g === "x" ? "y" : "x";
|
|
784
784
|
}
|
|
785
785
|
function aI(g) {
|
|
786
|
-
var A = g.state, B = g.options, I = g.name, C = B.mainAxis, Q = C === void 0 ? !0 : C, M = B.altAxis, w = M === void 0 ? !1 : M,
|
|
787
|
-
boundary:
|
|
788
|
-
rootBoundary:
|
|
786
|
+
var A = g.state, B = g.options, I = g.name, C = B.mainAxis, Q = C === void 0 ? !0 : C, M = B.altAxis, w = M === void 0 ? !1 : M, i = B.boundary, o = B.rootBoundary, D = B.altBoundary, k = B.padding, j = B.tether, e = j === void 0 ? !0 : j, L = B.tetherOffset, h = L === void 0 ? 0 : L, s = Qg(A, {
|
|
787
|
+
boundary: i,
|
|
788
|
+
rootBoundary: o,
|
|
789
789
|
padding: k,
|
|
790
|
-
altBoundary:
|
|
790
|
+
altBoundary: D
|
|
791
791
|
}), c = FA(A.placement), t = zA(A.placement), J = !t, E = dg(c), S = kI(E), N = A.modifiersData.popperOffsets, F = A.rects.reference, G = A.rects.popper, n = typeof h == "function" ? h(Object.assign({}, A.rects, {
|
|
792
792
|
placement: A.placement
|
|
793
793
|
})) : h, V = typeof n == "number" ? {
|
|
@@ -840,14 +840,14 @@ function JI(g, A, B) {
|
|
|
840
840
|
var I = $(A), C = $(A) && KI(A), Q = sA(A), M = dA(g, C), w = {
|
|
841
841
|
scrollLeft: 0,
|
|
842
842
|
scrollTop: 0
|
|
843
|
-
},
|
|
843
|
+
}, i = {
|
|
844
844
|
x: 0,
|
|
845
845
|
y: 0
|
|
846
846
|
};
|
|
847
847
|
return (I || !I && !B) && ((UA(A) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
848
|
-
Xg(Q)) && (w = jI(A)), $(A) ? (
|
|
849
|
-
x: M.left + w.scrollLeft -
|
|
850
|
-
y: M.top + w.scrollTop -
|
|
848
|
+
Xg(Q)) && (w = jI(A)), $(A) ? (i = dA(A, !0), i.x += A.clientLeft, i.y += A.clientTop) : Q && (i.x = qg(Q))), {
|
|
849
|
+
x: M.left + w.scrollLeft - i.x,
|
|
850
|
+
y: M.top + w.scrollTop - i.y,
|
|
851
851
|
width: M.width,
|
|
852
852
|
height: M.height
|
|
853
853
|
};
|
|
@@ -862,8 +862,8 @@ function lI(g) {
|
|
|
862
862
|
var M = [].concat(Q.requires || [], Q.requiresIfExists || []);
|
|
863
863
|
M.forEach(function(w) {
|
|
864
864
|
if (!B.has(w)) {
|
|
865
|
-
var
|
|
866
|
-
|
|
865
|
+
var i = A.get(w);
|
|
866
|
+
i && C(i);
|
|
867
867
|
}
|
|
868
868
|
}), I.push(Q);
|
|
869
869
|
}
|
|
@@ -916,29 +916,29 @@ function UB() {
|
|
|
916
916
|
function yI(g) {
|
|
917
917
|
g === void 0 && (g = {});
|
|
918
918
|
var A = g, B = A.defaultModifiers, I = B === void 0 ? [] : B, C = A.defaultOptions, Q = C === void 0 ? FB : C;
|
|
919
|
-
return function(w,
|
|
920
|
-
|
|
921
|
-
var
|
|
919
|
+
return function(w, i, o) {
|
|
920
|
+
o === void 0 && (o = Q);
|
|
921
|
+
var D = {
|
|
922
922
|
placement: "bottom",
|
|
923
923
|
orderedModifiers: [],
|
|
924
924
|
options: Object.assign({}, FB, Q),
|
|
925
925
|
modifiersData: {},
|
|
926
926
|
elements: {
|
|
927
927
|
reference: w,
|
|
928
|
-
popper:
|
|
928
|
+
popper: i
|
|
929
929
|
},
|
|
930
930
|
attributes: {},
|
|
931
931
|
styles: {}
|
|
932
932
|
}, k = [], j = !1, e = {
|
|
933
|
-
state:
|
|
933
|
+
state: D,
|
|
934
934
|
setOptions: function(c) {
|
|
935
|
-
var t = typeof c == "function" ? c(
|
|
936
|
-
h(),
|
|
935
|
+
var t = typeof c == "function" ? c(D.options) : c;
|
|
936
|
+
h(), D.options = Object.assign({}, Q, D.options, t), D.scrollParents = {
|
|
937
937
|
reference: ZA(w) ? Bg(w) : w.contextElement ? Bg(w.contextElement) : [],
|
|
938
|
-
popper: Bg(
|
|
938
|
+
popper: Bg(i)
|
|
939
939
|
};
|
|
940
|
-
var J = TI(uI([].concat(I,
|
|
941
|
-
return
|
|
940
|
+
var J = TI(uI([].concat(I, D.options.modifiers)));
|
|
941
|
+
return D.orderedModifiers = J.filter(function(E) {
|
|
942
942
|
return E.enabled;
|
|
943
943
|
}), L(), e.update();
|
|
944
944
|
},
|
|
@@ -949,26 +949,26 @@ function yI(g) {
|
|
|
949
949
|
// prefer the async Popper#update method
|
|
950
950
|
forceUpdate: function() {
|
|
951
951
|
if (!j) {
|
|
952
|
-
var c =
|
|
952
|
+
var c = D.elements, t = c.reference, J = c.popper;
|
|
953
953
|
if (UB(t, J)) {
|
|
954
|
-
|
|
955
|
-
reference: JI(t, wg(J),
|
|
954
|
+
D.rects = {
|
|
955
|
+
reference: JI(t, wg(J), D.options.strategy === "fixed"),
|
|
956
956
|
popper: Wg(J)
|
|
957
|
-
},
|
|
958
|
-
return
|
|
957
|
+
}, D.reset = !1, D.placement = D.options.placement, D.orderedModifiers.forEach(function(V) {
|
|
958
|
+
return D.modifiersData[V.name] = Object.assign({}, V.data);
|
|
959
959
|
});
|
|
960
|
-
for (var E = 0; E <
|
|
961
|
-
if (
|
|
962
|
-
|
|
960
|
+
for (var E = 0; E < D.orderedModifiers.length; E++) {
|
|
961
|
+
if (D.reset === !0) {
|
|
962
|
+
D.reset = !1, E = -1;
|
|
963
963
|
continue;
|
|
964
964
|
}
|
|
965
|
-
var S =
|
|
966
|
-
typeof N == "function" && (
|
|
967
|
-
state:
|
|
965
|
+
var S = D.orderedModifiers[E], N = S.fn, F = S.options, G = F === void 0 ? {} : F, n = S.name;
|
|
966
|
+
typeof N == "function" && (D = N({
|
|
967
|
+
state: D,
|
|
968
968
|
options: G,
|
|
969
969
|
name: n,
|
|
970
970
|
instance: e
|
|
971
|
-
}) ||
|
|
971
|
+
}) || D);
|
|
972
972
|
}
|
|
973
973
|
}
|
|
974
974
|
}
|
|
@@ -977,24 +977,24 @@ function yI(g) {
|
|
|
977
977
|
// not necessary (debounced to run at most once-per-tick)
|
|
978
978
|
update: nI(function() {
|
|
979
979
|
return new Promise(function(s) {
|
|
980
|
-
e.forceUpdate(), s(
|
|
980
|
+
e.forceUpdate(), s(D);
|
|
981
981
|
});
|
|
982
982
|
}),
|
|
983
983
|
destroy: function() {
|
|
984
984
|
h(), j = !0;
|
|
985
985
|
}
|
|
986
986
|
};
|
|
987
|
-
if (!UB(w,
|
|
987
|
+
if (!UB(w, i))
|
|
988
988
|
return e;
|
|
989
|
-
e.setOptions(
|
|
990
|
-
!j &&
|
|
989
|
+
e.setOptions(o).then(function(s) {
|
|
990
|
+
!j && o.onFirstUpdate && o.onFirstUpdate(s);
|
|
991
991
|
});
|
|
992
992
|
function L() {
|
|
993
|
-
|
|
993
|
+
D.orderedModifiers.forEach(function(s) {
|
|
994
994
|
var c = s.name, t = s.options, J = t === void 0 ? {} : t, E = s.effect;
|
|
995
995
|
if (typeof E == "function") {
|
|
996
996
|
var S = E({
|
|
997
|
-
state:
|
|
997
|
+
state: D,
|
|
998
998
|
name: c,
|
|
999
999
|
instance: e,
|
|
1000
1000
|
options: J
|
|
@@ -1112,10 +1112,10 @@ function $B(g) {
|
|
|
1112
1112
|
function dI(g, A) {
|
|
1113
1113
|
var B = A.clientX, I = A.clientY;
|
|
1114
1114
|
return g.every(function(C) {
|
|
1115
|
-
var Q = C.popperRect, M = C.popperState, w = C.props,
|
|
1116
|
-
if (!
|
|
1115
|
+
var Q = C.popperRect, M = C.popperState, w = C.props, i = w.interactiveBorder, o = vB(M.placement), D = M.modifiersData.offset;
|
|
1116
|
+
if (!D)
|
|
1117
1117
|
return !0;
|
|
1118
|
-
var k =
|
|
1118
|
+
var k = o === "bottom" ? D.top.y : 0, j = o === "top" ? D.bottom.y : 0, e = o === "right" ? D.left.x : 0, L = o === "left" ? D.right.x : 0, h = Q.top - I + k > i, s = I - Q.bottom - j > i, c = Q.left - B + e > i, t = B - Q.right - L > i;
|
|
1119
1119
|
return h || s || c || t;
|
|
1120
1120
|
});
|
|
1121
1121
|
}
|
|
@@ -1299,8 +1299,8 @@ function gC(g) {
|
|
|
1299
1299
|
var I = uA();
|
|
1300
1300
|
I.className = zB, I.setAttribute("data-state", "hidden"), RB(I, g.props), A.appendChild(B), B.appendChild(I), C(g.props, g.props);
|
|
1301
1301
|
function C(Q, M) {
|
|
1302
|
-
var w = sg(A),
|
|
1303
|
-
M.theme ?
|
|
1302
|
+
var w = sg(A), i = w.box, o = w.content, D = w.arrow;
|
|
1303
|
+
M.theme ? i.setAttribute("data-theme", M.theme) : i.removeAttribute("data-theme"), typeof M.animation == "string" ? i.setAttribute("data-animation", M.animation) : i.removeAttribute("data-animation"), M.inertia ? i.setAttribute("data-inertia", "") : i.removeAttribute("data-inertia"), i.style.maxWidth = typeof M.maxWidth == "number" ? M.maxWidth + "px" : M.maxWidth, M.role ? i.setAttribute("role", M.role) : i.removeAttribute("role"), (Q.content !== M.content || Q.allowHTML !== M.allowHTML) && RB(o, g.props), M.arrow ? D ? Q.arrow !== M.arrow && (i.removeChild(D), i.appendChild(SB(M.arrow))) : i.appendChild(SB(M.arrow)) : D && i.removeChild(D);
|
|
1304
1304
|
}
|
|
1305
1305
|
return {
|
|
1306
1306
|
popper: A,
|
|
@@ -1310,7 +1310,7 @@ function gC(g) {
|
|
|
1310
1310
|
gC.$$tippy = !0;
|
|
1311
1311
|
var BQ = 1, Sg = [], ug = [];
|
|
1312
1312
|
function CQ(g, A) {
|
|
1313
|
-
var B = eB(g, Object.assign({}, QA, AC(LB(A)))), I, C, Q, M = !1, w = !1,
|
|
1313
|
+
var B = eB(g, Object.assign({}, QA, AC(LB(A)))), I, C, Q, M = !1, w = !1, i = !1, o = !1, D, k, j, e = [], L = NB(ig, B.interactiveDebounce), h, s = BQ++, c = null, t = HI(B.plugins), J = {
|
|
1314
1314
|
// Is the instance currently enabled?
|
|
1315
1315
|
isEnabled: !0,
|
|
1316
1316
|
// Is the tippy currently showing and not transitioning out?
|
|
@@ -1346,8 +1346,8 @@ function CQ(g, A) {
|
|
|
1346
1346
|
return E;
|
|
1347
1347
|
var S = B.render(E), N = S.popper, F = S.onUpdate;
|
|
1348
1348
|
N.setAttribute("data-tippy-root", ""), N.id = "tippy-" + E.id, E.popper = N, g._tippy = E, N._tippy = E;
|
|
1349
|
-
var G = t.map(function(
|
|
1350
|
-
return
|
|
1349
|
+
var G = t.map(function(Y) {
|
|
1350
|
+
return Y.fn(E);
|
|
1351
1351
|
}), n = g.hasAttribute("aria-expanded");
|
|
1352
1352
|
return OA(), wA(), W(), r("onCreate", [E]), B.showOnCreate && vA(), N.addEventListener("mouseenter", function() {
|
|
1353
1353
|
E.props.interactive && E.state.isVisible && E.clearDelayTimeouts();
|
|
@@ -1355,44 +1355,44 @@ function CQ(g, A) {
|
|
|
1355
1355
|
E.props.interactive && E.props.trigger.indexOf("mouseenter") >= 0 && q().addEventListener("mousemove", L);
|
|
1356
1356
|
}), E;
|
|
1357
1357
|
function V() {
|
|
1358
|
-
var
|
|
1359
|
-
return Array.isArray(
|
|
1358
|
+
var Y = E.props.touch;
|
|
1359
|
+
return Array.isArray(Y) ? Y : [Y, 0];
|
|
1360
1360
|
}
|
|
1361
1361
|
function m() {
|
|
1362
1362
|
return V()[0] === "hold";
|
|
1363
1363
|
}
|
|
1364
1364
|
function y() {
|
|
1365
|
-
var
|
|
1366
|
-
return !!((
|
|
1365
|
+
var Y;
|
|
1366
|
+
return !!((Y = E.props.render) != null && Y.$$tippy);
|
|
1367
1367
|
}
|
|
1368
1368
|
function H() {
|
|
1369
1369
|
return h || g;
|
|
1370
1370
|
}
|
|
1371
1371
|
function q() {
|
|
1372
|
-
var
|
|
1373
|
-
return
|
|
1372
|
+
var Y = H().parentNode;
|
|
1373
|
+
return Y ? $B(Y) : document;
|
|
1374
1374
|
}
|
|
1375
1375
|
function gA() {
|
|
1376
1376
|
return sg(N);
|
|
1377
1377
|
}
|
|
1378
|
-
function Z(
|
|
1379
|
-
return E.state.isMounted && !E.state.isVisible || YA.isTouch ||
|
|
1378
|
+
function Z(Y) {
|
|
1379
|
+
return E.state.isMounted && !E.state.isVisible || YA.isTouch || D && D.type === "focus" ? 0 : lg(E.props.delay, Y ? 0 : 1, QA.delay);
|
|
1380
1380
|
}
|
|
1381
|
-
function W(
|
|
1382
|
-
|
|
1381
|
+
function W(Y) {
|
|
1382
|
+
Y === void 0 && (Y = !1), N.style.pointerEvents = E.props.interactive && !Y ? "" : "none", N.style.zIndex = "" + E.props.zIndex;
|
|
1383
1383
|
}
|
|
1384
|
-
function r(
|
|
1384
|
+
function r(Y, R, K) {
|
|
1385
1385
|
if (K === void 0 && (K = !0), G.forEach(function(l) {
|
|
1386
|
-
l[
|
|
1386
|
+
l[Y] && l[Y].apply(l, R);
|
|
1387
1387
|
}), K) {
|
|
1388
1388
|
var u;
|
|
1389
|
-
(u = E.props)[
|
|
1389
|
+
(u = E.props)[Y].apply(u, R);
|
|
1390
1390
|
}
|
|
1391
1391
|
}
|
|
1392
1392
|
function MA() {
|
|
1393
|
-
var
|
|
1394
|
-
if (
|
|
1395
|
-
var R = "aria-" +
|
|
1393
|
+
var Y = E.props.aria;
|
|
1394
|
+
if (Y.content) {
|
|
1395
|
+
var R = "aria-" + Y.content, K = N.id, u = TA(E.props.triggerTarget || g);
|
|
1396
1396
|
u.forEach(function(l) {
|
|
1397
1397
|
var d = l.getAttribute(R);
|
|
1398
1398
|
if (E.state.isVisible)
|
|
@@ -1406,20 +1406,20 @@ function CQ(g, A) {
|
|
|
1406
1406
|
}
|
|
1407
1407
|
function wA() {
|
|
1408
1408
|
if (!(n || !E.props.aria.expanded)) {
|
|
1409
|
-
var
|
|
1410
|
-
|
|
1409
|
+
var Y = TA(E.props.triggerTarget || g);
|
|
1410
|
+
Y.forEach(function(R) {
|
|
1411
1411
|
E.props.interactive ? R.setAttribute("aria-expanded", E.state.isVisible && R === H() ? "true" : "false") : R.removeAttribute("aria-expanded");
|
|
1412
1412
|
});
|
|
1413
1413
|
}
|
|
1414
1414
|
}
|
|
1415
1415
|
function tA() {
|
|
1416
|
-
q().removeEventListener("mousemove", L), Sg = Sg.filter(function(
|
|
1417
|
-
return
|
|
1416
|
+
q().removeEventListener("mousemove", L), Sg = Sg.filter(function(Y) {
|
|
1417
|
+
return Y !== L;
|
|
1418
1418
|
});
|
|
1419
1419
|
}
|
|
1420
|
-
function DA(
|
|
1421
|
-
if (!(YA.isTouch && (
|
|
1422
|
-
var R =
|
|
1420
|
+
function DA(Y) {
|
|
1421
|
+
if (!(YA.isTouch && (i || Y.type === "mousedown"))) {
|
|
1422
|
+
var R = Y.composedPath && Y.composedPath()[0] || Y.target;
|
|
1423
1423
|
if (!(E.props.interactive && GB(N, R))) {
|
|
1424
1424
|
if (TA(E.props.triggerTarget || g).some(function(K) {
|
|
1425
1425
|
return GB(K, R);
|
|
@@ -1427,7 +1427,7 @@ function CQ(g, A) {
|
|
|
1427
1427
|
if (YA.isTouch || E.state.isVisible && E.props.trigger.indexOf("click") >= 0)
|
|
1428
1428
|
return;
|
|
1429
1429
|
} else
|
|
1430
|
-
r("onClickOutside", [E,
|
|
1430
|
+
r("onClickOutside", [E, Y]);
|
|
1431
1431
|
E.props.hideOnClick === !0 && (E.clearDelayTimeouts(), E.hide(), w = !0, setTimeout(function() {
|
|
1432
1432
|
w = !1;
|
|
1433
1433
|
}), E.state.isMounted || LA());
|
|
@@ -1435,43 +1435,43 @@ function CQ(g, A) {
|
|
|
1435
1435
|
}
|
|
1436
1436
|
}
|
|
1437
1437
|
function jA() {
|
|
1438
|
-
|
|
1438
|
+
i = !0;
|
|
1439
1439
|
}
|
|
1440
1440
|
function cA() {
|
|
1441
|
-
|
|
1441
|
+
i = !1;
|
|
1442
1442
|
}
|
|
1443
1443
|
function BA() {
|
|
1444
|
-
var
|
|
1445
|
-
|
|
1444
|
+
var Y = q();
|
|
1445
|
+
Y.addEventListener("mousedown", DA, !0), Y.addEventListener("touchend", DA, lA), Y.addEventListener("touchstart", cA, lA), Y.addEventListener("touchmove", jA, lA);
|
|
1446
1446
|
}
|
|
1447
1447
|
function LA() {
|
|
1448
|
-
var
|
|
1449
|
-
|
|
1448
|
+
var Y = q();
|
|
1449
|
+
Y.removeEventListener("mousedown", DA, !0), Y.removeEventListener("touchend", DA, lA), Y.removeEventListener("touchstart", cA, lA), Y.removeEventListener("touchmove", jA, lA);
|
|
1450
1450
|
}
|
|
1451
|
-
function yA(
|
|
1452
|
-
xA(
|
|
1451
|
+
function yA(Y, R) {
|
|
1452
|
+
xA(Y, function() {
|
|
1453
1453
|
!E.state.isVisible && N.parentNode && N.parentNode.contains(N) && R();
|
|
1454
1454
|
});
|
|
1455
1455
|
}
|
|
1456
|
-
function GA(
|
|
1457
|
-
xA(
|
|
1456
|
+
function GA(Y, R) {
|
|
1457
|
+
xA(Y, R);
|
|
1458
1458
|
}
|
|
1459
|
-
function xA(
|
|
1459
|
+
function xA(Y, R) {
|
|
1460
1460
|
var K = gA().box;
|
|
1461
1461
|
function u(l) {
|
|
1462
1462
|
l.target === K && (ng(K, "remove", u), R());
|
|
1463
1463
|
}
|
|
1464
|
-
if (
|
|
1464
|
+
if (Y === 0)
|
|
1465
1465
|
return R();
|
|
1466
1466
|
ng(K, "remove", k), ng(K, "add", u), k = u;
|
|
1467
1467
|
}
|
|
1468
|
-
function SA(
|
|
1468
|
+
function SA(Y, R, K) {
|
|
1469
1469
|
K === void 0 && (K = !1);
|
|
1470
1470
|
var u = TA(E.props.triggerTarget || g);
|
|
1471
1471
|
u.forEach(function(l) {
|
|
1472
|
-
l.addEventListener(
|
|
1472
|
+
l.addEventListener(Y, R, K), e.push({
|
|
1473
1473
|
node: l,
|
|
1474
|
-
eventType:
|
|
1474
|
+
eventType: Y,
|
|
1475
1475
|
handler: R,
|
|
1476
1476
|
options: K
|
|
1477
1477
|
});
|
|
@@ -1482,9 +1482,9 @@ function CQ(g, A) {
|
|
|
1482
1482
|
passive: !0
|
|
1483
1483
|
}), SA("touchend", og, {
|
|
1484
1484
|
passive: !0
|
|
1485
|
-
})), pI(E.props.trigger).forEach(function(
|
|
1486
|
-
if (
|
|
1487
|
-
switch (SA(
|
|
1485
|
+
})), pI(E.props.trigger).forEach(function(Y) {
|
|
1486
|
+
if (Y !== "manual")
|
|
1487
|
+
switch (SA(Y, bA), Y) {
|
|
1488
1488
|
case "mouseenter":
|
|
1489
1489
|
SA("mouseleave", og);
|
|
1490
1490
|
break;
|
|
@@ -1498,23 +1498,23 @@ function CQ(g, A) {
|
|
|
1498
1498
|
});
|
|
1499
1499
|
}
|
|
1500
1500
|
function Dg() {
|
|
1501
|
-
e.forEach(function(
|
|
1502
|
-
var R =
|
|
1501
|
+
e.forEach(function(Y) {
|
|
1502
|
+
var R = Y.node, K = Y.eventType, u = Y.handler, l = Y.options;
|
|
1503
1503
|
R.removeEventListener(K, u, l);
|
|
1504
1504
|
}), e = [];
|
|
1505
1505
|
}
|
|
1506
|
-
function bA(
|
|
1506
|
+
function bA(Y) {
|
|
1507
1507
|
var R, K = !1;
|
|
1508
|
-
if (!(!E.state.isEnabled || PA(
|
|
1509
|
-
var u = ((R =
|
|
1510
|
-
|
|
1511
|
-
return l(
|
|
1512
|
-
}),
|
|
1508
|
+
if (!(!E.state.isEnabled || PA(Y) || w)) {
|
|
1509
|
+
var u = ((R = D) == null ? void 0 : R.type) === "focus";
|
|
1510
|
+
D = Y, h = Y.currentTarget, wA(), !E.state.isVisible && fg(Y) && Sg.forEach(function(l) {
|
|
1511
|
+
return l(Y);
|
|
1512
|
+
}), Y.type === "click" && (E.props.trigger.indexOf("mouseenter") < 0 || M) && E.props.hideOnClick !== !1 && E.state.isVisible ? K = !0 : vA(Y), Y.type === "click" && (M = !K), K && !u && KA(Y);
|
|
1513
1513
|
}
|
|
1514
1514
|
}
|
|
1515
|
-
function ig(
|
|
1516
|
-
var R =
|
|
1517
|
-
if (!(
|
|
1515
|
+
function ig(Y) {
|
|
1516
|
+
var R = Y.target, K = H().contains(R) || N.contains(R);
|
|
1517
|
+
if (!(Y.type === "mousemove" && K)) {
|
|
1518
1518
|
var u = RA().concat(N).map(function(l) {
|
|
1519
1519
|
var d, P = l._tippy, VA = (d = P.popperInstance) == null ? void 0 : d.state;
|
|
1520
1520
|
return VA ? {
|
|
@@ -1523,28 +1523,28 @@ function CQ(g, A) {
|
|
|
1523
1523
|
props: B
|
|
1524
1524
|
} : null;
|
|
1525
1525
|
}).filter(Boolean);
|
|
1526
|
-
dI(u,
|
|
1526
|
+
dI(u, Y) && (tA(), KA(Y));
|
|
1527
1527
|
}
|
|
1528
1528
|
}
|
|
1529
|
-
function og(
|
|
1530
|
-
var R = PA(
|
|
1529
|
+
function og(Y) {
|
|
1530
|
+
var R = PA(Y) || E.props.trigger.indexOf("click") >= 0 && M;
|
|
1531
1531
|
if (!R) {
|
|
1532
1532
|
if (E.props.interactive) {
|
|
1533
|
-
E.hideWithInteractivity(
|
|
1533
|
+
E.hideWithInteractivity(Y);
|
|
1534
1534
|
return;
|
|
1535
1535
|
}
|
|
1536
|
-
KA(
|
|
1536
|
+
KA(Y);
|
|
1537
1537
|
}
|
|
1538
1538
|
}
|
|
1539
|
-
function fA(
|
|
1540
|
-
E.props.trigger.indexOf("focusin") < 0 &&
|
|
1539
|
+
function fA(Y) {
|
|
1540
|
+
E.props.trigger.indexOf("focusin") < 0 && Y.target !== H() || E.props.interactive && Y.relatedTarget && N.contains(Y.relatedTarget) || KA(Y);
|
|
1541
1541
|
}
|
|
1542
|
-
function PA(
|
|
1543
|
-
return YA.isTouch ? m() !==
|
|
1542
|
+
function PA(Y) {
|
|
1543
|
+
return YA.isTouch ? m() !== Y.type.indexOf("touch") >= 0 : !1;
|
|
1544
1544
|
}
|
|
1545
1545
|
function Yg() {
|
|
1546
1546
|
Fg();
|
|
1547
|
-
var
|
|
1547
|
+
var Y = E.props, R = Y.popperOptions, K = Y.placement, u = Y.offset, l = Y.getReferenceClientRect, d = Y.moveTransition, P = y() ? sg(N).arrow : null, VA = l ? {
|
|
1548
1548
|
getBoundingClientRect: l,
|
|
1549
1549
|
contextElement: l.contextElement || H()
|
|
1550
1550
|
} : g, Pg = {
|
|
@@ -1603,25 +1603,25 @@ function CQ(g, A) {
|
|
|
1603
1603
|
E.popperInstance && (E.popperInstance.destroy(), E.popperInstance = null);
|
|
1604
1604
|
}
|
|
1605
1605
|
function hA() {
|
|
1606
|
-
var
|
|
1607
|
-
E.props.interactive &&
|
|
1606
|
+
var Y = E.props.appendTo, R, K = H();
|
|
1607
|
+
E.props.interactive && Y === fB || Y === "parent" ? R = K.parentNode : R = PB(Y, [K]), R.contains(N) || R.appendChild(N), E.state.isMounted = !0, Yg();
|
|
1608
1608
|
}
|
|
1609
1609
|
function RA() {
|
|
1610
1610
|
return qA(N.querySelectorAll("[data-tippy-root]"));
|
|
1611
1611
|
}
|
|
1612
|
-
function vA(
|
|
1613
|
-
E.clearDelayTimeouts(),
|
|
1612
|
+
function vA(Y) {
|
|
1613
|
+
E.clearDelayTimeouts(), Y && r("onTrigger", [E, Y]), BA();
|
|
1614
1614
|
var R = Z(!0), K = V(), u = K[0], l = K[1];
|
|
1615
1615
|
YA.isTouch && u === "hold" && l && (R = l), R ? I = setTimeout(function() {
|
|
1616
1616
|
E.show();
|
|
1617
1617
|
}, R) : E.show();
|
|
1618
1618
|
}
|
|
1619
|
-
function KA(
|
|
1620
|
-
if (E.clearDelayTimeouts(), r("onUntrigger", [E,
|
|
1619
|
+
function KA(Y) {
|
|
1620
|
+
if (E.clearDelayTimeouts(), r("onUntrigger", [E, Y]), !E.state.isVisible) {
|
|
1621
1621
|
LA();
|
|
1622
1622
|
return;
|
|
1623
1623
|
}
|
|
1624
|
-
if (!(E.props.trigger.indexOf("mouseenter") >= 0 && E.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(
|
|
1624
|
+
if (!(E.props.trigger.indexOf("mouseenter") >= 0 && E.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(Y.type) >= 0 && M)) {
|
|
1625
1625
|
var R = Z(!1);
|
|
1626
1626
|
R ? C = setTimeout(function() {
|
|
1627
1627
|
E.state.isVisible && E.hide();
|
|
@@ -1639,35 +1639,35 @@ function CQ(g, A) {
|
|
|
1639
1639
|
function Ng() {
|
|
1640
1640
|
clearTimeout(I), clearTimeout(C), cancelAnimationFrame(Q);
|
|
1641
1641
|
}
|
|
1642
|
-
function cg(
|
|
1642
|
+
function cg(Y) {
|
|
1643
1643
|
if (!E.state.isDestroyed) {
|
|
1644
|
-
r("onBeforeUpdate", [E,
|
|
1645
|
-
var R = E.props, K = eB(g, Object.assign({}, R, LB(
|
|
1644
|
+
r("onBeforeUpdate", [E, Y]), Dg();
|
|
1645
|
+
var R = E.props, K = eB(g, Object.assign({}, R, LB(Y), {
|
|
1646
1646
|
ignoreAttributes: !0
|
|
1647
1647
|
}));
|
|
1648
1648
|
E.props = K, OA(), R.interactiveDebounce !== K.interactiveDebounce && (tA(), L = NB(ig, K.interactiveDebounce)), R.triggerTarget && !K.triggerTarget ? TA(R.triggerTarget).forEach(function(u) {
|
|
1649
1649
|
u.removeAttribute("aria-expanded");
|
|
1650
1650
|
}) : K.triggerTarget && g.removeAttribute("aria-expanded"), wA(), W(), F && F(R, K), E.popperInstance && (Yg(), RA().forEach(function(u) {
|
|
1651
1651
|
requestAnimationFrame(u._tippy.popperInstance.forceUpdate);
|
|
1652
|
-
})), r("onAfterUpdate", [E,
|
|
1652
|
+
})), r("onAfterUpdate", [E, Y]);
|
|
1653
1653
|
}
|
|
1654
1654
|
}
|
|
1655
|
-
function Lg(
|
|
1655
|
+
function Lg(Y) {
|
|
1656
1656
|
E.setProps({
|
|
1657
|
-
content:
|
|
1657
|
+
content: Y
|
|
1658
1658
|
});
|
|
1659
1659
|
}
|
|
1660
1660
|
function CC() {
|
|
1661
|
-
var
|
|
1662
|
-
if (!(
|
|
1661
|
+
var Y = E.state.isVisible, R = E.state.isDestroyed, K = !E.state.isEnabled, u = YA.isTouch && !E.props.touch, l = lg(E.props.duration, 0, QA.duration);
|
|
1662
|
+
if (!(Y || R || K || u) && !H().hasAttribute("disabled") && (r("onShow", [E], !1), E.props.onShow(E) !== !1)) {
|
|
1663
1663
|
if (E.state.isVisible = !0, y() && (N.style.visibility = "visible"), W(), BA(), E.state.isMounted || (N.style.transition = "none"), y()) {
|
|
1664
1664
|
var d = gA(), P = d.box, VA = d.content;
|
|
1665
1665
|
Tg([P, VA], 0);
|
|
1666
1666
|
}
|
|
1667
1667
|
j = function() {
|
|
1668
1668
|
var JA;
|
|
1669
|
-
if (!(!E.state.isVisible ||
|
|
1670
|
-
if (
|
|
1669
|
+
if (!(!E.state.isVisible || o)) {
|
|
1670
|
+
if (o = !0, N.offsetHeight, N.style.transition = E.props.moveTransition, y() && E.props.animation) {
|
|
1671
1671
|
var Kg = gA(), Gg = Kg.box, mA = Kg.content;
|
|
1672
1672
|
Tg([Gg, mA], l), Eg([Gg, mA], "visible");
|
|
1673
1673
|
}
|
|
@@ -1679,23 +1679,23 @@ function CQ(g, A) {
|
|
|
1679
1679
|
}
|
|
1680
1680
|
}
|
|
1681
1681
|
function IC() {
|
|
1682
|
-
var
|
|
1683
|
-
if (!(
|
|
1684
|
-
if (E.state.isVisible = !1, E.state.isShown = !1,
|
|
1682
|
+
var Y = !E.state.isVisible, R = E.state.isDestroyed, K = !E.state.isEnabled, u = lg(E.props.duration, 1, QA.duration);
|
|
1683
|
+
if (!(Y || R || K) && (r("onHide", [E], !1), E.props.onHide(E) !== !1)) {
|
|
1684
|
+
if (E.state.isVisible = !1, E.state.isShown = !1, o = !1, M = !1, y() && (N.style.visibility = "hidden"), tA(), LA(), W(!0), y()) {
|
|
1685
1685
|
var l = gA(), d = l.box, P = l.content;
|
|
1686
1686
|
E.props.animation && (Tg([d, P], u), Eg([d, P], "hidden"));
|
|
1687
1687
|
}
|
|
1688
1688
|
MA(), wA(), E.props.animation ? y() && yA(u, E.unmount) : E.unmount();
|
|
1689
1689
|
}
|
|
1690
1690
|
}
|
|
1691
|
-
function QC(
|
|
1692
|
-
q().addEventListener("mousemove", L), cB(Sg, L), L(
|
|
1691
|
+
function QC(Y) {
|
|
1692
|
+
q().addEventListener("mousemove", L), cB(Sg, L), L(Y);
|
|
1693
1693
|
}
|
|
1694
1694
|
function EC() {
|
|
1695
|
-
E.state.isVisible && E.hide(), E.state.isMounted && (Fg(), RA().forEach(function(
|
|
1696
|
-
|
|
1697
|
-
}), N.parentNode && N.parentNode.removeChild(N), ug = ug.filter(function(
|
|
1698
|
-
return
|
|
1695
|
+
E.state.isVisible && E.hide(), E.state.isMounted && (Fg(), RA().forEach(function(Y) {
|
|
1696
|
+
Y._tippy.unmount();
|
|
1697
|
+
}), N.parentNode && N.parentNode.removeChild(N), ug = ug.filter(function(Y) {
|
|
1698
|
+
return Y !== E;
|
|
1699
1699
|
}), E.state.isMounted = !1, r("onHidden", [E]));
|
|
1700
1700
|
}
|
|
1701
1701
|
function MC() {
|
|
@@ -1709,8 +1709,8 @@ function a(g, A) {
|
|
|
1709
1709
|
var I = Object.assign({}, A, {
|
|
1710
1710
|
plugins: B
|
|
1711
1711
|
}), C = WI(g), Q = C.reduce(function(M, w) {
|
|
1712
|
-
var
|
|
1713
|
-
return
|
|
1712
|
+
var i = w && CQ(w, I);
|
|
1713
|
+
return i && M.push(i), M;
|
|
1714
1714
|
}, []);
|
|
1715
1715
|
return jg(g) ? Q[0] : Q;
|
|
1716
1716
|
}
|
|
@@ -1736,7 +1736,7 @@ var IQ = Object.assign({}, mB, {
|
|
|
1736
1736
|
}), QQ = function(A, B) {
|
|
1737
1737
|
var I;
|
|
1738
1738
|
B === void 0 && (B = {});
|
|
1739
|
-
var C = A, Q = [], M = [], w,
|
|
1739
|
+
var C = A, Q = [], M = [], w, i = B.overrides, o = [], D = !1;
|
|
1740
1740
|
function k() {
|
|
1741
1741
|
M = C.map(function(E) {
|
|
1742
1742
|
return TA(E.props.triggerTarget || E.reference);
|
|
@@ -1768,7 +1768,7 @@ var IQ = Object.assign({}, mB, {
|
|
|
1768
1768
|
var N = M.indexOf(S);
|
|
1769
1769
|
if (S !== w) {
|
|
1770
1770
|
w = S;
|
|
1771
|
-
var F = (
|
|
1771
|
+
var F = (i || []).concat("content").reduce(function(G, n) {
|
|
1772
1772
|
return G[n] = C[N].props[n], G;
|
|
1773
1773
|
}, {});
|
|
1774
1774
|
E.setProps(Object.assign({}, F, {
|
|
@@ -1790,10 +1790,10 @@ var IQ = Object.assign({}, mB, {
|
|
|
1790
1790
|
w = null;
|
|
1791
1791
|
},
|
|
1792
1792
|
onClickOutside: function(N) {
|
|
1793
|
-
N.props.showOnCreate && !
|
|
1793
|
+
N.props.showOnCreate && !D && (D = !0, w = null);
|
|
1794
1794
|
},
|
|
1795
1795
|
onShow: function(N) {
|
|
1796
|
-
N.props.showOnCreate && !
|
|
1796
|
+
N.props.showOnCreate && !D && (D = !0, h(N, Q[0]));
|
|
1797
1797
|
},
|
|
1798
1798
|
onTrigger: function(N, F) {
|
|
1799
1799
|
h(N, F.currentTarget);
|
|
@@ -1835,14 +1835,14 @@ var IQ = Object.assign({}, mB, {
|
|
|
1835
1835
|
};
|
|
1836
1836
|
var J = c.setProps;
|
|
1837
1837
|
return c.setProps = function(E) {
|
|
1838
|
-
|
|
1838
|
+
i = E.overrides || i, J(E);
|
|
1839
1839
|
}, c.setInstances = function(E) {
|
|
1840
|
-
e(!0),
|
|
1840
|
+
e(!0), o.forEach(function(S) {
|
|
1841
1841
|
return S();
|
|
1842
|
-
}), C = E, e(!1), j(), k(),
|
|
1842
|
+
}), C = E, e(!1), j(), k(), o = L(c), c.setProps({
|
|
1843
1843
|
triggerTarget: M
|
|
1844
1844
|
});
|
|
1845
|
-
},
|
|
1845
|
+
}, o = L(c), c;
|
|
1846
1846
|
}, EQ = {
|
|
1847
1847
|
name: "animateFill",
|
|
1848
1848
|
defaultValue: !1,
|
|
@@ -1860,8 +1860,8 @@ var IQ = Object.assign({}, mB, {
|
|
|
1860
1860
|
},
|
|
1861
1861
|
onMount: function() {
|
|
1862
1862
|
if (M) {
|
|
1863
|
-
var
|
|
1864
|
-
Q.style.transitionDelay = Math.round(
|
|
1863
|
+
var i = C.style.transitionDuration, o = Number(i.replace("ms", ""));
|
|
1864
|
+
Q.style.transitionDelay = Math.round(o / 10) + "ms", M.style.transitionDuration = i, Eg([M], "visible");
|
|
1865
1865
|
}
|
|
1866
1866
|
},
|
|
1867
1867
|
onShow: function() {
|
|
@@ -1899,13 +1899,13 @@ var iQ = {
|
|
|
1899
1899
|
defaultValue: !1,
|
|
1900
1900
|
fn: function(A) {
|
|
1901
1901
|
var B = A.reference, I = $B(A.props.triggerTarget || B), C = !1, Q = !1, M = !0, w = A.props;
|
|
1902
|
-
function
|
|
1902
|
+
function i() {
|
|
1903
1903
|
return A.props.followCursor === "initial" && A.state.isVisible;
|
|
1904
1904
|
}
|
|
1905
|
-
function
|
|
1905
|
+
function o() {
|
|
1906
1906
|
I.addEventListener("mousemove", j);
|
|
1907
1907
|
}
|
|
1908
|
-
function
|
|
1908
|
+
function D() {
|
|
1909
1909
|
I.removeEventListener("mousemove", j);
|
|
1910
1910
|
}
|
|
1911
1911
|
function k() {
|
|
@@ -1953,10 +1953,10 @@ var iQ = {
|
|
|
1953
1953
|
},
|
|
1954
1954
|
onAfterUpdate: function(s, c) {
|
|
1955
1955
|
var t = c.followCursor;
|
|
1956
|
-
C || t !== void 0 && w.followCursor !== t && (L(), t ? (e(), A.state.isMounted && !Q && !
|
|
1956
|
+
C || t !== void 0 && w.followCursor !== t && (L(), t ? (e(), A.state.isMounted && !Q && !i() && o()) : (D(), k()));
|
|
1957
1957
|
},
|
|
1958
1958
|
onMount: function() {
|
|
1959
|
-
A.props.followCursor && !Q && (M && (j(mg), M = !1),
|
|
1959
|
+
A.props.followCursor && !Q && (M && (j(mg), M = !1), i() || o());
|
|
1960
1960
|
},
|
|
1961
1961
|
onTrigger: function(s, c) {
|
|
1962
1962
|
fg(c) && (mg = {
|
|
@@ -1965,7 +1965,7 @@ var iQ = {
|
|
|
1965
1965
|
}), Q = c.type === "focus";
|
|
1966
1966
|
},
|
|
1967
1967
|
onHidden: function() {
|
|
1968
|
-
A.props.followCursor && (k(),
|
|
1968
|
+
A.props.followCursor && (k(), D(), M = !0);
|
|
1969
1969
|
}
|
|
1970
1970
|
};
|
|
1971
1971
|
}
|
|
@@ -1989,7 +1989,7 @@ var YQ = {
|
|
|
1989
1989
|
function I() {
|
|
1990
1990
|
return !!A.props.inlinePositioning;
|
|
1991
1991
|
}
|
|
1992
|
-
var C, Q = -1, M = !1, w = [],
|
|
1992
|
+
var C, Q = -1, M = !1, w = [], i = {
|
|
1993
1993
|
name: "tippyInlinePositioning",
|
|
1994
1994
|
enabled: !0,
|
|
1995
1995
|
phase: "afterWrite",
|
|
@@ -1998,19 +1998,19 @@ var YQ = {
|
|
|
1998
1998
|
I() && (w.indexOf(L.placement) !== -1 && (w = []), C !== L.placement && w.indexOf(L.placement) === -1 && (w.push(L.placement), A.setProps({
|
|
1999
1999
|
// @ts-ignore - unneeded DOMRect properties
|
|
2000
2000
|
getReferenceClientRect: function() {
|
|
2001
|
-
return
|
|
2001
|
+
return o(L.placement);
|
|
2002
2002
|
}
|
|
2003
2003
|
})), C = L.placement);
|
|
2004
2004
|
}
|
|
2005
2005
|
};
|
|
2006
|
-
function
|
|
2006
|
+
function o(j) {
|
|
2007
2007
|
return FQ(vB(j), B.getBoundingClientRect(), qA(B.getClientRects()), Q);
|
|
2008
2008
|
}
|
|
2009
|
-
function
|
|
2009
|
+
function D(j) {
|
|
2010
2010
|
M = !0, A.setProps(j), M = !1;
|
|
2011
2011
|
}
|
|
2012
2012
|
function k() {
|
|
2013
|
-
M ||
|
|
2013
|
+
M || D(oQ(A.props, i));
|
|
2014
2014
|
}
|
|
2015
2015
|
return {
|
|
2016
2016
|
onCreate: k,
|
|
@@ -2037,12 +2037,12 @@ function FQ(g, A, B, I) {
|
|
|
2037
2037
|
switch (g) {
|
|
2038
2038
|
case "top":
|
|
2039
2039
|
case "bottom": {
|
|
2040
|
-
var C = B[0], Q = B[B.length - 1], M = g === "top", w = C.top,
|
|
2040
|
+
var C = B[0], Q = B[B.length - 1], M = g === "top", w = C.top, i = Q.bottom, o = M ? C.left : Q.left, D = M ? C.right : Q.right, k = D - o, j = i - w;
|
|
2041
2041
|
return {
|
|
2042
2042
|
top: w,
|
|
2043
|
-
bottom:
|
|
2044
|
-
left:
|
|
2045
|
-
right:
|
|
2043
|
+
bottom: i,
|
|
2044
|
+
left: o,
|
|
2045
|
+
right: D,
|
|
2046
2046
|
width: k,
|
|
2047
2047
|
height: j
|
|
2048
2048
|
};
|
|
@@ -2077,17 +2077,17 @@ var UQ = {
|
|
|
2077
2077
|
function C() {
|
|
2078
2078
|
return A.popperInstance ? A.popperInstance.state.elements.reference : B;
|
|
2079
2079
|
}
|
|
2080
|
-
function Q(
|
|
2081
|
-
return A.props.sticky === !0 || A.props.sticky ===
|
|
2080
|
+
function Q(o) {
|
|
2081
|
+
return A.props.sticky === !0 || A.props.sticky === o;
|
|
2082
2082
|
}
|
|
2083
2083
|
var M = null, w = null;
|
|
2084
|
-
function
|
|
2085
|
-
var
|
|
2086
|
-
(
|
|
2084
|
+
function i() {
|
|
2085
|
+
var o = Q("reference") ? C().getBoundingClientRect() : null, D = Q("popper") ? I.getBoundingClientRect() : null;
|
|
2086
|
+
(o && kB(M, o) || D && kB(w, D)) && A.popperInstance && A.popperInstance.update(), M = o, w = D, A.state.isMounted && requestAnimationFrame(i);
|
|
2087
2087
|
}
|
|
2088
2088
|
return {
|
|
2089
2089
|
onMount: function() {
|
|
2090
|
-
A.props.sticky &&
|
|
2090
|
+
A.props.sticky && i();
|
|
2091
2091
|
}
|
|
2092
2092
|
};
|
|
2093
2093
|
}
|
|
@@ -2116,18 +2116,18 @@ function cQ(g, A = {}, B = { mount: !0, appName: "Tippy" }) {
|
|
|
2116
2116
|
isShown: !1
|
|
2117
2117
|
}), M = oC();
|
|
2118
2118
|
let w = null;
|
|
2119
|
-
const
|
|
2119
|
+
const i = () => w || (w = document.createDocumentFragment(), w), o = (F) => {
|
|
2120
2120
|
let G, n = kA(F) ? F.value : F;
|
|
2121
2121
|
return YC(n) ? (M.value || (M.value = yg({
|
|
2122
2122
|
name: B.appName,
|
|
2123
2123
|
setup: () => () => kA(F) ? F.value : F
|
|
2124
|
-
}), I && Object.assign(M.value._context, I.appContext), M.value.mount(
|
|
2124
|
+
}), I && Object.assign(M.value._context, I.appContext), M.value.mount(i())), G = () => i()) : typeof n == "object" ? (M.value || (M.value = yg({
|
|
2125
2125
|
name: B.appName,
|
|
2126
2126
|
setup: () => () => HA(kA(F) ? F.value : F)
|
|
2127
|
-
}), I && Object.assign(M.value._context, I.appContext), M.value.mount(
|
|
2128
|
-
},
|
|
2127
|
+
}), I && Object.assign(M.value._context, I.appContext), M.value.mount(i())), G = () => i()) : G = n, G;
|
|
2128
|
+
}, D = (F) => {
|
|
2129
2129
|
let G = {};
|
|
2130
|
-
return kA(F) ? G = F.value || {} : vg(F) ? G = { ...F } : G = { ...F }, G.content && (G.content =
|
|
2130
|
+
return kA(F) ? G = F.value || {} : vg(F) ? G = { ...F } : G = { ...F }, G.content && (G.content = o(G.content)), G.triggerTarget && (G.triggerTarget = kA(G.triggerTarget) ? G.triggerTarget.value : G.triggerTarget), (!G.plugins || !Array.isArray(G.plugins)) && (G.plugins = []), G.plugins = G.plugins.filter((n) => n.name !== "vueTippyReactiveState"), G.plugins.push({
|
|
2131
2131
|
name: "vueTippyReactiveState",
|
|
2132
2132
|
fn: () => ({
|
|
2133
2133
|
onCreate() {
|
|
@@ -2157,15 +2157,15 @@ function cQ(g, A = {}, B = { mount: !0, appName: "Tippy" }) {
|
|
|
2157
2157
|
})
|
|
2158
2158
|
}), G;
|
|
2159
2159
|
}, k = () => {
|
|
2160
|
-
C.value && C.value.setProps(
|
|
2160
|
+
C.value && C.value.setProps(D(A));
|
|
2161
2161
|
}, j = () => {
|
|
2162
|
-
!C.value || !A.content || C.value.setContent(
|
|
2162
|
+
!C.value || !A.content || C.value.setContent(o(A.content));
|
|
2163
2163
|
}, e = (F) => {
|
|
2164
2164
|
var G;
|
|
2165
|
-
(G = C.value) === null || G === void 0 || G.setContent(
|
|
2165
|
+
(G = C.value) === null || G === void 0 || G.setContent(o(F));
|
|
2166
2166
|
}, L = (F) => {
|
|
2167
2167
|
var G;
|
|
2168
|
-
(G = C.value) === null || G === void 0 || G.setProps(
|
|
2168
|
+
(G = C.value) === null || G === void 0 || G.setProps(D(F));
|
|
2169
2169
|
}, h = () => {
|
|
2170
2170
|
var F;
|
|
2171
2171
|
C.value && (C.value.destroy(), C.value = void 0), w = null, (F = M.value) === null || F === void 0 || F.unmount(), M.value = void 0;
|
|
@@ -2188,7 +2188,7 @@ function cQ(g, A = {}, B = { mount: !0, appName: "Tippy" }) {
|
|
|
2188
2188
|
if (!g)
|
|
2189
2189
|
return;
|
|
2190
2190
|
let F = kA(g) ? g.value : g;
|
|
2191
|
-
typeof F == "function" && (F = F()), NQ(F) && (F = F.$el), F && (C.value = a(F,
|
|
2191
|
+
typeof F == "function" && (F = F()), NQ(F) && (F = F.$el), F && (C.value = a(F, D(A)), F.$tippy = N);
|
|
2192
2192
|
}, N = {
|
|
2193
2193
|
tippy: C,
|
|
2194
2194
|
refresh: k,
|
|
@@ -2290,33 +2290,33 @@ const eQ = eA({
|
|
|
2290
2290
|
},
|
|
2291
2291
|
emits: ["state"],
|
|
2292
2292
|
setup(g, { slots: A, emit: B, expose: I }) {
|
|
2293
|
-
const C = x(), Q = x(), M = x(), w = x(!1),
|
|
2293
|
+
const C = x(), Q = x(), M = x(), w = x(!1), i = () => {
|
|
2294
2294
|
let e = { ...g };
|
|
2295
2295
|
for (const L of ["to", "tag", "contentTag", "contentClass"])
|
|
2296
2296
|
e.hasOwnProperty(L) && delete e[L];
|
|
2297
2297
|
return e;
|
|
2298
2298
|
};
|
|
2299
|
-
let
|
|
2300
|
-
g.to && (typeof Element < "u" && g.to instanceof Element ?
|
|
2299
|
+
let o = () => hQ(C);
|
|
2300
|
+
g.to && (typeof Element < "u" && g.to instanceof Element ? o = () => g.to : g.to === "parent" ? o = () => {
|
|
2301
2301
|
let e = C.value;
|
|
2302
2302
|
return e || (e = C.value = Q.value.parentElement), e;
|
|
2303
|
-
} : (typeof g.to == "string" || g.to instanceof String) && (
|
|
2304
|
-
const
|
|
2303
|
+
} : (typeof g.to == "string" || g.to instanceof String) && (o = () => document.querySelector(g.to)));
|
|
2304
|
+
const D = cQ(o, i());
|
|
2305
2305
|
let k = A.content;
|
|
2306
2306
|
!k && g.to === "parent" && (k = A.default), XA(() => {
|
|
2307
2307
|
w.value = !0, JB(() => {
|
|
2308
|
-
k &&
|
|
2308
|
+
k && D.setContent(() => M.value);
|
|
2309
2309
|
});
|
|
2310
|
-
}), Cg(
|
|
2311
|
-
B("state", Hg(
|
|
2310
|
+
}), Cg(D.state, () => {
|
|
2311
|
+
B("state", Hg(D.state));
|
|
2312
2312
|
}, { immediate: !0, deep: !0 }), Cg(() => g, () => {
|
|
2313
|
-
|
|
2313
|
+
D.setProps(i()), k && D.setContent(() => M.value);
|
|
2314
2314
|
}, { deep: !0 });
|
|
2315
2315
|
let j = DC({
|
|
2316
2316
|
elem: C,
|
|
2317
2317
|
contentElem: M,
|
|
2318
2318
|
mounted: w,
|
|
2319
|
-
...
|
|
2319
|
+
...D
|
|
2320
2320
|
});
|
|
2321
2321
|
return I(j), () => {
|
|
2322
2322
|
const e = (typeof g.contentTag == "string", g.contentTag), L = k ? HA(e, {
|
|
@@ -2663,17 +2663,17 @@ const kQ = { class: "w-full p-4 text-zinc-800 bg-zinc-200 rounded-xl shadow-lg s
|
|
|
2663
2663
|
function yQ(g = 1e4, A = 100) {
|
|
2664
2664
|
const B = x(!1), I = x();
|
|
2665
2665
|
let C, Q;
|
|
2666
|
-
const M = () => new Promise((
|
|
2667
|
-
var
|
|
2668
|
-
if ((
|
|
2669
|
-
B.value = !0,
|
|
2666
|
+
const M = () => new Promise((i, o) => {
|
|
2667
|
+
var D;
|
|
2668
|
+
if ((D = window.ramp) != null && D.spaAddAds) {
|
|
2669
|
+
B.value = !0, i(window.ramp);
|
|
2670
2670
|
return;
|
|
2671
2671
|
}
|
|
2672
2672
|
Q = setTimeout(() => {
|
|
2673
|
-
C && clearInterval(C), I.value = new Error("Timeout waiting for window.ramp"),
|
|
2673
|
+
C && clearInterval(C), I.value = new Error("Timeout waiting for window.ramp"), o(I.value);
|
|
2674
2674
|
}, g), C = setInterval(() => {
|
|
2675
2675
|
var k;
|
|
2676
|
-
(k = window.ramp) != null && k.spaAddAds && (clearInterval(C), clearTimeout(Q), B.value = !0,
|
|
2676
|
+
(k = window.ramp) != null && k.spaAddAds && (clearInterval(C), clearTimeout(Q), B.value = !0, i(window.ramp));
|
|
2677
2677
|
}, A);
|
|
2678
2678
|
}), w = async () => await M();
|
|
2679
2679
|
return rg(() => {
|
|
@@ -2699,17 +2699,17 @@ function FE(g = "all") {
|
|
|
2699
2699
|
function xQ(g = 1e4, A = 100) {
|
|
2700
2700
|
const B = x(!1), I = x();
|
|
2701
2701
|
let C, Q;
|
|
2702
|
-
const M = () => new Promise((
|
|
2703
|
-
var
|
|
2704
|
-
if ((
|
|
2705
|
-
B.value = !0,
|
|
2702
|
+
const M = () => new Promise((i, o) => {
|
|
2703
|
+
var D;
|
|
2704
|
+
if ((D = window.adsbygoogle) != null && D.loaded) {
|
|
2705
|
+
B.value = !0, i(window.adsbygoogle);
|
|
2706
2706
|
return;
|
|
2707
2707
|
}
|
|
2708
2708
|
Q = setTimeout(() => {
|
|
2709
|
-
C && clearInterval(C), I.value = new Error("Timeout waiting for adsbygoogle"),
|
|
2709
|
+
C && clearInterval(C), I.value = new Error("Timeout waiting for adsbygoogle"), o(I.value);
|
|
2710
2710
|
}, g), C = setInterval(() => {
|
|
2711
2711
|
var k;
|
|
2712
|
-
(k = window.adsbygoogle) != null && k.loaded && (clearInterval(C), clearTimeout(Q), B.value = !0,
|
|
2712
|
+
(k = window.adsbygoogle) != null && k.loaded && (clearInterval(C), clearTimeout(Q), B.value = !0, i(window.adsbygoogle));
|
|
2713
2713
|
}, A);
|
|
2714
2714
|
}), w = async () => await M();
|
|
2715
2715
|
return rg(() => {
|
|
@@ -2745,34 +2745,35 @@ const OQ = {
|
|
|
2745
2745
|
props: {
|
|
2746
2746
|
name: {},
|
|
2747
2747
|
about: { type: Boolean, default: !1 },
|
|
2748
|
-
patreon: { type: Boolean }
|
|
2748
|
+
patreon: { type: Boolean },
|
|
2749
|
+
usePlaywire: { type: Boolean, default: !1 },
|
|
2750
|
+
useGoogleAdsense: { type: Boolean, default: !1 }
|
|
2749
2751
|
},
|
|
2750
2752
|
setup(g) {
|
|
2751
|
-
const { waitForRamp:
|
|
2752
|
-
function
|
|
2753
|
-
const
|
|
2754
|
-
if (
|
|
2755
|
-
|
|
2753
|
+
const A = g, { waitForRamp: B } = yQ(), { waitForGoogle: I } = xQ(), C = x(), Q = x(), M = x(), w = x(Math.random() <= 1e-3);
|
|
2754
|
+
function i() {
|
|
2755
|
+
const o = [];
|
|
2756
|
+
if (A.usePlaywire && o.push(B), A.useGoogleAdsense && o.push(I), o.length === 0) {
|
|
2757
|
+
C.value = !1, console.debug("Footer: No ad providers configured, skipping ad check.");
|
|
2756
2758
|
return;
|
|
2757
2759
|
}
|
|
2758
|
-
Promise.race(
|
|
2759
|
-
|
|
2760
|
+
Promise.race(o.map((D) => D())).then(() => {
|
|
2761
|
+
C.value = !0;
|
|
2760
2762
|
}).catch(() => {
|
|
2761
|
-
|
|
2763
|
+
C.value = !1;
|
|
2762
2764
|
});
|
|
2763
2765
|
}
|
|
2764
|
-
return XA(() =>
|
|
2765
|
-
|
|
2766
|
-
}), (
|
|
2767
|
-
|
|
2766
|
+
return XA(() => i()), Cg(C, (o) => {
|
|
2767
|
+
o !== void 0 && (M.value && Q.value ? (console.debug(`Footer: Ads enabled = ${o}`), M.value.style.display = o ? "none" : "", Q.value.style.display = o ? "" : "none") : console.debug("Footer: begging or adblock ref is not set properly"));
|
|
2768
|
+
}), (o, D) => (O(), X(xg, null, [
|
|
2769
|
+
o.patreon ? iA("", !0) : (O(), X(xg, { key: 0 }, [
|
|
2768
2770
|
U("div", {
|
|
2769
|
-
style: { display: "none" },
|
|
2770
2771
|
class: "mb-4",
|
|
2771
2772
|
ref_key: "adblock",
|
|
2772
|
-
ref:
|
|
2773
|
+
ref: Q
|
|
2773
2774
|
}, [
|
|
2774
|
-
v(
|
|
2775
|
-
|
|
2775
|
+
v(o.$slots, "ad", {}, () => [
|
|
2776
|
+
D[0] || (D[0] = U("div", { class: "w-[320px] h-[110px] sm:w-[468px] sm:h-[110px] lg:w-[728px] lg:h-[110px] mx-auto grid place-items-center" }, [
|
|
2776
2777
|
U("p", { class: "text-white" }, "Advertisement goes here")
|
|
2777
2778
|
], -1))
|
|
2778
2779
|
])
|
|
@@ -2783,9 +2784,9 @@ const OQ = {
|
|
|
2783
2784
|
target: "_blank",
|
|
2784
2785
|
href: "https://patreon.com/wastedondestiny",
|
|
2785
2786
|
ref_key: "begging",
|
|
2786
|
-
ref:
|
|
2787
|
+
ref: M
|
|
2787
2788
|
}, [
|
|
2788
|
-
|
|
2789
|
+
w.value ? (O(), X("img", OQ)) : (O(), X("p", VQ, D[1] || (D[1] = [
|
|
2789
2790
|
z(" I ", -1),
|
|
2790
2791
|
U("em", null, "feel", -1),
|
|
2791
2792
|
z(" you – ", -1),
|
|
@@ -2800,17 +2801,17 @@ const OQ = {
|
|
|
2800
2801
|
], 64)),
|
|
2801
2802
|
U("footer", mQ, [
|
|
2802
2803
|
U("span", pQ, [
|
|
2803
|
-
v(
|
|
2804
|
+
v(o.$slots, "default", {}, () => [
|
|
2804
2805
|
U("span", null, "© François (binarmorker) Allard " + oA((/* @__PURE__ */ new Date()).getFullYear()), 1)
|
|
2805
2806
|
]),
|
|
2806
|
-
|
|
2807
|
+
D[7] || (D[7] = U("span", { class: "hidden sm:inline" }, "|", -1)),
|
|
2807
2808
|
U("span", HQ, [
|
|
2808
2809
|
$g(IA, null, {
|
|
2809
|
-
content: T(() =>
|
|
2810
|
+
content: T(() => D[2] || (D[2] = [
|
|
2810
2811
|
U("p", null, "Support me monthly on Patreon!", -1)
|
|
2811
2812
|
])),
|
|
2812
2813
|
default: T(() => [
|
|
2813
|
-
|
|
2814
|
+
D[3] || (D[3] = U("a", {
|
|
2814
2815
|
target: "_blank",
|
|
2815
2816
|
href: "https://www.patreon.com/wastedondestiny",
|
|
2816
2817
|
class: "font-bold shadow-black/50 text-shadow-sm opacity-75 hover:opacity-100"
|
|
@@ -2819,13 +2820,13 @@ const OQ = {
|
|
|
2819
2820
|
_: 1,
|
|
2820
2821
|
__: [3]
|
|
2821
2822
|
}),
|
|
2822
|
-
|
|
2823
|
+
D[6] || (D[6] = U("span", null, "|", -1)),
|
|
2823
2824
|
$g(IA, null, {
|
|
2824
|
-
content: T(() =>
|
|
2825
|
+
content: T(() => D[4] || (D[4] = [
|
|
2825
2826
|
U("p", null, "Support me one time via Ko-Fi!", -1)
|
|
2826
2827
|
])),
|
|
2827
2828
|
default: T(() => [
|
|
2828
|
-
|
|
2829
|
+
D[5] || (D[5] = U("a", {
|
|
2829
2830
|
target: "_blank",
|
|
2830
2831
|
href: "https://ko-fi.com/binarmorker",
|
|
2831
2832
|
class: "font-bold shadow-black/50 text-shadow-sm opacity-75 hover:opacity-100"
|
|
@@ -2836,21 +2837,21 @@ const OQ = {
|
|
|
2836
2837
|
})
|
|
2837
2838
|
])
|
|
2838
2839
|
]),
|
|
2839
|
-
|
|
2840
|
+
D[12] || (D[12] = U("span", { class: "hidden lg:inline" }, "|", -1)),
|
|
2840
2841
|
U("span", rQ, [
|
|
2841
2842
|
U("span", ZQ, [
|
|
2842
|
-
|
|
2843
|
+
D[9] || (D[9] = U("a", {
|
|
2843
2844
|
target: "_blank",
|
|
2844
2845
|
href: "https://discord.wastedondestiny.com",
|
|
2845
2846
|
class: "opacity-75 hover:opacity-100"
|
|
2846
2847
|
}, "Support", -1)),
|
|
2847
|
-
|
|
2848
|
-
v(
|
|
2849
|
-
|
|
2848
|
+
D[10] || (D[10] = U("span", null, "|", -1)),
|
|
2849
|
+
v(o.$slots, "privacy", {}, () => [
|
|
2850
|
+
D[8] || (D[8] = z(" Privacy ", -1))
|
|
2850
2851
|
])
|
|
2851
2852
|
]),
|
|
2852
|
-
|
|
2853
|
-
|
|
2853
|
+
D[11] || (D[11] = U("span", { class: "hidden sm:inline" }, "|", -1)),
|
|
2854
|
+
o.about ? (O(), X("a", WQ, "Return to top")) : o.patreon ? (O(), X("a", dQ, "Return to " + oA(o.name), 1)) : (O(), X("a", zQ, "About " + oA(o.name), 1))
|
|
2854
2855
|
])
|
|
2855
2856
|
])
|
|
2856
2857
|
], 64));
|
|
@@ -3038,15 +3039,15 @@ function hE(g, A = 100, B = 0) {
|
|
|
3038
3039
|
const I = g.map((w) => Math.round(w * Math.pow(10, B)) / Math.pow(10, B));
|
|
3039
3040
|
if (Math.round(A * Math.pow(10, B)) / Math.pow(10, B) !== A)
|
|
3040
3041
|
throw new Error("The forced sum cannot be achieved with the given decimals.");
|
|
3041
|
-
const C = A - I.reduce((w,
|
|
3042
|
+
const C = A - I.reduce((w, i) => w + i, 0);
|
|
3042
3043
|
if (C === 0)
|
|
3043
3044
|
return I;
|
|
3044
3045
|
const Q = Math.pow(0.1, B) * Math.sign(C);
|
|
3045
3046
|
let M = [];
|
|
3046
|
-
C < 0 ? M = g.map((w,
|
|
3047
|
+
C < 0 ? M = g.map((w, i) => ({ x: w, index: i })).sort((w, i) => w.x - I[w.index] - (i.x - I[i.index])).map((w) => w.index) : M = g.map((w, i) => ({ x: w, index: i })).sort((w, i) => i.x - I[i.index] - (w.x - I[w.index])).map((w) => w.index);
|
|
3047
3048
|
for (let w = 0; w < Math.floor(C / Q); w++) {
|
|
3048
|
-
const
|
|
3049
|
-
I[
|
|
3049
|
+
const i = M[w % M.length];
|
|
3050
|
+
I[i] += Q;
|
|
3050
3051
|
}
|
|
3051
3052
|
return I;
|
|
3052
3053
|
}
|