UNPKG

@blueking/app-select

Version:

基于蓝鲸 Magicbox 和 Vue 的前端业务组件

1,594 lines (1,588 loc) 108 kB
import { defineComponent as br, createElementBlock as M, openBlock as _, createElementVNode as te, createCommentVNode as oe, shallowRef as Fn, computed as k, watch as ct, customRef as La, ref as Ht, getCurrentInstance as Ra, reactive as $a, onBeforeUnmount as _n, useTemplateRef as Mt, mergeProps as Hn, unref as H, Fragment as ur, renderList as Ga, normalizeClass as Mr, createVNode as Ft, createTextVNode as nt, toDisplayString as Se, renderSlot as Lt, createBlock as Mn, useSlots as ja, onMounted as ka, normalizeStyle as Va } from "vue"; var V = "top", J = "bottom", Q = "right", W = "left", Er = "auto", gt = [V, J, Q, W], ke = "start", ft = "end", Wa = "clippingParents", Ln = "viewport", tt = "popper", Ka = "reference", Lr = /* @__PURE__ */ gt.reduce(function(e, t) { return e.concat([t + "-" + ke, t + "-" + ft]); }, []), Rn = /* @__PURE__ */ [].concat(gt, [Er]).reduce(function(e, t) { return e.concat([t, t + "-" + ke, t + "-" + ft]); }, []), Za = "beforeRead", za = "read", Xa = "afterRead", Ya = "beforeMain", qa = "main", Ja = "afterMain", Qa = "beforeWrite", ei = "write", ti = "afterWrite", ri = [Za, za, Xa, Ya, qa, Ja, Qa, ei, ti]; function se(e) { return e ? (e.nodeName || "").toLowerCase() : null; } function X(e) { if (e == null) return window; if (e.toString() !== "[object Window]") { var t = e.ownerDocument; return t && t.defaultView || window; } return e; } function Pe(e) { var t = X(e).Element; return e instanceof t || e instanceof Element; } function q(e) { var t = X(e).HTMLElement; return e instanceof t || e instanceof HTMLElement; } function Or(e) { if (typeof ShadowRoot > "u") return !1; var t = X(e).ShadowRoot; return e instanceof t || e instanceof ShadowRoot; } function ni(e) { var t = e.state; Object.keys(t.elements).forEach(function(r) { var n = t.styles[r] || {}, a = t.attributes[r] || {}, i = t.elements[r]; !q(i) || !se(i) || (Object.assign(i.style, n), Object.keys(a).forEach(function(u) { var s = a[u]; s === !1 ? i.removeAttribute(u) : i.setAttribute(u, s === !0 ? "" : s); })); }); } function ai(e) { var t = e.state, r = { popper: { position: t.options.strategy, left: "0", top: "0", margin: "0" }, arrow: { position: "absolute" }, reference: {} }; return Object.assign(t.elements.popper.style, r.popper), t.styles = r, t.elements.arrow && Object.assign(t.elements.arrow.style, r.arrow), function() { Object.keys(t.elements).forEach(function(n) { var a = t.elements[n], i = t.attributes[n] || {}, u = Object.keys(t.styles.hasOwnProperty(n) ? t.styles[n] : r[n]), s = u.reduce(function(c, f) { return c[f] = "", c; }, {}); !q(a) || !se(a) || (Object.assign(a.style, s), Object.keys(i).forEach(function(c) { a.removeAttribute(c); })); }); }; } const $n = { name: "applyStyles", enabled: !0, phase: "write", fn: ni, effect: ai, requires: ["computeStyles"] }; function ue(e) { return e.split("-")[0]; } var Ue = Math.max, Rt = Math.min, Ve = Math.round; function sr() { var e = navigator.userAgentData; return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) { return t.brand + "/" + t.version; }).join(" ") : navigator.userAgent; } function Gn() { return !/^((?!chrome|android).)*safari/i.test(sr()); } function We(e, t, r) { t === void 0 && (t = !1), r === void 0 && (r = !1); var n = e.getBoundingClientRect(), a = 1, i = 1; t && q(e) && (a = e.offsetWidth > 0 && Ve(n.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && Ve(n.height) / e.offsetHeight || 1); var u = Pe(e) ? X(e) : window, s = u.visualViewport, c = !Gn() && r, f = (n.left + (c && s ? s.offsetLeft : 0)) / a, l = (n.top + (c && s ? s.offsetTop : 0)) / i, h = n.width / a, g = n.height / i; return { width: h, height: g, top: l, right: f + h, bottom: l + g, left: f, x: f, y: l }; } function Nr(e) { var t = We(e), r = e.offsetWidth, n = e.offsetHeight; return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), { x: e.offsetLeft, y: e.offsetTop, width: r, height: n }; } function jn(e, t) { var r = t.getRootNode && t.getRootNode(); if (e.contains(t)) return !0; if (r && Or(r)) { var n = t; do { if (n && e.isSameNode(n)) return !0; n = n.parentNode || n.host; } while (n); } return !1; } function me(e) { return X(e).getComputedStyle(e); } function ii(e) { return ["table", "td", "th"].indexOf(se(e)) >= 0; } function we(e) { return ((Pe(e) ? e.ownerDocument : ( // $FlowFixMe[prop-missing] e.document )) || window.document).documentElement; } function kt(e) { return se(e) === "html" ? e : ( // this is a quicker (but less type safe) way to save quite some bytes from the bundle // $FlowFixMe[incompatible-return] // $FlowFixMe[prop-missing] e.assignedSlot || // step into the shadow DOM of the parent of a slotted node e.parentNode || // DOM Element detected (Or(e) ? e.host : null) || // ShadowRoot detected // $FlowFixMe[incompatible-call]: HTMLElement is a Node we(e) ); } function Rr(e) { return !q(e) || // https://github.com/popperjs/popper-core/issues/837 me(e).position === "fixed" ? null : e.offsetParent; } function oi(e) { var t = /firefox/i.test(sr()), r = /Trident/i.test(sr()); if (r && q(e)) { var n = me(e); if (n.position === "fixed") return null; } var a = kt(e); for (Or(a) && (a = a.host); q(a) && ["html", "body"].indexOf(se(a)) < 0; ) { var i = me(a); if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || t && i.willChange === "filter" || t && i.filter && i.filter !== "none") return a; a = a.parentNode; } return null; } function mt(e) { for (var t = X(e), r = Rr(e); r && ii(r) && me(r).position === "static"; ) r = Rr(r); return r && (se(r) === "html" || se(r) === "body" && me(r).position === "static") ? t : r || oi(e) || t; } function wr(e) { return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y"; } function at(e, t, r) { return Ue(e, Rt(t, r)); } function ui(e, t, r) { var n = at(e, t, r); return n > r ? r : n; } function kn() { return { top: 0, right: 0, bottom: 0, left: 0 }; } function Vn(e) { return Object.assign({}, kn(), e); } function Wn(e, t) { return t.reduce(function(r, n) { return r[n] = e, r; }, {}); } var si = function(t, r) { return t = typeof t == "function" ? t(Object.assign({}, r.rects, { placement: r.placement })) : t, Vn(typeof t != "number" ? t : Wn(t, gt)); }; function ci(e) { var t, r = e.state, n = e.name, a = e.options, i = r.elements.arrow, u = r.modifiersData.popperOffsets, s = ue(r.placement), c = wr(s), f = [W, Q].indexOf(s) >= 0, l = f ? "height" : "width"; if (!(!i || !u)) { var h = si(a.padding, r), g = Nr(i), d = c === "y" ? V : W, m = c === "y" ? J : Q, E = r.rects.reference[l] + r.rects.reference[c] - u[c] - r.rects.popper[l], A = u[c] - r.rects.reference[c], y = mt(i), N = y ? c === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, I = E / 2 - A / 2, o = h[d], O = N - g[l] - h[m], v = N / 2 - g[l] / 2 + I, C = at(o, v, O), x = c; r.modifiersData[n] = (t = {}, t[x] = C, t.centerOffset = C - v, t); } } function fi(e) { var t = e.state, r = e.options, n = r.element, a = n === void 0 ? "[data-popper-arrow]" : n; a != null && (typeof a == "string" && (a = t.elements.popper.querySelector(a), !a) || jn(t.elements.popper, a) && (t.elements.arrow = a)); } const li = { name: "arrow", enabled: !0, phase: "main", fn: ci, effect: fi, requires: ["popperOffsets"], requiresIfExists: ["preventOverflow"] }; function Ke(e) { return e.split("-")[1]; } var pi = { top: "auto", right: "auto", bottom: "auto", left: "auto" }; function di(e, t) { var r = e.x, n = e.y, a = t.devicePixelRatio || 1; return { x: Ve(r * a) / a || 0, y: Ve(n * a) / a || 0 }; } function $r(e) { var t, r = e.popper, n = e.popperRect, a = e.placement, i = e.variation, u = e.offsets, s = e.position, c = e.gpuAcceleration, f = e.adaptive, l = e.roundOffsets, h = e.isFixed, g = u.x, d = g === void 0 ? 0 : g, m = u.y, E = m === void 0 ? 0 : m, A = typeof l == "function" ? l({ x: d, y: E }) : { x: d, y: E }; d = A.x, E = A.y; var y = u.hasOwnProperty("x"), N = u.hasOwnProperty("y"), I = W, o = V, O = window; if (f) { var v = mt(r), C = "clientHeight", x = "clientWidth"; if (v === X(r) && (v = we(r), me(v).position !== "static" && s === "absolute" && (C = "scrollHeight", x = "scrollWidth")), v = v, a === V || (a === W || a === Q) && i === ft) { o = J; var U = h && v === O && O.visualViewport ? O.visualViewport.height : ( // $FlowFixMe[prop-missing] v[C] ); E -= U - n.height, E *= c ? 1 : -1; } if (a === W || (a === V || a === J) && i === ft) { I = Q; var B = h && v === O && O.visualViewport ? O.visualViewport.width : ( // $FlowFixMe[prop-missing] v[x] ); d -= B - n.width, d *= c ? 1 : -1; } } var L = Object.assign({ position: s }, f && pi), F = l === !0 ? di({ x: d, y: E }, X(r)) : { x: d, y: E }; if (d = F.x, E = F.y, c) { var P; return Object.assign({}, L, (P = {}, P[o] = N ? "0" : "", P[I] = y ? "0" : "", P.transform = (O.devicePixelRatio || 1) <= 1 ? "translate(" + d + "px, " + E + "px)" : "translate3d(" + d + "px, " + E + "px, 0)", P)); } return Object.assign({}, L, (t = {}, t[o] = N ? E + "px" : "", t[I] = y ? d + "px" : "", t.transform = "", t)); } function vi(e) { var t = e.state, r = e.options, n = r.gpuAcceleration, a = n === void 0 ? !0 : n, i = r.adaptive, u = i === void 0 ? !0 : i, s = r.roundOffsets, c = s === void 0 ? !0 : s, f = { placement: ue(t.placement), variation: Ke(t.placement), popper: t.elements.popper, popperRect: t.rects.popper, gpuAcceleration: a, isFixed: t.options.strategy === "fixed" }; t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, $r(Object.assign({}, f, { offsets: t.modifiersData.popperOffsets, position: t.options.strategy, adaptive: u, roundOffsets: c })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, $r(Object.assign({}, f, { offsets: t.modifiersData.arrow, position: "absolute", adaptive: !1, roundOffsets: c })))), t.attributes.popper = Object.assign({}, t.attributes.popper, { "data-popper-placement": t.placement }); } const hi = { name: "computeStyles", enabled: !0, phase: "beforeWrite", fn: vi, data: {} }; var St = { passive: !0 }; function gi(e) { var t = e.state, r = e.instance, n = e.options, a = n.scroll, i = a === void 0 ? !0 : a, u = n.resize, s = u === void 0 ? !0 : u, c = X(t.elements.popper), f = [].concat(t.scrollParents.reference, t.scrollParents.popper); return i && f.forEach(function(l) { l.addEventListener("scroll", r.update, St); }), s && c.addEventListener("resize", r.update, St), function() { i && f.forEach(function(l) { l.removeEventListener("scroll", r.update, St); }), s && c.removeEventListener("resize", r.update, St); }; } const mi = { name: "eventListeners", enabled: !0, phase: "write", fn: function() { }, effect: gi, data: {} }; var yi = { left: "right", right: "left", bottom: "top", top: "bottom" }; function _t(e) { return e.replace(/left|right|bottom|top/g, function(t) { return yi[t]; }); } var Ai = { start: "end", end: "start" }; function Gr(e) { return e.replace(/start|end/g, function(t) { return Ai[t]; }); } function Ir(e) { var t = X(e), r = t.pageXOffset, n = t.pageYOffset; return { scrollLeft: r, scrollTop: n }; } function xr(e) { return We(we(e)).left + Ir(e).scrollLeft; } function bi(e, t) { var r = X(e), n = we(e), a = r.visualViewport, i = n.clientWidth, u = n.clientHeight, s = 0, c = 0; if (a) { i = a.width, u = a.height; var f = Gn(); (f || !f && t === "fixed") && (s = a.offsetLeft, c = a.offsetTop); } return { width: i, height: u, x: s + xr(e), y: c }; } function Ei(e) { var t, r = we(e), n = Ir(e), a = (t = e.ownerDocument) == null ? void 0 : t.body, i = Ue(r.scrollWidth, r.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), u = Ue(r.scrollHeight, r.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), s = -n.scrollLeft + xr(e), c = -n.scrollTop; return me(a || r).direction === "rtl" && (s += Ue(r.clientWidth, a ? a.clientWidth : 0) - i), { width: i, height: u, x: s, y: c }; } function Cr(e) { var t = me(e), r = t.overflow, n = t.overflowX, a = t.overflowY; return /auto|scroll|overlay|hidden/.test(r + a + n); } function Kn(e) { return ["html", "body", "#document"].indexOf(se(e)) >= 0 ? e.ownerDocument.body : q(e) && Cr(e) ? e : Kn(kt(e)); } function it(e, t) { var r; t === void 0 && (t = []); var n = Kn(e), a = n === ((r = e.ownerDocument) == null ? void 0 : r.body), i = X(n), u = a ? [i].concat(i.visualViewport || [], Cr(n) ? n : []) : n, s = t.concat(u); return a ? s : ( // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here s.concat(it(kt(u))) ); } function cr(e) { return Object.assign({}, e, { left: e.x, top: e.y, right: e.x + e.width, bottom: e.y + e.height }); } function Oi(e, t) { var r = We(e, !1, t === "fixed"); return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r; } function jr(e, t, r) { return t === Ln ? cr(bi(e, r)) : Pe(t) ? Oi(t, r) : cr(Ei(we(e))); } function Ni(e) { var t = it(kt(e)), r = ["absolute", "fixed"].indexOf(me(e).position) >= 0, n = r && q(e) ? mt(e) : e; return Pe(n) ? t.filter(function(a) { return Pe(a) && jn(a, n) && se(a) !== "body"; }) : []; } function wi(e, t, r, n) { var a = t === "clippingParents" ? Ni(e) : [].concat(t), i = [].concat(a, [r]), u = i[0], s = i.reduce(function(c, f) { var l = jr(e, f, n); return c.top = Ue(l.top, c.top), c.right = Rt(l.right, c.right), c.bottom = Rt(l.bottom, c.bottom), c.left = Ue(l.left, c.left), c; }, jr(e, u, n)); return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s; } function Zn(e) { var t = e.reference, r = e.element, n = e.placement, a = n ? ue(n) : null, i = n ? Ke(n) : null, u = t.x + t.width / 2 - r.width / 2, s = t.y + t.height / 2 - r.height / 2, c; switch (a) { case V: c = { x: u, y: t.y - r.height }; break; case J: c = { x: u, y: t.y + t.height }; break; case Q: c = { x: t.x + t.width, y: s }; break; case W: c = { x: t.x - r.width, y: s }; break; default: c = { x: t.x, y: t.y }; } var f = a ? wr(a) : null; if (f != null) { var l = f === "y" ? "height" : "width"; switch (i) { case ke: c[f] = c[f] - (t[l] / 2 - r[l] / 2); break; case ft: c[f] = c[f] + (t[l] / 2 - r[l] / 2); break; } } return c; } function lt(e, t) { t === void 0 && (t = {}); var r = t, n = r.placement, a = n === void 0 ? e.placement : n, i = r.strategy, u = i === void 0 ? e.strategy : i, s = r.boundary, c = s === void 0 ? Wa : s, f = r.rootBoundary, l = f === void 0 ? Ln : f, h = r.elementContext, g = h === void 0 ? tt : h, d = r.altBoundary, m = d === void 0 ? !1 : d, E = r.padding, A = E === void 0 ? 0 : E, y = Vn(typeof A != "number" ? A : Wn(A, gt)), N = g === tt ? Ka : tt, I = e.rects.popper, o = e.elements[m ? N : g], O = wi(Pe(o) ? o : o.contextElement || we(e.elements.popper), c, l, u), v = We(e.elements.reference), C = Zn({ reference: v, element: I, placement: a }), x = cr(Object.assign({}, I, C)), U = g === tt ? x : v, B = { top: O.top - U.top + y.top, bottom: U.bottom - O.bottom + y.bottom, left: O.left - U.left + y.left, right: U.right - O.right + y.right }, L = e.modifiersData.offset; if (g === tt && L) { var F = L[a]; Object.keys(B).forEach(function(P) { var K = [Q, J].indexOf(P) >= 0 ? 1 : -1, Z = [V, J].indexOf(P) >= 0 ? "y" : "x"; B[P] += F[Z] * K; }); } return B; } function Ii(e, t) { t === void 0 && (t = {}); var r = t, n = r.placement, a = r.boundary, i = r.rootBoundary, u = r.padding, s = r.flipVariations, c = r.allowedAutoPlacements, f = c === void 0 ? Rn : c, l = Ke(n), h = l ? s ? Lr : Lr.filter(function(m) { return Ke(m) === l; }) : gt, g = h.filter(function(m) { return f.indexOf(m) >= 0; }); g.length === 0 && (g = h); var d = g.reduce(function(m, E) { return m[E] = lt(e, { placement: E, boundary: a, rootBoundary: i, padding: u })[ue(E)], m; }, {}); return Object.keys(d).sort(function(m, E) { return d[m] - d[E]; }); } function xi(e) { if (ue(e) === Er) return []; var t = _t(e); return [Gr(e), t, Gr(t)]; } function Ci(e) { var t = e.state, r = e.options, n = e.name; if (!t.modifiersData[n]._skip) { for (var a = r.mainAxis, i = a === void 0 ? !0 : a, u = r.altAxis, s = u === void 0 ? !0 : u, c = r.fallbackPlacements, f = r.padding, l = r.boundary, h = r.rootBoundary, g = r.altBoundary, d = r.flipVariations, m = d === void 0 ? !0 : d, E = r.allowedAutoPlacements, A = t.options.placement, y = ue(A), N = y === A, I = c || (N || !m ? [_t(A)] : xi(A)), o = [A].concat(I).reduce(function(le, ee) { return le.concat(ue(ee) === Er ? Ii(t, { placement: ee, boundary: l, rootBoundary: h, padding: f, flipVariations: m, allowedAutoPlacements: E }) : ee); }, []), O = t.rects.reference, v = t.rects.popper, C = /* @__PURE__ */ new Map(), x = !0, U = o[0], B = 0; B < o.length; B++) { var L = o[B], F = ue(L), P = Ke(L) === ke, K = [V, J].indexOf(F) >= 0, Z = K ? "width" : "height", $ = lt(t, { placement: L, boundary: l, rootBoundary: h, altBoundary: g, padding: f }), G = K ? P ? Q : W : P ? J : V; O[Z] > v[Z] && (G = _t(G)); var R = _t(G), re = []; if (i && re.push($[F] <= 0), s && re.push($[G] <= 0, $[R] <= 0), re.every(function(le) { return le; })) { U = L, x = !1; break; } C.set(L, re); } if (x) for (var ne = m ? 3 : 1, Ie = function(ee) { var pe = o.find(function(He) { var de = C.get(He); if (de) return de.slice(0, ee).every(function(Me) { return Me; }); }); if (pe) return U = pe, "break"; }, ae = ne; ae > 0; ae--) { var xe = Ie(ae); if (xe === "break") break; } t.placement !== U && (t.modifiersData[n]._skip = !0, t.placement = U, t.reset = !0); } } const Ti = { name: "flip", enabled: !0, phase: "main", fn: Ci, requiresIfExists: ["offset"], data: { _skip: !1 } }; function kr(e, t, r) { return r === void 0 && (r = { x: 0, y: 0 }), { top: e.top - t.height - r.y, right: e.right - t.width + r.x, bottom: e.bottom - t.height + r.y, left: e.left - t.width - r.x }; } function Vr(e) { return [V, Q, J, W].some(function(t) { return e[t] >= 0; }); } function Di(e) { var t = e.state, r = e.name, n = t.rects.reference, a = t.rects.popper, i = t.modifiersData.preventOverflow, u = lt(t, { elementContext: "reference" }), s = lt(t, { altBoundary: !0 }), c = kr(u, n), f = kr(s, a, i), l = Vr(c), h = Vr(f); t.modifiersData[r] = { referenceClippingOffsets: c, popperEscapeOffsets: f, isReferenceHidden: l, hasPopperEscaped: h }, t.attributes.popper = Object.assign({}, t.attributes.popper, { "data-popper-reference-hidden": l, "data-popper-escaped": h }); } const Si = { name: "hide", enabled: !0, phase: "main", requiresIfExists: ["preventOverflow"], fn: Di }; function Ui(e, t, r) { var n = ue(e), a = [W, V].indexOf(n) >= 0 ? -1 : 1, i = typeof r == "function" ? r(Object.assign({}, t, { placement: e })) : r, u = i[0], s = i[1]; return u = u || 0, s = (s || 0) * a, [W, Q].indexOf(n) >= 0 ? { x: s, y: u } : { x: u, y: s }; } function Pi(e) { var t = e.state, r = e.options, n = e.name, a = r.offset, i = a === void 0 ? [0, 0] : a, u = Rn.reduce(function(l, h) { return l[h] = Ui(h, t.rects, i), l; }, {}), s = u[t.placement], c = s.x, f = s.y; t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += c, t.modifiersData.popperOffsets.y += f), t.modifiersData[n] = u; } const Bi = { name: "offset", enabled: !0, phase: "main", requires: ["popperOffsets"], fn: Pi }; function Fi(e) { var t = e.state, r = e.name; t.modifiersData[r] = Zn({ reference: t.rects.reference, element: t.rects.popper, placement: t.placement }); } const _i = { name: "popperOffsets", enabled: !0, phase: "read", fn: Fi, data: {} }; function Hi(e) { return e === "x" ? "y" : "x"; } function Mi(e) { var t = e.state, r = e.options, n = e.name, a = r.mainAxis, i = a === void 0 ? !0 : a, u = r.altAxis, s = u === void 0 ? !1 : u, c = r.boundary, f = r.rootBoundary, l = r.altBoundary, h = r.padding, g = r.tether, d = g === void 0 ? !0 : g, m = r.tetherOffset, E = m === void 0 ? 0 : m, A = lt(t, { boundary: c, rootBoundary: f, padding: h, altBoundary: l }), y = ue(t.placement), N = Ke(t.placement), I = !N, o = wr(y), O = Hi(o), v = t.modifiersData.popperOffsets, C = t.rects.reference, x = t.rects.popper, U = typeof E == "function" ? E(Object.assign({}, t.rects, { placement: t.placement })) : E, B = typeof U == "number" ? { mainAxis: U, altAxis: U } : Object.assign({ mainAxis: 0, altAxis: 0 }, U), L = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, F = { x: 0, y: 0 }; if (v) { if (i) { var P, K = o === "y" ? V : W, Z = o === "y" ? J : Q, $ = o === "y" ? "height" : "width", G = v[o], R = G + A[K], re = G - A[Z], ne = d ? -x[$] / 2 : 0, Ie = N === ke ? C[$] : x[$], ae = N === ke ? -x[$] : -C[$], xe = t.elements.arrow, le = d && xe ? Nr(xe) : { width: 0, height: 0 }, ee = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : kn(), pe = ee[K], He = ee[Z], de = at(0, C[$], le[$]), Me = I ? C[$] / 2 - ne - de - pe - B.mainAxis : Ie - de - pe - B.mainAxis, be = I ? -C[$] / 2 + ne + de + He + B.mainAxis : ae + de + He + B.mainAxis, Le = t.elements.arrow && mt(t.elements.arrow), At = Le ? o === "y" ? Le.clientTop || 0 : Le.clientLeft || 0 : 0, Ye = (P = L?.[o]) != null ? P : 0, bt = G + Me - Ye - At, Et = G + be - Ye, qe = at(d ? Rt(R, bt) : R, G, d ? Ue(re, Et) : re); v[o] = qe, F[o] = qe - G; } if (s) { var Je, Ot = o === "x" ? V : W, Nt = o === "x" ? J : Q, ve = v[O], Ee = O === "y" ? "height" : "width", Qe = ve + A[Ot], Ce = ve - A[Nt], et = [V, W].indexOf(y) !== -1, wt = (Je = L?.[O]) != null ? Je : 0, It = et ? Qe : ve - C[Ee] - x[Ee] - wt + B.altAxis, xt = et ? ve + C[Ee] + x[Ee] - wt - B.altAxis : Ce, Ct = d && et ? ui(It, ve, xt) : at(d ? It : Qe, ve, d ? xt : Ce); v[O] = Ct, F[O] = Ct - ve; } t.modifiersData[n] = F; } } const Li = { name: "preventOverflow", enabled: !0, phase: "main", fn: Mi, requiresIfExists: ["offset"] }; function Ri(e) { return { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop }; } function $i(e) { return e === X(e) || !q(e) ? Ir(e) : Ri(e); } function Gi(e) { var t = e.getBoundingClientRect(), r = Ve(t.width) / e.offsetWidth || 1, n = Ve(t.height) / e.offsetHeight || 1; return r !== 1 || n !== 1; } function ji(e, t, r) { r === void 0 && (r = !1); var n = q(t), a = q(t) && Gi(t), i = we(t), u = We(e, a, r), s = { scrollLeft: 0, scrollTop: 0 }, c = { x: 0, y: 0 }; return (n || !n && !r) && ((se(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078 Cr(i)) && (s = $i(t)), q(t) ? (c = We(t, !0), c.x += t.clientLeft, c.y += t.clientTop) : i && (c.x = xr(i))), { x: u.left + s.scrollLeft - c.x, y: u.top + s.scrollTop - c.y, width: u.width, height: u.height }; } function ki(e) { var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = []; e.forEach(function(i) { t.set(i.name, i); }); function a(i) { r.add(i.name); var u = [].concat(i.requires || [], i.requiresIfExists || []); u.forEach(function(s) { if (!r.has(s)) { var c = t.get(s); c && a(c); } }), n.push(i); } return e.forEach(function(i) { r.has(i.name) || a(i); }), n; } function Vi(e) { var t = ki(e); return ri.reduce(function(r, n) { return r.concat(t.filter(function(a) { return a.phase === n; })); }, []); } function Wi(e) { var t; return function() { return t || (t = new Promise(function(r) { Promise.resolve().then(function() { t = void 0, r(e()); }); })), t; }; } function Ki(e) { var t = e.reduce(function(r, n) { var a = r[n.name]; return r[n.name] = a ? Object.assign({}, a, n, { options: Object.assign({}, a.options, n.options), data: Object.assign({}, a.data, n.data) }) : n, r; }, {}); return Object.keys(t).map(function(r) { return t[r]; }); } var Wr = { placement: "bottom", modifiers: [], strategy: "absolute" }; function Kr() { for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r]; return !t.some(function(n) { return !(n && typeof n.getBoundingClientRect == "function"); }); } function Zi(e) { e === void 0 && (e = {}); var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, a = t.defaultOptions, i = a === void 0 ? Wr : a; return function(s, c, f) { f === void 0 && (f = i); var l = { placement: "bottom", orderedModifiers: [], options: Object.assign({}, Wr, i), modifiersData: {}, elements: { reference: s, popper: c }, attributes: {}, styles: {} }, h = [], g = !1, d = { state: l, setOptions: function(y) { var N = typeof y == "function" ? y(l.options) : y; E(), l.options = Object.assign({}, i, l.options, N), l.scrollParents = { reference: Pe(s) ? it(s) : s.contextElement ? it(s.contextElement) : [], popper: it(c) }; var I = Vi(Ki([].concat(n, l.options.modifiers))); return l.orderedModifiers = I.filter(function(o) { return o.enabled; }), m(), d.update(); }, // Sync update – it will always be executed, even if not necessary. This // is useful for low frequency updates where sync behavior simplifies the // logic. // For high frequency updates (e.g. `resize` and `scroll` events), always // prefer the async Popper#update method forceUpdate: function() { if (!g) { var y = l.elements, N = y.reference, I = y.popper; if (Kr(N, I)) { l.rects = { reference: ji(N, mt(I), l.options.strategy === "fixed"), popper: Nr(I) }, l.reset = !1, l.placement = l.options.placement, l.orderedModifiers.forEach(function(B) { return l.modifiersData[B.name] = Object.assign({}, B.data); }); for (var o = 0; o < l.orderedModifiers.length; o++) { if (l.reset === !0) { l.reset = !1, o = -1; continue; } var O = l.orderedModifiers[o], v = O.fn, C = O.options, x = C === void 0 ? {} : C, U = O.name; typeof v == "function" && (l = v({ state: l, options: x, name: U, instance: d }) || l); } } } }, // Async and optimistically optimized update – it will not be executed if // not necessary (debounced to run at most once-per-tick) update: Wi(function() { return new Promise(function(A) { d.forceUpdate(), A(l); }); }), destroy: function() { E(), g = !0; } }; if (!Kr(s, c)) return d; d.setOptions(f).then(function(A) { !g && f.onFirstUpdate && f.onFirstUpdate(A); }); function m() { l.orderedModifiers.forEach(function(A) { var y = A.name, N = A.options, I = N === void 0 ? {} : N, o = A.effect; if (typeof o == "function") { var O = o({ state: l, name: y, instance: d, options: I }), v = function() { }; h.push(O || v); } }); } function E() { h.forEach(function(A) { return A(); }), h = []; } return d; }; } var zi = [mi, _i, hi, $n, Bi, Ti, Li, li, Si], Xi = /* @__PURE__ */ Zi({ defaultModifiers: zi }), Yi = "tippy-box", zn = "tippy-content", qi = "tippy-backdrop", Xn = "tippy-arrow", Yn = "tippy-svg-arrow", De = { passive: !0, capture: !0 }, qn = function() { return document.body; }; function Ji(e, t) { return {}.hasOwnProperty.call(e, t); } function Yt(e, t, r) { if (Array.isArray(e)) { var n = e[t]; return n ?? (Array.isArray(r) ? r[t] : r); } return e; } function Tr(e, t) { var r = {}.toString.call(e); return r.indexOf("[object") === 0 && r.indexOf(t + "]") > -1; } function Jn(e, t) { return typeof e == "function" ? e.apply(void 0, t) : e; } function Zr(e, t) { if (t === 0) return e; var r; return function(n) { clearTimeout(r), r = setTimeout(function() { e(n); }, t); }; } function Qi(e, t) { var r = Object.assign({}, e); return t.forEach(function(n) { delete r[n]; }), r; } function eo(e) { return e.split(/\s+/).filter(Boolean); } function je(e) { return [].concat(e); } function zr(e, t) { e.indexOf(t) === -1 && e.push(t); } function to(e) { return e.filter(function(t, r) { return e.indexOf(t) === r; }); } function ro(e) { return e.split("-")[0]; } function $t(e) { return [].slice.call(e); } function Xr(e) { return Object.keys(e).reduce(function(t, r) { return e[r] !== void 0 && (t[r] = e[r]), t; }, {}); } function ot() { return document.createElement("div"); } function pt(e) { return ["Element", "Fragment"].some(function(t) { return Tr(e, t); }); } function no(e) { return Tr(e, "NodeList"); } function ao(e) { return Tr(e, "MouseEvent"); } function io(e) { return !!(e && e._tippy && e._tippy.reference === e); } function oo(e) { return pt(e) ? [e] : no(e) ? $t(e) : Array.isArray(e) ? e : $t(document.querySelectorAll(e)); } function qt(e, t) { e.forEach(function(r) { r && (r.style.transitionDuration = t + "ms"); }); } function Yr(e, t) { e.forEach(function(r) { r && r.setAttribute("data-state", t); }); } function uo(e) { var t, r = je(e), n = r[0]; return n != null && (t = n.ownerDocument) != null && t.body ? n.ownerDocument : document; } function so(e, t) { var r = t.clientX, n = t.clientY; return e.every(function(a) { var i = a.popperRect, u = a.popperState, s = a.props, c = s.interactiveBorder, f = ro(u.placement), l = u.modifiersData.offset; if (!l) return !0; var h = f === "bottom" ? l.top.y : 0, g = f === "top" ? l.bottom.y : 0, d = f === "right" ? l.left.x : 0, m = f === "left" ? l.right.x : 0, E = i.top - n + h > c, A = n - i.bottom - g > c, y = i.left - r + d > c, N = r - i.right - m > c; return E || A || y || N; }); } function Jt(e, t, r) { var n = t + "EventListener"; ["transitionend", "webkitTransitionEnd"].forEach(function(a) { e[n](a, r); }); } function qr(e, t) { for (var r = t; r; ) { var n; if (e.contains(r)) return !0; r = r.getRootNode == null || (n = r.getRootNode()) == null ? void 0 : n.host; } return !1; } var ie = { isTouch: !1 }, Jr = 0; function co() { ie.isTouch || (ie.isTouch = !0, window.performance && document.addEventListener("mousemove", Qn)); } function Qn() { var e = performance.now(); e - Jr < 20 && (ie.isTouch = !1, document.removeEventListener("mousemove", Qn)), Jr = e; } function fo() { var e = document.activeElement; if (io(e)) { var t = e._tippy; e.blur && !t.state.isVisible && e.blur(); } } function lo() { document.addEventListener("touchstart", co, De), window.addEventListener("blur", fo); } var po = typeof window < "u" && typeof document < "u", vo = po ? ( // @ts-ignore !!window.msCrypto ) : !1; function Ge(e) { var t = e === "destroy" ? "n already-" : " "; return [e + "() was called on a" + t + "destroyed instance. This is a no-op but", "indicates a potential memory leak."].join(" "); } function Qr(e) { var t = /[ \t]{2,}/g, r = /^[ \t]*/gm; return e.replace(t, " ").replace(r, "").trim(); } function ho(e) { return Qr(` %ctippy.js %c` + Qr(e) + ` %c👷‍ This is a development-only message. It will be removed in production. `); } function ea(e) { return [ ho(e), // title "color: #00C584; font-size: 1.3em; font-weight: bold;", // message "line-height: 1.5", // footer "color: #a6a095;" ]; } var dt; process.env.NODE_ENV !== "production" && go(); function go() { dt = /* @__PURE__ */ new Set(); } function he(e, t) { if (e && !dt.has(t)) { var r; dt.add(t), (r = console).warn.apply(r, ea(t)); } } function fr(e, t) { if (e && !dt.has(t)) { var r; dt.add(t), (r = console).error.apply(r, ea(t)); } } function mo(e) { var t = !e, r = Object.prototype.toString.call(e) === "[object Object]" && !e.addEventListener; fr(t, ["tippy() was passed", "`" + String(e) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), fr(r, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" ")); } var ta = { animateFill: !1, followCursor: !1, inlinePositioning: !1, sticky: !1 }, yo = { allowHTML: !1, animation: "fade", arrow: !0, content: "", inertia: !1, maxWidth: 350, role: "tooltip", theme: "", zIndex: 9999 }, z = Object.assign({ appendTo: qn, aria: { content: "auto", expanded: "auto" }, delay: 0, duration: [300, 250], getReferenceClientRect: null, hideOnClick: !0, ignoreAttributes: !1, interactive: !1, interactiveBorder: 2, interactiveDebounce: 0, moveTransition: "", offset: [0, 10], onAfterUpdate: function() { }, onBeforeUpdate: function() { }, onCreate: function() { }, onDestroy: function() { }, onHidden: function() { }, onHide: function() { }, onMount: function() { }, onShow: function() { }, onShown: function() { }, onTrigger: function() { }, onUntrigger: function() { }, onClickOutside: function() { }, placement: "top", plugins: [], popperOptions: {}, render: null, showOnCreate: !1, touch: !0, trigger: "mouseenter focus", triggerTarget: null }, ta, yo), Ao = Object.keys(z), bo = function(t) { process.env.NODE_ENV !== "production" && na(t, []); var r = Object.keys(t); r.forEach(function(n) { z[n] = t[n]; }); }; function ra(e) { var t = e.plugins || [], r = t.reduce(function(n, a) { var i = a.name, u = a.defaultValue; if (i) { var s; n[i] = e[i] !== void 0 ? e[i] : (s = z[i]) != null ? s : u; } return n; }, {}); return Object.assign({}, e, r); } function Eo(e, t) { var r = t ? Object.keys(ra(Object.assign({}, z, { plugins: t }))) : Ao, n = r.reduce(function(a, i) { var u = (e.getAttribute("data-tippy-" + i) || "").trim(); if (!u) return a; if (i === "content") a[i] = u; else try { a[i] = JSON.parse(u); } catch { a[i] = u; } return a; }, {}); return n; } function en(e, t) { var r = Object.assign({}, t, { content: Jn(t.content, [e]) }, t.ignoreAttributes ? {} : Eo(e, t.plugins)); return r.aria = Object.assign({}, z.aria, r.aria), r.aria = { expanded: r.aria.expanded === "auto" ? t.interactive : r.aria.expanded, content: r.aria.content === "auto" ? t.interactive ? null : "describedby" : r.aria.content }, r; } function na(e, t) { e === void 0 && (e = {}), t === void 0 && (t = []); var r = Object.keys(e); r.forEach(function(n) { var a = Qi(z, Object.keys(ta)), i = !Ji(a, n); i && (i = t.filter(function(u) { return u.name === n; }).length === 0), he(i, ["`" + n + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", ` `, `All props: https://atomiks.github.io/tippyjs/v6/all-props/ `, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" ")); }); } var Oo = function() { return "innerHTML"; }; function lr(e, t) { e[Oo()] = t; } function tn(e) { var t = ot(); return e === !0 ? t.className = Xn : (t.className = Yn, pt(e) ? t.appendChild(e) : lr(t, e)), t; } function rn(e, t) { pt(t.content) ? (lr(e, ""), e.appendChild(t.content)) : typeof t.content != "function" && (t.allowHTML ? lr(e, t.content) : e.textContent = t.content); } function pr(e) { var t = e.firstElementChild, r = $t(t.children); return { box: t, content: r.find(function(n) { return n.classList.contains(zn); }), arrow: r.find(function(n) { return n.classList.contains(Xn) || n.classList.contains(Yn); }), backdrop: r.find(function(n) { return n.classList.contains(qi); }) }; } function aa(e) { var t = ot(), r = ot(); r.className = Yi, r.setAttribute("data-state", "hidden"), r.setAttribute("tabindex", "-1"); var n = ot(); n.className = zn, n.setAttribute("data-state", "hidden"), rn(n, e.props), t.appendChild(r), r.appendChild(n), a(e.props, e.props); function a(i, u) { var s = pr(t), c = s.box, f = s.content, l = s.arrow; u.theme ? c.setAttribute("data-theme", u.theme) : c.removeAttribute("data-theme"), typeof u.animation == "string" ? c.setAttribute("data-animation", u.animation) : c.removeAttribute("data-animation"), u.inertia ? c.setAttribute("data-inertia", "") : c.removeAttribute("data-inertia"), c.style.maxWidth = typeof u.maxWidth == "number" ? u.maxWidth + "px" : u.maxWidth, u.role ? c.setAttribute("role", u.role) : c.removeAttribute("role"), (i.content !== u.content || i.allowHTML !== u.allowHTML) && rn(f, e.props), u.arrow ? l ? i.arrow !== u.arrow && (c.removeChild(l), c.appendChild(tn(u.arrow))) : c.appendChild(tn(u.arrow)) : l && c.removeChild(l); } return { popper: t, onUpdate: a }; } aa.$$tippy = !0; var No = 1, Ut = [], Qt = []; function wo(e, t) { var r = en(e, Object.assign({}, z, ra(Xr(t)))), n, a, i, u = !1, s = !1, c = !1, f = !1, l, h, g, d = [], m = Zr(bt, r.interactiveDebounce), E, A = No++, y = null, N = to(r.plugins), I = { // Is the instance currently enabled? isEnabled: !0, // Is the tippy currently showing and not transitioning out? isVisible: !1, // Has the instance been destroyed? isDestroyed: !1, // Is the tippy currently mounted to the DOM? isMounted: !1, // Has the tippy finished transitioning in? isShown: !1 }, o = { // properties id: A, reference: e, popper: ot(), popperInstance: y, props: r, state: I, plugins: N, // methods clearDelayTimeouts: It, setProps: xt, setContent: Ct, show: Pa, hide: Ba, hideWithInteractivity: Fa, enable: et, disable: wt, unmount: _a, destroy: Ha }; if (!r.render) return process.env.NODE_ENV !== "production" && fr(!0, "render() function has not been supplied."), o; var O = r.render(o), v = O.popper, C = O.onUpdate; v.setAttribute("data-tippy-root", ""), v.id = "tippy-" + o.id, o.popper = v, e._tippy = o, v._tippy = o; var x = N.map(function(p) { return p.fn(o); }), U = e.hasAttribute("aria-expanded"); return Le(), ne(), G(), R("onCreate", [o]), r.showOnCreate && Qe(), v.addEventListener("mouseenter", function() { o.props.interactive && o.state.isVisible && o.clearDelayTimeouts(); }), v.addEventListener("mouseleave", function() { o.props.interactive && o.props.trigger.indexOf("mouseenter") >= 0 && K().addEventListener("mousemove", m); }), o; function B() { var p = o.props.touch; return Array.isArray(p) ? p : [p, 0]; } function L() { return B()[0] === "hold"; } function F() { var p; return !!((p = o.props.render) != null && p.$$tippy); } function P() { return E || e; } function K() { var p = P().parentNode; return p ? uo(p) : document; } function Z() { return pr(v); } function $(p) { return o.state.isMounted && !o.state.isVisible || ie.isTouch || l && l.type === "focus" ? 0 : Yt(o.props.delay, p ? 0 : 1, z.delay); } function G(p) { p === void 0 && (p = !1), v.style.pointerEvents = o.props.interactive && !p ? "" : "none", v.style.zIndex = "" + o.props.zIndex; } function R(p, b, w) { if (w === void 0 && (w = !0), x.forEach(function(T) { T[p] && T[p].apply(T, b); }), w) { var D; (D = o.props)[p].apply(D, b); } } function re() { var p = o.props.aria; if (p.content) { var b = "aria-" + p.content, w = v.id, D = je(o.props.triggerTarget || e); D.forEach(function(T) { var j = T.getAttribute(b); if (o.state.isVisible) T.setAttribute(b, j ? j + " " + w : w); else { var Y = j && j.replace(w, "").trim(); Y ? T.setAttribute(b, Y) : T.removeAttribute(b); } }); } } function ne() { if (!(U || !o.props.aria.expanded)) { var p = je(o.props.triggerTarget || e); p.forEach(function(b) { o.props.interactive ? b.setAttribute("aria-expanded", o.state.isVisible && b === P() ? "true" : "false") : b.removeAttribute("aria-expanded"); }); } } function Ie() { K().removeEventListener("mousemove", m), Ut = Ut.filter(function(p) { return p !== m; }); } function ae(p) { if (!(ie.isTouch && (c || p.type === "mousedown"))) { var b = p.composedPath && p.composedPath()[0] || p.target; if (!(o.props.interactive && qr(v, b))) { if (je(o.props.triggerTarget || e).some(function(w) { return qr(w, b); })) { if (ie.isTouch || o.state.isVisible && o.props.trigger.indexOf("click") >= 0) return; } else R("onClickOutside", [o, p]); o.props.hideOnClick === !0 && (o.clearDelayTimeouts(), o.hide(), s = !0, setTimeout(function() { s = !1; }), o.state.isMounted || pe()); } } } function xe() { c = !0; } function le() { c = !1; } function ee() { var p = K(); p.addEventListener("mousedown", ae, !0), p.addEventListener("touchend", ae, De), p.addEventListener("touchstart", le, De), p.addEventListener("touchmove", xe, De); } function pe() { var p = K(); p.removeEventListener("mousedown", ae, !0), p.removeEventListener("touchend", ae, De), p.removeEventListener("touchstart", le, De), p.removeEventListener("touchmove", xe, De); } function He(p, b) { Me(p, function() { !o.state.isVisible && v.parentNode && v.parentNode.contains(v) && b(); }); } function de(p, b) { Me(p, b); } function Me(p, b) { var w = Z().box; function D(T) { T.target === w && (Jt(w, "remove", D), b()); } if (p === 0) return b(); Jt(w, "remove", h), Jt(w, "add", D), h = D; } function be(p, b, w) { w === void 0 && (w = !1); var D = je(o.props.triggerTarget || e); D.forEach(function(T) { T.addEventListener(p, b, w), d.push({ node: T, eventType: p, handler: b, options: w }); }); } function Le() { L() && (be("touchstart", Ye, { passive: !0 }), be("touchend", Et, { passive: !0 })), eo(o.props.trigger).forEach(function(p) { if (p !== "manual") switch (be(p, Ye), p) { case "mouseenter": be("mouseleave", Et); break; case "focus": be(vo ? "focusout" : "blur", qe); break; case "focusin": be("focusout", qe); break; } }); } function At() { d.forEach(function(p) { var b = p.node, w = p.eventType, D = p.handler, T = p.options; b.removeEventListener(w, D, T); }), d = []; } function Ye(p) { var b, w = !1; if (!(!o.state.isEnabled || Je(p) || s)) { var D = ((b = l) == null ? void 0 : b.type) === "focus"; l = p, E = p.currentTarget, ne(), !o.state.isVisible && ao(p) && Ut.forEach(function(T) { return T(p); }), p.type === "click" && (o.props.trigger.indexOf("mouseenter") < 0 || u) && o.props.hideOnClick !== !1 && o.state.isVisible ? w = !0 : Qe(p), p.type === "click" && (u = !w), w && !D && Ce(p); } } function bt(p) { var b = p.target, w = P().contains(b) || v.contains(b); if (!(p.type === "mousemove" && w)) { var D = Ee().concat(v).map(function(T) { var j, Y = T._tippy, Re = (j = Y.popperInstance) == null ? void 0 : j.state; return Re ? { popperRect: T.getBoundingClientRect(), popperState: Re, props: r } : null; }).filter(Boolean); so(D, p) && (Ie(), Ce(p)); } } function Et(p) { var b = Je(p) || o.props.trigger.indexOf("click") >= 0 && u; if (!b) { if (o.props.interactive) { o.hideWithInteractivity(p); return; } Ce(p); } } function qe(p) { o.props.trigger.indexOf("focusin") < 0 && p.target !== P() || o.props.interactive && p.relatedTarget && v.contains(p.relatedTarget) || Ce(p); } function Je(p) { return ie.isTouch ? L() !== p.type.indexOf("touch") >= 0 : !1; } function Ot() { Nt(); var p = o.props, b = p.popperOptions, w = p.placement, D = p.offset, T = p.getReferenceClientRect, j = p.moveTransition, Y = F() ? pr(v).arrow : null, Re = T ? { getBoundingClientRect: T, contextElement: T.contextElement || P() } : e, Hr = { name: "$$tippy", enabled: !0, phase: "beforeWrite", requires: ["computeStyles"], fn: function(Tt) { var $e = Tt.state; if (F()) { var Ma = Z(), Xt = Ma.box; ["placement", "reference-hidden", "escaped"].forEach(function(Dt) { Dt === "placement" ? Xt.setAttribute("data-placement", $e.placement) : $e.attributes.popper["data-popper-" + Dt] ? Xt.setAttribute("data-" + Dt, "") : Xt.removeAttribute("data-" + Dt); }), $e.attributes.popper = {}; } } }, Te = [{ name: "offset", options: { offset: D } }, { name: "preventOverflow", options: { padding: { top: 2, bottom: 2, left: 5, right: 5 } } }, { name: "flip", options: { padding: 5 } }, { name: "computeStyles", options: { adaptive: !j } }, Hr]; F() && Y && Te.push({ name: "arrow", options: { element: Y, padding: 3 } }), Te.push.apply(Te, b?.modifiers || []), o.popperInstance = Xi(Re, v, Object.assign({}, b, { placement: w, onFirstUpdate: g, modifiers: Te })); } function Nt() { o.popperInstance && (o.popperInstance.destroy(), o.popperInstance = null); } function ve() { var p = o.props.appendTo, b, w = P(); o.props.interactive && p === qn || p === "parent" ? b = w.parentNode : b = Jn(p, [w]), b.contains(v) || b.appendChild(v), o.state.isMounted = !0, Ot(), process.env.NODE_ENV !== "production" && he(o.props.interactive && p === z.appendTo && w.nextElementSibling !== v, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", ` `, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", ` `, "Specifying `appendTo: document.body` silences this warning, but it", "assumes you are using a focus management solution to handle", "keyboard navigation.", ` `, "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" ")); } function Ee() { return $t(v.querySelectorAll("[data-tippy-root]")); } function Qe(p) { o.clearDelayTimeouts(), p && R("onTrigger", [o, p]), ee(); var b = $(!0), w = B(), D = w[0], T = w[1]; ie.isTouch && D === "hold" && T && (b = T), b ? n = setTimeout(function() { o.show(); }, b) : o.show(); } function Ce(p) { if (o.clearDelayTimeouts(), R("onUntrigger", [o, p]), !o.state.isVisible) { pe(); return; } if (!(o.props.trigger.indexOf("mouseenter") >= 0 && o.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(p.type) >= 0 && u)) { var b = $(!1); b ? a = setTimeout(function() { o.state.isVisible && o.hide(); }, b) : i = requestAnimationFrame(function() { o.hide(); }); } } function et() { o.state.isEnabled = !0; } function