@yeepay/virtual-keyboard
Version:
YeePay Virtual Keyboard Component
1,535 lines • 499 kB
JavaScript
import { getCurrentInstance as JA, inject as qe, ref as J, computed as X, unref as N, shallowRef as Zs, watchEffect as uc, readonly as Xi, getCurrentScope as Ys, onScopeDispose as Qs, watch as de, warn as lc, defineComponent as we, provide as fA, renderSlot as Ye, onBeforeUnmount as Ut, createElementBlock as ue, openBlock as ne, normalizeStyle as Xs, normalizeClass as kt, withDirectives as on, cloneVNode as hc, Comment as N0, Fragment as Kt, Text as dc, createVNode as er, onMounted as $t, createBlock as vt, createCommentVNode as Lt, mergeProps as sr, withCtx as Ue, nextTick as Qr, toRef as bA, Teleport as pc, onBeforeMount as xc, Transition as vc, vShow as gc, onDeactivated as wc, toDisplayString as iA, createTextVNode as yc, createElementVNode as le, renderList as tA, withModifiers as HA, vModelText as mc, customRef as Cc, onUnmounted as bc, resolveDynamicComponent as Ec } from "vue";
const Rn = "el", Oc = "is-", Xt = (t, e, A, r, n) => {
let i = `${t}-${e}`;
return A && (i += `-${A}`), r && (i += `__${r}`), n && (i += `--${n}`), i;
}, Bc = Symbol("namespaceContextKey"), Ji = (t) => {
const e = JA() ? qe(Bc, J(Rn)) : J(Rn);
return X(() => N(e) || Rn);
}, lA = (t, e) => {
const A = Ji();
return {
namespace: A,
b: (d = "") => Xt(A.value, t, d, "", ""),
e: (d) => d ? Xt(A.value, t, "", d, "") : "",
m: (d) => d ? Xt(A.value, t, "", "", d) : "",
be: (d, v) => d && v ? Xt(A.value, t, d, v, "") : "",
em: (d, v) => d && v ? Xt(A.value, t, "", d, v) : "",
bm: (d, v) => d && v ? Xt(A.value, t, d, "", v) : "",
bem: (d, v, b) => d && v && b ? Xt(A.value, t, d, v, b) : "",
is: (d, ...v) => {
const b = v.length >= 1 ? v[0] : !0;
return d && b ? `${Oc}${d}` : "";
},
cssVar: (d) => {
const v = {};
for (const b in d)
d[b] && (v[`--${A.value}-${b}`] = d[b]);
return v;
},
cssVarName: (d) => `--${A.value}-${d}`,
cssVarBlock: (d) => {
const v = {};
for (const b in d)
d[b] && (v[`--${A.value}-${t}-${b}`] = d[b]);
return v;
},
cssVarBlockName: (d) => `--${A.value}-${t}-${d}`
};
};
/**
* @vue/shared v3.5.22
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
process.env.NODE_ENV !== "production" && Object.freeze({});
process.env.NODE_ENV !== "production" && Object.freeze([]);
const zi = () => {
}, Dc = Object.prototype.hasOwnProperty, H0 = (t, e) => Dc.call(t, e), Js = Array.isArray, Dr = (t) => typeof t == "function", e0 = (t) => typeof t == "string", t0 = (t) => t !== null && typeof t == "object";
var Ic = typeof global == "object" && global && global.Object === Object && global, Fc = typeof self == "object" && self && self.Object === Object && self, A0 = Ic || Fc || Function("return this")(), qt = A0.Symbol, ea = Object.prototype, Tc = ea.hasOwnProperty, Sc = ea.toString, LA = qt ? qt.toStringTag : void 0;
function jc(t) {
var e = Tc.call(t, LA), A = t[LA];
try {
t[LA] = void 0;
var r = !0;
} catch (i) {
}
var n = Sc.call(t);
return r && (e ? t[LA] = A : delete t[LA]), n;
}
var _c = Object.prototype, Pc = _c.toString;
function Kc(t) {
return Pc.call(t);
}
var Rc = "[object Null]", zc = "[object Undefined]", L0 = qt ? qt.toStringTag : void 0;
function r0(t) {
return t == null ? t === void 0 ? zc : Rc : L0 && L0 in Object(t) ? jc(t) : Kc(t);
}
function n0(t) {
return t != null && typeof t == "object";
}
var Mc = "[object Symbol]";
function i0(t) {
return typeof t == "symbol" || n0(t) && r0(t) == Mc;
}
function kc(t, e) {
for (var A = -1, r = t == null ? 0 : t.length, n = Array(r); ++A < r; )
n[A] = e(t[A], A, t);
return n;
}
var ar = Array.isArray, q0 = qt ? qt.prototype : void 0, U0 = q0 ? q0.toString : void 0;
function ta(t) {
if (typeof t == "string")
return t;
if (ar(t))
return kc(t, ta) + "";
if (i0(t))
return U0 ? U0.call(t) : "";
var e = t + "";
return e == "0" && 1 / t == -1 / 0 ? "-0" : e;
}
function Xr(t) {
var e = typeof t;
return t != null && (e == "object" || e == "function");
}
function Nc(t) {
return t;
}
var Hc = "[object AsyncFunction]", Lc = "[object Function]", qc = "[object GeneratorFunction]", Uc = "[object Proxy]";
function $c(t) {
if (!Xr(t))
return !1;
var e = r0(t);
return e == Lc || e == qc || e == Hc || e == Uc;
}
var zn = A0["__core-js_shared__"], $0 = function() {
var t = /[^.]+$/.exec(zn && zn.keys && zn.keys.IE_PROTO || "");
return t ? "Symbol(src)_1." + t : "";
}();
function Vc(t) {
return !!$0 && $0 in t;
}
var Wc = Function.prototype, Gc = Wc.toString;
function Zc(t) {
if (t != null) {
try {
return Gc.call(t);
} catch (e) {
}
try {
return t + "";
} catch (e) {
}
}
return "";
}
var Yc = /[\\^$.*+?()[\]{}|]/g, Qc = /^\[object .+?Constructor\]$/, Xc = Function.prototype, Jc = Object.prototype, eu = Xc.toString, tu = Jc.hasOwnProperty, Au = RegExp(
"^" + eu.call(tu).replace(Yc, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
);
function ru(t) {
if (!Xr(t) || Vc(t))
return !1;
var e = $c(t) ? Au : Qc;
return e.test(Zc(t));
}
function nu(t, e) {
return t == null ? void 0 : t[e];
}
function o0(t, e) {
var A = nu(t, e);
return ru(A) ? A : void 0;
}
function iu(t, e, A) {
switch (A.length) {
case 0:
return t.call(e);
case 1:
return t.call(e, A[0]);
case 2:
return t.call(e, A[0], A[1]);
case 3:
return t.call(e, A[0], A[1], A[2]);
}
return t.apply(e, A);
}
var ou = 800, su = 16, au = Date.now;
function fu(t) {
var e = 0, A = 0;
return function() {
var r = au(), n = su - (r - A);
if (A = r, n > 0) {
if (++e >= ou)
return arguments[0];
} else
e = 0;
return t.apply(void 0, arguments);
};
}
function cu(t) {
return function() {
return t;
};
}
var Jr = function() {
try {
var t = o0(Object, "defineProperty");
return t({}, "", {}), t;
} catch (e) {
}
}(), uu = Jr ? function(t, e) {
return Jr(t, "toString", {
configurable: !0,
enumerable: !1,
value: cu(e),
writable: !0
});
} : Nc, lu = fu(uu), hu = 9007199254740991, du = /^(?:0|[1-9]\d*)$/;
function Aa(t, e) {
var A = typeof t;
return e = e == null ? hu : e, !!e && (A == "number" || A != "symbol" && du.test(t)) && t > -1 && t % 1 == 0 && t < e;
}
function pu(t, e, A) {
e == "__proto__" && Jr ? Jr(t, e, {
configurable: !0,
enumerable: !0,
value: A,
writable: !0
}) : t[e] = A;
}
function ra(t, e) {
return t === e || t !== t && e !== e;
}
var xu = Object.prototype, vu = xu.hasOwnProperty;
function gu(t, e, A) {
var r = t[e];
(!(vu.call(t, e) && ra(r, A)) || A === void 0 && !(e in t)) && pu(t, e, A);
}
var V0 = Math.max;
function wu(t, e, A) {
return e = V0(e === void 0 ? t.length - 1 : e, 0), function() {
for (var r = arguments, n = -1, i = V0(r.length - e, 0), o = Array(i); ++n < i; )
o[n] = r[e + n];
n = -1;
for (var s = Array(e + 1); ++n < e; )
s[n] = r[n];
return s[e] = A(o), iu(t, this, s);
};
}
var yu = 9007199254740991;
function mu(t) {
return typeof t == "number" && t > -1 && t % 1 == 0 && t <= yu;
}
var Cu = "[object Arguments]";
function W0(t) {
return n0(t) && r0(t) == Cu;
}
var na = Object.prototype, bu = na.hasOwnProperty, Eu = na.propertyIsEnumerable, ia = W0(/* @__PURE__ */ function() {
return arguments;
}()) ? W0 : function(t) {
return n0(t) && bu.call(t, "callee") && !Eu.call(t, "callee");
}, Ou = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Bu = /^\w*$/;
function Du(t, e) {
if (ar(t))
return !1;
var A = typeof t;
return A == "number" || A == "symbol" || A == "boolean" || t == null || i0(t) ? !0 : Bu.test(t) || !Ou.test(t) || e != null && t in Object(e);
}
var tr = o0(Object, "create");
function Iu() {
this.__data__ = tr ? tr(null) : {}, this.size = 0;
}
function Fu(t) {
var e = this.has(t) && delete this.__data__[t];
return this.size -= e ? 1 : 0, e;
}
var Tu = "__lodash_hash_undefined__", Su = Object.prototype, ju = Su.hasOwnProperty;
function _u(t) {
var e = this.__data__;
if (tr) {
var A = e[t];
return A === Tu ? void 0 : A;
}
return ju.call(e, t) ? e[t] : void 0;
}
var Pu = Object.prototype, Ku = Pu.hasOwnProperty;
function Ru(t) {
var e = this.__data__;
return tr ? e[t] !== void 0 : Ku.call(e, t);
}
var zu = "__lodash_hash_undefined__";
function Mu(t, e) {
var A = this.__data__;
return this.size += this.has(t) ? 0 : 1, A[t] = tr && e === void 0 ? zu : e, this;
}
function cA(t) {
var e = -1, A = t == null ? 0 : t.length;
for (this.clear(); ++e < A; ) {
var r = t[e];
this.set(r[0], r[1]);
}
}
cA.prototype.clear = Iu;
cA.prototype.delete = Fu;
cA.prototype.get = _u;
cA.prototype.has = Ru;
cA.prototype.set = Mu;
function ku() {
this.__data__ = [], this.size = 0;
}
function sn(t, e) {
for (var A = t.length; A--; )
if (ra(t[A][0], e))
return A;
return -1;
}
var Nu = Array.prototype, Hu = Nu.splice;
function Lu(t) {
var e = this.__data__, A = sn(e, t);
if (A < 0)
return !1;
var r = e.length - 1;
return A == r ? e.pop() : Hu.call(e, A, 1), --this.size, !0;
}
function qu(t) {
var e = this.__data__, A = sn(e, t);
return A < 0 ? void 0 : e[A][1];
}
function Uu(t) {
return sn(this.__data__, t) > -1;
}
function $u(t, e) {
var A = this.__data__, r = sn(A, t);
return r < 0 ? (++this.size, A.push([t, e])) : A[r][1] = e, this;
}
function KA(t) {
var e = -1, A = t == null ? 0 : t.length;
for (this.clear(); ++e < A; ) {
var r = t[e];
this.set(r[0], r[1]);
}
}
KA.prototype.clear = ku;
KA.prototype.delete = Lu;
KA.prototype.get = qu;
KA.prototype.has = Uu;
KA.prototype.set = $u;
var Vu = o0(A0, "Map");
function Wu() {
this.size = 0, this.__data__ = {
hash: new cA(),
map: new (Vu || KA)(),
string: new cA()
};
}
function Gu(t) {
var e = typeof t;
return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
}
function an(t, e) {
var A = t.__data__;
return Gu(e) ? A[typeof e == "string" ? "string" : "hash"] : A.map;
}
function Zu(t) {
var e = an(this, t).delete(t);
return this.size -= e ? 1 : 0, e;
}
function Yu(t) {
return an(this, t).get(t);
}
function Qu(t) {
return an(this, t).has(t);
}
function Xu(t, e) {
var A = an(this, t), r = A.size;
return A.set(t, e), this.size += A.size == r ? 0 : 1, this;
}
function hA(t) {
var e = -1, A = t == null ? 0 : t.length;
for (this.clear(); ++e < A; ) {
var r = t[e];
this.set(r[0], r[1]);
}
}
hA.prototype.clear = Wu;
hA.prototype.delete = Zu;
hA.prototype.get = Yu;
hA.prototype.has = Qu;
hA.prototype.set = Xu;
var Ju = "Expected a function";
function s0(t, e) {
if (typeof t != "function" || e != null && typeof e != "function")
throw new TypeError(Ju);
var A = function() {
var r = arguments, n = e ? e.apply(this, r) : r[0], i = A.cache;
if (i.has(n))
return i.get(n);
var o = t.apply(this, r);
return A.cache = i.set(n, o) || i, o;
};
return A.cache = new (s0.Cache || hA)(), A;
}
s0.Cache = hA;
var el = 500;
function tl(t) {
var e = s0(t, function(r) {
return A.size === el && A.clear(), r;
}), A = e.cache;
return e;
}
var Al = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, rl = /\\(\\)?/g, nl = tl(function(t) {
var e = [];
return t.charCodeAt(0) === 46 && e.push(""), t.replace(Al, function(A, r, n, i) {
e.push(n ? i.replace(rl, "$1") : r || A);
}), e;
});
function il(t) {
return t == null ? "" : ta(t);
}
function fn(t, e) {
return ar(t) ? t : Du(t, e) ? [t] : nl(il(t));
}
function a0(t) {
if (typeof t == "string" || i0(t))
return t;
var e = t + "";
return e == "0" && 1 / t == -1 / 0 ? "-0" : e;
}
function ol(t, e) {
e = fn(e, t);
for (var A = 0, r = e.length; t != null && A < r; )
t = t[a0(e[A++])];
return A && A == r ? t : void 0;
}
function sl(t, e) {
for (var A = -1, r = e.length, n = t.length; ++A < r; )
t[n + A] = e[A];
return t;
}
var G0 = qt ? qt.isConcatSpreadable : void 0;
function al(t) {
return ar(t) || ia(t) || !!(G0 && t && t[G0]);
}
function fl(t, e, A, r, n) {
var i = -1, o = t.length;
for (A || (A = al), n || (n = []); ++i < o; ) {
var s = t[i];
A(s) ? sl(n, s) : n[n.length] = s;
}
return n;
}
function cl(t) {
var e = t == null ? 0 : t.length;
return e ? fl(t) : [];
}
function ul(t) {
return lu(wu(t, void 0, cl), t + "");
}
function ll(t, e) {
return t != null && e in Object(t);
}
function hl(t, e, A) {
e = fn(e, t);
for (var r = -1, n = e.length, i = !1; ++r < n; ) {
var o = a0(e[r]);
if (!(i = t != null && A(t, o)))
break;
t = t[o];
}
return i || ++r != n ? i : (n = t == null ? 0 : t.length, !!n && mu(n) && Aa(o, n) && (ar(t) || ia(t)));
}
function dl(t, e) {
return t != null && hl(t, e, ll);
}
function Mi(t) {
for (var e = -1, A = t == null ? 0 : t.length, r = {}; ++e < A; ) {
var n = t[e];
r[n[0]] = n[1];
}
return r;
}
function f0(t) {
return t == null;
}
function pl(t) {
return t === void 0;
}
function xl(t, e, A, r) {
if (!Xr(t))
return t;
e = fn(e, t);
for (var n = -1, i = e.length, o = i - 1, s = t; s != null && ++n < i; ) {
var f = a0(e[n]), a = A;
if (f === "__proto__" || f === "constructor" || f === "prototype")
return t;
if (n != o) {
var c = s[f];
a = void 0, a === void 0 && (a = Xr(c) ? c : Aa(e[n + 1]) ? [] : {});
}
gu(s, f, a), s = s[f];
}
return t;
}
function vl(t, e, A) {
for (var r = -1, n = e.length, i = {}; ++r < n; ) {
var o = e[r], s = ol(t, o);
A(s, o) && xl(i, fn(o, t), s);
}
return i;
}
function gl(t, e) {
return vl(t, e, function(A, r) {
return dl(t, r);
});
}
var wl = ul(function(t, e) {
return t == null ? {} : gl(t, e);
});
const c0 = (t) => typeof t == "boolean", Ar = (t) => typeof t == "number", WA = (t) => typeof Element == "undefined" ? !1 : t instanceof Element, yl = (t) => e0(t) ? !Number.isNaN(Number(t)) : !1;
var ml = Object.defineProperty, Cl = Object.defineProperties, bl = Object.getOwnPropertyDescriptors, Z0 = Object.getOwnPropertySymbols, El = Object.prototype.hasOwnProperty, Ol = Object.prototype.propertyIsEnumerable, Y0 = (t, e, A) => e in t ? ml(t, e, { enumerable: !0, configurable: !0, writable: !0, value: A }) : t[e] = A, Bl = (t, e) => {
for (var A in e || (e = {}))
El.call(e, A) && Y0(t, A, e[A]);
if (Z0)
for (var A of Z0(e))
Ol.call(e, A) && Y0(t, A, e[A]);
return t;
}, Dl = (t, e) => Cl(t, bl(e));
function oa(t, e) {
var A;
const r = Zs();
return uc(() => {
r.value = t();
}, Dl(Bl({}, e), {
flush: (A = void 0) != null ? A : "sync"
})), Xi(r);
}
var Q0;
const st = typeof window != "undefined", Il = (t) => typeof t == "string", sa = () => {
}, Fl = st && ((Q0 = window == null ? void 0 : window.navigator) == null ? void 0 : Q0.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
function aa(t) {
return typeof t == "function" ? t() : N(t);
}
function Tl(t) {
return t;
}
function fa(t) {
return Ys() ? (Qs(t), !0) : !1;
}
function rA(t) {
var e;
const A = aa(t);
return (e = A == null ? void 0 : A.$el) != null ? e : A;
}
const ca = st ? window : void 0;
function Mn(...t) {
let e, A, r, n;
if (Il(t[0]) || Array.isArray(t[0]) ? ([A, r, n] = t, e = ca) : [e, A, r, n] = t, !e)
return sa;
Array.isArray(A) || (A = [A]), Array.isArray(r) || (r = [r]);
const i = [], o = () => {
i.forEach((c) => c()), i.length = 0;
}, s = (c, p, u, x) => (c.addEventListener(p, u, x), () => c.removeEventListener(p, u, x)), f = de(() => [rA(e), aa(n)], ([c, p]) => {
o(), c && i.push(...A.flatMap((u) => r.map((x) => s(c, u, x, p))));
}, { immediate: !0, flush: "post" }), a = () => {
f(), o();
};
return fa(a), a;
}
let X0 = !1;
function Sl(t, e, A = {}) {
const { window: r = ca, ignore: n = [], capture: i = !0, detectIframe: o = !1 } = A;
if (!r)
return;
Fl && !X0 && (X0 = !0, Array.from(r.document.body.children).forEach((u) => u.addEventListener("click", sa)));
let s = !0;
const f = (u) => n.some((x) => {
if (typeof x == "string")
return Array.from(r.document.querySelectorAll(x)).some((l) => l === u.target || u.composedPath().includes(l));
{
const l = rA(x);
return l && (u.target === l || u.composedPath().includes(l));
}
}), c = [
Mn(r, "click", (u) => {
const x = rA(t);
if (!(!x || x === u.target || u.composedPath().includes(x))) {
if (u.detail === 0 && (s = !f(u)), !s) {
s = !0;
return;
}
e(u);
}
}, { passive: !0, capture: i }),
Mn(r, "pointerdown", (u) => {
const x = rA(t);
x && (s = !u.composedPath().includes(x) && !f(u));
}, { passive: !0 }),
o && Mn(r, "blur", (u) => {
var x;
const l = rA(t);
((x = r.document.activeElement) == null ? void 0 : x.tagName) === "IFRAME" && !(l != null && l.contains(r.document.activeElement)) && e(u);
})
].filter(Boolean);
return () => c.forEach((u) => u());
}
const J0 = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}, eo = "__vueuse_ssr_handlers__";
J0[eo] = J0[eo] || {};
var to;
(function(t) {
t.UP = "UP", t.RIGHT = "RIGHT", t.DOWN = "DOWN", t.LEFT = "LEFT", t.NONE = "NONE";
})(to || (to = {}));
var jl = Object.defineProperty, Ao = Object.getOwnPropertySymbols, _l = Object.prototype.hasOwnProperty, Pl = Object.prototype.propertyIsEnumerable, ro = (t, e, A) => e in t ? jl(t, e, { enumerable: !0, configurable: !0, writable: !0, value: A }) : t[e] = A, Kl = (t, e) => {
for (var A in e || (e = {}))
_l.call(e, A) && ro(t, A, e[A]);
if (Ao)
for (var A of Ao(e))
Pl.call(e, A) && ro(t, A, e[A]);
return t;
};
const Rl = {
easeInSine: [0.12, 0, 0.39, 0],
easeOutSine: [0.61, 1, 0.88, 1],
easeInOutSine: [0.37, 0, 0.63, 1],
easeInQuad: [0.11, 0, 0.5, 0],
easeOutQuad: [0.5, 1, 0.89, 1],
easeInOutQuad: [0.45, 0, 0.55, 1],
easeInCubic: [0.32, 0, 0.67, 0],
easeOutCubic: [0.33, 1, 0.68, 1],
easeInOutCubic: [0.65, 0, 0.35, 1],
easeInQuart: [0.5, 0, 0.75, 0],
easeOutQuart: [0.25, 1, 0.5, 1],
easeInOutQuart: [0.76, 0, 0.24, 1],
easeInQuint: [0.64, 0, 0.78, 0],
easeOutQuint: [0.22, 1, 0.36, 1],
easeInOutQuint: [0.83, 0, 0.17, 1],
easeInExpo: [0.7, 0, 0.84, 0],
easeOutExpo: [0.16, 1, 0.3, 1],
easeInOutExpo: [0.87, 0, 0.13, 1],
easeInCirc: [0.55, 0, 1, 0.45],
easeOutCirc: [0, 0.55, 0.45, 1],
easeInOutCirc: [0.85, 0, 0.15, 1],
easeInBack: [0.36, 0, 0.66, -0.56],
easeOutBack: [0.34, 1.56, 0.64, 1],
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
};
Kl({
linear: Tl
}, Rl);
const no = {
current: 0
}, io = J(0), zl = 2e3, oo = Symbol("elZIndexContextKey"), Ml = Symbol("zIndexContextKey"), kl = (t) => {
const e = JA() ? qe(oo, no) : no, A = JA() ? qe(Ml, void 0) : void 0, r = X(() => {
const o = N(A);
return Ar(o) ? o : zl;
}), n = X(() => r.value + io.value), i = () => (e.current++, io.value = e.current, n.value);
return !st && qe(oo), {
initialZIndex: r,
currentZIndex: n,
nextZIndex: i
};
}, ua = "__epPropKey", ce = (t) => t, Nl = (t) => t0(t) && !!t[ua], u0 = (t, e) => {
if (!t0(t) || Nl(t))
return t;
const { values: A, required: r, default: n, type: i, validator: o } = t, f = {
type: i,
required: !!r,
validator: A || o ? (a) => {
let c = !1, p = [];
if (A && (p = Array.from(A), H0(t, "default") && p.push(n), c || (c = p.includes(a))), o && (c || (c = o(a))), !c && p.length > 0) {
const u = [...new Set(p)].map((x) => JSON.stringify(x)).join(", ");
lc(`Invalid prop: validation failed${e ? ` for prop "${e}"` : ""}. Expected one of [${u}], got value ${JSON.stringify(a)}.`);
}
return c;
} : void 0,
[ua]: !0
};
return H0(t, "default") && (f.default = n), f;
}, Ke = (t) => Mi(Object.entries(t).map(([e, A]) => [
e,
u0(A, e)
]));
var wt = (t, e) => {
const A = t.__vccOpts || t;
for (const [r, n] of e)
A[r] = n;
return A;
};
function Hl(t, e = "px") {
if (!t)
return "";
if (Ar(t) || yl(t))
return `${t}${e}`;
if (e0(t))
return t;
}
const cn = (t, e) => {
if (t.install = (A) => {
for (const r of [t, ...Object.values(e != null ? e : {})])
A.component(r.name, r);
}, e)
for (const [A, r] of Object.entries(e))
t[A] = r;
return t;
}, Ll = (t, e) => (t.install = (A) => {
A.directive(e, t);
}, t);
function so() {
let t;
const e = (r, n) => {
A(), t = window.setTimeout(r, n);
}, A = () => window.clearTimeout(t);
return fa(() => A()), {
registerTimeout: e,
cancelTimeout: A
};
}
const ql = Ke({
showAfter: {
type: Number,
default: 0
},
hideAfter: {
type: Number,
default: 200
},
autoClose: {
type: Number,
default: 0
}
}), Ul = ({
showAfter: t,
hideAfter: e,
autoClose: A,
open: r,
close: n
}) => {
const { registerTimeout: i } = so(), {
registerTimeout: o,
cancelTimeout: s
} = so();
return {
onOpen: (c, p = N(t)) => {
i(() => {
r(c);
const u = N(A);
Ar(u) && u > 0 && o(() => {
n(c);
}, u);
}, p);
},
onClose: (c, p = N(e)) => {
s(), i(() => {
n(c);
}, p);
}
};
}, $l = ce([
String,
Object,
Function
]), Vl = () => st && /android/i.test(window.navigator.userAgent), Wl = Ke({
ariaLabel: String,
ariaOrientation: {
type: String,
values: ["horizontal", "vertical", "undefined"]
},
ariaControls: String
}), la = (t) => wl(Wl, t), ao = {
prefix: Math.floor(Math.random() * 1e4),
current: 0
}, Gl = Symbol("elIdInjection"), ha = () => JA() ? qe(Gl, ao) : ao, Zl = (t) => {
const e = ha(), A = Ji();
return oa(() => N(t) || `${A.value}-id-${e.prefix}-${e.current++}`);
}, fo = Symbol("formItemContextKey"), co = (t) => typeof Element == "undefined" ? !1 : t instanceof Element, ki = (t) => {
if (t.tabIndex > 0 || t.tabIndex === 0 && t.getAttribute("tabIndex") !== null)
return !0;
if (t.tabIndex < 0 || t.hasAttribute("disabled") || t.getAttribute("aria-disabled") === "true")
return !1;
switch (t.nodeName) {
case "A":
return !!t.href && t.rel !== "ignore";
case "INPUT":
return !(t.type === "hidden" || t.type === "file");
case "BUTTON":
case "SELECT":
case "TEXTAREA":
return !0;
default:
return !1;
}
}, l0 = (t, e) => {
if (!t || !t.focus)
return;
let A = !1;
co(t) && !ki(t) && !t.getAttribute("tabindex") && (t.setAttribute("tabindex", "-1"), A = !0), t.focus(e), co(t) && A && t.removeAttribute("tabindex");
}, h0 = Symbol("popper"), da = Symbol("popperContent"), pa = [
"dialog",
"grid",
"group",
"listbox",
"menu",
"navigation",
"tooltip",
"tree"
], xa = Ke({
role: {
type: String,
values: pa,
default: "tooltip"
}
}), Yl = we({
name: "ElPopper",
inheritAttrs: !1
}), Ql = /* @__PURE__ */ we({
...Yl,
props: xa,
setup(t, { expose: e }) {
const A = t, r = J(), n = J(), i = J(), o = J(), s = X(() => A.role), f = {
triggerRef: r,
popperInstanceRef: n,
contentRef: i,
referenceRef: o,
role: s
};
return e(f), fA(h0, f), (a, c) => Ye(a.$slots, "default");
}
});
var Xl = /* @__PURE__ */ wt(Ql, [["__file", "popper.vue"]]);
const Jl = we({
name: "ElPopperArrow",
inheritAttrs: !1
}), eh = /* @__PURE__ */ we({
...Jl,
setup(t, { expose: e }) {
const A = lA("popper"), { arrowRef: r, arrowStyle: n } = qe(da, void 0);
return Ut(() => {
r.value = void 0;
}), e({
arrowRef: r
}), (i, o) => (ne(), ue("span", {
ref_key: "arrowRef",
ref: r,
class: kt(N(A).e("arrow")),
style: Xs(N(n)),
"data-popper-arrow": ""
}, null, 6));
}
});
var th = /* @__PURE__ */ wt(eh, [["__file", "arrow.vue"]]);
const va = Ke({
virtualRef: {
type: ce(Object)
},
virtualTriggering: Boolean,
onMouseenter: {
type: ce(Function)
},
onMouseleave: {
type: ce(Function)
},
onClick: {
type: ce(Function)
},
onKeydown: {
type: ce(Function)
},
onFocus: {
type: ce(Function)
},
onBlur: {
type: ce(Function)
},
onContextmenu: {
type: ce(Function)
},
id: String,
open: Boolean
}), ga = Symbol("elForwardRef"), Ah = (t) => {
fA(ga, {
setForwardRef: (A) => {
t.value = A;
}
});
}, rh = (t) => ({
mounted(e) {
t(e);
},
updated(e) {
t(e);
},
unmounted() {
t(null);
}
}), nh = "ElOnlyChild", ih = we({
name: nh,
setup(t, {
slots: e,
attrs: A
}) {
var r;
const n = qe(ga), i = rh((r = n == null ? void 0 : n.setForwardRef) != null ? r : zi);
return () => {
var o;
const s = (o = e.default) == null ? void 0 : o.call(e, A);
if (!s)
return null;
const [f, a] = wa(s);
return f ? on(hc(f, A), [[i]]) : null;
};
}
});
function wa(t) {
if (!t)
return [null, 0];
const e = t, A = e.filter((r) => r.type !== N0).length;
for (const r of e) {
if (t0(r))
switch (r.type) {
case N0:
continue;
case dc:
case "svg":
return [uo(r), A];
case Kt:
return wa(r.children);
default:
return [r, A];
}
return [uo(r), A];
}
return [null, 0];
}
function uo(t) {
const e = lA("only-child");
return er("span", {
class: e.e("content")
}, [t]);
}
const oh = we({
name: "ElPopperTrigger",
inheritAttrs: !1
}), sh = /* @__PURE__ */ we({
...oh,
props: va,
setup(t, { expose: e }) {
const A = t, { role: r, triggerRef: n } = qe(h0, void 0);
Ah(n);
const i = X(() => s.value ? A.id : void 0), o = X(() => {
if (r && r.value === "tooltip")
return A.open && A.id ? A.id : void 0;
}), s = X(() => {
if (r && r.value !== "tooltip")
return r.value;
}), f = X(() => s.value ? `${A.open}` : void 0);
let a;
const c = [
"onMouseenter",
"onMouseleave",
"onClick",
"onKeydown",
"onFocus",
"onBlur",
"onContextmenu"
];
return $t(() => {
de(() => A.virtualRef, (p) => {
p && (n.value = rA(p));
}, {
immediate: !0
}), de(n, (p, u) => {
a == null || a(), a = void 0, WA(p) && (c.forEach((x) => {
var l;
const d = A[x];
d && (p.addEventListener(x.slice(2).toLowerCase(), d, ["onFocus", "onBlur"].includes(x)), (l = u == null ? void 0 : u.removeEventListener) == null || l.call(u, x.slice(2).toLowerCase(), d, ["onFocus", "onBlur"].includes(x)));
}), ki(p) && (a = de([i, o, s, f], (x) => {
[
"aria-controls",
"aria-describedby",
"aria-haspopup",
"aria-expanded"
].forEach((l, d) => {
f0(x[d]) ? p.removeAttribute(l) : p.setAttribute(l, x[d]);
});
}, { immediate: !0 }))), WA(u) && ki(u) && [
"aria-controls",
"aria-describedby",
"aria-haspopup",
"aria-expanded"
].forEach((x) => u.removeAttribute(x));
}, {
immediate: !0
});
}), Ut(() => {
if (a == null || a(), a = void 0, n.value && WA(n.value)) {
const p = n.value;
c.forEach((u) => {
const x = A[u];
x && p.removeEventListener(u.slice(2).toLowerCase(), x, ["onFocus", "onBlur"].includes(u));
}), n.value = void 0;
}
}), e({
triggerRef: n
}), (p, u) => p.virtualTriggering ? Lt("v-if", !0) : (ne(), vt(N(ih), sr({ key: 0 }, p.$attrs, {
"aria-controls": N(i),
"aria-describedby": N(o),
"aria-expanded": N(f),
"aria-haspopup": N(s)
}), {
default: Ue(() => [
Ye(p.$slots, "default")
]),
_: 3
}, 16, ["aria-controls", "aria-describedby", "aria-expanded", "aria-haspopup"]));
}
});
var ah = /* @__PURE__ */ wt(sh, [["__file", "trigger.vue"]]);
const kn = "focus-trap.focus-after-trapped", Nn = "focus-trap.focus-after-released", fh = "focus-trap.focusout-prevented", lo = {
cancelable: !0,
bubbles: !1
}, ch = {
cancelable: !0,
bubbles: !1
}, ho = "focusAfterTrapped", po = "focusAfterReleased", uh = Symbol("elFocusTrap"), d0 = J(), un = J(0), p0 = J(0);
let Ir = 0;
const ya = (t) => {
const e = [], A = document.createTreeWalker(t, NodeFilter.SHOW_ELEMENT, {
acceptNode: (r) => {
const n = r.tagName === "INPUT" && r.type === "hidden";
return r.disabled || r.hidden || n ? NodeFilter.FILTER_SKIP : r.tabIndex >= 0 || r === document.activeElement ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
}
});
for (; A.nextNode(); )
e.push(A.currentNode);
return e;
}, xo = (t, e) => {
for (const A of t)
if (!lh(A, e))
return A;
}, lh = (t, e) => {
if (getComputedStyle(t).visibility === "hidden")
return !0;
for (; t; ) {
if (e && t === e)
return !1;
if (getComputedStyle(t).display === "none")
return !0;
t = t.parentElement;
}
return !1;
}, hh = (t) => {
const e = ya(t), A = xo(e, t), r = xo(e.reverse(), t);
return [A, r];
}, dh = (t) => t instanceof HTMLInputElement && "select" in t, St = (t, e) => {
if (t) {
const A = document.activeElement;
l0(t, { preventScroll: !0 }), p0.value = window.performance.now(), t !== A && dh(t) && e && t.select();
}
};
function vo(t, e) {
const A = [...t], r = t.indexOf(e);
return r !== -1 && A.splice(r, 1), A;
}
const ph = () => {
let t = [];
return {
push: (r) => {
const n = t[0];
n && r !== n && n.pause(), t = vo(t, r), t.unshift(r);
},
remove: (r) => {
var n, i;
t = vo(t, r), (i = (n = t[0]) == null ? void 0 : n.resume) == null || i.call(n);
}
};
}, xh = (t, e = !1) => {
const A = document.activeElement;
for (const r of t)
if (St(r, e), document.activeElement !== A)
return;
}, go = ph(), vh = () => un.value > p0.value, Fr = () => {
d0.value = "pointer", un.value = window.performance.now();
}, wo = () => {
d0.value = "keyboard", un.value = window.performance.now();
}, gh = () => ($t(() => {
Ir === 0 && (document.addEventListener("mousedown", Fr), document.addEventListener("touchstart", Fr), document.addEventListener("keydown", wo)), Ir++;
}), Ut(() => {
Ir--, Ir <= 0 && (document.removeEventListener("mousedown", Fr), document.removeEventListener("touchstart", Fr), document.removeEventListener("keydown", wo));
}), {
focusReason: d0,
lastUserFocusTimestamp: un,
lastAutomatedFocusTimestamp: p0
}), Tr = (t) => new CustomEvent(fh, {
...ch,
detail: t
}), it = {
tab: "Tab",
enter: "Enter",
space: "Space",
left: "ArrowLeft",
up: "ArrowUp",
right: "ArrowRight",
down: "ArrowDown",
esc: "Escape",
delete: "Delete",
backspace: "Backspace",
numpadEnter: "NumpadEnter",
pageUp: "PageUp",
pageDown: "PageDown",
home: "Home",
end: "End"
}, Ot = (t, e, { checkForDefaultPrevented: A = !0 } = {}) => (n) => {
const i = t == null ? void 0 : t(n);
if (A === !1 || !i)
return e == null ? void 0 : e(n);
}, x0 = (t) => {
if (t.code && t.code !== "Unidentified")
return t.code;
const e = wh(t);
if (e) {
if (Object.values(it).includes(e))
return e;
switch (e) {
case " ":
return it.space;
default:
return "";
}
}
return "";
}, wh = (t) => {
let e = t.key && t.key !== "Unidentified" ? t.key : "";
if (!e && t.type === "keyup" && Vl()) {
const A = t.target;
e = A.value.charAt(A.selectionStart - 1);
}
return e;
};
let mA = [];
const yo = (t) => {
x0(t) === it.esc && mA.forEach((A) => A(t));
}, yh = (t) => {
$t(() => {
mA.length === 0 && document.addEventListener("keydown", yo), st && mA.push(t);
}), Ut(() => {
mA = mA.filter((e) => e !== t), mA.length === 0 && st && document.removeEventListener("keydown", yo);
});
}, mh = we({
name: "ElFocusTrap",
inheritAttrs: !1,
props: {
loop: Boolean,
trapped: Boolean,
focusTrapEl: Object,
focusStartEl: {
type: [Object, String],
default: "first"
}
},
emits: [
ho,
po,
"focusin",
"focusout",
"focusout-prevented",
"release-requested"
],
setup(t, { emit: e }) {
const A = J();
let r, n;
const { focusReason: i } = gh();
yh((l) => {
t.trapped && !o.paused && e("release-requested", l);
});
const o = {
paused: !1,
pause() {
this.paused = !0;
},
resume() {
this.paused = !1;
}
}, s = (l) => {
if (!t.loop && !t.trapped || o.paused)
return;
const { altKey: d, ctrlKey: v, metaKey: b, currentTarget: y, shiftKey: w } = l, { loop: m } = t, O = x0(l) === it.tab && !d && !v && !b, I = document.activeElement;
if (O && I) {
const T = y, [_, B] = hh(T);
if (_ && B) {
if (!w && I === B) {
const S = Tr({
focusReason: i.value
});
e("focusout-prevented", S), S.defaultPrevented || (l.preventDefault(), m && St(_, !0));
} else if (w && [_, T].includes(I)) {
const S = Tr({
focusReason: i.value
});
e("focusout-prevented", S), S.defaultPrevented || (l.preventDefault(), m && St(B, !0));
}
} else if (I === T) {
const S = Tr({
focusReason: i.value
});
e("focusout-prevented", S), S.defaultPrevented || l.preventDefault();
}
}
};
fA(uh, {
focusTrapRef: A,
onKeydown: s
}), de(() => t.focusTrapEl, (l) => {
l && (A.value = l);
}, { immediate: !0 }), de([A], ([l], [d]) => {
l && (l.addEventListener("keydown", s), l.addEventListener("focusin", c), l.addEventListener("focusout", p)), d && (d.removeEventListener("keydown", s), d.removeEventListener("focusin", c), d.removeEventListener("focusout", p));
});
const f = (l) => {
e(ho, l);
}, a = (l) => e(po, l), c = (l) => {
const d = N(A);
if (!d)
return;
const v = l.target, b = l.relatedTarget, y = v && d.contains(v);
t.trapped || b && d.contains(b) || (r = b), y && e("focusin", l), !o.paused && t.trapped && (y ? n = v : St(n, !0));
}, p = (l) => {
const d = N(A);
if (!(o.paused || !d))
if (t.trapped) {
const v = l.relatedTarget;
!f0(v) && !d.contains(v) && setTimeout(() => {
if (!o.paused && t.trapped) {
const b = Tr({
focusReason: i.value
});
e("focusout-prevented", b), b.defaultPrevented || St(n, !0);
}
}, 0);
} else {
const v = l.target;
v && d.contains(v) || e("focusout", l);
}
};
async function u() {
await Qr();
const l = N(A);
if (l) {
go.push(o);
const d = l.contains(document.activeElement) ? r : document.activeElement;
if (r = d, !l.contains(d)) {
const b = new Event(kn, lo);
l.addEventListener(kn, f), l.dispatchEvent(b), b.defaultPrevented || Qr(() => {
let y = t.focusStartEl;
e0(y) || (St(y), document.activeElement !== y && (y = "first")), y === "first" && xh(ya(l), !0), (document.activeElement === d || y === "container") && St(l);
});
}
}
}
function x() {
const l = N(A);
if (l) {
l.removeEventListener(kn, f);
const d = new CustomEvent(Nn, {
...lo,
detail: {
focusReason: i.value
}
});
l.addEventListener(Nn, a), l.dispatchEvent(d), !d.defaultPrevented && (i.value == "keyboard" || !vh() || l.contains(document.activeElement)) && St(r != null ? r : document.body), l.removeEventListener(Nn, a), go.remove(o), r = null, n = null;
}
}
return $t(() => {
t.trapped && u(), de(() => t.trapped, (l) => {
l ? u() : x();
});
}), Ut(() => {
t.trapped && x(), A.value && (A.value.removeEventListener("keydown", s), A.value.removeEventListener("focusin", c), A.value.removeEventListener("focusout", p), A.value = void 0);
}), {
onKeydown: s
};
}
});
function Ch(t, e, A, r, n, i) {
return Ye(t.$slots, "default", { handleKeydown: t.onKeydown });
}
var bh = /* @__PURE__ */ wt(mh, [["render", Ch], ["__file", "focus-trap.vue"]]), Re = "top", Qe = "bottom", Xe = "right", ze = "left", v0 = "auto", fr = [Re, Qe, Xe, ze], IA = "start", rr = "end", Eh = "clippingParents", ma = "viewport", qA = "popper", Oh = "reference", mo = fr.reduce(function(t, e) {
return t.concat([e + "-" + IA, e + "-" + rr]);
}, []), g0 = [].concat(fr, [v0]).reduce(function(t, e) {
return t.concat([e, e + "-" + IA, e + "-" + rr]);
}, []), Bh = "beforeRead", Dh = "read", Ih = "afterRead", Fh = "beforeMain", Th = "main", Sh = "afterMain", jh = "beforeWrite", _h = "write", Ph = "afterWrite", Kh = [Bh, Dh, Ih, Fh, Th, Sh, jh, _h, Ph];
function gt(t) {
return t ? (t.nodeName || "").toLowerCase() : null;
}
function at(t) {
if (t == null) return window;
if (t.toString() !== "[object Window]") {
var e = t.ownerDocument;
return e && e.defaultView || window;
}
return t;
}
function FA(t) {
var e = at(t).Element;
return t instanceof e || t instanceof Element;
}
function Ze(t) {
var e = at(t).HTMLElement;
return t instanceof e || t instanceof HTMLElement;
}
function w0(t) {
if (typeof ShadowRoot == "undefined") return !1;
var e = at(t).ShadowRoot;
return t instanceof e || t instanceof ShadowRoot;
}
function Rh(t) {
var e = t.state;
Object.keys(e.elements).forEach(function(A) {
var r = e.styles[A] || {}, n = e.attributes[A] || {}, i = e.elements[A];
!Ze(i) || !gt(i) || (Object.assign(i.style, r), Object.keys(n).forEach(function(o) {
var s = n[o];
s === !1 ? i.removeAttribute(o) : i.setAttribute(o, s === !0 ? "" : s);
}));
});
}
function zh(t) {
var e = t.state, A = { popper: { position: e.options.strategy, left: "0", top: "0", margin: "0" }, arrow: { position: "absolute" }, reference: {} };
return Object.assign(e.elements.popper.style, A.popper), e.styles = A, e.elements.arrow && Object.assign(e.elements.arrow.style, A.arrow), function() {
Object.keys(e.elements).forEach(function(r) {
var n = e.elements[r], i = e.attributes[r] || {}, o = Object.keys(e.styles.hasOwnProperty(r) ? e.styles[r] : A[r]), s = o.reduce(function(f, a) {
return f[a] = "", f;
}, {});
!Ze(n) || !gt(n) || (Object.assign(n.style, s), Object.keys(i).forEach(function(f) {
n.removeAttribute(f);
}));
});
};
}
var Ca = { name: "applyStyles", enabled: !0, phase: "write", fn: Rh, effect: zh, requires: ["computeStyles"] };
function xt(t) {
return t.split("-")[0];
}
var oA = Math.max, en = Math.min, TA = Math.round;
function SA(t, e) {
e === void 0 && (e = !1);
var A = t.getBoundingClientRect(), r = 1, n = 1;
if (Ze(t) && e) {
var i = t.offsetHeight, o = t.offsetWidth;
o > 0 && (r = TA(A.width) / o || 1), i > 0 && (n = TA(A.height) / i || 1);
}
return { width: A.width / r, height: A.height / n, top: A.top / n, right: A.right / r, bottom: A.bottom / n, left: A.left / r, x: A.left / r, y: A.top / n };
}
function y0(t) {
var e = SA(t), A = t.offsetWidth, r = t.offsetHeight;
return Math.abs(e.width - A) <= 1 && (A = e.width), Math.abs(e.height - r) <= 1 && (r = e.height), { x: t.offsetLeft, y: t.offsetTop, width: A, height: r };
}
function ba(t, e) {
var A = e.getRootNode && e.getRootNode();
if (t.contains(e)) return !0;
if (A && w0(A)) {
var r = e;
do {
if (r && t.isSameNode(r)) return !0;
r = r.parentNode || r.host;
} while (r);
}
return !1;
}
function Dt(t) {
return at(t).getComputedStyle(t);
}
function Mh(t) {
return ["table", "td", "th"].indexOf(gt(t)) >= 0;
}
function Vt(t) {
return ((FA(t) ? t.ownerDocument : t.document) || window.document).documentElement;
}
function ln(t) {
return gt(t) === "html" ? t : t.assignedSlot || t.parentNode || (w0(t) ? t.host : null) || Vt(t);
}
function Co(t) {
return !Ze(t) || Dt(t).position === "fixed" ? null : t.offsetParent;
}
function kh(t) {
var e = navigator.userAgent.toLowerCase().indexOf("firefox") !== -1, A = navigator.userAgent.indexOf("Trident") !== -1;
if (A && Ze(t)) {
var r = Dt(t);
if (r.position === "fixed") return null;
}
var n = ln(t);
for (w0(n) && (n = n.host); Ze(n) && ["html", "body"].indexOf(gt(n)) < 0; ) {
var i = Dt(n);
if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || e && i.willChange === "filter" || e && i.filter && i.filter !== "none") return n;
n = n.parentNode;
}
return null;
}
function cr(t) {
for (var e = at(t), A = Co(t); A && Mh(A) && Dt(A).position === "static"; ) A = Co(A);
return A && (gt(A) === "html" || gt(A) === "body" && Dt(A).position === "static") ? e : A || kh(t) || e;
}
function m0(t) {
return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
}
function GA(t, e, A) {
return oA(t, en(e, A));
}
function Nh(t, e, A) {
var r = GA(t, e, A);
return r > A ? A : r;
}
function Ea() {
return { top: 0, right: 0, bottom: 0, left: 0 };
}
function Oa(t) {
return Object.assign({}, Ea(), t);
}
function Ba(t, e) {
return e.reduce(function(A, r) {
return A[r] = t, A;
}, {});
}
var Hh = function(t, e) {
return t = typeof t == "function" ? t(Object.assign({}, e.rects, { placement: e.placement })) : t, Oa(typeof t != "number" ? t : Ba(t, fr));
};
function Lh(t) {
var e, A = t.state, r = t.name, n = t.options, i = A.elements.arrow, o = A.modifiersData.popperOffsets, s = xt(A.placement), f = m0(s), a = [ze, Xe].indexOf(s) >= 0, c = a ? "height" : "width";
if (!(!i || !o)) {
var p = Hh(n.padding, A), u = y0(i), x = f === "y" ? Re : ze, l = f === "y" ? Qe : Xe, d = A.rects.reference[c] + A.rects.reference[f] - o[f] - A.rects.popper[c], v = o[f] - A.rects.reference[f], b = cr(i), y = b ? f === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, w = d / 2 - v / 2, m = p[x], D = y - u[c] - p[l], O = y / 2 - u[c] / 2 + w, I = GA(m, O, D), T = f;
A.modifiersData[r] = (e = {}, e[T] = I, e.centerOffset = I - O, e);
}
}
function qh(t) {
var e = t.state, A = t.options, r = A.element, n = r === void 0 ? "[data-popper-arrow]" : r;
n != null && (typeof n == "string" && (n = e.elements.popper.querySelector(n), !n) || !ba(e.elements.popper, n) || (e.elements.arrow = n));
}
var Uh = { name: "arrow", enabled: !0, phase: "main", fn: Lh, effect: qh, requires: ["popperOffsets"], requiresIfExists: ["preventOverflow"] };
function jA(t) {
return t.split("-")[1];
}
var $h = { top: "auto", right: "auto", bottom: "auto", left: "auto" };
function Vh(t) {
var e = t.x, A = t.y, r = window, n = r.devicePixelRatio || 1;
return { x: TA(e * n) / n || 0, y: TA(A * n) / n || 0 };
}
function bo(t) {
var e, A = t.popper, r = t.popperRect, n = t.placement, i = t.variation, o = t.offsets, s = t.position, f = t.gpuAcceleration, a = t.adaptive, c = t.roundOffsets, p = t.isFixed, u = o.x, x = u === void 0 ? 0 : u, l = o.y, d = l === void 0 ? 0 : l, v = typeof c == "function" ? c({ x, y: d }) : { x, y: d };
x = v.x, d = v.y;
var b = o.hasOwnProperty("x"), y = o.hasOwnProperty("y"), w = ze, m = Re, D = window;
if (a) {
var O = cr(A), I = "clientHeight", T = "clientWidth";
if (O === at(A) && (O = Vt(A), Dt(O).position !== "static" && s === "absolute" && (I = "scrollHeight", T = "scrollWidth")), O = O, n === Re || (n === ze || n === Xe) && i === rr) {
m = Qe;
var _ = p && O === D && D.visualViewport ? D.visualViewport.height : O[I];
d -= _ - r.height, d *= f ? 1 : -1;
}
if (n === ze || (n === Re || n === Qe) && i === rr) {
w = Xe;
var B = p && O === D && D.visualViewport ? D.visualViewport.width : O[T];
x -= B - r.width, x *= f ? 1 : -1;
}
}
var E = Object.assign({ position: s }, a && $h), S = c === !0 ? Vh({ x, y: d }) : { x, y: d };
if (x = S.x, d = S.y, f) {
var j;
return Object.assign({}, E, (j = {}, j[m] = y ? "0" : "", j[w] = b ? "0" : "", j.transform = (D.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + d + "px)" : "translate3d(" + x + "px, " + d + "px, 0)", j));
}
return Object.assign({}, E, (e = {}, e[m] = y ? d + "px" : "", e[w] = b ? x + "px" : "", e.transform = "", e));
}
function Wh(t) {
var e = t.state, A = t.options, r = A.gpuAcceleration, n = r === void 0 ? !0 : r, i = A.adaptive, o = i === void 0 ? !0 : i, s = A.roundOffsets, f = s === void 0 ? !0 : s, a = { placement: xt(e.placement), variation: jA(e.placement), popper: e.elements.popper, popperRect: e.rects.popper, gpuAcceleration: n, isFixed: e.options.strategy === "fixed" };
e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, bo(Object.assign({}, a, { offsets: e.modifiersData.popperOffsets, position: e.options.strategy, adaptive: o, roundOffsets: f })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, bo(Object.assign({}, a, { offsets: e.modifiersData.arrow, position: "absolute", adaptive: !1, roundOffsets: f })))), e.attributes.popper = Object.assign({}, e.attributes.popper, { "data-popper-placement": e.placement });
}
var Da = { name: "computeStyles", enabled: !0, phase: "beforeWrite", fn: Wh, data: {} }, Sr = { passive: !0 };
function Gh(t) {
var e = t.state, A = t.instance, r = t.options, n = r.scroll, i = n === void 0 ? !0 : n, o = r.resize, s = o === void 0 ? !0 : o, f = at(e.elements.popper), a = [].concat(e.scrollParents.reference, e.scrollParents.popper);
return i && a.forEach(function(c) {
c.addEventListener("scroll", A.update, Sr);
}), s && f.addEventListener("resize", A.update, Sr), function() {
i && a.forEach(function(c) {
c.removeEventListener("scroll", A.update, Sr);
}), s && f.removeEventListener("resize", A.update, Sr);
};
}
var Ia = { name: "eventListeners", enabled: !0, phase: "write", fn: function() {
}, effect: Gh, data: {} }, Zh = { left: "right", right: "left", bottom: "top", top: "bottom" };
function Ur(t) {
return t.replace(/left|right|bottom|top/g, function(e) {
return Zh[e];
});
}
var Yh = { start: "end", end: "start" };
function Eo(t) {
return t.replace(/start|end/g, function(e) {
return Yh[e];
});
}
function C0(t) {
var e = at(t), A = e.pageXOffset, r = e.pageYOffset;
return { scrollLeft: A, scrollTop: r };
}
function b0(t) {
return SA(Vt(t)).left + C0(t).scrollLeft;
}
function Qh(t) {
var e = at(t), A = Vt(t), r = e.visualViewport, n = A.clientWidth, i = A.clientHeight, o = 0, s = 0;
return r && (n = r.width, i = r.height, /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || (o = r.offsetLeft, s = r.offsetTop)), { width: n, height: i, x: o + b0(t), y: s };
}
function Xh(t) {
var e, A = Vt(t), r = C0(t), n = (e = t.ownerDocument) == null ? void 0 : e.body, i = oA(A.scrollWidth, A.clientWidth, n ? n.scrollWidth : 0, n ? n.clientWidth : 0), o = oA(A.scrollHeight, A.clientHeight, n ? n.scrollHeight : 0, n ? n.clientHeight : 0), s = -r.scrollLeft + b0(t), f = -r.scrollTop;
return Dt(n || A).direction === "rtl" && (s += oA(A.clientWidth, n ? n.clientWidth : 0) - i), { width: i, height: o, x: s, y: f };
}
function E0(t) {
var e = Dt(t), A = e.overflow, r = e.overflowX, n = e.overflowY;
return /auto|scroll|overlay|hidden/.test(A + n + r);
}
function Fa(t) {
return ["html", "body", "#document"].indexOf(gt(t)) >= 0 ? t.ownerDocument.body : Ze(t) && E0(t) ? t : Fa(ln(t));
}
function ZA(t, e) {
var A;
e === void 0 && (e = []);
var r = Fa(t), n = r === ((A = t.ownerDocument) == null ? void 0 : A.body), i = at(r), o = n ? [i].concat(i.visualViewport || [], E0(r) ? r : []) : r, s = e.concat(o);
return n ? s : s.concat(ZA(ln(o)));
}
function Ni(t) {
return Object.assign({}, t, { left: t.x, top: t.y, right: t.x + t.width, bottom: t.y + t.height });
}
function Jh(t) {
var e = SA(t);
return e.top = e.top + t.clientTop, e.left = e.left + t.clientLeft, e.bottom = e.top + t.clientHeight, e.right = e.left + t.clientWidth, e.width = t.clientWidth, e.height = t.clientHeight, e.x = e.left, e.y = e.top, e;
}
function Oo(t, e) {
return e === ma ? Ni(Qh(t)) : FA(e) ? Jh(e) : Ni(Xh(Vt(t)));
}
function e1(t) {
var e = ZA(ln(t)), A = ["absolute", "fixed"].indexOf(Dt(t).position) >= 0, r = A && Ze(t) ? cr(t) : t;
return FA(r) ? e.filter(function(n) {
return FA(n) && ba(n, r) && gt(n) !== "body";
}) : [];
}
function t1(t, e, A) {
var r = e === "clippingParents" ? e1(t) : [].concat(e), n = [].concat(r, [A]), i = n[0], o = n.reduce(function(s, f) {
var a = Oo(t, f);
return s.top = oA(a.top, s.top), s.right = en(a.right, s.right), s.bottom = en(a.bottom, s.bottom), s.left = oA(a.left, s.left), s;
}, Oo(t, i));
return o.width = o.right - o.left, o.height = o.bottom - o.top, o.x = o.left, o.y = o.top, o;
}
function Ta(t) {
var e = t.reference, A = t.element, r = t.placement, n = r ? xt(r) : null, i = r ? jA(r) : null, o = e.x + e.width / 2 - A.width / 2, s = e.y + e.height / 2 - A.height / 2, f;
switch (n) {
case Re:
f = { x: o, y: e.y - A.height };
break;
case Qe:
f = { x: o, y: e.y + e.height };
break;
case Xe:
f = { x: e.x + e.width, y: s };
break;
case ze:
f = { x: e.x - A.width, y: s };
break;
default:
f = { x: e.x, y: e.y };
}
var a = n ? m0(n) : null;
if (a != null) {
var c = a === "y" ? "height" : "width";
switch (i) {
case