import { C as Bc } from "./ContentMixin-Bvii7mm_.js"; import { ref as P, defineComponent as K, computed as g, openBlock as j, createElementBlock as L, mergeProps as rn, unref as d, renderSlot as te, useAttrs as Dc, useSlots as vs, shallowRef as $n, watch as ne, nextTick as Ae, onMounted as $e, toRef as ft, createCommentVNode as W, Fragment as qe, normalizeClass as z, createElementVNode as Z, createBlock as Y, withCtx as X, resolveDynamicComponent as mt, withModifiers as Re, createVNode as fe, toDisplayString as ze, normalizeStyle as Te, provide as at, reactive as vt, onActivated as Uc, onUpdated as hs, inject as me, onBeforeUnmount as Et, withDirectives as He, cloneVNode as qc, Text as ys, Comment as Hc, Transition as so, vShow as $t, readonly as Zc, onDeactivated as Kc, withKeys as Mt, createSlots as Wc, toRefs as On, getCurrentInstance as Ze, h as Rn, renderList as on, warn as Jc, onBeforeMount as Gc, onUnmounted as Yc, toRaw as gs, watchEffect as Qc, getCurrentScope as Xc, onScopeDispose as ep, isRef as bs, Teleport as tp, resolveComponent as Ct, resolveDirective as np, toHandlerKey as rp, createTextVNode as Yt, vModelText as op, pushScopeId as ap, popScopeId as ip, createApp as lp } from "vue"; import { y as sp } from "./plotvuer-DSwGHaaa.js"; import { _ as up } from "./index-B-W0fnek.js"; const It = (e, t, { checkForDefaultPrevented: n = !0 } = {}) => (r) => { const o = e == null ? void 0 : e(r); if (n === !1 || !o) return t == null ? void 0 : t(r); }; var wi; const Ve = typeof window < "u", cp = (e) => typeof e == "string", ws = () => { }, Jo = Ve && ((wi = window == null ? void 0 : window.navigator) == null ? void 0 : wi.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent); function xs(e) { return typeof e == "function" ? e() : d(e); } function pp(e) { return e; } function uo(e) { return Xc() ? (ep(e), !0) : !1; } function dp(e, t = !0) { Ze() ? $e(e) : t ? e() : Ae(e); } function Pt(e) { var t; const n = xs(e); return (t = n == null ? void 0 : n.$el) != null ? t : n; } const co = Ve ? window : void 0; function Ue(...e) { let t, n, r, o; if (cp(e[0]) || Array.isArray(e[0]) ? ([n, r, o] = e, t = co) : [t, n, r, o] = e, !t) return ws; Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]); const a = [], i = () => { a.forEach((p) => p()), a.length = 0; }, l = (p, c, f, v) => (p.addEventListener(c, f, v), () => p.removeEventListener(c, f, v)), s = ne(() => [Pt(t), xs(o)], ([p, c]) => { i(), p && a.push(...n.flatMap((f) => r.map((v) => l(p, f, v, c)))); }, { immediate: !0, flush: "post" }), u = () => { s(), i(); }; return uo(u), u; } let xi = !1; function fp(e, t, n = {}) { const { window: r = co, ignore: o = [], capture: a = !0, detectIframe: i = !1 } = n; if (!r) return; Jo && !xi && (xi = !0, Array.from(r.document.body.children).forEach((p) => p.addEventListener("click", ws))); let l = !0; const s = (p) => o.some((c) => { if (typeof c == "string") return Array.from(r.document.querySelectorAll(c)).some((f) => f === p.target || p.composedPath().includes(f)); { const f = Pt(c); return f && (p.target === f || p.composedPath().includes(f)); } }), u = [ Ue(r, "click", (p) => { const c = Pt(e); if (!(!c || c === p.target || p.composedPath().includes(c))) { if (p.detail === 0 && (l = !s(p)), !l) { l = !0; return; } t(p); } }, { passive: !0, capture: a }), Ue(r, "pointerdown", (p) => { const c = Pt(e); c && (l = !p.composedPath().includes(c) && !s(p)); }, { passive: !0 }), i && Ue(r, "blur", (p) => { var c; const f = Pt(e); ((c = r.document.activeElement) == null ? void 0 : c.tagName) === "IFRAME" && !(f != null && f.contains(r.document.activeElement)) && t(p); }) ].filter(Boolean); return () => u.forEach((p) => p()); } function Ss(e, t = !1) { const n = P(), r = () => n.value = !!e(); return r(), dp(r, t), n; } const Si = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Oi = "__vueuse_ssr_handlers__"; Si[Oi] = Si[Oi] || {}; var Ai = Object.getOwnPropertySymbols, mp = Object.prototype.hasOwnProperty, vp = Object.prototype.propertyIsEnumerable, hp = (e, t) => { var n = {}; for (var r in e) mp.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]); if (e != null && Ai) for (var r of Ai(e)) t.indexOf(r) < 0 && vp.call(e, r) && (n[r] = e[r]); return n; }; function Vt(e, t, n = {}) { const r = n, { window: o = co } = r, a = hp(r, ["window"]); let i; const l = Ss(() => o && "ResizeObserver" in o), s = () => { i && (i.disconnect(), i = void 0); }, u = ne(() => Pt(e), (c) => { s(), l.value && o && c && (i = new ResizeObserver(t), i.observe(c, a)); }, { immediate: !0, flush: "post" }), p = () => { s(), u(); }; return uo(p), { isSupported: l, stop: p }; } var Ei = Object.getOwnPropertySymbols, yp = Object.prototype.hasOwnProperty, gp = Object.prototype.propertyIsEnumerable, bp = (e, t) => { var n = {}; for (var r in e) yp.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]); if (e != null && Ei) for (var r of Ei(e)) t.indexOf(r) < 0 && gp.call(e, r) && (n[r] = e[r]); return n; }; function wp(e, t, n = {}) { const r = n, { window: o = co } = r, a = bp(r, ["window"]); let i; const l = Ss(() => o && "MutationObserver" in o), s = () => { i && (i.disconnect(), i = void 0); }, u = ne(() => Pt(e), (c) => { s(), l.value && o && c && (i = new MutationObserver(t), i.observe(c, a)); }, { immediate: !0 }), p = () => { s(), u(); }; return uo(p), { isSupported: l, stop: p }; } var ki; (function(e) { e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE"; })(ki || (ki = {})); var xp = Object.defineProperty, _i = Object.getOwnPropertySymbols, Sp = Object.prototype.hasOwnProperty, Op = Object.prototype.propertyIsEnumerable, ji = (e, t, n) => t in e ? xp(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ap = (e, t) => { for (var n in t || (t = {})) Sp.call(t, n) && ji(e, n, t[n]); if (_i) for (var n of _i(t)) Op.call(t, n) && ji(e, n, t[n]); return e; }; const Ep = { 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] }; Ap({ linear: pp }, Ep); const kp = () => Ve && /firefox/i.test(window.navigator.userAgent); /** * @vue/shared v3.4.21 * (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 gr = () => { }, _p = Object.prototype.hasOwnProperty, Fi = (e, t) => _p.call(e, t), xt = Array.isArray, Le = (e) => typeof e == "function", Xe = (e) => typeof e == "string", We = (e) => e !== null && typeof e == "object", jp = Object.prototype.toString, Fp = (e) => jp.call(e), ko = (e) => Fp(e).slice(8, -1), Os = (e) => { const t = /* @__PURE__ */ Object.create(null); return (n) => t[n] || (t[n] = e(n)); }, Cp = /-(\w)/g, Ip = Os((e) => e.replace(Cp, (t, n) => n ? n.toUpperCase() : "")), Vp = /\B([A-Z])/g, Mp = Os( (e) => e.replace(Vp, "-$1").toLowerCase() ); var As = typeof global == "object" && global && global.Object === Object && global, Tp = typeof self == "object" && self && self.Object === Object && self, kt = As || Tp || Function("return this")(), Ot = kt.Symbol, Es = Object.prototype, Pp = Es.hasOwnProperty, Rp = Es.toString, sr = Ot ? Ot.toStringTag : void 0; function zp(e) { var t = Pp.call(e, sr), n = e[sr]; try { e[sr] = void 0; var r = !0; } catch { } var o = Rp.call(e); return r && (t ? e[sr] = n : delete e[sr]), o; } var Np = Object.prototype, $p = Np.toString; function Lp(e) { return $p.call(e); } var Bp = "[object Null]", Dp = "[object Undefined]", Ci = Ot ? Ot.toStringTag : void 0; function er(e) { return e == null ? e === void 0 ? Dp : Bp : Ci && Ci in Object(e) ? zp(e) : Lp(e); } function Dn(e) { return e != null && typeof e == "object"; } var Up = "[object Symbol]"; function po(e) { return typeof e == "symbol" || Dn(e) && er(e) == Up; } function qp(e, t) { for (var n = -1, r = e == null ? 0 : e.length, o = Array(r); ++n < r; ) o[n] = t(e[n], n, e); return o; } var ht = Array.isArray, Hp = 1 / 0, Ii = Ot ? Ot.prototype : void 0, Vi = Ii ? Ii.toString : void 0; function ks(e) { if (typeof e == "string") return e; if (ht(e)) return qp(e, ks) + ""; if (po(e)) return Vi ? Vi.call(e) : ""; var t = e + ""; return t == "0" && 1 / e == -Hp ? "-0" : t; } var Zp = /\s/; function Kp(e) { for (var t = e.length; t-- && Zp.test(e.charAt(t)); ) ; return t; } var Wp = /^\s+/; function Jp(e) { return e && e.slice(0, Kp(e) + 1).replace(Wp, ""); } function an(e) { var t = typeof e; return e != null && (t == "object" || t == "function"); } var Mi = NaN, Gp = /^[-+]0x[0-9a-f]+$/i, Yp = /^0b[01]+$/i, Qp = /^0o[0-7]+$/i, Xp = parseInt; function Ti(e) { if (typeof e == "number") return e; if (po(e)) return Mi; if (an(e)) { var t = typeof e.valueOf == "function" ? e.valueOf() : e; e = an(t) ? t + "" : t; } if (typeof e != "string") return e === 0 ? e : +e; e = Jp(e); var n = Yp.test(e); return n || Qp.test(e) ? Xp(e.slice(2), n ? 2 : 8) : Gp.test(e) ? Mi : +e; } function _s(e) { return e; } var ed = "[object AsyncFunction]", td = "[object Function]", nd = "[object GeneratorFunction]", rd = "[object Proxy]"; function js(e) { if (!an(e)) return !1; var t = er(e); return t == td || t == nd || t == ed || t == rd; } var _o = kt["__core-js_shared__"], Pi = function() { var e = /[^.]+$/.exec(_o && _o.keys && _o.keys.IE_PROTO || ""); return e ? "Symbol(src)_1." + e : ""; }(); function od(e) { return !!Pi && Pi in e; } var ad = Function.prototype, id = ad.toString; function kn(e) { if (e != null) { try { return id.call(e); } catch { } try { return e + ""; } catch { } } return ""; } var ld = /[\\^$.*+?()[\]{}|]/g, sd = /^\[object .+?Constructor\]$/, ud = Function.prototype, cd = Object.prototype, pd = ud.toString, dd = cd.hasOwnProperty, fd = RegExp( "^" + pd.call(dd).replace(ld, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" ); function md(e) { if (!an(e) || od(e)) return !1; var t = js(e) ? fd : sd; return t.test(kn(e)); } function vd(e, t) { return e == null ? void 0 : e[t]; } function _n(e, t) { var n = vd(e, t); return md(n) ? n : void 0; } var Go = _n(kt, "WeakMap"); function hd(e, t, n) { switch (n.length) { case 0: return e.call(t); case 1: return e.call(t, n[0]); case 2: return e.call(t, n[0], n[1]); case 3: return e.call(t, n[0], n[1], n[2]); } return e.apply(t, n); } var yd = 800, gd = 16, bd = Date.now; function wd(e) { var t = 0, n = 0; return function() { var r = bd(), o = gd - (r - n); if (n = r, o > 0) { if (++t >= yd) return arguments[0]; } else t = 0; return e.apply(void 0, arguments); }; } function xd(e) { return function() { return e; }; } var Gr = function() { try { var e = _n(Object, "defineProperty"); return e({}, "", {}), e; } catch { } }(), Sd = Gr ? function(e, t) { return Gr(e, "toString", { configurable: !0, enumerable: !1, value: xd(t), writable: !0 }); } : _s, Od = wd(Sd); function Ad(e, t, n, r) { e.length; for (var o = n + 1; o--; ) if (t(e[o], o, e)) return o; return -1; } var Ed = 9007199254740991, kd = /^(?:0|[1-9]\d*)$/; function Ea(e, t) { var n = typeof e; return t = t ?? Ed, !!t && (n == "number" || n != "symbol" && kd.test(e)) && e > -1 && e % 1 == 0 && e < t; } function _d(e, t, n) { t == "__proto__" && Gr ? Gr(e, t, { configurable: !0, enumerable: !0, value: n, writable: !0 }) : e[t] = n; } function ka(e, t) { return e === t || e !== e && t !== t; } var jd = Object.prototype, Fd = jd.hasOwnProperty; function Cd(e, t, n) { var r = e[t]; (!(Fd.call(e, t) && ka(r, n)) || n === void 0 && !(t in e)) && _d(e, t, n); } var Ri = Math.max; function Id(e, t, n) { return t = Ri(t === void 0 ? e.length - 1 : t, 0), function() { for (var r = arguments, o = -1, a = Ri(r.length - t, 0), i = Array(a); ++o < a; ) i[o] = r[t + o]; o = -1; for (var l = Array(t + 1); ++o < t; ) l[o] = r[o]; return l[t] = n(i), hd(e, this, l); }; } var Vd = 9007199254740991; function _a(e) { return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Vd; } function Md(e) { return e != null && _a(e.length) && !js(e); } var Td = Object.prototype; function Pd(e) { var t = e && e.constructor, n = typeof t == "function" && t.prototype || Td; return e === n; } function Rd(e, t) { for (var n = -1, r = Array(e); ++n < e; ) r[n] = t(n); return r; } var zd = "[object Arguments]"; function zi(e) { return Dn(e) && er(e) == zd; } var Fs = Object.prototype, Nd = Fs.hasOwnProperty, $d = Fs.propertyIsEnumerable, ja = zi(/* @__PURE__ */ function() { return arguments; }()) ? zi : function(e) { return Dn(e) && Nd.call(e, "callee") && !$d.call(e, "callee"); }; function Ld() { return !1; } var Cs = typeof exports == "object" && exports && !exports.nodeType && exports, Ni = Cs && typeof module == "object" && module && !module.nodeType && module, Bd = Ni && Ni.exports === Cs, $i = Bd ? kt.Buffer : void 0, Dd = $i ? $i.isBuffer : void 0, Yo = Dd || Ld, Ud = "[object Arguments]", qd = "[object Array]", Hd = "[object Boolean]", Zd = "[object Date]", Kd = "[object Error]", Wd = "[object Function]", Jd = "[object Map]", Gd = "[object Number]", Yd = "[object Object]", Qd = "[object RegExp]", Xd = "[object Set]", ef = "[object String]", tf = "[object WeakMap]", nf = "[object ArrayBuffer]", rf = "[object DataView]", of = "[object Float32Array]", af = "[object Float64Array]", lf = "[object Int8Array]", sf = "[object Int16Array]", uf = "[object Int32Array]", cf = "[object Uint8Array]", pf = "[object Uint8ClampedArray]", df = "[object Uint16Array]", ff = "[object Uint32Array]", be = {}; be[of] = be[af] = be[lf] = be[sf] = be[uf] = be[cf] = be[pf] = be[df] = be[ff] = !0; be[Ud] = be[qd] = be[nf] = be[Hd] = be[rf] = be[Zd] = be[Kd] = be[Wd] = be[Jd] = be[Gd] = be[Yd] = be[Qd] = be[Xd] = be[ef] = be[tf] = !1; function mf(e) { return Dn(e) && _a(e.length) && !!be[er(e)]; } function vf(e) { return function(t) { return e(t); }; } var Is = typeof exports == "object" && exports && !exports.nodeType && exports, dr = Is && typeof module == "object" && module && !module.nodeType && module, hf = dr && dr.exports === Is, jo = hf && As.process, Li = function() { try { var e = dr && dr.require && dr.require("util").types; return e || jo && jo.binding && jo.binding("util"); } catch { } }(), Bi = Li && Li.isTypedArray, Vs = Bi ? vf(Bi) : mf, yf = Object.prototype, gf = yf.hasOwnProperty; function bf(e, t) { var n = ht(e), r = !n && ja(e), o = !n && !r && Yo(e), a = !n && !r && !o && Vs(e), i = n || r || o || a, l = i ? Rd(e.length, String) : [], s = l.length; for (var u in e) gf.call(e, u) && !(i && // Safari 9 has enumerable `arguments.length` in strict mode. (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers. o && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays. a && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties. Ea(u, s))) && l.push(u); return l; } function wf(e, t) { return function(n) { return e(t(n)); }; } var xf = wf(Object.keys, Object), Sf = Object.prototype, Of = Sf.hasOwnProperty; function Af(e) { if (!Pd(e)) return xf(e); var t = []; for (var n in Object(e)) Of.call(e, n) && n != "constructor" && t.push(n); return t; } function Ms(e) { return Md(e) ? bf(e) : Af(e); } var Ef = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, kf = /^\w*$/; function Fa(e, t) { if (ht(e)) return !1; var n = typeof e; return n == "number" || n == "symbol" || n == "boolean" || e == null || po(e) ? !0 : kf.test(e) || !Ef.test(e) || t != null && e in Object(t); } var br = _n(Object, "create"); function _f() { this.__data__ = br ? br(null) : {}, this.size = 0; } function jf(e) { var t = this.has(e) && delete this.__data__[e]; return this.size -= t ? 1 : 0, t; } var Ff = "__lodash_hash_undefined__", Cf = Object.prototype, If = Cf.hasOwnProperty; function Vf(e) { var t = this.__data__; if (br) { var n = t[e]; return n === Ff ? void 0 : n; } return If.call(t, e) ? t[e] : void 0; } var Mf = Object.prototype, Tf = Mf.hasOwnProperty; function Pf(e) { var t = this.__data__; return br ? t[e] !== void 0 : Tf.call(t, e); } var Rf = "__lodash_hash_undefined__"; function zf(e, t) { var n = this.__data__; return this.size += this.has(e) ? 0 : 1, n[e] = br && t === void 0 ? Rf : t, this; } function An(e) { var t = -1, n = e == null ? 0 : e.length; for (this.clear(); ++t < n; ) { var r = e[t]; this.set(r[0], r[1]); } } An.prototype.clear = _f; An.prototype.delete = jf; An.prototype.get = Vf; An.prototype.has = Pf; An.prototype.set = zf; function Nf() { this.__data__ = [], this.size = 0; } function fo(e, t) { for (var n = e.length; n--; ) if (ka(e[n][0], t)) return n; return -1; } var $f = Array.prototype, Lf = $f.splice; function Bf(e) { var t = this.__data__, n = fo(t, e); if (n < 0) return !1; var r = t.length - 1; return n == r ? t.pop() : Lf.call(t, n, 1), --this.size, !0; } function Df(e) { var t = this.__data__, n = fo(t, e); return n < 0 ? void 0 : t[n][1]; } function Uf(e) { return fo(this.__data__, e) > -1; } function qf(e, t) { var n = this.__data__, r = fo(n, e); return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this; } function Bt(e) { var t = -1, n = e == null ? 0 : e.length; for (this.clear(); ++t < n; ) { var r = e[t]; this.set(r[0], r[1]); } } Bt.prototype.clear = Nf; Bt.prototype.delete = Bf; Bt.prototype.get = Df; Bt.prototype.has = Uf; Bt.prototype.set = qf; var wr = _n(kt, "Map"); function Hf() { this.size = 0, this.__data__ = { hash: new An(), map: new (wr || Bt)(), string: new An() }; } function Zf(e) { var t = typeof e; return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null; } function mo(e, t) { var n = e.__data__; return Zf(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map; } function Kf(e) { var t = mo(this, e).delete(e); return this.size -= t ? 1 : 0, t; } function Wf(e) { return mo(this, e).get(e); } function Jf(e) { return mo(this, e).has(e); } function Gf(e, t) { var n = mo(this, e), r = n.size; return n.set(e, t), this.size += n.size == r ? 0 : 1, this; } function Dt(e) { var t = -1, n = e == null ? 0 : e.length; for (this.clear(); ++t < n; ) { var r = e[t]; this.set(r[0], r[1]); } } Dt.prototype.clear = Hf; Dt.prototype.delete = Kf; Dt.prototype.get = Wf; Dt.prototype.has = Jf; Dt.prototype.set = Gf; var Yf = "Expected a function"; function Ca(e, t) { if (typeof e != "function" || t != null && typeof t != "function") throw new TypeError(Yf); var n = function() { var r = arguments, o = t ? t.apply(this, r) : r[0], a = n.cache; if (a.has(o)) return a.get(o); var i = e.apply(this, r); return n.cache = a.set(o, i) || a, i; }; return n.cache = new (Ca.Cache || Dt)(), n; } Ca.Cache = Dt; var Qf = 500; function Xf(e) { var t = Ca(e, function(r) { return n.size === Qf && n.clear(), r; }), n = t.cache; return t; } var em = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, tm = /\\(\\)?/g, nm = Xf(function(e) { var t = []; return e.charCodeAt(0) === 46 && t.push(""), e.replace(em, function(n, r, o, a) { t.push(o ? a.replace(tm, "$1") : r || n); }), t; }); function rm(e) { return e == null ? "" : ks(e); } function vo(e, t) { return ht(e) ? e : Fa(e, t) ? [e] : nm(rm(e)); } var om = 1 / 0; function Ar(e) { if (typeof e == "string" || po(e)) return e; var t = e + ""; return t == "0" && 1 / e == -om ? "-0" : t; } function Ia(e, t) { t = vo(t, e); for (var n = 0, r = t.length; e != null && n < r; ) e = e[Ar(t[n++])]; return n && n == r ? e : void 0; } function Tt(e, t, n) { var r = e == null ? void 0 : Ia(e, t); return r === void 0 ? n : r; } function Ts(e, t) { for (var n = -1, r = t.length, o = e.length; ++n < r; ) e[o + n] = t[n]; return e; } var Di = Ot ? Ot.isConcatSpreadable : void 0; function am(e) { return ht(e) || ja(e) || !!(Di && e && e[Di]); } function im(e, t, n, r, o) { var a = -1, i = e.length; for (n || (n = am), o || (o = []); ++a < i; ) { var l = e[a]; n(l) ? Ts(o, l) : o[o.length] = l; } return o; } function lm(e) { var t = e == null ? 0 : e.length; return t ? im(e) : []; } function sm(e) { return Od(Id(e, void 0, lm), e + ""); } function en() { if (!arguments.length) return []; var e = arguments[0]; return ht(e) ? e : [e]; } function um() { this.__data__ = new Bt(), this.size = 0; } function cm(e) { var t = this.__data__, n = t.delete(e); return this.size = t.size, n; } function pm(e) { return this.__data__.get(e); } function dm(e) { return this.__data__.has(e); } var fm = 200; function mm(e, t) { var n = this.__data__; if (n instanceof Bt) { var r = n.__data__; if (!wr || r.length < fm - 1) return r.push([e, t]), this.size = ++n.size, this; n = this.__data__ = new Dt(r); } return n.set(e, t), this.size = n.size, this; } function zt(e) { var t = this.__data__ = new Bt(e); this.size = t.size; } zt.prototype.clear = um; zt.prototype.delete = cm; zt.prototype.get = pm; zt.prototype.has = dm; zt.prototype.set = mm; function vm(e, t) { for (var n = -1, r = e == null ? 0 : e.length, o = 0, a = []; ++n < r; ) { var i = e[n]; t(i, n, e) && (a[o++] = i); } return a; } function hm() { return []; } var ym = Object.prototype, gm = ym.propertyIsEnumerable, Ui = Object.getOwnPropertySymbols, bm = Ui ? function(e) { return e == null ? [] : (e = Object(e), vm(Ui(e), function(t) { return gm.call(e, t); })); } : hm; function wm(e, t, n) { var r = t(e); return ht(e) ? r : Ts(r, n(e)); } function qi(e) { return wm(e, Ms, bm); } var Qo = _n(kt, "DataView"), Xo = _n(kt, "Promise"), ea = _n(kt, "Set"), Hi = "[object Map]", xm = "[object Object]", Zi = "[object Promise]", Ki = "[object Set]", Wi = "[object WeakMap]", Ji = "[object DataView]", Sm = kn(Qo), Om = kn(wr), Am = kn(Xo), Em = kn(ea), km = kn(Go), Qt = er; (Qo && Qt(new Qo(new ArrayBuffer(1))) != Ji || wr && Qt(new wr()) != Hi || Xo && Qt(Xo.resolve()) != Zi || ea && Qt(new ea()) != Ki || Go && Qt(new Go()) != Wi) && (Qt = function(e) { var t = er(e), n = t == xm ? e.constructor : void 0, r = n ? kn(n) : ""; if (r) switch (r) { case Sm: return Ji; case Om: return Hi; case Am: return Zi; case Em: return Ki; case km: return Wi; } return t; }); var Gi = kt.Uint8Array, _m = "__lodash_hash_undefined__"; function jm(e) { return this.__data__.set(e, _m), this; } function Fm(e) { return this.__data__.has(e); } function Yr(e) { var t = -1, n = e == null ? 0 : e.length; for (this.__data__ = new Dt(); ++t < n; ) this.add(e[t]); } Yr.prototype.add = Yr.prototype.push = jm; Yr.prototype.has = Fm; function Cm(e, t) { for (var n = -1, r = e == null ? 0 : e.length; ++n < r; ) if (t(e[n], n, e)) return !0; return !1; } function Im(e, t) { return e.has(t); } var Vm = 1, Mm = 2; function Ps(e, t, n, r, o, a) { var i = n & Vm, l = e.length, s = t.length; if (l != s && !(i && s > l)) return !1; var u = a.get(e), p = a.get(t); if (u && p) return u == t && p == e; var c = -1, f = !0, v = n & Mm ? new Yr() : void 0; for (a.set(e, t), a.set(t, e); ++c < l; ) { var m = e[c], h = t[c]; if (r) var w = i ? r(h, m, c, t, e, a) : r(m, h, c, e, t, a); if (w !== void 0) { if (w) continue; f = !1; break; } if (v) { if (!Cm(t, function(y, b) { if (!Im(v, b) && (m === y || o(m, y, n, r, a))) return v.push(b); })) { f = !1; break; } } else if (!(m === h || o(m, h, n, r, a))) { f = !1; break; } } return a.delete(e), a.delete(t), f; } function Tm(e) { var t = -1, n = Array(e.size); return e.forEach(function(r, o) { n[++t] = [o, r]; }), n; } function Pm(e) { var t = -1, n = Array(e.size); return e.forEach(function(r) { n[++t] = r; }), n; } var Rm = 1, zm = 2, Nm = "[object Boolean]", $m = "[object Date]", Lm = "[object Error]", Bm = "[object Map]", Dm = "[object Number]", Um = "[object RegExp]", qm = "[object Set]", Hm = "[object String]", Zm = "[object Symbol]", Km = "[object ArrayBuffer]", Wm = "[object DataView]", Yi = Ot ? Ot.prototype : void 0, Fo = Yi ? Yi.valueOf : void 0; function Jm(e, t, n, r, o, a, i) { switch (n) { case Wm: if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) return !1; e = e.buffer, t = t.buffer; case Km: return !(e.byteLength != t.byteLength || !a(new Gi(e), new Gi(t))); case Nm: case $m: case Dm: return ka(+e, +t); case Lm: return e.name == t.name && e.message == t.message; case Um: case Hm: return e == t + ""; case Bm: var l = Tm; case qm: var s = r & Rm; if (l || (l = Pm), e.size != t.size && !s) return !1; var u = i.get(e); if (u) return u == t; r |= zm, i.set(e, t); var p = Ps(l(e), l(t), r, o, a, i); return i.delete(e), p; case Zm: if (Fo) return Fo.call(e) == Fo.call(t); } return !1; } var Gm = 1, Ym = Object.prototype, Qm = Ym.hasOwnProperty; function Xm(e, t, n, r, o, a) { var i = n & Gm, l = qi(e), s = l.length, u = qi(t), p = u.length; if (s != p && !i) return !1; for (var c = s; c--; ) { var f = l[c]; if (!(i ? f in t : Qm.call(t, f))) return !1; } var v = a.get(e), m = a.get(t); if (v && m) return v == t && m == e; var h = !0; a.set(e, t), a.set(t, e); for (var w = i; ++c < s; ) { f = l[c]; var y = e[f], b = t[f]; if (r) var k = i ? r(b, y, f, t, e, a) : r(y, b, f, e, t, a); if (!(k === void 0 ? y === b || o(y, b, n, r, a) : k)) { h = !1; break; } w || (w = f == "constructor"); } if (h && !w) { var _ = e.constructor, x = t.constructor; _ != x && "constructor" in e && "constructor" in t && !(typeof _ == "function" && _ instanceof _ && typeof x == "function" && x instanceof x) && (h = !1); } return a.delete(e), a.delete(t), h; } var ev = 1, Qi = "[object Arguments]", Xi = "[object Array]", Mr = "[object Object]", tv = Object.prototype, el = tv.hasOwnProperty; function nv(e, t, n, r, o, a) { var i = ht(e), l = ht(t), s = i ? Xi : Qt(e), u = l ? Xi : Qt(t); s = s == Qi ? Mr : s, u = u == Qi ? Mr : u; var p = s == Mr, c = u == Mr, f = s == u; if (f && Yo(e)) { if (!Yo(t)) return !1; i = !0, p = !1; } if (f && !p) return a || (a = new zt()), i || Vs(e) ? Ps(e, t, n, r, o, a) : Jm(e, t, s, n, r, o, a); if (!(n & ev)) { var v = p && el.call(e, "__wrapped__"), m = c && el.call(t, "__wrapped__"); if (v || m) { var h = v ? e.value() : e, w = m ? t.value() : t; return a || (a = new zt()), o(h, w, n, r, a); } } return f ? (a || (a = new zt()), Xm(e, t, n, r, o, a)) : !1; } function ho(e, t, n, r, o) { return e === t ? !0 : e == null || t == null || !Dn(e) && !Dn(t) ? e !== e && t !== t : nv(e, t, n, r, ho, o); } var rv = 1, ov = 2; function av(e, t, n, r) { var o = n.length, a = o; if (e == null) return !a; for (e = Object(e); o--; ) { var i = n[o]; if (i[2] ? i[1] !== e[i[0]] : !(i[0] in e)) return !1; } for (; ++o < a; ) { i = n[o]; var l = i[0], s = e[l], u = i[1]; if (i[2]) { if (s === void 0 && !(l in e)) return !1; } else { var p = new zt(), c; if (!(c === void 0 ? ho(u, s, rv | ov, r, p) : c)) return !1; } } return !0; } function Rs(e) { return e === e && !an(e); } function iv(e) { for (var t = Ms(e), n = t.length; n--; ) { var r = t[n], o = e[r]; t[n] = [r, o, Rs(o)]; } return t; } function zs(e, t) { return function(n) { return n == null ? !1 : n[e] === t && (t !== void 0 || e in Object(n)); }; } function lv(e) { var t = iv(e); return t.length == 1 && t[0][2] ? zs(t[0][0], t[0][1]) : function(n) { return n === e || av(n, e, t); }; } function sv(e, t) { return e != null && t in Object(e); } function uv(e, t, n) { t = vo(t, e); for (var r = -1, o = t.length, a = !1; ++r < o; ) { var i = Ar(t[r]); if (!(a = e != null && n(e, i))) break; e = e[i]; } return a || ++r != o ? a : (o = e == null ? 0 : e.length, !!o && _a(o) && Ea(i, o) && (ht(e) || ja(e))); } function Ns(e, t) { return e != null && uv(e, t, sv); } var cv = 1, pv = 2; function dv(e, t) { return Fa(e) && Rs(t) ? zs(Ar(e), t) : function(n) { var r = Tt(n, e); return r === void 0 && r === t ? Ns(n, e) : ho(t, r, cv | pv); }; } function fv(e) { return function(t) { return t == null ? void 0 : t[e]; }; } function mv(e) { return function(t) { return Ia(t, e); }; } function vv(e) { return Fa(e) ? fv(Ar(e)) : mv(e); } function hv(e) { return typeof e == "function" ? e : e == null ? _s : typeof e == "object" ? ht(e) ? dv(e[0], e[1]) : lv(e) : vv(e); } var Co = function() { return kt.Date.now(); }, yv = "Expected a function", gv = Math.max, bv = Math.min; function ta(e, t, n) { var r, o, a, i, l, s, u = 0, p = !1, c = !1, f = !0; if (typeof e != "function") throw new TypeError(yv); t = Ti(t) || 0, an(n) && (p = !!n.leading, c = "maxWait" in n, a = c ? gv(Ti(n.maxWait) || 0, t) : a, f = "trailing" in n ? !!n.trailing : f); function v(O) { var I = r, F = o; return r = o = void 0, u = O, i = e.apply(F, I), i; } function m(O) { return u = O, l = setTimeout(y, t), p ? v(O) : i; } function h(O) { var I = O - s, F = O - u, C = t - I; return c ? bv(C, a - F) : C; } function w(O) { var I = O - s, F = O - u; return s === void 0 || I >= t || I < 0 || c && F >= a; } function y() { var O = Co(); if (w(O)) return b(O); l = setTimeout(y, h(O)); } function b(O) { return l = void 0, f && r ? v(O) : (r = o = void 0, i); } function k() { l !== void 0 && clearTimeout(l), u = 0, r = s = o = l = void 0; } function _() { return l === void 0 ? i : b(Co()); } function x() { var O = Co(), I = w(O); if (r = arguments, o = this, s = O, I) { if (l === void 0) return m(s); if (c) return clearTimeout(l), l = setTimeout(y, t), v(s); } return l === void 0 && (l = setTimeout(y, t)), i; } return x.cancel = k, x.flush = _, x; } function wv(e, t, n) { var r = e == null ? 0 : e.length; if (!r) return -1; var o = r - 1; return Ad(e, hv(t), o); } function Qr(e) { for (var t = -1, n = e == null ? 0 : e.length, r = {}; ++t < n; ) { var o = e[t]; r[o[0]] = o[1]; } return r; } function na(e, t) { return ho(e, t); } function Nt(e) { return e == null; } function xv(e) { return e === void 0; } function Sv(e, t, n, r) { if (!an(e)) return e; t = vo(t, e); for (var o = -1, a = t.length, i = a - 1, l = e; l != null && ++o < a; ) { var s = Ar(t[o]), u = n; if (s === "__proto__" || s === "constructor" || s === "prototype") return e; if (o != i) { var p = l[s]; u = void 0, u === void 0 && (u = an(p) ? p : Ea(t[o + 1]) ? [] : {}); } Cd(l, s, u), l = l[s]; } return e; } function Ov(e, t, n) { for (var r = -1, o = t.length, a = {}; ++r < o; ) { var i = t[r], l = Ia(e, i); n(l, i) && Sv(a, vo(i, e), l); } return a; } function Av(e, t) { return Ov(e, t, function(n, r) { return Ns(e, r); }); } var Ev = sm(function(e, t) { return e == null ? {} : Av(e, t); }); const Rt = (e) => e === void 0, $s = (e) => typeof e == "boolean", we = (e) => typeof e == "number", gn = (e) => typeof Element > "u" ? !1 : e instanceof Element, kv = (e) => Xe(e) ? !Number.isNaN(Number(e)) : !1, _v = (e = "") => e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d"), tl = (e) => Object.keys(e); class Ls extends Error { constructor(t) { super(t), this.name = "ElementPlusError"; } } function Va(e, t) { throw new Ls(`[${e}] ${t}`); } function _e(e, t) { if (process.env.NODE_ENV !== "production") { const n = Xe(e) ? new Ls(`[${e}] ${t}`) : e; console.warn(n); } } const jv = "utils/dom/style", Bs = (e = "") => e.split(" ").filter((t) => !!t.trim()), nl = (e, t) => { !e || !t.trim() || e.classList.add(...Bs(t)); }, Xr = (e, t) => { !e || !t.trim() || e.classList.remove(...Bs(t)); }, ur = (e, t) => { var n; if (!Ve || !e || !t) return ""; let r = Ip(t); r === "float" && (r = "cssFloat"); try { const o = e.style[r]; if (o) return o; const a = (n = document.defaultView) == null ? void 0 : n.getComputedStyle(e, ""); return a ? a[r] : ""; } catch { return e.style[r]; } }; function ra(e, t = "px") { if (!e) return ""; if (we(e) || kv(e)) return `${e}${t}`; if (Xe(e)) return e; _e(jv, "binding value must be a string or number"); } function Fv(e, t) { if (!Ve) return; if (!t) { e.scrollTop = 0; return; } const n = []; let r = t.offsetParent; for (; r !== null && e !== r && e.contains(r); ) n.push(r), r = r.offsetParent; const o = t.offsetTop + n.reduce((s, u) => s + u.offsetTop, 0), a = o + t.offsetHeight, i = e.scrollTop, l = i + e.clientHeight; o < i ? e.scrollTop = o : a > l && (e.scrollTop = a - e.clientHeight); } /*! Element Plus Icons Vue v2.3.1 */ var Cv = /* @__PURE__ */ K({ name: "ArrowDown", __name: "arrow-down", setup(e) { return (t, n) => (j(), L("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024" }, [ Z("path", { fill: "currentColor", d: "M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z" }) ])); } }), Ds = Cv, Iv = /* @__PURE__ */ K({ name: "ArrowUp", __name: "arrow-up", setup(e) { return (t, n) => (j(), L("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024" }, [ Z("path", { fill: "currentColor", d: "m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0" }) ])); } }), Vv = Iv, Mv = /* @__PURE__ */ K({ name: "CircleCheck", __name: "circle-check", setup(e) { return (t, n) => (j(), L("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024" }, [ Z("path", { fill: "currentColor", d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896" }), Z("path", { fill: "currentColor", d: "M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z" }) ])); } }), Tv = Mv, Pv = /* @__PURE__ */ K({ name: "CircleClose", __name: "circle-close", setup(e) { return (t, n) => (j(), L("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024" }, [ Z("path", { fill: "currentColor", d: "m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z" }), Z("path", { fill: "currentColor", d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896" }) ])); } }), Ma = Pv, Rv = /* @__PURE__ */ K({ name: "Close", __name: "close", setup(e) { return (t, n) => (j(), L("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024" }, [ Z("path", { fill: "currentColor", d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z" }) ])); } }), rl = Rv, zv = /* @__PURE__ */ K({ name: "Hide", __name: "hide", setup(e) { return (t, n) => (j(), L("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024" }, [ Z("path", { fill: "currentColor", d: "M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z" }), Z("path", { fill: "currentColor", d: "M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z" }) ])); } }), Nv = zv, $v = /* @__PURE__ */ K({ name: "Loading", __name: "loading", setup(e) { return (t, n) => (j(), L("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024" }, [ Z("path", { fill: "currentColor", d: "M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z" }) ])); } }), Us = $v, Lv = /* @__PURE__ */ K({ name: "Minus", __name: "minus", setup(e) { return (t, n) => (j(), L("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024" }, [ Z("path", { fill: "currentColor", d: "M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64" }) ])); } }), Bv = Lv, Dv = /* @__PURE__ */ K({ name: "Plus", __name: "plus", setup(e) { return (t, n) => (j(), L("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024" }, [ Z("path", { fill: "currentColor", d: "M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z" }) ])); } }), Uv = Dv, qv = /* @__PURE__ */ K({ name: "View", __name: "view", setup(e) { return (t, n) => (j(), L("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024" }, [ Z("path", { fill: "currentColor", d: "M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160" }) ])); } }), Hv = qv; const qs = "__epPropKey", ae = (e) => e, Zv = (e) => We(e) && !!e[qs], yo = (e, t) => { if (!We(e) || Zv(e)) return e; const { values: n, required: r, default: o, type: a, validator: i } = e, l = { type: a, required: !!r, validator: n || i ? (s) => { let u = !1, p = []; if (n && (p = Array.from(n), Fi(e, "default") && p.push(o), u || (u = p.includes(s))), i && (u || (u = i(s))), !u && p.length > 0) { const c = [...new Set(p)].map((f) => JSON.stringify(f)).join(", "); Jc(`Invalid prop: validation failed${t ? ` for prop "${t}"` : ""}. Expected one of [${c}], got value ${JSON.stringify(s)}.`); } return u; } : void 0, [qs]: !0 }; return Fi(e, "default") && (l.default = o), l; }, Se = (e) => Qr(Object.entries(e).map(([t, n]) => [ t, yo(n, t) ])), Un = ae([ String, Object, Function ]), Hs = { validating: Us, success: Tv, error: Ma }, st = (e, t) => { if (e.install = (n) => { for (const r of [e, ...Object.values(t ?? {})]) n.component(r.name, r); }, t) for (const [n, r] of Object.entries(t)) e[n] = r; return e; }, Ta = (e) => (e.install = gr, e), qn = { 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" }, Ce = "update:modelValue", tr = "change", bn = "input", Zs = ["", "default", "small", "large"], Kv = (e) => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e), Wv = (e) => e, Jv = ["class", "style"], Gv = /^on[A-Z]/, Yv = (e = {}) => { const { excludeListeners: t = !1, excludeKeys: n } = e, r = g(() => ((n == null ? void 0 : n.value) || []).concat(Jv)), o = Ze(); return o ? g(() => { var a; return Qr(Object.entries((a = o.proxy) == null ? void 0 : a.$attrs).filter(([i]) => !r.value.includes(i) && !(t && Gv.test(i)))); }) : (_e("use-attrs", "getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"), g(() => ({}))); }, Qv = ({ from: e, replacement: t, scope: n, version: r, ref: o, type: a = "API" }, i) => { ne(() => d(i), (l) => { l && _e(n, `[${a}] ${e} is about to be deprecated in version ${r}, please use ${t} instead. For more detail, please visit: ${o} `); }, { immediate: !0 }); }; var Xv = { name: "en", el: { breadcrumb: { label: "Breadcrumb" }, colorpicker: { confirm: "OK", clear: "Clear", defaultLabel: "color picker", description: "current color is {color}. press enter to select a new color.", alphaLabel: "pick alpha value" }, datepicker: { now: "Now", today: "Today", cancel: "Cancel", clear: "Clear", confirm: "OK", dateTablePrompt: "Use the arrow keys and enter to select the day of the month", monthTablePrompt: "Use the arrow keys and enter to select the month", yearTablePrompt: "Use the arrow keys and enter to select the year", selectedDate: "Selected date", selectDate: "Select date", selectTime: "Select time", startDate: "Start Date", startTime: "Start Time", endDate: "End Date", endTime: "End Time", prevYear: "Previous Year", nextYear: "Next Year", prevMonth: "Previous Month", nextMonth: "Next Month", year: "", month1: "January", month2: "February", month3: "March", month4: "April", month5: "May", month6: "June", month7: "July", month8: "August", month9: "September", month10: "October", month11: "November", month12: "December", week: "week", weeks: { sun: "Sun", mon: "Mon", tue: "Tue", wed: "Wed", thu: "Thu", fri: "Fri", sat: "Sat" }, weeksFull: { sun: "Sunday", mon: "Monday", tue: "Tuesday", wed: "Wednesday", thu: "Thursday", fri: "Friday", sat: "Saturday" }, months: { jan: "Jan", feb: "Feb", mar: "Mar", apr: "Apr", may: "May", jun: "Jun", jul: "Jul", aug: "Aug", sep: "Sep", oct: "Oct", nov: "Nov", dec: "Dec" } }, inputNumber: { decrease: "decrease number", increase: "increase number" }, select: { loading: "Loading", noMatch: "No matching data", noData: "No data", placeholder: "Select" }, mention: { loading: "Loading" }, dropdown: { toggleDropdown: "Toggle Dropdown" }, cascader: { noMatch: "No matching data", loading: "Loading", placeholder: "Select", noData: "No data" }, pagination: { goto: "Go to", pagesize: "/page", total: "Total {total}", pageClassifier: "", page: "Page", prev: "Go to previous page", next: "Go to next page", currentPage: "page {pager}", prevPages: "Previous {pager} pages", nextPages: "Next {pager} pages", deprecationWarning: "Deprecated usages detected, please refer to the el-pagination documentation for more details" }, dialog: { close: "Close this dialog" }, drawer: { close: "Close this dialog" }, messagebox: { title: "Message", confirm: "OK", cancel: "Cancel", error: "Illegal input", close: "Close this dialog" }, upload: { deleteTip: "press delete to remove", delete: "Delete", preview: "Preview", continue: "Continue" }, slider: { defaultLabel: "slider between {min} and {max}", defaultRangeStartLabel: "pick start value", defaultRangeEndLabel: "pick end value" }, table: { emptyText: "No Data", confirmFilter: "Confirm", resetFilter: "Reset", clearFilter: "All", sumText: "Sum" }, tour: { next: "Next", previous: "Previous", finish: "Finish" }, tree: { emptyText: "No Data" }, transfer: { noMatch: "No matching data", noData: "No data", titles: ["List 1", "List 2"], filterPlaceholder: "Enter keyword", noCheckedFormat: "{total} items", hasCheckedFormat: "{checked}/{total} checked" }, image: { error: "FAILED" }, pageHeader: { title: "Back" }, popconfirm: { confirmButtonText: "Yes", cancelButtonText: "No" }, carousel: { leftArrow: "Carousel arrow left", rightArrow: "Carousel arrow right", indicator: "Carousel switch to index {index}" } } }; const eh = (e) => (t, n) => th(t, n, d(e)), th = (e, t, n) => Tt(n, e, e).replace(/\{(\w+)\}/g, (r, o) => { var a; return `${(a = t == null ? void 0 : t[o]) != null ? a : `{${o}}`}`; }), nh = (e) => { const t = g(() => d(e).name), n = bs(e) ? e : P(e); return { lang: t, locale: n, t: eh(e) }; }, Ks = Symbol("localeContextKey"), go = (e) => { const t = e || me(Ks, P()); return nh(g(() => t.value || Xv)); }, qr = "el", rh = "is-", vn = (e, t, n, r, o) => { let a = `${e}-${t}`; return n && (a += `-${n}`), r && (a += `__${r}`), o && (a += `--${o}`), a; }, Ws = Symbol("namespaceContextKey"), Pa = (e) => { const t = e || (Ze() ? me(Ws, P(qr)) : P(qr)); return g(() => d(t) || qr); }, xe = (e, t) => { const n = Pa(t); return { namespace: n, b: (r = "") => vn(n.value, e, r, "", ""), e: (r) => r ? vn(n.value, e, "", r, "") : "", m: (r) => r ? vn(n.value, e, "", "", r) : "", be: (r, o) => r && o ? vn(n.value, e, r, o, "") : "", em: (r, o) => r && o ? vn(n.value, e, "", r, o) : "", bm: (r, o) => r && o ? vn(n.value, e, r, "", o) : "", bem: (r, o, a) => r && o && a ? vn(n.value, e, r, o, a) : "", is: (r, ...o) => { const a = o.length >= 1 ? o[0] : !0; return r && a ? `${rh}${r}` : ""; }, cssVar: (r) => { const o = {}; for (const a in r) r[a] && (o[`--${n.value}-${a}`] = r[a]); return o; }, cssVarName: (r) => `--${n.value}-${r}`, cssVarBlock: (r) => { const o = {}; for (const a in r) r[a] && (o[`--${n.value}-${e}-${a}`] = r[a]); return o; }, cssVarBlockName: (r) => `--${n.value}-${e}-${r}` }; }, oh = yo({ type: ae(Boolean), default: null }), ah = yo({ type: ae(Function) }), ih = (e) => { const t = `update:${e}`, n = `onUpdate:${e}`, r = [t], o = { [e]: oh, [n]: ah }; return { useModelToggle: ({ indicator: a, toggleReason: i, shouldHideWhenRouteChanges: l, shouldProceed: s, onShow: u, onHide: p }) => { const c = Ze(), { emit: f } = c, v = c.props, m = g(() => Le(v[n])), h = g(() => v[e] === null), w = (O) => { a.value !== !0 && (a.value = !0, i && (i.value = O), Le(u) && u(O)); }, y = (O) => { a.value !== !1 && (a.value = !1, i && (i.value = O), Le(p) && p(O)); }, b = (O) => { if (v.disabled === !0 || Le(s) && !s()) return; const I = m.value && Ve; I && f(t, !0), (h.value || !I) && w(O); }, k = (O) => { if (v.disabled === !0 || !Ve) return; const I = m.value && Ve; I && f(t, !1), (h.value || !I) && y(O); }, _ = (O) => { $s(O) && (v.disabled && O ? m.value && f(t, !1) : a.value !== O && (O ? w() : y())); }, x = () => { a.value ? k() : b(); }; return ne(() => v[e], _), l && c.appContext.config.globalProperties.$route !== void 0 && ne(() => ({ ...c.proxy.$route }), () => { l.value && a.value && k(); }), $e(() => { _(v[e]); }), { hide: k, show: b, toggle: x, hasUpdateHandler: m }; }, useModelToggleProps: o, useModelToggleEmits: r }; }, Js = (e) => { const t = Ze(); return g(() => { var n, r; return (r = (n = t == null ? void 0 : t.proxy) == null ? void 0 : n.$props) == null ? void 0 : r[e]; }); }; var Je = "top", it = "bottom", lt = "right", Ge = "left", Ra = "auto", Er = [Je, it, lt, Ge], Hn = "start", xr = "end", lh = "clippingParents", Gs = "viewport", cr = "popper", sh = "reference", ol = Er.reduce(function(e, t) { return e.concat([t + "-" + Hn, t + "-" + xr]); }, []), nr = [].concat(Er, [Ra]).reduce(function(e, t) { return e.concat([t, t + "-" + Hn, t + "-" + xr]); }, []), uh = "beforeRead", ch = "read", ph = "afterRead", dh = "beforeMain", fh = "main", mh = "afterMain", vh = "beforeWrite", hh = "write", yh = "afterWrite", gh = [uh, ch, ph, dh, fh, mh, vh, hh, yh]; function At(e) { return e ? (e.nodeName || "").toLowerCase() : null; } function yt(e) { if (e == null) return window; if (e.toString() !== "[object Window]") { var t = e.ownerDocument; return t && t.defaultView || window; } return e; } function Zn(e) { var t = yt(e).Element; return e instanceof t || e instanceof Element; } function rt(e) { var t = yt(e).HTMLElement; return e instanceof t || e instanceof HTMLElement; } function za(e) { if (typeof ShadowRoot > "u") return !1; var t = yt(e).ShadowRoot; return e instanceof t || e instanceof ShadowRoot; } function bh(e) { var t = e.state; Object.keys(t.elements).forEach(function(n) { var r = t.styles[n] || {}, o = t.attributes[n] || {}, a = t.elements[n]; !rt(a) || !At(a) || (Object.assign(a.style, r), Object.keys(o).forEach(function(i) { var l = o[i]; l === !1 ? a.removeAttribute(i) : a.setAttribute(i, l === !0 ? "" : l); })); }); } function wh(e) { var t = e.state, n = { popper: { position: t.options.strategy, left: "0", top: "0", margin: "0" }, arrow: { position: "absolute" }, reference: {} }; return Object.assign(t.elements.popper.style, n.popper), t.styles = n, t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow), function() { Object.keys(t.elements).forEach(function(r) { var o = t.elements[r], a = t.attributes[r] || {}, i = Object.keys(t.styles.hasOwnProperty(r) ? t.styles[r] : n[r]), l = i.reduce(function(s, u) { return s[u] = "", s; }, {}); !rt(o) || !At(o) || (Object.assign(o.style, l), Object.keys(a).forEach(function(s) { o.removeAttribute(s); })); }); }; } var Ys = { name: "applyStyles", enabled: !0, phase: "write", fn: bh, effect: wh, requires: ["computeStyles"] }; function St(e) { return e.split("-")[0]; } var wn = Math.max, eo = Math.min, Kn = Math.round; function Wn(e, t) { t === void 0 && (t = !1); var n = e.getBoundingClientRect(), r = 1, o = 1; if (rt(e) && t) { var a = e.offsetHeight, i = e.offsetWidth; i > 0 && (r = Kn(n.width) / i || 1), a > 0 && (o = Kn(n.height) / a || 1); } return { width: n.width / r, height: n.height / o, top: n.top / o, right: n.right / r, bottom: n.bottom / o, left: n.left / r, x: n.left / r, y: n.top / o }; } function Na(e) { var t = Wn(e), n = e.offsetWidth, r = e.offsetHeight; return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - r) <= 1 && (r = t.height), { x: e.offsetLeft, y: e.offsetTop, width: n, height: r }; } function Qs(e, t) { var n = t.getRootNode && t.getRootNode(); if (e.contains(t)) return !0; if (n && za(n)) { var r = t; do { if (r && e.isSameNode(r)) return !0; r = r.parentNode || r.host; } while (r); } return !1; } function Lt(e) { return yt(e).getComputedStyle(e); } function xh(e) { return ["table", "td", "th"].indexOf(At(e)) >= 0; } function ln(e) { return ((Zn(e) ? e.ownerDocument : e.document) || window.document).documentElement; } function bo(e) { return At(e) === "html" ? e : e.assignedSlot || e.parentNode || (za(e) ? e.host : null) || ln(e); } function al(e) { return !rt(e) || Lt(e).position === "fixed" ? null : e.offsetParent; } function Sh(e) { var t = navigator.userAgent.toLowerCase().indexOf("firefox") !== -1, n = navigator.userAgent.indexOf("Trident") !== -1; if (n && rt(e)) { var r = Lt(e); if (r.position === "fixed") return null; } var o = bo(e); for (za(o) && (o = o.host); rt(o) && ["html", "body"].indexOf(At(o)) < 0; ) { var a = Lt(o); if (a.transform !== "none" || a.perspective !== "none" || a.contain === "paint" || ["transform", "perspective"].indexOf(a.willChange) !== -1 || t && a.willChange === "filter" || t && a.filter && a.filter !== "none") return o; o = o.parentNode; } return null; } function kr(e) { for (var t = yt(e), n = al(e); n && xh(n) && Lt(n).position === "static"; ) n = al(n); return n && (At(n) === "html" || At(n) === "body" && Lt(n).position === "static") ? t : n || Sh(e) || t; } function $a(e) { return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y"; } function fr(e, t, n) { return wn(e, eo(t, n)); } function Oh(e, t, n) { var r = fr(e, t, n); return r > n ? n : r; } function Xs() { return { top: 0, right: 0, bottom: 0, left: 0 }; } function eu(e) { return Object.assign({}, Xs(), e); } function tu(e, t) { return t.reduce(function(n, r) { return n[r] = e, n; }, {}); } var Ah = function(e, t) { return e = typeof e == "function" ? e(Object.assign({}, t.rects, { placement: t.placement })) : e, eu(typeof e != "number" ? e : tu(e, Er)); }; function Eh(e) { var t, n = e.state, r = e.name, o = e.options, a = n.elements.arrow, i = n.modifiersData.popperOffsets, l = St(n.placement), s = $a(l), u = [Ge, lt].indexOf(l) >= 0, p = u ? "height" : "width"; if (!(!a || !i)) { var c = Ah(o.padding, n), f = Na(a), v = s === "y" ? Je : Ge, m = s === "y" ? it : lt, h = n.rects.reference[p] + n.rects.reference[s] - i[s] - n.rects.popper[p], w = i[s] - n.rects.reference[s], y = kr(a), b = y ? s === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, k = h / 2 - w / 2, _ = c[v], x = b - f[p] - c[m], O = b / 2 - f[p] / 2 + k, I = fr(_, O, x), F = s; n.modifiersData[r] = (t = {}, t[F] = I, t.centerOffset = I - O, t); } } function kh(e) { var t = e.state, n = e.options, r = n.element, o = r === void 0 ? "[data-popper-arrow]" : r; o != null && (typeof o == "string" && (o = t.elements.popper.querySelector(o), !o) || !Qs(t.elements.popper, o) || (t.elements.arrow = o)); } var _h = { name: "arrow", enabled: !0, phase: "main", fn: Eh, effect: kh, requires: ["popperOffsets"], requiresIfExists: ["preventOverflow"] }; function Jn(e) { return e.split("-")[1]; } var jh = { top: "auto", right: "auto", bottom: "auto", left: "auto" }; function Fh(e) { var t = e.x, n = e.y, r = window, o = r.devicePixelRatio || 1; return { x: Kn(t * o) / o || 0, y: Kn(n * o) / o || 0 }; } function il(e) { var t, n = e.popper, r = e.popperRect, o = e.placement, a = e.variation, i = e.offsets, l = e.position, s = e.gpuAcceleration, u = e.adaptive, p = e.roundOffsets, c = e.isFixed, f = i.x, v = f === void 0 ? 0 : f, m = i.y, h = m === void 0 ? 0 : m, w = typeof p == "function" ? p({ x: v, y: h }) : { x: v, y: h }; v = w.x, h = w.y; var y = i.hasOwnProperty("x"), b = i.hasOwnProperty("y"), k = Ge, _ = Je, x = window; if (u) { var O = kr(n), I = "clientHeight", F = "clientWidth"; if (O === yt(n) && (O = ln(n), Lt(O).position !== "static" && l === "absolute" && (I = "scrollHeight", F = "scrollWidth")), O = O, o === Je || (o === Ge || o === lt) && a === xr) { _ = it; var C = c && O === x && x.visualViewport ? x.visualViewport.height : O[I]; h -= C - r.height, h *= s ? 1 : -1; } if (o === Ge || (o === Je || o === it) && a === xr) { k = lt; var N = c && O === x && x.visualViewport ? x.visualViewport.width : O[F]; v -= N - r.width, v *= s ? 1 : -1; } } var H = Object.assign({ position: l }, u && jh), Q = p === !0 ? Fh({ x: v, y: h }) : { x: v, y: h }; if (v = Q.x, h = Q.y, s) { var U; return Object.assign({}, H, (U = {}, U[_] = b ? "0" : "", U[k] = y ? "0" : "", U.transform = (x.devicePixelRatio || 1) <= 1 ? "translate(" + v + "px, " + h + "px)" : "translate3d(" + v + "px, " + h + "px, 0)", U)); } return Object.assign({}, H, (t = {}, t[_] = b ? h + "px" : "", t[k] = y ? v + "px" : "", t.transform = "", t)); } function Ch(e) { var t = e.state, n = e.options, r = n.gpuAcceleration, o = r === void 0 ? !0 : r, a = n.adaptive, i = a === void 0 ? !0 : a, l = n.roundOffsets, s = l === void 0 ? !0 : l, u = { placement: St(t.placement), variation: Jn(t.placement), popper: t.elements.popper, popperRect: t.rects.popper, gpuAcceleration: o, isFixed: t.options.strategy === "fixed" }; t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, il(Object.assign({}, u, { offsets: t.modifiersData.popperOffsets, position: t.options.strategy, adaptive: i, roundOffsets: s })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, il(Object.assign({}, u, { offsets: t.modifiersData.arrow, position: "absolute", adaptive: !1, roundOffsets: s })))), t.attributes.popper = Object.assign({}, t.attributes.popper, { "data-popper-placement": t.placement }); } var nu = { name: "computeStyles", enabled: !0, phase: "beforeWrite", fn: Ch, data: {} }, Tr = { passive: !0 }; function Ih(e) { var t = e.state, n = e.instance, r = e.options, o = r.scroll, a = o === void 0 ? !0 : o, i = r.resize, l = i === void 0 ? !0 : i, s = yt(t.elements.popper), u = [].concat(t.scrollParents.reference, t.scrollParents.popper); return a && u.forEach(function(p) { p.addEventListener("scroll", n.update, Tr); }), l && s.addEventListener("resize", n.update, Tr), function() { a && u.forEach(function(p) { p.removeEventListener("scroll", n.update, Tr); }), l && s.removeEventListener("resize", n.update, Tr); }; } var ru = { name: "eventListeners", enabled: !0, phase: "write", fn: function() { }, effect: Ih, data: {} }, Vh = { left: "right", right: "left", bottom: "top", top: "bottom" }; function Hr(e) { return e.replace(/left|right|bottom|top/g, function(t) { return Vh[t]; }); } var Mh = { start: "end", end: "start" }; function ll(e) { return e.replace(/start|end/g, function(t) { return Mh[t]; }); } function La(e) { var t = yt(e), n = t.pageXOffset, r = t.pageYOffset; return { scrollLeft: n, scrollTop: r }; } function Ba(e) { return Wn(ln(e)).left + La(e).scrollLeft; } function Th(e) { var t = yt(e), n = ln(e), r = t.visualViewport, o = n.clientWidth, a = n.clientHeight, i = 0, l = 0; return r && (o = r.width, a = r.height, /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || (i = r.offsetLeft, l = r.offsetTop)), { width: o, height: a, x: i + Ba(e), y: l }; } function Ph(e) { var t, n = ln(e), r = La(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, a = wn(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), i = wn(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), l = -r.scrollLeft + Ba(e), s = -r.scrollTop; return Lt(o || n).direction === "rtl" && (l += wn(n.clientWidth, o ? o.clientWidth : 0) - a), { width: a, height: i, x: l, y: s }; } function Da(e) { var t = Lt(e), n = t.overflow, r = t.overflowX, o = t.overflowY; return /auto|scroll|overlay|hidden/.test(n + o + r); } function ou(e) { return ["html", "body", "#document"].indexOf(At(e)) >= 0 ? e.ownerDocument.body : rt(e) && Da(e) ? e : ou(bo(e)); } function mr(e, t) { var n; t === void 0 && (t = []); var r = ou(e), o = r === ((n = e.ownerDocument) == null ? void 0 : n.body), a = yt(r), i = o ? [a].concat(a.visualViewport || [], Da(r) ? r : []) : r, l = t.concat(i); return o ? l : l.concat(mr(bo(i))); } function oa(e) { return Object.assign({}, e, { left: e.x, top: e.y, right: e.x + e.width, bottom: e.y + e.height }); } function Rh(e) { var t = Wn(e); return t.top = t.top + e.clientTop, t.left = t.left + e.clientLeft, t.bottom = t.top + e.clientHeight, t.right = t.left + e.clientWidth, t.width = e.clientWidth, t.height = e.clientHeight, t.x = t.left, t.y = t.top, t; } function sl(e, t) { return t === Gs ? oa(Th(e)) : Zn(t) ? Rh(t) : oa(Ph(ln(e))); } function zh(e) { var t = mr(bo(e)), n = ["absolute", "fixed"].indexOf(Lt(e).position) >= 0, r = n && rt(e) ? kr(e) : e; return Zn(r) ? t.filter(function(o) { return Zn(o) && Qs(o, r) && At(o) !== "body"; }) : []; } function Nh(e, t, n) { var r = t === "clippingParents" ? zh(e) : [].concat(t), o = [].concat(r, [n]), a = o[0], i = o.reduce(function(l, s) { var u = sl(e, s); return l.top = wn(u.top, l.top), l.right = eo(u.right, l.right), l.bottom = eo(u.bottom, l.bottom), l.left = wn(u.left, l.left), l; }, sl(e, a)); return i.width = i.right - i.left, i.height = i.bottom - i.top, i.x = i.left, i.y = i.top, i; } function au(e) { var t = e.reference, n = e.element, r = e.placement, o = r ? St(r) : null, a = r ? Jn(r) : null, i = t.x + t.width / 2 - n.width / 2, l = t.y + t.height / 2 - n.height / 2, s; switch (o) { case Je: s = { x: i, y: t.y - n.height }; break; case it: s = { x: i, y: t.y + t.height }; break; case lt: s = { x: t.x + t.width, y: l }; break; case Ge: s = { x: t.x - n.width, y: l }; break; default: s = { x: t.x, y: t.y }; } var u = o ? $a(o) : null; if (u != null) { var p = u === "y" ? "height" : "width"; switch (a) { case Hn: s[u] = s[u] - (t[p] / 2 - n[p] / 2); break; case xr: s[u] = s[u] + (t[p] / 2 - n[p] / 2); break; } } return s; } function Sr(e, t) { t === void 0 && (t = {}); var n = t, r = n.placement, o = r === void 0 ? e.placement : r, a = n.boundary, i = a === void 0 ? lh : a, l = n.rootBoundary, s = l === void 0 ? Gs : l, u = n.elementContext, p = u === void 0 ? cr : u, c = n.altBoundary, f = c === void 0 ? !1 : c, v = n.padding, m = v === void 0 ? 0 : v, h = eu(typeof m != "number" ? m : tu(m, Er)), w = p === cr ? sh : cr, y = e.rects.popper, b = e.elements[f ? w : p], k = Nh(Zn(b) ? b : b.contextElement || ln(e.elements.popper), i, s), _ = Wn(e.elements.reference), x = au({ reference: _, element: y, strategy: "absolute", placement: o }), O = oa(Object.assign({}, y, x)), I = p === cr ? O : _, F = { top: k.top - I.top + h.top, bottom: I.bottom - k.bottom + h.bottom, left: k.left - I.left + h.left, right: I.right - k.right + h.right }, C = e.modifiersData.offset; if (p === cr && C) { var N = C[o]; Object.keys(F).forEach(function(H) { var Q = [lt, it].indexOf(H) >= 0 ? 1 : -1, U = [Je, it].indexOf(H) >= 0 ? "y" : "x"; F[H] += N[U] * Q; }); } return F; } function $h(e, t) { t === void 0 && (t = {}); var n = t, r = n.placement, o = n.boundary, a = n.rootBoundary, i = n.padding, l = n.flipVariations, s = n.allowedAutoPlacements, u = s === void 0 ? nr : s, p = Jn(r), c = p ? l ? ol : ol.filter(function(m) { return Jn(m) === p; }) : Er, f = c.filter(function(m) { return u.indexOf(m) >= 0; }); f.length === 0 && (f = c); var v = f.reduce(function(m, h) { return m[h] = Sr(e, { placement: h, boundary: o, rootBoundary: a, padding: i })[St(h)], m; }, {}); return Object.keys(v).sort(function(m, h) { return v[m] - v[h]; }); } function Lh(e) { if (St(e) === Ra) return []; var t = Hr(e); return [ll(e), t, ll(t)]; } function Bh(e) { var t = e.state, n = e.options, r = e.name; if (!t.modifiersData[r]._skip) { for (var o = n.mainAxis, a = o === void 0 ? !0 : o, i = n.altAxis, l = i === void 0 ? !0 : i, s = n.fallbackPlacements, u = n.padding, p = n.boundary, c = n.rootBoundary, f = n.altBoundary, v = n.flipVariations, m = v === void 0 ? !0 : v, h = n.allowedAutoPlacements, w = t.options.placement, y = St(w), b = y === w, k = s || (b || !m ? [Hr(w)] : Lh(w)), _ = [w].concat(k).reduce(function(J, le) { return J.concat(St(le) === Ra ? $h(t, { placement: le, boundary: p, rootBoundary: c, padding: u, flipVariations: m, allowedAutoPlacements: h }) : le); }, []), x = t.rects.reference, O = t.rects.popper, I = /* @__PURE__ */ new Map(), F = !0, C = _[0], N = 0; N < _.length; N++) { var H = _[N], Q = St(H), U = Jn(H) === Hn, re = [Je, it].indexOf(Q) >= 0, E = re ? "width" : "height", A = Sr(t, { placement: H, boundary: p, rootBoundary: c, altBoundary: f, padding: u }), R = re ? U ? lt : Ge : U ? it : Je; x[E] > O[E] && (R = Hr(R)); var ee = Hr(R), G = []; if (a && G.push(A[Q] <= 0), l && G.push(A[R] <= 0, A[ee] <= 0), G.every(function(J) { return J; })) { C = H, F = !1; break; } I.set(H, G); } if (F) for (var M = m ? 3 : 1, D = function(J) { var le = _.find(function(oe) { var q = I.get(oe); if (q) return q.slice(0, J).every(function(ye) { return ye; }); }); if (le) return C = le, "break"; }, T = M; T > 0; T--) { var B = D(T); if (B === "break") break; } t.placement !== C && (t.modifiersData[r]._skip = !0, t.placement = C, t.reset = !0); } } var Dh = { name: "flip", enabled: !0, phase: "main", fn: Bh, requiresIfExists: ["offset"], data: { _skip: !1 } }; function ul(e, t, n) { return n === void 0 && (n = { x: 0, y: 0 }), { top: e.top - t.height - n.y, right: e.right - t.width + n.x, bottom: e.bottom - t.height + n.y, left: e.left - t.width - n.x }; } function cl(e) { return [Je, lt, it, Ge].some(function(t) { return e[t] >= 0; }); } function Uh(e) { var t = e.state, n = e.name, r = t.rects.reference, o = t.rects.popper, a = t.modifiersData.preventOverflow, i = Sr(t, { elementContext: "reference" }), l = Sr(t, { altBoundary: !0 }), s = ul(i, r), u = ul(l, o, a), p = cl(s), c = cl(u); t.modifiersData[n] = { referenceClippingOffsets: s, popperEscapeOffsets: u, isReferenceHidden: p, hasPopperEscaped: c }, t.attributes.popper = Object.assign({}, t.attributes.popper, { "data-popper-reference-hidden": p, "data-popper-escaped": c }); } var qh = { name: "hide", enabled: !0, phase: "main", requiresIfExists: ["preventOverflow"], fn: Uh }; function Hh(e, t, n) { var r = St(e), o = [Ge, Je].indexOf(r) >= 0 ? -1 : 1, a = typeof n == "function" ? n(Object.assign({}, t, { placement: e })) : n, i = a[0], l = a[1]; return i = i || 0, l = (l || 0) * o, [Ge, lt].indexOf(r) >= 0 ? { x: l, y: i } : { x: i, y: l }; } function Zh(e) { var t = e.state, n = e.options, r = e.name, o = n.offset, a = o === void 0 ? [0, 0] : o, i = nr.reduce(function(p, c) { return p[c] = Hh(c, t.rects, a), p; }, {}), l = i[t.placement], s = l.x, u = l.y; t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += s, t.modifiersData.popperOffsets.y += u), t.modifiersData[r] = i; } var Kh = { name: "offset", enabled: !0, phase: "main", requires: ["popperOffsets"], fn: Zh }; function Wh(e) { var t = e.state, n = e.name; t.modifiersData[n] = au({ reference: t.rects.reference, element: t.rects.popper, strategy: "absolute", placement: t.placement }); } var iu = { name: "popperOffsets", enabled: !0, phase: "read", fn: Wh, data: {} }; function Jh(e) { return e === "x" ? "y" : "x"; } function Gh(e) { var t = e.state, n = e.options, r = e.name, o = n.mainAxis, a = o === void 0 ? !0 : o, i = n.altAxis, l = i === void 0 ? !1 : i, s = n.boundary, u = n.rootBoundary, p = n.altBoundary, c = n.padding, f = n.tether, v = f === void 0 ? !0 : f, m = n.tetherOffset, h = m === void 0 ? 0 : m, w = Sr(t, { boundary: s, rootBoundary: u, padding: c, altBoundary: p }), y = St(t.placement), b = Jn(t.placement), k = !b, _ = $a(y), x = Jh(_), O = t.modifiersData.popperOffsets, I = t.rects.reference, F = t.rects.popper, C = typeof h == "function" ? h(Object.assign({}, t.rects, { placement: t.placement })) : h, N = typeof C == "number" ? { mainAxis: C, altAxis: C } : Object.assign({ mainAxis: 0, altAxis: 0 }, C), H = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, Q = { x: 0, y: 0 }; if (O) { if (a) { var U, re = _ === "y" ? Je : Ge, E = _ === "y" ? it : lt, A = _ === "y" ? "height" : "width", R = O[_], ee = R + w[re], G = R - w[E], M = v ? -F[A] / 2 : 0, D = b === Hn ? I[A] : F[A], T = b === Hn ? -F[A] : -I[A], B = t.elements.arrow, J = v && B ? Na(B) : { width: 0, height: 0 }, le = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Xs(), oe = le[re], q = le[E], ye = fr(0, I[A], J[A]), ve = k ? I[A] / 2 - M - ye - oe - N.mainAxis : D - ye - oe - N.mainAxis, Ee = k ? -I[A] / 2 + M + ye + q + N.mainAxis : T + ye + q + N.mainAxis, ue = t.elements.arrow && kr(t.elements.arrow), ge = ue ? _ === "y" ? ue.clientTop || 0 : ue.clientLeft || 0 : 0, Fe = (U = H == null ? void 0 : H[_]) != null ? U : 0, De = R + ve - Fe - ge, Ke = R + Ee - Fe, Ye = fr(v ? eo(ee, De) : ee, R, v ? wn(G, Ke) : G); O[_] = Ye, Q[_] = Ye - R; } if (l) { var Ut, qt = _ === "x" ? Je : Ge, Cn = _ === "x" ? it : lt, ut = O[x], jt = x === "y" ? "height" : "width", pn = ut + w[qt], dn = ut - w[Cn], V = [Je, Ge].indexOf(y) !== -1, de = (Ut = H == null ? void 0 : H[x]) != null ? Ut : 0, tt = V ? pn : ut - I[jt] - F[jt] - de + N.altAxis, fn = V ? ut + I[jt] + F[jt] - de - N.altAxis : dn, Ht = v && V ? Oh(tt, ut, fn) : fr(v ? tt : pn, ut, v ? fn : dn); O[x] = Ht, Q[x] = Ht - ut; } t.modifiersData[r] = Q; } } var Yh = { name: "preventOverflow", enabled: !0, phase: "main", fn: Gh, requiresIfExists: ["offset"] }; function Qh(e) { return { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop }; } function Xh(e) { return e === yt(e) || !rt(e) ? La(e) : Qh(e); } function e0(e) { var t = e.getBoundingClientRect(), n = Kn(t.width) / e.offsetWidth || 1, r = Kn(t.height) / e.offsetHeight || 1; return n !== 1 || r !== 1; } function t0(e, t, n) { n === void 0 && (n = !1); var r = rt(t), o = rt(t) && e0(t), a = ln(t), i = Wn(e, o), l = { scrollLeft: 0, scrollTop: 0 }, s = { x: 0, y: 0 }; return (r || !r && !n) && ((At(t) !== "body" || Da(a)) && (l = Xh(t)), rt(t) ? (s = Wn(t, !0), s.x += t.clientLeft, s.y += t.clientTop) : a && (s.x = Ba(a))), { x: i.left + l.scrollLeft - s.x, y: i.top + l.scrollTop - s.y, width: i.width, height: i.height }; } function n0(e) { var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = []; e.forEach(function(a) { t.set(a.name, a); }); function o(a) { n.add(a.name); var i = [].concat(a.requires || [], a.requiresIfExists || []); i.forEach(function(l) { if (!n.has(l)) { var s = t.get(l); s && o(s); } }), r.push(a); } return e.forEach(function(a) { n.has(a.name) || o(a); }), r; } function r0(e) { var t = n0(e); return gh.reduce(function(n, r) { return n.concat(t.filter(function(o) { return o.phase === r; })); }, []); } function o0(e) { var t; return function() { return t || (t = new Promise(function(n) { Promise.resolve().then(function() { t = void 0, n(e()); }); })), t; }; } function a0(e) { var t = e.reduce(function(n, r) { var o = n[r.name]; return n[r.name] = o ? Object.assign({}, o, r, { options: Object.assign({}, o.options, r.options), data: Object.assign({}, o.data, r.data) }) : r, n; }, {}); return Object.keys(t).map(function(n) { return t[n]; }); } var pl = { placement: "bottom", modifiers: [], strategy: "absolute" }; function dl() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; return !t.some(function(r) { return !(r && typeof r.getBoundingClientRect == "function"); }); } function Ua(e) { e === void 0 && (e = {}); var t = e, n = t.defaultModifiers, r = n === void 0 ? [] : n, o = t.defaultOptions, a = o === void 0 ? pl : o; return function(i, l, s) { s === void 0 && (s = a); var u = { placement: "bottom", orderedModifiers: [], options: Object.assign({}, pl, a), modifiersData: {}, elements: { reference: i, popper: l }, attributes: {}, styles: {} }, p = [], c = !1, f = { state: u, setOptions: function(h) { var w = typeof h == "function" ? h(u.options) : h; m(), u.options = Object.assign({}, a, u.options, w), u.scrollParents = { reference: Zn(i) ? mr(i) : i.contextElement ? mr(i.contextElement) : [], popper: mr(l) }; var y = r0(a0([].concat(r, u.options.modifiers))); return u.orderedModifiers = y.filter(function(b) { return b.enabled; }), v(), f.update(); }, forceUpdate: function() { if (!c) { var h = u.elements, w = h.reference, y = h.popper; if (dl(w, y)) { u.rects = { reference: t0(w, kr(y), u.options.strategy === "fixed"), popper: Na(y) }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(F) { return u.modifiersData[F.name] = Object.assign({}, F.data); }); for (var b = 0; b < u.orderedModifiers.length; b++) { if (u.reset === !0) { u.reset = !1, b = -1; continue; } var k = u.orderedModifiers[b], _ = k.fn, x = k.options, O = x === void 0 ? {} : x, I = k.name; typeof _ == "function" && (u = _({ state: u, options: O, name: I, instance: f }) || u); } } } }, update: o0(function() { return new Promise(function(h) { f.forceUpdate(), h(u); }); }), destroy: function() { m(), c = !0; } }; if (!dl(i, l)) return f; f.setOptions(s).then(function(h) { !c && s.onFirstUpdate && s.onFirstUpdate(h); }); function v() { u.orderedModifiers.forEach(function(h) { var w = h.name, y = h.options, b = y === void 0 ? {} : y, k = h.effect; if (typeof k == "function") { var _ = k({ state: u, name: w, instance: f, options: b }), x = function() { }; p.push(_ || x); } }); } function m() { p.forEach(function(h) { return h(); }), p = []; } return f; }; } Ua(); var i0 = [ru, iu, nu, Ys]; Ua({ defaultModifiers: i0 }); var l0 = [ru, iu, nu, Ys, Kh, Dh, Yh, _h, qh], s0 = Ua({ defaultModifiers: l0 }); const u0 = (e, t, n = {}) => { const r = { name: "updateState", enabled: !0, phase: "write", fn: ({ state: s }) => { const u = c0(s); Object.assign(i.value, u); }, requires: ["computeStyles"] }, o = g(() => { const { onFirstUpdate: s, placement: u, strategy: p, modifiers: c } = d(n); return { onFirstUpdate: s, placement: u || "bottom", strategy: p || "absolute", modifiers: [ ...c || [], r, { name: "applyStyles", enabled: !1 } ] }; }), a = $n(), i = P({ styles: { popper: { position: d(o).strategy, left: "0", top: "0" }, arrow: { position: "absolute" } }, attributes: {} }), l = () => { a.value && (a.value.destroy(), a.value = void 0); }; return ne(o, (s) => { const u = d(a); u && u.setOptions(s); }, { deep: !0 }), ne([e, t], ([s, u]) => { l(), !(!s || !u) && (a.value = s0(s, u, d(o))); }), Et(() => { l(); }), { state: g(() => { var s; return { ...((s = d(a)) == null ? void 0 : s.state) || {} }; }), styles: g(() => d(i).styles), attributes: g(() => d(i).attributes), update: () => { var s; return (s = d(a)) == null ? void 0 : s.update(); }, forceUpdate: () => { var s; return (s = d(a)) == null ? void 0 : s.forceUpdate(); }, instanceRef: g(() => d(a)) }; }; function c0(e) { const t = Object.keys(e.elements), n = Qr(t.map((o) => [o, e.styles[o] || {}])), r = Qr(t.map((o) => [o, e.attributes[o]])); return { styles: n, attributes: r }; } function fl() { let e; const t = (r, o) => { n(), e = window.setTimeout(r, o); }, n = () => window.clearTimeout(e); return uo(() => n()), { registerTimeout: t, cancelTimeout: n }; } const aa = { prefix: Math.floor(Math.random() * 1e4), current: 0 }, p0 = Symbol("elIdInjection"), lu = () => Ze() ? me(p0, aa) : aa, wo = (e) => { const t = lu(); !Ve && t === aa && _e("IdInjection", `Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed usage: app.provide(ID_INJECTION_KEY, { prefix: number, current: number, })`); const n = Pa(); return g(() => d(e) || `${n.value}-id-${t.prefix}-${t.current++}`); }; let zn = []; const ml = (e) => { const t = e; t.key === qn.esc && zn.forEach((n) => n(t)); }, d0 = (e) => { $e(() => { zn.length === 0 && document.addEventListener("keydown", ml), Ve && zn.push(e); }), Et(() => { zn = zn.filter((t) => t !== e), zn.length === 0 && Ve && document.removeEventListener("keydown", ml); }); }; let vl; const su = () => { const e = Pa(), t = lu(), n = g(() => `${e.value}-popper-container-${t.prefix}`), r = g(() => `#${n.value}`); return { id: n, selector: r }; }, f0 = (e) => { const t = document.createElement("div"); return t.id = e, document.body.appendChild(t), t; }, m0 = () => { const { id: e, selector: t } = su(); return Gc(() => { Ve && (process.env.NODE_ENV === "test" || !vl || !document.body.querySelector(t.value)) && (vl = f0(e.value)); }), { id: e, selector: t }; }, v0 = Se({ showAfter: { type: Number, default: 0 }, hideAfter: { type: Number, default: 200 }, autoClose: { type: Number, default: 0 } }), h0 = ({ showAfter: e, hideAfter: t, autoClose: n, open: r, close: o }) => { const { registerTimeout: a } = fl(), { registerTimeout: i, cancelTimeout: l } = fl(); return { onOpen: (s) => { a(() => { r(s); const u = d(n); we(u) && u > 0 && i(() => { o(s); }, u); }, d(e)); }, onClose: (s) => { l(), a(() => { o(s); }, d(t)); } }; }, uu = Symbol("elForwardRef"), y0 = (e) => { at(uu, { setForwardRef: (t) => { e.value = t; } }); }, g0 = (e) => ({ mounted(t) { e(t); }, updated(t) { e(t); }, unmounted() { e(null); } }), hl = { current: 0 }, yl = P(0), cu = 2e3, gl = Symbol("elZIndexContextKey"), pu = Symbol("zIndexContextKey"), du = (e) => { const t = Ze() ? me(gl, hl) : hl, n = e || (Ze() ? me(pu, void 0) : void 0), r = g(() => { const i = d(n); return we(i) ? i : cu; }), o = g(() => r.value + yl.value), a = () => (t.current++, yl.value = t.current, o.value); return !Ve && !me(gl) && _e("ZIndexInjection", `Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`), { initialZIndex: r, currentZIndex: o, nextZIndex: a }; }; function b0(e) { let t; function n() { if (e.value == null) return; const { selectionStart: o, selectionEnd: a, value: i } = e.value; if (o == null || a == null) return; const l = i.slice(0, Math.max(0, o)), s = i.slice(Math.max(0, a)); t = { selectionStart: o, selectionEnd: a, value: i, beforeTxt: l, afterTxt: s }; } function r() { if (e.value == null || t == null) return; const { value: o } = e.value, { beforeTxt: a, afterTxt: i, selectionStart: l } = t; if (a == null || i == null || l == null) return; let s = o.length; if (o.endsWith(i)) s = o.length - i.length; else if (o.startsWith(a)) s = a.length; else { const u = a[l - 1], p = o.indexOf(u, l - 1); p !== -1 && (s = p + 1); } e.value.setSelectionRange(s, s); } return [n, r]; } const Gn = yo({ type: String, values: Zs, required: !1 }), fu = Symbol("size"), w0 = () => { const e = me(fu, {}); return g(() => d(e.size) || ""); }; function mu(e, { beforeFocus: t, afterFocus: n, beforeBlur: r, afterBlur: o } = {}) { const a = Ze(), { emit: i } = a, l = $n(), s = P(!1), u = (f) => { Le(t) && t(f) || s.value || (s.value = !0, i("focus", f), n == null || n()); }, p = (f) => { var v; Le(r) && r(f) || f.relatedTarget && (v = l.value) != null && v.contains(f.relatedTarget) || (s.value = !1, i("blur", f), o == null || o()); }, c = () => { var f, v; (f = l.value) != null && f.contains(document.activeElement) && l.value !== document.activeElement || (v = e.value) == null || v.focus(); }; return ne(l, (f) => { f && f.setAttribute("tabindex", "-1"); }), Ue(l, "focus", u, !0), Ue(l, "blur", p, !0), Ue(l, "click", c, !0), process.env.NODE_ENV === "test" && $e(() => { const f = gn(e.value) ? e.value : document.querySelector("input,textarea"); f && (Ue(f, "focus", u, !0), Ue(f, "blur", p, !0)); }), { isFocused: s, wrapperRef: l, handleFocus: u, handleBlur: p }; } function vu({ afterComposition: e, emit: t }) { const n = P(!1), r = (i) => { t == null || t("compositionstart", i), n.value = !0; }, o = (i) => { var l; t == null || t("compositionupdate", i); const s = (l = i.target) == null ? void 0 : l.value, u = s[s.length - 1] || ""; n.value = !Kv(u); }, a = (i) => { t == null || t("compositionend", i), n.value && (n.value = !1, Ae(() => e(i))); }; return { isComposing: n, handleComposition: (i) => { i.type === "compositionend" ? a(i) : o(i); }, handleCompositionStart: r, handleCompositionUpdate: o, handleCompositionEnd: a }; } const hu = Symbol("emptyValuesContextKey"), x0 = "use-empty-values", S0 = ["", void 0, null], O0 = void 0, A0 = Se({ emptyValues: Array, valueOnClear: { type: [String, Number, Boolean, Function], default: void 0, validator: (e) => Le(e) ? !e() : !e } }), E0 = (e, t) => { const n = Ze() ? me(hu, P({})) : P({}), r = g(() => e.emptyValues || n.value.emptyValues || S0), o = g(() => Le(e.valueOnClear) ? e.valueOnClear() : e.valueOnClear !== void 0 ? e.valueOnClear : Le(n.value.valueOnClear) ? n.value.valueOnClear() : n.value.valueOnClear !== void 0 ? n.value.valueOnClear : O0), a = (i) => r.value.includes(i); return r.value.includes(o.value) || _e(x0, "value-on-clear should be a value of empty-values"), { emptyValues: r, valueOnClear: o, isEmptyValue: a }; }, k0 = Se({ ariaLabel: String, ariaOrientation: { type: String, values: ["horizontal", "vertical", "undefined"] }, ariaControls: String }), jn = (e) => Ev(k0, e), yu = Symbol(), to = P(); function qa(e, t = void 0) { const n = Ze() ? me(yu, to) : to; return e ? g(() => { var r, o; return (o = (r = n.value) == null ? void 0 : r[e]) != null ? o : t; }) : n; } function _0(e, t) { const n = qa(), r = xe(e, g(() => { var l; return ((l = n.value) == null ? void 0 : l.namespace) || qr; })), o = go(g(() => { var l; return (l = n.value) == null ? void 0 : l.locale; })), a = du(g(() => { var l; return ((l = n.value) == null ? void 0 : l.zIndex) || cu; })), i = g(() => { var l; return d(t) || ((l = n.value) == null ? void 0 : l.size) || ""; }); return j0(g(() => d(n) || {})), { ns: r, locale: o, zIndex: a, size: i }; } const j0 = (e, t, n = !1) => { var r; const o = !!Ze(), a = o ? qa() : void 0, i = (r = void 0) != null ? r : o ? at : void 0; if (!i) { _e("provideGlobalConfig", "provideGlobalConfig() can only be used inside setup()."); return; } const l = g(() => { const s = d(e); return a != null && a.value ? F0(a.value, s) : s; }); return i(yu, l), i(Ks, g(() => l.value.locale)), i(Ws, g(() => l.value.namespace)), i(pu, g(() => l.value.zIndex)), i(fu, { size: g(() => l.value.size || "") }), i(hu, g(() => ({ emptyValues: l.value.emptyValues, valueOnClear: l.value.valueOnClear }))), (n || !to.value) && (to.value = l.value), l; }, F0 = (e, t) => { const n = [.../* @__PURE__ */ new Set([...tl(e), ...tl(t)])], r = {}; for (const o of n) r[o] = t[o] !== void 0 ? t[o] : e[o]; return r; }; var Oe = (e, t) => { const n = e.__vccOpts || e; for (const [r, o] of t) n[r] = o; return n; }; const C0 = Se({ size: { type: ae([Number, String]) }, color: { type: String } }), I0 = K({ name: "ElIcon", inheritAttrs: !1 }), V0 = /* @__PURE__ */ K({ ...I0, props: C0, setup(e) { const t = e, n = xe("icon"), r = g(() => { const { size: o, color: a } = t; return !o && !a ? {} : { fontSize: Rt(o) ? void 0 : ra(o), "--color": a }; }); return (o, a) => (j(), L("i", rn({ class: d(n).b(), style: d(r) }, o.$attrs), [ te(o.$slots, "default") ], 16)); } }); var M0 = /* @__PURE__ */ Oe(V0, [["__file", "icon.vue"]]); const nt = st(M0), Ha = Symbol("formContextKey"), no = Symbol("formItemContextKey"), rr = (e, t = {}) => { const n = P(void 0), r = t.prop ? n : Js("size"), o = t.global ? n : w0(), a = t.form ? { size: void 0 } : me(Ha, void 0), i = t.formItem ? { size: void 0 } : me(no, void 0); return g(() => r.value || d(e) || (i == null ? void 0 : i.size) || (a == null ? void 0 : a.size) || o.value || ""); }, xo = (e) => { const t = Js("disabled"), n = me(Ha, void 0); return g(() => t.value || d(e) || (n == null ? void 0 : n.disabled) || !1); }, _r = () => { const e = me(Ha, void 0), t = me(no, void 0); return { form: e, formItem: t }; }, Za = (e, { formItemContext: t, disableIdGeneration: n, disableIdManagement: r }) => { n || (n = P(!1)), r || (r = P(!1)); const o = P(); let a; const i = g(() => { var l; return !!(!(e.label || e.ariaLabel) && t && t.inputIds && ((l = t.inputIds) == null ? void 0 : l.length) <= 1); }); return $e(() => { a = ne([ft(e, "id"), n], ([l, s]) => { const u = l ?? (s ? void 0 : wo().value); u !== o.value && (t != null && t.removeInputId && (o.value && t.removeInputId(o.value), !(r != null && r.value) && !s && u && t.addInputId(u)), o.value = u); }, { immediate: !0 }); }), Yc(() => { a && a(), t != null && t.removeInputId && o.value && t.removeInputId(o.value); }), { isLabeledByFormItem: i, inputId: o }; }; let ct; const T0 = ` height:0 !important; visibility:hidden !important; ${kp() ? "" : "overflow:hidden !important;"} position:absolute !important; z-index:-1000 !important; top:0 !important; right:0 !important; `, P0 = [ "letter-spacing", "line-height", "padding-top", "padding-bottom", "font-family", "font-weight", "font-size", "text-rendering", "text-transform", "width", "text-indent", "padding-left", "padding-right", "border-width", "box-sizing" ]; function R0(e) { const t = window.getComputedStyle(e), n = t.getPropertyValue("box-sizing"), r = Number.parseFloat(t.getPropertyValue("padding-bottom")) + Number.parseFloat(t.getPropertyValue("padding-top")), o = Number.parseFloat(t.getPropertyValue("border-bottom-width")) + Number.parseFloat(t.getPropertyValue("border-top-width")); return { contextStyle: P0.map((a) => `${a}:${t.getPropertyValue(a)}`).join(";"), paddingSize: r, borderSize: o, boxSizing: n }; } function bl(e, t = 1, n) { var r; ct || (ct = document.createElement("textarea"), document.body.appendChild(ct)); const { paddingSize: o, borderSize: a, boxSizing: i, contextStyle: l } = R0(e); ct.setAttribute("style", `${l};${T0}`), ct.value = e.value || e.placeholder || ""; let s = ct.scrollHeight; const u = {}; i === "border-box" ? s = s + a : i === "content-box" && (s = s - o), ct.value = ""; const p = ct.scrollHeight - o; if (we(t)) { let c = p * t; i === "border-box" && (c = c + o + a), s = Math.max(c, s), u.minHeight = `${c}px`; } if (we(n)) { let c = p * n; i === "border-box" && (c = c + o + a), s = Math.min(c, s); } return u.height = `${s}px`, (r = ct.parentNode) == null || r.removeChild(ct), ct = void 0, u; } const z0 = Se({ id: { type: String, default: void 0 }, size: Gn, disabled: Boolean, modelValue: { type: ae([ String, Number, Object ]), default: "" }, maxlength: { type: [String, Number] }, minlength: { type: [String, Number] }, type: { type: String, default: "text" }, resize: { type: String, values: ["none", "both", "horizontal", "vertical"] }, autosize: { type: ae([Boolean, Object]), default: !1 }, autocomplete: { type: String, default: "off" }, formatter: { type: Function }, parser: { type: Function }, placeholder: { type: String }, form: { type: String }, readonly: Boolean, clearable: Boolean, showPassword: Boolean, showWordLimit: Boolean, suffixIcon: { type: Un }, prefixIcon: { type: Un }, containerRole: { type: String, default: void 0 }, tabindex: { type: [String, Number], default: 0 }, validateEvent: { type: Boolean, default: !0 }, inputStyle: { type: ae([Object, Array, String]), default: () => Wv({}) }, autofocus: Boolean, rows: { type: Number, default: 2 }, ...jn(["ariaLabel"]) }), N0 = { [Ce]: (e) => Xe(e), input: (e) => Xe(e), change: (e) => Xe(e), focus: (e) => e instanceof FocusEvent, blur: (e) => e instanceof FocusEvent, clear: () => !0, mouseleave: (e) => e instanceof MouseEvent, mouseenter: (e) => e instanceof MouseEvent, keydown: (e) => e instanceof Event, compositionstart: (e) => e instanceof CompositionEvent, compositionupdate: (e) => e instanceof CompositionEvent, compositionend: (e) => e instanceof CompositionEvent }, $0 = K({ name: "ElInput", inheritAttrs: !1 }), L0 = /* @__PURE__ */ K({ ...$0, props: z0, emits: N0, setup(e, { expose: t, emit: n }) { const r = e, o = Dc(), a = vs(), i = g(() => { const V = {}; return r.containerRole === "combobox" && (V["aria-haspopup"] = o["aria-haspopup"], V["aria-owns"] = o["aria-owns"], V["aria-expanded"] = o["aria-expanded"]), V; }), l = g(() => [ r.type === "textarea" ? w.b() : h.b(), h.m(v.value), h.is("disabled", m.value), h.is("exceed", B.value), { [h.b("group")]: a.prepend || a.append, [h.m("prefix")]: a.prefix || r.prefixIcon, [h.m("suffix")]: a.suffix || r.suffixIcon || r.clearable || r.showPassword, [h.bm("suffix", "password-clear")]: G.value && M.value, [h.b("hidden")]: r.type === "hidden" }, o.class ]), s = g(() => [ h.e("wrapper"), h.is("focus", C.value) ]), u = Yv({ excludeKeys: g(() => Object.keys(i.value)) }), { form: p, formItem: c } = _r(), { inputId: f } = Za(r, { formItemContext: c }), v = rr(), m = xo(), h = xe("input"), w = xe("textarea"), y = $n(), b = $n(), k = P(!1), _ = P(!1), x = P(), O = $n(r.inputStyle), I = g(() => y.value || b.value), { wrapperRef: F, isFocused: C, handleFocus: N, handleBlur: H } = mu(I, { beforeFocus() { return m.value; }, afterBlur() { var V; r.validateEvent && ((V = c == null ? void 0 : c.validate) == null || V.call(c, "blur").catch((de) => _e(de))); } }), Q = g(() => { var V; return (V = p == null ? void 0 : p.statusIcon) != null ? V : !1; }), U = g(() => (c == null ? void 0 : c.validateState) || ""), re = g(() => U.value && Hs[U.value]), E = g(() => _.value ? Hv : Nv), A = g(() => [ o.style ]), R = g(() => [ r.inputStyle, O.value, { resize: r.resize } ]), ee = g(() => Nt(r.modelValue) ? "" : String(r.modelValue)), G = g(() => r.clearable && !m.value && !r.readonly && !!ee.value && (C.value || k.value)), M = g(() => r.showPassword && !m.value && !r.readonly && !!ee.value && (!!ee.value || C.value)), D = g(() => r.showWordLimit && !!r.maxlength && (r.type === "text" || r.type === "textarea") && !m.value && !r.readonly && !r.showPassword), T = g(() => ee.value.length), B = g(() => !!D.value && T.value > Number(r.maxlength)), J = g(() => !!a.suffix || !!r.suffixIcon || G.value || r.showPassword || D.value || !!U.value && Q.value), [le, oe] = b0(y); Vt(b, (V) => { if (ye(), !D.value || r.resize !== "both") return; const de = V[0], { width: tt } = de.contentRect; x.value = { right: `calc(100% - ${tt + 15 + 6}px)` }; }); const q = () => { const { type: V, autosize: de } = r; if (!(!Ve || V !== "textarea" || !b.value)) if (de) { const tt = We(de) ? de.minRows : void 0, fn = We(de) ? de.maxRows : void 0, Ht = bl(b.value, tt, fn); O.value = { overflowY: "hidden", ...Ht }, Ae(() => { b.value.offsetHeight, O.value = Ht; }); } else O.value = { minHeight: bl(b.value).minHeight }; }, ye = /* @__PURE__ */ ((V) => { let de = !1; return () => { var tt; de || !r.autosize || ((tt = b.value) == null ? void 0 : tt.offsetParent) === null || (V(), de = !0); }; })(q), ve = () => { const V = I.value, de = r.formatter ? r.formatter(ee.value) : ee.value; !V || V.value === de || (V.value = de); }, Ee = async (V) => { le(); let { value: de } = V.target; if (r.formatter && (de = r.parser ? r.parser(de) : de), !ge.value) { if (de === ee.value) { ve(); return; } n(Ce, de), n("input", de), await Ae(), ve(), oe(); } }, ue = (V) => { n("change", V.target.value); }, { isComposing: ge, handleCompositionStart: Fe, handleCompositionUpdate: De, handleCompositionEnd: Ke } = vu({ emit: n, afterComposition: Ee }), Ye = () => { _.value = !_.value, Ut(); }, Ut = async () => { var V; await Ae(), (V = I.value) == null || V.focus(); }, qt = () => { var V; return (V = I.value) == null ? void 0 : V.blur(); }, Cn = (V) => { k.value = !1, n("mouseleave", V); }, ut = (V) => { k.value = !0, n("mouseenter", V); }, jt = (V) => { n("keydown", V); }, pn = () => { var V; (V = I.value) == null || V.select(); }, dn = () => { n(Ce, ""), n("change", ""), n("clear"), n("input", ""); }; return ne(() => r.modelValue, () => { var V; Ae(() => q()), r.validateEvent && ((V = c == null ? void 0 : c.validate) == null || V.call(c, "change").catch((de) => _e(de))); }), ne(ee, () => ve()), ne(() => r.type, async () => { await Ae(), ve(), q(); }), $e(() => { !r.formatter && r.parser && _e("ElInput", "If you set the parser, you also need to set the formatter."), ve(), Ae(q); }), t({ input: y, textarea: b, ref: I, textareaStyle: R, autosize: ft(r, "autosize"), isComposing: ge, focus: Ut, blur: qt, select: pn, clear: dn, resizeTextarea: q }), (V, de) => (j(), L("div", rn(d(i), { class: [ d(l), { [d(h).bm("group", "append")]: V.$slots.append, [d(h).bm("group", "prepend")]: V.$slots.prepend } ], style: d(A), role: V.containerRole, onMouseenter: ut, onMouseleave: Cn }), [ W(" input "), V.type !== "textarea" ? (j(), L(qe, { key: 0 }, [ W(" prepend slot "), V.$slots.prepend ? (j(), L("div", { key: 0, class: z(d(h).be("group", "prepend")) }, [ te(V.$slots, "prepend") ], 2)) : W("v-if", !0), Z("div", { ref_key: "wrapperRef", ref: F, class: z(d(s)) }, [ W(" prefix slot "), V.$slots.prefix || V.prefixIcon ? (j(), L("span", { key: 0, class: z(d(h).e("prefix")) }, [ Z("span", { class: z(d(h).e("prefix-inner")) }, [ te(V.$slots, "prefix"), V.prefixIcon ? (j(), Y(d(nt), { key: 0, class: z(d(h).e("icon")) }, { default: X(() => [ (j(), Y(mt(V.prefixIcon))) ]), _: 1 }, 8, ["class"])) : W("v-if", !0) ], 2) ], 2)) : W("v-if", !0), Z("input", rn({ id: d(f), ref_key: "input", ref: y, class: d(h).e("inner") }, d(u), { minlength: V.minlength, maxlength: V.maxlength, type: V.showPassword ? _.value ? "text" : "password" : V.type, disabled: d(m), readonly: V.readonly, autocomplete: V.autocomplete, tabindex: V.tabindex, "aria-label": V.ariaLabel, placeholder: V.placeholder, style: V.inputStyle, form: V.form, autofocus: V.autofocus, onCompositionstart: d(Fe), onCompositionupdate: d(De), onCompositionend: d(Ke), onInput: Ee, onChange: ue, onKeydown: jt }), null, 16, ["id", "minlength", "maxlength", "type", "disabled", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form", "autofocus", "onCompositionstart", "onCompositionupdate", "onCompositionend"]), W(" suffix slot "), d(J) ? (j(), L("span", { key: 1, class: z(d(h).e("suffix")) }, [ Z("span", { class: z(d(h).e("suffix-inner")) }, [ !d(G) || !d(M) || !d(D) ? (j(), L(qe, { key: 0 }, [ te(V.$slots, "suffix"), V.suffixIcon ? (j(), Y(d(nt), { key: 0, class: z(d(h).e("icon")) }, { default: X(() => [ (j(), Y(mt(V.suffixIcon))) ]), _: 1 }, 8, ["class"])) : W("v-if", !0) ], 64)) : W("v-if", !0), d(G) ? (j(), Y(d(nt), { key: 1, class: z([d(h).e("icon"), d(h).e("clear")]), onMousedown: Re(d(gr), ["prevent"]), onClick: dn }, { default: X(() => [ fe(d(Ma)) ]), _: 1 }, 8, ["class", "onMousedown"])) : W("v-if", !0), d(M) ? (j(), Y(d(nt), { key: 2, class: z([d(h).e("icon"), d(h).e("password")]), onClick: Ye }, { default: X(() => [ (j(), Y(mt(d(E)))) ]), _: 1 }, 8, ["class"])) : W("v-if", !0), d(D) ? (j(), L("span", { key: 3, class: z(d(h).e("count")) }, [ Z("span", { class: z(d(h).e("count-inner")) }, ze(d(T)) + " / " + ze(V.maxlength), 3) ], 2)) : W("v-if", !0), d(U) && d(re) && d(Q) ? (j(), Y(d(nt), { key: 4, class: z([ d(h).e("icon"), d(h).e("validateIcon"), d(h).is("loading", d(U) === "validating") ]) }, { default: X(() => [ (j(), Y(mt(d(re)))) ]), _: 1 }, 8, ["class"])) : W("v-if", !0) ], 2) ], 2)) : W("v-if", !0) ], 2), W(" append slot "), V.$slots.append ? (j(), L("div", { key: 1, class: z(d(h).be("group", "append")) }, [ te(V.$slots, "append") ], 2)) : W("v-if", !0) ], 64)) : (j(), L(qe, { key: 1 }, [ W(" textarea "), Z("textarea", rn({ id: d(f), ref_key: "textarea", ref: b, class: [d(w).e("inner"), d(h).is("focus", d(C))] }, d(u), { minlength: V.minlength, maxlength: V.maxlength, tabindex: V.tabindex, disabled: d(m), readonly: V.readonly, autocomplete: V.autocomplete, style: d(R), "aria-label": V.ariaLabel, placeholder: V.placeholder, form: V.form, autofocus: V.autofocus, rows: V.rows, onCompositionstart: d(Fe), onCompositionupdate: d(De), onCompositionend: d(Ke), onInput: Ee, onFocus: d(N), onBlur: d(H), onChange: ue, onKeydown: jt }), null, 16, ["id", "minlength", "maxlength", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form", "autofocus", "rows", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onFocus", "onBlur"]), d(D) ? (j(), L("span", { key: 0, style: Te(x.value), class: z(d(h).e("count")) }, ze(d(T)) + " / " + ze(V.maxlength), 7)) : W("v-if", !0) ], 64)) ], 16, ["role"])); } }); var B0 = /* @__PURE__ */ Oe(L0, [["__file", "input.vue"]]); const D0 = st(B0), Vn = 4, U0 = { vertical: { offset: "offsetHeight", scroll: "scrollTop", scrollSize: "scrollHeight", size: "height", key: "vertical", axis: "Y", client: "clientY", direction: "top" }, horizontal: { offset: "offsetWidth", scroll: "scrollLeft", scrollSize: "scrollWidth", size: "width", key: "horizontal", axis: "X", client: "clientX", direction: "left" } }, q0 = ({ move: e, size: t, bar: n }) => ({ [n.size]: t, transform: `translate${n.axis}(${e}%)` }), Ka = Symbol("scrollbarContextKey"), H0 = Se({ vertical: Boolean, size: String, move: Number, ratio: { type: Number, required: !0 }, always: Boolean }), Z0 = "Thumb", K0 = /* @__PURE__ */ K({ __name: "thumb", props: H0, setup(e) { const t = e, n = me(Ka), r = xe("scrollbar"); n || Va(Z0, "can not inject scrollbar context"); const o = P(), a = P(), i = P({}), l = P(!1); let s = !1, u = !1, p = Ve ? document.onselectstart : null; const c = g(() => U0[t.vertical ? "vertical" : "horizontal"]), f = g(() => q0({ size: t.size, move: t.move, bar: c.value })), v = g(() => o.value[c.value.offset] ** 2 / n.wrapElement[c.value.scrollSize] / t.ratio / a.value[c.value.offset]), m = (O) => { var I; if (O.stopPropagation(), O.ctrlKey || [1, 2].includes(O.button)) return; (I = window.getSelection()) == null || I.removeAllRanges(), w(O); const F = O.currentTarget; F && (i.value[c.value.axis] = F[c.value.offset] - (O[c.value.client] - F.getBoundingClientRect()[c.value.direction])); }, h = (O) => { if (!a.value || !o.value || !n.wrapElement) return; const I = Math.abs(O.target.getBoundingClientRect()[c.value.direction] - O[c.value.client]), F = a.value[c.value.offset] / 2, C = (I - F) * 100 * v.value / o.value[c.value.offset]; n.wrapElement[c.value.scroll] = C * n.wrapElement[c.value.scrollSize] / 100; }, w = (O) => { O.stopImmediatePropagation(), s = !0, document.addEventListener("mousemove", y), document.addEventListener("mouseup", b), p = document.onselectstart, document.onselectstart = () => !1; }, y = (O) => { if (!o.value || !a.value || s === !1) return; const I = i.value[c.value.axis]; if (!I) return; const F = (o.value.getBoundingClientRect()[c.value.direction] - O[c.value.client]) * -1, C = a.value[c.value.offset] - I, N = (F - C) * 100 * v.value / o.value[c.value.offset]; n.wrapElement[c.value.scroll] = N * n.wrapElement[c.value.scrollSize] / 100; }, b = () => { s = !1, i.value[c.value.axis] = 0, document.removeEventListener("mousemove", y), document.removeEventListener("mouseup", b), x(), u && (l.value = !1); }, k = () => { u = !1, l.value = !!t.size; }, _ = () => { u = !0, l.value = s; }; Et(() => { x(), document.removeEventListener("mouseup", b); }); const x = () => { document.onselectstart !== p && (document.onselectstart = p); }; return Ue(ft(n, "scrollbarElement"), "mousemove", k), Ue(ft(n, "scrollbarElement"), "mouseleave", _), (O, I) => (j(), Y(so, { name: d(r).b("fade"), persisted: "" }, { default: X(() => [ He(Z("div", { ref_key: "instance", ref: o, class: z([d(r).e("bar"), d(r).is(d(c).key)]), onMousedown: h }, [ Z("div", { ref_key: "thumb", ref: a, class: z(d(r).e("thumb")), style: Te(d(f)), onMousedown: m }, null, 38) ], 34), [ [$t, O.always || l.value] ]) ]), _: 1 }, 8, ["name"])); } }); var wl = /* @__PURE__ */ Oe(K0, [["__file", "thumb.vue"]]); const W0 = Se({ always: { type: Boolean, default: !0 }, minSize: { type: Number, required: !0 } }), J0 = /* @__PURE__ */ K({ __name: "bar", props: W0, setup(e, { expose: t }) { const n = e, r = me(Ka), o = P(0), a = P(0), i = P(""), l = P(""), s = P(1), u = P(1); return t({ handleScroll: (p) => { if (p) { const c = p.offsetHeight - Vn, f = p.offsetWidth - Vn; a.value = p.scrollTop * 100 / c * s.value, o.value = p.scrollLeft * 100 / f * u.value; } }, update: () => { const p = r == null ? void 0 : r.wrapElement; if (!p) return; const c = p.offsetHeight - Vn, f = p.offsetWidth - Vn, v = c ** 2 / p.scrollHeight, m = f ** 2 / p.scrollWidth, h = Math.max(v, n.minSize), w = Math.max(m, n.minSize); s.value = v / (c - v) / (h / (c - h)), u.value = m / (f - m) / (w / (f - w)), l.value = h + Vn < c ? `${h}px` : "", i.value = w + Vn < f ? `${w}px` : ""; } }), (p, c) => (j(), L(qe, null, [ fe(wl, { move: o.value, ratio: u.value, size: i.value, always: p.always }, null, 8, ["move", "ratio", "size", "always"]), fe(wl, { move: a.value, ratio: s.value, size: l.value, vertical: "", always: p.always }, null, 8, ["move", "ratio", "size", "always"]) ], 64)); } }); var G0 = /* @__PURE__ */ Oe(J0, [["__file", "bar.vue"]]); const Y0 = Se({ height: { type: [String, Number], default: "" }, maxHeight: { type: [String, Number], default: "" }, native: { type: Boolean, default: !1 }, wrapStyle: { type: ae([String, Object, Array]), default: "" }, wrapClass: { type: [String, Array], default: "" }, viewClass: { type: [String, Array], default: "" }, viewStyle: { type: [String, Array, Object], default: "" }, noresize: Boolean, tag: { type: String, default: "div" }, always: Boolean, minSize: { type: Number, default: 20 }, tabindex: { type: [String, Number], default: void 0 }, id: String, role: String, ...jn(["ariaLabel", "ariaOrientation"]) }), Q0 = { scroll: ({ scrollTop: e, scrollLeft: t }) => [e, t].every(we) }, ia = "ElScrollbar", X0 = K({ name: ia }), ey = /* @__PURE__ */ K({ ...X0, props: Y0, emits: Q0, setup(e, { expose: t, emit: n }) { const r = e, o = xe("scrollbar"); let a, i, l = 0, s = 0; const u = P(), p = P(), c = P(), f = P(), v = g(() => { const x = {}; return r.height && (x.height = ra(r.height)), r.maxHeight && (x.maxHeight = ra(r.maxHeight)), [r.wrapStyle, x]; }), m = g(() => [ r.wrapClass, o.e("wrap"), { [o.em("wrap", "hidden-default")]: !r.native } ]), h = g(() => [o.e("view"), r.viewClass]), w = () => { var x; p.value && ((x = f.value) == null || x.handleScroll(p.value), l = p.value.scrollTop, s = p.value.scrollLeft, n("scroll", { scrollTop: p.value.scrollTop, scrollLeft: p.value.scrollLeft })); }; function y(x, O) { We(x) ? p.value.scrollTo(x) : we(x) && we(O) && p.value.scrollTo(x, O); } const b = (x) => { if (!we(x)) { _e(ia, "value must be a number"); return; } p.value.scrollTop = x; }, k = (x) => { if (!we(x)) { _e(ia, "value must be a number"); return; } p.value.scrollLeft = x; }, _ = () => { var x; (x = f.value) == null || x.update(); }; return ne(() => r.noresize, (x) => { x ? (a == null || a(), i == null || i()) : ({ stop: a } = Vt(c, _), i = Ue("resize", _)); }, { immediate: !0 }), ne(() => [r.maxHeight, r.height], () => { r.native || Ae(() => { var x; _(), p.value && ((x = f.value) == null || x.handleScroll(p.value)); }); }), at(Ka, vt({ scrollbarElement: u, wrapElement: p })), Uc(() => { p.value && (p.value.scrollTop = l, p.value.scrollLeft = s); }), $e(() => { r.native || Ae(() => { _(); }); }), hs(() => _()), t({ wrapRef: p, update: _, scrollTo: y, setScrollTop: b, setScrollLeft: k, handleScroll: w }), (x, O) => (j(), L("div", { ref_key: "scrollbarRef", ref: u, class: z(d(o).b()) }, [ Z("div", { ref_key: "wrapRef", ref: p, class: z(d(m)), style: Te(d(v)), tabindex: x.tabindex, onScroll: w }, [ (j(), Y(mt(x.tag), { id: x.id, ref_key: "resizeRef", ref: c, class: z(d(h)), style: Te(x.viewStyle), role: x.role, "aria-label": x.ariaLabel, "aria-orientation": x.ariaOrientation }, { default: X(() => [ te(x.$slots, "default") ]), _: 3 }, 8, ["id", "class", "style", "role", "aria-label", "aria-orientation"])) ], 46, ["tabindex"]), x.native ? W("v-if", !0) : (j(), Y(G0, { key: 0, ref_key: "barRef", ref: f, always: x.always, "min-size": x.minSize }, null, 8, ["always", "min-size"])) ], 2)); } }); var ty = /* @__PURE__ */ Oe(ey, [["__file", "scrollbar.vue"]]); const ny = st(ty), Wa = Symbol("popper"), gu = Symbol("popperContent"), ry = [ "dialog", "grid", "group", "listbox", "menu", "navigation", "tooltip", "tree" ], bu = Se({ role: { type: String, values: ry, default: "tooltip" } }), oy = K({ name: "ElPopper", inheritAttrs: !1 }), ay = /* @__PURE__ */ K({ ...oy, props: bu, setup(e, { expose: t }) { const n = e, r = P(), o = P(), a = P(), i = P(), l = g(() => n.role), s = { triggerRef: r, popperInstanceRef: o, contentRef: a, referenceRef: i, role: l }; return t(s), at(Wa, s), (u, p) => te(u.$slots, "default"); } }); var iy = /* @__PURE__ */ Oe(ay, [["__file", "popper.vue"]]); const wu = Se({ arrowOffset: { type: Number, default: 5 } }), ly = K({ name: "ElPopperArrow", inheritAttrs: !1 }), sy = /* @__PURE__ */ K({ ...ly, props: wu, setup(e, { expose: t }) { const n = e, r = xe("popper"), { arrowOffset: o, arrowRef: a, arrowStyle: i } = me(gu, void 0); return ne(() => n.arrowOffset, (l) => { o.value = l; }), Et(() => { a.value = void 0; }), t({ arrowRef: a }), (l, s) => (j(), L("span", { ref_key: "arrowRef", ref: a, class: z(d(r).e("arrow")), style: Te(d(i)), "data-popper-arrow": "" }, null, 6)); } }); var uy = /* @__PURE__ */ Oe(sy, [["__file", "arrow.vue"]]); const Io = "ElOnlyChild", cy = K({ name: Io, setup(e, { slots: t, attrs: n }) { var r; const o = me(uu), a = g0((r = o == null ? void 0 : o.setForwardRef) != null ? r : gr); return () => { var i; const l = (i = t.default) == null ? void 0 : i.call(t, n); if (!l) return null; if (l.length > 1) return _e(Io, "requires exact only one valid child."), null; const s = xu(l); return s ? He(qc(s, n), [[a]]) : (_e(Io, "no valid child node found"), null); }; } }); function xu(e) { if (!e) return null; const t = e; for (const n of t) { if (We(n)) switch (n.type) { case Hc: continue; case ys: case "svg": return xl(n); case qe: return xu(n.children); default: return n; } return xl(n); } return null; } function xl(e) { const t = xe("only-child"); return fe("span", { class: t.e("content") }, [e]); } const Su = Se({ virtualRef: { type: ae(Object) }, virtualTriggering: Boolean, onMouseenter: { type: ae(Function) }, onMouseleave: { type: ae(Function) }, onClick: { type: ae(Function) }, onKeydown: { type: ae(Function) }, onFocus: { type: ae(Function) }, onBlur: { type: ae(Function) }, onContextmenu: { type: ae(Function) }, id: String, open: Boolean }), py = K({ name: "ElPopperTrigger", inheritAttrs: !1 }), dy = /* @__PURE__ */ K({ ...py, props: Su, setup(e, { expose: t }) { const n = e, { role: r, triggerRef: o } = me(Wa, void 0); y0(o); const a = g(() => l.value ? n.id : void 0), i = g(() => { if (r && r.value === "tooltip") return n.open && n.id ? n.id : void 0; }), l = g(() => { if (r && r.value !== "tooltip") return r.value; }), s = g(() => l.value ? `${n.open}` : void 0); let u; const p = [ "onMouseenter", "onMouseleave", "onClick", "onKeydown", "onFocus", "onBlur", "onContextmenu" ]; return $e(() => { ne(() => n.virtualRef, (c) => { c && (o.value = Pt(c)); }, { immediate: !0 }), ne(o, (c, f) => { u == null || u(), u = void 0, gn(c) && (p.forEach((v) => { var m; const h = n[v]; h && (c.addEventListener(v.slice(2).toLowerCase(), h), (m = f == null ? void 0 : f.removeEventListener) == null || m.call(f, v.slice(2).toLowerCase(), h)); }), u = ne([a, i, l, s], (v) => { [ "aria-controls", "aria-describedby", "aria-haspopup", "aria-expanded" ].forEach((m, h) => { Nt(v[h]) ? c.removeAttribute(m) : c.setAttribute(m, v[h]); }); }, { immediate: !0 })), gn(f) && [ "aria-controls", "aria-describedby", "aria-haspopup", "aria-expanded" ].forEach((v) => f.removeAttribute(v)); }, { immediate: !0 }); }), Et(() => { if (u == null || u(), u = void 0, o.value && gn(o.value)) { const c = o.value; p.forEach((f) => { const v = n[f]; v && c.removeEventListener(f.slice(2).toLowerCase(), v); }), o.value = void 0; } }), t({ triggerRef: o }), (c, f) => c.virtualTriggering ? W("v-if", !0) : (j(), Y(d(cy), rn({ key: 0 }, c.$attrs, { "aria-controls": d(a), "aria-describedby": d(i), "aria-expanded": d(s), "aria-haspopup": d(l) }), { default: X(() => [ te(c.$slots, "default") ]), _: 3 }, 16, ["aria-controls", "aria-describedby", "aria-expanded", "aria-haspopup"])); } }); var fy = /* @__PURE__ */ Oe(dy, [["__file", "trigger.vue"]]); const Vo = "focus-trap.focus-after-trapped", Mo = "focus-trap.focus-after-released", my = "focus-trap.focusout-prevented", Sl = { cancelable: !0, bubbles: !1 }, vy = { cancelable: !0, bubbles: !1 }, Ol = "focusAfterTrapped", Al = "focusAfterReleased", hy = Symbol("elFocusTrap"), Ja = P(), So = P(0), Ga = P(0); let Pr = 0; const Ou = (e) => { const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (r) => { const o = r.tagName === "INPUT" && r.type === "hidden"; return r.disabled || r.hidden || o ? NodeFilter.FILTER_SKIP : r.tabIndex >= 0 || r === document.activeElement ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP; } }); for (; n.nextNode(); ) t.push(n.currentNode); return t; }, El = (e, t) => { for (const n of e) if (!yy(n, t)) return n; }, yy = (e, t) => { if (process.env.NODE_ENV === "test") return !1; if (getComputedStyle(e).visibility === "hidden") return !0; for (; e; ) { if (t && e === t) return !1; if (getComputedStyle(e).display === "none") return !0; e = e.parentElement; } return !1; }, gy = (e) => { const t = Ou(e), n = El(t, e), r = El(t.reverse(), e); return [n, r]; }, by = (e) => e instanceof HTMLInputElement && "select" in e, Jt = (e, t) => { if (e && e.focus) { const n = document.activeElement; e.focus({ preventScroll: !0 }), Ga.value = window.performance.now(), e !== n && by(e) && t && e.select(); } }; function kl(e, t) { const n = [...e], r = e.indexOf(t); return r !== -1 && n.splice(r, 1), n; } const wy = () => { let e = []; return { push: (t) => { const n = e[0]; n && t !== n && n.pause(), e = kl(e, t), e.unshift(t); }, remove: (t) => { var n, r; e = kl(e, t), (r = (n = e[0]) == null ? void 0 : n.resume) == null || r.call(n); } }; }, xy = (e, t = !1) => { const n = document.activeElement; for (const r of e) if (Jt(r, t), document.activeElement !== n) return; }, _l = wy(), Sy = () => So.value > Ga.value, Rr = () => { Ja.value = "pointer", So.value = window.performance.now(); }, jl = () => { Ja.value = "keyboard", So.value = window.performance.now(); }, Oy = () => ($e(() => { Pr === 0 && (document.addEventListener("mousedown", Rr), document.addEventListener("touchstart", Rr), document.addEventListener("keydown", jl)), Pr++; }), Et(() => { Pr--, Pr <= 0 && (document.removeEventListener("mousedown", Rr), document.removeEventListener("touchstart", Rr), document.removeEventListener("keydown", jl)); }), { focusReason: Ja, lastUserFocusTimestamp: So, lastAutomatedFocusTimestamp: Ga }), zr = (e) => new CustomEvent(my, { ...vy, detail: e }), Ay = K({ name: "ElFocusTrap", inheritAttrs: !1, props: { loop: Boolean, trapped: Boolean, focusTrapEl: Object, focusStartEl: { type: [Object, String], default: "first" } }, emits: [ Ol, Al, "focusin", "focusout", "focusout-prevented", "release-requested" ], setup(e, { emit: t }) { const n = P(); let r, o; const { focusReason: a } = Oy(); d0((m) => { e.trapped && !i.paused && t("release-requested", m); }); const i = { paused: !1, pause() { this.paused = !0; }, resume() { this.paused = !1; } }, l = (m) => { if (!e.loop && !e.trapped || i.paused) return; const { key: h, altKey: w, ctrlKey: y, metaKey: b, currentTarget: k, shiftKey: _ } = m, { loop: x } = e, O = h === qn.tab && !w && !y && !b, I = document.activeElement; if (O && I) { const F = k, [C, N] = gy(F); if (C && N) { if (!_ && I === N) { const H = zr({ focusReason: a.value }); t("focusout-prevented", H), H.defaultPrevented || (m.preventDefault(), x && Jt(C, !0)); } else if (_ && [C, F].includes(I)) { const H = zr({ focusReason: a.value }); t("focusout-prevented", H), H.defaultPrevented || (m.preventDefault(), x && Jt(N, !0)); } } else if (I === F) { const H = zr({ focusReason: a.value }); t("focusout-prevented", H), H.defaultPrevented || m.preventDefault(); } } }; at(hy, { focusTrapRef: n, onKeydown: l }), ne(() => e.focusTrapEl, (m) => { m && (n.value = m); }, { immediate: !0 }), ne([n], ([m], [h]) => { m && (m.addEventListener("keydown", l), m.addEventListener("focusin", p), m.addEventListener("focusout", c)), h && (h.removeEventListener("keydown", l), h.removeEventListener("focusin", p), h.removeEventListener("focusout", c)); }); const s = (m) => { t(Ol, m); }, u = (m) => t(Al, m), p = (m) => { const h = d(n); if (!h) return; const w = m.target, y = m.relatedTarget, b = w && h.contains(w); e.trapped || y && h.contains(y) || (r = y), b && t("focusin", m), !i.paused && e.trapped && (b ? o = w : Jt(o, !0)); }, c = (m) => { const h = d(n); if (!(i.paused || !h)) if (e.trapped) { const w = m.relatedTarget; !Nt(w) && !h.contains(w) && setTimeout(() => { if (!i.paused && e.trapped) { const y = zr({ focusReason: a.value }); t("focusout-prevented", y), y.defaultPrevented || Jt(o, !0); } }, 0); } else { const w = m.target; w && h.contains(w) || t("focusout", m); } }; async function f() { await Ae(); const m = d(n); if (m) { _l.push(i); const h = m.contains(document.activeElement) ? r : document.activeElement; if (r = h, !m.contains(h)) { const w = new Event(Vo, Sl); m.addEventListener(Vo, s), m.dispatchEvent(w), w.defaultPrevented || Ae(() => { let y = e.focusStartEl; Xe(y) || (Jt(y), document.activeElement !== y && (y = "first")), y === "first" && xy(Ou(m), !0), (document.activeElement === h || y === "container") && Jt(m); }); } } } function v() { const m = d(n); if (m) { m.removeEventListener(Vo, s); const h = new CustomEvent(Mo, { ...Sl, detail: { focusReason: a.value } }); m.addEventListener(Mo, u), m.dispatchEvent(h), !h.defaultPrevented && (a.value == "keyboard" || !Sy() || m.contains(document.activeElement)) && Jt(r ?? document.body), m.removeEventListener(Mo, u), _l.remove(i); } } return $e(() => { e.trapped && f(), ne(() => e.trapped, (m) => { m ? f() : v(); }); }), Et(() => { e.trapped && v(), n.value && (n.value.removeEventListener("keydown", l), n.value.removeEventListener("focusin", p), n.value.removeEventListener("focusout", c), n.value = void 0); }), { onKeydown: l }; } }); function Ey(e, t, n, r, o, a) { return te(e.$slots, "default", { handleKeydown: e.onKeydown }); } var ky = /* @__PURE__ */ Oe(Ay, [["render", Ey], ["__file", "focus-trap.vue"]]); const _y = ["fixed", "absolute"], jy = Se({ boundariesPadding: { type: Number, default: 0 }, fallbackPlacements: { type: ae(Array), default: void 0 }, gpuAcceleration: { type: Boolean, default: !0 }, offset: { type: Number, default: 12 }, placement: { type: String, values: nr, default: "bottom" }, popperOptions: { type: ae(Object), default: () => ({}) }, strategy: { type: String, values: _y, default: "absolute" } }), Au = Se({ ...jy, id: String, style: { type: ae([String, Array, Object]) }, className: { type: ae([String, Array, Object]) }, effect: { type: ae(String), default: "dark" }, visible: Boolean, enterable: { type: Boolean, default: !0 }, pure: Boolean, focusOnShow: { type: Boolean, default: !1 }, trapping: { type: Boolean, default: !1 }, popperClass: { type: ae([String, Array, Object]) }, popperStyle: { type: ae([String, Array, Object]) }, referenceEl: { type: ae(Object) }, triggerTargetEl: { type: ae(Object) }, stopPopperMouseEvent: { type: Boolean, default: !0 }, virtualTriggering: Boolean, zIndex: Number, ...jn(["ariaLabel"]) }), Fy = { mouseenter: (e) => e instanceof MouseEvent, mouseleave: (e) => e instanceof MouseEvent, focus: () => !0, blur: () => !0, close: () => !0 }, Cy = (e, t = []) => { const { placement: n, strategy: r, popperOptions: o } = e, a = { placement: n, strategy: r, ...o, modifiers: [...Vy(e), ...t] }; return My(a, o == null ? void 0 : o.modifiers), a; }, Iy = (e) => { if (Ve) return Pt(e); }; function Vy(e) { const { offset: t, gpuAcceleration: n, fallbackPlacements: r } = e; return [ { name: "offset", options: { offset: [0, t ?? 12] } }, { name: "preventOverflow", options: { padding: { top: 2, bottom: 2, left: 5, right: 5 } } }, { name: "flip", options: { padding: 5, fallbackPlacements: r } }, { name: "computeStyles", options: { gpuAcceleration: n } } ]; } function My(e, t) { t && (e.modifiers = [...e.modifiers, ...t ?? []]); } const Ty = 0, Py = (e) => { const { popperInstanceRef: t, contentRef: n, triggerRef: r, role: o } = me(Wa, void 0), a = P(), i = P(), l = g(() => ({ name: "eventListeners", enabled: !!e.visible })), s = g(() => { var y; const b = d(a), k = (y = d(i)) != null ? y : Ty; return { name: "arrow", enabled: !xv(b), options: { element: b, padding: k } }; }), u = g(() => ({ onFirstUpdate: () => { m(); }, ...Cy(e, [ d(s), d(l) ]) })), p = g(() => Iy(e.referenceEl) || d(r)), { attributes: c, state: f, styles: v, update: m, forceUpdate: h, instanceRef: w } = u0(p, n, u); return ne(w, (y) => t.value = y), $e(() => { ne(() => { var y; return (y = d(p)) == null ? void 0 : y.getBoundingClientRect(); }, () => { m(); }); }), { attributes: c, arrowRef: a, contentRef: n, instanceRef: w, state: f, styles: v, role: o, forceUpdate: h, update: m }; }, Ry = (e, { attributes: t, styles: n, role: r }) => { const { nextZIndex: o } = du(), a = xe("popper"), i = g(() => d(t).popper), l = P(we(e.zIndex) ? e.zIndex : o()), s = g(() => [ a.b(), a.is("pure", e.pure), a.is(e.effect), e.popperClass ]), u = g(() => [ { zIndex: d(l) }, d(n).popper, e.popperStyle || {} ]), p = g(() => r.value === "dialog" ? "false" : void 0), c = g(() => d(n).arrow || {}); return { ariaModal: p, arrowStyle: c, contentAttrs: i, contentClass: s, contentStyle: u, contentZIndex: l, updateZIndex: () => { l.value = we(e.zIndex) ? e.zIndex : o(); } }; }, zy = (e, t) => { const n = P(!1), r = P(); return { focusStartRef: r, trapped: n, onFocusAfterReleased: (o) => { var a; ((a = o.detail) == null ? void 0 : a.focusReason) !== "pointer" && (r.value = "first", t("blur")); }, onFocusAfterTrapped: () => { t("focus"); }, onFocusInTrap: (o) => { e.visible && !n.value && (o.target && (r.value = o.target), n.value = !0); }, onFocusoutPrevented: (o) => { e.trapping || (o.detail.focusReason === "pointer" && o.preventDefault(), n.value = !1); }, onReleaseRequested: () => { n.value = !1, t("close"); } }; }, Ny = K({ name: "ElPopperContent" }), $y = /* @__PURE__ */ K({ ...Ny, props: Au, emits: Fy, setup(e, { expose: t, emit: n }) { const r = e, { focusStartRef: o, trapped: a, onFocusAfterReleased: i, onFocusAfterTrapped: l, onFocusInTrap: s, onFocusoutPrevented: u, onReleaseRequested: p } = zy(r, n), { attributes: c, arrowRef: f, contentRef: v, styles: m, instanceRef: h, role: w, update: y } = Py(r), { ariaModal: b, arrowStyle: k, contentAttrs: _, contentClass: x, contentStyle: O, updateZIndex: I } = Ry(r, { styles: m, attributes: c, role: w }), F = me(no, void 0), C = P(); at(gu, { arrowStyle: k, arrowRef: f, arrowOffset: C }), F && at(no, { ...F, addInputId: gr, removeInputId: gr }); let N; const H = (U = !0) => { y(), U && I(); }, Q = () => { H(!1), r.visible && r.focusOnShow ? a.value = !0 : r.visible === !1 && (a.value = !1); }; return $e(() => { ne(() => r.triggerTargetEl, (U, re) => { N == null || N(), N = void 0; const E = d(U || v.value), A = d(re || v.value); gn(E) && (N = ne([w, () => r.ariaLabel, b, () => r.id], (R) => { ["role", "aria-label", "aria-modal", "id"].forEach((ee, G) => { Nt(R[G]) ? E.removeAttribute(ee) : E.setAttribute(ee, R[G]); }); }, { immediate: !0 })), A !== E && gn(A) && ["role", "aria-label", "aria-modal", "id"].forEach((R) => { A.removeAttribute(R); }); }, { immediate: !0 }), ne(() => r.visible, Q, { immediate: !0 }); }), Et(() => { N == null || N(), N = void 0; }), t({ popperContentRef: v, popperInstanceRef: h, updatePopper: H, contentStyle: O }), (U, re) => (j(), L("div", rn({ ref_key: "contentRef", ref: v }, d(_), { style: d(O), class: d(x), tabindex: "-1", onMouseenter: (E) => U.$emit("mouseenter", E), onMouseleave: (E) => U.$emit("mouseleave", E) }), [ fe(d(ky), { trapped: d(a), "trap-on-focus-in": !0, "focus-trap-el": d(v), "focus-start-el": d(o), onFocusAfterTrapped: d(l), onFocusAfterReleased: d(i), onFocusin: d(s), onFocusoutPrevented: d(u), onReleaseRequested: d(p) }, { default: X(() => [ te(U.$slots, "default") ]), _: 3 }, 8, ["trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusin", "onFocusoutPrevented", "onReleaseRequested"]) ], 16, ["onMouseenter", "onMouseleave"])); } }); var Ly = /* @__PURE__ */ Oe($y, [["__file", "content.vue"]]); const By = st(iy), Ya = Symbol("elTooltip"), Qa = Se({ ...v0, ...Au, appendTo: { type: ae([String, Object]) }, content: { type: String, default: "" }, rawContent: Boolean, persistent: Boolean, visible: { type: ae(Boolean), default: null }, transition: String, teleported: { type: Boolean, default: !0 }, disabled: Boolean, ...jn(["ariaLabel"]) }), Eu = Se({ ...Su, disabled: Boolean, trigger: { type: ae([String, Array]), default: "hover" }, triggerKeys: { type: ae(Array), default: () => [qn.enter, qn.space] } }), { useModelToggleProps: Dy, useModelToggleEmits: Uy, useModelToggle: qy } = ih("visible"), Hy = Se({ ...bu, ...Dy, ...Qa, ...Eu, ...wu, showArrow: { type: Boolean, default: !0 } }), Zy = [ ...Uy, "before-show", "before-hide", "show", "hide", "open", "close" ], Ky = (e, t) => xt(e) ? e.includes(t) : e === t, Mn = (e, t, n) => (r) => { Ky(d(e), t) && n(r); }, Wy = K({ name: "ElTooltipTrigger" }), Jy = /* @__PURE__ */ K({ ...Wy, props: Eu, setup(e, { expose: t }) { const n = e, r = xe("tooltip"), { controlled: o, id: a, open: i, onOpen: l, onClose: s, onToggle: u } = me(Ya, void 0), p = P(null), c = () => { if (d(o) || n.disabled) return !0; }, f = ft(n, "trigger"), v = It(c, Mn(f, "hover", l)), m = It(c, Mn(f, "hover", s)), h = It(c, Mn(f, "click", (_) => { _.button === 0 && u(_); })), w = It(c, Mn(f, "focus", l)), y = It(c, Mn(f, "focus", s)), b = It(c, Mn(f, "contextmenu", (_) => { _.preventDefault(), u(_); })), k = It(c, (_) => { const { code: x } = _; n.triggerKeys.includes(x) && (_.preventDefault(), u(_)); }); return t({ triggerRef: p }), (_, x) => (j(), Y(d(fy), { id: d(a), "virtual-ref": _.virtualRef, open: d(i), "virtual-triggering": _.virtualTriggering, class: z(d(r).e("trigger")), onBlur: d(y), onClick: d(h), onContextmenu: d(b), onFocus: d(w), onMouseenter: d(v), onMouseleave: d(m), onKeydown: d(k) }, { default: X(() => [ te(_.$slots, "default") ]), _: 3 }, 8, ["id", "virtual-ref", "open", "virtual-triggering", "class", "onBlur", "onClick", "onContextmenu", "onFocus", "onMouseenter", "onMouseleave", "onKeydown"])); } }); var Gy = /* @__PURE__ */ Oe(Jy, [["__file", "trigger.vue"]]); const Yy = Se({ to: { type: ae([String, Object]), required: !0 }, disabled: Boolean }), Qy = /* @__PURE__ */ K({ __name: "teleport", props: Yy, setup(e) { return (t, n) => t.disabled ? te(t.$slots, "default", { key: 0 }) : (j(), Y(tp, { key: 1, to: t.to }, [ te(t.$slots, "default") ], 8, ["to"])); } }); var Xy = /* @__PURE__ */ Oe(Qy, [["__file", "teleport.vue"]]); const eg = st(Xy), tg = K({ name: "ElTooltipContent", inheritAttrs: !1 }), ng = /* @__PURE__ */ K({ ...tg, props: Qa, setup(e, { expose: t }) { const n = e, { selector: r } = su(), o = xe("tooltip"), a = P(null); let i; const { controlled: l, id: s, open: u, trigger: p, onClose: c, onOpen: f, onShow: v, onHide: m, onBeforeShow: h, onBeforeHide: w } = me(Ya, void 0), y = g(() => n.transition || `${o.namespace.value}-fade-in-linear`), b = g(() => process.env.NODE_ENV === "test" ? !0 : n.persistent); Et(() => { i == null || i(); }); const k = g(() => d(b) ? !0 : d(u)), _ = g(() => n.disabled ? !1 : d(u)), x = g(() => n.appendTo || r.value), O = g(() => { var A; return (A = n.style) != null ? A : {}; }), I = P(!0), F = () => { m(), I.value = !0; }, C = () => { if (d(l)) return !0; }, N = It(C, () => { n.enterable && d(p) === "hover" && f(); }), H = It(C, () => { d(p) === "hover" && c(); }), Q = () => { var A, R; (R = (A = a.value) == null ? void 0 : A.updatePopper) == null || R.call(A), h == null || h(); }, U = () => { w == null || w(); }, re = () => { v(), i = fp(g(() => { var A; return (A = a.value) == null ? void 0 : A.popperContentRef; }), () => { d(l) || d(p) !== "hover" && c(); }); }, E = () => { n.virtualTriggering || c(); }; return ne(() => d(u), (A) => { A ? I.value = !1 : i == null || i(); }, { flush: "post" }), ne(() => n.content, () => { var A, R; (R = (A = a.value) == null ? void 0 : A.updatePopper) == null || R.call(A); }), t({ contentRef: a }), (A, R) => (j(), Y(d(eg), { disabled: !A.teleported, to: d(x) }, { default: X(() => [ fe(so, { name: d(y), onAfterLeave: F, onBeforeEnter: Q, onAfterEnter: re, onBeforeLeave: U }, { default: X(() => [ d(k) ? He((j(), Y(d(Ly), rn({ key: 0, id: d(s), ref_key: "contentRef", ref: a }, A.$attrs, { "aria-label": A.ariaLabel, "aria-hidden": I.value, "boundaries-padding": A.boundariesPadding, "fallback-placements": A.fallbackPlacements, "gpu-acceleration": A.gpuAcceleration, offset: A.offset, placement: A.placement, "popper-options": A.popperOptions, strategy: A.strategy, effect: A.effect, enterable: A.enterable, pure: A.pure, "popper-class": A.popperClass, "popper-style": [A.popperStyle, d(O)], "reference-el": A.referenceEl, "trigger-target-el": A.triggerTargetEl, visible: d(_), "z-index": A.zIndex, onMouseenter: d(N), onMouseleave: d(H), onBlur: E, onClose: d(c) }), { default: X(() => [ te(A.$slots, "default") ]), _: 3 }, 16, ["id", "aria-label", "aria-hidden", "boundaries-padding", "fallback-placements", "gpu-acceleration", "offset", "placement", "popper-options", "strategy", "effect", "enterable", "pure", "popper-class", "popper-style", "reference-el", "trigger-target-el", "visible", "z-index", "onMouseenter", "onMouseleave", "onClose"])), [ [$t, d(_)] ]) : W("v-if", !0) ]), _: 3 }, 8, ["name"]) ]), _: 3 }, 8, ["disabled", "to"])); } }); var rg = /* @__PURE__ */ Oe(ng, [["__file", "content.vue"]]); const og = K({ name: "ElTooltip" }), ag = /* @__PURE__ */ K({ ...og, props: Hy, emits: Zy, setup(e, { expose: t, emit: n }) { const r = e; m0(); const o = wo(), a = P(), i = P(), l = () => { var y; const b = d(a); b && ((y = b.popperInstanceRef) == null || y.update()); }, s = P(!1), u = P(), { show: p, hide: c, hasUpdateHandler: f } = qy({ indicator: s, toggleReason: u }), { onOpen: v, onClose: m } = h0({ showAfter: ft(r, "showAfter"), hideAfter: ft(r, "hideAfter"), autoClose: ft(r, "autoClose"), open: p, close: c }), h = g(() => $s(r.visible) && !f.value); at(Ya, { controlled: h, id: o, open: Zc(s), trigger: ft(r, "trigger"), onOpen: (y) => { v(y); }, onClose: (y) => { m(y); }, onToggle: (y) => { d(s) ? m(y) : v(y); }, onShow: () => { n("show", u.value); }, onHide: () => { n("hide", u.value); }, onBeforeShow: () => { n("before-show", u.value); }, onBeforeHide: () => { n("before-hide", u.value); }, updatePopper: l }), ne(() => r.disabled, (y) => { y && s.value && (s.value = !1); }); const w = (y) => { var b, k; const _ = (k = (b = i.value) == null ? void 0 : b.contentRef) == null ? void 0 : k.popperContentRef, x = (y == null ? void 0 : y.relatedTarget) || document.activeElement; return _ && _.contains(x); }; return Kc(() => s.value && c()), t({ popperRef: a, contentRef: i, isFocusInsideContent: w, updatePopper: l, onOpen: v, onClose: m, hide: c }), (y, b) => (j(), Y(d(By), { ref_key: "popperRef", ref: a, role: y.role }, { default: X(() => [ fe(Gy, { disabled: y.disabled, trigger: y.trigger, "trigger-keys": y.triggerKeys, "virtual-ref": y.virtualRef, "virtual-triggering": y.virtualTriggering }, { default: X(() => [ y.$slots.default ? te(y.$slots, "default", { key: 0 }) : W("v-if", !0) ]), _: 3 }, 8, ["disabled", "trigger", "trigger-keys", "virtual-ref", "virtual-triggering"]), fe(rg, { ref_key: "contentRef", ref: i, "aria-label": y.ariaLabel, "boundaries-padding": y.boundariesPadding, content: y.content, disabled: y.disabled, effect: y.effect, enterable: y.enterable, "fallback-placements": y.fallbackPlacements, "hide-after": y.hideAfter, "gpu-acceleration": y.gpuAcceleration, offset: y.offset, persistent: y.persistent, "popper-class": y.popperClass, "popper-style": y.popperStyle, placement: y.placement, "popper-options": y.popperOptions, pure: y.pure, "raw-content": y.rawContent, "reference-el": y.referenceEl, "trigger-target-el": y.triggerTargetEl, "show-after": y.showAfter, strategy: y.strategy, teleported: y.teleported, transition: y.transition, "virtual-triggering": y.virtualTriggering, "z-index": y.zIndex, "append-to": y.appendTo }, { default: X(() => [ te(y.$slots, "content", {}, () => [ y.rawContent ? (j(), L("span", { key: 0, innerHTML: y.content }, null, 8, ["innerHTML"])) : (j(), L("span", { key: 1 }, ze(y.content), 1)) ]), y.showArrow ? (j(), Y(d(uy), { key: 0, "arrow-offset": y.arrowOffset }, null, 8, ["arrow-offset"])) : W("v-if", !0) ]), _: 3 }, 8, ["aria-label", "boundaries-padding", "content", "disabled", "effect", "enterable", "fallback-placements", "hide-after", "gpu-acceleration", "offset", "persistent", "popper-class", "popper-style", "placement", "popper-options", "pure", "raw-content", "reference-el", "trigger-target-el", "show-after", "strategy", "teleported", "transition", "virtual-triggering", "z-index", "append-to"]) ]), _: 3 }, 8, ["role"])); } }); var ig = /* @__PURE__ */ Oe(ag, [["__file", "tooltip.vue"]]); const ku = st(ig), _u = Symbol("buttonGroupContextKey"), lg = (e, t) => { Qv({ from: "type.text", replacement: "link", version: "3.0.0", scope: "props", ref: "https://element-plus.org/en-US/component/button.html#button-attributes" }, g(() => e.type === "text")); const n = me(_u, void 0), r = qa("button"), { form: o } = _r(), a = rr(g(() => n == null ? void 0 : n.size)), i = xo(), l = P(), s = vs(), u = g(() => e.type || (n == null ? void 0 : n.type) || ""), p = g(() => { var v, m, h; return (h = (m = e.autoInsertSpace) != null ? m : (v = r.value) == null ? void 0 : v.autoInsertSpace) != null ? h : !1; }), c = g(() => e.tag === "button" ? { ariaDisabled: i.value || e.loading, disabled: i.value || e.loading, autofocus: e.autofocus, type: e.nativeType } : {}), f = g(() => { var v; const m = (v = s.default) == null ? void 0 : v.call(s); if (p.value && (m == null ? void 0 : m.length) === 1) { const h = m[0]; if ((h == null ? void 0 : h.type) === ys) { const w = h.children; return new RegExp("^\\p{Unified_Ideograph}{2}$", "u").test(w.trim()); } } return !1; }); return { _disabled: i, _size: a, _type: u, _ref: l, _props: c, shouldAddSpace: f, handleClick: (v) => { if (i.value || e.loading) { v.stopPropagation(); return; } e.nativeType === "reset" && (o == null || o.resetFields()), t("click", v); } }; }, sg = [ "default", "primary", "success", "warning", "info", "danger", "text", "" ], ug = ["button", "submit", "reset"], la = Se({ size: Gn, disabled: Boolean, type: { type: String, values: sg, default: "" }, icon: { type: Un }, nativeType: { type: String, values: ug, default: "button" }, loading: Boolean, loadingIcon: { type: Un, default: () => Us }, plain: Boolean, text: Boolean, link: Boolean, bg: Boolean, autofocus: Boolean, round: Boolean, circle: Boolean, color: String, dark: Boolean, autoInsertSpace: { type: Boolean, default: void 0 }, tag: { type: ae([String, Object]), default: "button" } }), cg = { click: (e) => e instanceof MouseEvent }; function Ne(e, t) { pg(e) && (e = "100%"); var n = dg(e); return e = t === 360 ? e : Math.min(t, Math.max(0, parseFloat(e))), n && (e = parseInt(String(e * t), 10) / 100), Math.abs(e - t) < 1e-6 ? 1 : (t === 360 ? e = (e < 0 ? e % t + t : e % t) / parseFloat(String(t)) : e = e % t / parseFloat(String(t)), e); } function Nr(e) { return Math.min(1, Math.max(0, e)); } function pg(e) { return typeof e == "string" && e.indexOf(".") !== -1 && parseFloat(e) === 1; } function dg(e) { return typeof e == "string" && e.indexOf("%") !== -1; } function ju(e) { return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e; } function $r(e) { return e <= 1 ? "".concat(Number(e) * 100, "%") : e; } function yn(e) { return e.length === 1 ? "0" + e : String(e); } function fg(e, t, n) { return { r: Ne(e, 255) * 255, g: Ne(t, 255) * 255, b: Ne(n, 255) * 255 }; } function Fl(e, t, n) { e = Ne(e, 255), t = Ne(t, 255), n = Ne(n, 255); var r = Math.max(e, t, n), o = Math.min(e, t, n), a = 0, i = 0, l = (r + o) / 2; if (r === o) i = 0, a = 0; else { var s = r - o; switch (i = l > 0.5 ? s / (2 - r - o) : s / (r + o), r) { case e: a = (t - n) / s + (t < n ? 6 : 0); break; case t: a = (n - e) / s + 2; break; case n: a = (e - t) / s + 4; break; } a /= 6; } return { h: a, s: i, l }; } function To(e, t, n) { return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * (6 * n) : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e; } function mg(e, t, n) { var r, o, a; if (e = Ne(e, 360), t = Ne(t, 100), n = Ne(n, 100), t === 0) o = n, a = n, r = n; else { var i = n < 0.5 ? n * (1 + t) : n + t - n * t, l = 2 * n - i; r = To(l, i, e + 1 / 3), o = To(l, i, e), a = To(l, i, e - 1 / 3); } return { r: r * 255, g: o * 255, b: a * 255 }; } function Cl(e, t, n) { e = Ne(e, 255), t = Ne(t, 255), n = Ne(n, 255); var r = Math.max(e, t, n), o = Math.min(e, t, n), a = 0, i = r, l = r - o, s = r === 0 ? 0 : l / r; if (r === o) a = 0; else { switch (r) { case e: a = (t - n) / l + (t < n ? 6 : 0); break; case t: a = (n - e) / l + 2; break; case n: a = (e - t) / l + 4; break; } a /= 6; } return { h: a, s, v: i }; } function vg(e, t, n) { e = Ne(e, 360) * 6, t = Ne(t, 100), n = Ne(n, 100); var r = Math.floor(e), o = e - r, a = n * (1 - t), i = n * (1 - o * t), l = n * (1 - (1 - o) * t), s = r % 6, u = [n, i, a, a, l, n][s], p = [l, n, n, i, a, a][s], c = [a, a, l, n, n, i][s]; return { r: u * 255, g: p * 255, b: c * 255 }; } function Il(e, t, n, r) { var o = [ yn(Math.round(e).toString(16)), yn(Math.round(t).toString(16)), yn(Math.round(n).toString(16)) ]; return r && o[0].startsWith(o[0].charAt(1)) && o[1].startsWith(o[1].charAt(1)) && o[2].startsWith(o[2].charAt(1)) ? o[0].charAt(0) + o[1].charAt(0) + o[2].charAt(0) : o.join(""); } function hg(e, t, n, r, o) { var a = [ yn(Math.round(e).toString(16)), yn(Math.round(t).toString(16)), yn(Math.round(n).toString(16)), yn(yg(r)) ]; return o && a[0].startsWith(a[0].charAt(1)) && a[1].startsWith(a[1].charAt(1)) && a[2].startsWith(a[2].charAt(1)) && a[3].startsWith(a[3].charAt(1)) ? a[0].charAt(0) + a[1].charAt(0) + a[2].charAt(0) + a[3].charAt(0) : a.join(""); } function yg(e) { return Math.round(parseFloat(e) * 255).toString(16); } function Vl(e) { return Qe(e) / 255; } function Qe(e) { return parseInt(e, 16); } function gg(e) { return { r: e >> 16, g: (e & 65280) >> 8, b: e & 255 }; } var sa = { aliceblue: "#f0f8ff", antiquewhite: "#faebd7", aqua: "#00ffff", aquamarine: "#7fffd4", azure: "#f0ffff", beige: "#f5f5dc", bisque: "#ffe4c4", black: "#000000", blanchedalmond: "#ffebcd", blue: "#0000ff", blueviolet: "#8a2be2", brown: "#a52a2a", burlywood: "#deb887", cadetblue: "#5f9ea0", chartreuse: "#7fff00", chocolate: "#d2691e", coral: "#ff7f50", cornflowerblue: "#6495ed", cornsilk: "#fff8dc", crimson: "#dc143c", cyan: "#00ffff", darkblue: "#00008b", darkcyan: "#008b8b", darkgoldenrod: "#b8860b", darkgray: "#a9a9a9", darkgreen: "#006400", darkgrey: "#a9a9a9", darkkhaki: "#bdb76b", darkmagenta: "#8b008b", darkolivegreen: "#556b2f", darkorange: "#ff8c00", darkorchid: "#9932cc", darkred: "#8b0000", darksalmon: "#e9967a", darkseagreen: "#8fbc8f", darkslateblue: "#483d8b", darkslategray: "#2f4f4f", darkslategrey: "#2f4f4f", darkturquoise: "#00ced1", darkviolet: "#9400d3", deeppink: "#ff1493", deepskyblue: "#00bfff", dimgray: "#696969", dimgrey: "#696969", dodgerblue: "#1e90ff", firebrick: "#b22222", floralwhite: "#fffaf0", forestgreen: "#228b22", fuchsia: "#ff00ff", gainsboro: "#dcdcdc", ghostwhite: "#f8f8ff", goldenrod: "#daa520", gold: "#ffd700", gray: "#808080", green: "#008000", greenyellow: "#adff2f", grey: "#808080", honeydew: "#f0fff0", hotpink: "#ff69b4", indianred: "#cd5c5c", indigo: "#4b0082", ivory: "#fffff0", khaki: "#f0e68c", lavenderblush: "#fff0f5", lavender: "#e6e6fa", lawngreen: "#7cfc00", lemonchiffon: "#fffacd", lightblue: "#add8e6", lightcoral: "#f08080", lightcyan: "#e0ffff", lightgoldenrodyellow: "#fafad2", lightgray: "#d3d3d3", lightgreen: "#90ee90", lightgrey: "#d3d3d3", lightpink: "#ffb6c1", lightsalmon: "#ffa07a", lightseagreen: "#20b2aa", lightskyblue: "#87cefa", lightslategray: "#778899", lightslategrey: "#778899", lightsteelblue: "#b0c4de", lightyellow: "#ffffe0", lime: "#00ff00", limegreen: "#32cd32", linen: "#faf0e6", magenta: "#ff00ff", maroon: "#800000", mediumaquamarine: "#66cdaa", mediumblue: "#0000cd", mediumorchid: "#ba55d3", mediumpurple: "#9370db", mediumseagreen: "#3cb371", mediumslateblue: "#7b68ee", mediumspringgreen: "#00fa9a", mediumturquoise: "#48d1cc", mediumvioletred: "#c71585", midnightblue: "#191970", mintcream: "#f5fffa", mistyrose: "#ffe4e1", moccasin: "#ffe4b5", navajowhite: "#ffdead", navy: "#000080", oldlace: "#fdf5e6", olive: "#808000", olivedrab: "#6b8e23", orange: "#ffa500", orangered: "#ff4500", orchid: "#da70d6", palegoldenrod: "#eee8aa", palegreen: "#98fb98", paleturquoise: "#afeeee", palevioletred: "#db7093", papayawhip: "#ffefd5", peachpuff: "#ffdab9", peru: "#cd853f", pink: "#ffc0cb", plum: "#dda0dd", powderblue: "#b0e0e6", purple: "#800080", rebeccapurple: "#663399", red: "#ff0000", rosybrown: "#bc8f8f", royalblue: "#4169e1", saddlebrown: "#8b4513", salmon: "#fa8072", sandybrown: "#f4a460", seagreen: "#2e8b57", seashell: "#fff5ee", sienna: "#a0522d", silver: "#c0c0c0", skyblue: "#87ceeb", slateblue: "#6a5acd", slategray: "#708090", slategrey: "#708090", snow: "#fffafa", springgreen: "#00ff7f", steelblue: "#4682b4", tan: "#d2b48c", teal: "#008080", thistle: "#d8bfd8", tomato: "#ff6347", turquoise: "#40e0d0", violet: "#ee82ee", wheat: "#f5deb3", white: "#ffffff", whitesmoke: "#f5f5f5", yellow: "#ffff00", yellowgreen: "#9acd32" }; function bg(e) { var t = { r: 0, g: 0, b: 0 }, n = 1, r = null, o = null, a = null, i = !1, l = !1; return typeof e == "string" && (e = Sg(e)), typeof e == "object" && (Ft(e.r) && Ft(e.g) && Ft(e.b) ? (t = fg(e.r, e.g, e.b), i = !0, l = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : Ft(e.h) && Ft(e.s) && Ft(e.v) ? (r = $r(e.s), o = $r(e.v), t = vg(e.h, r, o), i = !0, l = "hsv") : Ft(e.h) && Ft(e.s) && Ft(e.l) && (r = $r(e.s), a = $r(e.l), t = mg(e.h, r, a), i = !0, l = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (n = e.a)), n = ju(n), { ok: i, format: e.format || l, r: Math.min(255, Math.max(t.r, 0)), g: Math.min(255, Math.max(t.g, 0)), b: Math.min(255, Math.max(t.b, 0)), a: n }; } var wg = "[-\\+]?\\d+%?", xg = "[-\\+]?\\d*\\.\\d+%?", tn = "(?:".concat(xg, ")|(?:").concat(wg, ")"), Po = "[\\s|\\(]+(".concat(tn, ")[,|\\s]+(").concat(tn, ")[,|\\s]+(").concat(tn, ")\\s*\\)?"), Ro = "[\\s|\\(]+(".concat(tn, ")[,|\\s]+(").concat(tn, ")[,|\\s]+(").concat(tn, ")[,|\\s]+(").concat(tn, ")\\s*\\)?"), pt = { CSS_UNIT: new RegExp(tn), rgb: new RegExp("rgb" + Po), rgba: new RegExp("rgba" + Ro), hsl: new RegExp("hsl" + Po), hsla: new RegExp("hsla" + Ro), hsv: new RegExp("hsv" + Po), hsva: new RegExp("hsva" + Ro), hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/, hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/ }; function Sg(e) { if (e = e.trim().toLowerCase(), e.length === 0) return !1; var t = !1; if (sa[e]) e = sa[e], t = !0; else if (e === "transparent") return { r: 0, g: 0, b: 0, a: 0, format: "name" }; var n = pt.rgb.exec(e); return n ? { r: n[1], g: n[2], b: n[3] } : (n = pt.rgba.exec(e), n ? { r: n[1], g: n[2], b: n[3], a: n[4] } : (n = pt.hsl.exec(e), n ? { h: n[1], s: n[2], l: n[3] } : (n = pt.hsla.exec(e), n ? { h: n[1], s: n[2], l: n[3], a: n[4] } : (n = pt.hsv.exec(e), n ? { h: n[1], s: n[2], v: n[3] } : (n = pt.hsva.exec(e), n ? { h: n[1], s: n[2], v: n[3], a: n[4] } : (n = pt.hex8.exec(e), n ? { r: Qe(n[1]), g: Qe(n[2]), b: Qe(n[3]), a: Vl(n[4]), format: t ? "name" : "hex8" } : (n = pt.hex6.exec(e), n ? { r: Qe(n[1]), g: Qe(n[2]), b: Qe(n[3]), format: t ? "name" : "hex" } : (n = pt.hex4.exec(e), n ? { r: Qe(n[1] + n[1]), g: Qe(n[2] + n[2]), b: Qe(n[3] + n[3]), a: Vl(n[4] + n[4]), format: t ? "name" : "hex8" } : (n = pt.hex3.exec(e), n ? { r: Qe(n[1] + n[1]), g: Qe(n[2] + n[2]), b: Qe(n[3] + n[3]), format: t ? "name" : "hex" } : !1))))))))); } function Ft(e) { return !!pt.CSS_UNIT.exec(String(e)); } var Og = ( /** @class */ function() { function e(t, n) { t === void 0 && (t = ""), n === void 0 && (n = {}); var r; if (t instanceof e) return t; typeof t == "number" && (t = gg(t)), this.originalInput = t; var o = bg(t); this.originalInput = t, this.r = o.r, this.g = o.g, this.b = o.b, this.a = o.a, this.roundA = Math.round(100 * this.a) / 100, this.format = (r = n.format) !== null && r !== void 0 ? r : o.format, this.gradientType = n.gradientType, this.r < 1 && (this.r = Math.round(this.r)), this.g < 1 && (this.g = Math.round(this.g)), this.b < 1 && (this.b = Math.round(this.b)), this.isValid = o.ok; } return e.prototype.isDark = function() { return this.getBrightness() < 128; }, e.prototype.isLight = function() { return !this.isDark(); }, e.prototype.getBrightness = function() { var t = this.toRgb(); return (t.r * 299 + t.g * 587 + t.b * 114) / 1e3; }, e.prototype.getLuminance = function() { var t = this.toRgb(), n, r, o, a = t.r / 255, i = t.g / 255, l = t.b / 255; return a <= 0.03928 ? n = a / 12.92 : n = Math.pow((a + 0.055) / 1.055, 2.4), i <= 0.03928 ? r = i / 12.92 : r = Math.pow((i + 0.055) / 1.055, 2.4), l <= 0.03928 ? o = l / 12.92 : o = Math.pow((l + 0.055) / 1.055, 2.4), 0.2126 * n + 0.7152 * r + 0.0722 * o; }, e.prototype.getAlpha = function() { return this.a; }, e.prototype.setAlpha = function(t) { return this.a = ju(t), this.roundA = Math.round(100 * this.a) / 100, this; }, e.prototype.isMonochrome = function() { var t = this.toHsl().s; return t === 0; }, e.prototype.toHsv = function() { var t = Cl(this.r, this.g, this.b); return { h: t.h * 360, s: t.s, v: t.v, a: this.a }; }, e.prototype.toHsvString = function() { var t = Cl(this.r, this.g, this.b), n = Math.round(t.h * 360), r = Math.round(t.s * 100), o = Math.round(t.v * 100); return this.a === 1 ? "hsv(".concat(n, ", ").concat(r, "%, ").concat(o, "%)") : "hsva(".concat(n, ", ").concat(r, "%, ").concat(o, "%, ").concat(this.roundA, ")"); }, e.prototype.toHsl = function() { var t = Fl(this.r, this.g, this.b); return { h: t.h * 360, s: t.s, l: t.l, a: this.a }; }, e.prototype.toHslString = function() { var t = Fl(this.r, this.g, this.b), n = Math.round(t.h * 360), r = Math.round(t.s * 100), o = Math.round(t.l * 100); return this.a === 1 ? "hsl(".concat(n, ", ").concat(r, "%, ").concat(o, "%)") : "hsla(".concat(n, ", ").concat(r, "%, ").concat(o, "%, ").concat(this.roundA, ")"); }, e.prototype.toHex = function(t) { return t === void 0 && (t = !1), Il(this.r, this.g, this.b, t); }, e.prototype.toHexString = function(t) { return t === void 0 && (t = !1), "#" + this.toHex(t); }, e.prototype.toHex8 = function(t) { return t === void 0 && (t = !1), hg(this.r, this.g, this.b, this.a, t); }, e.prototype.toHex8String = function(t) { return t === void 0 && (t = !1), "#" + this.toHex8(t); }, e.prototype.toHexShortString = function(t) { return t === void 0 && (t = !1), this.a === 1 ? this.toHexString(t) : this.toHex8String(t); }, e.prototype.toRgb = function() { return { r: Math.round(this.r), g: Math.round(this.g), b: Math.round(this.b), a: this.a }; }, e.prototype.toRgbString = function() { var t = Math.round(this.r), n = Math.round(this.g), r = Math.round(this.b); return this.a === 1 ? "rgb(".concat(t, ", ").concat(n, ", ").concat(r, ")") : "rgba(".concat(t, ", ").concat(n, ", ").concat(r, ", ").concat(this.roundA, ")"); }, e.prototype.toPercentageRgb = function() { var t = function(n) { return "".concat(Math.round(Ne(n, 255) * 100), "%"); }; return { r: t(this.r), g: t(this.g), b: t(this.b), a: this.a }; }, e.prototype.toPercentageRgbString = function() { var t = function(n) { return Math.round(Ne(n, 255) * 100); }; return this.a === 1 ? "rgb(".concat(t(this.r), "%, ").concat(t(this.g), "%, ").concat(t(this.b), "%)") : "rgba(".concat(t(this.r), "%, ").concat(t(this.g), "%, ").concat(t(this.b), "%, ").concat(this.roundA, ")"); }, e.prototype.toName = function() { if (this.a === 0) return "transparent"; if (this.a < 1) return !1; for (var t = "#" + Il(this.r, this.g, this.b, !1), n = 0, r = Object.entries(sa); n < r.length; n++) { var o = r[n], a = o[0], i = o[1]; if (t === i) return a; } return !1; }, e.prototype.toString = function(t) { var n = !!t; t = t ?? this.format; var r = !1, o = this.a < 1 && this.a >= 0, a = !n && o && (t.startsWith("hex") || t === "name"); return a ? t === "name" && this.a === 0 ? this.toName() : this.toRgbString() : (t === "rgb" && (r = this.toRgbString()), t === "prgb" && (r = this.toPercentageRgbString()), (t === "hex" || t === "hex6") && (r = this.toHexString()), t === "hex3" && (r = this.toHexString(!0)), t === "hex4" && (r = this.toHex8String(!0)), t === "hex8" && (r = this.toHex8String()), t === "name" && (r = this.toName()), t === "hsl" && (r = this.toHslString()), t === "hsv" && (r = this.toHsvString()), r || this.toHexString()); }, e.prototype.toNumber = function() { return (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b); }, e.prototype.clone = function() { return new e(this.toString()); }, e.prototype.lighten = function(t) { t === void 0 && (t = 10); var n = this.toHsl(); return n.l += t / 100, n.l = Nr(n.l), new e(n); }, e.prototype.brighten = function(t) { t === void 0 && (t = 10); var n = this.toRgb(); return n.r = Math.max(0, Math.min(255, n.r - Math.round(255 * -(t / 100)))), n.g = Math.max(0, Math.min(255, n.g - Math.round(255 * -(t / 100)))), n.b = Math.max(0, Math.min(255, n.b - Math.round(255 * -(t / 100)))), new e(n); }, e.prototype.darken = function(t) { t === void 0 && (t = 10); var n = this.toHsl(); return n.l -= t / 100, n.l = Nr(n.l), new e(n); }, e.prototype.tint = function(t) { return t === void 0 && (t = 10), this.mix("white", t); }, e.prototype.shade = function(t) { return t === void 0 && (t = 10), this.mix("black", t); }, e.prototype.desaturate = function(t) { t === void 0 && (t = 10); var n = this.toHsl(); return n.s -= t / 100, n.s = Nr(n.s), new e(n); }, e.prototype.saturate = function(t) { t === void 0 && (t = 10); var n = this.toHsl(); return n.s += t / 100, n.s = Nr(n.s), new e(n); }, e.prototype.greyscale = function() { return this.desaturate(100); }, e.prototype.spin = function(t) { var n = this.toHsl(), r = (n.h + t) % 360; return n.h = r < 0 ? 360 + r : r, new e(n); }, e.prototype.mix = function(t, n) { n === void 0 && (n = 50); var r = this.toRgb(), o = new e(t).toRgb(), a = n / 100, i = { r: (o.r - r.r) * a + r.r, g: (o.g - r.g) * a + r.g, b: (o.b - r.b) * a + r.b, a: (o.a - r.a) * a + r.a }; return new e(i); }, e.prototype.analogous = function(t, n) { t === void 0 && (t = 6), n === void 0 && (n = 30); var r = this.toHsl(), o = 360 / n, a = [this]; for (r.h = (r.h - (o * t >> 1) + 720) % 360; --t; ) r.h = (r.h + o) % 360, a.push(new e(r)); return a; }, e.prototype.complement = function() { var t = this.toHsl(); return t.h = (t.h + 180) % 360, new e(t); }, e.prototype.monochromatic = function(t) { t === void 0 && (t = 6); for (var n = this.toHsv(), r = n.h, o = n.s, a = n.v, i = [], l = 1 / t; t--; ) i.push(new e({ h: r, s: o, v: a })), a = (a + l) % 1; return i; }, e.prototype.splitcomplement = function() { var t = this.toHsl(), n = t.h; return [ this, new e({ h: (n + 72) % 360, s: t.s, l: t.l }), new e({ h: (n + 216) % 360, s: t.s, l: t.l }) ]; }, e.prototype.onBackground = function(t) { var n = this.toRgb(), r = new e(t).toRgb(), o = n.a + r.a * (1 - n.a); return new e({ r: (n.r * n.a + r.r * r.a * (1 - n.a)) / o, g: (n.g * n.a + r.g * r.a * (1 - n.a)) / o, b: (n.b * n.a + r.b * r.a * (1 - n.a)) / o, a: o }); }, e.prototype.triad = function() { return this.polyad(3); }, e.prototype.tetrad = function() { return this.polyad(4); }, e.prototype.polyad = function(t) { for (var n = this.toHsl(), r = n.h, o = [this], a = 360 / t, i = 1; i < t; i++) o.push(new e({ h: (r + i * a) % 360, s: n.s, l: n.l })); return o; }, e.prototype.equals = function(t) { return this.toRgbString() === new e(t).toRgbString(); }, e; }() ); function Wt(e, t = 20) { return e.mix("#141414", t).toString(); } function Ag(e) { const t = xo(), n = xe("button"); return g(() => { let r = {}, o = e.color; if (o) { const a = o.match(/var\((.*?)\)/); a && (o = window.getComputedStyle(window.document.documentElement).getPropertyValue(a[1])); const i = new Og(o), l = e.dark ? i.tint(20).toString() : Wt(i, 20); if (e.plain) r = n.cssVarBlock({ "bg-color": e.dark ? Wt(i, 90) : i.tint(90).toString(), "text-color": o, "border-color": e.dark ? Wt(i, 50) : i.tint(50).toString(), "hover-text-color": `var(${n.cssVarName("color-white")})`, "hover-bg-color": o, "hover-border-color": o, "active-bg-color": l, "active-text-color": `var(${n.cssVarName("color-white")})`, "active-border-color": l }), t.value && (r[n.cssVarBlockName("disabled-bg-color")] = e.dark ? Wt(i, 90) : i.tint(90).toString(), r[n.cssVarBlockName("disabled-text-color")] = e.dark ? Wt(i, 50) : i.tint(50).toString(), r[n.cssVarBlockName("disabled-border-color")] = e.dark ? Wt(i, 80) : i.tint(80).toString()); else { const s = e.dark ? Wt(i, 30) : i.tint(30).toString(), u = i.isDark() ? `var(${n.cssVarName("color-white")})` : `var(${n.cssVarName("color-black")})`; if (r = n.cssVarBlock({ "bg-color": o, "text-color": u, "border-color": o, "hover-bg-color": s, "hover-text-color": u, "hover-border-color": s, "active-bg-color": l, "active-border-color": l }), t.value) { const p = e.dark ? Wt(i, 50) : i.tint(50).toString(); r[n.cssVarBlockName("disabled-bg-color")] = p, r[n.cssVarBlockName("disabled-text-color")] = e.dark ? "rgba(255, 255, 255, 0.5)" : `var(${n.cssVarName("color-white")})`, r[n.cssVarBlockName("disabled-border-color")] = p; } } } return r; }); } const Eg = K({ name: "ElButton" }), kg = /* @__PURE__ */ K({ ...Eg, props: la, emits: cg, setup(e, { expose: t, emit: n }) { const r = e, o = Ag(r), a = xe("button"), { _ref: i, _size: l, _type: s, _disabled: u, _props: p, shouldAddSpace: c, handleClick: f } = lg(r, n), v = g(() => [ a.b(), a.m(s.value), a.m(l.value), a.is("disabled", u.value), a.is("loading", r.loading), a.is("plain", r.plain), a.is("round", r.round), a.is("circle", r.circle), a.is("text", r.text), a.is("link", r.link), a.is("has-bg", r.bg) ]); return t({ ref: i, size: l, type: s, disabled: u, shouldAddSpace: c }), (m, h) => (j(), Y(mt(m.tag), rn({ ref_key: "_ref", ref: i }, d(p), { class: d(v), style: d(o), onClick: d(f) }), { default: X(() => [ m.loading ? (j(), L(qe, { key: 0 }, [ m.$slots.loading ? te(m.$slots, "loading", { key: 0 }) : (j(), Y(d(nt), { key: 1, class: z(d(a).is("loading")) }, { default: X(() => [ (j(), Y(mt(m.loadingIcon))) ]), _: 1 }, 8, ["class"])) ], 64)) : m.icon || m.$slots.icon ? (j(), Y(d(nt), { key: 1 }, { default: X(() => [ m.icon ? (j(), Y(mt(m.icon), { key: 0 })) : te(m.$slots, "icon", { key: 1 }) ]), _: 3 })) : W("v-if", !0), m.$slots.default ? (j(), L("span", { key: 2, class: z({ [d(a).em("text", "expand")]: d(c) }) }, [ te(m.$slots, "default") ], 2)) : W("v-if", !0) ]), _: 3 }, 16, ["class", "style", "onClick"])); } }); var _g = /* @__PURE__ */ Oe(kg, [["__file", "button.vue"]]); const jg = { size: la.size, type: la.type }, Fg = K({ name: "ElButtonGroup" }), Cg = /* @__PURE__ */ K({ ...Fg, props: jg, setup(e) { const t = e; at(_u, vt({ size: ft(t, "size"), type: ft(t, "type") })); const n = xe("button"); return (r, o) => (j(), L("div", { class: z(d(n).b("group")) }, [ te(r.$slots, "default") ], 2)); } }); var Fu = /* @__PURE__ */ Oe(Cg, [["__file", "button-group.vue"]]); const Cu = st(_g, { ButtonGroup: Fu }); Ta(Fu); var Zr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; function Ig(e) { if (e.__esModule) return e; var t = e.default; if (typeof t == "function") { var n = function r() { return this instanceof r ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments); }; n.prototype = t.prototype; } else n = {}; return Object.defineProperty(n, "__esModule", { value: !0 }), Object.keys(e).forEach(function(r) { var o = Object.getOwnPropertyDescriptor(e, r); Object.defineProperty(n, r, o.get ? o : { enumerable: !0, get: function() { return e[r]; } }); }), n; } const Gt = /* @__PURE__ */ new Map(); if (Ve) { let e; document.addEventListener("mousedown", (t) => e = t), document.addEventListener("mouseup", (t) => { if (e) { for (const n of Gt.values()) for (const { documentHandler: r } of n) r(t, e); e = void 0; } }); } function Ml(e, t) { let n = []; return Array.isArray(t.arg) ? n = t.arg : gn(t.arg) && n.push(t.arg), function(r, o) { const a = t.instance.popperRef, i = r.target, l = o == null ? void 0 : o.target, s = !t || !t.instance, u = !i || !l, p = e.contains(i) || e.contains(l), c = e === i, f = n.length && n.some((m) => m == null ? void 0 : m.contains(i)) || n.length && n.includes(l), v = a && (a.contains(i) || a.contains(l)); s || u || p || c || f || v || t.value(r, o); }; } const Vg = { beforeMount(e, t) { Gt.has(e) || Gt.set(e, []), Gt.get(e).push({ documentHandler: Ml(e, t), bindingFn: t.value }); }, updated(e, t) { Gt.has(e) || Gt.set(e, []); const n = Gt.get(e), r = n.findIndex((a) => a.bindingFn === t.oldValue), o = { documentHandler: Ml(e, t), bindingFn: t.value }; r >= 0 ? n.splice(r, 1, o) : n.push(o); }, unmounted(e) { Gt.delete(e); } }, Mg = 100, Tg = 600, Tl = { beforeMount(e, t) { const n = t.value, { interval: r = Mg, delay: o = Tg } = Le(n) ? {} : n; let a, i; const l = () => Le(n) ? n() : n.handler(), s = () => { i && (clearTimeout(i), i = void 0), a && (clearInterval(a), a = void 0); }; e.addEventListener("mousedown", (u) => { u.button === 0 && (s(), l(), document.addEventListener("mouseup", () => s(), { once: !0 }), i = setTimeout(() => { a = setInterval(() => { l(); }, r); }, o)); }); } }, ua = Se({ type: { type: String, values: ["primary", "success", "info", "warning", "danger"], default: "primary" }, closable: Boolean, disableTransitions: Boolean, hit: Boolean, color: String, size: { type: String, values: Zs }, effect: { type: String, values: ["dark", "light", "plain"], default: "light" }, round: Boolean }), Pg = { close: (e) => e instanceof MouseEvent, click: (e) => e instanceof MouseEvent }, Rg = K({ name: "ElTag" }), zg = /* @__PURE__ */ K({ ...Rg, props: ua, emits: Pg, setup(e, { emit: t }) { const n = e, r = rr(), o = xe("tag"), a = g(() => { const { type: u, hit: p, effect: c, closable: f, round: v } = n; return [ o.b(), o.is("closable", f), o.m(u || "primary"), o.m(r.value), o.m(c), o.is("hit", p), o.is("round", v) ]; }), i = (u) => { t("close", u); }, l = (u) => { t("click", u); }, s = (u) => { u.component.subTree.component.bum = null; }; return (u, p) => u.disableTransitions ? (j(), L("span", { key: 0, class: z(d(a)), style: Te({ backgroundColor: u.color }), onClick: l }, [ Z("span", { class: z(d(o).e("content")) }, [ te(u.$slots, "default") ], 2), u.closable ? (j(), Y(d(nt), { key: 0, class: z(d(o).e("close")), onClick: Re(i, ["stop"]) }, { default: X(() => [ fe(d(rl)) ]), _: 1 }, 8, ["class", "onClick"])) : W("v-if", !0) ], 6)) : (j(), Y(so, { key: 1, name: `${d(o).namespace.value}-zoom-in-center`, appear: "", onVnodeMounted: s }, { default: X(() => [ Z("span", { class: z(d(a)), style: Te({ backgroundColor: u.color }), onClick: l }, [ Z("span", { class: z(d(o).e("content")) }, [ te(u.$slots, "default") ], 2), u.closable ? (j(), Y(d(nt), { key: 0, class: z(d(o).e("close")), onClick: Re(i, ["stop"]) }, { default: X(() => [ fe(d(rl)) ]), _: 1 }, 8, ["class", "onClick"])) : W("v-if", !0) ], 6) ]), _: 3 }, 8, ["name"])); } }); var Ng = /* @__PURE__ */ Oe(zg, [["__file", "tag.vue"]]); const $g = st(Ng), Lg = Se({ direction: { type: String, values: ["horizontal", "vertical"], default: "horizontal" }, contentPosition: { type: String, values: ["left", "center", "right"], default: "center" }, borderStyle: { type: ae(String), default: "solid" } }), Bg = K({ name: "ElDivider" }), Dg = /* @__PURE__ */ K({ ...Bg, props: Lg, setup(e) { const t = e, n = xe("divider"), r = g(() => n.cssVar({ "border-style": t.borderStyle })); return (o, a) => (j(), L("div", { class: z([d(n).b(), d(n).m(o.direction)]), style: Te(d(r)), role: "separator" }, [ o.$slots.default && o.direction !== "vertical" ? (j(), L("div", { key: 0, class: z([d(n).e("text"), d(n).is(o.contentPosition)]) }, [ te(o.$slots, "default") ], 2)) : W("v-if", !0) ], 6)); } }); var Ug = /* @__PURE__ */ Oe(Dg, [["__file", "divider.vue"]]); const Iu = st(Ug), qg = Se({ id: { type: String, default: void 0 }, step: { type: Number, default: 1 }, stepStrictly: Boolean, max: { type: Number, default: Number.POSITIVE_INFINITY }, min: { type: Number, default: Number.NEGATIVE_INFINITY }, modelValue: Number, readonly: Boolean, disabled: Boolean, size: Gn, controls: { type: Boolean, default: !0 }, controlsPosition: { type: String, default: "", values: ["", "right"] }, valueOnClear: { type: [String, Number, null], validator: (e) => e === null || we(e) || ["min", "max"].includes(e), default: null }, name: String, placeholder: String, precision: { type: Number, validator: (e) => e >= 0 && e === Number.parseInt(`${e}`, 10) }, validateEvent: { type: Boolean, default: !0 }, ...jn(["ariaLabel"]) }), Hg = { [tr]: (e, t) => t !== e, blur: (e) => e instanceof FocusEvent, focus: (e) => e instanceof FocusEvent, [bn]: (e) => we(e) || Nt(e), [Ce]: (e) => we(e) || Nt(e) }, Zg = K({ name: "ElInputNumber" }), Kg = /* @__PURE__ */ K({ ...Zg, props: qg, emits: Hg, setup(e, { expose: t, emit: n }) { const r = e, { t: o } = go(), a = xe("input-number"), i = P(), l = vt({ currentValue: r.modelValue, userInput: null }), { formItem: s } = _r(), u = g(() => we(r.modelValue) && r.modelValue <= r.min), p = g(() => we(r.modelValue) && r.modelValue >= r.max), c = g(() => { const E = y(r.step); return Rt(r.precision) ? Math.max(y(r.modelValue), E) : (E > r.precision && _e("InputNumber", "precision should not be less than the decimal places of step"), r.precision); }), f = g(() => r.controls && r.controlsPosition === "right"), v = rr(), m = xo(), h = g(() => { if (l.userInput !== null) return l.userInput; let E = l.currentValue; if (Nt(E)) return ""; if (we(E)) { if (Number.isNaN(E)) return ""; Rt(r.precision) || (E = E.toFixed(r.precision)); } return E; }), w = (E, A) => { if (Rt(A) && (A = c.value), A === 0) return Math.round(E); let R = String(E); const ee = R.indexOf("."); if (ee === -1 || !R.replace(".", "").split("")[ee + A]) return E; const G = R.length; return R.charAt(G - 1) === "5" && (R = `${R.slice(0, Math.max(0, G - 1))}6`), Number.parseFloat(Number(R).toFixed(A)); }, y = (E) => { if (Nt(E)) return 0; const A = E.toString(), R = A.indexOf("."); let ee = 0; return R !== -1 && (ee = A.length - R - 1), ee; }, b = (E, A = 1) => we(E) ? w(E + r.step * A) : l.currentValue, k = () => { if (r.readonly || m.value || p.value) return; const E = Number(h.value) || 0, A = b(E); O(A), n(bn, l.currentValue), U(); }, _ = () => { if (r.readonly || m.value || u.value) return; const E = Number(h.value) || 0, A = b(E, -1); O(A), n(bn, l.currentValue), U(); }, x = (E, A) => { const { max: R, min: ee, step: G, precision: M, stepStrictly: D, valueOnClear: T } = r; R < ee && Va("InputNumber", "min should not be greater than max."); let B = Number(E); if (Nt(E) || Number.isNaN(B)) return null; if (E === "") { if (T === null) return null; B = Xe(T) ? { min: ee, max: R }[T] : T; } return D && (B = w(Math.round(B / G) * G, M), B !== E && A && n(Ce, B)), Rt(M) || (B = w(B, M)), (B > R || B < ee) && (B = B > R ? R : ee, A && n(Ce, B)), B; }, O = (E, A = !0) => { var R; const ee = l.currentValue, G = x(E); if (!A) { n(Ce, G); return; } ee === G && E || (l.userInput = null, n(Ce, G), ee !== G && n(tr, G, ee), r.validateEvent && ((R = s == null ? void 0 : s.validate) == null || R.call(s, "change").catch((M) => _e(M))), l.currentValue = G); }, I = (E) => { l.userInput = E; const A = E === "" ? null : Number(E); n(bn, A), O(A, !1); }, F = (E) => { const A = E !== "" ? Number(E) : ""; (we(A) && !Number.isNaN(A) || E === "") && O(A), U(), l.userInput = null; }, C = () => { var E, A; (A = (E = i.value) == null ? void 0 : E.focus) == null || A.call(E); }, N = () => { var E, A; (A = (E = i.value) == null ? void 0 : E.blur) == null || A.call(E); }, H = (E) => { n("focus", E); }, Q = (E) => { var A; l.userInput = null, n("blur", E), r.validateEvent && ((A = s == null ? void 0 : s.validate) == null || A.call(s, "blur").catch((R) => _e(R))); }, U = () => { l.currentValue !== r.modelValue && (l.currentValue = r.modelValue); }, re = (E) => { document.activeElement === E.target && E.preventDefault(); }; return ne(() => r.modelValue, (E, A) => { const R = x(E, !0); l.userInput === null && R !== A && (l.currentValue = R); }, { immediate: !0 }), $e(() => { var E; const { min: A, max: R, modelValue: ee } = r, G = (E = i.value) == null ? void 0 : E.input; if (G.setAttribute("role", "spinbutton"), Number.isFinite(R) ? G.setAttribute("aria-valuemax", String(R)) : G.removeAttribute("aria-valuemax"), Number.isFinite(A) ? G.setAttribute("aria-valuemin", String(A)) : G.removeAttribute("aria-valuemin"), G.setAttribute("aria-valuenow", l.currentValue || l.currentValue === 0 ? String(l.currentValue) : ""), G.setAttribute("aria-disabled", String(m.value)), !we(ee) && ee != null) { let M = Number(ee); Number.isNaN(M) && (M = null), n(Ce, M); } G.addEventListener("wheel", re, { passive: !1 }); }), hs(() => { var E, A; const R = (E = i.value) == null ? void 0 : E.input; R == null || R.setAttribute("aria-valuenow", `${(A = l.currentValue) != null ? A : ""}`); }), t({ focus: C, blur: N }), (E, A) => (j(), L("div", { class: z([ d(a).b(), d(a).m(d(v)), d(a).is("disabled", d(m)), d(a).is("without-controls", !E.controls), d(a).is("controls-right", d(f)) ]), onDragstart: Re(() => { }, ["prevent"]) }, [ E.controls ? He((j(), L("span", { key: 0, role: "button", "aria-label": d(o)("el.inputNumber.decrease"), class: z([d(a).e("decrease"), d(a).is("disabled", d(u))]), onKeydown: Mt(_, ["enter"]) }, [ te(E.$slots, "decrease-icon", {}, () => [ fe(d(nt), null, { default: X(() => [ d(f) ? (j(), Y(d(Ds), { key: 0 })) : (j(), Y(d(Bv), { key: 1 })) ]), _: 1 }) ]) ], 42, ["aria-label", "onKeydown"])), [ [d(Tl), _] ]) : W("v-if", !0), E.controls ? He((j(), L("span", { key: 1, role: "button", "aria-label": d(o)("el.inputNumber.increase"), class: z([d(a).e("increase"), d(a).is("disabled", d(p))]), onKeydown: Mt(k, ["enter"]) }, [ te(E.$slots, "increase-icon", {}, () => [ fe(d(nt), null, { default: X(() => [ d(f) ? (j(), Y(d(Vv), { key: 0 })) : (j(), Y(d(Uv), { key: 1 })) ]), _: 1 }) ]) ], 42, ["aria-label", "onKeydown"])), [ [d(Tl), k] ]) : W("v-if", !0), fe(d(D0), { id: E.id, ref_key: "input", ref: i, type: "number", step: E.step, "model-value": d(h), placeholder: E.placeholder, readonly: E.readonly, disabled: d(m), size: d(v), max: E.max, min: E.min, name: E.name, "aria-label": E.ariaLabel, "validate-event": !1, onKeydown: [ Mt(Re(k, ["prevent"]), ["up"]), Mt(Re(_, ["prevent"]), ["down"]) ], onBlur: Q, onFocus: H, onInput: I, onChange: F }, Wc({ _: 2 }, [ E.$slots.prefix ? { name: "prefix", fn: X(() => [ te(E.$slots, "prefix") ]) } : void 0, E.$slots.suffix ? { name: "suffix", fn: X(() => [ te(E.$slots, "suffix") ]) } : void 0 ]), 1032, ["id", "step", "model-value", "placeholder", "readonly", "disabled", "size", "max", "min", "name", "aria-label", "onKeydown"]) ], 42, ["onDragstart"])); } }); var Wg = /* @__PURE__ */ Oe(Kg, [["__file", "input-number.vue"]]); const Xa = st(Wg), Vu = Symbol("ElSelectGroup"), Oo = Symbol("ElSelect"); function Jg(e, t) { const n = me(Oo), r = me(Vu, { disabled: !1 }), o = g(() => p(en(n.props.modelValue), e.value)), a = g(() => { var v; if (n.props.multiple) { const m = en((v = n.props.modelValue) != null ? v : []); return !o.value && m.length >= n.props.multipleLimit && n.props.multipleLimit > 0; } else return !1; }), i = g(() => e.label || (We(e.value) ? "" : e.value)), l = g(() => e.value || e.label || ""), s = g(() => e.disabled || t.groupDisabled || a.value), u = Ze(), p = (v = [], m) => { if (We(e.value)) { const h = n.props.valueKey; return v && v.some((w) => gs(Tt(w, h)) === Tt(m, h)); } else return v && v.includes(m); }, c = () => { !e.disabled && !r.disabled && (n.states.hoveringIndex = n.optionsArray.indexOf(u.proxy)); }, f = (v) => { const m = new RegExp(_v(v), "i"); t.visible = m.test(i.value) || e.created; }; return ne(() => i.value, () => { !e.created && !n.props.remote && n.setSelected(); }), ne(() => e.value, (v, m) => { const { remote: h, valueKey: w } = n.props; if (v !== m && (n.onOptionDestroy(m, u.proxy), n.onOptionCreate(u.proxy)), !e.created && !h) { if (w && We(v) && We(m) && v[w] === m[w]) return; n.setSelected(); } }), ne(() => r.disabled, () => { t.groupDisabled = r.disabled; }, { immediate: !0 }), { select: n, currentLabel: i, currentValue: l, itemSelected: o, isDisabled: s, hoverItem: c, updateOption: f }; } const Gg = K({ name: "ElOption", componentName: "ElOption", props: { value: { required: !0, type: [String, Number, Boolean, Object] }, label: [String, Number], created: Boolean, disabled: Boolean }, setup(e) { const t = xe("select"), n = wo(), r = g(() => [ t.be("dropdown", "item"), t.is("disabled", d(l)), t.is("selected", d(i)), t.is("hovering", d(f)) ]), o = vt({ index: -1, groupDisabled: !1, visible: !0, hover: !1 }), { currentLabel: a, itemSelected: i, isDisabled: l, select: s, hoverItem: u, updateOption: p } = Jg(e, o), { visible: c, hover: f } = On(o), v = Ze().proxy; s.onOptionCreate(v), Et(() => { const h = v.value, { selected: w } = s.states, y = (s.props.multiple ? w : [w]).some((b) => b.value === v.value); Ae(() => { s.states.cachedOptions.get(h) === v && !y && s.states.cachedOptions.delete(h); }), s.onOptionDestroy(h, v); }); function m() { l.value || s.handleOptionSelect(v); } return { ns: t, id: n, containerKls: r, currentLabel: a, itemSelected: i, isDisabled: l, select: s, hoverItem: u, updateOption: p, visible: c, hover: f, selectOptionClick: m, states: o }; } }); function Yg(e, t, n, r, o, a) { return He((j(), L("li", { id: e.id, class: z(e.containerKls), role: "option", "aria-disabled": e.isDisabled || void 0, "aria-selected": e.itemSelected, onMouseenter: e.hoverItem, onClick: Re(e.selectOptionClick, ["stop"]) }, [ te(e.$slots, "default", {}, () => [ Z("span", null, ze(e.currentLabel), 1) ]) ], 42, ["id", "aria-disabled", "aria-selected", "onMouseenter", "onClick"])), [ [$t, e.visible] ]); } var ei = /* @__PURE__ */ Oe(Gg, [["render", Yg], ["__file", "option.vue"]]); const Qg = K({ name: "ElSelectDropdown", componentName: "ElSelectDropdown", setup() { const e = me(Oo), t = xe("select"), n = g(() => e.props.popperClass), r = g(() => e.props.multiple), o = g(() => e.props.fitInputWidth), a = P(""); function i() { var l; a.value = `${(l = e.selectRef) == null ? void 0 : l.offsetWidth}px`; } return $e(() => { i(), Vt(e.selectRef, i); }), { ns: t, minWidth: a, popperClass: n, isMultiple: r, isFitInputWidth: o }; } }); function Xg(e, t, n, r, o, a) { return j(), L("div", { class: z([e.ns.b("dropdown"), e.ns.is("multiple", e.isMultiple), e.popperClass]), style: Te({ [e.isFitInputWidth ? "width" : "minWidth"]: e.minWidth }) }, [ e.$slots.header ? (j(), L("div", { key: 0, class: z(e.ns.be("dropdown", "header")) }, [ te(e.$slots, "header") ], 2)) : W("v-if", !0), te(e.$slots, "default"), e.$slots.footer ? (j(), L("div", { key: 1, class: z(e.ns.be("dropdown", "footer")) }, [ te(e.$slots, "footer") ], 2)) : W("v-if", !0) ], 6); } var eb = /* @__PURE__ */ Oe(Qg, [["render", Xg], ["__file", "select-dropdown.vue"]]); const tb = 11, nb = (e, t) => { const { t: n } = go(), r = wo(), o = xe("select"), a = xe("input"), i = vt({ inputValue: "", options: /* @__PURE__ */ new Map(), cachedOptions: /* @__PURE__ */ new Map(), disabledOptions: /* @__PURE__ */ new Map(), optionValues: [], selected: [], selectionWidth: 0, calculatorWidth: 0, collapseItemWidth: 0, selectedLabel: "", hoveringIndex: -1, previousQuery: null, inputHovering: !1, menuVisibleOnFocus: !1, isBeforeHide: !1 }), l = P(null), s = P(null), u = P(null), p = P(null), c = P(null), f = P(null), v = P(null), m = P(null), h = P(null), w = P(null), y = P(null), b = P(null), { isComposing: k, handleCompositionStart: _, handleCompositionUpdate: x, handleCompositionEnd: O } = vu({ afterComposition: (S) => fn(S) }), { wrapperRef: I, isFocused: F } = mu(c, { beforeFocus() { return A.value; }, afterFocus() { e.automaticDropdown && !C.value && (C.value = !0, i.menuVisibleOnFocus = !0); }, beforeBlur(S) { var $, ie; return (($ = u.value) == null ? void 0 : $.isFocusInsideContent(S)) || ((ie = p.value) == null ? void 0 : ie.isFocusInsideContent(S)); }, afterBlur() { C.value = !1, i.menuVisibleOnFocus = !1; } }), C = P(!1), N = P(), { form: H, formItem: Q } = _r(), { inputId: U } = Za(e, { formItemContext: Q }), { valueOnClear: re, isEmptyValue: E } = E0(e), A = g(() => e.disabled || (H == null ? void 0 : H.disabled)), R = g(() => xt(e.modelValue) ? e.modelValue.length > 0 : !E(e.modelValue)), ee = g(() => e.clearable && !A.value && i.inputHovering && R.value), G = g(() => e.remote && e.filterable && !e.remoteShowSuffix ? "" : e.suffixIcon), M = g(() => o.is("reverse", G.value && C.value)), D = g(() => (Q == null ? void 0 : Q.validateState) || ""), T = g(() => Hs[D.value]), B = g(() => e.remote ? 300 : 0), J = g(() => e.loading ? e.loadingText || n("el.select.loading") : e.remote && !i.inputValue && i.options.size === 0 ? !1 : e.filterable && i.inputValue && i.options.size > 0 && le.value === 0 ? e.noMatchText || n("el.select.noMatch") : i.options.size === 0 ? e.noDataText || n("el.select.noData") : null), le = g(() => oe.value.filter((S) => S.visible).length), oe = g(() => { const S = Array.from(i.options.values()), $ = []; return i.optionValues.forEach((ie) => { const he = S.findIndex((Zt) => Zt.value === ie); he > -1 && $.push(S[he]); }), $.length >= S.length ? $ : S; }), q = g(() => Array.from(i.cachedOptions.values())), ye = g(() => { const S = oe.value.filter(($) => !$.created).some(($) => $.currentLabel === i.inputValue); return e.filterable && e.allowCreate && i.inputValue !== "" && !S; }), ve = () => { e.filterable && Le(e.filterMethod) || e.filterable && e.remote && Le(e.remoteMethod) || oe.value.forEach((S) => { var $; ($ = S.updateOption) == null || $.call(S, i.inputValue); }); }, Ee = rr(), ue = g(() => ["small"].includes(Ee.value) ? "small" : "default"), ge = g({ get() { return C.value && J.value !== !1; }, set(S) { C.value = S; } }), Fe = g(() => { if (e.multiple && !Rt(e.modelValue)) return en(e.modelValue).length === 0 && !i.inputValue; const S = xt(e.modelValue) ? e.modelValue[0] : e.modelValue; return e.filterable || Rt(S) ? !i.inputValue : !0; }), De = g(() => { var S; const $ = (S = e.placeholder) != null ? S : n("el.select.placeholder"); return e.multiple || !R.value ? $ : i.selectedLabel; }), Ke = g(() => Jo ? null : "mouseenter"); ne(() => e.modelValue, (S, $) => { e.multiple && e.filterable && !e.reserveKeyword && (i.inputValue = "", Ye("")), qt(), !na(S, $) && e.validateEvent && (Q == null || Q.validate("change").catch((ie) => _e(ie))); }, { flush: "post", deep: !0 }), ne(() => C.value, (S) => { S ? Ye(i.inputValue) : (i.inputValue = "", i.previousQuery = null, i.isBeforeHide = !0), t("visible-change", S); }), ne(() => i.options.entries(), () => { var S; if (!Ve) return; const $ = ((S = l.value) == null ? void 0 : S.querySelectorAll("input")) || []; (!e.filterable && !e.defaultFirstOption && !Rt(e.modelValue) || !Array.from($).includes(document.activeElement)) && qt(), e.defaultFirstOption && (e.filterable || e.remote) && le.value && Ut(); }, { flush: "post" }), ne(() => i.hoveringIndex, (S) => { we(S) && S > -1 ? N.value = oe.value[S] || {} : N.value = {}, oe.value.forEach(($) => { $.hover = N.value === $; }); }), Qc(() => { i.isBeforeHide || ve(); }); const Ye = (S) => { i.previousQuery === S || k.value || (i.previousQuery = S, e.filterable && Le(e.filterMethod) ? e.filterMethod(S) : e.filterable && e.remote && Le(e.remoteMethod) && e.remoteMethod(S), e.defaultFirstOption && (e.filterable || e.remote) && le.value ? Ae(Ut) : Ae(ut)); }, Ut = () => { const S = oe.value.filter((he) => he.visible && !he.disabled && !he.states.groupDisabled), $ = S.find((he) => he.created), ie = S[0]; i.hoveringIndex = hi(oe.value, $ || ie); }, qt = () => { if (e.multiple) i.selectedLabel = ""; else { const $ = xt(e.modelValue) ? e.modelValue[0] : e.modelValue, ie = Cn($); i.selectedLabel = ie.currentLabel, i.selected = [ie]; return; } const S = []; Rt(e.modelValue) || en(e.modelValue).forEach(($) => { S.push(Cn($)); }), i.selected = S; }, Cn = (S) => { let $; const ie = ko(S).toLowerCase() === "object", he = ko(S).toLowerCase() === "null", Zt = ko(S).toLowerCase() === "undefined"; for (let mn = i.cachedOptions.size - 1; mn >= 0; mn--) { const Kt = q.value[mn]; if (ie ? Tt(Kt.value, e.valueKey) === Tt(S, e.valueKey) : Kt.value === S) { $ = { value: S, currentLabel: Kt.currentLabel, get isDisabled() { return Kt.isDisabled; } }; break; } } if ($) return $; const In = ie ? S.label : !he && !Zt ? S : ""; return { value: S, currentLabel: In }; }, ut = () => { i.hoveringIndex = oe.value.findIndex((S) => i.selected.some(($) => Eo($) === Eo(S))); }, jt = () => { i.selectionWidth = s.value.getBoundingClientRect().width; }, pn = () => { i.calculatorWidth = f.value.getBoundingClientRect().width; }, dn = () => { i.collapseItemWidth = y.value.getBoundingClientRect().width; }, V = () => { var S, $; ($ = (S = u.value) == null ? void 0 : S.updatePopper) == null || $.call(S); }, de = () => { var S, $; ($ = (S = p.value) == null ? void 0 : S.updatePopper) == null || $.call(S); }, tt = () => { i.inputValue.length > 0 && !C.value && (C.value = !0), Ye(i.inputValue); }, fn = (S) => { if (i.inputValue = S.target.value, e.remote) Ht(); else return tt(); }, Ht = ta(() => { tt(); }, B.value), ir = (S) => { na(e.modelValue, S) || t(tr, S); }, Sc = (S) => wv(S, ($) => !i.disabledOptions.has($)), Oc = (S) => { if (e.multiple && S.code !== qn.delete && S.target.value.length <= 0) { const $ = en(e.modelValue).slice(), ie = Sc($); if (ie < 0) return; const he = $[ie]; $.splice(ie, 1), t(Ce, $), ir($), t("remove-tag", he); } }, Ac = (S, $) => { const ie = i.selected.indexOf($); if (ie > -1 && !A.value) { const he = en(e.modelValue).slice(); he.splice(ie, 1), t(Ce, he), ir(he), t("remove-tag", $.value); } S.stopPropagation(), Vr(); }, mi = (S) => { S.stopPropagation(); const $ = e.multiple ? [] : re.value; if (e.multiple) for (const ie of i.selected) ie.isDisabled && $.push(ie.value); t(Ce, $), ir($), i.hoveringIndex = -1, C.value = !1, t("clear"), Vr(); }, vi = (S) => { var $; if (e.multiple) { const ie = en(($ = e.modelValue) != null ? $ : []).slice(), he = hi(ie, S.value); he > -1 ? ie.splice(he, 1) : (e.multipleLimit <= 0 || ie.length < e.multipleLimit) && ie.push(S.value), t(Ce, ie), ir(ie), S.created && Ye(""), e.filterable && !e.reserveKeyword && (i.inputValue = ""); } else t(Ce, S.value), ir(S.value), C.value = !1; Vr(), !C.value && Ae(() => { Ir(S); }); }, hi = (S = [], $) => { if (!We($)) return S.indexOf($); const ie = e.valueKey; let he = -1; return S.some((Zt, In) => gs(Tt(Zt, ie)) === Tt($, ie) ? (he = In, !0) : !1), he; }, Ir = (S) => { var $, ie, he, Zt, In; const mn = xt(S) ? S[0] : S; let Kt = null; if (mn != null && mn.value) { const lr = oe.value.filter((Lc) => Lc.value === mn.value); lr.length > 0 && (Kt = lr[0].$el); } if (u.value && Kt) { const lr = (Zt = (he = (ie = ($ = u.value) == null ? void 0 : $.popperRef) == null ? void 0 : ie.contentRef) == null ? void 0 : he.querySelector) == null ? void 0 : Zt.call(he, `.${o.be("dropdown", "wrap")}`); lr && Fv(lr, Kt); } (In = b.value) == null || In.handleScroll(); }, Ec = (S) => { i.options.set(S.value, S), i.cachedOptions.set(S.value, S), S.disabled && i.disabledOptions.set(S.value, S); }, kc = (S, $) => { i.options.get(S) === $ && i.options.delete(S); }, _c = g(() => { var S, $; return ($ = (S = u.value) == null ? void 0 : S.popperRef) == null ? void 0 : $.contentRef; }), jc = () => { i.isBeforeHide = !1, Ae(() => Ir(i.selected)); }, Vr = () => { var S; (S = c.value) == null || S.focus(); }, yi = () => { var S; (S = c.value) == null || S.blur(); }, Fc = (S) => { mi(S); }, Cc = () => { C.value = !1, F.value && yi(); }, Ic = () => { i.inputValue.length > 0 ? i.inputValue = "" : C.value = !1; }, gi = () => { A.value || (Jo && (i.inputHovering = !0), i.menuVisibleOnFocus ? i.menuVisibleOnFocus = !1 : C.value = !C.value); }, Vc = () => { C.value ? oe.value[i.hoveringIndex] && vi(oe.value[i.hoveringIndex]) : gi(); }, Eo = (S) => We(S.value) ? Tt(S.value, e.valueKey) : S.value, Mc = g(() => oe.value.filter((S) => S.visible).every((S) => S.disabled)), Tc = g(() => e.multiple ? e.collapseTags ? i.selected.slice(0, e.maxCollapseTags) : i.selected : []), Pc = g(() => e.multiple ? e.collapseTags ? i.selected.slice(e.maxCollapseTags) : [] : []), bi = (S) => { if (!C.value) { C.value = !0; return; } if (!(i.options.size === 0 || i.filteredOptionsCount === 0 || k.value) && !Mc.value) { S === "next" ? (i.hoveringIndex++, i.hoveringIndex === i.options.size && (i.hoveringIndex = 0)) : S === "prev" && (i.hoveringIndex--, i.hoveringIndex < 0 && (i.hoveringIndex = i.options.size - 1)); const $ = oe.value[i.hoveringIndex]; ($.disabled === !0 || $.states.groupDisabled === !0 || !$.visible) && bi(S), Ae(() => Ir(N.value)); } }, Rc = () => { if (!s.value) return 0; const S = window.getComputedStyle(s.value); return Number.parseFloat(S.gap || "6px"); }, zc = g(() => { const S = Rc(); return { maxWidth: `${y.value && e.maxCollapseTags === 1 ? i.selectionWidth - i.collapseItemWidth - S : i.selectionWidth}px` }; }), Nc = g(() => ({ maxWidth: `${i.selectionWidth}px` })), $c = g(() => ({ width: `${Math.max(i.calculatorWidth, tb)}px` })); return Vt(s, jt), Vt(f, pn), Vt(h, V), Vt(I, V), Vt(w, de), Vt(y, dn), $e(() => { qt(); }), { inputId: U, contentId: r, nsSelect: o, nsInput: a, states: i, isFocused: F, expanded: C, optionsArray: oe, hoverOption: N, selectSize: Ee, filteredOptionsCount: le, resetCalculatorWidth: pn, updateTooltip: V, updateTagTooltip: de, debouncedOnInputChange: Ht, onInput: fn, deletePrevTag: Oc, deleteTag: Ac, deleteSelected: mi, handleOptionSelect: vi, scrollToOption: Ir, hasModelValue: R, shouldShowPlaceholder: Fe, currentPlaceholder: De, mouseEnterEventName: Ke, showClose: ee, iconComponent: G, iconReverse: M, validateState: D, validateIcon: T, showNewOption: ye, updateOptions: ve, collapseTagSize: ue, setSelected: qt, selectDisabled: A, emptyText: J, handleCompositionStart: _, handleCompositionUpdate: x, handleCompositionEnd: O, onOptionCreate: Ec, onOptionDestroy: kc, handleMenuEnter: jc, focus: Vr, blur: yi, handleClearClick: Fc, handleClickOutside: Cc, handleEsc: Ic, toggleMenu: gi, selectOption: Vc, getValueKey: Eo, navigateOptions: bi, dropdownMenuVisible: ge, showTagList: Tc, collapseTagList: Pc, tagStyle: zc, collapseTagStyle: Nc, inputStyle: $c, popperRef: _c, inputRef: c, tooltipRef: u, tagTooltipRef: p, calculatorRef: f, prefixRef: v, suffixRef: m, selectRef: l, wrapperRef: I, selectionRef: s, scrollbarRef: b, menuRef: h, tagMenuRef: w, collapseItemRef: y }; }; var rb = K({ name: "ElOptions", setup(e, { slots: t }) { const n = me(Oo); let r = []; return () => { var o, a; const i = (o = t.default) == null ? void 0 : o.call(t), l = []; function s(u) { xt(u) && u.forEach((p) => { var c, f, v, m; const h = (c = (p == null ? void 0 : p.type) || {}) == null ? void 0 : c.name; h === "ElOptionGroup" ? s(!Xe(p.children) && !xt(p.children) && Le((f = p.children) == null ? void 0 : f.default) ? (v = p.children) == null ? void 0 : v.default() : p.children) : h === "ElOption" ? l.push((m = p.props) == null ? void 0 : m.value) : xt(p.children) && s(p.children); }); } return i.length && s((a = i[0]) == null ? void 0 : a.children), na(l, r) || (r = l, n && (n.states.optionValues = l)), i; }; } }); const ob = Se({ name: String, id: String, modelValue: { type: [Array, String, Number, Boolean, Object], default: void 0 }, autocomplete: { type: String, default: "off" }, automaticDropdown: Boolean, size: Gn, effect: { type: ae(String), default: "light" }, disabled: Boolean, clearable: Boolean, filterable: Boolean, allowCreate: Boolean, loading: Boolean, popperClass: { type: String, default: "" }, popperOptions: { type: ae(Object), default: () => ({}) }, remote: Boolean, loadingText: String, noMatchText: String, noDataText: String, remoteMethod: Function, filterMethod: Function, multiple: Boolean, multipleLimit: { type: Number, default: 0 }, placeholder: { type: String }, defaultFirstOption: Boolean, reserveKeyword: { type: Boolean, default: !0 }, valueKey: { type: String, default: "value" }, collapseTags: Boolean, collapseTagsTooltip: Boolean, maxCollapseTags: { type: Number, default: 1 }, teleported: Qa.teleported, persistent: { type: Boolean, default: !0 }, clearIcon: { type: Un, default: Ma }, fitInputWidth: Boolean, suffixIcon: { type: Un, default: Ds }, tagType: { ...ua.type, default: "info" }, tagEffect: { ...ua.effect, default: "light" }, validateEvent: { type: Boolean, default: !0 }, remoteShowSuffix: Boolean, placement: { type: ae(String), values: nr, default: "bottom-start" }, fallbackPlacements: { type: ae(Array), default: ["bottom-start", "top-start", "right", "left"] }, appendTo: String, ...A0, ...jn(["ariaLabel"]) }), Pl = "ElSelect", ab = K({ name: Pl, componentName: Pl, components: { ElSelectMenu: eb, ElOption: ei, ElOptions: rb, ElTag: $g, ElScrollbar: ny, ElTooltip: ku, ElIcon: nt }, directives: { ClickOutside: Vg }, props: ob, emits: [ Ce, tr, "remove-tag", "clear", "visible-change", "focus", "blur" ], setup(e, { emit: t }) { const n = g(() => { const { modelValue: a, multiple: i } = e, l = i ? [] : void 0; return xt(a) ? i ? a : l : i ? l : a; }), r = vt({ ...On(e), modelValue: n }), o = nb(r, t); return at(Oo, vt({ props: r, states: o.states, optionsArray: o.optionsArray, handleOptionSelect: o.handleOptionSelect, onOptionCreate: o.onOptionCreate, onOptionDestroy: o.onOptionDestroy, selectRef: o.selectRef, setSelected: o.setSelected })), { ...o, modelValue: n }; } }); function ib(e, t, n, r, o, a) { const i = Ct("el-tag"), l = Ct("el-tooltip"), s = Ct("el-icon"), u = Ct("el-option"), p = Ct("el-options"), c = Ct("el-scrollbar"), f = Ct("el-select-menu"), v = np("click-outside"); return He((j(), L("div", { ref: "selectRef", class: z([e.nsSelect.b(), e.nsSelect.m(e.selectSize)]), [rp(e.mouseEnterEventName)]: (m) => e.states.inputHovering = !0, onMouseleave: (m) => e.states.inputHovering = !1 }, [ fe(l, { ref: "tooltipRef", visible: e.dropdownMenuVisible, placement: e.placement, teleported: e.teleported, "popper-class": [e.nsSelect.e("popper"), e.popperClass], "popper-options": e.popperOptions, "fallback-placements": e.fallbackPlacements, effect: e.effect, pure: "", trigger: "click", transition: `${e.nsSelect.namespace.value}-zoom-in-top`, "stop-popper-mouse-event": !1, "gpu-acceleration": !1, persistent: e.persistent, "append-to": e.appendTo, onBeforeShow: e.handleMenuEnter, onHide: (m) => e.states.isBeforeHide = !1 }, { default: X(() => { var m; return [ Z("div", { ref: "wrapperRef", class: z([ e.nsSelect.e("wrapper"), e.nsSelect.is("focused", e.isFocused), e.nsSelect.is("hovering", e.states.inputHovering), e.nsSelect.is("filterable", e.filterable), e.nsSelect.is("disabled", e.selectDisabled) ]), onClick: Re(e.toggleMenu, ["prevent"]) }, [ e.$slots.prefix ? (j(), L("div", { key: 0, ref: "prefixRef", class: z(e.nsSelect.e("prefix")) }, [ te(e.$slots, "prefix") ], 2)) : W("v-if", !0), Z("div", { ref: "selectionRef", class: z([ e.nsSelect.e("selection"), e.nsSelect.is("near", e.multiple && !e.$slots.prefix && !!e.states.selected.length) ]) }, [ e.multiple ? te(e.$slots, "tag", { key: 0 }, () => [ (j(!0), L(qe, null, on(e.showTagList, (h) => (j(), L("div", { key: e.getValueKey(h), class: z(e.nsSelect.e("selected-item")) }, [ fe(i, { closable: !e.selectDisabled && !h.isDisabled, size: e.collapseTagSize, type: e.tagType, effect: e.tagEffect, "disable-transitions": "", style: Te(e.tagStyle), onClose: (w) => e.deleteTag(w, h) }, { default: X(() => [ Z("span", { class: z(e.nsSelect.e("tags-text")) }, [ te(e.$slots, "label", { label: h.currentLabel, value: h.value }, () => [ Yt(ze(h.currentLabel), 1) ]) ], 2) ]), _: 2 }, 1032, ["closable", "size", "type", "effect", "style", "onClose"]) ], 2))), 128)), e.collapseTags && e.states.selected.length > e.maxCollapseTags ? (j(), Y(l, { key: 0, ref: "tagTooltipRef", disabled: e.dropdownMenuVisible || !e.collapseTagsTooltip, "fallback-placements": ["bottom", "top", "right", "left"], effect: e.effect, placement: "bottom", teleported: e.teleported }, { default: X(() => [ Z("div", { ref: "collapseItemRef", class: z(e.nsSelect.e("selected-item")) }, [ fe(i, { closable: !1, size: e.collapseTagSize, type: e.tagType, effect: e.tagEffect, "disable-transitions": "", style: Te(e.collapseTagStyle) }, { default: X(() => [ Z("span", { class: z(e.nsSelect.e("tags-text")) }, " + " + ze(e.states.selected.length - e.maxCollapseTags), 3) ]), _: 1 }, 8, ["size", "type", "effect", "style"]) ], 2) ]), content: X(() => [ Z("div", { ref: "tagMenuRef", class: z(e.nsSelect.e("selection")) }, [ (j(!0), L(qe, null, on(e.collapseTagList, (h) => (j(), L("div", { key: e.getValueKey(h), class: z(e.nsSelect.e("selected-item")) }, [ fe(i, { class: "in-tooltip", closable: !e.selectDisabled && !h.isDisabled, size: e.collapseTagSize, type: e.tagType, effect: e.tagEffect, "disable-transitions": "", onClose: (w) => e.deleteTag(w, h) }, { default: X(() => [ Z("span", { class: z(e.nsSelect.e("tags-text")) }, [ te(e.$slots, "label", { label: h.currentLabel, value: h.value }, () => [ Yt(ze(h.currentLabel), 1) ]) ], 2) ]), _: 2 }, 1032, ["closable", "size", "type", "effect", "onClose"]) ], 2))), 128)) ], 2) ]), _: 3 }, 8, ["disabled", "effect", "teleported"])) : W("v-if", !0) ]) : W("v-if", !0), e.selectDisabled ? W("v-if", !0) : (j(), L("div", { key: 1, class: z([ e.nsSelect.e("selected-item"), e.nsSelect.e("input-wrapper"), e.nsSelect.is("hidden", !e.filterable) ]) }, [ He(Z("input", { id: e.inputId, ref: "inputRef", "onUpdate:modelValue": (h) => e.states.inputValue = h, type: "text", name: e.name, class: z([e.nsSelect.e("input"), e.nsSelect.is(e.selectSize)]), disabled: e.selectDisabled, autocomplete: e.autocomplete, style: Te(e.inputStyle), role: "combobox", readonly: !e.filterable, spellcheck: "false", "aria-activedescendant": ((m = e.hoverOption) == null ? void 0 : m.id) || "", "aria-controls": e.contentId, "aria-expanded": e.dropdownMenuVisible, "aria-label": e.ariaLabel, "aria-autocomplete": "none", "aria-haspopup": "listbox", onKeydown: [ Mt(Re((h) => e.navigateOptions("next"), ["stop", "prevent"]), ["down"]), Mt(Re((h) => e.navigateOptions("prev"), ["stop", "prevent"]), ["up"]), Mt(Re(e.handleEsc, ["stop", "prevent"]), ["esc"]), Mt(Re(e.selectOption, ["stop", "prevent"]), ["enter"]), Mt(Re(e.deletePrevTag, ["stop"]), ["delete"]) ], onCompositionstart: e.handleCompositionStart, onCompositionupdate: e.handleCompositionUpdate, onCompositionend: e.handleCompositionEnd, onInput: e.onInput, onClick: Re(e.toggleMenu, ["stop"]) }, null, 46, ["id", "onUpdate:modelValue", "name", "disabled", "autocomplete", "readonly", "aria-activedescendant", "aria-controls", "aria-expanded", "aria-label", "onKeydown", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onInput", "onClick"]), [ [op, e.states.inputValue] ]), e.filterable ? (j(), L("span", { key: 0, ref: "calculatorRef", "aria-hidden": "true", class: z(e.nsSelect.e("input-calculator")), textContent: ze(e.states.inputValue) }, null, 10, ["textContent"])) : W("v-if", !0) ], 2)), e.shouldShowPlaceholder ? (j(), L("div", { key: 2, class: z([ e.nsSelect.e("selected-item"), e.nsSelect.e("placeholder"), e.nsSelect.is("transparent", !e.hasModelValue || e.expanded && !e.states.inputValue) ]) }, [ e.hasModelValue ? te(e.$slots, "label", { key: 0, label: e.currentPlaceholder, value: e.modelValue }, () => [ Z("span", null, ze(e.currentPlaceholder), 1) ]) : (j(), L("span", { key: 1 }, ze(e.currentPlaceholder), 1)) ], 2)) : W("v-if", !0) ], 2), Z("div", { ref: "suffixRef", class: z(e.nsSelect.e("suffix")) }, [ e.iconComponent && !e.showClose ? (j(), Y(s, { key: 0, class: z([e.nsSelect.e("caret"), e.nsSelect.e("icon"), e.iconReverse]) }, { default: X(() => [ (j(), Y(mt(e.iconComponent))) ]), _: 1 }, 8, ["class"])) : W("v-if", !0), e.showClose && e.clearIcon ? (j(), Y(s, { key: 1, class: z([ e.nsSelect.e("caret"), e.nsSelect.e("icon"), e.nsSelect.e("clear") ]), onClick: e.handleClearClick }, { default: X(() => [ (j(), Y(mt(e.clearIcon))) ]), _: 1 }, 8, ["class", "onClick"])) : W("v-if", !0), e.validateState && e.validateIcon ? (j(), Y(s, { key: 2, class: z([e.nsInput.e("icon"), e.nsInput.e("validateIcon")]) }, { default: X(() => [ (j(), Y(mt(e.validateIcon))) ]), _: 1 }, 8, ["class"])) : W("v-if", !0) ], 2) ], 10, ["onClick"]) ]; }), content: X(() => [ fe(f, { ref: "menuRef" }, { default: X(() => [ e.$slots.header ? (j(), L("div", { key: 0, class: z(e.nsSelect.be("dropdown", "header")), onClick: Re(() => { }, ["stop"]) }, [ te(e.$slots, "header") ], 10, ["onClick"])) : W("v-if", !0), He(fe(c, { id: e.contentId, ref: "scrollbarRef", tag: "ul", "wrap-class": e.nsSelect.be("dropdown", "wrap"), "view-class": e.nsSelect.be("dropdown", "list"), class: z([e.nsSelect.is("empty", e.filteredOptionsCount === 0)]), role: "listbox", "aria-label": e.ariaLabel, "aria-orientation": "vertical" }, { default: X(() => [ e.showNewOption ? (j(), Y(u, { key: 0, value: e.states.inputValue, created: !0 }, null, 8, ["value"])) : W("v-if", !0), fe(p, null, { default: X(() => [ te(e.$slots, "default") ]), _: 3 }) ]), _: 3 }, 8, ["id", "wrap-class", "view-class", "class", "aria-label"]), [ [$t, e.states.options.size > 0 && !e.loading] ]), e.$slots.loading && e.loading ? (j(), L("div", { key: 1, class: z(e.nsSelect.be("dropdown", "loading")) }, [ te(e.$slots, "loading") ], 2)) : e.loading || e.filteredOptionsCount === 0 ? (j(), L("div", { key: 2, class: z(e.nsSelect.be("dropdown", "empty")) }, [ te(e.$slots, "empty", {}, () => [ Z("span", null, ze(e.emptyText), 1) ]) ], 2)) : W("v-if", !0), e.$slots.footer ? (j(), L("div", { key: 3, class: z(e.nsSelect.be("dropdown", "footer")), onClick: Re(() => { }, ["stop"]) }, [ te(e.$slots, "footer") ], 10, ["onClick"])) : W("v-if", !0) ]), _: 3 }, 512) ]), _: 3 }, 8, ["visible", "placement", "teleported", "popper-class", "popper-options", "fallback-placements", "effect", "transition", "persistent", "append-to", "onBeforeShow", "onHide"]) ], 16, ["onMouseleave"])), [ [v, e.handleClickOutside, e.popperRef] ]); } var lb = /* @__PURE__ */ Oe(ab, [["render", ib], ["__file", "select.vue"]]); const sb = K({ name: "ElOptionGroup", componentName: "ElOptionGroup", props: { label: String, disabled: Boolean }, setup(e) { const t = xe("select"), n = P(null), r = Ze(), o = P([]); at(Vu, vt({ ...On(e) })); const a = g(() => o.value.some((u) => u.visible === !0)), i = (u) => { var p, c; return ((p = u.type) == null ? void 0 : p.name) === "ElOption" && !!((c = u.component) != null && c.proxy); }, l = (u) => { const p = en(u), c = []; return p.forEach((f) => { var v, m; i(f) ? c.push(f.component.proxy) : (v = f.children) != null && v.length ? c.push(...l(f.children)) : (m = f.component) != null && m.subTree && c.push(...l(f.component.subTree)); }), c; }, s = () => { o.value = l(r.subTree); }; return $e(() => { s(); }), wp(n, s, { attributes: !0, subtree: !0, childList: !0 }), { groupRef: n, visible: a, ns: t }; } }); function ub(e, t, n, r, o, a) { return He((j(), L("ul", { ref: "groupRef", class: z(e.ns.be("group", "wrap")) }, [ Z("li", { class: z(e.ns.be("group", "title")) }, ze(e.label), 3), Z("li", null, [ Z("ul", { class: z(e.ns.b("group")) }, [ te(e.$slots, "default") ], 2) ]) ], 2)), [ [$t, e.visible] ]); } var Mu = /* @__PURE__ */ Oe(sb, [["render", ub], ["__file", "option-group.vue"]]); const Tu = st(lb, { Option: ei, OptionGroup: Mu }), Pu = Ta(ei); Ta(Mu); const Ru = Symbol("sliderContextKey"), cb = Se({ modelValue: { type: ae([Number, Array]), default: 0 }, id: { type: String, default: void 0 }, min: { type: Number, default: 0 }, max: { type: Number, default: 100 }, step: { type: Number, default: 1 }, showInput: Boolean, showInputControls: { type: Boolean, default: !0 }, size: Gn, inputSize: Gn, showStops: Boolean, showTooltip: { type: Boolean, default: !0 }, formatTooltip: { type: ae(Function), default: void 0 }, disabled: Boolean, range: Boolean, vertical: Boolean, height: String, debounce: { type: Number, default: 300 }, rangeStartLabel: { type: String, default: void 0 }, rangeEndLabel: { type: String, default: void 0 }, formatValueText: { type: ae(Function), default: void 0 }, tooltipClass: { type: String, default: void 0 }, placement: { type: String, values: nr, default: "top" }, marks: { type: ae(Object) }, validateEvent: { type: Boolean, default: !0 }, ...jn(["ariaLabel"]) }), zo = (e) => we(e) || xt(e) && e.every(we), pb = { [Ce]: zo, [bn]: zo, [tr]: zo }, db = (e, t, n) => { const r = P(); return $e(async () => { e.range ? (Array.isArray(e.modelValue) ? (t.firstValue = Math.max(e.min, e.modelValue[0]), t.secondValue = Math.min(e.max, e.modelValue[1])) : (t.firstValue = e.min, t.secondValue = e.max), t.oldValue = [t.firstValue, t.secondValue]) : (typeof e.modelValue != "number" || Number.isNaN(e.modelValue) ? t.firstValue = e.min : t.firstValue = Math.min(e.max, Math.max(e.min, e.modelValue)), t.oldValue = t.firstValue), Ue(window, "resize", n), await Ae(), n(); }), { sliderWrapper: r }; }, fb = (e) => g(() => e.marks ? Object.keys(e.marks).map(Number.parseFloat).sort((t, n) => t - n).filter((t) => t <= e.max && t >= e.min).map((t) => ({ point: t, position: (t - e.min) * 100 / (e.max - e.min), mark: e.marks[t] })) : []), mb = (e, t, n) => { const { form: r, formItem: o } = _r(), a = $n(), i = P(), l = P(), s = { firstButton: i, secondButton: l }, u = g(() => e.disabled || (r == null ? void 0 : r.disabled) || !1), p = g(() => Math.min(t.firstValue, t.secondValue)), c = g(() => Math.max(t.firstValue, t.secondValue)), f = g(() => e.range ? `${100 * (c.value - p.value) / (e.max - e.min)}%` : `${100 * (t.firstValue - e.min) / (e.max - e.min)}%`), v = g(() => e.range ? `${100 * (p.value - e.min) / (e.max - e.min)}%` : "0%"), m = g(() => e.vertical ? { height: e.height } : {}), h = g(() => e.vertical ? { height: f.value, bottom: v.value } : { width: f.value, left: v.value }), w = () => { a.value && (t.sliderSize = a.value[`client${e.vertical ? "Height" : "Width"}`]); }, y = (F) => { const C = e.min + F * (e.max - e.min) / 100; if (!e.range) return i; let N; return Math.abs(p.value - C) < Math.abs(c.value - C) ? N = t.firstValue < t.secondValue ? "firstButton" : "secondButton" : N = t.firstValue > t.secondValue ? "firstButton" : "secondButton", s[N]; }, b = (F) => { const C = y(F); return C.value.setPosition(F), C; }, k = (F) => { t.firstValue = F ?? e.min, x(e.range ? [p.value, c.value] : F ?? e.min); }, _ = (F) => { t.secondValue = F, e.range && x([p.value, c.value]); }, x = (F) => { n(Ce, F), n(bn, F); }, O = async () => { await Ae(), n(tr, e.range ? [p.value, c.value] : e.modelValue); }, I = (F) => { var C, N, H, Q, U, re; if (u.value || t.dragging) return; w(); let E = 0; if (e.vertical) { const A = (H = (N = (C = F.touches) == null ? void 0 : C.item(0)) == null ? void 0 : N.clientY) != null ? H : F.clientY; E = (a.value.getBoundingClientRect().bottom - A) / t.sliderSize * 100; } else { const A = (re = (U = (Q = F.touches) == null ? void 0 : Q.item(0)) == null ? void 0 : U.clientX) != null ? re : F.clientX, R = a.value.getBoundingClientRect().left; E = (A - R) / t.sliderSize * 100; } if (!(E < 0 || E > 100)) return b(E); }; return { elFormItem: o, slider: a, firstButton: i, secondButton: l, sliderDisabled: u, minValue: p, maxValue: c, runwayStyle: m, barStyle: h, resetSize: w, setPosition: b, emitChange: O, onSliderWrapperPrevent: (F) => { var C, N; ((C = s.firstButton.value) != null && C.dragging || (N = s.secondButton.value) != null && N.dragging) && F.preventDefault(); }, onSliderClick: (F) => { I(F) && O(); }, onSliderDown: async (F) => { const C = I(F); C && (await Ae(), C.value.onButtonDown(F)); }, onSliderMarkerDown: (F) => { u.value || t.dragging || b(F); }, setFirstValue: k, setSecondValue: _ }; }, { left: vb, down: hb, right: yb, up: gb, home: bb, end: wb, pageUp: xb, pageDown: Sb } = qn, Ob = (e, t, n) => { const r = P(), o = P(!1), a = g(() => t.value instanceof Function), i = g(() => a.value && t.value(e.modelValue) || e.modelValue), l = ta(() => { n.value && (o.value = !0); }, 50), s = ta(() => { n.value && (o.value = !1); }, 50); return { tooltip: r, tooltipVisible: o, formatValue: i, displayTooltip: l, hideTooltip: s }; }, Ab = (e, t, n) => { const { disabled: r, min: o, max: a, step: i, showTooltip: l, precision: s, sliderSize: u, formatTooltip: p, emitChange: c, resetSize: f, updateDragging: v } = me(Ru), { tooltip: m, tooltipVisible: h, formatValue: w, displayTooltip: y, hideTooltip: b } = Ob(e, p, l), k = P(), _ = g(() => `${(e.modelValue - o.value) / (a.value - o.value) * 100}%`), x = g(() => e.vertical ? { bottom: _.value } : { left: _.value }), O = () => { t.hovering = !0, y(); }, I = () => { t.hovering = !1, t.dragging || b(); }, F = (T) => { r.value || (T.preventDefault(), ee(T), window.addEventListener("mousemove", G), window.addEventListener("touchmove", G), window.addEventListener("mouseup", M), window.addEventListener("touchend", M), window.addEventListener("contextmenu", M), k.value.focus()); }, C = (T) => { r.value || (t.newPosition = Number.parseFloat(_.value) + T / (a.value - o.value) * 100, D(t.newPosition), c()); }, N = () => { C(-i.value); }, H = () => { C(i.value); }, Q = () => { C(-i.value * 4); }, U = () => { C(i.value * 4); }, re = () => { r.value || (D(0), c()); }, E = () => { r.value || (D(100), c()); }, A = (T) => { let B = !0; [vb, hb].includes(T.key) ? N() : [yb, gb].includes(T.key) ? H() : T.key === bb ? re() : T.key === wb ? E() : T.key === Sb ? Q() : T.key === xb ? U() : B = !1, B && T.preventDefault(); }, R = (T) => { let B, J; return T.type.startsWith("touch") ? (J = T.touches[0].clientY, B = T.touches[0].clientX) : (J = T.clientY, B = T.clientX), { clientX: B, clientY: J }; }, ee = (T) => { t.dragging = !0, t.isClick = !0; const { clientX: B, clientY: J } = R(T); e.vertical ? t.startY = J : t.startX = B, t.startPosition = Number.parseFloat(_.value), t.newPosition = t.startPosition; }, G = (T) => { if (t.dragging) { t.isClick = !1, y(), f(); let B; const { clientX: J, clientY: le } = R(T); e.vertical ? (t.currentY = le, B = (t.startY - t.currentY) / u.value * 100) : (t.currentX = J, B = (t.currentX - t.startX) / u.value * 100), t.newPosition = t.startPosition + B, D(t.newPosition); } }, M = () => { t.dragging && (setTimeout(() => { t.dragging = !1, t.hovering || b(), t.isClick || D(t.newPosition), c(); }, 0), window.removeEventListener("mousemove", G), window.removeEventListener("touchmove", G), window.removeEventListener("mouseup", M), window.removeEventListener("touchend", M), window.removeEventListener("contextmenu", M)); }, D = async (T) => { if (T === null || Number.isNaN(+T)) return; T < 0 ? T = 0 : T > 100 && (T = 100); const B = 100 / ((a.value - o.value) / i.value); let J = Math.round(T / B) * B * (a.value - o.value) * 0.01 + o.value; J = Number.parseFloat(J.toFixed(s.value)), J !== e.modelValue && n(Ce, J), !t.dragging && e.modelValue !== t.oldValue && (t.oldValue = e.modelValue), await Ae(), t.dragging && y(), m.value.updatePopper(); }; return ne(() => t.dragging, (T) => { v(T); }), Ue(k, "touchstart", F, { passive: !1 }), { disabled: r, button: k, tooltip: m, tooltipVisible: h, showTooltip: l, wrapperStyle: x, formatValue: w, handleMouseEnter: O, handleMouseLeave: I, onButtonDown: F, onKeyDown: A, setPosition: D }; }, Eb = (e, t, n, r) => ({ stops: g(() => { if (!e.showStops || e.min > e.max) return []; if (e.step === 0) return _e("ElSlider", "step should not be 0."), []; const o = (e.max - e.min) / e.step, a = 100 * e.step / (e.max - e.min), i = Array.from({ length: o - 1 }).map((l, s) => (s + 1) * a); return e.range ? i.filter((l) => l < 100 * (n.value - e.min) / (e.max - e.min) || l > 100 * (r.value - e.min) / (e.max - e.min)) : i.filter((l) => l > 100 * (t.firstValue - e.min) / (e.max - e.min)); }), getStopStyle: (o) => e.vertical ? { bottom: `${o}%` } : { left: `${o}%` } }), kb = (e, t, n, r, o, a) => { const i = (u) => { o(Ce, u), o(bn, u); }, l = () => e.range ? ![n.value, r.value].every((u, p) => u === t.oldValue[p]) : e.modelValue !== t.oldValue, s = () => { var u, p; e.min > e.max && Va("Slider", "min should not be greater than max."); const c = e.modelValue; e.range && Array.isArray(c) ? c[1] < e.min ? i([e.min, e.min]) : c[0] > e.max ? i([e.max, e.max]) : c[0] < e.min ? i([e.min, c[1]]) : c[1] > e.max ? i([c[0], e.max]) : (t.firstValue = c[0], t.secondValue = c[1], l() && (e.validateEvent && ((u = a == null ? void 0 : a.validate) == null || u.call(a, "change").catch((f) => _e(f))), t.oldValue = c.slice())) : !e.range && typeof c == "number" && !Number.isNaN(c) && (c < e.min ? i(e.min) : c > e.max ? i(e.max) : (t.firstValue = c, l() && (e.validateEvent && ((p = a == null ? void 0 : a.validate) == null || p.call(a, "change").catch((f) => _e(f))), t.oldValue = c))); }; s(), ne(() => t.dragging, (u) => { u || s(); }), ne(() => e.modelValue, (u, p) => { t.dragging || Array.isArray(u) && Array.isArray(p) && u.every((c, f) => c === p[f]) && t.firstValue === u[0] && t.secondValue === u[1] || s(); }, { deep: !0 }), ne(() => [e.min, e.max], () => { s(); }); }, _b = Se({ modelValue: { type: Number, default: 0 }, vertical: Boolean, tooltipClass: String, placement: { type: String, values: nr, default: "top" } }), jb = { [Ce]: (e) => we(e) }, Fb = K({ name: "ElSliderButton" }), Cb = /* @__PURE__ */ K({ ...Fb, props: _b, emits: jb, setup(e, { expose: t, emit: n }) { const r = e, o = xe("slider"), a = vt({ hovering: !1, dragging: !1, isClick: !1, startX: 0, currentX: 0, startY: 0, currentY: 0, startPosition: 0, newPosition: 0, oldValue: r.modelValue }), { disabled: i, button: l, tooltip: s, showTooltip: u, tooltipVisible: p, wrapperStyle: c, formatValue: f, handleMouseEnter: v, handleMouseLeave: m, onButtonDown: h, onKeyDown: w, setPosition: y } = Ab(r, a, n), { hovering: b, dragging: k } = On(a); return t({ onButtonDown: h, onKeyDown: w, setPosition: y, hovering: b, dragging: k }), (_, x) => (j(), L("div", { ref_key: "button", ref: l, class: z([d(o).e("button-wrapper"), { hover: d(b), dragging: d(k) }]), style: Te(d(c)), tabindex: d(i) ? -1 : 0, onMouseenter: d(v), onMouseleave: d(m), onMousedown: d(h), onFocus: d(v), onBlur: d(m), onKeydown: d(w) }, [ fe(d(ku), { ref_key: "tooltip", ref: s, visible: d(p), placement: _.placement, "fallback-placements": ["top", "bottom", "right", "left"], "stop-popper-mouse-event": !1, "popper-class": _.tooltipClass, disabled: !d(u), persistent: "" }, { content: X(() => [ Z("span", null, ze(d(f)), 1) ]), default: X(() => [ Z("div", { class: z([d(o).e("button"), { hover: d(b), dragging: d(k) }]) }, null, 2) ]), _: 1 }, 8, ["visible", "placement", "popper-class", "disabled"]) ], 46, ["tabindex", "onMouseenter", "onMouseleave", "onMousedown", "onFocus", "onBlur", "onKeydown"])); } }); var Rl = /* @__PURE__ */ Oe(Cb, [["__file", "button.vue"]]); const Ib = Se({ mark: { type: ae([String, Object]), default: void 0 } }); var Vb = K({ name: "ElSliderMarker", props: Ib, setup(e) { const t = xe("slider"), n = g(() => Xe(e.mark) ? e.mark : e.mark.label), r = g(() => Xe(e.mark) ? void 0 : e.mark.style); return () => Rn("div", { class: t.e("marks-text"), style: r.value }, n.value); } }); const Mb = K({ name: "ElSlider" }), Tb = /* @__PURE__ */ K({ ...Mb, props: cb, emits: pb, setup(e, { expose: t, emit: n }) { const r = e, o = xe("slider"), { t: a } = go(), i = vt({ firstValue: 0, secondValue: 0, oldValue: 0, dragging: !1, sliderSize: 1 }), { elFormItem: l, slider: s, firstButton: u, secondButton: p, sliderDisabled: c, minValue: f, maxValue: v, runwayStyle: m, barStyle: h, resetSize: w, emitChange: y, onSliderWrapperPrevent: b, onSliderClick: k, onSliderDown: _, onSliderMarkerDown: x, setFirstValue: O, setSecondValue: I } = mb(r, i, n), { stops: F, getStopStyle: C } = Eb(r, i, f, v), { inputId: N, isLabeledByFormItem: H } = Za(r, { formItemContext: l }), Q = rr(), U = g(() => r.inputSize || Q.value), re = g(() => r.ariaLabel || a("el.slider.defaultLabel", { min: r.min, max: r.max })), E = g(() => r.range ? r.rangeStartLabel || a("el.slider.defaultRangeStartLabel") : re.value), A = g(() => r.formatValueText ? r.formatValueText(B.value) : `${B.value}`), R = g(() => r.rangeEndLabel || a("el.slider.defaultRangeEndLabel")), ee = g(() => r.formatValueText ? r.formatValueText(J.value) : `${J.value}`), G = g(() => [ o.b(), o.m(Q.value), o.is("vertical", r.vertical), { [o.m("with-input")]: r.showInput } ]), M = fb(r); kb(r, i, f, v, n, l); const D = g(() => { const q = [r.min, r.max, r.step].map((ye) => { const ve = `${ye}`.split(".")[1]; return ve ? ve.length : 0; }); return Math.max.apply(null, q); }), { sliderWrapper: T } = db(r, i, w), { firstValue: B, secondValue: J, sliderSize: le } = On(i), oe = (q) => { i.dragging = q; }; return Ue(T, "touchstart", b, { passive: !1 }), Ue(T, "touchmove", b, { passive: !1 }), at(Ru, { ...On(r), sliderSize: le, disabled: c, precision: D, emitChange: y, resetSize: w, updateDragging: oe }), t({ onSliderClick: k }), (q, ye) => { var ve, Ee; return j(), L("div", { id: q.range ? d(N) : void 0, ref_key: "sliderWrapper", ref: T, class: z(d(G)), role: q.range ? "group" : void 0, "aria-label": q.range && !d(H) ? d(re) : void 0, "aria-labelledby": q.range && d(H) ? (ve = d(l)) == null ? void 0 : ve.labelId : void 0 }, [ Z("div", { ref_key: "slider", ref: s, class: z([ d(o).e("runway"), { "show-input": q.showInput && !q.range }, d(o).is("disabled", d(c)) ]), style: Te(d(m)), onMousedown: d(_), onTouchstartPassive: d(_) }, [ Z("div", { class: z(d(o).e("bar")), style: Te(d(h)) }, null, 6), fe(Rl, { id: q.range ? void 0 : d(N), ref_key: "firstButton", ref: u, "model-value": d(B), vertical: q.vertical, "tooltip-class": q.tooltipClass, placement: q.placement, role: "slider", "aria-label": q.range || !d(H) ? d(E) : void 0, "aria-labelledby": !q.range && d(H) ? (Ee = d(l)) == null ? void 0 : Ee.labelId : void 0, "aria-valuemin": q.min, "aria-valuemax": q.range ? d(J) : q.max, "aria-valuenow": d(B), "aria-valuetext": d(A), "aria-orientation": q.vertical ? "vertical" : "horizontal", "aria-disabled": d(c), "onUpdate:modelValue": d(O) }, null, 8, ["id", "model-value", "vertical", "tooltip-class", "placement", "aria-label", "aria-labelledby", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-orientation", "aria-disabled", "onUpdate:modelValue"]), q.range ? (j(), Y(Rl, { key: 0, ref_key: "secondButton", ref: p, "model-value": d(J), vertical: q.vertical, "tooltip-class": q.tooltipClass, placement: q.placement, role: "slider", "aria-label": d(R), "aria-valuemin": d(B), "aria-valuemax": q.max, "aria-valuenow": d(J), "aria-valuetext": d(ee), "aria-orientation": q.vertical ? "vertical" : "horizontal", "aria-disabled": d(c), "onUpdate:modelValue": d(I) }, null, 8, ["model-value", "vertical", "tooltip-class", "placement", "aria-label", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-orientation", "aria-disabled", "onUpdate:modelValue"])) : W("v-if", !0), q.showStops ? (j(), L("div", { key: 1 }, [ (j(!0), L(qe, null, on(d(F), (ue, ge) => (j(), L("div", { key: ge, class: z(d(o).e("stop")), style: Te(d(C)(ue)) }, null, 6))), 128)) ])) : W("v-if", !0), d(M).length > 0 ? (j(), L(qe, { key: 2 }, [ Z("div", null, [ (j(!0), L(qe, null, on(d(M), (ue, ge) => (j(), L("div", { key: ge, style: Te(d(C)(ue.position)), class: z([d(o).e("stop"), d(o).e("marks-stop")]) }, null, 6))), 128)) ]), Z("div", { class: z(d(o).e("marks")) }, [ (j(!0), L(qe, null, on(d(M), (ue, ge) => (j(), Y(d(Vb), { key: ge, mark: ue.mark, style: Te(d(C)(ue.position)), onMousedown: Re((Fe) => d(x)(ue.position), ["stop"]) }, null, 8, ["mark", "style", "onMousedown"]))), 128)) ], 2) ], 64)) : W("v-if", !0) ], 46, ["onMousedown", "onTouchstartPassive"]), q.showInput && !q.range ? (j(), Y(d(Xa), { key: 0, ref: "input", "model-value": d(B), class: z(d(o).e("input")), step: q.step, disabled: d(c), controls: q.showInputControls, min: q.min, max: q.max, precision: d(D), debounce: q.debounce, size: d(U), "onUpdate:modelValue": d(O), onChange: d(y) }, null, 8, ["model-value", "class", "step", "disabled", "controls", "min", "max", "precision", "debounce", "size", "onUpdate:modelValue", "onChange"])) : W("v-if", !0) ], 10, ["id", "role", "aria-label", "aria-labelledby"]); }; } }); var Pb = /* @__PURE__ */ Oe(Tb, [["__file", "slider.vue"]]); const zu = st(Pb); function Rb(e) { let t; const n = P(!1), r = vt({ ...e, originalPosition: "", originalOverflow: "", visible: !1 }); function o(f) { r.text = f; } function a() { const f = r.parent, v = c.ns; if (!f.vLoadingAddClassList) { let m = f.getAttribute("loading-number"); m = Number.parseInt(m) - 1, m ? f.setAttribute("loading-number", m.toString()) : (Xr(f, v.bm("parent", "relative")), f.removeAttribute("loading-number")), Xr(f, v.bm("parent", "hidden")); } i(), p.unmount(); } function i() { var f, v; (v = (f = c.$el) == null ? void 0 : f.parentNode) == null || v.removeChild(c.$el); } function l() { var f; e.beforeClose && !e.beforeClose() || (n.value = !0, clearTimeout(t), t = setTimeout(s, 400), r.visible = !1, (f = e.closed) == null || f.call(e)); } function s() { if (!n.value) return; const f = r.parent; n.value = !1, f.vLoadingAddClassList = void 0, a(); } const u = K({ name: "ElLoading", setup(f, { expose: v }) { const { ns: m, zIndex: h } = _0("loading"); return v({ ns: m, zIndex: h }), () => { const w = r.spinner || r.svg, y = Rn("svg", { class: "circular", viewBox: r.svgViewBox ? r.svgViewBox : "0 0 50 50", ...w ? { innerHTML: w } : {} }, [ Rn("circle", { class: "path", cx: "25", cy: "25", r: "20", fill: "none" }) ]), b = r.text ? Rn("p", { class: m.b("text") }, [r.text]) : void 0; return Rn(so, { name: m.b("fade"), onAfterLeave: s }, { default: X(() => [ He(fe("div", { style: { backgroundColor: r.background || "" }, class: [ m.b("mask"), r.customClass, r.fullscreen ? "is-fullscreen" : "" ] }, [ Rn("div", { class: m.b("spinner") }, [y, b]) ]), [[$t, r.visible]]) ]) }); }; } }), p = lp(u), c = p.mount(document.createElement("div")); return { ...On(r), setText: o, removeElLoadingChild: i, close: l, handleAfterLeave: s, vm: c, get $el() { return c.$el; } }; } let Lr; const ca = function(e = {}) { if (!Ve) return; const t = zb(e); if (t.fullscreen && Lr) return Lr; const n = Rb({ ...t, closed: () => { var o; (o = t.closed) == null || o.call(t), t.fullscreen && (Lr = void 0); } }); Nb(t, t.parent, n), zl(t, t.parent, n), t.parent.vLoadingAddClassList = () => zl(t, t.parent, n); let r = t.parent.getAttribute("loading-number"); return r ? r = `${Number.parseInt(r) + 1}` : r = "1", t.parent.setAttribute("loading-number", r), t.parent.appendChild(n.$el), Ae(() => n.visible.value = t.visible), t.fullscreen && (Lr = n), n; }, zb = (e) => { var t, n, r, o; let a; return Xe(e.target) ? a = (t = document.querySelector(e.target)) != null ? t : document.body : a = e.target || document.body, { parent: a === document.body || e.body ? document.body : a, background: e.background || "", svg: e.svg || "", svgViewBox: e.svgViewBox || "", spinner: e.spinner || !1, text: e.text || "", fullscreen: a === document.body && ((n = e.fullscreen) != null ? n : !0), lock: (r = e.lock) != null ? r : !1, customClass: e.customClass || "", visible: (o = e.visible) != null ? o : !0, beforeClose: e.beforeClose, closed: e.closed, target: a }; }, Nb = async (e, t, n) => { const { nextZIndex: r } = n.vm.zIndex || n.vm._.exposed.zIndex, o = {}; if (e.fullscreen) n.originalPosition.value = ur(document.body, "position"), n.originalOverflow.value = ur(document.body, "overflow"), o.zIndex = r(); else if (e.parent === document.body) { n.originalPosition.value = ur(document.body, "position"), await Ae(); for (const a of ["top", "left"]) { const i = a === "top" ? "scrollTop" : "scrollLeft"; o[a] = `${e.target.getBoundingClientRect()[a] + document.body[i] + document.documentElement[i] - Number.parseInt(ur(document.body, `margin-${a}`), 10)}px`; } for (const a of ["height", "width"]) o[a] = `${e.target.getBoundingClientRect()[a]}px`; } else n.originalPosition.value = ur(t, "position"); for (const [a, i] of Object.entries(o)) n.$el.style[a] = i; }, zl = (e, t, n) => { const r = n.vm.ns || n.vm._.exposed.ns; ["absolute", "fixed", "sticky"].includes(n.originalPosition.value) ? Xr(t, r.bm("parent", "relative")) : nl(t, r.bm("parent", "relative")), e.fullscreen && e.lock ? nl(t, r.bm("parent", "hidden")) : Xr(t, r.bm("parent", "hidden")); }, Kr = Symbol("ElLoading"), Nl = (e, t) => { var n, r, o, a; const i = t.instance, l = (f) => We(t.value) ? t.value[f] : void 0, s = (f) => { const v = Xe(f) && (i == null ? void 0 : i[f]) || f; return v && P(v); }, u = (f) => s(l(f) || e.getAttribute(`element-loading-${Mp(f)}`)), p = (n = l("fullscreen")) != null ? n : t.modifiers.fullscreen, c = { text: u("text"), svg: u("svg"), svgViewBox: u("svgViewBox"), spinner: u("spinner"), background: u("background"), customClass: u("customClass"), fullscreen: p, target: (r = l("target")) != null ? r : p ? void 0 : e, body: (o = l("body")) != null ? o : t.modifiers.body, lock: (a = l("lock")) != null ? a : t.modifiers.lock }; e[Kr] = { options: c, instance: ca(c) }; }, $b = (e, t) => { for (const n of Object.keys(t)) bs(t[n]) && (t[n].value = e[n]); }, pa = { mounted(e, t) { t.value && Nl(e, t); }, updated(e, t) { const n = e[Kr]; t.oldValue !== t.value && (t.value && !t.oldValue ? Nl(e, t) : t.value && t.oldValue ? We(t.value) && $b(t.value, n.options) : n == null || n.instance.close()); }, unmounted(e) { var t; (t = e[Kr]) == null || t.instance.close(), e[Kr] = null; } }, Lb = { install(e) { e.directive("loading", pa), e.config.globalProperties.$loading = ca; }, directive: pa, service: ca }, Nu = "simcore/services/comp/opencor"; function $u(e, t, n) { if (t !== void 0) { let r = new RegExp(`\\b${t}\\b`, "g"); e = e.replace(r, n); } return e; } function da(e, t) { let n = -1; return e.simulationUiInfo.input.forEach((r) => { ++n, t = $u(t, r.id, e.$refs.simInput[n].vModel); }), Function("return " + t + ";")(); } function $l(e, t, n, r) { return e.simulationUiInfo.output.data.forEach((o) => { n = $u(n, o.id, t[e.simulationDataId[o.id]][r]); }), Function("return " + n + ";")(); } function Bb(e) { e.simulationUiInfo.output.data.forEach((n) => { e.simulationDataId[n.id] = n.name; }); let t = -1; e.simulationUiInfo.output.plots.forEach((n) => { ++t, e.layout[t] = { paper_bgcolor: "rgba(0, 0, 0, 0)", plot_bgcolor: "rgba(0, 0, 0, 0)", autosize: !0, margin: { t: 25, l: 55, r: 25, b: 30, pad: 4 }, loading: !1, options: { responsive: !0, scrollZoom: !0 }, dragmode: "pan", xaxis: { title: { text: n.xAxisTitle, font: { size: 10 } } }, yaxis: { title: { text: n.yAxisTitle, font: { size: 10 } } } }, e.simulationData[t] = [{}]; }); } function Ll(e) { !e.hasFinalisedUi && e.isMounted && e.hasValidSimulationUiInfo && (e.$refs.output.classList.add("x" + e.simulationUiInfo.output.plots.length), Lu(e), e.hasFinalisedUi = !0); } function Lu(e) { e.$nextTick(() => { let t = -1; e.simulationUiInfo.input.forEach((n) => { ++t, e.$refs.simInput[t].visible = n.visible === void 0 ? !0 : da(e, n.visible); }); }); } const Bu = (e, t) => { const n = e.__vccOpts || e; for (const [r, o] of t) n[r] = o; return n; }, Db = { name: "SimulationVuerInput", components: { ElInputNumber: Xa, ElOption: Pu, ElSelect: Tu, ElSlider: zu }, props: { defaultValue: { required: !0, type: Number }, maximumValue: { type: Number }, minimumValue: { type: Number }, name: { required: !0, type: String }, possibleValues: { type: Array }, stepValue: { type: Number } }, data: function() { return { isDiscrete: this.possibleValues !== void 0, labelClasses: "default " + (this.possibleValues !== void 0 ? "discrete" : "scalar"), visible: !0, vModel: this.defaultValue }; }, methods: { updateUi: function() { Lu(this.$parent); } } }, Ub = { key: 1, class: "sliders-and-fields" }; function qb(e, t, n, r, o, a) { const i = Pu, l = Tu, s = zu, u = Xa; return He((j(), L("div", null, [ Z("p", { class: z(e.labelClasses) }, ze(n.name), 3), e.isDiscrete ? (j(), Y(l, { key: 0, class: "discrete", "popper-class": "discrete-popper", size: "small", modelValue: e.vModel, "onUpdate:modelValue": t[0] || (t[0] = (p) => e.vModel = p), teleported: !1, onChange: t[1] || (t[1] = (p) => a.updateUi()) }, { default: X(() => [ (j(!0), L(qe, null, on(n.possibleValues, (p) => (j(), Y(i, { key: p.value, label: p.name, value: p.value }, null, 8, ["label", "value"]))), 128)) ]), _: 1 }, 8, ["modelValue"])) : W("", !0), e.isDiscrete ? W("", !0) : (j(), L("div", Ub, [ fe(s, { modelValue: e.vModel, "onUpdate:modelValue": t[2] || (t[2] = (p) => e.vModel = p), max: n.maximumValue, min: n.minimumValue, "show-input": !1, "show-tooltip": !1, step: n.stepValue, onChange: t[3] || (t[3] = (p) => a.updateUi()) }, null, 8, ["modelValue", "max", "min", "step"]), fe(u, { class: "scalar", size: "small", modelValue: e.vModel, "onUpdate:modelValue": t[4] || (t[4] = (p) => e.vModel = p), controls: !1, max: n.maximumValue, min: n.minimumValue, step: n.stepValue, "step-strictly": !0, onInput: t[5] || (t[5] = (p) => a.updateUi()) }, null, 8, ["modelValue", "max", "min", "step"]) ])) ], 512)), [ [$t, e.visible] ]); } const Du = /* @__PURE__ */ Bu(Db, [["render", qb], ["__scopeId", "data-v-7ce06b79"]]); var sn = {}, ro = { exports: {} }; /*! https://mths.be/punycode v1.4.1 by @mathias */ ro.exports; (function(e, t) { (function(n) { var r = t && !t.nodeType && t, o = e && !e.nodeType && e, a = typeof Zr == "object" && Zr; (a.global === a || a.window === a || a.self === a) && (n = a); var i, l = 2147483647, s = 36, u = 1, p = 26, c = 38, f = 700, v = 72, m = 128, h = "-", w = /^xn--/, y = /[^\x20-\x7E]/, b = /[\x2E\u3002\uFF0E\uFF61]/g, k = { overflow: "Overflow: input needs wider integers to process", "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": "Invalid input" }, _ = s - u, x = Math.floor, O = String.fromCharCode, I; function F(M) { throw new RangeError(k[M]); } function C(M, D) { for (var T = M.length, B = []; T--; ) B[T] = D(M[T]); return B; } function N(M, D) { var T = M.split("@"), B = ""; T.length > 1 && (B = T[0] + "@", M = T[1]), M = M.replace(b, "."); var J = M.split("."), le = C(J, D).join("."); return B + le; } function H(M) { for (var D = [], T = 0, B = M.length, J, le; T < B; ) J = M.charCodeAt(T++), J >= 55296 && J <= 56319 && T < B ? (le = M.charCodeAt(T++), (le & 64512) == 56320 ? D.push(((J & 1023) << 10) + (le & 1023) + 65536) : (D.push(J), T--)) : D.push(J); return D; } function Q(M) { return C(M, function(D) { var T = ""; return D > 65535 && (D -= 65536, T += O(D >>> 10 & 1023 | 55296), D = 56320 | D & 1023), T += O(D), T; }).join(""); } function U(M) { return M - 48 < 10 ? M - 22 : M - 65 < 26 ? M - 65 : M - 97 < 26 ? M - 97 : s; } function re(M, D) { return M + 22 + 75 * (M < 26) - ((D != 0) << 5); } function E(M, D, T) { var B = 0; for (M = T ? x(M / f) : M >> 1, M += x(M / D); M > _ * p >> 1; B += s) M = x(M / _); return x(B + (_ + 1) * M / (M + c)); } function A(M) { var D = [], T = M.length, B, J = 0, le = m, oe = v, q, ye, ve, Ee, ue, ge, Fe, De, Ke; for (q = M.lastIndexOf(h), q < 0 && (q = 0), ye = 0; ye < q; ++ye) M.charCodeAt(ye) >= 128 && F("not-basic"), D.push(M.charCodeAt(ye)); for (ve = q > 0 ? q + 1 : 0; ve < T; ) { for (Ee = J, ue = 1, ge = s; ve >= T && F("invalid-input"), Fe = U(M.charCodeAt(ve++)), (Fe >= s || Fe > x((l - J) / ue)) && F("overflow"), J += Fe * ue, De = ge <= oe ? u : ge >= oe + p ? p : ge - oe, !(Fe < De); ge += s) Ke = s - De, ue > x(l / Ke) && F("overflow"), ue *= Ke; B = D.length + 1, oe = E(J - Ee, B, Ee == 0), x(J / B) > l - le && F("overflow"), le += x(J / B), J %= B, D.splice(J++, 0, le); } return Q(D); } function R(M) { var D, T, B, J, le, oe, q, ye, ve, Ee, ue, ge = [], Fe, De, Ke, Ye; for (M = H(M), Fe = M.length, D = m, T = 0, le = v, oe = 0; oe < Fe; ++oe) ue = M[oe], ue < 128 && ge.push(O(ue)); for (B = J = ge.length, J && ge.push(h); B < Fe; ) { for (q = l, oe = 0; oe < Fe; ++oe) ue = M[oe], ue >= D && ue < q && (q = ue); for (De = B + 1, q - D > x((l - T) / De) && F("overflow"), T += (q - D) * De, D = q, oe = 0; oe < Fe; ++oe) if (ue = M[oe], ue < D && ++T > l && F("overflow"), ue == D) { for (ye = T, ve = s; Ee = ve <= le ? u : ve >= le + p ? p : ve - le, !(ye < Ee); ve += s) Ye = ye - Ee, Ke = s - Ee, ge.push( O(re(Ee + Ye % Ke, 0)) ), ye = x(Ye / Ke); ge.push(O(re(ye, 0))), le = E(T, De, B == J), T = 0, ++B; } ++T, ++D; } return ge.join(""); } function ee(M) { return N(M, function(D) { return w.test(D) ? A(D.slice(4).toLowerCase()) : D; }); } function G(M) { return N(M, function(D) { return y.test(D) ? "xn--" + R(D) : D; }); } if (i = { /** * A string representing the current Punycode.js version number. * @memberOf punycode * @type String */ version: "1.4.1", /** * An object of methods to convert from JavaScript's internal character * representation (UCS-2) to Unicode code points, and back. * @see * @memberOf punycode * @type Object */ ucs2: { decode: H, encode: Q }, decode: A, encode: R, toASCII: G, toUnicode: ee }, r && o) if (e.exports == r) o.exports = i; else for (I in i) i.hasOwnProperty(I) && (r[I] = i[I]); else n.punycode = i; })(Zr); })(ro, ro.exports); var Hb = ro.exports, Zb = Error, Kb = EvalError, Wb = RangeError, Jb = ReferenceError, Uu = SyntaxError, jr = TypeError, Gb = URIError, Yb = function() { if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function") return !1; if (typeof Symbol.iterator == "symbol") return !0; var e = {}, t = Symbol("test"), n = Object(t); if (typeof t == "string" || Object.prototype.toString.call(t) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]") return !1; var r = 42; e[t] = r; for (t in e) return !1; if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0) return !1; var o = Object.getOwnPropertySymbols(e); if (o.length !== 1 || o[0] !== t || !Object.prototype.propertyIsEnumerable.call(e, t)) return !1; if (typeof Object.getOwnPropertyDescriptor == "function") { var a = Object.getOwnPropertyDescriptor(e, t); if (a.value !== r || a.enumerable !== !0) return !1; } return !0; }, Bl = typeof Symbol < "u" && Symbol, Qb = Yb, Xb = function() { return typeof Bl != "function" || typeof Symbol != "function" || typeof Bl("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Qb(); }, No = { __proto__: null, foo: {} }, e1 = Object, t1 = function() { return { __proto__: No }.foo === No.foo && !(No instanceof e1); }, n1 = "Function.prototype.bind called on incompatible ", r1 = Object.prototype.toString, o1 = Math.max, a1 = "[object Function]", Dl = function(e, t) { for (var n = [], r = 0; r < e.length; r += 1) n[r] = e[r]; for (var o = 0; o < t.length; o += 1) n[o + e.length] = t[o]; return n; }, i1 = function(e, t) { for (var n = [], r = t, o = 0; r < e.length; r += 1, o += 1) n[o] = e[r]; return n; }, l1 = function(e, t) { for (var n = "", r = 0; r < e.length; r += 1) n += e[r], r + 1 < e.length && (n += t); return n; }, s1 = function(e) { var t = this; if (typeof t != "function" || r1.apply(t) !== a1) throw new TypeError(n1 + t); for (var n = i1(arguments, 1), r, o = function() { if (this instanceof r) { var u = t.apply( this, Dl(n, arguments) ); return Object(u) === u ? u : this; } return t.apply( e, Dl(n, arguments) ); }, a = o1(0, t.length - n.length), i = [], l = 0; l < a; l++) i[l] = "$" + l; if (r = Function("binder", "return function (" + l1(i, ",") + "){ return binder.apply(this,arguments); }")(o), t.prototype) { var s = function() { }; s.prototype = t.prototype, r.prototype = new s(), s.prototype = null; } return r; }, u1 = s1, ti = Function.prototype.bind || u1, c1 = Function.prototype.call, p1 = Object.prototype.hasOwnProperty, d1 = ti, f1 = d1.call(c1, p1), se, m1 = Zb, v1 = Kb, h1 = Wb, y1 = Jb, Yn = Uu, Ln = jr, g1 = Gb, qu = Function, $o = function(e) { try { return qu('"use strict"; return (' + e + ").constructor;")(); } catch { } }, xn = Object.getOwnPropertyDescriptor; if (xn) try { xn({}, ""); } catch { xn = null; } var Lo = function() { throw new Ln(); }, b1 = xn ? function() { try { return arguments.callee, Lo; } catch { try { return xn(arguments, "callee").get; } catch { return Lo; } } }() : Lo, Tn = Xb(), w1 = t1(), Me = Object.getPrototypeOf || (w1 ? function(e) { return e.__proto__; } : null), Nn = {}, x1 = typeof Uint8Array > "u" || !Me ? se : Me(Uint8Array), Sn = { __proto__: null, "%AggregateError%": typeof AggregateError > "u" ? se : AggregateError, "%Array%": Array, "%ArrayBuffer%": typeof ArrayBuffer > "u" ? se : ArrayBuffer, "%ArrayIteratorPrototype%": Tn && Me ? Me([][Symbol.iterator]()) : se, "%AsyncFromSyncIteratorPrototype%": se, "%AsyncFunction%": Nn, "%AsyncGenerator%": Nn, "%AsyncGeneratorFunction%": Nn, "%AsyncIteratorPrototype%": Nn, "%Atomics%": typeof Atomics > "u" ? se : Atomics, "%BigInt%": typeof BigInt > "u" ? se : BigInt, "%BigInt64Array%": typeof BigInt64Array > "u" ? se : BigInt64Array, "%BigUint64Array%": typeof BigUint64Array > "u" ? se : BigUint64Array, "%Boolean%": Boolean, "%DataView%": typeof DataView > "u" ? se : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": m1, "%eval%": eval, // eslint-disable-line no-eval "%EvalError%": v1, "%Float32Array%": typeof Float32Array > "u" ? se : Float32Array, "%Float64Array%": typeof Float64Array > "u" ? se : Float64Array, "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? se : FinalizationRegistry, "%Function%": qu, "%GeneratorFunction%": Nn, "%Int8Array%": typeof Int8Array > "u" ? se : Int8Array, "%Int16Array%": typeof Int16Array > "u" ? se : Int16Array, "%Int32Array%": typeof Int32Array > "u" ? se : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": Tn && Me ? Me(Me([][Symbol.iterator]())) : se, "%JSON%": typeof JSON == "object" ? JSON : se, "%Map%": typeof Map > "u" ? se : Map, "%MapIteratorPrototype%": typeof Map > "u" || !Tn || !Me ? se : Me((/* @__PURE__ */ new Map())[Symbol.iterator]()), "%Math%": Math, "%Number%": Number, "%Object%": Object, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": typeof Promise > "u" ? se : Promise, "%Proxy%": typeof Proxy > "u" ? se : Proxy, "%RangeError%": h1, "%ReferenceError%": y1, "%Reflect%": typeof Reflect > "u" ? se : Reflect, "%RegExp%": RegExp, "%Set%": typeof Set > "u" ? se : Set, "%SetIteratorPrototype%": typeof Set > "u" || !Tn || !Me ? se : Me((/* @__PURE__ */ new Set())[Symbol.iterator]()), "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? se : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": Tn && Me ? Me(""[Symbol.iterator]()) : se, "%Symbol%": Tn ? Symbol : se, "%SyntaxError%": Yn, "%ThrowTypeError%": b1, "%TypedArray%": x1, "%TypeError%": Ln, "%Uint8Array%": typeof Uint8Array > "u" ? se : Uint8Array, "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? se : Uint8ClampedArray, "%Uint16Array%": typeof Uint16Array > "u" ? se : Uint16Array, "%Uint32Array%": typeof Uint32Array > "u" ? se : Uint32Array, "%URIError%": g1, "%WeakMap%": typeof WeakMap > "u" ? se : WeakMap, "%WeakRef%": typeof WeakRef > "u" ? se : WeakRef, "%WeakSet%": typeof WeakSet > "u" ? se : WeakSet }; if (Me) try { null.error; } catch (e) { var S1 = Me(Me(e)); Sn["%Error.prototype%"] = S1; } var O1 = function e(t) { var n; if (t === "%AsyncFunction%") n = $o("async function () {}"); else if (t === "%GeneratorFunction%") n = $o("function* () {}"); else if (t === "%AsyncGeneratorFunction%") n = $o("async function* () {}"); else if (t === "%AsyncGenerator%") { var r = e("%AsyncGeneratorFunction%"); r && (n = r.prototype); } else if (t === "%AsyncIteratorPrototype%") { var o = e("%AsyncGenerator%"); o && Me && (n = Me(o.prototype)); } return Sn[t] = n, n; }, Ul = { __proto__: null, "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": ["Array", "prototype", "entries"], "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], "%ArrayProto_keys%": ["Array", "prototype", "keys"], "%ArrayProto_values%": ["Array", "prototype", "values"], "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": ["DataView", "prototype"], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": ["EvalError", "prototype"], "%Float32ArrayPrototype%": ["Float32Array", "prototype"], "%Float64ArrayPrototype%": ["Float64Array", "prototype"], "%FunctionPrototype%": ["Function", "prototype"], "%Generator%": ["GeneratorFunction", "prototype"], "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], "%Int8ArrayPrototype%": ["Int8Array", "prototype"], "%Int16ArrayPrototype%": ["Int16Array", "prototype"], "%Int32ArrayPrototype%": ["Int32Array", "prototype"], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": ["Object", "prototype", "toString"], "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": ["Promise", "prototype", "then"], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": ["RangeError", "prototype"], "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], "%TypedArrayPrototype%": ["TypedArray", "prototype"], "%TypeErrorPrototype%": ["TypeError", "prototype"], "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], "%URIErrorPrototype%": ["URIError", "prototype"], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"] }, Fr = ti, oo = f1, A1 = Fr.call(Function.call, Array.prototype.concat), E1 = Fr.call(Function.apply, Array.prototype.splice), ql = Fr.call(Function.call, String.prototype.replace), ao = Fr.call(Function.call, String.prototype.slice), k1 = Fr.call(Function.call, RegExp.prototype.exec), _1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, j1 = /\\(\\)?/g, F1 = function(e) { var t = ao(e, 0, 1), n = ao(e, -1); if (t === "%" && n !== "%") throw new Yn("invalid intrinsic syntax, expected closing `%`"); if (n === "%" && t !== "%") throw new Yn("invalid intrinsic syntax, expected opening `%`"); var r = []; return ql(e, _1, function(o, a, i, l) { r[r.length] = i ? ql(l, j1, "$1") : a || o; }), r; }, C1 = function(e, t) { var n = e, r; if (oo(Ul, n) && (r = Ul[n], n = "%" + r[0] + "%"), oo(Sn, n)) { var o = Sn[n]; if (o === Nn && (o = O1(n)), typeof o > "u" && !t) throw new Ln("intrinsic " + e + " exists, but is not available. Please file an issue!"); return { alias: r, name: n, value: o }; } throw new Yn("intrinsic " + e + " does not exist!"); }, or = function(e, t) { if (typeof e != "string" || e.length === 0) throw new Ln("intrinsic name must be a non-empty string"); if (arguments.length > 1 && typeof t != "boolean") throw new Ln('"allowMissing" argument must be a boolean'); if (k1(/^%?[^%]*%?$/, e) === null) throw new Yn("`%` may not be present anywhere but at the beginning and end of the intrinsic name"); var n = F1(e), r = n.length > 0 ? n[0] : "", o = C1("%" + r + "%", t), a = o.name, i = o.value, l = !1, s = o.alias; s && (r = s[0], E1(n, A1([0, 1], s))); for (var u = 1, p = !0; u < n.length; u += 1) { var c = n[u], f = ao(c, 0, 1), v = ao(c, -1); if ((f === '"' || f === "'" || f === "`" || v === '"' || v === "'" || v === "`") && f !== v) throw new Yn("property names with quotes must have matching quotes"); if ((c === "constructor" || !p) && (l = !0), r += "." + c, a = "%" + r + "%", oo(Sn, a)) i = Sn[a]; else if (i != null) { if (!(c in i)) { if (!t) throw new Ln("base intrinsic for " + e + " exists, but the property is not available."); return; } if (xn && u + 1 >= n.length) { var m = xn(i, c); p = !!m, p && "get" in m && !("originalValue" in m.get) ? i = m.get : i = i[c]; } else p = oo(i, c), i = i[c]; p && !l && (Sn[a] = i); } } return i; }, Hu = { exports: {} }, Bo, Hl; function ni() { if (Hl) return Bo; Hl = 1; var e = or, t = e("%Object.defineProperty%", !0) || !1; if (t) try { t({}, "a", { value: 1 }); } catch { t = !1; } return Bo = t, Bo; } var I1 = or, Wr = I1("%Object.getOwnPropertyDescriptor%", !0); if (Wr) try { Wr([], "length"); } catch { Wr = null; } var Zu = Wr, Zl = ni(), V1 = Uu, Pn = jr, Kl = Zu, M1 = function(e, t, n) { if (!e || typeof e != "object" && typeof e != "function") throw new Pn("`obj` must be an object or a function`"); if (typeof t != "string" && typeof t != "symbol") throw new Pn("`property` must be a string or a symbol`"); if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null) throw new Pn("`nonEnumerable`, if provided, must be a boolean or null"); if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null) throw new Pn("`nonWritable`, if provided, must be a boolean or null"); if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null) throw new Pn("`nonConfigurable`, if provided, must be a boolean or null"); if (arguments.length > 6 && typeof arguments[6] != "boolean") throw new Pn("`loose`, if provided, must be a boolean"); var r = arguments.length > 3 ? arguments[3] : null, o = arguments.length > 4 ? arguments[4] : null, a = arguments.length > 5 ? arguments[5] : null, i = arguments.length > 6 ? arguments[6] : !1, l = !!Kl && Kl(e, t); if (Zl) Zl(e, t, { configurable: a === null && l ? l.configurable : !a, enumerable: r === null && l ? l.enumerable : !r, value: n, writable: o === null && l ? l.writable : !o }); else if (i || !r && !o && !a) e[t] = n; else throw new V1("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable."); }, fa = ni(), Ku = function() { return !!fa; }; Ku.hasArrayLengthDefineBug = function() { if (!fa) return null; try { return fa([], "length", { value: 1 }).length !== 1; } catch { return !0; } }; var T1 = Ku, P1 = or, Wl = M1, R1 = T1(), Jl = Zu, Gl = jr, z1 = P1("%Math.floor%"), N1 = function(e, t) { if (typeof e != "function") throw new Gl("`fn` is not a function"); if (typeof t != "number" || t < 0 || t > 4294967295 || z1(t) !== t) throw new Gl("`length` must be a positive 32-bit integer"); var n = arguments.length > 2 && !!arguments[2], r = !0, o = !0; if ("length" in e && Jl) { var a = Jl(e, "length"); a && !a.configurable && (r = !1), a && !a.writable && (o = !1); } return (r || o || !n) && (R1 ? Wl( /** @type {Parameters[0]} */ e, "length", t, !0, !0 ) : Wl( /** @type {Parameters[0]} */ e, "length", t )), e; }; (function(e) { var t = ti, n = or, r = N1, o = jr, a = n("%Function.prototype.apply%"), i = n("%Function.prototype.call%"), l = n("%Reflect.apply%", !0) || t.call(i, a), s = ni(), u = n("%Math.max%"); e.exports = function(c) { if (typeof c != "function") throw new o("a function is required"); var f = l(t, i, arguments); return r( f, 1 + u(0, c.length - (arguments.length - 1)), !0 ); }; var p = function() { return l(t, a, arguments); }; s ? s(e.exports, "apply", { value: p }) : e.exports.apply = p; })(Hu); var $1 = Hu.exports, Wu = or, Ju = $1, L1 = Ju(Wu("String.prototype.indexOf")), B1 = function(e, t) { var n = Wu(e, !!t); return typeof n == "function" && L1(e, ".prototype.") > -1 ? Ju(n) : n; }; const D1 = {}, U1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: D1 }, Symbol.toStringTag, { value: "Module" })), q1 = /* @__PURE__ */ Ig(U1); var ri = typeof Map == "function" && Map.prototype, Do = Object.getOwnPropertyDescriptor && ri ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, io = ri && Do && typeof Do.get == "function" ? Do.get : null, Yl = ri && Map.prototype.forEach, oi = typeof Set == "function" && Set.prototype, Uo = Object.getOwnPropertyDescriptor && oi ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, lo = oi && Uo && typeof Uo.get == "function" ? Uo.get : null, Ql = oi && Set.prototype.forEach, H1 = typeof WeakMap == "function" && WeakMap.prototype, vr = H1 ? WeakMap.prototype.has : null, Z1 = typeof WeakSet == "function" && WeakSet.prototype, hr = Z1 ? WeakSet.prototype.has : null, K1 = typeof WeakRef == "function" && WeakRef.prototype, Xl = K1 ? WeakRef.prototype.deref : null, W1 = Boolean.prototype.valueOf, J1 = Object.prototype.toString, G1 = Function.prototype.toString, Y1 = String.prototype.match, ai = String.prototype.slice, nn = String.prototype.replace, Q1 = String.prototype.toUpperCase, es = String.prototype.toLowerCase, Gu = RegExp.prototype.test, ts = Array.prototype.concat, wt = Array.prototype.join, X1 = Array.prototype.slice, ns = Math.floor, ma = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, qo = Object.getOwnPropertySymbols, va = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, Qn = typeof Symbol == "function" && typeof Symbol.iterator == "object", Be = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Qn || !0) ? Symbol.toStringTag : null, Yu = Object.prototype.propertyIsEnumerable, rs = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(e) { return e.__proto__; } : null); function os(e, t) { if (e === 1 / 0 || e === -1 / 0 || e !== e || e && e > -1e3 && e < 1e3 || Gu.call(/e/, t)) return t; var n = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g; if (typeof e == "number") { var r = e < 0 ? -ns(-e) : ns(e); if (r !== e) { var o = String(r), a = ai.call(t, o.length + 1); return nn.call(o, n, "$&_") + "." + nn.call(nn.call(a, /([0-9]{3})/g, "$&_"), /_$/, ""); } } return nn.call(t, n, "$&_"); } var ha = q1, as = ha.custom, is = Xu(as) ? as : null, ew = function e(t, n, r, o) { var a = n || {}; if (Xt(a, "quoteStyle") && a.quoteStyle !== "single" && a.quoteStyle !== "double") throw new TypeError('option "quoteStyle" must be "single" or "double"'); if (Xt(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null)) throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`'); var i = Xt(a, "customInspect") ? a.customInspect : !0; if (typeof i != "boolean" && i !== "symbol") throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`"); if (Xt(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0)) throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`'); if (Xt(a, "numericSeparator") && typeof a.numericSeparator != "boolean") throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`'); var l = a.numericSeparator; if (typeof t > "u") return "undefined"; if (t === null) return "null"; if (typeof t == "boolean") return t ? "true" : "false"; if (typeof t == "string") return tc(t, a); if (typeof t == "number") { if (t === 0) return 1 / 0 / t > 0 ? "0" : "-0"; var s = String(t); return l ? os(t, s) : s; } if (typeof t == "bigint") { var u = String(t) + "n"; return l ? os(t, u) : u; } var p = typeof a.depth > "u" ? 5 : a.depth; if (typeof r > "u" && (r = 0), r >= p && p > 0 && typeof t == "object") return ya(t) ? "[Array]" : "[Object]"; var c = gw(a, r); if (typeof o > "u") o = []; else if (ec(o, t) >= 0) return "[Circular]"; function f(U, re, E) { if (re && (o = X1.call(o), o.push(re)), E) { var A = { depth: a.depth }; return Xt(a, "quoteStyle") && (A.quoteStyle = a.quoteStyle), e(U, A, r + 1, o); } return e(U, a, r + 1, o); } if (typeof t == "function" && !ls(t)) { var v = uw(t), m = Br(t, f); return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (m.length > 0 ? " { " + wt.call(m, ", ") + " }" : ""); } if (Xu(t)) { var h = Qn ? nn.call(String(t), /^(Symbol\(.*\))_[^)]*$/, "$1") : va.call(t); return typeof t == "object" && !Qn ? pr(h) : h; } if (vw(t)) { for (var w = "<" + es.call(String(t.nodeName)), y = t.attributes || [], b = 0; b < y.length; b++) w += " " + y[b].name + "=" + Qu(tw(y[b].value), "double", a); return w += ">", t.childNodes && t.childNodes.length && (w += "..."), w += "", w; } if (ya(t)) { if (t.length === 0) return "[]"; var k = Br(t, f); return c && !yw(k) ? "[" + ga(k, c) + "]" : "[ " + wt.call(k, ", ") + " ]"; } if (rw(t)) { var _ = Br(t, f); return !("cause" in Error.prototype) && "cause" in t && !Yu.call(t, "cause") ? "{ [" + String(t) + "] " + wt.call(ts.call("[cause]: " + f(t.cause), _), ", ") + " }" : _.length === 0 ? "[" + String(t) + "]" : "{ [" + String(t) + "] " + wt.call(_, ", ") + " }"; } if (typeof t == "object" && i) { if (is && typeof t[is] == "function" && ha) return ha(t, { depth: p - r }); if (i !== "symbol" && typeof t.inspect == "function") return t.inspect(); } if (cw(t)) { var x = []; return Yl && Yl.call(t, function(U, re) { x.push(f(re, t, !0) + " => " + f(U, t)); }), ss("Map", io.call(t), x, c); } if (fw(t)) { var O = []; return Ql && Ql.call(t, function(U) { O.push(f(U, t)); }), ss("Set", lo.call(t), O, c); } if (pw(t)) return Ho("WeakMap"); if (mw(t)) return Ho("WeakSet"); if (dw(t)) return Ho("WeakRef"); if (aw(t)) return pr(f(Number(t))); if (lw(t)) return pr(f(ma.call(t))); if (iw(t)) return pr(W1.call(t)); if (ow(t)) return pr(f(String(t))); if (typeof window < "u" && t === window) return "{ [object Window] }"; if (t === Zr) return "{ [object globalThis] }"; if (!nw(t) && !ls(t)) { var I = Br(t, f), F = rs ? rs(t) === Object.prototype : t instanceof Object || t.constructor === Object, C = t instanceof Object ? "" : "null prototype", N = !F && Be && Object(t) === t && Be in t ? ai.call(un(t), 8, -1) : C ? "Object" : "", H = F || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", Q = H + (N || C ? "[" + wt.call(ts.call([], N || [], C || []), ": ") + "] " : ""); return I.length === 0 ? Q + "{}" : c ? Q + "{" + ga(I, c) + "}" : Q + "{ " + wt.call(I, ", ") + " }"; } return String(t); }; function Qu(e, t, n) { var r = (n.quoteStyle || t) === "double" ? '"' : "'"; return r + e + r; } function tw(e) { return nn.call(String(e), /"/g, """); } function ya(e) { return un(e) === "[object Array]" && (!Be || !(typeof e == "object" && Be in e)); } function nw(e) { return un(e) === "[object Date]" && (!Be || !(typeof e == "object" && Be in e)); } function ls(e) { return un(e) === "[object RegExp]" && (!Be || !(typeof e == "object" && Be in e)); } function rw(e) { return un(e) === "[object Error]" && (!Be || !(typeof e == "object" && Be in e)); } function ow(e) { return un(e) === "[object String]" && (!Be || !(typeof e == "object" && Be in e)); } function aw(e) { return un(e) === "[object Number]" && (!Be || !(typeof e == "object" && Be in e)); } function iw(e) { return un(e) === "[object Boolean]" && (!Be || !(typeof e == "object" && Be in e)); } function Xu(e) { if (Qn) return e && typeof e == "object" && e instanceof Symbol; if (typeof e == "symbol") return !0; if (!e || typeof e != "object" || !va) return !1; try { return va.call(e), !0; } catch { } return !1; } function lw(e) { if (!e || typeof e != "object" || !ma) return !1; try { return ma.call(e), !0; } catch { } return !1; } var sw = Object.prototype.hasOwnProperty || function(e) { return e in this; }; function Xt(e, t) { return sw.call(e, t); } function un(e) { return J1.call(e); } function uw(e) { if (e.name) return e.name; var t = Y1.call(G1.call(e), /^function\s*([\w$]+)/); return t ? t[1] : null; } function ec(e, t) { if (e.indexOf) return e.indexOf(t); for (var n = 0, r = e.length; n < r; n++) if (e[n] === t) return n; return -1; } function cw(e) { if (!io || !e || typeof e != "object") return !1; try { io.call(e); try { lo.call(e); } catch { return !0; } return e instanceof Map; } catch { } return !1; } function pw(e) { if (!vr || !e || typeof e != "object") return !1; try { vr.call(e, vr); try { hr.call(e, hr); } catch { return !0; } return e instanceof WeakMap; } catch { } return !1; } function dw(e) { if (!Xl || !e || typeof e != "object") return !1; try { return Xl.call(e), !0; } catch { } return !1; } function fw(e) { if (!lo || !e || typeof e != "object") return !1; try { lo.call(e); try { io.call(e); } catch { return !0; } return e instanceof Set; } catch { } return !1; } function mw(e) { if (!hr || !e || typeof e != "object") return !1; try { hr.call(e, hr); try { vr.call(e, vr); } catch { return !0; } return e instanceof WeakSet; } catch { } return !1; } function vw(e) { return !e || typeof e != "object" ? !1 : typeof HTMLElement < "u" && e instanceof HTMLElement ? !0 : typeof e.nodeName == "string" && typeof e.getAttribute == "function"; } function tc(e, t) { if (e.length > t.maxStringLength) { var n = e.length - t.maxStringLength, r = "... " + n + " more character" + (n > 1 ? "s" : ""); return tc(ai.call(e, 0, t.maxStringLength), t) + r; } var o = nn.call(nn.call(e, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, hw); return Qu(o, "single", t); } function hw(e) { var t = e.charCodeAt(0), n = { 8: "b", 9: "t", 10: "n", 12: "f", 13: "r" }[t]; return n ? "\\" + n : "\\x" + (t < 16 ? "0" : "") + Q1.call(t.toString(16)); } function pr(e) { return "Object(" + e + ")"; } function Ho(e) { return e + " { ? }"; } function ss(e, t, n, r) { var o = r ? ga(n, r) : wt.call(n, ", "); return e + " (" + t + ") {" + o + "}"; } function yw(e) { for (var t = 0; t < e.length; t++) if (ec(e[t], ` `) >= 0) return !1; return !0; } function gw(e, t) { var n; if (e.indent === " ") n = " "; else if (typeof e.indent == "number" && e.indent > 0) n = wt.call(Array(e.indent + 1), " "); else return null; return { base: n, prev: wt.call(Array(t + 1), n) }; } function ga(e, t) { if (e.length === 0) return ""; var n = ` ` + t.prev + t.base; return n + wt.call(e, "," + n) + ` ` + t.prev; } function Br(e, t) { var n = ya(e), r = []; if (n) { r.length = e.length; for (var o = 0; o < e.length; o++) r[o] = Xt(e, o) ? t(e[o], e) : ""; } var a = typeof qo == "function" ? qo(e) : [], i; if (Qn) { i = {}; for (var l = 0; l < a.length; l++) i["$" + a[l]] = a[l]; } for (var s in e) Xt(e, s) && (n && String(Number(s)) === s && s < e.length || Qn && i["$" + s] instanceof Symbol || (Gu.call(/[^\w$]/, s) ? r.push(t(s, e) + ": " + t(e[s], e)) : r.push(s + ": " + t(e[s], e)))); if (typeof qo == "function") for (var u = 0; u < a.length; u++) Yu.call(e, a[u]) && r.push("[" + t(a[u]) + "]: " + t(e[a[u]], e)); return r; } var nc = or, ar = B1, bw = ew, ww = jr, Dr = nc("%WeakMap%", !0), Ur = nc("%Map%", !0), xw = ar("WeakMap.prototype.get", !0), Sw = ar("WeakMap.prototype.set", !0), Ow = ar("WeakMap.prototype.has", !0), Aw = ar("Map.prototype.get", !0), Ew = ar("Map.prototype.set", !0), kw = ar("Map.prototype.has", !0), ii = function(e, t) { for (var n = e, r; (r = n.next) !== null; n = r) if (r.key === t) return n.next = r.next, r.next = /** @type {NonNullable} */ e.next, e.next = r, r; }, _w = function(e, t) { var n = ii(e, t); return n && n.value; }, jw = function(e, t, n) { var r = ii(e, t); r ? r.value = n : e.next = /** @type {import('.').ListNode} */ { // eslint-disable-line no-param-reassign, no-extra-parens key: t, next: e.next, value: n }; }, Fw = function(e, t) { return !!ii(e, t); }, Cw = function() { var e, t, n, r = { assert: function(o) { if (!r.has(o)) throw new ww("Side channel does not contain " + bw(o)); }, get: function(o) { if (Dr && o && (typeof o == "object" || typeof o == "function")) { if (e) return xw(e, o); } else if (Ur) { if (t) return Aw(t, o); } else if (n) return _w(n, o); }, has: function(o) { if (Dr && o && (typeof o == "object" || typeof o == "function")) { if (e) return Ow(e, o); } else if (Ur) { if (t) return kw(t, o); } else if (n) return Fw(n, o); return !1; }, set: function(o, a) { Dr && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new Dr()), Sw(e, o, a)) : Ur ? (t || (t = new Ur()), Ew(t, o, a)) : (n || (n = { key: {}, next: null }), jw(n, o, a)); } }; return r; }, Iw = String.prototype.replace, Vw = /%20/g, Zo = { RFC1738: "RFC1738", RFC3986: "RFC3986" }, li = { default: Zo.RFC3986, formatters: { RFC1738: function(e) { return Iw.call(e, Vw, "+"); }, RFC3986: function(e) { return String(e); } }, RFC1738: Zo.RFC1738, RFC3986: Zo.RFC3986 }, Mw = li, Ko = Object.prototype.hasOwnProperty, hn = Array.isArray, gt = function() { for (var e = [], t = 0; t < 256; ++t) e.push("%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase()); return e; }(), Tw = function(e) { for (; e.length > 1; ) { var t = e.pop(), n = t.obj[t.prop]; if (hn(n)) { for (var r = [], o = 0; o < n.length; ++o) typeof n[o] < "u" && r.push(n[o]); t.obj[t.prop] = r; } } }, rc = function(e, t) { for (var n = t && t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, r = 0; r < e.length; ++r) typeof e[r] < "u" && (n[r] = e[r]); return n; }, Pw = function e(t, n, r) { if (!n) return t; if (typeof n != "object") { if (hn(t)) t.push(n); else if (t && typeof t == "object") (r && (r.plainObjects || r.allowPrototypes) || !Ko.call(Object.prototype, n)) && (t[n] = !0); else return [t, n]; return t; } if (!t || typeof t != "object") return [t].concat(n); var o = t; return hn(t) && !hn(n) && (o = rc(t, r)), hn(t) && hn(n) ? (n.forEach(function(a, i) { if (Ko.call(t, i)) { var l = t[i]; l && typeof l == "object" && a && typeof a == "object" ? t[i] = e(l, a, r) : t.push(a); } else t[i] = a; }), t) : Object.keys(n).reduce(function(a, i) { var l = n[i]; return Ko.call(a, i) ? a[i] = e(a[i], l, r) : a[i] = l, a; }, o); }, Rw = function(e, t) { return Object.keys(t).reduce(function(n, r) { return n[r] = t[r], n; }, e); }, zw = function(e, t, n) { var r = e.replace(/\+/g, " "); if (n === "iso-8859-1") return r.replace(/%[0-9a-f]{2}/gi, unescape); try { return decodeURIComponent(r); } catch { return r; } }, Nw = function(e, t, n, r, o) { if (e.length === 0) return e; var a = e; if (typeof e == "symbol" ? a = Symbol.prototype.toString.call(e) : typeof e != "string" && (a = String(e)), n === "iso-8859-1") return escape(a).replace(/%u[0-9a-f]{4}/gi, function(u) { return "%26%23" + parseInt(u.slice(2), 16) + "%3B"; }); for (var i = "", l = 0; l < a.length; ++l) { var s = a.charCodeAt(l); if (s === 45 || s === 46 || s === 95 || s === 126 || s >= 48 && s <= 57 || s >= 65 && s <= 90 || s >= 97 && s <= 122 || o === Mw.RFC1738 && (s === 40 || s === 41)) { i += a.charAt(l); continue; } if (s < 128) { i = i + gt[s]; continue; } if (s < 2048) { i = i + (gt[192 | s >> 6] + gt[128 | s & 63]); continue; } if (s < 55296 || s >= 57344) { i = i + (gt[224 | s >> 12] + gt[128 | s >> 6 & 63] + gt[128 | s & 63]); continue; } l += 1, s = 65536 + ((s & 1023) << 10 | a.charCodeAt(l) & 1023), i += gt[240 | s >> 18] + gt[128 | s >> 12 & 63] + gt[128 | s >> 6 & 63] + gt[128 | s & 63]; } return i; }, $w = function(e) { for (var t = [{ obj: { o: e }, prop: "o" }], n = [], r = 0; r < t.length; ++r) for (var o = t[r], a = o.obj[o.prop], i = Object.keys(a), l = 0; l < i.length; ++l) { var s = i[l], u = a[s]; typeof u == "object" && u !== null && n.indexOf(u) === -1 && (t.push({ obj: a, prop: s }), n.push(u)); } return Tw(t), e; }, Lw = function(e) { return Object.prototype.toString.call(e) === "[object RegExp]"; }, Bw = function(e) { return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e)); }, Dw = function(e, t) { return [].concat(e, t); }, Uw = function(e, t) { if (hn(e)) { for (var n = [], r = 0; r < e.length; r += 1) n.push(t(e[r])); return n; } return t(e); }, oc = { arrayToObject: rc, assign: Rw, combine: Dw, compact: $w, decode: zw, encode: Nw, isBuffer: Bw, isRegExp: Lw, maybeMap: Uw, merge: Pw }, ac = Cw, Jr = oc, yr = li, qw = Object.prototype.hasOwnProperty, ic = { brackets: function(e) { return e + "[]"; }, comma: "comma", indices: function(e, t) { return e + "[" + t + "]"; }, repeat: function(e) { return e; } }, bt = Array.isArray, Hw = Array.prototype.push, lc = function(e, t) { Hw.apply(e, bt(t) ? t : [t]); }, Zw = Date.prototype.toISOString, us = yr.default, Ie = { addQueryPrefix: !1, allowDots: !1, allowEmptyArrays: !1, arrayFormat: "indices", charset: "utf-8", charsetSentinel: !1, delimiter: "&", encode: !0, encodeDotInKeys: !1, encoder: Jr.encode, encodeValuesOnly: !1, format: us, formatter: yr.formatters[us], // deprecated indices: !1, serializeDate: function(e) { return Zw.call(e); }, skipNulls: !1, strictNullHandling: !1 }, Kw = function(e) { return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint"; }, Wo = {}, Ww = function e(t, n, r, o, a, i, l, s, u, p, c, f, v, m, h, w, y, b) { for (var k = t, _ = b, x = 0, O = !1; (_ = _.get(Wo)) !== void 0 && !O; ) { var I = _.get(t); if (x += 1, typeof I < "u") { if (I === x) throw new RangeError("Cyclic object value"); O = !0; } typeof _.get(Wo) > "u" && (x = 0); } if (typeof p == "function" ? k = p(n, k) : k instanceof Date ? k = v(k) : r === "comma" && bt(k) && (k = Jr.maybeMap(k, function(M) { return M instanceof Date ? v(M) : M; })), k === null) { if (i) return u && !w ? u(n, Ie.encoder, y, "key", m) : n; k = ""; } if (Kw(k) || Jr.isBuffer(k)) { if (u) { var F = w ? n : u(n, Ie.encoder, y, "key", m); return [h(F) + "=" + h(u(k, Ie.encoder, y, "value", m))]; } return [h(n) + "=" + h(String(k))]; } var C = []; if (typeof k > "u") return C; var N; if (r === "comma" && bt(k)) w && u && (k = Jr.maybeMap(k, u)), N = [{ value: k.length > 0 ? k.join(",") || null : void 0 }]; else if (bt(p)) N = p; else { var H = Object.keys(k); N = c ? H.sort(c) : H; } var Q = s ? n.replace(/\./g, "%2E") : n, U = o && bt(k) && k.length === 1 ? Q + "[]" : Q; if (a && bt(k) && k.length === 0) return U + "[]"; for (var re = 0; re < N.length; ++re) { var E = N[re], A = typeof E == "object" && typeof E.value < "u" ? E.value : k[E]; if (!(l && A === null)) { var R = f && s ? E.replace(/\./g, "%2E") : E, ee = bt(k) ? typeof r == "function" ? r(U, R) : U : U + (f ? "." + R : "[" + R + "]"); b.set(t, x); var G = ac(); G.set(Wo, b), lc(C, e( A, ee, r, o, a, i, l, s, r === "comma" && w && bt(k) ? null : u, p, c, f, v, m, h, w, y, G )); } } return C; }, Jw = function(e) { if (!e) return Ie; if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean") throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided"); if (typeof e.encodeDotInKeys < "u" && typeof e.encodeDotInKeys != "boolean") throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided"); if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function") throw new TypeError("Encoder has to be a function."); var t = e.charset || Ie.charset; if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1") throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined"); var n = yr.default; if (typeof e.format < "u") { if (!qw.call(yr.formatters, e.format)) throw new TypeError("Unknown format option provided."); n = e.format; } var r = yr.formatters[n], o = Ie.filter; (typeof e.filter == "function" || bt(e.filter)) && (o = e.filter); var a; if (e.arrayFormat in ic ? a = e.arrayFormat : "indices" in e ? a = e.indices ? "indices" : "repeat" : a = Ie.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean") throw new TypeError("`commaRoundTrip` must be a boolean, or absent"); var i = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : Ie.allowDots : !!e.allowDots; return { addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : Ie.addQueryPrefix, allowDots: i, allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : Ie.allowEmptyArrays, arrayFormat: a, charset: t, charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : Ie.charsetSentinel, commaRoundTrip: e.commaRoundTrip, delimiter: typeof e.delimiter > "u" ? Ie.delimiter : e.delimiter, encode: typeof e.encode == "boolean" ? e.encode : Ie.encode, encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : Ie.encodeDotInKeys, encoder: typeof e.encoder == "function" ? e.encoder : Ie.encoder, encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : Ie.encodeValuesOnly, filter: o, format: n, formatter: r, serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : Ie.serializeDate, skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : Ie.skipNulls, sort: typeof e.sort == "function" ? e.sort : null, strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : Ie.strictNullHandling }; }, Gw = function(e, t) { var n = e, r = Jw(t), o, a; typeof r.filter == "function" ? (a = r.filter, n = a("", n)) : bt(r.filter) && (a = r.filter, o = a); var i = []; if (typeof n != "object" || n === null) return ""; var l = ic[r.arrayFormat], s = l === "comma" && r.commaRoundTrip; o || (o = Object.keys(n)), r.sort && o.sort(r.sort); for (var u = ac(), p = 0; p < o.length; ++p) { var c = o[p]; r.skipNulls && n[c] === null || lc(i, Ww( n[c], c, l, s, r.allowEmptyArrays, r.strictNullHandling, r.skipNulls, r.encodeDotInKeys, r.encode ? r.encoder : null, r.filter, r.sort, r.allowDots, r.serializeDate, r.format, r.formatter, r.encodeValuesOnly, r.charset, u )); } var f = i.join(r.delimiter), v = r.addQueryPrefix === !0 ? "?" : ""; return r.charsetSentinel && (r.charset === "iso-8859-1" ? v += "utf8=%26%2310003%3B&" : v += "utf8=%E2%9C%93&"), f.length > 0 ? v + f : ""; }, Xn = oc, ba = Object.prototype.hasOwnProperty, Yw = Array.isArray, ke = { allowDots: !1, allowEmptyArrays: !1, allowPrototypes: !1, allowSparse: !1, arrayLimit: 20, charset: "utf-8", charsetSentinel: !1, comma: !1, decodeDotInKeys: !0, decoder: Xn.decode, delimiter: "&", depth: 5, duplicates: "combine", ignoreQueryPrefix: !1, interpretNumericEntities: !1, parameterLimit: 1e3, parseArrays: !0, plainObjects: !1, strictNullHandling: !1 }, Qw = function(e) { return e.replace(/&#(\d+);/g, function(t, n) { return String.fromCharCode(parseInt(n, 10)); }); }, sc = function(e, t) { return e && typeof e == "string" && t.comma && e.indexOf(",") > -1 ? e.split(",") : e; }, Xw = "utf8=%26%2310003%3B", ex = "utf8=%E2%9C%93", tx = function(e, t) { var n = { __proto__: null }, r = t.ignoreQueryPrefix ? e.replace(/^\?/, "") : e, o = t.parameterLimit === 1 / 0 ? void 0 : t.parameterLimit, a = r.split(t.delimiter, o), i = -1, l, s = t.charset; if (t.charsetSentinel) for (l = 0; l < a.length; ++l) a[l].indexOf("utf8=") === 0 && (a[l] === ex ? s = "utf-8" : a[l] === Xw && (s = "iso-8859-1"), i = l, l = a.length); for (l = 0; l < a.length; ++l) if (l !== i) { var u = a[l], p = u.indexOf("]="), c = p === -1 ? u.indexOf("=") : p + 1, f, v; c === -1 ? (f = t.decoder(u, ke.decoder, s, "key"), v = t.strictNullHandling ? null : "") : (f = t.decoder(u.slice(0, c), ke.decoder, s, "key"), v = Xn.maybeMap( sc(u.slice(c + 1), t), function(h) { return t.decoder(h, ke.decoder, s, "value"); } )), v && t.interpretNumericEntities && s === "iso-8859-1" && (v = Qw(v)), u.indexOf("[]=") > -1 && (v = Yw(v) ? [v] : v); var m = ba.call(n, f); m && t.duplicates === "combine" ? n[f] = Xn.combine(n[f], v) : (!m || t.duplicates === "last") && (n[f] = v); } return n; }, nx = function(e, t, n, r) { for (var o = r ? t : sc(t, n), a = e.length - 1; a >= 0; --a) { var i, l = e[a]; if (l === "[]" && n.parseArrays) i = n.allowEmptyArrays && o === "" ? [] : [].concat(o); else { i = n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}; var s = l.charAt(0) === "[" && l.charAt(l.length - 1) === "]" ? l.slice(1, -1) : l, u = n.decodeDotInKeys ? s.replace(/%2E/g, ".") : s, p = parseInt(u, 10); !n.parseArrays && u === "" ? i = { 0: o } : !isNaN(p) && l !== u && String(p) === u && p >= 0 && n.parseArrays && p <= n.arrayLimit ? (i = [], i[p] = o) : u !== "__proto__" && (i[u] = o); } o = i; } return o; }, rx = function(e, t, n, r) { if (e) { var o = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, a = /(\[[^[\]]*])/, i = /(\[[^[\]]*])/g, l = n.depth > 0 && a.exec(o), s = l ? o.slice(0, l.index) : o, u = []; if (s) { if (!n.plainObjects && ba.call(Object.prototype, s) && !n.allowPrototypes) return; u.push(s); } for (var p = 0; n.depth > 0 && (l = i.exec(o)) !== null && p < n.depth; ) { if (p += 1, !n.plainObjects && ba.call(Object.prototype, l[1].slice(1, -1)) && !n.allowPrototypes) return; u.push(l[1]); } return l && u.push("[" + o.slice(l.index) + "]"), nx(u, t, n, r); } }, ox = function(e) { if (!e) return ke; if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean") throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided"); if (typeof e.decodeDotInKeys < "u" && typeof e.decodeDotInKeys != "boolean") throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided"); if (e.decoder !== null && typeof e.decoder < "u" && typeof e.decoder != "function") throw new TypeError("Decoder has to be a function."); if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1") throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined"); var t = typeof e.charset > "u" ? ke.charset : e.charset, n = typeof e.duplicates > "u" ? ke.duplicates : e.duplicates; if (n !== "combine" && n !== "first" && n !== "last") throw new TypeError("The duplicates option must be either combine, first, or last"); var r = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 : ke.allowDots : !!e.allowDots; return { allowDots: r, allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : ke.allowEmptyArrays, allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : ke.allowPrototypes, allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : ke.allowSparse, arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : ke.arrayLimit, charset: t, charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : ke.charsetSentinel, comma: typeof e.comma == "boolean" ? e.comma : ke.comma, decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : ke.decodeDotInKeys, decoder: typeof e.decoder == "function" ? e.decoder : ke.decoder, delimiter: typeof e.delimiter == "string" || Xn.isRegExp(e.delimiter) ? e.delimiter : ke.delimiter, // eslint-disable-next-line no-implicit-coercion, no-extra-parens depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : ke.depth, duplicates: n, ignoreQueryPrefix: e.ignoreQueryPrefix === !0, interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : ke.interpretNumericEntities, parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : ke.parameterLimit, parseArrays: e.parseArrays !== !1, plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : ke.plainObjects, strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : ke.strictNullHandling }; }, ax = function(e, t) { var n = ox(t); if (e === "" || e === null || typeof e > "u") return n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}; for (var r = typeof e == "string" ? tx(e, n) : e, o = n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, a = Object.keys(r), i = 0; i < a.length; ++i) { var l = a[i], s = rx(l, r[l], n, typeof e == "string"); o = Xn.merge(o, s, n); } return n.allowSparse === !0 ? o : Xn.compact(o); }, ix = Gw, lx = ax, sx = li, ux = { formats: sx, parse: lx, stringify: ix }, cx = Hb; function ot() { this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null; } var px = /^([a-z0-9.+-]+:)/i, dx = /:[0-9]*$/, fx = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, mx = [ "<", ">", '"', "`", " ", "\r", ` `, " " ], vx = [ "{", "}", "|", "\\", "^", "`" ].concat(mx), wa = ["'"].concat(vx), cs = [ "%", "/", "?", ";", "#" ].concat(wa), ps = [ "/", "?", "#" ], hx = 255, ds = /^[+a-z0-9A-Z_-]{0,63}$/, yx = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, gx = { javascript: !0, "javascript:": !0 }, xa = { javascript: !0, "javascript:": !0 }, Bn = { http: !0, https: !0, ftp: !0, gopher: !0, file: !0, "http:": !0, "https:": !0, "ftp:": !0, "gopher:": !0, "file:": !0 }, Sa = ux; function Cr(e, t, n) { if (e && typeof e == "object" && e instanceof ot) return e; var r = new ot(); return r.parse(e, t, n), r; } ot.prototype.parse = function(e, t, n) { if (typeof e != "string") throw new TypeError("Parameter 'url' must be a string, not " + typeof e); var r = e.indexOf("?"), o = r !== -1 && r < e.indexOf("#") ? "?" : "#", a = e.split(o), i = /\\/g; a[0] = a[0].replace(i, "/"), e = a.join(o); var l = e; if (l = l.trim(), !n && e.split("#").length === 1) { var s = fx.exec(l); if (s) return this.path = l, this.href = l, this.pathname = s[1], s[2] ? (this.search = s[2], t ? this.query = Sa.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : t && (this.search = "", this.query = {}), this; } var u = px.exec(l); if (u) { u = u[0]; var p = u.toLowerCase(); this.protocol = p, l = l.substr(u.length); } if (n || u || l.match(/^\/\/[^@/]+@[^@/]+/)) { var c = l.substr(0, 2) === "//"; c && !(u && xa[u]) && (l = l.substr(2), this.slashes = !0); } if (!xa[u] && (c || u && !Bn[u])) { for (var f = -1, v = 0; v < ps.length; v++) { var m = l.indexOf(ps[v]); m !== -1 && (f === -1 || m < f) && (f = m); } var h, w; f === -1 ? w = l.lastIndexOf("@") : w = l.lastIndexOf("@", f), w !== -1 && (h = l.slice(0, w), l = l.slice(w + 1), this.auth = decodeURIComponent(h)), f = -1; for (var v = 0; v < cs.length; v++) { var m = l.indexOf(cs[v]); m !== -1 && (f === -1 || m < f) && (f = m); } f === -1 && (f = l.length), this.host = l.slice(0, f), l = l.slice(f), this.parseHost(), this.hostname = this.hostname || ""; var y = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]"; if (!y) for (var b = this.hostname.split(/\./), v = 0, k = b.length; v < k; v++) { var _ = b[v]; if (_ && !_.match(ds)) { for (var x = "", O = 0, I = _.length; O < I; O++) _.charCodeAt(O) > 127 ? x += "x" : x += _[O]; if (!x.match(ds)) { var F = b.slice(0, v), C = b.slice(v + 1), N = _.match(yx); N && (F.push(N[1]), C.unshift(N[2])), C.length && (l = "/" + C.join(".") + l), this.hostname = F.join("."); break; } } } this.hostname.length > hx ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), y || (this.hostname = cx.toASCII(this.hostname)); var H = this.port ? ":" + this.port : "", Q = this.hostname || ""; this.host = Q + H, this.href += this.host, y && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), l[0] !== "/" && (l = "/" + l)); } if (!gx[p]) for (var v = 0, k = wa.length; v < k; v++) { var U = wa[v]; if (l.indexOf(U) !== -1) { var re = encodeURIComponent(U); re === U && (re = escape(U)), l = l.split(U).join(re); } } var E = l.indexOf("#"); E !== -1 && (this.hash = l.substr(E), l = l.slice(0, E)); var A = l.indexOf("?"); if (A !== -1 ? (this.search = l.substr(A), this.query = l.substr(A + 1), t && (this.query = Sa.parse(this.query)), l = l.slice(0, A)) : t && (this.search = "", this.query = {}), l && (this.pathname = l), Bn[p] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) { var H = this.pathname || "", R = this.search || ""; this.path = H + R; } return this.href = this.format(), this; }; function bx(e) { return typeof e == "string" && (e = Cr(e)), e instanceof ot ? e.format() : ot.prototype.format.call(e); } ot.prototype.format = function() { var e = this.auth || ""; e && (e = encodeURIComponent(e), e = e.replace(/%3A/i, ":"), e += "@"); var t = this.protocol || "", n = this.pathname || "", r = this.hash || "", o = !1, a = ""; this.host ? o = e + this.host : this.hostname && (o = e + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (o += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (a = Sa.stringify(this.query, { arrayFormat: "repeat", addQueryPrefix: !1 })); var i = this.search || a && "?" + a || ""; return t && t.substr(-1) !== ":" && (t += ":"), this.slashes || (!t || Bn[t]) && o !== !1 ? (o = "//" + (o || ""), n && n.charAt(0) !== "/" && (n = "/" + n)) : o || (o = ""), r && r.charAt(0) !== "#" && (r = "#" + r), i && i.charAt(0) !== "?" && (i = "?" + i), n = n.replace(/[?#]/g, function(l) { return encodeURIComponent(l); }), i = i.replace("#", "%23"), t + o + n + i + r; }; function wx(e, t) { return Cr(e, !1, !0).resolve(t); } ot.prototype.resolve = function(e) { return this.resolveObject(Cr(e, !1, !0)).format(); }; function xx(e, t) { return e ? Cr(e, !1, !0).resolveObject(t) : t; } ot.prototype.resolveObject = function(e) { if (typeof e == "string") { var t = new ot(); t.parse(e, !1, !0), e = t; } for (var n = new ot(), r = Object.keys(this), o = 0; o < r.length; o++) { var a = r[o]; n[a] = this[a]; } if (n.hash = e.hash, e.href === "") return n.href = n.format(), n; if (e.slashes && !e.protocol) { for (var i = Object.keys(e), l = 0; l < i.length; l++) { var s = i[l]; s !== "protocol" && (n[s] = e[s]); } return Bn[n.protocol] && n.hostname && !n.pathname && (n.pathname = "/", n.path = n.pathname), n.href = n.format(), n; } if (e.protocol && e.protocol !== n.protocol) { if (!Bn[e.protocol]) { for (var u = Object.keys(e), p = 0; p < u.length; p++) { var c = u[p]; n[c] = e[c]; } return n.href = n.format(), n; } if (n.protocol = e.protocol, !e.host && !xa[e.protocol]) { for (var k = (e.pathname || "").split("/"); k.length && !(e.host = k.shift()); ) ; e.host || (e.host = ""), e.hostname || (e.hostname = ""), k[0] !== "" && k.unshift(""), k.length < 2 && k.unshift(""), n.pathname = k.join("/"); } else n.pathname = e.pathname; if (n.search = e.search, n.query = e.query, n.host = e.host || "", n.auth = e.auth, n.hostname = e.hostname || e.host, n.port = e.port, n.pathname || n.search) { var f = n.pathname || "", v = n.search || ""; n.path = f + v; } return n.slashes = n.slashes || e.slashes, n.href = n.format(), n; } var m = n.pathname && n.pathname.charAt(0) === "/", h = e.host || e.pathname && e.pathname.charAt(0) === "/", w = h || m || n.host && e.pathname, y = w, b = n.pathname && n.pathname.split("/") || [], k = e.pathname && e.pathname.split("/") || [], _ = n.protocol && !Bn[n.protocol]; if (_ && (n.hostname = "", n.port = null, n.host && (b[0] === "" ? b[0] = n.host : b.unshift(n.host)), n.host = "", e.protocol && (e.hostname = null, e.port = null, e.host && (k[0] === "" ? k[0] = e.host : k.unshift(e.host)), e.host = null), w = w && (k[0] === "" || b[0] === "")), h) n.host = e.host || e.host === "" ? e.host : n.host, n.hostname = e.hostname || e.hostname === "" ? e.hostname : n.hostname, n.search = e.search, n.query = e.query, b = k; else if (k.length) b || (b = []), b.pop(), b = b.concat(k), n.search = e.search, n.query = e.query; else if (e.search != null) { if (_) { n.host = b.shift(), n.hostname = n.host; var x = n.host && n.host.indexOf("@") > 0 ? n.host.split("@") : !1; x && (n.auth = x.shift(), n.hostname = x.shift(), n.host = n.hostname); } return n.search = e.search, n.query = e.query, (n.pathname !== null || n.search !== null) && (n.path = (n.pathname ? n.pathname : "") + (n.search ? n.search : "")), n.href = n.format(), n; } if (!b.length) return n.pathname = null, n.search ? n.path = "/" + n.search : n.path = null, n.href = n.format(), n; for (var O = b.slice(-1)[0], I = (n.host || e.host || b.length > 1) && (O === "." || O === "..") || O === "", F = 0, C = b.length; C >= 0; C--) O = b[C], O === "." ? b.splice(C, 1) : O === ".." ? (b.splice(C, 1), F++) : F && (b.splice(C, 1), F--); if (!w && !y) for (; F--; F) b.unshift(".."); w && b[0] !== "" && (!b[0] || b[0].charAt(0) !== "/") && b.unshift(""), I && b.join("/").substr(-1) !== "/" && b.push(""); var N = b[0] === "" || b[0] && b[0].charAt(0) === "/"; if (_) { n.hostname = N ? "" : b.length ? b.shift() : "", n.host = n.hostname; var x = n.host && n.host.indexOf("@") > 0 ? n.host.split("@") : !1; x && (n.auth = x.shift(), n.hostname = x.shift(), n.host = n.hostname); } return w = w || n.host && b.length, w && !N && b.unshift(""), b.length > 0 ? n.pathname = b.join("/") : (n.pathname = null, n.path = null), (n.pathname !== null || n.search !== null) && (n.path = (n.pathname ? n.pathname : "") + (n.search ? n.search : "")), n.auth = e.auth || n.auth, n.slashes = n.slashes || e.slashes, n.href = n.format(), n; }; ot.prototype.parseHost = function() { var e = this.host, t = dx.exec(e); t && (t = t[0], t !== ":" && (this.port = t.substr(1)), e = e.substr(0, e.length - t.length)), e && (this.hostname = e); }; sn.parse = Cr; sn.resolve = wx; sn.resolveObject = xx; sn.format = bx; sn.Url = ot; var je = {}, uc = sn, Oa = je.ValidationError = function(e, t, n, r, o, a) { if (Array.isArray(r) ? (this.path = r, this.property = r.reduce(function(l, s) { return l + cc(s); }, "instance")) : r !== void 0 && (this.property = r), e && (this.message = e), n) { var i = n.$id || n.id; this.schema = i || n; } t !== void 0 && (this.instance = t), this.name = o, this.argument = a, this.stack = this.toString(); }; Oa.prototype.toString = function() { return this.property + " " + this.message; }; var Ao = je.ValidatorResult = function(e, t, n, r) { this.instance = e, this.schema = t, this.options = n, this.path = r.path, this.propertyPath = r.propertyPath, this.errors = [], this.throwError = n && n.throwError, this.throwFirst = n && n.throwFirst, this.throwAll = n && n.throwAll, this.disableFormat = n && n.disableFormat === !0; }; Ao.prototype.addError = function(e) { var t; if (typeof e == "string") t = new Oa(e, this.instance, this.schema, this.path); else { if (!e) throw new Error("Missing error detail"); if (!e.message) throw new Error("Missing error message"); if (!e.name) throw new Error("Missing validator type"); t = new Oa(e.message, this.instance, this.schema, this.path, e.name, e.argument); } if (this.errors.push(t), this.throwFirst) throw new En(this); if (this.throwError) throw t; return t; }; Ao.prototype.importErrors = function(e) { typeof e == "string" || e && e.validatorType ? this.addError(e) : e && e.errors && (this.errors = this.errors.concat(e.errors)); }; function Sx(e, t) { return t + ": " + e.toString() + ` `; } Ao.prototype.toString = function(e) { return this.errors.map(Sx).join(""); }; Object.defineProperty(Ao.prototype, "valid", { get: function() { return !this.errors.length; } }); je.ValidatorResultError = En; function En(e) { Error.captureStackTrace && Error.captureStackTrace(this, En), this.instance = e.instance, this.schema = e.schema, this.options = e.options, this.errors = e.errors; } En.prototype = new Error(); En.prototype.constructor = En; En.prototype.name = "Validation Error"; var fs = je.SchemaError = function e(t, n) { this.message = t, this.schema = n, Error.call(this, t), Error.captureStackTrace(this, e); }; fs.prototype = Object.create( Error.prototype, { constructor: { value: fs, enumerable: !1 }, name: { value: "SchemaError", enumerable: !1 } } ); var Aa = je.SchemaContext = function(e, t, n, r, o) { this.schema = e, this.options = t, Array.isArray(n) ? (this.path = n, this.propertyPath = n.reduce(function(a, i) { return a + cc(i); }, "instance")) : this.propertyPath = n, this.base = r, this.schemas = o; }; Aa.prototype.resolve = function(e) { return uc.resolve(this.base, e); }; Aa.prototype.makeChild = function(e, t) { var n = t === void 0 ? this.path : this.path.concat([t]), r = e.$id || e.id, o = uc.resolve(this.base, r || ""), a = new Aa(e, this.options, n, o, Object.create(this.schemas)); return r && !a.schemas[o] && (a.schemas[o] = e), a; }; var dt = je.FORMAT_REGEXPS = { // 7.3.1. Dates, Times, and Duration "date-time": /^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/, date: /^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/, time: /^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/, duration: /P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i, // 7.3.2. Email Addresses // TODO: fix the email production email: /^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/, "idn-email": /^("(?:[!#-\[\]-\u{10FFFF}]|\\[\t -\u{10FFFF}])*"|[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*)@([!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*|\[[!-Z\^-\u{10FFFF}]*\])$/u, // 7.3.3. Hostnames // 7.3.4. IP Addresses "ip-address": /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/, // FIXME whitespace is invalid ipv6: /^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/, // 7.3.5. Resource Identifiers // TODO: A more accurate regular expression for "uri" goes: // [A-Za-z][+\-.0-9A-Za-z]*:((/(/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?)?#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(/(/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])|/?%[0-9A-Fa-f]{2}|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*(#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|/(/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?)? uri: /^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/, "uri-reference": /^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/, iri: /^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/, "iri-reference": /^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~-\u{10FFFF}]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~-\u{10FFFF}])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/u, uuid: /^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i, // 7.3.6. uri-template "uri-template": /(%[0-9a-f]{2}|[!#$&(-;=?@\[\]_a-z~]|\{[!#&+,./;=?@|]?(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?)*\})*/iu, // 7.3.7. JSON Pointers "json-pointer": /^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu, "relative-json-pointer": /^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu, // hostname regex from: http://stackoverflow.com/a/1420225/5628 hostname: /^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/, "host-name": /^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/, "utc-millisec": function(e) { return typeof e == "string" && parseFloat(e) === parseInt(e, 10) && !isNaN(e); }, // 7.3.8. regex regex: function(e) { var t = !0; try { new RegExp(e); } catch { t = !1; } return t; }, // Other definitions // "style" was removed from JSON Schema in draft-4 and is deprecated style: /[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/, // "color" was removed from JSON Schema in draft-4 and is deprecated color: /^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/, phone: /^\+(?:[0-9] ?){6,14}[0-9]$/, alpha: /^[a-zA-Z]+$/, alphanumeric: /^[a-zA-Z0-9]+$/ }; dt.regexp = dt.regex; dt.pattern = dt.regex; dt.ipv4 = dt["ip-address"]; je.isFormat = function(e, t, n) { if (typeof e == "string" && dt[t] !== void 0) { if (dt[t] instanceof RegExp) return dt[t].test(e); if (typeof dt[t] == "function") return dt[t](e); } else if (n && n.customFormats && typeof n.customFormats[t] == "function") return n.customFormats[t](e); return !0; }; var cc = je.makeSuffix = function(e) { return e = e.toString(), !e.match(/[.\s\[\]]/) && !e.match(/^[\d]/) ? "." + e : e.match(/^\d+$/) ? "[" + e + "]" : "[" + JSON.stringify(e) + "]"; }; je.deepCompareStrict = function e(t, n) { if (typeof t != typeof n) return !1; if (Array.isArray(t)) return !Array.isArray(n) || t.length !== n.length ? !1 : t.every(function(a, i) { return e(t[i], n[i]); }); if (typeof t == "object") { if (!t || !n) return t === n; var r = Object.keys(t), o = Object.keys(n); return r.length !== o.length ? !1 : r.every(function(a) { return e(t[a], n[a]); }); } return t === n; }; function Ox(e, t, n, r) { typeof n == "object" ? t[r] = si(e[r], n) : e.indexOf(n) === -1 && t.push(n); } function Ax(e, t, n) { t[n] = e[n]; } function Ex(e, t, n, r) { typeof t[r] != "object" || !t[r] ? n[r] = t[r] : e[r] ? n[r] = si(e[r], t[r]) : n[r] = t[r]; } function si(e, t) { var n = Array.isArray(t), r = n && [] || {}; return n ? (e = e || [], r = r.concat(e), t.forEach(Ox.bind(null, e, r))) : (e && typeof e == "object" && Object.keys(e).forEach(Ax.bind(null, e, r)), Object.keys(t).forEach(Ex.bind(null, e, t, r))), r; } je.deepMerge = si; je.objectGetPath = function(e, t) { for (var n = t.split("/").slice(1), r; typeof (r = n.shift()) == "string"; ) { var o = decodeURIComponent(r.replace(/~0/, "~").replace(/~1/g, "/")); if (!(o in e)) return; e = e[o]; } return e; }; function kx(e) { return "/" + encodeURIComponent(e).replace(/~/g, "%7E"); } je.encodePath = function(e) { return e.map(kx).join(""); }; je.getDecimalPlaces = function(e) { var t = 0; if (isNaN(e)) return t; typeof e != "number" && (e = Number(e)); var n = e.toString().split("e"); if (n.length === 2) { if (n[1][0] !== "-") return t; t = Number(n[1].slice(1)); } var r = n[0].split("."); return r.length === 2 && (t += r[1].length), t; }; je.isSchema = function(e) { return typeof e == "object" && e || typeof e == "boolean"; }; var et = je, ce = et.ValidatorResult, cn = et.SchemaError, ui = {}; ui.ignoreProperties = { // informative properties id: !0, default: !0, description: !0, title: !0, // arguments to other properties additionalItems: !0, then: !0, else: !0, // special-handled properties $schema: !0, $ref: !0, extends: !0 }; var pe = ui.validators = {}; pe.type = function(e, t, n, r) { if (e === void 0) return null; var o = new ce(e, t, n, r), a = Array.isArray(t.type) ? t.type : [t.type]; if (!a.some(this.testType.bind(this, e, t, n, r))) { var i = a.map(function(l) { if (l) { var s = l.$id || l.id; return s ? "<" + s + ">" : l + ""; } }); o.addError({ name: "type", argument: i, message: "is not of a type(s) " + i }); } return o; }; function ci(e, t, n, r, o) { var a = t.throwError, i = t.throwAll; t.throwError = !1, t.throwAll = !1; var l = this.validateSchema(e, o, t, n); return t.throwError = a, t.throwAll = i, !l.valid && r instanceof Function && r(l), l.valid; } pe.anyOf = function(e, t, n, r) { if (e === void 0) return null; var o = new ce(e, t, n, r), a = new ce(e, t, n, r); if (!Array.isArray(t.anyOf)) throw new cn("anyOf must be an array"); if (!t.anyOf.some( ci.bind( this, e, n, r, function(l) { a.importErrors(l); } ) )) { var i = t.anyOf.map(function(l, s) { var u = l.$id || l.id; return u ? "<" + u + ">" : l.title && JSON.stringify(l.title) || l.$ref && "<" + l.$ref + ">" || "[subschema " + s + "]"; }); n.nestedErrors && o.importErrors(a), o.addError({ name: "anyOf", argument: i, message: "is not any of " + i.join(",") }); } return o; }; pe.allOf = function(e, t, n, r) { if (e === void 0) return null; if (!Array.isArray(t.allOf)) throw new cn("allOf must be an array"); var o = new ce(e, t, n, r), a = this; return t.allOf.forEach(function(i, l) { var s = a.validateSchema(e, i, n, r); if (!s.valid) { var u = i.$id || i.id, p = u || i.title && JSON.stringify(i.title) || i.$ref && "<" + i.$ref + ">" || "[subschema " + l + "]"; o.addError({ name: "allOf", argument: { id: p, length: s.errors.length, valid: s }, message: "does not match allOf schema " + p + " with " + s.errors.length + " error[s]:" }), o.importErrors(s); } }), o; }; pe.oneOf = function(e, t, n, r) { if (e === void 0) return null; if (!Array.isArray(t.oneOf)) throw new cn("oneOf must be an array"); var o = new ce(e, t, n, r), a = new ce(e, t, n, r), i = t.oneOf.filter( ci.bind( this, e, n, r, function(s) { a.importErrors(s); } ) ).length, l = t.oneOf.map(function(s, u) { var p = s.$id || s.id; return p || s.title && JSON.stringify(s.title) || s.$ref && "<" + s.$ref + ">" || "[subschema " + u + "]"; }); return i !== 1 && (n.nestedErrors && o.importErrors(a), o.addError({ name: "oneOf", argument: l, message: "is not exactly one from " + l.join(",") })), o; }; pe.if = function(e, t, n, r) { if (e === void 0) return null; if (!et.isSchema(t.if)) throw new Error('Expected "if" keyword to be a schema'); var o = ci.call(this, e, n, r, null, t.if), a = new ce(e, t, n, r), i; if (o) { if (t.then === void 0) return; if (!et.isSchema(t.then)) throw new Error('Expected "then" keyword to be a schema'); i = this.validateSchema(e, t.then, n, r.makeChild(t.then)), a.importErrors(i); } else { if (t.else === void 0) return; if (!et.isSchema(t.else)) throw new Error('Expected "else" keyword to be a schema'); i = this.validateSchema(e, t.else, n, r.makeChild(t.else)), a.importErrors(i); } return a; }; function pi(e, t) { if (Object.hasOwnProperty.call(e, t)) return e[t]; if (t in e) { for (; e = Object.getPrototypeOf(e); ) if (Object.propertyIsEnumerable.call(e, t)) return e[t]; } } pe.propertyNames = function(e, t, n, r) { if (this.types.object(e)) { var o = new ce(e, t, n, r), a = t.propertyNames !== void 0 ? t.propertyNames : {}; if (!et.isSchema(a)) throw new cn('Expected "propertyNames" to be a schema (object or boolean)'); for (var i in e) if (pi(e, i) !== void 0) { var l = this.validateSchema(i, a, n, r.makeChild(a)); o.importErrors(l); } return o; } }; pe.properties = function(e, t, n, r) { if (this.types.object(e)) { var o = new ce(e, t, n, r), a = t.properties || {}; for (var i in a) { var l = a[i]; if (l !== void 0) { if (l === null) throw new cn('Unexpected null, expected schema in "properties"'); typeof n.preValidateProperty == "function" && n.preValidateProperty(e, i, l, n, r); var s = pi(e, i), u = this.validateSchema(s, l, n, r.makeChild(l, i)); u.instance !== o.instance[i] && (o.instance[i] = u.instance), o.importErrors(u); } } return o; } }; function pc(e, t, n, r, o, a) { if (this.types.object(e) && !(t.properties && t.properties[o] !== void 0)) if (t.additionalProperties === !1) a.addError({ name: "additionalProperties", argument: o, message: "is not allowed to have the additional property " + JSON.stringify(o) }); else { var i = t.additionalProperties || {}; typeof n.preValidateProperty == "function" && n.preValidateProperty(e, o, i, n, r); var l = this.validateSchema(e[o], i, n, r.makeChild(i, o)); l.instance !== a.instance[o] && (a.instance[o] = l.instance), a.importErrors(l); } } pe.patternProperties = function(e, t, n, r) { if (this.types.object(e)) { var o = new ce(e, t, n, r), a = t.patternProperties || {}; for (var i in e) { var l = !0; for (var s in a) { var u = a[s]; if (u !== void 0) { if (u === null) throw new cn('Unexpected null, expected schema in "patternProperties"'); try { var p = new RegExp(s, "u"); } catch { p = new RegExp(s); } if (p.test(i)) { l = !1, typeof n.preValidateProperty == "function" && n.preValidateProperty(e, i, u, n, r); var c = this.validateSchema(e[i], u, n, r.makeChild(u, i)); c.instance !== o.instance[i] && (o.instance[i] = c.instance), o.importErrors(c); } } } l && pc.call(this, e, t, n, r, i, o); } return o; } }; pe.additionalProperties = function(e, t, n, r) { if (this.types.object(e)) { if (t.patternProperties) return null; var o = new ce(e, t, n, r); for (var a in e) pc.call(this, e, t, n, r, a, o); return o; } }; pe.minProperties = function(e, t, n, r) { if (this.types.object(e)) { var o = new ce(e, t, n, r), a = Object.keys(e); return a.length >= t.minProperties || o.addError({ name: "minProperties", argument: t.minProperties, message: "does not meet minimum property length of " + t.minProperties }), o; } }; pe.maxProperties = function(e, t, n, r) { if (this.types.object(e)) { var o = new ce(e, t, n, r), a = Object.keys(e); return a.length <= t.maxProperties || o.addError({ name: "maxProperties", argument: t.maxProperties, message: "does not meet maximum property length of " + t.maxProperties }), o; } }; pe.items = function(e, t, n, r) { var o = this; if (this.types.array(e) && t.items !== void 0) { var a = new ce(e, t, n, r); return e.every(function(i, l) { if (Array.isArray(t.items)) var s = t.items[l] === void 0 ? t.additionalItems : t.items[l]; else var s = t.items; if (s === void 0) return !0; if (s === !1) return a.addError({ name: "items", message: "additionalItems not permitted" }), !1; var u = o.validateSchema(i, s, n, r.makeChild(s, l)); return u.instance !== a.instance[l] && (a.instance[l] = u.instance), a.importErrors(u), !0; }), a; } }; pe.contains = function(e, t, n, r) { var o = this; if (this.types.array(e) && t.contains !== void 0) { if (!et.isSchema(t.contains)) throw new Error('Expected "contains" keyword to be a schema'); var a = new ce(e, t, n, r), i = e.some(function(l, s) { var u = o.validateSchema(l, t.contains, n, r.makeChild(t.contains, s)); return u.errors.length === 0; }); return i === !1 && a.addError({ name: "contains", argument: t.contains, message: "must contain an item matching given schema" }), a; } }; pe.minimum = function(e, t, n, r) { if (this.types.number(e)) { var o = new ce(e, t, n, r); return t.exclusiveMinimum && t.exclusiveMinimum === !0 ? e > t.minimum || o.addError({ name: "minimum", argument: t.minimum, message: "must be greater than " + t.minimum }) : e >= t.minimum || o.addError({ name: "minimum", argument: t.minimum, message: "must be greater than or equal to " + t.minimum }), o; } }; pe.maximum = function(e, t, n, r) { if (this.types.number(e)) { var o = new ce(e, t, n, r); return t.exclusiveMaximum && t.exclusiveMaximum === !0 ? e < t.maximum || o.addError({ name: "maximum", argument: t.maximum, message: "must be less than " + t.maximum }) : e <= t.maximum || o.addError({ name: "maximum", argument: t.maximum, message: "must be less than or equal to " + t.maximum }), o; } }; pe.exclusiveMinimum = function(e, t, n, r) { if (typeof t.exclusiveMinimum != "boolean" && this.types.number(e)) { var o = new ce(e, t, n, r), a = e > t.exclusiveMinimum; return a || o.addError({ name: "exclusiveMinimum", argument: t.exclusiveMinimum, message: "must be strictly greater than " + t.exclusiveMinimum }), o; } }; pe.exclusiveMaximum = function(e, t, n, r) { if (typeof t.exclusiveMaximum != "boolean" && this.types.number(e)) { var o = new ce(e, t, n, r), a = e < t.exclusiveMaximum; return a || o.addError({ name: "exclusiveMaximum", argument: t.exclusiveMaximum, message: "must be strictly less than " + t.exclusiveMaximum }), o; } }; var dc = function(e, t, n, r, o, a) { if (this.types.number(e)) { var i = t[o]; if (i == 0) throw new cn(o + " cannot be zero"); var l = new ce(e, t, n, r), s = et.getDecimalPlaces(e), u = et.getDecimalPlaces(i), p = Math.max(s, u), c = Math.pow(10, p); return Math.round(e * c) % Math.round(i * c) !== 0 && l.addError({ name: o, argument: i, message: a + JSON.stringify(i) }), l; } }; pe.multipleOf = function(e, t, n, r) { return dc.call(this, e, t, n, r, "multipleOf", "is not a multiple of (divisible by) "); }; pe.divisibleBy = function(e, t, n, r) { return dc.call(this, e, t, n, r, "divisibleBy", "is not divisible by (multiple of) "); }; pe.required = function(e, t, n, r) { var o = new ce(e, t, n, r); return e === void 0 && t.required === !0 ? o.addError({ name: "required", message: "is required" }) : this.types.object(e) && Array.isArray(t.required) && t.required.forEach(function(a) { pi(e, a) === void 0 && o.addError({ name: "required", argument: a, message: "requires property " + JSON.stringify(a) }); }), o; }; pe.pattern = function(e, t, n, r) { if (this.types.string(e)) { var o = new ce(e, t, n, r), a = t.pattern; try { var i = new RegExp(a, "u"); } catch { i = new RegExp(a); } return e.match(i) || o.addError({ name: "pattern", argument: t.pattern, message: "does not match pattern " + JSON.stringify(t.pattern.toString()) }), o; } }; pe.format = function(e, t, n, r) { if (e !== void 0) { var o = new ce(e, t, n, r); return !o.disableFormat && !et.isFormat(e, t.format, this) && o.addError({ name: "format", argument: t.format, message: "does not conform to the " + JSON.stringify(t.format) + " format" }), o; } }; pe.minLength = function(e, t, n, r) { if (this.types.string(e)) { var o = new ce(e, t, n, r), a = e.match(/[\uDC00-\uDFFF]/g), i = e.length - (a ? a.length : 0); return i >= t.minLength || o.addError({ name: "minLength", argument: t.minLength, message: "does not meet minimum length of " + t.minLength }), o; } }; pe.maxLength = function(e, t, n, r) { if (this.types.string(e)) { var o = new ce(e, t, n, r), a = e.match(/[\uDC00-\uDFFF]/g), i = e.length - (a ? a.length : 0); return i <= t.maxLength || o.addError({ name: "maxLength", argument: t.maxLength, message: "does not meet maximum length of " + t.maxLength }), o; } }; pe.minItems = function(e, t, n, r) { if (this.types.array(e)) { var o = new ce(e, t, n, r); return e.length >= t.minItems || o.addError({ name: "minItems", argument: t.minItems, message: "does not meet minimum length of " + t.minItems }), o; } }; pe.maxItems = function(e, t, n, r) { if (this.types.array(e)) { var o = new ce(e, t, n, r); return e.length <= t.maxItems || o.addError({ name: "maxItems", argument: t.maxItems, message: "does not meet maximum length of " + t.maxItems }), o; } }; function _x(e, t, n) { var r, o = n.length; for (r = t + 1, o; r < o; r++) if (et.deepCompareStrict(e, n[r])) return !1; return !0; } pe.uniqueItems = function(e, t, n, r) { if (t.uniqueItems === !0 && this.types.array(e)) { var o = new ce(e, t, n, r); return e.every(_x) || o.addError({ name: "uniqueItems", message: "contains duplicate item" }), o; } }; pe.dependencies = function(e, t, n, r) { if (this.types.object(e)) { var o = new ce(e, t, n, r); for (var a in t.dependencies) if (e[a] !== void 0) { var i = t.dependencies[a], l = r.makeChild(i, a); if (typeof i == "string" && (i = [i]), Array.isArray(i)) i.forEach(function(u) { e[u] === void 0 && o.addError({ // FIXME there's two different "dependencies" errors here with slightly different outputs // Can we make these the same? Or should we create different error types? name: "dependencies", argument: l.propertyPath, message: "property " + u + " not found, required by " + l.propertyPath }); }); else { var s = this.validateSchema(e, i, n, l); o.instance !== s.instance && (o.instance = s.instance), s && s.errors.length && (o.addError({ name: "dependencies", argument: l.propertyPath, message: "does not meet dependency required by " + l.propertyPath }), o.importErrors(s)); } } return o; } }; pe.enum = function(e, t, n, r) { if (e === void 0) return null; if (!Array.isArray(t.enum)) throw new cn("enum expects an array", t); var o = new ce(e, t, n, r); return t.enum.some(et.deepCompareStrict.bind(null, e)) || o.addError({ name: "enum", argument: t.enum, message: "is not one of enum values: " + t.enum.map(String).join(",") }), o; }; pe.const = function(e, t, n, r) { if (e === void 0) return null; var o = new ce(e, t, n, r); return et.deepCompareStrict(t.const, e) || o.addError({ name: "const", argument: t.const, message: "does not exactly match expected constant: " + t.const }), o; }; pe.not = pe.disallow = function(e, t, n, r) { var o = this; if (e === void 0) return null; var a = new ce(e, t, n, r), i = t.not || t.disallow; return i ? (Array.isArray(i) || (i = [i]), i.forEach(function(l) { if (o.testType(e, t, n, r, l)) { var s = l && (l.$id || l.id), u = s || l; a.addError({ name: "not", argument: u, message: "is of prohibited type " + u }); } }), a) : null; }; var jx = ui, di = {}, ms = sn, Fx = je; di.SchemaScanResult = fc; function fc(e, t) { this.id = e, this.ref = t; } di.scan = function(e, t) { function n(l, s) { if (!(!s || typeof s != "object")) { if (s.$ref) { var u = ms.resolve(l, s.$ref); i[u] = i[u] ? i[u] + 1 : 0; return; } var p = s.$id || s.id, c = p ? ms.resolve(l, p) : l; if (c) { if (c.indexOf("#") < 0 && (c += "#"), a[c]) { if (!Fx.deepCompareStrict(a[c], s)) throw new Error("Schema <" + c + "> already exists with different definition"); return a[c]; } a[c] = s, c[c.length - 1] == "#" && (a[c.substring(0, c.length - 1)] = s); } r(c + "/items", Array.isArray(s.items) ? s.items : [s.items]), r(c + "/extends", Array.isArray(s.extends) ? s.extends : [s.extends]), n(c + "/additionalItems", s.additionalItems), o(c + "/properties", s.properties), n(c + "/additionalProperties", s.additionalProperties), o(c + "/definitions", s.definitions), o(c + "/patternProperties", s.patternProperties), o(c + "/dependencies", s.dependencies), r(c + "/disallow", s.disallow), r(c + "/allOf", s.allOf), r(c + "/anyOf", s.anyOf), r(c + "/oneOf", s.oneOf), n(c + "/not", s.not); } } function r(l, s) { if (Array.isArray(s)) for (var u = 0; u < s.length; u++) n(l + "/" + u, s[u]); } function o(l, s) { if (!(!s || typeof s != "object")) for (var u in s) n(l + "/" + u, s[u]); } var a = {}, i = {}; return n(e, t), new fc(a, i); }; var mc = sn, vc = jx, Fn = je, hc = di.scan, yc = Fn.ValidatorResult, Cx = Fn.ValidatorResultError, Or = Fn.SchemaError, gc = Fn.SchemaContext, bc = "/", Pe = function e() { this.customFormats = Object.create(e.prototype.customFormats), this.schemas = {}, this.unresolvedRefs = [], this.types = Object.create(_t), this.attributes = Object.create(vc.validators); }; Pe.prototype.customFormats = {}; Pe.prototype.schemas = null; Pe.prototype.types = null; Pe.prototype.attributes = null; Pe.prototype.unresolvedRefs = null; Pe.prototype.addSchema = function(e, t) { var n = this; if (!e) return null; var r = hc(t || bc, e), o = t || e.$id || e.id; for (var a in r.id) this.schemas[a] = r.id[a]; for (var a in r.ref) this.unresolvedRefs.push(a); return this.unresolvedRefs = this.unresolvedRefs.filter(function(i) { return typeof n.schemas[i] > "u"; }), this.schemas[o]; }; Pe.prototype.addSubSchemaArray = function(e, t) { if (Array.isArray(t)) for (var n = 0; n < t.length; n++) this.addSubSchema(e, t[n]); }; Pe.prototype.addSubSchemaObject = function(e, t) { if (!(!t || typeof t != "object")) for (var n in t) this.addSubSchema(e, t[n]); }; Pe.prototype.setSchemas = function(e) { this.schemas = e; }; Pe.prototype.getSchema = function(e) { return this.schemas[e]; }; Pe.prototype.validate = function(e, t, n, r) { if (typeof t != "boolean" && typeof t != "object" || t === null) throw new Or("Expected `schema` to be an object or boolean"); n || (n = {}); var o = t.$id || t.id, a = mc.resolve(n.base || bc, o || ""); if (!r) { r = new gc(t, n, [], a, Object.create(this.schemas)), r.schemas[a] || (r.schemas[a] = t); var i = hc(a, t); for (var l in i.id) { var s = i.id[l]; r.schemas[l] = s; } } if (n.required && e === void 0) { var u = new yc(e, t, n, r); return u.addError("is required, but is undefined"), u; } var u = this.validateSchema(e, t, n, r); if (u) { if (n.throwAll && u.errors.length) throw new Cx(u); } else throw new Error("Result undefined"); return u; }; function wc(e) { var t = typeof e == "string" ? e : e.$ref; return typeof t == "string" ? t : !1; } Pe.prototype.validateSchema = function(e, t, n, r) { var o = new yc(e, t, n, r); if (typeof t == "boolean") t === !0 ? t = {} : t === !1 && (t = { type: [] }); else if (!t) throw new Error("schema is undefined"); if (t.extends) if (Array.isArray(t.extends)) { var a = { schema: t, ctx: r }; t.extends.forEach(this.schemaTraverser.bind(this, a)), t = a.schema, a.schema = null, a.ctx = null, a = null; } else t = Fn.deepMerge(t, this.superResolve(t.extends, r)); var i = wc(t); if (i) { var l = this.resolve(t, i, r), s = new gc(l.subschema, n, r.path, l.switchSchema, r.schemas); return this.validateSchema(e, l.subschema, n, s); } var u = n && n.skipAttributes || []; for (var p in t) if (!vc.ignoreProperties[p] && u.indexOf(p) < 0) { var c = null, f = this.attributes[p]; if (f) c = f.call(this, e, t, n, r); else if (n.allowUnknownAttributes === !1) throw new Or("Unsupported attribute: " + p, t); c && o.importErrors(c); } if (typeof n.rewrite == "function") { var v = n.rewrite.call(this, e, t, n, r); o.instance = v; } return o; }; Pe.prototype.schemaTraverser = function(e, t) { e.schema = Fn.deepMerge(e.schema, this.superResolve(t, e.ctx)); }; Pe.prototype.superResolve = function(e, t) { var n = wc(e); return n ? this.resolve(e, n, t).subschema : e; }; Pe.prototype.resolve = function(e, t, n) { if (t = n.resolve(t), n.schemas[t]) return { subschema: n.schemas[t], switchSchema: t }; var r = mc.parse(t), o = r && r.hash, a = o && o.length && t.substr(0, t.length - o.length); if (!a || !n.schemas[a]) throw new Or("no such schema <" + t + ">", e); var i = Fn.objectGetPath(n.schemas[a], o.substr(1)); if (i === void 0) throw new Or("no such schema " + o + " located in <" + a + ">", e); return { subschema: i, switchSchema: t }; }; Pe.prototype.testType = function(e, t, n, r, o) { if (o !== void 0) { if (o === null) throw new Or('Unexpected null in "type" keyword'); if (typeof this.types[o] == "function") return this.types[o].call(this, e); if (o && typeof o == "object") { var a = this.validateSchema(e, o, n, r); return a === void 0 || !(a && a.errors.length); } return !0; } }; var _t = Pe.prototype.types = {}; _t.string = function(e) { return typeof e == "string"; }; _t.number = function(e) { return typeof e == "number" && isFinite(e); }; _t.integer = function(e) { return typeof e == "number" && e % 1 === 0; }; _t.boolean = function(e) { return typeof e == "boolean"; }; _t.array = function(e) { return Array.isArray(e); }; _t.null = function(e) { return e === null; }; _t.date = function(e) { return e instanceof Date; }; _t.any = function(e) { return !0; }; _t.object = function(e) { return e && typeof e == "object" && !Array.isArray(e) && !(e instanceof Date); }; var Ix = Pe, xc; xc = Ix; je.ValidatorResult; je.ValidatorResultError; je.ValidationError; je.SchemaError; function Vx(e) { let t = new xc(), n = { additionalProperties: !1, properties: { input: { items: { oneOf: [ { additionalProperties: !1, properties: { defaultValue: { required: !0, type: "number" }, id: { type: "string" }, name: { required: !0, type: "string" }, possibleValues: { items: { additionalProperties: !1, properties: { name: { required: !0, type: "string" }, value: { required: !0, type: "number" } }, type: "object" }, minItems: 1, required: !0, type: "array" }, visible: { type: "string" } } }, { additionalProperties: !1, properties: { defaultValue: { required: !0, type: "number" }, id: { type: "string" }, maximumValue: { required: !0, type: "number" }, minimumValue: { required: !0, type: "number" }, name: { required: !0, type: "string" }, stepValue: { type: "number" }, visible: { type: "string" } } } ], type: "object" }, minItems: 1, required: !0, type: "array" }, output: { additionalProperties: !1, minItems: 1, properties: { data: { items: { additionalProperties: !1, properties: { id: { required: !0, type: "string" }, name: { required: !0, type: "string" } }, type: "object" }, minItems: 1, required: !0, type: "array" }, plots: { items: { additionalProperties: !1, properties: { xAxisTitle: { required: !0, type: "string" }, xValue: { required: !0, type: "string" }, yAxisTitle: { required: !0, type: "string" }, yValue: { required: !0, type: "string" } }, type: "object" }, maxItems: 9, minItems: 1, required: !0, type: "array" } }, required: !0, type: "object" }, parameters: { items: { additionalProperties: !1, properties: { name: { required: !0, type: "string" }, value: { required: !0, type: "string" } }, type: "object" }, type: "array" }, simulation: { additionalProperties: !1, properties: { opencor: { additionalProperties: !1, properties: { endingPoint: { type: "number" }, pointInterval: { type: "number" }, resource: { required: !0, type: "string" } }, type: "object" }, solvers: { items: { additionalProperties: !1, properties: { if: { type: "string" }, input: { additionalProperties: !1, properties: { name: { required: !0, type: "string" }, value: { required: !0, type: "string" } }, type: "object" }, name: { required: !0, type: "string" }, version: { required: !0, type: "string" } }, type: "object" }, minItems: 1, required: !0, type: "array" } }, required: !0, type: "object" } }, type: "object" }, r = t.validate(e, n, { nestedErrors: !0 }); if (!r.valid) return console.warn(r.toString()), !1; let o = []; if (!e.input.every((l) => { if (l.id !== void 0) { if (l.id === "") return console.warn("JSON: the input id must not be empty."), !1; if (o[l.id]) return console.warn("JSON: the input id must be unique (" + l.id + " is used more than once)."), !1; o[l.id] = !0; } if (l.name === "") return console.warn("JSON: the input name must not be empty."), !1; if (l.possibleValues !== void 0) { if (!l.possibleValues.every((p) => p.name === "" ? (console.warn("JSON: an input possible value must not be empty."), !1) : !0)) return !1; let s = l.possibleValues.map((p) => p.value), u = []; if (!s.every((p) => u[p] ? (console.warn("JSON: an input possible value must have a unique value (" + p + " is used more than once)."), !1) : (u[p] = !0, !0))) return !1; if (!s.includes(l.defaultValue)) return console.warn("JSON: the input default value (" + l.defaultValue + ") must be one of the possible values (" + s.join(", ") + ")."), !1; } if (l.minimumValue !== void 0 && l.maximumValue !== void 0) { if (l.minimumValue >= l.maximumValue) return console.warn("JSON: the input minimum value (" + l.minimumValue + ") must be lower than the maximum value (" + l.maximumValue + ")."), !1; if (l.defaultValue < l.minimumValue || l.defaultValue > l.maximumValue) return console.warn("JSON: the input default value (" + l.defaultValue + ") must be greater or equal than the minimum value (" + l.minimumValue + ") and lower or equal than the maximum value (" + l.maximumValue + ")."), !1; let s = l.maximumValue - l.minimumValue; if (l.stepValue !== void 0) { if (l.stepValue <= 0 || l.stepValue > s) return console.warn("JSON: the input step value (" + l.stepValue + ") must be greater than zero and lower or equal than the range value (" + s + ")."), !1; if (!Number.isInteger(s / l.stepValue)) return console.warn("JSON: the input step value (" + l.stepValue + ") must be a factor of the range value (" + s + ")."), !1; } else if (!Number.isInteger(s)) return console.warn("JSON: the (default) input step value (1) must be a factor of the range value (" + s + ")."), !1; } return l.visible !== void 0 && l.visible === "" ? (console.warn("JSON: the input visible must not be empty."), !1) : !0; })) return !1; let a = []; if (!e.output.data.every((l) => { if (l.id !== void 0) { if (l.id === "") return console.warn("JSON: the output data id must not be empty."), !1; if (a[l.id]) return console.warn("JSON: the output data id must be unique (" + l.id + " is used more than once)."), !1; a[l.id] = !0; } return l.name === "" ? (console.warn("JSON: the output data name must not be empty."), !1) : !0; }) || !e.output.plots.every((l) => l.xAxisTitle === "" ? (console.warn("JSON: the output plot X axis title must not be empty."), !1) : l.xValue === "" ? (console.warn("JSON: the output plot X value must not be empty."), !1) : l.yAxisTitle === "" ? (console.warn("JSON: the output plot Y axis title must not be empty."), !1) : l.yValue === "" ? (console.warn("JSON: the output plot Y value must not be empty."), !1) : !0) || e.parameters !== void 0 && !e.parameters.every((l) => l.name === "" ? (console.warn("JSON: the parameter name must not be empty."), !1) : l.value === "" ? (console.warn("JSON: the parameter value must not be empty."), !1) : !0)) return !1; let i = !1; if (!e.simulation.solvers.every((l) => { if (l.if !== void 0 && l.if === "") return console.warn("JSON: a simulation solver if must not be empty."), !1; if (l.input !== void 0) { if (l.input.name === "") return console.warn("JSON: a simulation solver input name must not be empty."), !1; if (l.input.value === "") return console.warn("JSON: a simulation solver input value must not be empty."), !1; } return l.name === "" ? (console.warn("JSON: a simulation solver name must not be empty."), !1) : (i = i || l.name === Nu, l.version === "" ? (console.warn("JSON: a simulation solver version must not be empty."), !1) : !0); })) return !1; if (i && e.simulation.opencor === void 0) return console.warn("JSON: the simulation solver for OpenCOR is specified so simulation OpenCOR settings must also be specified."), !1; if (e.simulation.opencor !== void 0) { if (e.simulation.opencor.resource === "") return console.warn("JSON: the simulation OpenCOR resource must not be empty."), !1; if (e.simulation.opencor.endingPoint !== void 0) if (e.simulation.opencor.pointInterval !== void 0) { if (e.simulation.opencor.endingPoint <= 0) return console.warn("JSON: the simulation OpenCOR ending point (" + e.simulation.opencor.endingPoint + ") must be greater than zero."), !1; if (e.simulation.opencor.pointInterval <= 0) return console.warn("JSON: the simulation OpenCOR point interval (" + e.simulation.opencor.pointInterval + ") must be greater than zero."), !1; } else return console.warn("JSON: a simulation OpenCOR ending point is specified so a simulation OpenCOR point interval must also be specified."), !1; else if (e.simulation.opencor.pointInterval !== void 0) return console.warn("JSON: a simulation OpenCOR point interval is specified so a simulation OpenCOR ending point must also be specified."), !1; } return !0; } const Mx = { name: "SimulationVuer", components: { PlotVuer: sp, SimulationVuerInput: Du, ElButton: Cu, ElDivider: Iu, ElLoading: Lb }, props: { /** * The the URL to the API location. */ apiLocation: { required: !0, type: String }, /** * The ID of the simulation-based dataset. */ id: { required: !0, type: Number } }, data: function() { let e = new XMLHttpRequest(), t, n; return e.open("GET", this.apiLocation + "/sim/dataset/" + this.id, !1), e.setRequestHeader("Content-type", "application/json"), e.onreadystatechange = () => { if (e.readyState === 4 && e.status === 200) { let r = JSON.parse(e.responseText); t = r.name, n = r.study !== void 0 ? r.study.uuid : void 0; } }, e.send(), { errorMessage: "", hasFinalisedUi: !1, hasValidSimulationUiInfo: !1, isMounted: !1, isSimulationValid: !0, layout: [], name: t, perfectScollbarOptions: { suppressScrollX: !0 }, showUserMessage: !1, simulationData: [], simulationDataId: {}, simulationUiInfo: {}, userMessage: "", ui: null, uuid: n }; }, methods: { /** * @vuese * Generate the metadata associated with the plot which `index` is given. * @arg `index` */ plotMetadata(e) { return { version: "1.1.0", type: "plot", attrs: { style: "timeseries", layout: this.layout[e] } }; }, /** * @vuese * Build the simulation UI using `simulationUiInfo`, a JSON object that describes the contents of the simulation UI. * @arg `simulationUiInfo` */ buildSimulationUi(e) { this.simulationUiInfo = e, this.hasValidSimulationUiInfo = Vx(this.simulationUiInfo), this.hasValidSimulationUiInfo && (Bb(this), this.$nextTick(() => { Ll(this), this.simulationData.forEach((t, n) => { this.simulationData[n] = [{ x: [], y: [], type: "scatter" }]; }); })); }, /** * @vuese * Run the simulation-based dataset directly on oSPARC. Not all simulation-based datasets can be run directly on * oSPARC, but for those that can the simulation UI shows a `Run on oSPARC` button which, when clicked, calls this * method. */ runOnOsparc() { window.open(`https://osparc.io/study/${this.uuid}`, "_blank"); }, /** * @vuese * View the simulation-based dataset on the SPARC portal. The simulation UI has a `View Dataset` button which, when * clicked, calls this method. */ viewDataset() { window.open(`https://sparc.science/datasets/${this.id}?type=dataset`, "_blank"); }, /** * @vuese * Finish creating the `request` that is going to be used by `startSimulation` to ask oSPARC to start the * simulation. `request` is a JSON object that initially contains the solver to be used by oSPARC and to which * additional is added. * @arg `request` */ retrieveRequest(e) { let t = e.solver.name === Nu; if (t ? e.opencor = { model_url: this.simulationUiInfo.simulation.opencor.resource, json_config: {} } : e.osparc = {}, t && this.simulationUiInfo.simulation.opencor.endingPoint !== void 0 && this.simulationUiInfo.simulation.opencor.pointInterval !== void 0 && (e.opencor.json_config.simulation = { "Ending point": this.simulationUiInfo.simulation.opencor.endingPoint, "Point interval": this.simulationUiInfo.simulation.opencor.pointInterval }), this.simulationUiInfo.parameters !== void 0) { let n = {}; this.simulationUiInfo.parameters.forEach((r) => { n[r.name] = da(this, r.value); }), t ? e.opencor.json_config.parameters = n : e.osparc.job_inputs = n; } if (t && this.simulationUiInfo.output.data !== void 0) { let n = -1; e.opencor.json_config.output = [], this.simulationUiInfo.output.data.forEach((r) => { e.opencor.json_config.output[++n] = r.name; }); } return e; }, /** * @vuese * Process the simulation results retrieved by `checkSimulation`. The simulation results are post-processed, if * needed, and then readied for use by `PlotVuer`. * @arg `results` */ processSimulationResults(e) { if (typeof e == "string") { const r = /[ \t]+/g; let o = e.trim().split(` `), a = o[0].trim().split(r).length; e = {}; for (let l = 0; l < a; ++l) e[l] = []; let i = -1; o.forEach((l) => { ++i; let s = -1; l.trim().split(r).forEach((u) => { e[++s][i] = Number(u); }); }); } let t = -1, n = e[this.simulationDataId[Object.keys(this.simulationDataId)[0]]].length; this.simulationUiInfo.output.plots.forEach((r) => { let o = [], a = []; for (let i = 0; i < n; ++i) o[i] = $l(this, e, r.xValue, i), a[i] = $l(this, e, r.yValue, i); this.simulationData[++t] = [ { x: o, y: a, type: "scatter" } ]; }); }, /** * @vuese * Check the progress of the simulation using the given `data`, a JSON object that contains the simulation job ID, * as well as the solver name and version. This method is first called by `startSimulation` and then every second by * itself until the simulation is finished. * @arg `data` */ checkSimulation(e) { let t = new XMLHttpRequest(); t.open("POST", this.apiLocation + "/check_simulation", !0), t.setRequestHeader("Content-type", "application/json"), t.onreadystatechange = () => { if (t.readyState === 4) if (t.status === 200) { let n = JSON.parse(t.responseText); if (this.isSimulationValid = n.status === "ok", this.isSimulationValid) if (n.results !== void 0) this.showUserMessage = !1, this.processSimulationResults(n.results); else { let r = this; setTimeout(function() { r.checkSimulation(e); }, 1e3); } else this.showUserMessage = !1, this.errorMessage = n.description; } else this.isSimulationValid = !1, this.showUserMessage = !1, this.errorMessage = t.statusText.toLowerCase() + " (" + t.status + ")"; }, t.send(JSON.stringify(e)); }, /** * @vuese * Start the simulation associated with the simulation-based dataset. The simulation UI has a `Run Simulation` * button which, when clicked, calls this method. */ startSimulation() { let e; if (this.simulationUiInfo.simulation.solvers.forEach((t) => { (t.if === void 0 || da(this, t.if)) && (e = t); }), e === void 0) { console.warn("SIMULATION: no solver name and/or solver version specified."); return; } this.userMessage = "Loading simulation results...", this.showUserMessage = !0, this.$nextTick(() => { this.simulationData = []; let t = new XMLHttpRequest(); t.open("POST", this.apiLocation + "/start_simulation", !0), t.setRequestHeader("Content-type", "application/json"), t.onreadystatechange = () => { if (t.readyState === 4) if (t.status === 200) { let n = JSON.parse(t.responseText); this.isSimulationValid = n.status === "ok", this.isSimulationValid ? this.checkSimulation(n.data) : (this.showUserMessage = !1, this.errorMessage = n.description); } else this.isSimulationValid = !1, this.showUserMessage = !1, this.errorMessage = t.statusText.toLowerCase() + " (" + t.status + ")"; }, t.send(JSON.stringify(this.retrieveRequest({ solver: e }))); }); } }, created: function() { this.name !== void 0 && (this.userMessage = "Retrieving UI information...", this.showUserMessage = !0, this.$nextTick(() => { let e = new XMLHttpRequest(); e.open("GET", this.apiLocation + "/simulation_ui_file/" + this.id, !0), e.setRequestHeader("Content-type", "application/json"), e.onreadystatechange = () => { e.readyState === 4 && (this.showUserMessage = !1, e.status === 200 && this.buildSimulationUi(JSON.parse(e.responseText))); }, e.send(); })); }, mounted: function() { this.isMounted = !0, Ll(this); } }, fi = (e) => (ap("data-v-508c815f"), e = e(), ip(), e), Tx = ["element-loading-text"], Px = { key: 0, class: "default error" }, Rx = /* @__PURE__ */ fi(() => /* @__PURE__ */ Z("span", { class: "error" }, "Error:", -1)), zx = { key: 1, class: "main" }, Nx = { class: "main-left" }, $x = { class: "default name" }, Lx = /* @__PURE__ */ fi(() => /* @__PURE__ */ Z("p", { class: "default input-parameters" }, "Input parameters", -1)), Bx = { class: "input scrollbar" }, Dx = { class: "primary-button" }, Ux = { key: 0, class: "secondary-button" }, qx = { class: "secondary-button" }, Hx = { key: 1, class: "default note" }, Zx = { class: "main-right", ref: "output" }, Kx = { class: "main-right" }, Wx = { class: "default error" }, Jx = /* @__PURE__ */ fi(() => /* @__PURE__ */ Z("span", { class: "error" }, "Error:", -1)), Gx = ["innerHTML"]; function Yx(e, t, n, r, o, a) { const i = Iu, l = Du, s = Cu, u = Ct("PlotVuer"), p = pa; return He((j(), L("div", { class: "simulation-vuer", "element-loading-text": e.userMessage }, [ !e.hasValidSimulationUiInfo && !e.showUserMessage ? (j(), L("p", Px, [ Rx, Yt(" an unknown or invalid model was provided.") ])) : W("", !0), e.hasValidSimulationUiInfo ? (j(), L("div", zx, [ Z("div", Nx, [ Z("p", $x, ze(e.name), 1), fe(i), Lx, Z("div", Bx, [ (j(!0), L(qe, null, on(e.simulationUiInfo.input, (c, f) => (j(), Y(l, { ref_for: !0, ref: "simInput", defaultValue: c.defaultValue, key: `input-${f}`, name: c.name, maximumValue: c.maximumValue, minimumValue: c.minimumValue, possibleValues: c.possibleValues, stepValue: c.stepValue }, null, 8, ["defaultValue", "name", "maximumValue", "minimumValue", "possibleValues", "stepValue"]))), 128)) ]), Z("div", Dx, [ fe(s, { type: "primary", size: "small", onClick: t[0] || (t[0] = (c) => a.startSimulation()) }, { default: X(() => [ Yt("Run Simulation") ]), _: 1 }) ]), e.uuid ? (j(), L("div", Ux, [ fe(s, { size: "small", onClick: t[1] || (t[1] = (c) => a.runOnOsparc()) }, { default: X(() => [ Yt("Run on oSPARC") ]), _: 1 }) ])) : W("", !0), Z("div", qx, [ fe(s, { size: "small", onClick: t[2] || (t[2] = (c) => a.viewDataset()) }, { default: X(() => [ Yt("View Dataset") ]), _: 1 }) ]), e.uuid ? (j(), L("p", Hx, "Additional parameters are available on oSPARC")) : W("", !0) ]), He(Z("div", Zx, [ (j(!0), L(qe, null, on(e.simulationUiInfo.output.plots, (c, f) => (j(), Y(u, { key: `output-${f}`, metadata: a.plotMetadata(f), "data-source": { data: e.simulationData[f] }, plotLayout: e.layout[f], plotType: "plotly-only", selectorUi: !1 }, null, 8, ["metadata", "data-source", "plotLayout"]))), 128)) ], 512), [ [$t, e.isSimulationValid] ]), He(Z("div", Kx, [ Z("p", Wx, [ Jx, Yt(), Z("span", { innerHTML: e.errorMessage }, null, 8, Gx), Yt(".") ]) ], 512), [ [$t, !e.isSimulationValid] ]) ])) : W("", !0) ], 8, Tx)), [ [p, e.showUserMessage] ]); } const Qx = /* @__PURE__ */ Bu(Mx, [["render", Yx], ["__scopeId", "data-v-508c815f"]]), Xx = { name: "Simulation", mixins: [Bc], components: { SimulationVuer: Qx } }; function e2(e, t, n, r, o, a) { const i = Ct("SimulationVuer"); return j(), Y(i, { apiLocation: e.apiLocation, id: e.entry.discoverId }, null, 8, ["apiLocation", "id"]); } const a2 = /* @__PURE__ */ up(Xx, [["render", e2]]); export { a2 as default };