UNPKG

@opentiny/vue-runtime

Version:

An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.

1,285 lines 1.55 MB
import * as ve from "echarts"; import { graphic as mw, matrix as yw, util as yl } from "echarts"; import { t as uu } from "@opentiny/vue-locale"; import { $prefix as Ze, defineComponent as bw, h as Lv } from "@opentiny/vue-common"; function hf(t, e) { (e == null || e > t.length) && (e = t.length); for (var i = 0, r = Array(e); i < e; i++) r[i] = t[i]; return r; } function xw(t) { if (Array.isArray(t)) return t; } function ww(t) { if (Array.isArray(t)) return hf(t); } function hd(t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function"); } function Tv(t, e) { for (var i = 0; i < e.length; i++) { var r = e[i]; r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, cy(r.key), r); } } function dd(t, e, i) { return e && Tv(t.prototype, e), i && Tv(t, i), Object.defineProperty(t, "prototype", { writable: !1 }), t; } function ct(t, e, i) { return (e = cy(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t; } function Cw(t) { if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t); } function Sw(t, e) { var i = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"]; if (i != null) { var r, n, a, o, s = [], l = !0, u = !1; try { if (a = (i = i.call(t)).next, e !== 0) for (; !(l = (r = a.call(i)).done) && (s.push(r.value), s.length !== e); l = !0) ; } catch (c) { u = !0, n = c; } finally { try { if (!l && i.return != null && (o = i.return(), Object(o) !== o)) return; } finally { if (u) throw n; } } return s; } } function _w() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function Aw() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function Dv(t, e) { var i = Object.keys(t); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(t); e && (r = r.filter(function(n) { return Object.getOwnPropertyDescriptor(t, n).enumerable; })), i.push.apply(i, r); } return i; } function se(t) { for (var e = 1; e < arguments.length; e++) { var i = arguments[e] != null ? arguments[e] : {}; e % 2 ? Dv(Object(i), !0).forEach(function(r) { ct(t, r, i[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : Dv(Object(i)).forEach(function(r) { Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(i, r)); }); } return t; } function vd(t, e) { return xw(t) || Sw(t, e) || fy(t, e) || _w(); } function it(t) { return ww(t) || Cw(t) || fy(t) || Aw(); } function Lw(t, e) { if (typeof t != "object" || !t) return t; var i = t[Symbol.toPrimitive]; if (i !== void 0) { var r = i.call(t, e); if (typeof r != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (e === "string" ? String : Number)(t); } function cy(t) { var e = Lw(t, "string"); return typeof e == "symbol" ? e : e + ""; } function W(t) { "@babel/helpers - typeof"; return W = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { return typeof e; } : function(e) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, W(t); } function fy(t, e) { if (t) { if (typeof t == "string") return hf(t, e); var i = {}.toString.call(t).slice(8, -1); return i === "Object" && t.constructor && (i = t.constructor.name), i === "Map" || i === "Set" ? Array.from(t) : i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i) ? hf(t, e) : void 0; } } var hy = Object.prototype.toString, dy = Object.prototype.hasOwnProperty, Tw = Object.getPrototypeOf, vy = dy.toString, Dw = vy.call(Object), Ew = { "[object Error]": "error", "[object Object]": "object", "[object RegExp]": "regExp", "[object Date]": "date", "[object Array]": "array", "[object Function]": "function", "[object String]": "string", "[object Number]": "number", "[object Boolean]": "boolean" }, He = function(e) { return e == null || e === "undefined"; }, bl = function(e) { return He(e) ? String(e) : Ew[hy.call(e)] || "object"; }, wi = function(e) { return bl(e) === "object"; }, oa = function(e) { if (!e || hy.call(e) !== "[object Object]") return !1; var i = Tw(e); if (!i) return !0; var r = dy.call(i, "constructor") && i.constructor; return typeof r == "function" && vy.call(r) === Dw; }, pd, yo = function(e, i, r) { if (!(!e || !oa(e) || !i || typeof i != "string")) { i = i.split("."); var n = e, a = i.length; if (a > 1) { for (var o = 0, s = o; s < a; s++) if (n = n[i[s]], He(n)) return n; return n; } else return n[i[0]]; } }, cu = function(e, i, r, n) { if (!e || !oa(e) || !i || typeof i != "string") return e; i = i.split("."); var a = e, o = i.length, s = i[0]; if (o > 1) { o--; for (var l = a, u, c, f = 0; f < o; f++) u = i[f], c = l[u], (c === null || !oa(c)) && (l[u] = {}, c = l[u]), l = c; s = i[o], l[s] = r; } else a[s] = r; return a; }, Pw = function(e, i, r, n) { var a = function(s, l, u, c) { var f = {}; return l.forEach(function(h) { return cu(f, h, yo(s, h)); }), f; }; return oa(e) ? Array.isArray(i) ? a(e, i) : pd(r !== !1, {}, e) : e; }, py = function(e) { return Array.isArray(e) ? e.map(function(i) { return Pw(i); }) : e; }, Mw = function(e, i, r, n, a) { var o; if (r && n && (oa(n) || (o = Array.isArray(n)))) if (o) o = !1, e[i] = py(n); else { var s = a && oa(a) ? a : {}; e[i] = pd(r, s, n); } else if (n !== void 0) try { e[i] = n; } catch { } }; pd = function() { var e = arguments, i = e.length, r = e[0] || {}, n = 1, a = !1; for (bl(r) === "boolean" && (a = r, r = e[n] || {}, n++), !wi(r) && bl(r) !== "function" && (r = {}), n === i && (r = this, n--); n < i; n++) { var o = e[n]; if (o !== null && wi(o)) for (var s = Object.keys(o), l = 0, u = s; l < u.length; l++) { var c = u[l], f = r[c], h = o[c]; r !== h && Mw(r, c, a, h, f); } } return r; }; var Ev = {}, Bw = { th: "k", mi: "m", bi: "b", tr: "t" }, gy = { zeroFormat: null, nullFormat: null, defaultFormat: "0,0", scalePercentBy100: !0, abbrLabel: Bw }, df = 1e12, vf = 1e9, pf = 1e6, my = 1e3, Rw = function(e) { return typeof e == "number" && isNaN(e); }, Tt = {}, Gn = {}; function Ow(t, e, i) { var r = t.toString().split("e-"), n = r.length === 2 ? Number(r[1]) : 0; r = r[0].split("."), n = r.length === 2 ? r[1].length + n : n; var a = e - (i || 0); return Math.min(Math.max(n, a), e); } function Wu(t, e, i, r) { var n = Ow(t, e, r), a = Math.pow(10, n), o = (i(t * "1e+".concat(n)) / a).toFixed(n); if (r > e - n) { var s = new RegExp("\\.?0{1," + (r - (e - n)) + "}$"); o = o.replace(s, ""); } return o; } function Io(t, e, i) { var r; return t === 0 ? r = e >= df && !i || i === "t" : t === 1 ? r = e < df && e >= vf && !i || i === "b" : t === 2 ? r = e < vf && e >= pf && !i || i === "m" : t === 3 && (r = e < pf && e >= my && !i || i === "k"), r; } var Iw = function(e) { var i = e.format, r = e.value; return ~i.indexOf("+") ? i.indexOf("+") : r < 0 ? i.indexOf("-") : -1; }, Fw = function(e) { var i = e.abbr, r = e.abbrForce, n = e.format, a = e.value, o = e.abs; r = n.match(/a(k|m|b|t)?/), r = r ? r[1] : !1, ~n.indexOf(" a") && (i = " "), n = n.replace(new RegExp(i + "a[kmbt]?"), ""), Io(0, o, r) ? (i += Tt.abbrLabel.tr, a = a / df) : Io(1, o, r) ? (i += Tt.abbrLabel.bi, a = a / vf) : Io(2, o, r) ? (i += Tt.abbrLabel.mi, a = a / pf) : Io(3, o, r) && (i += Tt.abbrLabel.th, a = a / my), Object.assign(e, { abbr: i, abbrForce: r, format: n, value: a, abs: o }); }, kw = function(e) { var i = e.roundingFunction, r = e.value, n = e.format, a = r.toString().split(".")[0], o = n.split(".")[1]; return o ? (~o.indexOf("[") ? (o = o.replace("]", ""), o = o.split("["), e.decimal = Wu(r, o[0].length + o[1].length, i, o[1].length)) : e.decimal = Wu(r, o.length, i), a = e.decimal.split(".")[0], e.decimal = ~e.decimal.indexOf(".") ? "." + e.decimal.split(".")[1] : "", e.optDec && Number(e.decimal.slice(1)) === 0 && (e.decimal = "")) : a = Wu(r, 0, i), a; }; function Nw(t) { var e = kw(t), i = t.format.indexOf(","), r = (t.format.split(".")[0].split(",")[0].match(/0/g) || []).length; if (t.abbr && !t.abbrForce && Number(e) >= 1e3 && t.abbr !== Ev.trillion && (e = String(Number(e) / 1e3), t.abbr = Ev.million), ~e.indexOf("-") && (e = e.slice(1), t.neg = !0), e.length < r) for (var n = r - e.length; n > 0; n--) e = "0" + e; return i > -1 && (e = e.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,")), t.format.indexOf(".") || (e = ""), e; } function zw(t, e) { var i = t.decimal, r = t.negFlag, n = t.neg, a = t.signed, o = t.abbr, s = e + i + (o || ""); if (r) s = r && n ? "(".concat(s, ")") : s; else if (a >= 0) { var l = n ? "-" : "+"; s = a === 0 ? l + s : s + l; } else n && (s = "-" + s); return s; } function yy(t, e, i, r) { var n = { abs: Math.abs(e), negFlag: !1, optDec: !1, abbr: "", decimal: "", neg: !1, abbrForce: void 0, signed: void 0, format: i || "", value: e || 0, roundingFunction: r }; ~i.indexOf("(") ? (n.negFlag = !0, n.format = i.replace(/[(|)]/g, "")) : (~n.format.indexOf("+") || ~n.format.indexOf("-")) && (n.signed = Iw(n), n.format = i.replace(/[+|-]/g, "")), ~n.format.indexOf("a") && Fw(n), ~n.format.indexOf("[.]") && (n.optDec = !0, n.format = i.replace("[.]", ".")); var a = Nw(n); return zw(n, a); } function gd(t, e) { Object.keys(e).forEach(function(i) { t[i] = e[i]; }); } var Ww = { regexp: /%/, format: function(e, i, r, n) { var a = ~i.indexOf(" %") ? " " : "", o = void 0; return n.options.scalePercentBy100 && (e = e * 100), i = i.replace(/\s?%/, ""), o = n._numberToFormat(e, i, r), ~o.indexOf(")") ? (o = o.split(""), o.splice(-1, 0, a + "%"), o = o.join("")) : o = o + a + "%", o; } }; gd(Tt, gy); var br; function Hw(t, e, i) { var r = Tt.zeroFormat, n = Tt.nullFormat, a = Tt.defaultFormat; e = e || a, i = i || Math.round; var o = {}, s = o.output, l = o.fmtFunc; if (t === 0 && r !== null) s = r; else if (t === null && n !== null) s = n; else { for (var u in Gn) if (Gn[u] && e.match(Gn[u].regexp)) { l = Gn[u].format; break; } l = l || yy.bind(null, Tt), s = l(t, e, i, br); } return s; } br = function(e, i, r) { var n = Tt.zeroFormat, a = Tt.nullFormat, o = Number(e) || null; return typeof e > "u" || e === 0 ? o = 0 : Rw(e) || e === null ? o = null : typeof e == "string" && (o = Number(e), e === n && n ? o = 0 : (e === a && a || !e.replace(/[^0-9]+/g, "").length) && (o = null)), Hw(o, i, r); }; var Gw = function(e, i) { Gn[e] = i; }, jw = function(e) { Gn[e] = null; }, Vw = function(e) { gd(Tt, e); }, Uw = function() { gd(Tt, gy); }; br.options = Tt; br._numberToFormat = yy.bind(null, Tt); br.register = Gw; br.unregister = jw; br.setOptions = Vw; br.reset = Uw; br.register("percentage", Ww); var Yw = /["'&<>/]/; function Pv(t) { var e = "".concat(t), i = Yw.exec(e); if (!i) return e; var r, n = "", a, o = 0; for (a = i.index; a < e.length; a++) { switch (e.charCodeAt(a)) { case 34: r = "&quot;"; break; case 38: r = "&amp;"; break; case 39: r = "&#x27;"; break; case 60: r = "&lt;"; break; case 62: r = "&gt;"; break; // / case 47: r = "&#x2F;"; break; default: continue; } o !== a && (n += e.substring(o, a)), o = a + 1, n += r; } return o !== a ? n + e.substring(o, a) : n; } var Xw = "Tiny", Be = function(e, i, r) { var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "-"; if (W(e) === "object" && !He(e) && (e = e.value), isNaN(e)) return n; if (!i) return e; if (bl(i) === "function") return i(e, br); r = isNaN(r) ? 0 : ++r; var a = ".[".concat(new Array(r).join(0), "]"), o = i; return i === "KMB" ? o = r ? "0,0".concat(a, "a") : "0,0a" : i === "normal" ? o = r ? "0,0".concat(a) : "0,0" : i === "percent" && (o = r ? "0,0".concat(a, "%") : "0,0.[00]%"), br(e, o); }, md = function(e) { return wi(e) ? extend(!0, e) : Array.isArray(e) ? py(e) : e; }, by = function(e) { var i = {}; return Object.keys(e).forEach(function(r) { e[r].forEach(function(n) { i[n] = r; }); }), i; }, xy = function(e, i) { return W(e) !== "object" || W(i) !== "object" ? i === void 0 ? e : i : Object.keys(se(se({}, e), i)).reduce(function(r, n) { return r[n] = xy(e[n], i[n]), r; }, Array.isArray(e) ? [] : {}); }, Hu = {}, wy = function(e) { var i = e.position, r = e.positionJsonLink, n = e.beforeRegisterMapOnce, a = e.mapURLProfix, o = a === void 0 ? "" : a, s = r || "".concat(o).concat(i, ".json"); return Hu[s] || (Hu[s] = $get(s).then(function(l) { return n && (l = n(l)), l; })), Hu[s]; }, Qw = function(e) { return !e || !Array.isArray(e) ? e : md(e).map(function(i) { if (typeof i == "string" && /<[a-z]+/i.test(i)) return Pv(i); if (W(i) === "object") { for (var r in i) typeof i[r] == "string" && /<[a-z]+/i.test(i[r]) && (i[r] = Pv(i[r])); return i; } return i; }); }, gf = { exports: {} }, Je = {}, mf = { exports: {} }, vn = {}; function Cy() { var t = {}; return t["align-content"] = !1, t["align-items"] = !1, t["align-self"] = !1, t["alignment-adjust"] = !1, t["alignment-baseline"] = !1, t.all = !1, t["anchor-point"] = !1, t.animation = !1, t["animation-delay"] = !1, t["animation-direction"] = !1, t["animation-duration"] = !1, t["animation-fill-mode"] = !1, t["animation-iteration-count"] = !1, t["animation-name"] = !1, t["animation-play-state"] = !1, t["animation-timing-function"] = !1, t.azimuth = !1, t["backface-visibility"] = !1, t.background = !0, t["background-attachment"] = !0, t["background-clip"] = !0, t["background-color"] = !0, t["background-image"] = !0, t["background-origin"] = !0, t["background-position"] = !0, t["background-repeat"] = !0, t["background-size"] = !0, t["baseline-shift"] = !1, t.binding = !1, t.bleed = !1, t["bookmark-label"] = !1, t["bookmark-level"] = !1, t["bookmark-state"] = !1, t.border = !0, t["border-bottom"] = !0, t["border-bottom-color"] = !0, t["border-bottom-left-radius"] = !0, t["border-bottom-right-radius"] = !0, t["border-bottom-style"] = !0, t["border-bottom-width"] = !0, t["border-collapse"] = !0, t["border-color"] = !0, t["border-image"] = !0, t["border-image-outset"] = !0, t["border-image-repeat"] = !0, t["border-image-slice"] = !0, t["border-image-source"] = !0, t["border-image-width"] = !0, t["border-left"] = !0, t["border-left-color"] = !0, t["border-left-style"] = !0, t["border-left-width"] = !0, t["border-radius"] = !0, t["border-right"] = !0, t["border-right-color"] = !0, t["border-right-style"] = !0, t["border-right-width"] = !0, t["border-spacing"] = !0, t["border-style"] = !0, t["border-top"] = !0, t["border-top-color"] = !0, t["border-top-left-radius"] = !0, t["border-top-right-radius"] = !0, t["border-top-style"] = !0, t["border-top-width"] = !0, t["border-width"] = !0, t.bottom = !1, t["box-decoration-break"] = !0, t["box-shadow"] = !0, t["box-sizing"] = !0, t["box-snap"] = !0, t["box-suppress"] = !0, t["break-after"] = !0, t["break-before"] = !0, t["break-inside"] = !0, t["caption-side"] = !1, t.chains = !1, t.clear = !0, t.clip = !1, t["clip-path"] = !1, t["clip-rule"] = !1, t.color = !0, t["color-interpolation-filters"] = !0, t["column-count"] = !1, t["column-fill"] = !1, t["column-gap"] = !1, t["column-rule"] = !1, t["column-rule-color"] = !1, t["column-rule-style"] = !1, t["column-rule-width"] = !1, t["column-span"] = !1, t["column-width"] = !1, t.columns = !1, t.contain = !1, t.content = !1, t["counter-increment"] = !1, t["counter-reset"] = !1, t["counter-set"] = !1, t.crop = !1, t.cue = !1, t["cue-after"] = !1, t["cue-before"] = !1, t.cursor = !1, t.direction = !1, t.display = !0, t["display-inside"] = !0, t["display-list"] = !0, t["display-outside"] = !0, t["dominant-baseline"] = !1, t.elevation = !1, t["empty-cells"] = !1, t.filter = !1, t.flex = !1, t["flex-basis"] = !1, t["flex-direction"] = !1, t["flex-flow"] = !1, t["flex-grow"] = !1, t["flex-shrink"] = !1, t["flex-wrap"] = !1, t.float = !1, t["float-offset"] = !1, t["flood-color"] = !1, t["flood-opacity"] = !1, t["flow-from"] = !1, t["flow-into"] = !1, t.font = !0, t["font-family"] = !0, t["font-feature-settings"] = !0, t["font-kerning"] = !0, t["font-language-override"] = !0, t["font-size"] = !0, t["font-size-adjust"] = !0, t["font-stretch"] = !0, t["font-style"] = !0, t["font-synthesis"] = !0, t["font-variant"] = !0, t["font-variant-alternates"] = !0, t["font-variant-caps"] = !0, t["font-variant-east-asian"] = !0, t["font-variant-ligatures"] = !0, t["font-variant-numeric"] = !0, t["font-variant-position"] = !0, t["font-weight"] = !0, t.grid = !1, t["grid-area"] = !1, t["grid-auto-columns"] = !1, t["grid-auto-flow"] = !1, t["grid-auto-rows"] = !1, t["grid-column"] = !1, t["grid-column-end"] = !1, t["grid-column-start"] = !1, t["grid-row"] = !1, t["grid-row-end"] = !1, t["grid-row-start"] = !1, t["grid-template"] = !1, t["grid-template-areas"] = !1, t["grid-template-columns"] = !1, t["grid-template-rows"] = !1, t["hanging-punctuation"] = !1, t.height = !0, t.hyphens = !1, t.icon = !1, t["image-orientation"] = !1, t["image-resolution"] = !1, t["ime-mode"] = !1, t["initial-letters"] = !1, t["inline-box-align"] = !1, t["justify-content"] = !1, t["justify-items"] = !1, t["justify-self"] = !1, t.left = !1, t["letter-spacing"] = !0, t["lighting-color"] = !0, t["line-box-contain"] = !1, t["line-break"] = !1, t["line-grid"] = !1, t["line-height"] = !1, t["line-snap"] = !1, t["line-stacking"] = !1, t["line-stacking-ruby"] = !1, t["line-stacking-shift"] = !1, t["line-stacking-strategy"] = !1, t["list-style"] = !0, t["list-style-image"] = !0, t["list-style-position"] = !0, t["list-style-type"] = !0, t.margin = !0, t["margin-bottom"] = !0, t["margin-left"] = !0, t["margin-right"] = !0, t["margin-top"] = !0, t["marker-offset"] = !1, t["marker-side"] = !1, t.marks = !1, t.mask = !1, t["mask-box"] = !1, t["mask-box-outset"] = !1, t["mask-box-repeat"] = !1, t["mask-box-slice"] = !1, t["mask-box-source"] = !1, t["mask-box-width"] = !1, t["mask-clip"] = !1, t["mask-image"] = !1, t["mask-origin"] = !1, t["mask-position"] = !1, t["mask-repeat"] = !1, t["mask-size"] = !1, t["mask-source-type"] = !1, t["mask-type"] = !1, t["max-height"] = !0, t["max-lines"] = !1, t["max-width"] = !0, t["min-height"] = !0, t["min-width"] = !0, t["move-to"] = !1, t["nav-down"] = !1, t["nav-index"] = !1, t["nav-left"] = !1, t["nav-right"] = !1, t["nav-up"] = !1, t["object-fit"] = !1, t["object-position"] = !1, t.opacity = !1, t.order = !1, t.orphans = !1, t.outline = !1, t["outline-color"] = !1, t["outline-offset"] = !1, t["outline-style"] = !1, t["outline-width"] = !1, t.overflow = !1, t["overflow-wrap"] = !1, t["overflow-x"] = !1, t["overflow-y"] = !1, t.padding = !0, t["padding-bottom"] = !0, t["padding-left"] = !0, t["padding-right"] = !0, t["padding-top"] = !0, t.page = !1, t["page-break-after"] = !1, t["page-break-before"] = !1, t["page-break-inside"] = !1, t["page-policy"] = !1, t.pause = !1, t["pause-after"] = !1, t["pause-before"] = !1, t.perspective = !1, t["perspective-origin"] = !1, t.pitch = !1, t["pitch-range"] = !1, t["play-during"] = !1, t.position = !1, t["presentation-level"] = !1, t.quotes = !1, t["region-fragment"] = !1, t.resize = !1, t.rest = !1, t["rest-after"] = !1, t["rest-before"] = !1, t.richness = !1, t.right = !1, t.rotation = !1, t["rotation-point"] = !1, t["ruby-align"] = !1, t["ruby-merge"] = !1, t["ruby-position"] = !1, t["shape-image-threshold"] = !1, t["shape-outside"] = !1, t["shape-margin"] = !1, t.size = !1, t.speak = !1, t["speak-as"] = !1, t["speak-header"] = !1, t["speak-numeral"] = !1, t["speak-punctuation"] = !1, t["speech-rate"] = !1, t.stress = !1, t["string-set"] = !1, t["tab-size"] = !1, t["table-layout"] = !1, t["text-align"] = !0, t["text-align-last"] = !0, t["text-combine-upright"] = !0, t["text-decoration"] = !0, t["text-decoration-color"] = !0, t["text-decoration-line"] = !0, t["text-decoration-skip"] = !0, t["text-decoration-style"] = !0, t["text-emphasis"] = !0, t["text-emphasis-color"] = !0, t["text-emphasis-position"] = !0, t["text-emphasis-style"] = !0, t["text-height"] = !0, t["text-indent"] = !0, t["text-justify"] = !0, t["text-orientation"] = !0, t["text-overflow"] = !0, t["text-shadow"] = !0, t["text-space-collapse"] = !0, t["text-transform"] = !0, t["text-underline-position"] = !0, t["text-wrap"] = !0, t.top = !1, t.transform = !1, t["transform-origin"] = !1, t["transform-style"] = !1, t.transition = !1, t["transition-delay"] = !1, t["transition-duration"] = !1, t["transition-property"] = !1, t["transition-timing-function"] = !1, t["unicode-bidi"] = !1, t["vertical-align"] = !1, t.visibility = !1, t["voice-balance"] = !1, t["voice-duration"] = !1, t["voice-family"] = !1, t["voice-pitch"] = !1, t["voice-range"] = !1, t["voice-rate"] = !1, t["voice-stress"] = !1, t["voice-volume"] = !1, t.volume = !1, t["white-space"] = !1, t.widows = !1, t.width = !0, t["will-change"] = !1, t["word-break"] = !0, t["word-spacing"] = !0, t["word-wrap"] = !0, t["wrap-flow"] = !1, t["wrap-through"] = !1, t["writing-mode"] = !1, t["z-index"] = !1, t; } function Zw(t, e, i) { } function Kw(t, e, i) { } var Jw = /javascript\s*\:/img; function $w(t, e) { return Jw.test(e) ? "" : e; } vn.whiteList = Cy(); vn.getDefaultWhiteList = Cy; vn.onAttr = Zw; vn.onIgnoreAttr = Kw; vn.safeAttrValue = $w; var qw = { indexOf: function(e, i) { var r, n; if (Array.prototype.indexOf) return e.indexOf(i); for (r = 0, n = e.length; r < n; r++) if (e[r] === i) return r; return -1; }, forEach: function(e, i, r) { var n, a; if (Array.prototype.forEach) return e.forEach(i, r); for (n = 0, a = e.length; n < a; n++) i.call(r, e[n], n, e); }, trim: function(e) { return String.prototype.trim ? e.trim() : e.replace(/(^\s*)|(\s*$)/g, ""); }, trimRight: function(e) { return String.prototype.trimRight ? e.trimRight() : e.replace(/(\s*$)/g, ""); } }, Sa = qw; function eC(t, e) { t = Sa.trimRight(t), t[t.length - 1] !== ";" && (t += ";"); var i = t.length, r = !1, n = 0, a = 0, o = ""; function s() { if (!r) { var c = Sa.trim(t.slice(n, a)), f = c.indexOf(":"); if (f !== -1) { var h = Sa.trim(c.slice(0, f)), d = Sa.trim(c.slice(f + 1)); if (h) { var v = e(n, o.length, h, d, c); v && (o += v + "; "); } } } n = a + 1; } for (; a < i; a++) { var l = t[a]; if (l === "/" && t[a + 1] === "*") { var u = t.indexOf("*/", a + 2); if (u === -1) break; a = u + 1, n = a + 1, r = !1; } else l === "(" ? r = !0 : l === ")" ? r = !1 : l === ";" ? r || s() : l === ` ` && s(); } return Sa.trim(o); } var tC = eC, Fo = vn, rC = tC; function Mv(t) { return t == null; } function iC(t) { var e = {}; for (var i in t) e[i] = t[i]; return e; } function Sy(t) { t = iC(t || {}), t.whiteList = t.whiteList || Fo.whiteList, t.onAttr = t.onAttr || Fo.onAttr, t.onIgnoreAttr = t.onIgnoreAttr || Fo.onIgnoreAttr, t.safeAttrValue = t.safeAttrValue || Fo.safeAttrValue, this.options = t; } Sy.prototype.process = function(t) { if (t = t || "", t = t.toString(), !t) return ""; var e = this, i = e.options, r = i.whiteList, n = i.onAttr, a = i.onIgnoreAttr, o = i.safeAttrValue, s = rC(t, function(l, u, c, f, h) { var d = r[c], v = !1; if (d === !0 ? v = d : typeof d == "function" ? v = d(f) : d instanceof RegExp && (v = d.test(f)), v !== !0 && (v = !1), f = o(c, f), !!f) { var p = { position: u, sourcePosition: l, source: h, isWhite: v }; if (v) { var g = n(c, f, p); return Mv(g) ? c + ":" + f : g; } else { var g = a(c, f, p); if (!Mv(g)) return g; } } }); return s; }; var nC = Sy; (function(t, e) { var i = vn, r = nC; function n(o, s) { var l = new r(s); return l.process(o); } e = t.exports = n, e.FilterCSS = r; for (var a in i) e[a] = i[a]; typeof window < "u" && (window.filterCSS = t.exports); })(mf, mf.exports); var yd = mf.exports, bd = { indexOf: function(e, i) { var r, n; if (Array.prototype.indexOf) return e.indexOf(i); for (r = 0, n = e.length; r < n; r++) if (e[r] === i) return r; return -1; }, forEach: function(e, i, r) { var n, a; if (Array.prototype.forEach) return e.forEach(i, r); for (n = 0, a = e.length; n < a; n++) i.call(r, e[n], n, e); }, trim: function(e) { return String.prototype.trim ? e.trim() : e.replace(/(^\s*)|(\s*$)/g, ""); }, spaceIndex: function(e) { var i = /\s|\n|\t/, r = i.exec(e); return r ? r.index : -1; } }, aC = yd.FilterCSS, oC = yd.getDefaultWhiteList, xl = bd; function _y() { return { a: ["target", "href", "title"], abbr: ["title"], address: [], area: ["shape", "coords", "href", "alt"], article: [], aside: [], audio: ["autoplay", "controls", "crossorigin", "loop", "muted", "preload", "src"], b: [], bdi: ["dir"], bdo: ["dir"], big: [], blockquote: ["cite"], br: [], caption: [], center: [], cite: [], code: [], col: ["align", "valign", "span", "width"], colgroup: ["align", "valign", "span", "width"], dd: [], del: ["datetime"], details: ["open"], div: [], dl: [], dt: [], em: [], figcaption: [], figure: [], font: ["color", "size", "face"], footer: [], h1: [], h2: [], h3: [], h4: [], h5: [], h6: [], header: [], hr: [], i: [], img: ["src", "alt", "title", "width", "height"], ins: ["datetime"], li: [], mark: [], nav: [], ol: [], p: [], pre: [], s: [], section: [], small: [], span: [], sub: [], summary: [], sup: [], strong: [], strike: [], table: ["width", "border", "align", "valign"], tbody: ["align", "valign"], td: ["width", "rowspan", "colspan", "align", "valign"], tfoot: ["align", "valign"], th: ["width", "rowspan", "colspan", "align", "valign"], thead: ["align", "valign"], tr: ["rowspan", "align", "valign"], tt: [], u: [], ul: [], video: ["autoplay", "controls", "crossorigin", "loop", "muted", "playsinline", "poster", "preload", "src", "height", "width"] }; } var Ay = new aC(); function sC(t, e, i) { } function lC(t, e, i) { } function uC(t, e, i) { } function cC(t, e, i) { } function Ly(t) { return t.replace(hC, "&lt;").replace(dC, "&gt;"); } function fC(t, e, i, r) { if (i = By(i), e === "href" || e === "src") { if (i = xl.trim(i), i === "#") return "#"; if (!(i.substr(0, 7) === "http://" || i.substr(0, 8) === "https://" || i.substr(0, 7) === "mailto:" || i.substr(0, 4) === "tel:" || i.substr(0, 11) === "data:image/" || i.substr(0, 6) === "ftp://" || i.substr(0, 2) === "./" || i.substr(0, 3) === "../" || i[0] === "#" || i[0] === "/")) return ""; } else if (e === "background") { if (ko.lastIndex = 0, ko.test(i)) return ""; } else if (e === "style") { if (Bv.lastIndex = 0, Bv.test(i) || (Rv.lastIndex = 0, Rv.test(i) && (ko.lastIndex = 0, ko.test(i)))) return ""; r !== !1 && (r = r || Ay, i = r.process(i)); } return i = Ry(i), i; } var hC = /</g, dC = />/g, vC = /"/g, pC = /&quot;/g, gC = /&#([a-zA-Z0-9]*);?/gim, mC = /&colon;?/gim, yC = /&newline;?/gim, ko = /((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi, Bv = /e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi, Rv = /u\s*r\s*l\s*\(.*/gi; function Ty(t) { return t.replace(vC, "&quot;"); } function Dy(t) { return t.replace(pC, '"'); } function Ey(t) { return t.replace(gC, function(i, r) { return r[0] === "x" || r[0] === "X" ? String.fromCharCode(parseInt(r.substr(1), 16)) : String.fromCharCode(parseInt(r, 10)); }); } function Py(t) { return t.replace(mC, ":").replace(yC, " "); } function My(t) { for (var e = "", i = 0, r = t.length; i < r; i++) e += t.charCodeAt(i) < 32 ? " " : t.charAt(i); return xl.trim(e); } function By(t) { return t = Dy(t), t = Ey(t), t = Py(t), t = My(t), t; } function Ry(t) { return t = Ty(t), t = Ly(t), t; } function bC() { return ""; } function xC(t, e) { typeof e != "function" && (e = function() { }); var i = !Array.isArray(t); function r(o) { return i ? !0 : xl.indexOf(t, o) !== -1; } var n = [], a = !1; return { onIgnoreTag: function(s, l, u) { if (r(s)) if (u.isClosing) { var c = "[/removed]", f = u.position + c.length; return n.push([a !== !1 ? a : u.position, f]), a = !1, c; } else return a || (a = u.position), "[removed]"; else return e(s, l, u); }, remove: function(s) { var l = "", u = 0; return xl.forEach(n, function(c) { l += s.slice(u, c[0]), u = c[1]; }), l += s.slice(u), l; } }; } function wC(t) { for (var e = "", i = 0; i < t.length; ) { var r = t.indexOf("<!--", i); if (r === -1) { e += t.slice(i); break; } e += t.slice(i, r); var n = t.indexOf("-->", r); if (n === -1) break; i = n + 3; } return e; } function CC(t) { var e = t.split(""); return e = e.filter(function(i) { var r = i.charCodeAt(0); return r === 127 ? !1 : r <= 31 ? r === 10 || r === 13 : !0; }), e.join(""); } Je.whiteList = _y(); Je.getDefaultWhiteList = _y; Je.onTag = sC; Je.onIgnoreTag = lC; Je.onTagAttr = uC; Je.onIgnoreTagAttr = cC; Je.safeAttrValue = fC; Je.escapeHtml = Ly; Je.escapeQuote = Ty; Je.unescapeQuote = Dy; Je.escapeHtmlEntities = Ey; Je.escapeDangerHtml5Entities = Py; Je.clearNonPrintableCharacter = My; Je.friendlyAttrValue = By; Je.escapeAttrValue = Ry; Je.onIgnoreTagStripAll = bC; Je.StripTagBody = xC; Je.stripCommentTag = wC; Je.stripBlankChar = CC; Je.cssFilter = Ay; Je.getDefaultCSSWhiteList = oC; var fu = {}, fi = bd; function SC(t) { var e = fi.spaceIndex(t), i; return e === -1 ? i = t.slice(1, -1) : i = t.slice(1, e + 1), i = fi.trim(i).toLowerCase(), i.slice(0, 1) === "/" && (i = i.slice(1)), i.slice(-1) === "/" && (i = i.slice(0, -1)), i; } function _C(t) { return t.slice(0, 2) === "</"; } function AC(t, e, i) { var r = "", n = 0, a = !1, o = !1, s = 0, l = t.length, u = "", c = ""; e: for (s = 0; s < l; s++) { var f = t.charAt(s); if (a === !1) { if (f === "<") { a = s; continue; } } else if (o === !1) { if (f === "<") { r += i(t.slice(n, s)), a = s, n = s; continue; } if (f === ">" || s === l - 1) { r += i(t.slice(n, a)), c = t.slice(a, s + 1), u = SC(c), r += e(a, r.length, u, c, _C(c)), n = s + 1, a = !1; continue; } if (f === '"' || f === "'") for (var h = 1, d = t.charAt(s - h); d.trim() === "" || d === "="; ) { if (d === "=") { o = f; continue e; } d = t.charAt(s - ++h); } } else if (f === o) { o = !1; continue; } } return n < l && (r += i(t.substr(n))), r; } var LC = /[^a-zA-Z0-9\\_:.-]/gim; function TC(t, e) { var i = 0, r = 0, n = [], a = !1, o = t.length; function s(h, d) { if (h = fi.trim(h), h = h.replace(LC, "").toLowerCase(), !(h.length < 1)) { var v = e(h, d || ""); v && n.push(v); } } for (var l = 0; l < o; l++) { var u = t.charAt(l), c, f; if (a === !1 && u === "=") { a = t.slice(i, l), i = l + 1, r = t.charAt(i) === '"' || t.charAt(i) === "'" ? i : EC(t, l + 1); continue; } if (a !== !1 && l === r) { if (f = t.indexOf(u, l + 1), f === -1) break; c = fi.trim(t.slice(r + 1, f)), s(a, c), a = !1, l = f, i = l + 1; continue; } if (/\s|\n|\t/.test(u)) if (t = t.replace(/\s|\n|\t/g, " "), a === !1) if (f = DC(t, l), f === -1) { c = fi.trim(t.slice(i, l)), s(c), a = !1, i = l + 1; continue; } else { l = f - 1; continue; } else if (f = PC(t, l - 1), f === -1) { c = fi.trim(t.slice(i, l)), c = Ov(c), s(a, c), a = !1, i = l + 1; continue; } else continue; } return i < t.length && (a === !1 ? s(t.slice(i)) : s(a, Ov(fi.trim(t.slice(i))))), fi.trim(n.join(" ")); } function DC(t, e) { for (; e < t.length; e++) { var i = t[e]; if (i !== " ") return i === "=" ? e : -1; } } function EC(t, e) { for (; e < t.length; e++) { var i = t[e]; if (i !== " ") return i === "'" || i === '"' ? e : -1; } } function PC(t, e) { for (; e > 0; e--) { var i = t[e]; if (i !== " ") return i === "=" ? e : -1; } } function MC(t) { return t[0] === '"' && t[t.length - 1] === '"' || t[0] === "'" && t[t.length - 1] === "'"; } function Ov(t) { return MC(t) ? t.substr(1, t.length - 2) : t; } fu.parseTag = AC; fu.parseAttr = TC; var BC = yd.FilterCSS, vr = Je, Oy = fu, RC = Oy.parseTag, OC = Oy.parseAttr, Ts = bd; function No(t) { return t == null; } function IC(t) { var e = Ts.spaceIndex(t); if (e === -1) return { html: "", closing: t[t.length - 2] === "/" }; t = Ts.trim(t.slice(e + 1, -1)); var i = t[t.length - 1] === "/"; return i && (t = Ts.trim(t.slice(0, -1))), { html: t, closing: i }; } function FC(t) { var e = {}; for (var i in t) e[i] = t[i]; return e; } function kC(t) { var e = {}; for (var i in t) Array.isArray(t[i]) ? e[i.toLowerCase()] = t[i].map(function(r) { return r.toLowerCase(); }) : e[i.toLowerCase()] = t[i]; return e; } function Iy(t) { t = FC(t || {}), t.stripIgnoreTag && (t.onIgnoreTag && console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'), t.onIgnoreTag = vr.onIgnoreTagStripAll), t.whiteList || t.allowList ? t.whiteList = kC(t.whiteList || t.allowList) : t.whiteList = vr.whiteList, t.onTag = t.onTag || vr.onTag, t.onTagAttr = t.onTagAttr || vr.onTagAttr, t.onIgnoreTag = t.onIgnoreTag || vr.onIgnoreTag, t.onIgnoreTagAttr = t.onIgnoreTagAttr || vr.onIgnoreTagAttr, t.safeAttrValue = t.safeAttrValue || vr.safeAttrValue, t.escapeHtml = t.escapeHtml || vr.escapeHtml, this.options = t, t.css === !1 ? this.cssFilter = !1 : (t.css = t.css || {}, this.cssFilter = new BC(t.css)); } Iy.prototype.process = function(t) { if (t = t || "", t = t.toString(), !t) return ""; var e = this, i = e.options, r = i.whiteList, n = i.onTag, a = i.onIgnoreTag, o = i.onTagAttr, s = i.onIgnoreTagAttr, l = i.safeAttrValue, u = i.escapeHtml, c = e.cssFilter; i.stripBlankChar && (t = vr.stripBlankChar(t)), i.allowCommentTag || (t = vr.stripCommentTag(t)); var f = !1; i.stripIgnoreTagBody && (f = vr.StripTagBody(i.stripIgnoreTagBody, a), a = f.onIgnoreTag); var h = RC(t, function(d, v, p, g, m) { var y = { sourcePosition: d, position: v, isClosing: m, isWhite: Object.prototype.hasOwnProperty.call(r, p) }, b = n(p, g, y); if (!No(b)) return b; if (y.isWhite) { if (y.isClosing) return "</" + p + ">"; var w = IC(g), C = r[p], x = OC(w.html, function(S, _) { var A = Ts.indexOf(C, S) !== -1, L = o(p, S, _, A); return No(L) ? A ? (_ = l(p, S, _, c), _ ? S + '="' + _ + '"' : S) : (L = s(p, S, _, A), No(L) ? void 0 : L) : L; }); return g = "<" + p, x && (g += " " + x), w.closing && (g += " /"), g += ">", g; } else return b = a(p, g, y), No(b) ? u(g) : b; }, u); return f && (h = f.remove(h)), h; }; var NC = Iy; (function(t, e) { var i = Je, r = fu, n = NC; function a(s, l) { var u = new n(l); return u.process(s); } e = t.exports = a, e.filterXSS = a, e.FilterXSS = n, (function() { for (var s in i) e[s] = i[s]; for (var l in r) e[l] = r[l]; })(), typeof window < "u" && (window.filterXSS = t.exports); function o() { return typeof self < "u" && typeof DedicatedWorkerGlobalScope < "u" && self instanceof DedicatedWorkerGlobalScope; } o() && (self.filterXSS = t.exports); })(gf, gf.exports); var yf = gf.exports, bf = { html: { whiteList: { a: ["class", "style", "contenteditable", "data-id", "data-title", "data-size", "href", "data-last-modified"], address: ["class", "style"], area: ["class", "style"], article: ["class", "style"], aside: ["class", "style"], audio: ["class", "style"], b: ["class", "style"], bdi: ["class", "style"], bdo: ["class", "style"], big: ["class", "style"], blockquote: ["class", "style"], br: ["class", "style"], caption: ["class", "style"], center: ["class", "style"], cite: ["class", "style"], code: ["class", "style"], col: ["class", "style"], colgroup: ["class", "style"], dd: ["class", "style"], del: ["class", "style"], details: ["class", "style"], div: ["class", "style", "spellcheck", "data-gramm", "spellcheck", "data-mode", "data-position", "data-row", "data-cell", "data-rowspan", "data-colspan", "data-cell-bg", "data-parent-bg"], dl: ["class", "style"], dt: ["class", "style"], em: ["class", "style"], figcaption: ["class", "style"], figure: ["class", "style"], font: ["class", "style"], footer: ["class", "style"], h1: ["class", "style"], h2: ["class", "style"], h3: ["class", "style"], h4: ["class", "style"], h5: ["class", "style"], h6: ["class", "style"], header: ["class", "style"], hr: ["class", "style"], i: ["class", "style", "data-image-id", "data-image"], img: ["class", "style", "data-image-id", "src"], input: ["class", "style", "data-formula", "data-link", "data-video"], ins: ["class", "style"], li: ["class", "style"], mark: ["class", "style"], nav: ["class", "style"], ol: ["class", "style"], p: ["class", "style"], pre: ["class", "style"], s: ["class", "style"], section: ["class", "style"], small: ["class", "style"], span: ["class", "style", "contenteditable", "color", "style"], sub: ["class", "style"], summary: ["class", "style"], sup: ["class", "style"], strong: ["class", "style"], strike: ["class", "style"], svg: ["class", "style", "t", "viewBox", "viewbox", "version", "xmlns", "p-id", "xmlns:xlink"], path: ["d", "p-id"], table: ["class", "style"], tbody: ["class", "style"], td: ["class", "style", "data-row", "data-cell", "data-cell-bg", "data-parent-bg"], tfoot: ["class", "style"], th: ["class", "style"], thead: ["class", "style"], tr: ["class", "style", "data-row"], tt: ["class", "style"], u: ["class", "style"], ul: ["class", "style"], video: ["class", "style"] } } }, zC = yf.getDefaultWhiteList && yf.getDefaultWhiteList() || {}; bf.html.whiteList = Object.assign(zC, bf.html.whiteList); new yf.FilterXSS(bf.html); var WC = Object.prototype.toString, HC = Object.prototype.hasOwnProperty, GC = HC.toString; GC.call(Object); var jC = { "[object Error]": "error", "[object Object]": "object", "[object RegExp]": "regExp", "[object Date]": "date", "[object Array]": "array", "[object Function]": "function", "[object AsyncFunction]": "asyncFunction", "[object String]": "string", "[object Number]": "number", "[object Boolean]": "boolean" }, VC = function(e) { return e == null; }, UC = function(e) { return VC(e) ? String(e) : jC[WC.call(e)] || "object"; }, YC = function(e) { return UC(e) === "object"; }, dt = typeof window > "u", XC = function() { var e = 8; return document.addEventListener && window.performance && (e = 9, window.atob && window.matchMedia && (e = 10, !window.attachEvent && !document.all && (e = 11))), e; }, QC = function(e) { e.chrome && ~navigator.userAgent.indexOf("Edg") ? (e.name = "edge", e.edge = !0, delete e.chrome) : !document.documentMode && window.StyleMedia && (e.name = "edge", e.edge = !0); }; (function() { if (dt) return null; var t = { name: "", version: 0, isDoc: typeof document < "u", isMobile: !1, isPC: !0, isNode: dt, chrome: !1, ie: !1, firefox: !1, safari: !1, opera: !1, edge: !1 }, e = /(Android|webOS|iPhone|iPad|iPod|SymbianOS|BlackBerry|Windows Phone)/.test(navigator.userAgent); t.isMobile = e, t.isPC = !e; var i; if (window.chrome && (window.chrome.webstore || /^Google\b/.test(window.navigator.vendor)) ? (t.name = "chrome", t.chrome = !0, i = navigator.userAgent.match(/chrome\/(\d+)/i), t.version = !!i && !!i[1] && parseInt(i[1], 10), i = void 0) : document.all || document.documentMode ? (t.name = "ie", t.version = XC(), t.ie = !0) : typeof window.InstallTrigger < "u" ? (t.name = "firefox", t.firefox = !0) : Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor") > 0 ? (t.name = "safari", t.safari = !0) : (window.opr && window.opr.addons || window.opera) && (t.name = "opera", t.opera = !0), QC(t), !~["ie", "chrome"].indexOf(t.name)) { var r = t.name + "/(\\d+)"; i = navigator.userAgent.match(new RegExp(r, "i")), t.version = !!i && !!i[1] && parseInt(i[1], 10), i = void 0; } if (t.isDoc) { var n = document.body || document.documentElement; ["webkit", "khtml", "moz", "ms", "o"].forEach(function(a) { t["-" + a] = !!n[a + "MatchesSelector"]; }); } return t; })(); var qn = function(e, i, r) { var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1; e && i && r && e.addEventListener(i, r, n); }, Ds = function(e, i, r) { var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1; e && i && e.removeEventListener(i, r, n); }, zo = function(e) { var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ""; if (e) { var r = i.split(" ").filter(function(n) { return n; }); r.forEach(function(n) { return e.classList.add(n); }); } }, Wo = function(e, i) { if (!(!e || !i)) { var r = i.split(" ").filter(function(n) { return n; }); r.forEach(function(n) { return e.classList.remove(n); }); } }, Fy = (function() { if (typeof Map < "u") return Map; var t = function(i, r) { var n = -1; return i.some(function(a, o) { return a[0] === r ? (n = o, !0) : !1; }), n; }; return (function() { function e() { this.__entries__ = []; } return Object.defineProperty(e.prototype, "size", { get: function() { return this.__entries__.length; }, enumerable: !0, configurable: !0 }), e.prototype.get = function(i) { var r = t(this.__entries__, i), n = this.__entries__[r]; return n && n[1]; }, e.prototype.set = function(i, r) { var n = t(this.__entries__, i); ~n ? this.__entries__[n][1] = r : this.__entries__.push([i, r]); }, e.prototype.delete = function(i) { var r = this.__entries__, n = t(r, i); ~n && r.splice(n, 1); }, e.prototype.clear = function() { this.__entries__.splice(0); }, e.prototype.has = function(i) { return !!~t(this.__entries__, i); }, e.prototype.forEach = function(i, r) { r === void 0 && (r = null); for (var n = 0, a = this.__entries__; n < a.length; n++) { var o = a[n]; i.call(r, o[1], o[0]); } }, e; })(); })(), ZC = globalThis.Function, wl = (function() { var t = function(i) { return i.Math === Math; }; return typeof global < "u" && t(global) ? global : typeof self < "u" && t(self) ? self : typeof window < "u" && t(window) ? window : ZC("return this")(); })(), KC = (function() { return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(wl) : function(t) { return setTimeout(function() { return t(Date.now()); }, 1e3 / 60); }; })(), JC = 2; function $C(t, e) { var i = !1, r = !1, n = 0, a, o = function() { i && (i = !1, t()), r && a(); }, s = function() { KC(o); }; return a = function() { var u = Date.now(); if (i) { if (u - n < JC) return; r = !0; } else i = !0, r = !1, setTimeout(s, e); n = u; }, a; } var qC = 20, eS = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], tS = typeof MutationObserver < "u", rS = (function() { function t() { this.observers_ = [], this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = $C(this.refresh.bind(this), qC); } return t.prototype.addObserver = function(e) { !~this.observers_.indexOf(e) && this.observers_.push(e), !this.connected_ && this.connect_(); }, t.prototype.removeObserver = function(e) { var i = this.observers_, r = i.indexOf(e); ~r && i.splice(r, 1), !i.length && this.connected_ && this.disconnect_(); }, t.prototype.refresh = function() { var e = this.updateObservers_(); e && this.refresh(); }, t.prototype.updateObservers_ = function() { var e = this.observers_.filter(function(i) { return i.gatherActive(), i.hasActive(); }); return e.forEach(function(i) { return i.broadcastActive(); }), e.length > 0; }, t.prototype.connect_ = function() { if (!(dt || this.connected_)) { if (qn(document, "transitionend", this.onTransitionEnd_), qn(window, "resize", this.refresh), tS) { this.mutationsObserver_ = new MutationObserver(this.refresh); var e = { attributes: !0, childList: !0, characterData: !0, subtree: !0 }; this.mutationsObserver_.observe(document, e); } else qn(document, "DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0; this.connected_ = !0; } }, t.prototype.disconnect_ = function() { dt || !this.connected_ || (Ds(document, "transitionend", this.onTransitionEnd_), Ds(window, "resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && Ds(document, "DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1); }, t.prototype.onTransitionEnd_ = function(e) { var i = e.propertyName, r = i === void 0 ? "" : i, n = eS.some(function(a) { return !!~r.indexOf(a); }); n && this.refresh(); }, t.getInstance = function() { return this._instance || (this._instance = new t()), this._instance; }, t._instance = null, t; })(), ky = function(e, i) { for (var r = 0, n = Object.keys(i); r < n.length; r++) { var a = n[r]; Object.defineProperty(e, a, { value: i[a], configurable: !0, writable: !1, enumerable: !1 }); } return e; }, hu = function(e, i, r, n) { return { x: e, y: i, width: r, height: n }; }, sa = function(e) { var i = e && e.ownerDocument && e.ownerDocument.defaultView; return i || wl; }, Ny = hu(0, 0, 0, 0), Cl = function(e) { return parseFloat(e) || 0; }, Iv = function(e) { for (var i = [], r = 1; r < arguments.length; r++) i[r - 1] = arguments[r]; return i.reduce(function(n, a) { var o = e["border-".concat(a, "-width")]; return n + Cl(o); }, 0); }, iS = function(e) { for (var i = ["top", "right", "bottom", "left"], r = {}, n = 0, a = i; n < a.length; n++) { var o = a[n], s = e["padding-".concat(o)]; r[o] = Cl(s); } return r; }, nS = function(e) { var i = e.getBBox(); return hu(0, 0, i.width, i.height); }, aS = function(e) { return e === sa(e).document.documentElement; }, oS = function(e) { var i = e.clientWidth, r = e.clientHeight; if (!r && !i) return Ny; var n = sa(e).getComputedStyle(e), a = iS(n), o = a.top + a.bottom, s = a.left + a.right, l = Cl(n.width), u = Cl(n.height); if (n.boxSizing === "border-box" && (Math.round(u + o) !== r && (u -= Iv(n, "top", "bottom") + o), Math.round(l + s) !== i && (l -= Iv(n, "left", "right") + s)), !aS(e)) { var c = Math.round(u + o) - r, f = Math.round(l + s) - i; Math.abs(c) !== 1 && (u -= c), Math.abs(f) !== 1 && (l -= f); } return hu(a.left, a.top, l, u); }, sS = /* @__PURE__ */ (function() { return typeof SVGGraphicsElement < "u" ? function(t) { return t instanceof sa(t).SVGGraphicsElement; } : function(t) { return t instanceof sa(t).SVGElement && typeof t.getBBox == "function"; }; })(), lS = function(e) { return dt ? Ny : sS(e) ? nS(e) : oS(e); }, uS = function(e) { var i = e.x, r = e.y, n = e.width, a = e.height, o = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, s = Object.create(o.prototype); return ky(s, { x: i, y: r, width: n, height: a, top: r, right: i + n, bottom: a + r, left: