@wastedondestiny/destiny-library 1.5.2 → 1.5.3

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.
@@ -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 i, Y;
14
- (Y = I.value) == null || Y.style.setProperty("--max-height", ((i = I.value) == null ? void 0 : i.scrollHeight) + "px");
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((i) => {
18
- i.forEach((Y) => {
19
- Y.type === "childList" && w();
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 D() {
25
+ function i() {
26
26
  B("toggle");
27
27
  }
28
28
  return lB(() => {
29
- var i;
30
- (i = M.value) == null || i.disconnect();
31
- }), (i, Y) => (O(), X("div", hC, [
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": !i.noInteract }]),
34
- onClick: D
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(i.name), 1),
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": i.open }])
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 || i.open ? "var(--max-height)" : "0" }])
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(i.$slots, "default")
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(D, i) {
200
- return D[i] = "", D;
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(D) {
203
- C.removeAttribute(D);
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), D = dg(w), i = [f, AA].indexOf(w) >= 0, Y = i ? "height" : "width";
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 = D === "y" ? b : f, L = D === "y" ? _ : AA, h = B.rects.reference[Y] + B.rects.reference[D] - M[D] - B.rects.popper[Y], s = M[D] - B.rects.reference[D], c = wg(Q), t = c ? D === "y" ? c.clientHeight || 0 : c.clientWidth || 0 : 0, J = h / 2 - s / 2, E = k[e], S = t - j[Y] - k[L], N = t / 2 - j[Y] / 2 + J, F = gg(E, N, S), G = D;
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, D = g.gpuAcceleration, i = g.adaptive, Y = g.roundOffsets, k = g.isFixed, j = Y === !0 ? AI(M) : typeof Y == "function" ? Y(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 (i) {
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 *= D ? 1 : -1;
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 *= D ? 1 : -1;
394
+ L -= V - I.width, L *= i ? 1 : -1;
395
395
  }
396
396
  }
397
397
  var m = Object.assign({
398
398
  position: w
399
- }, i && _C);
400
- if (D) {
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, D = w === void 0 ? !0 : w, i = {
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({}, i, {
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: D
420
- })))), A.modifiersData.arrow != null && (A.styles.arrow = Object.assign({}, A.styles.arrow, wB(Object.assign({}, i, {
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: D
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, D = EA(A.elements.popper), i = [].concat(A.scrollParents.reference, A.scrollParents.popper);
440
- return Q && i.forEach(function(Y) {
441
- Y.addEventListener("scroll", B.update, eg);
442
- }), w && D.addEventListener("resize", B.update, eg), function() {
443
- Q && i.forEach(function(Y) {
444
- Y.removeEventListener("scroll", B.update, eg);
445
- }), w && D.removeEventListener("resize", B.update, eg);
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), D = -I.scrollTop;
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: D
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, D) {
543
- var i = iB(g, D);
544
- return w.top = nA(i.top, w.top), w.right = ag(i.right, w.right), w.bottom = ag(i.bottom, w.bottom), w.left = nA(i.left, w.left), w;
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, D;
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
- D = {
552
+ i = {
553
553
  x: M,
554
554
  y: A.y - B.height
555
555
  };
556
556
  break;
557
557
  case _:
558
- D = {
558
+ i = {
559
559
  x: M,
560
560
  y: A.y + A.height
561
561
  };
562
562
  break;
563
563
  case AA:
564
- D = {
564
+ i = {
565
565
  x: A.x + A.width,
566
566
  y: w
567
567
  };
568
568
  break;
569
569
  case f:
570
- D = {
570
+ i = {
571
571
  x: A.x - B.width,
572
572
  y: w
573
573
  };
574
574
  break;
575
575
  default:
576
- D = {
576
+ i = {
577
577
  x: A.x,
578
578
  y: A.y
579
579
  };
580
580
  }
581
- var i = C ? dg(C) : null;
582
- if (i != null) {
583
- var Y = i === "y" ? "height" : "width";
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
- D[i] = D[i] - (A[Y] / 2 - B[Y] / 2);
586
+ i[o] = i[o] - (A[D] / 2 - B[D] / 2);
587
587
  break;
588
588
  case Ig:
589
- D[i] = D[i] + (A[Y] / 2 - B[Y] / 2);
589
+ i[o] = i[o] + (A[D] / 2 - B[D] / 2);
590
590
  break;
591
591
  }
592
592
  }
593
- return D;
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, D = w === void 0 ? xB : w, i = B.elementContext, Y = i === void 0 ? _A : i, 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 = Y === _A ? uC : _A, c = g.rects.popper, t = g.elements[j ? s : Y], J = oI(ZA(t) ? t : t.contextElement || sA(g.elements.popper), M, D), E = dA(g.elements.reference), S = dB({
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 = Y === _A ? N : E, G = {
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 (Y === _A && n) {
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, D = B.allowedAutoPlacements, i = D === void 0 ? OB : D, Y = zA(I), k = Y ? w ? EB : EB.filter(function(L) {
620
- return zA(L) === Y;
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 i.indexOf(L) >= 0;
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, D = B.fallbackPlacements, i = B.padding, Y = 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 = D || (t || !L ? [kg(s)] : FI(s)), E = [s].concat(J).reduce(function(cA, BA) {
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: Y,
649
+ boundary: D,
650
650
  rootBoundary: k,
651
- padding: i,
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: Y,
658
+ boundary: D,
659
659
  rootBoundary: k,
660
660
  altBoundary: j,
661
- padding: i
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
- }), D = oB(M, I), i = oB(w, C, Q), Y = YB(D), k = YB(i);
723
+ }), i = oB(M, I), o = oB(w, C, Q), D = YB(i), k = YB(o);
724
724
  A.modifiersData[B] = {
725
- referenceClippingOffsets: D,
726
- popperEscapeOffsets: i,
727
- isReferenceHidden: Y,
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": Y,
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(Y, k) {
755
- return Y[k] = GI(k, A.rects, Q), Y;
756
- }, {}), w = M[A.placement], D = w.x, i = w.y;
757
- A.modifiersData.popperOffsets != null && (A.modifiersData.popperOffsets.x += D, A.modifiersData.popperOffsets.y += i), A.modifiersData[I] = M;
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, D = B.boundary, i = B.rootBoundary, Y = 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: D,
788
- rootBoundary: i,
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: Y
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
- }, D = {
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) ? (D = dA(A, !0), D.x += A.clientLeft, D.y += A.clientTop) : Q && (D.x = qg(Q))), {
849
- x: M.left + w.scrollLeft - D.x,
850
- y: M.top + w.scrollTop - D.y,
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 D = A.get(w);
866
- D && C(D);
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, D, i) {
920
- i === void 0 && (i = Q);
921
- var Y = {
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: D
928
+ popper: i
929
929
  },
930
930
  attributes: {},
931
931
  styles: {}
932
932
  }, k = [], j = !1, e = {
933
- state: Y,
933
+ state: D,
934
934
  setOptions: function(c) {
935
- var t = typeof c == "function" ? c(Y.options) : c;
936
- h(), Y.options = Object.assign({}, Q, Y.options, t), Y.scrollParents = {
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(D)
938
+ popper: Bg(i)
939
939
  };
940
- var J = TI(uI([].concat(I, Y.options.modifiers)));
941
- return Y.orderedModifiers = J.filter(function(E) {
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 = Y.elements, t = c.reference, J = c.popper;
952
+ var c = D.elements, t = c.reference, J = c.popper;
953
953
  if (UB(t, J)) {
954
- Y.rects = {
955
- reference: JI(t, wg(J), Y.options.strategy === "fixed"),
954
+ D.rects = {
955
+ reference: JI(t, wg(J), D.options.strategy === "fixed"),
956
956
  popper: Wg(J)
957
- }, Y.reset = !1, Y.placement = Y.options.placement, Y.orderedModifiers.forEach(function(V) {
958
- return Y.modifiersData[V.name] = Object.assign({}, V.data);
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 < Y.orderedModifiers.length; E++) {
961
- if (Y.reset === !0) {
962
- Y.reset = !1, E = -1;
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 = Y.orderedModifiers[E], N = S.fn, F = S.options, G = F === void 0 ? {} : F, n = S.name;
966
- typeof N == "function" && (Y = N({
967
- state: Y,
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
- }) || Y);
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(Y);
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, D))
987
+ if (!UB(w, i))
988
988
  return e;
989
- e.setOptions(i).then(function(s) {
990
- !j && i.onFirstUpdate && i.onFirstUpdate(s);
989
+ e.setOptions(o).then(function(s) {
990
+ !j && o.onFirstUpdate && o.onFirstUpdate(s);
991
991
  });
992
992
  function L() {
993
- Y.orderedModifiers.forEach(function(s) {
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: Y,
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, D = w.interactiveBorder, i = vB(M.placement), Y = M.modifiersData.offset;
1116
- if (!Y)
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 = i === "bottom" ? Y.top.y : 0, j = i === "top" ? Y.bottom.y : 0, e = i === "right" ? Y.left.x : 0, L = i === "left" ? Y.right.x : 0, h = Q.top - I + k > D, s = I - Q.bottom - j > D, c = Q.left - B + e > D, t = B - Q.right - L > D;
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), D = w.box, i = w.content, Y = w.arrow;
1303
- M.theme ? D.setAttribute("data-theme", M.theme) : D.removeAttribute("data-theme"), typeof M.animation == "string" ? D.setAttribute("data-animation", M.animation) : D.removeAttribute("data-animation"), M.inertia ? D.setAttribute("data-inertia", "") : D.removeAttribute("data-inertia"), D.style.maxWidth = typeof M.maxWidth == "number" ? M.maxWidth + "px" : M.maxWidth, M.role ? D.setAttribute("role", M.role) : D.removeAttribute("role"), (Q.content !== M.content || Q.allowHTML !== M.allowHTML) && RB(i, g.props), M.arrow ? Y ? Q.arrow !== M.arrow && (D.removeChild(Y), D.appendChild(SB(M.arrow))) : D.appendChild(SB(M.arrow)) : Y && D.removeChild(Y);
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, D = !1, i = !1, Y, k, j, e = [], L = NB(ig, B.interactiveDebounce), h, s = BQ++, c = null, t = HI(B.plugins), J = {
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(o) {
1350
- return o.fn(E);
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 o = E.props.touch;
1359
- return Array.isArray(o) ? o : [o, 0];
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 o;
1366
- return !!((o = E.props.render) != null && o.$$tippy);
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 o = H().parentNode;
1373
- return o ? $B(o) : document;
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(o) {
1379
- return E.state.isMounted && !E.state.isVisible || YA.isTouch || Y && Y.type === "focus" ? 0 : lg(E.props.delay, o ? 0 : 1, QA.delay);
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(o) {
1382
- o === void 0 && (o = !1), N.style.pointerEvents = E.props.interactive && !o ? "" : "none", N.style.zIndex = "" + E.props.zIndex;
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(o, R, K) {
1384
+ function r(Y, R, K) {
1385
1385
  if (K === void 0 && (K = !0), G.forEach(function(l) {
1386
- l[o] && l[o].apply(l, R);
1386
+ l[Y] && l[Y].apply(l, R);
1387
1387
  }), K) {
1388
1388
  var u;
1389
- (u = E.props)[o].apply(u, R);
1389
+ (u = E.props)[Y].apply(u, R);
1390
1390
  }
1391
1391
  }
1392
1392
  function MA() {
1393
- var o = E.props.aria;
1394
- if (o.content) {
1395
- var R = "aria-" + o.content, K = N.id, u = TA(E.props.triggerTarget || g);
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 o = TA(E.props.triggerTarget || g);
1410
- o.forEach(function(R) {
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(o) {
1417
- return o !== L;
1416
+ q().removeEventListener("mousemove", L), Sg = Sg.filter(function(Y) {
1417
+ return Y !== L;
1418
1418
  });
1419
1419
  }
1420
- function DA(o) {
1421
- if (!(YA.isTouch && (D || o.type === "mousedown"))) {
1422
- var R = o.composedPath && o.composedPath()[0] || o.target;
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, o]);
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
- D = !0;
1438
+ i = !0;
1439
1439
  }
1440
1440
  function cA() {
1441
- D = !1;
1441
+ i = !1;
1442
1442
  }
1443
1443
  function BA() {
1444
- var o = q();
1445
- o.addEventListener("mousedown", DA, !0), o.addEventListener("touchend", DA, lA), o.addEventListener("touchstart", cA, lA), o.addEventListener("touchmove", jA, lA);
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 o = q();
1449
- o.removeEventListener("mousedown", DA, !0), o.removeEventListener("touchend", DA, lA), o.removeEventListener("touchstart", cA, lA), o.removeEventListener("touchmove", jA, lA);
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(o, R) {
1452
- xA(o, function() {
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(o, R) {
1457
- xA(o, R);
1456
+ function GA(Y, R) {
1457
+ xA(Y, R);
1458
1458
  }
1459
- function xA(o, R) {
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 (o === 0)
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(o, R, K) {
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(o, R, K), e.push({
1472
+ l.addEventListener(Y, R, K), e.push({
1473
1473
  node: l,
1474
- eventType: o,
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(o) {
1486
- if (o !== "manual")
1487
- switch (SA(o, bA), o) {
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(o) {
1502
- var R = o.node, K = o.eventType, u = o.handler, l = o.options;
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(o) {
1506
+ function bA(Y) {
1507
1507
  var R, K = !1;
1508
- if (!(!E.state.isEnabled || PA(o) || w)) {
1509
- var u = ((R = Y) == null ? void 0 : R.type) === "focus";
1510
- Y = o, h = o.currentTarget, wA(), !E.state.isVisible && fg(o) && Sg.forEach(function(l) {
1511
- return l(o);
1512
- }), o.type === "click" && (E.props.trigger.indexOf("mouseenter") < 0 || M) && E.props.hideOnClick !== !1 && E.state.isVisible ? K = !0 : vA(o), o.type === "click" && (M = !K), K && !u && KA(o);
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(o) {
1516
- var R = o.target, K = H().contains(R) || N.contains(R);
1517
- if (!(o.type === "mousemove" && K)) {
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, o) && (tA(), KA(o));
1526
+ dI(u, Y) && (tA(), KA(Y));
1527
1527
  }
1528
1528
  }
1529
- function og(o) {
1530
- var R = PA(o) || E.props.trigger.indexOf("click") >= 0 && M;
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(o);
1533
+ E.hideWithInteractivity(Y);
1534
1534
  return;
1535
1535
  }
1536
- KA(o);
1536
+ KA(Y);
1537
1537
  }
1538
1538
  }
1539
- function fA(o) {
1540
- E.props.trigger.indexOf("focusin") < 0 && o.target !== H() || E.props.interactive && o.relatedTarget && N.contains(o.relatedTarget) || KA(o);
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(o) {
1543
- return YA.isTouch ? m() !== o.type.indexOf("touch") >= 0 : !1;
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 o = E.props, R = o.popperOptions, K = o.placement, u = o.offset, l = o.getReferenceClientRect, d = o.moveTransition, P = y() ? sg(N).arrow : null, VA = l ? {
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 o = E.props.appendTo, R, K = H();
1607
- E.props.interactive && o === fB || o === "parent" ? R = K.parentNode : R = PB(o, [K]), R.contains(N) || R.appendChild(N), E.state.isMounted = !0, Yg();
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(o) {
1613
- E.clearDelayTimeouts(), o && r("onTrigger", [E, o]), BA();
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(o) {
1620
- if (E.clearDelayTimeouts(), r("onUntrigger", [E, o]), !E.state.isVisible) {
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(o.type) >= 0 && M)) {
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(o) {
1642
+ function cg(Y) {
1643
1643
  if (!E.state.isDestroyed) {
1644
- r("onBeforeUpdate", [E, o]), Dg();
1645
- var R = E.props, K = eB(g, Object.assign({}, R, LB(o), {
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, o]);
1652
+ })), r("onAfterUpdate", [E, Y]);
1653
1653
  }
1654
1654
  }
1655
- function Lg(o) {
1655
+ function Lg(Y) {
1656
1656
  E.setProps({
1657
- content: o
1657
+ content: Y
1658
1658
  });
1659
1659
  }
1660
1660
  function CC() {
1661
- var o = 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 (!(o || R || K || u) && !H().hasAttribute("disabled") && (r("onShow", [E], !1), E.props.onShow(E) !== !1)) {
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 || i)) {
1670
- if (i = !0, N.offsetHeight, N.style.transition = E.props.moveTransition, y() && E.props.animation) {
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 o = !E.state.isVisible, R = E.state.isDestroyed, K = !E.state.isEnabled, u = lg(E.props.duration, 1, QA.duration);
1683
- if (!(o || R || K) && (r("onHide", [E], !1), E.props.onHide(E) !== !1)) {
1684
- if (E.state.isVisible = !1, E.state.isShown = !1, i = !1, M = !1, y() && (N.style.visibility = "hidden"), tA(), LA(), W(!0), y()) {
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(o) {
1692
- q().addEventListener("mousemove", L), cB(Sg, L), L(o);
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(o) {
1696
- o._tippy.unmount();
1697
- }), N.parentNode && N.parentNode.removeChild(N), ug = ug.filter(function(o) {
1698
- return o !== E;
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 D = w && CQ(w, I);
1713
- return D && M.push(D), M;
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, D = B.overrides, i = [], Y = !1;
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 = (D || []).concat("content").reduce(function(G, n) {
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 && !Y && (Y = !0, w = null);
1793
+ N.props.showOnCreate && !D && (D = !0, w = null);
1794
1794
  },
1795
1795
  onShow: function(N) {
1796
- N.props.showOnCreate && !Y && (Y = !0, h(N, Q[0]));
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
- D = E.overrides || D, J(E);
1838
+ i = E.overrides || i, J(E);
1839
1839
  }, c.setInstances = function(E) {
1840
- e(!0), i.forEach(function(S) {
1840
+ e(!0), o.forEach(function(S) {
1841
1841
  return S();
1842
- }), C = E, e(!1), j(), k(), i = L(c), c.setProps({
1842
+ }), C = E, e(!1), j(), k(), o = L(c), c.setProps({
1843
1843
  triggerTarget: M
1844
1844
  });
1845
- }, i = L(c), c;
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 D = C.style.transitionDuration, i = Number(D.replace("ms", ""));
1864
- Q.style.transitionDelay = Math.round(i / 10) + "ms", M.style.transitionDuration = D, Eg([M], "visible");
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 D() {
1902
+ function i() {
1903
1903
  return A.props.followCursor === "initial" && A.state.isVisible;
1904
1904
  }
1905
- function i() {
1905
+ function o() {
1906
1906
  I.addEventListener("mousemove", j);
1907
1907
  }
1908
- function Y() {
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 && !D() && i()) : (Y(), k()));
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), D() || i());
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(), Y(), M = !0);
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 = [], D = {
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 i(L.placement);
2001
+ return o(L.placement);
2002
2002
  }
2003
2003
  })), C = L.placement);
2004
2004
  }
2005
2005
  };
2006
- function i(j) {
2006
+ function o(j) {
2007
2007
  return FQ(vB(j), B.getBoundingClientRect(), qA(B.getClientRects()), Q);
2008
2008
  }
2009
- function Y(j) {
2009
+ function D(j) {
2010
2010
  M = !0, A.setProps(j), M = !1;
2011
2011
  }
2012
2012
  function k() {
2013
- M || Y(oQ(A.props, D));
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, D = Q.bottom, i = M ? C.left : Q.left, Y = M ? C.right : Q.right, k = Y - i, j = D - w;
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: D,
2044
- left: i,
2045
- right: Y,
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(i) {
2081
- return A.props.sticky === !0 || A.props.sticky === i;
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 D() {
2085
- var i = Q("reference") ? C().getBoundingClientRect() : null, Y = Q("popper") ? I.getBoundingClientRect() : null;
2086
- (i && kB(M, i) || Y && kB(w, Y)) && A.popperInstance && A.popperInstance.update(), M = i, w = Y, A.state.isMounted && requestAnimationFrame(D);
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 && D();
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 D = () => w || (w = document.createDocumentFragment(), w), i = (F) => {
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(D())), G = () => D()) : typeof n == "object" ? (M.value || (M.value = yg({
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(D())), G = () => D()) : G = n, G;
2128
- }, Y = (F) => {
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 = i(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({
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(Y(A));
2160
+ C.value && C.value.setProps(D(A));
2161
2161
  }, j = () => {
2162
- !C.value || !A.content || C.value.setContent(i(A.content));
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(i(F));
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(Y(F));
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, Y(A)), F.$tippy = N);
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), D = () => {
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 i = () => hQ(C);
2300
- g.to && (typeof Element < "u" && g.to instanceof Element ? i = () => g.to : g.to === "parent" ? i = () => {
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) && (i = () => document.querySelector(g.to)));
2304
- const Y = cQ(i, D());
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 && Y.setContent(() => M.value);
2308
+ k && D.setContent(() => M.value);
2309
2309
  });
2310
- }), Cg(Y.state, () => {
2311
- B("state", Hg(Y.state));
2310
+ }), Cg(D.state, () => {
2311
+ B("state", Hg(D.state));
2312
2312
  }, { immediate: !0, deep: !0 }), Cg(() => g, () => {
2313
- Y.setProps(D()), k && Y.setContent(() => M.value);
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
- ...Y
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((D, i) => {
2667
- var Y;
2668
- if ((Y = window.ramp) != null && Y.spaAddAds) {
2669
- B.value = !0, D(window.ramp);
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"), i(I.value);
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, D(window.ramp));
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((D, i) => {
2703
- var Y;
2704
- if ((Y = window.adsbygoogle) != null && Y.loaded) {
2705
- B.value = !0, D(window.adsbygoogle);
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"), i(I.value);
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, D(window.adsbygoogle));
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,36 @@ 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: A } = yQ(), { waitForGoogle: B } = xQ(), I = x(), C = x(), Q = x(), M = x(Math.random() <= 1e-3);
2752
- function w() {
2753
- const D = [];
2754
- if ({}.VITE_USE_PLAYWIRE === "true" && D.push(A), {}.VITE_USE_GOOGLE_ADSENSE === "true" && D.push(B), D.length === 0) {
2755
- I.value = !1, console.debug("Footer: No ad providers configured, skipping ad check.");
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(D.map((i) => i())).then(() => {
2759
- I.value = !0;
2760
+ Promise.race(o.map((D) => D())).then(() => {
2761
+ C.value = !0;
2760
2762
  }).catch(() => {
2761
- I.value = !1;
2763
+ C.value = !1;
2762
2764
  });
2763
2765
  }
2764
- return XA(() => w()), Cg(I, (D) => {
2765
- D !== void 0 && (Q.value && C.value ? (console.log(`Footer: Ads enabled = ${D}`), Q.value.style.display = D ? "none" : "", C.value.style.display = D ? "" : "none") : console.warn("Footer: begging or adblock ref is not set properly"));
2766
- }), (D, i) => (O(), X(xg, null, [
2767
- D.patreon ? iA("", !0) : (O(), X(xg, { key: 0 }, [
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
2771
  style: { display: "none" },
2770
2772
  class: "mb-4",
2771
2773
  ref_key: "adblock",
2772
- ref: C
2774
+ ref: Q
2773
2775
  }, [
2774
- v(D.$slots, "ad", {}, () => [
2775
- i[0] || (i[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
+ v(o.$slots, "ad", {}, () => [
2777
+ 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
2778
  U("p", { class: "text-white" }, "Advertisement goes here")
2777
2779
  ], -1))
2778
2780
  ])
@@ -2783,9 +2785,9 @@ const OQ = {
2783
2785
  target: "_blank",
2784
2786
  href: "https://patreon.com/wastedondestiny",
2785
2787
  ref_key: "begging",
2786
- ref: Q
2788
+ ref: M
2787
2789
  }, [
2788
- M.value ? (O(), X("img", OQ)) : (O(), X("p", VQ, i[1] || (i[1] = [
2790
+ w.value ? (O(), X("img", OQ)) : (O(), X("p", VQ, D[1] || (D[1] = [
2789
2791
  z(" I ", -1),
2790
2792
  U("em", null, "feel", -1),
2791
2793
  z(" you – ", -1),
@@ -2800,17 +2802,17 @@ const OQ = {
2800
2802
  ], 64)),
2801
2803
  U("footer", mQ, [
2802
2804
  U("span", pQ, [
2803
- v(D.$slots, "default", {}, () => [
2805
+ v(o.$slots, "default", {}, () => [
2804
2806
  U("span", null, "© François (binarmorker) Allard " + oA((/* @__PURE__ */ new Date()).getFullYear()), 1)
2805
2807
  ]),
2806
- i[7] || (i[7] = U("span", { class: "hidden sm:inline" }, "|", -1)),
2808
+ D[7] || (D[7] = U("span", { class: "hidden sm:inline" }, "|", -1)),
2807
2809
  U("span", HQ, [
2808
2810
  $g(IA, null, {
2809
- content: T(() => i[2] || (i[2] = [
2811
+ content: T(() => D[2] || (D[2] = [
2810
2812
  U("p", null, "Support me monthly on Patreon!", -1)
2811
2813
  ])),
2812
2814
  default: T(() => [
2813
- i[3] || (i[3] = U("a", {
2815
+ D[3] || (D[3] = U("a", {
2814
2816
  target: "_blank",
2815
2817
  href: "https://www.patreon.com/wastedondestiny",
2816
2818
  class: "font-bold shadow-black/50 text-shadow-sm opacity-75 hover:opacity-100"
@@ -2819,13 +2821,13 @@ const OQ = {
2819
2821
  _: 1,
2820
2822
  __: [3]
2821
2823
  }),
2822
- i[6] || (i[6] = U("span", null, "|", -1)),
2824
+ D[6] || (D[6] = U("span", null, "|", -1)),
2823
2825
  $g(IA, null, {
2824
- content: T(() => i[4] || (i[4] = [
2826
+ content: T(() => D[4] || (D[4] = [
2825
2827
  U("p", null, "Support me one time via Ko-Fi!", -1)
2826
2828
  ])),
2827
2829
  default: T(() => [
2828
- i[5] || (i[5] = U("a", {
2830
+ D[5] || (D[5] = U("a", {
2829
2831
  target: "_blank",
2830
2832
  href: "https://ko-fi.com/binarmorker",
2831
2833
  class: "font-bold shadow-black/50 text-shadow-sm opacity-75 hover:opacity-100"
@@ -2836,21 +2838,21 @@ const OQ = {
2836
2838
  })
2837
2839
  ])
2838
2840
  ]),
2839
- i[12] || (i[12] = U("span", { class: "hidden lg:inline" }, "|", -1)),
2841
+ D[12] || (D[12] = U("span", { class: "hidden lg:inline" }, "|", -1)),
2840
2842
  U("span", rQ, [
2841
2843
  U("span", ZQ, [
2842
- i[9] || (i[9] = U("a", {
2844
+ D[9] || (D[9] = U("a", {
2843
2845
  target: "_blank",
2844
2846
  href: "https://discord.wastedondestiny.com",
2845
2847
  class: "opacity-75 hover:opacity-100"
2846
2848
  }, "Support", -1)),
2847
- i[10] || (i[10] = U("span", null, "|", -1)),
2848
- v(D.$slots, "privacy", {}, () => [
2849
- i[8] || (i[8] = z(" Privacy ", -1))
2849
+ D[10] || (D[10] = U("span", null, "|", -1)),
2850
+ v(o.$slots, "privacy", {}, () => [
2851
+ D[8] || (D[8] = z(" Privacy ", -1))
2850
2852
  ])
2851
2853
  ]),
2852
- i[11] || (i[11] = U("span", { class: "hidden sm:inline" }, "|", -1)),
2853
- D.about ? (O(), X("a", WQ, "Return to top")) : D.patreon ? (O(), X("a", dQ, "Return to " + oA(D.name), 1)) : (O(), X("a", zQ, "About " + oA(D.name), 1))
2854
+ D[11] || (D[11] = U("span", { class: "hidden sm:inline" }, "|", -1)),
2855
+ 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
2856
  ])
2855
2857
  ])
2856
2858
  ], 64));
@@ -3038,15 +3040,15 @@ function hE(g, A = 100, B = 0) {
3038
3040
  const I = g.map((w) => Math.round(w * Math.pow(10, B)) / Math.pow(10, B));
3039
3041
  if (Math.round(A * Math.pow(10, B)) / Math.pow(10, B) !== A)
3040
3042
  throw new Error("The forced sum cannot be achieved with the given decimals.");
3041
- const C = A - I.reduce((w, D) => w + D, 0);
3043
+ const C = A - I.reduce((w, i) => w + i, 0);
3042
3044
  if (C === 0)
3043
3045
  return I;
3044
3046
  const Q = Math.pow(0.1, B) * Math.sign(C);
3045
3047
  let M = [];
3046
- C < 0 ? M = g.map((w, D) => ({ x: w, index: D })).sort((w, D) => w.x - I[w.index] - (D.x - I[D.index])).map((w) => w.index) : M = g.map((w, D) => ({ x: w, index: D })).sort((w, D) => D.x - I[D.index] - (w.x - I[w.index])).map((w) => w.index);
3048
+ 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
3049
  for (let w = 0; w < Math.floor(C / Q); w++) {
3048
- const D = M[w % M.length];
3049
- I[D] += Q;
3050
+ const i = M[w % M.length];
3051
+ I[i] += Q;
3050
3052
  }
3051
3053
  return I;
3052
3054
  }